|  |  |  | 
|---|
|  |  |  | <template> | 
|---|
|  |  |  | <view class="box"> | 
|---|
|  |  |  | <view class="box-head" :style="{ backgroundImage: 'url(' + bgImg + ')' }"> | 
|---|
|  |  |  | <view class="box-head"> | 
|---|
|  |  |  | <!-- 用工 --> | 
|---|
|  |  |  | <image class="box-head-bg" src="@/static/image/bg_renzheng_yonggong@2x.png" mode="widthFix" v-if="title === '用工认证'"></image> | 
|---|
|  |  |  | <!-- 货运 --> | 
|---|
|  |  |  | <image class="box-head-bg" src="@/static/image/bg_renzheng_huoyun@2x.png" mode="widthFix" v-if="title === '货运认证'"></image> | 
|---|
|  |  |  | <!-- 用餐 --> | 
|---|
|  |  |  | <image class="box-head-bg" src="@/static/image/bg_renzheng_gongcan@2x.png" mode="widthFix" v-if="title === '供餐认证'"></image> | 
|---|
|  |  |  | <view class="box-head-info"> | 
|---|
|  |  |  | <text>{{title}}</text> | 
|---|
|  |  |  | <text>请按要求填写认证信息</text> | 
|---|
|  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | data() { | 
|---|
|  |  |  | return { | 
|---|
|  |  |  | bgImg: require('@/static/image/bg_renzheng_yonggong@2x.png'), | 
|---|
|  |  |  | bgImg: null, | 
|---|
|  |  |  | title: '用户认证', | 
|---|
|  |  |  | flag: null, | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | return false | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | applySubmit() { | 
|---|
|  |  |  | console.log(this.loading) | 
|---|
|  |  |  | if (this.loading) { | 
|---|
|  |  |  | return | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | this.inNullParam(this.form.lgt) || | 
|---|
|  |  |  | this.inNullParam(this.form.location) || | 
|---|
|  |  |  | this.inNullParam(this.form.telephone)) { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | uni.showToast({ | 
|---|
|  |  |  | title: '对不起,请按要求填写申请信息1!', | 
|---|
|  |  |  | icon: "none", | 
|---|
|  |  |  | 
|---|
|  |  |  | param.img2 = this.form.img21 | 
|---|
|  |  |  | } | 
|---|
|  |  |  | uni.requestSubscribeMessage({ | 
|---|
|  |  |  | tmplIds: ['4H9ztG4E9BxJLwMuYSZ6oiM7yb4KX7u7bYhkhYJP0-Y'], | 
|---|
|  |  |  | tmplIds: ['VJho7-lf-4_WZFfOzenDndgwNDIA0EvCiE6vqBnExpQ'], | 
|---|
|  |  |  | success(res) { | 
|---|
|  |  |  | console.log('提交参数:', param) | 
|---|
|  |  |  | that.$u.api.applyForIdentity(param).then(res => { | 
|---|
|  |  |  | 
|---|
|  |  |  | }).finally(() => { | 
|---|
|  |  |  | that.loading = false | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | fail(err) { | 
|---|
|  |  |  | console.log(err) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | 
|---|
|  |  |  | uni.chooseLocation({ | 
|---|
|  |  |  | success: (res) => { | 
|---|
|  |  |  | console.log(res); | 
|---|
|  |  |  | this.form.location = res.address | 
|---|
|  |  |  | this.form.location = res.name || res.address | 
|---|
|  |  |  | this.form.lat = res.latitude | 
|---|
|  |  |  | this.form.lgt = res.longitude | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | 
|---|
|  |  |  | height: 300rpx; | 
|---|
|  |  |  | padding: 34rpx 40rpx 0 40rpx; | 
|---|
|  |  |  | box-sizing: border-box; | 
|---|
|  |  |  | background-repeat: no-repeat; | 
|---|
|  |  |  | background-size: 100% 100%; | 
|---|
|  |  |  | // background-repeat: no-repeat; | 
|---|
|  |  |  | // background-size: 100% 100%; | 
|---|
|  |  |  | position: relative; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | .box-head-bg { | 
|---|
|  |  |  | width: 100%; | 
|---|
|  |  |  | height: 300rpx; | 
|---|
|  |  |  | position: absolute; | 
|---|
|  |  |  | top: 0; | 
|---|
|  |  |  | left: 0; | 
|---|
|  |  |  | z-index: -1; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | .box-head-botton { | 
|---|
|  |  |  | width: 100%; | 
|---|