main
JING 10 months ago
parent 19410ee7fc
commit 5cafa2e1c8
  1. 4
      pages/user/archives/detail.vue
  2. 49
      pagesA/merge/index.vue

@ -58,8 +58,8 @@
<style lang="scss"> <style lang="scss">
.container{padding: 20rpx 26rpx;} .container{padding: 20rpx 26rpx;}
.imgList{width: 100%; height: auto; display: flex; flex-wrap: wrap;} .imgList{width: 100%; height: auto; display: flex; flex-wrap: wrap; justify-content: space-between;}
.imgBox{width: 140rpx; height: 140rpx;} .imgBox{width: 130rpx; height: 130rpx; margin-top: 10rpx; }
.imgBox image{width: 140rpx; height: 140rpx;} .imgBox image{width: 140rpx; height: 140rpx;}
.newBtn{ .newBtn{

@ -147,7 +147,13 @@
</view> </view>
<view class="popupDesc"> <view class="popupDesc">
<scroll-view class="scrollBox" scroll-x="true" @scroll="scroll" scroll-left="0"> <scroll-view class="scrollBox" scroll-x="true" @scroll="scroll" scroll-left="0">
<view class="imgBox">
<view class="imgBox" v-for="(item,index) in selectList" :key="index" @click="selectPortrait(index)">
<image class="imgBg" :src="item.model_image_thumbnail || '/static/img/user/user.png'" mode="widthFix"></image>
<image class="imgSelect" v-if="index == selectIndex" src="/static/img/index/select.png" mode="widthFix"></image>
</view>
<!-- <view class="imgBox">
<image class="imgBg" src="/static/img/user/user.png" mode="widthFix"></image> <image class="imgBg" src="/static/img/user/user.png" mode="widthFix"></image>
<image class="imgSelect" src="/static/img/index/select.png" mode="widthFix"></image> <image class="imgSelect" src="/static/img/index/select.png" mode="widthFix"></image>
</view> </view>
@ -160,7 +166,7 @@
<view class="imgBox"> <view class="imgBox">
<image class="imgBg" src="/static/img/user/user.png" mode="widthFix"></image> <image class="imgBg" src="/static/img/user/user.png" mode="widthFix"></image>
</view> </view> -->
</scroll-view> </scroll-view>
</view> </view>
<view class="popupBtn"> <view class="popupBtn">
@ -240,6 +246,10 @@
}, },
//
selectList:[],
selectIndex:0,//
} }
}, },
onLoad(){ onLoad(){
@ -403,12 +413,28 @@
submit(key){ submit(key){
var _this =this; var _this =this;
_this.close(key); _this.close(key);
if(key == 'tips_show') switch(key)
{ {
//
case 'tips_show':
uni.navigateTo({ uni.navigateTo({
url:'/pagesA/merge/face_1' url:'/pagesA/merge/face_1'
}) });
break;
//
case 'select_show':
uni.navigateTo({
url:'/pagesA/merge/idcard'
});
break;
//
case 'custom_show':
break;
} }
}, },
// //
checkHave(item){ checkHave(item){
@ -426,6 +452,13 @@
} }
else else
{ {
var selectList = d;
selectList.forEach((item, index) => {
selectList[index].model_image = _this.$api.ossurl(item.model_image);
selectList[index].model_image_thumbnail = _this.$api.ossurl(item.model_image_thumbnail);
});
_this.selectList = selectList;
_this.selectIndex = 0;
_this.select_show = true; _this.select_show = true;
} }
}); });
@ -440,6 +473,12 @@
},
//
selectPortrait(index)
{
var _this =this;
_this.selectIndex = index;
}, },
@ -607,7 +646,7 @@
white-space: nowrap; white-space: nowrap;
} }
.imgBox{width: 160rpx; height: 160rpx; position: relative; margin: 0rpx 0rpx 0rpx 20rpx; display: inline-block;} .imgBox{width: 160rpx; height: 160rpx; position: relative; margin: 0rpx 0rpx 0rpx 20rpx; display: inline-block; overflow: hidden;}
.imgBox .imgBg{width: 160rpx; height: 160rpx; border-radius: 20rpx; position: absolute; left: 0; top: 0;} .imgBox .imgBg{width: 160rpx; height: 160rpx; border-radius: 20rpx; position: absolute; left: 0; top: 0;}
.imgBox .imgSelect{width: 40rpx; height: 34rpx;position: absolute; bottom: 0; right: 0; z-index: 5;} .imgBox .imgSelect{width: 40rpx; height: 34rpx;position: absolute; bottom: 0; right: 0; z-index: 5;}
.a1{ .a1{

Loading…
Cancel
Save