gjy %!s(int64=3) %!d(string=hai) anos
pai
achega
2629b22d16
Modificáronse 3 ficheiros con 55 adicións e 4 borrados
  1. 2 2
      config/index.js
  2. 52 1
      pageD/identity/companyIdentity.vue
  3. 1 1
      pages/attestation/indexTwo.vue

+ 2 - 2
config/index.js

@@ -1,7 +1,7 @@
 const dev = {
 	baseUrl: 'https://www.zthymaoyi.com',
-	// baseUrlNew: 'http://192.168.1.103:9100/',
-	baseUrlNew: 'https://apitest.eliangeyun.com/',
+	baseUrlNew: 'http://192.168.1.120:8090/',
+	// baseUrlNew: 'https://apitest.eliangeyun.com/',
 	// baseUrlNew: 'http://api1.eliangeyun.com/',
 	// baseUrlNew: 'http://api1.eliangeyun.com/',
 	h5Appid: 'wxb66b599f7f61b46f',

+ 52 - 1
pageD/identity/companyIdentity.vue

@@ -8,7 +8,7 @@
 			<view v-if="consentStatus == true">
 				<!-- 公司营业执照上传 -->
 				<view v-if="license1 != ''">
-					<upload v-if="consentStatus == true" class="upload" ref="upload" :action="action"
+					<upload :file-list='businesslicense' v-if="consentStatus == true" class="upload" ref="upload" :action="action"
 						:max-size="maxSize" :max-count="1" :size-type="['compressed']" @on-success="getImgUrl"
 						@on-remove="onRemove" @on-uploaded="isAdd = true" :before-upload="filterFileType"
 						:options="uploadOptions" :custom="uploadCustom"></upload>
@@ -87,6 +87,7 @@
 				uploadCustom: true,
 				uploadCustom1: true,
 				uploadCustom2: true,
+				businesslicense:[],
 				uploadOptions: {
 					"text": "上传营业执照",
 					"bgc": ""
@@ -135,6 +136,56 @@ status:false,
 				this.switchs1 = "switchs2"
 				this.switchs2 = "switchs1"
 			}
+			if(options.id){
+				this.$api.doRequest('get', '/identityAuthenticationInfo/api/getIdentityAuthenticationInfo', {id:options.id},
+						'application/json;charset=UTF-8').then(res => {
+						console.log("成功连接")
+				
+						this.identityAuthenticationInfo = res.data.data
+						if (this.identityAuthenticationInfo.businessLicenseAddressUrl != "") {
+							this.businesslicense=[{url:this.identityAuthenticationInfo.businessLicenseAddressUrl}]
+						}
+						console.log(this.businesslicense)
+						// if (this.deptList.cardAddressUrl != "") {
+						// 	this.id = this.deptList.cardAddressUrl.split(",")
+						// 	this.idup = this.id[0]
+						// 	this.idlow = this.id[1]
+						// }
+						// if (this.deptList.payeeAddressUrl != "") {
+						// 	this.payeeAddress = this.deptList.payeeAddressUrl.split(","),
+						// 		this.bank1 = this.payeeAddress[0]
+						// 	this.bank2 = this.payeeAddress[1]
+						// }
+						// console.log(this.deptList.customerTypeFlag, "判断")
+						if (this.identityAuthenticationInfo.customerTypeFlag == 2) {
+							this.consentStatus = true
+							this.consentStatus1 = false
+							this.switchs1 = "switchs1"
+							this.switchs2 = "switchs2"
+						} else {
+							this.consentStatus = false
+							this.consentStatus1 = true
+							this.switchs1 = "switchs2"
+							this.switchs2 = "switchs1"
+						}
+				
+					})
+					.catch(res => {
+						if (res.errmsg) {
+							uni.showToast({
+								title: res.errmsg,
+								icon: 'none',
+								duration: 2000
+							})
+						} else {
+							uni.showToast({
+								title: "系统异常,请联系管理员",
+								icon: 'none',
+								duration: 2000
+							})
+						}
+					});
+			}
 		},
 		onShow(){
 			

+ 1 - 1
pages/attestation/indexTwo.vue

@@ -451,7 +451,7 @@
 			},
 			companyEdit(item) {
 				uni.navigateTo({
-					url: `/pageD/identity/companyIdentityEdit?id=${item.id}`
+					url: `/pageD/identity/companyIdentity?id=${item.id}`
 				})
 			},
 		}