Commit eb006ea9 authored by 黄奎's avatar 黄奎

页面修改

parent 58974a99
This diff is collapsed.
<style>
.compInformation {
background-color: #fff;
margin-bottom:80px;
margin-bottom: 80px;
}
.compInfoList {
......@@ -26,15 +26,16 @@
width: 75%;
margin-top: 2px;
font-size: 13px;
color:#808080;
color: #808080;
}
.comInBtn{
.comInBtn {
position: fixed;
bottom:0;
width:100%;
height:50px;
color:#fff;
z-index:99;
bottom: 0;
width: 100%;
height: 50px;
color: #fff;
z-index: 99;
font-size: 16px;
text-align: center;
line-height: 50px;
......@@ -119,7 +120,7 @@
<view class="comInforName">
成立时间
</view>
<view @click="showStart=true" style="width:75%;color:#808080;">{{msg.FoundingTimeStr}}</view>
<view @click="showStart=true" style="width:75%;color:#808080;">{{msg.FoundingTime}}</view>
</view>
<view class="compInfoList">
<view class="comInforName">
......@@ -207,10 +208,10 @@
},
msg: {
Id: 0, //编号
Type:1,
GoodsCategory:'',// 采购类目
ImportNum:'', //进口数量
Describe:'', //产品说明
Type: 1,
GoodsCategory: '', // 采购类目
ImportNum: '', //进口数量
Describe: '', //产品说明
CompanyName: "", //公司名称
CompanyEnName: "", //公司英文名称
Mobile: "", //手机号码
......@@ -220,7 +221,7 @@
WechatNo: "", //公司微信
DomainUrl: "", //官网
Industry: "", //行业
FoundingTimeStr:'', //成立时间
FoundingTime: '', //成立时间
EmployeeNum: "", //员工人数
AnnualSales: "", //年销售(万元)
Address: "", //详细地址
......@@ -238,20 +239,9 @@
uni.setNavigationBarTitle({
title: this.pageTitle,
});
var currTime = new Date();
var year = currTime.getFullYear();
var month = currTime.getMonth() + 1;
var day = currTime.getDate();
if(month<10){
month='0'+month;
}
if(day<10){
day='0'+day;
}
this.msg.FoundingTimeStr =year+'-'+ month+'-'+day;
},
onLoad(options) {
},
created() {
this.getList();
......@@ -272,64 +262,85 @@
(res) => {
uni.hideLoading();
if (res.resultCode == 1) {
console.log(res,'数据类了');
this.msg=res.data;
let tempData = res.data;
if (tempData) {
this.msg.CompanyName = tempData.CompanyName;
this.msg.CompanyEnName = tempData.CompanyEnName;
this.msg.Mobile = tempData.Mobile;
this.msg.EMail = tempData.EMail;
this.msg.LegalPerson = tempData.LegalPerson;
this.msg.Principal = tempData.Principal;
this.msg.WechatNo = tempData.WechatNo;
this.msg.DomainUrl = tempData.DomainUrl;
this.msg.Industry = tempData.Industry;
this.msg.FoundingTime = tempData.FoundingTimeStr;
this.msg.EmployeeNum = tempData.EmployeeNum;
this.msg.AnnualSales = tempData.AnnualSales;
this.msg.Address = tempData.Address;
this.msg.EnAddress = tempData.EnAddress;
this.msg.AnnualImport = tempData.AnnualImport;
this.msg.ImportCategory = tempData.ImportCategory;
this.msg.ImportCountry = tempData.ImportCountry;
this.msg.ExportCountry = tempData.ExportCountry;
this.msg.CompanyIntro = tempData.CompanyIntro;
this.msg.OtherInfo = tempData.OtherInfo;
}
}
}
);
},
//保存数据
saveInfo(){
if(this.msg.GoodsCategory==''){
saveInfo() {
if (this.msg.GoodsCategory == '') {
uni.showToast({
title: "请输入采购类目",
icon:'none'
title: "请输入采购类目",
icon: 'none'
});
return;
}
if(this.msg.ImportNum==''){
if (this.msg.ImportNum == '') {
uni.showToast({
title: "请输入进口数量",
icon:'none'
title: "请输入进口数量",
icon: 'none'
});
return;
}
if(this.msg.Describe==''){
if (this.msg.Describe == '') {
uni.showToast({
title: "请输入产品说明",
icon:'none'
title: "请输入产品说明",
icon: 'none'
});
return;
}
if(this.msg.CompanyName==''){
if (this.msg.CompanyName == '') {
uni.showToast({
title: "请输入公司名称",
icon:'none'
title: "请输入公司名称",
icon: 'none'
});
return;
}
if(this.msg.Mobile==''){
if (this.msg.Mobile == '') {
uni.showToast({
title: "请输入手机号码",
icon:'none'
title: "请输入手机号码",
icon: 'none'
});
return;
}
if(this.msg.EMail==''){
if (this.msg.EMail == '') {
uni.showToast({
title: "请输入EMail",
icon:'none'
title: "请输入EMail",
icon: 'none'
});
return;
}
this.request2({
url: "/api/AppletTrade/SetCompany",
url: "/api/AppletTrade/SetInvestmentProcurement",
data: this.msg,
},
(res) => {
if (res.resultCode == 1) {
uni.showToast({
title: "保存成功",
title: "保存成功",
});
this.getList();
}
......@@ -337,8 +348,8 @@
);
},
btnStart(val) {
this.msg.FoundingTime = val.year+'-'+val.month+'-'+val.day;
console.log(val);
this.msg.FoundingTime = val.year + '-' + val.month + '-' + val.day;
},
},
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment