| | |
| | | </view> |
| | | <view class="item-upload"> |
| | | <view class="item-upload-item" @click="uploadImg(11)"> |
| | | <image v-if="form.img11Full && form.img11Full !=''" :src="form.img11Full" mode="widthFix"></image> |
| | | <image v-if="form.img11Full && form.img11Full !=''" :src="form.img11Full" mode="widthFix"> |
| | | </image> |
| | | <image v-else src="/static/image/btn_renxiang@2x.png" mode="widthFix"></image> |
| | | </view> |
| | | <view class="item-upload-item" @click="uploadImg(21)"> |
| | | <image v-if="form.img21Full && form.img21Full !=''" :src="form.img21Full" mode="widthFix"></image> |
| | | <image v-if="form.img21Full && form.img21Full !=''" :src="form.img21Full" mode="widthFix"> |
| | | </image> |
| | | <image v-else src="/static/image/btn_guohui@2x.png" mode="widthFix"></image> |
| | | </view> |
| | | </view> |
| | |
| | | <view class="item-upload" v-if="flag==0"> |
| | | <view class="item-upload-item1" @click="uploadImg(1)"> |
| | | <view class="image"> |
| | | <image v-if="form.img1Full && form.img1Full !=''" :src=" form.img1Full" mode="widthFix"></image> |
| | | <image v-if="form.img1Full && form.img1Full !=''" :src=" form.img1Full" mode="widthFix"> |
| | | </image> |
| | | <image v-else src="/static/icon/ic_camera@2x.png" mode="widthFix"></image> |
| | | <text>点击上传</text> |
| | | </view> |
| | |
| | | </view> |
| | | <view class="item-upload-item1" @click="uploadImg(2)"> |
| | | <view class="image"> |
| | | <image v-if="form.img2Full && form.img2Full !=''" :src=" form.img2Full" mode="widthFix"></image> |
| | | <image v-if="form.img2Full && form.img2Full !=''" :src=" form.img2Full" mode="widthFix"> |
| | | </image> |
| | | <image v-else src="/static/icon/ic_camera@2x.png" mode="widthFix"></image> |
| | | <text>点击上传</text> |
| | | </view> |
| | |
| | | <view class="item-upload" v-if="flag==1"> |
| | | <view class="item-upload-item1" @click="uploadImg(1)"> |
| | | <view class="image"> |
| | | <image v-if="form.img1Full && form.img1Full !=''" :src=" form.img1Full" mode="widthFix"></image> |
| | | <image v-if="form.img1Full && form.img1Full !=''" :src=" form.img1Full" mode="widthFix"> |
| | | </image> |
| | | <image v-else src="/static/icon/ic_camera@2x.png" mode="widthFix"></image> |
| | | <text>点击上传</text> |
| | | </view> |
| | |
| | | </view> |
| | | <view class="item-upload-item1" @click="uploadImg(2)"> |
| | | <view class="image"> |
| | | <image v-if="form.img2Full && form.img2Full !=''" :src=" form.img2Full" mode="widthFix"></image> |
| | | <image v-if="form.img2Full && form.img2Full !=''" :src=" form.img2Full" mode="widthFix"> |
| | | </image> |
| | | <image v-else src="/static/icon/ic_camera@2x.png" mode="widthFix"></image> |
| | | <text>点击上传</text> |
| | | </view> |
| | |
| | | </view> |
| | | <view class="item-upload-item1" @click="uploadImg(3)"> |
| | | <view class="image"> |
| | | <image v-if="form.img3Full && form.img3Full !=''" :src=" form.img3Full" mode="widthFix"></image> |
| | | <image v-if="form.img3Full && form.img3Full !=''" :src=" form.img3Full" mode="widthFix"> |
| | | </image> |
| | | <image v-else src="/static/icon/ic_camera@2x.png" mode="widthFix"></image> |
| | | <text>点击上传</text> |
| | | </view> |
| | |
| | | <view class="item-upload" v-if="flag==2"> |
| | | <view class="item-upload-item1" @click="uploadImg(1)"> |
| | | <view class="image"> |
| | | <image v-if="form.img1Full && form.img1Full !=''" :src=" form.img1Full" mode="widthFix"></image> |
| | | <image v-if="form.img1Full && form.img1Full !=''" :src=" form.img1Full" mode="widthFix"> |
| | | </image> |
| | | <image v-else src="/static/icon/ic_camera@2x.png" mode="widthFix"></image> |
| | | <text>点击上传</text> |
| | | </view> |
| | |
| | | </view> |
| | | <view class="item-upload-item1" @click="uploadImg(2)"> |
| | | <view class="image"> |
| | | <image v-if="form.img2Full && form.img2Full !=''" :src=" form.img2Full" mode="widthFix"></image> |
| | | <image v-if="form.img2Full && form.img2Full !=''" :src=" form.img2Full" mode="widthFix"> |
| | | </image> |
| | | <image v-else src="/static/icon/ic_camera@2x.png" mode="widthFix"></image> |
| | | <text>点击上传</text> |
| | | </view> |
| | |
| | | </view> |
| | | <view class="item-upload-item1" @click="uploadImg(3)"> |
| | | <view class="image"> |
| | | <image v-if="form.img3Full && form.img3Full !=''" :src=" form.img3Full" mode="widthFix"></image> |
| | | <image v-if="form.img3Full && form.img3Full !=''" :src=" form.img3Full" mode="widthFix"> |
| | | </image> |
| | | <image v-else src="/static/icon/ic_camera@2x.png" mode="widthFix"></image> |
| | | <text>点击上传</text> |
| | | </view> |
| | |
| | | </view> |
| | | <view class="item-upload-item1" @click="uploadImg(4)"> |
| | | <view class="image"> |
| | | <image v-if="form.img4Full && form.img4Full !=''" :src=" form.img4Full" mode="widthFix"></image> |
| | | <image v-if="form.img4Full && form.img4Full !=''" :src=" form.img4Full" mode="widthFix"> |
| | | </image> |
| | | <image v-else src="/static/icon/ic_camera@2x.png" mode="widthFix"></image> |
| | | <text>点击上传</text> |
| | | </view> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { mapState } from 'vuex' |
| | | import { |
| | | mapState |
| | | } from 'vuex' |
| | | export default { |
| | | computed: { |
| | | ...mapState( ['userInfo']) |
| | |
| | | } |
| | | console.log('表单参数:',this.form) |
| | | this.loading =true |
| | | if(this.inNullParam(this.form.linkName) |
| | | ||this.inNullParam(this.form.lat) |
| | | ||this.inNullParam(this.form.lgt) |
| | | ||this.inNullParam(this.form.location) |
| | | ||this.inNullParam(this.form.telephone)){ |
| | | uni.showToast({title: '对不起,请按要求填写申请信息1!',icon: "none",duration: 2000}); |
| | | if (this.inNullParam(this.form.linkName) || |
| | | this.inNullParam(this.form.lat) || |
| | | this.inNullParam(this.form.lgt) || |
| | | this.inNullParam(this.form.location) || |
| | | this.inNullParam(this.form.telephone)) { |
| | | uni.showToast({ |
| | | title: '对不起,请按要求填写申请信息1!', |
| | | icon: "none", |
| | | duration: 2000 |
| | | }); |
| | | this.loading =false |
| | | return |
| | | } |
| | | if( this.form.authType == 0){ |
| | | if(this.inNullParam(this.form.img11)||this.inNullParam(this.form.img21)){ |
| | | uni.showToast({title: '对不起,请按要求填写申请信息3!',icon: "none",duration: 2000}); |
| | | uni.showToast({ |
| | | title: '对不起,请按要求填写申请信息3!', |
| | | icon: "none", |
| | | duration: 2000 |
| | | }); |
| | | this.loading =false |
| | | return |
| | | } |
| | | }else{ |
| | | if(this.inNullParam(this.form.img1) || this.inNullParam(this.form.companyName)){ |
| | | uni.showToast({title: '对不起,请按要求填写申请信息4!',icon: "none",duration: 2000}); |
| | | uni.showToast({ |
| | | title: '对不起,请按要求填写申请信息4!', |
| | | icon: "none", |
| | | duration: 2000 |
| | | }); |
| | | this.loading =false |
| | | return |
| | | } |
| | | } |
| | | if(this.form.type != 0 && this.form.authType == 1 && this.inNullParam(this.form.img2)){ |
| | | uni.showToast({title: '对不起,请按要求填写申请信息!',icon: "none",duration: 2000}); |
| | | uni.showToast({ |
| | | title: '对不起,请按要求填写申请信息!', |
| | | icon: "none", |
| | | duration: 2000 |
| | | }); |
| | | this.loading =false |
| | | return |
| | | } |
| | | if(this.form.type == 1 && this.form.authType == 1 && this.inNullParam(this.form.img2)){ |
| | | uni.showToast({title: '对不起,请按要求填写申请信息5!',icon: "none",duration: 2000}); |
| | | uni.showToast({ |
| | | title: '对不起,请按要求填写申请信息5!', |
| | | icon: "none", |
| | | duration: 2000 |
| | | }); |
| | | this.loading =false |
| | | return |
| | | } |
| | | |
| | | var that = this |
| | | var param =this.form; |
| | | if(this.form.authType == 0){ |
| | | param.img1 = this.form.img11, |
| | | param.img2 = this.form.img21 |
| | | } |
| | | uni.requestSubscribeMessage({ |
| | | tmplIds: ['4H9ztG4E9BxJLwMuYSZ6oiM7yb4KX7u7bYhkhYJP0-Y'], |
| | | success(res) { |
| | | console.log('提交参数:',param) |
| | | this.$u.api.applyForIdentity(param).then(res =>{ |
| | | if(res.code ===200){ |
| | |
| | | icon: "none", |
| | | duration: 2000 |
| | | }); |
| | | uni.navigateBack({ delta: 1 }); |
| | | uni.navigateBack({ |
| | | delta: 1 |
| | | }); |
| | | } |
| | | }).finally(()=>{ |
| | | that.loading =false |
| | | }) |
| | | } |
| | | }) |
| | | } , |
| | | chooseMPLoaction(){ |
| | |
| | | uni.openSetting({ |
| | | success:(data)=>{ |
| | | // 如果用户授权了地理信息在,则提示授权成功 |
| | | if(data.authSetting['scope.userLocation']===true){ |
| | | if (data |
| | | .authSetting[ |
| | | 'scope.userLocation' |
| | | ] === true |
| | | ) { |
| | | uni.showToast({ |
| | | title:"授权成功", |
| | | icon:"success", |
| | |
| | | }) |
| | | // 授权成功后,然后再次chooseLocation获取信息 |
| | | uni.chooseLocation({ |
| | | success: (res) => { |
| | | console.log("详细地址",res); |
| | | success: ( |
| | | res |
| | | ) => { |
| | | console |
| | | .log( |
| | | "详细地址", |
| | | res |
| | | ); |
| | | // this.getRegionFn(res); |
| | | } |
| | | }) |
| | |
| | | <style lang="scss" scoped> |
| | | .box { |
| | | width: 100%; |
| | | |
| | | .box-head { |
| | | width: 100%; |
| | | height: 300rpx; |
| | |
| | | box-sizing: border-box; |
| | | background-repeat: no-repeat; |
| | | background-size: 100% 100%; |
| | | |
| | | .box-head-botton { |
| | | width: 100%; |
| | | height: 88rpx; |
| | |
| | | border-radius: 44rpx; |
| | | margin-top: 30rpx; |
| | | } |
| | | |
| | | .box-head-info { |
| | | width: 100%; |
| | | display: flex; |
| | | flex-direction: column; |
| | | |
| | | text { |
| | | &:nth-child(1) { |
| | | font-weight: bold; |
| | | font-size: 48rpx; |
| | | color: #FFFFFF; |
| | | } |
| | | |
| | | &:nth-child(2) { |
| | | font-weight: 400; |
| | | font-size: 26rpx; |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | .box-head-content { |
| | | width: 100%; |
| | | padding: 40rpx 30rpx; |
| | |
| | | background-color: #FFFFFF; |
| | | border-radius: 20rpx; |
| | | margin-top: 30rpx; |
| | | |
| | | .item { |
| | | width: 100%; |
| | | display: flex; |
| | | flex-direction: column; |
| | | margin-bottom: 30rpx; |
| | | |
| | | &:last-child { |
| | | margin: 0 !important; |
| | | } |
| | | |
| | | .item-cate { |
| | | width: 100%; |
| | | display: flex; |
| | |
| | | padding: 30rpx 0; |
| | | box-sizing: border-box; |
| | | border-bottom: 1rpx solid #E5E5E5; |
| | | |
| | | .active { |
| | | background: #00BC12 !important; |
| | | color: #FFFFFF !important; |
| | | } |
| | | |
| | | .item-cate-row { |
| | | width: 208rpx; |
| | | height: 72rpx; |
| | |
| | | background: #EEEEEE; |
| | | border-radius: 36rpx; |
| | | margin-right: 20rpx; |
| | | |
| | | &:last-child { |
| | | margin: 0 !important; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .item-label { |
| | | display: flex; |
| | | align-items: center; |
| | | |
| | | text { |
| | | &:nth-child(1) { |
| | | font-weight: 500; |
| | | font-size: 32rpx; |
| | | color: #222222; |
| | | } |
| | | |
| | | &:nth-child(2) { |
| | | font-weight: 500; |
| | | font-size: 32rpx; |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | .item-upload { |
| | | width: 100%; |
| | | padding: 30rpx 0; |
| | |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | flex-wrap: wrap; |
| | | |
| | | .item-upload-item { |
| | | width: 300rpx; |
| | | border-radius: 10px; |
| | |
| | | justify-content: content; |
| | | overflow: hidden; |
| | | border:1px solid #c2c2c2; |
| | | |
| | | image { |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | } |
| | | |
| | | .item-upload-item1 { |
| | | width: 45%; |
| | | padding-bottom: 40px; |
| | | border-radius: 10px; |
| | | |
| | | .image { |
| | | width: 100%; |
| | | height: 196rpx; |
| | |
| | | align-items: center; |
| | | justify-content: center; |
| | | flex-direction: column; |
| | | |
| | | image { |
| | | width: 48rpx; |
| | | height: 48rpx; |
| | | } |
| | | |
| | | text { |
| | | font-weight: 400; |
| | | font-size: 28rpx; |
| | |
| | | margin-top: 12rpx; |
| | | } |
| | | } |
| | | |
| | | .info { |
| | | width: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | margin-top: 16rpx; |
| | | |
| | | text { |
| | | &:nth-child(1) { |
| | | font-weight: 400; |
| | | font-size: 26rpx; |
| | | color: #333333; |
| | | } |
| | | |
| | | &:nth-child(2) { |
| | | font-weight: 400; |
| | | font-size: 26rpx; |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | .item-val { |
| | | width: 100%; |
| | | padding: 30rpx 0; |
| | |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | border-bottom: 1rpx solid #E5E5E5; |
| | | |
| | | input { |
| | | width: 100%; |
| | | font-weight: 400; |
| | | font-size: 30rpx; |
| | | color: #222222; |
| | | } |
| | | |
| | | text { |
| | | font-weight: 400; |
| | | font-size: 30rpx; |
| | | color: #666666; |
| | | } |
| | | |
| | | button { |
| | | width: 100%; |
| | | height: 100%; |