Commit 740f8193 authored by 刘用法's avatar 刘用法

Merge branch 'dev' of https://git.banshouhui.com/lijundan/self-support into dev

parents 596f8281 4ffdbee1
...@@ -9,8 +9,10 @@ ...@@ -9,8 +9,10 @@
title-bold="true" title-bold="true"
></u-navbar> ></u-navbar>
<view class="content-cody"> <view class="content-cody">
<view class="title">{{ info.type }}</view> <view v-for="item,key in info.url" :key="key">
<view class="content" v-for="item in info.url"><image :src="item" mode="aspectFit"></image></view> <view class="title">{{ info.desc[key] }}</view>
<image class="content" :src="item" mode="aspectFit"></image>
</view>
</view> </view>
</view> </view>
</template> </template>
...@@ -34,9 +36,8 @@ ...@@ -34,9 +36,8 @@
let urlArr = data.url.split(','); let urlArr = data.url.split(',');
that.info.type = data.type; that.info.type = data.type;
that.info.url = urlArr; that.info.url = urlArr;
console.log(urlArr); that.info.desc = data.desc;
}catch(e){} }catch(e){}
console.log(that.info);
}) })
}, },
} }
...@@ -49,8 +50,6 @@ ...@@ -49,8 +50,6 @@
} }
.content-cody { .content-cody {
padding-left: 30rpx;
padding-right: 30rpx;
background-color: #F4F5F7; background-color: #F4F5F7;
border-radius: 12rpx; border-radius: 12rpx;
} }
...@@ -62,5 +61,6 @@ ...@@ -62,5 +61,6 @@
.content { .content {
padding-top: 30rpx; padding-top: 30rpx;
width:100%;
} }
</style> </style>
...@@ -31,56 +31,65 @@ ...@@ -31,56 +31,65 @@
isUpload: false, isUpload: false,
isUploadName: "未上传", isUploadName: "未上传",
keyName: "id_card", keyName: "id_card",
color: "#999999" color: "#999999",
desc: ['身份证人像面', '身份证国徽面'],
}, },
electrician_certificate: { electrician_certificate: {
name: "电工证", name: "电工证",
isUpload: false, isUpload: false,
isUploadName: "未上传", isUploadName: "未上传",
keyName: "electrician_certificate", keyName: "electrician_certificate",
color: "#999999" color: "#999999",
desc: ['电工证正面'],
}, },
driver_license: { driver_license: {
name: "驾驶证", name: "驾驶证",
isUpload: false, isUpload: false,
isUploadName: "未上传", isUploadName: "未上传",
keyName: "driver_license", keyName: "driver_license",
color: "#999999" color: "#999999",
desc: ['驾驶证正面'],
}, },
driving_license: { driving_license: {
name: "行驶证", name: "行驶证",
isUpload: false, isUpload: false,
isUploadName: "未上传", isUploadName: "未上传",
keyName: "driving_license", keyName: "driving_license",
color: "#999999" color: "#999999",
desc: ['行驶证正面'],
}, },
vehicle: { vehicle: {
name: "车辆照", name: "车辆照",
isUpload: false, isUpload: false,
isUploadName: "未上传", isUploadName: "未上传",
keyName: "vehicle", keyName: "vehicle",
color: "#999999" color: "#999999",
desc: ['车辆正面/看到车牌', '车辆侧面/看到外观'],
}, },
high_sky_license: { high_sky_license: {
name: "高空证", name: "高空证",
isUpload: false, isUpload: false,
isUploadName: "未上传", isUploadName: "未上传",
keyName: "high_sky_license", keyName: "high_sky_license",
color: "#999999" color: "#999999",
desc: ['高空证正面'],
}, },
refrigeration_license: { refrigeration_license: {
name: "制冷证", name: "制冷证",
isUpload: false, isUpload: false,
isUploadName: "未上传", isUploadName: "未上传",
keyName: "refrigeration_license", keyName: "refrigeration_license",
color: "#999999" color: "#999999",
desc: ['制冷证正面'],
}, },
business_license: { business_license: {
name: "营业执照", name: "营业执照",
isUpload: false, isUpload: false,
isUploadName: "未上传", isUploadName: "未上传",
keyName: "business_license", keyName: "business_license",
color: "#999999" color: "#999999",
desc: ['营业执照正面'],
}, },
} }
} }
...@@ -111,6 +120,7 @@ ...@@ -111,6 +120,7 @@
}, },
toDetail(key) { toDetail(key) {
let data = this.list[key].data; let data = this.list[key].data;
data.desc = this.list[key].desc;
if(data.status != 1){ if(data.status != 1){
wx.navigateTo({ wx.navigateTo({
url: '/pages/mine/cert/upload?type=' + data.type_key url: '/pages/mine/cert/upload?type=' + data.type_key
......
...@@ -12,22 +12,17 @@ ...@@ -12,22 +12,17 @@
请点击上传图片,图片大小不大于3M 请点击上传图片,图片大小不大于3M
</view> </view>
<view class="upload-container"> <view class="upload-container">
<view class="img-container" v-for="(item, index) in imgList[key].desc" <view class="img-container" v-for="(item, index) in imgList[key].desc" :key="index">
:class="{'u-margin-left-30': index>0}" :key="index"> <image class="upload-img" @click="handleClick(type, index)" :src="imgs[index]" mode="widthFix">
<image class="upload-img" @click="handleClick(type, index)" :src="imgs[index]" mode="aspectFill">
</image> </image>
<text class="img-desc">{{ item }}</text> <text class="img-desc">{{ item }}</text>
</view> </view>
</view> </view>
<view class="notice-bottom">
<image :src="icon" class="icon"></image>
<text class="u-padding-left-10">若无需上传证件反面照,则点击上传正面照即可</text>
</view> </view>
<view class="button-container"> <view class="button-container">
<view class="submit-button" :class="{'is-ok': isOk}" @click="submitCert()">提交</view> <view class="submit-button" :class="{'is-ok': isOk}" @click="submitCert()">提交</view>
</view> </view>
</view> </view>
</view>
</template> </template>
<script> <script>
...@@ -45,8 +40,8 @@ ...@@ -45,8 +40,8 @@
type: null, type: null,
isOk: false, isOk: false,
imgs: [ imgs: [
process.uniEnv.qn_base_url + "sahgnchuanzhaopian.png", process.uniEnv.qn_base_url + "shangchuanzhaopian-big.png",
process.uniEnv.qn_base_url + "sahgnchuanzhaopian.png", process.uniEnv.qn_base_url + "shangchuanzhaopian-big.png",
], ],
imgList: [{ imgList: [{
typeKey: 'id_card', typeKey: 'id_card',
...@@ -57,19 +52,19 @@ ...@@ -57,19 +52,19 @@
{ {
typeKey: 'electrician_certificate', typeKey: 'electrician_certificate',
typeName: '电工证', typeName: '电工证',
desc: ['上传电工证照片', '无需上传反面照'], desc: ['上传电工证照片'],
maxImgs: 1 maxImgs: 1
}, },
{ {
typeKey: 'driver_license', typeKey: 'driver_license',
typeName: '驾驶证', typeName: '驾驶证',
desc: ['上传驾驶证照片', '无需上传反面照'], desc: ['上传驾驶证照片'],
maxImgs: 1 maxImgs: 1
}, },
{ {
typeKey: 'driving_license', typeKey: 'driving_license',
typeName: '行驶证', typeName: '行驶证',
desc: ['上传行驶证照片', '无需上传反面照'], desc: ['上传行驶证照片'],
maxImgs: 1 maxImgs: 1
}, },
{ {
...@@ -81,19 +76,19 @@ ...@@ -81,19 +76,19 @@
{ {
typeKey: 'high_sky_license', typeKey: 'high_sky_license',
typeName: '高空证', typeName: '高空证',
desc: ['上传高空证照片', '无需上传反面照'], desc: ['上传高空证照片'],
maxImgs: 1 maxImgs: 1
}, },
{ {
typeKey: 'refrigeration_license', typeKey: 'refrigeration_license',
typeName: '制冷证', typeName: '制冷证',
desc: ['上传制冷证照片', '无需上传反面照'], desc: ['上传制冷证照片'],
maxImgs: 1 maxImgs: 1
}, },
{ {
typeKey: 'business_license', typeKey: 'business_license',
typeName: '营业执照', typeName: '营业执照',
desc: ['上传营业执照照片', '无需上传反面照'], desc: ['上传营业执照照片'],
maxImgs: 1 maxImgs: 1
} }
], ],
...@@ -113,13 +108,6 @@ ...@@ -113,13 +108,6 @@
} }
}, },
async handleClick(certType, key) { async handleClick(certType, key) {
if (this.imgList[this.key].desc[key] == '无需上传反面照') {
uni.showToast({
icon: "none",
title: this.imgList[this.key].desc[key],
});
return
}
let self = this let self = this
self.uploadType = certType || '' self.uploadType = certType || ''
let attr = { let attr = {
...@@ -186,7 +174,6 @@ ...@@ -186,7 +174,6 @@
} }
.notice-top { .notice-top {
width: 290rpx;
height: 32rpx; height: 32rpx;
font-size: 32rpx; font-size: 32rpx;
font-family: PingFang-SC-Bold, PingFang-SC; font-family: PingFang-SC-Bold, PingFang-SC;
...@@ -225,7 +212,7 @@ ...@@ -225,7 +212,7 @@
height: 104rpx; height: 104rpx;
background: #D1D4D4; background: #D1D4D4;
border-radius: 52rpx; border-radius: 52rpx;
margin-top: 250rpx; margin-top: 224rpx;
text-align: center; text-align: center;
line-height: 104rpx; line-height: 104rpx;
display: inline-block; display: inline-block;
...@@ -240,16 +227,12 @@ ...@@ -240,16 +227,12 @@
.button-container { .button-container {
text-align: center; text-align: center;
} padding-bottom: 30rpx;
.upload-container {
display: flex;
} }
.upload-img { .upload-img {
margin-top: 30rpx; margin-top: 30rpx;
width: 300rpx; width: 100%;
height: 226rpx;
} }
.two { .two {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment