diff --git a/manifest.json b/manifest.json index 913f312..60f1fac 100644 --- a/manifest.json +++ b/manifest.json @@ -2,8 +2,8 @@ "name" : "惠农商户平台", "appid" : "__UNI__1EE148C", "description" : "", - "versionName" : "1.0.2", - "versionCode" : 102, + "versionName" : "1.0.4", + "versionCode" : 104, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { diff --git a/pages/index/index.vue b/pages/index/index.vue index 974edd5..de23967 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -301,32 +301,46 @@ placeholder-class='placeholder' /> --> - + 公司名称: - + {{merchantData.company_name}} - + + + 持卡人: + + + + 对公账号: - + + + + + 银行卡号: + 开户银行: - 开户网点: - @@ -353,11 +367,12 @@ --> - 银行卡图片: + {{userInfoData.mer_info&&userInfoData.mer_info.is_company?"银行卡图片:":"开户凭证:"}} - + + @@ -886,10 +901,10 @@ import { Toast } from '../../libs/uniApi'; value = that.merchantData; if (!value.company_name) return that.$util.Tips({ - title: '请输入公司名称' + title: that.userInfoData.mer_info.is_company ? '请输入公司名称' : '请输入持卡人姓名' }); if (!value.bank_code) return that.$util.Tips({ - title: '请输入对公账号' + title: that.userInfoData.mer_info.is_company ? '请输入对公账号' : '请输入银行卡号' }); if (!value.bank_username) return that.$util.Tips({ title: '请输入开户银行' @@ -898,13 +913,13 @@ import { Toast } from '../../libs/uniApi'; title: '请输入开户网点' }); - // if (value.bank_front.length == 0) return that.$util.Tips({ + if (value.bank_front.length == 0) return that.$util.Tips({ + title: that.userInfoData.mer_info.is_company ? '请上传银行卡正面图片' : '请上传开户凭证' + }); + + // if (value.bank_back.length == 0) return that.$util.Tips({ // title: '请上传一张或者多张图片' // }); - - if (value.bank_back.length == 0) return that.$util.Tips({ - title: '请上传银行卡正面图片' - }); // if (value.cardno_front.length == 0) return that.$util.Tips({ // title: '请上传一张或者多张图片' // }); @@ -1076,11 +1091,13 @@ import { Toast } from '../../libs/uniApi'; getUserInfo() { getUserInfo().then(res => { // console.log(res); + res.data.mer_info.is_company?res.data.mer_info.is_company=1:res.data.mer_info.is_company=0 this.userid = res.data.uid - this.userInfoData = res.data + this.userInfoData = res.data; this.$store.commit('SET_USERINFO', res.data); this.merchantData.phone = res.data.phone; - this.merchantData.company_name = res.data.mer_info.company_name; + if(res.data.mer_info.is_company==0) this.merchantData.company_name = ""; + else this.merchantData.company_name = res.data.mer_info.company_name; if (res.data.service == null) { // console.log('123'); this.isgShow = false diff --git a/pages/users/embody/embody.vue b/pages/users/embody/embody.vue index f5cbf82..ba6eea3 100644 --- a/pages/users/embody/embody.vue +++ b/pages/users/embody/embody.vue @@ -20,18 +20,18 @@
- - + 公司名称 {{mode.mer_name}} + + 持卡人 + + 对公账号