Explorar el Código

前端小程序 sdy

zhongtianhaoyuan hace 3 años
padre
commit
dfd7fd0fef

+ 54 - 16
pageD/identity/companyIdentity.vue

@@ -1,16 +1,18 @@
 <template>
 	<view class="center">
 		<view>
-			<image @click='consent' style='width:14px;height:14px;position:relative;top:2px;margin-right:5px;' :src="consentStatus==true?'../../static/img/login/select@2x.png':'../../static/img/login/selected2.png'"
-			 alt=""></image>
+			<image @click='consent' style='width:14px;height:14px;position:relative;top:2px;margin-right:5px;'
+				:src="consentStatus==true?'../../static/img/login/select@2x.png':'../../static/img/login/selected2.png'"
+				alt=""></image>
 			<text>公司</text>
-			<image @click='consent' style='width:14px;height:14px;position:relative;top:2px;margin-right:5px;' :src="consentStatus1==true?'../../static/img/login/select@2x.png':'../../static/img/login/selected2.png'"
-			 alt=""></image>
+			<image @click='consent' style='width:14px;height:14px;position:relative;top:2px;margin-right:5px;'
+				:src="consentStatus1==true?'../../static/img/login/select@2x.png':'../../static/img/login/selected2.png'"
+				alt=""></image>
 			<text>个人</text>
 		</view>
 		<view v-if="consentStatus == true">
 			<view>
-				<button type="default">上传营业执照</button>
+				<button type="default" @click="license">上传营业执照</button>
 			</view>
 			<view class="c-row b-b">
 				<text class="tit">公司名称</text>
@@ -21,7 +23,8 @@
 			<view class="c-row b-b">
 				<text class="tit">纳税人识别号</text>
 				<view class="con-list">
-					<input placeholder="请填写纳税人识别号" name="input" v-model="identityAuthenticationInfo.payTaxesCard"></input>
+					<input placeholder="请填写纳税人识别号" name="input"
+						v-model="identityAuthenticationInfo.payTaxesCard"></input>
 				</view>
 			</view>
 			<view>
@@ -37,7 +40,8 @@
 			<view class="c-row b-b">
 				<text class="tit">身份证号</text>
 				<view class="con-list">
-					<input placeholder="请填写身份证号" name="input" v-model="identityAuthenticationInfo.customerNumberCard"></input>
+					<input placeholder="请填写身份证号" name="input"
+						v-model="identityAuthenticationInfo.customerNumberCard"></input>
 				</view>
 			</view>
 			<view>
@@ -59,7 +63,8 @@
 			<view class="c-row b-b">
 				<text class="tit">开户支行</text>
 				<view class="con-list">
-					<input placeholder="请填写开户支行" name="input" v-model="identityAuthenticationInfo.bankDepositBranch"></input>
+					<input placeholder="请填写开户支行" name="input"
+						v-model="identityAuthenticationInfo.bankDepositBranch"></input>
 				</view>
 			</view>
 			<view class="c-row b-b">
@@ -69,7 +74,8 @@
 				</view>
 			</view>
 			<view style='width:100%;border-bottom:1px solid #E8E9ED;position:relative;padding:10px;' class="flex">
-				<button :class='codestatus&&!sendDisabled?"active":""' @click='getcode' class='getcode'>{{sendText}}</button>
+				<button :class='codestatus&&!sendDisabled?"active":""' @click='getcode'
+					class='getcode'>{{sendText}}</button>
 				<view style='width:70%;position:relative;margin-left: 200px;'>
 
 					<input v-model='verifyCode' placeholder="请输入验证码" type="text">
@@ -96,7 +102,8 @@
 			<view class="c-row b-b">
 				<text class="tit">身份证号</text>
 				<view class="con-list">
-					<input placeholder="请填写身份证号" name="input" v-model="identityAuthenticationInfo.customerNumberCard"></input>
+					<input placeholder="请填写身份证号" name="input"
+						v-model="identityAuthenticationInfo.customerNumberCard"></input>
 				</view>
 			</view>
 			<view>
@@ -118,7 +125,8 @@
 			<view class="c-row b-b">
 				<text class="tit">开户支行</text>
 				<view class="con-list">
-					<input placeholder="请填写开户支行" name="input" v-model="identityAuthenticationInfo.bankDepositBranch"></input>
+					<input placeholder="请填写开户支行" name="input"
+						v-model="identityAuthenticationInfo.bankDepositBranch"></input>
 				</view>
 			</view>
 			<view class="c-row b-b">
@@ -130,7 +138,8 @@
 			<view class="c-row b-b">
 				<text class="tit">收款人身份证号</text>
 				<view class="con-list">
-					<input placeholder="请填写收款身份证号" name="input" v-model="identityAuthenticationInfo.payeeNumberCard"></input>
+					<input placeholder="请填写收款身份证号" name="input"
+						v-model="identityAuthenticationInfo.payeeNumberCard"></input>
 				</view>
 			</view>
 			<view class="c-row b-b">
@@ -140,7 +149,8 @@
 				</view>
 			</view>
 			<view style='width:100%;border-bottom:1px solid #E8E9ED;position:relative;padding:10px;' class="flex">
-				<button :class='codestatus&&!sendDisabled?"active":""' @click='getcode' class='getcode'>{{sendText}}</button>
+				<button :class='codestatus&&!sendDisabled?"active":""' @click='getcode'
+					class='getcode'>{{sendText}}</button>
 				<view style='width:70%;position:relative;margin-left: 200px;'>
 					<input v-model='verifyCode' placeholder="请输入验证码" type="text">
 				</view>
@@ -157,7 +167,7 @@
 			<button class="cu-btn bg-red margin-tb-sm lg" @click="commit">提交</button>
 		</view>
 	</view>
-	
+
 </template>
 
 <script>
@@ -177,9 +187,13 @@
 				platform: '',
 				sendDisabled: false,
 				identityAuthenticationInfo: {
-					customerPhone: ''
+					customerPhone: '',
+			
 				},
+				tempFilePaths: [],
+				businessLicenseAddressUrl:""
 			};
+
 		},
 		methods: {
 			consent() {
@@ -192,6 +206,24 @@
 				}
 
 			},
+			license() {
+				wx.chooseImage({
+					success: function(res) {
+						wx.uploadFile({
+							url: 'https://www.zthymaoyi.com/upload/admin',
+							filePath: res.tempFilePaths[0],
+							name: 'file',
+							success(res) {
+								const data = res.data
+								const strToObj = JSON.parse(data)
+								
+								this.businessLicenseAddressUrl = strToObj.url
+								console.log(this.businessLicenseAddressUrl)
+							}
+						})
+					}
+				})
+			},
 
 			getcode() {
 				var that = this
@@ -253,7 +285,13 @@
 				this.radios = index
 			},
 			commit() {
-				this.$api.doRequest('post', '/identityAuthenticationInfo/api/addIdentityAuthenticationInfo', this.identityAuthenticationInfo)
+				this.identityAuthenticationInfo.businessLicenseAddressUrl = 111
+				console.log(this.businessLicenseAddressUrl,"好了")
+				console.log(this.identityAuthenticationInfo.businessLicenseAddressUrl,"好了吗")
+				console.log(this.identityAuthenticationInfo,"对象")
+				return
+				this.$api.doRequest('post', '/identityAuthenticationInfo/api/addIdentityAuthenticationInfo', this
+						.identityAuthenticationInfo)
 					.then(res => {
 						console.log(12545645)
 					}).catch(res => {

+ 3 - 2
pageD/identity/companyIdentityLook.vue

@@ -12,7 +12,7 @@
 		</view>
 		<view v-if="consentStatus == true">
 			<view>
-				<button type="default">营业执照</button>
+				<button type="default" @click="license">营业执照</button>
 			</view>
 			<view class="c-row b-b">
 				<text class="tit">公司名称</text>
@@ -190,7 +190,8 @@
 					this.consentStatus1 = true
 				}
 				
-			}
+			},
+			
 		}
 	}
 </script>

+ 0 - 1
pages/task/my_task.vue

@@ -103,7 +103,6 @@
 				this.getIndexBuyData()
 			},
 			navToDetailPage(item) {
-				console.log(item)
 				if(item.statusFlag == 3){
 				uni.navigateTo({
 					url: `/pageD/warehousings/warehousingDetails?id=${item.id}`