Commit 7979cbef authored by 李俊赕's avatar 李俊赕

修改-拍照规范页面

parent 67562e01
{ // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
// launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
"version": "0.0",
"configurations": [{
"default" :
{
"launchtype" : "remote"
},
"mp-weixin" :
{
"launchtype" : "local"
},
"type" : "uniCloud"
}
]
}
...@@ -14,15 +14,14 @@ ...@@ -14,15 +14,14 @@
</view> </view>
</view> </view>
</swiper-item> </swiper-item>
<swiper-item class="swiper-item" v-for="(src, index) in currentItem.images" :key="index"> <swiper-item class="swiper-item" v-for="(src, index) in swiperList" :key="index">
<!-- {{item.title}} -->
<cover-image bindtap="previewImage(item,index)" class="icon" mode="aspectFit" :src="src"></cover-image> <cover-image bindtap="previewImage(item,index)" class="icon" mode="aspectFit" :src="src"></cover-image>
</swiper-item> </swiper-item>
</swiper> </swiper>
<view class="tab-box"> <view class="tab-box">
<u-tabs-swiper bg-color="transparent" inactive-color="#999" <u-tabs-swiper bg-color="transparent" inactive-color="#999"
ref="uTabs" :list="list" :current="current" ref="uTabs" :list="tabList" :current="current"
@change="tabsChange" :is-scroll="false" swiperWidth="750"></u-tabs-swiper> @change="tabsChange" :is-scroll="false" swiperWidth="750"></u-tabs-swiper>
</view> </view>
</view> </view>
...@@ -44,14 +43,14 @@ ...@@ -44,14 +43,14 @@
}, },
data() { data() {
return { return {
list: [{ tabList: [{
name: '十年' name: '十年'
}, { }, {
name: '青春' name: '青春'
}, { }, {
name: '之约' name: '之约'
}], }],
tabs:[{ swiperList:[{
title:'记录的距离大家零点九零杰拉德杰拉德建立的连接就111111111111', title:'记录的距离大家零点九零杰拉德杰拉德建立的连接就111111111111',
},{ },{
title:'记录的距离大家零点九零杰拉德杰拉德建立的连接就222222', title:'记录的距离大家零点九零杰拉德杰拉德建立的连接就222222',
...@@ -64,6 +63,17 @@ ...@@ -64,6 +63,17 @@
height:0, height:0,
} }
}, },
watch:{
"currentItem.images"(val){
if(val.length>0){
this.changeList()
// let swiperList = JSON.parse(JSON.stringify(val))
// let len = tabs.length
// let tabList = [{name:'拍照要求'}].concat(Array.from({name:'示意图'},len))
// console.log(tabList,'tabList')
}
},
},
created() { created() {
// getApp().trackPage('照片预览页') // getApp().trackPage('照片预览页')
// console.log(e, 'e') // console.log(e, 'e')
...@@ -73,9 +83,16 @@ ...@@ -73,9 +83,16 @@
// console.log(this.images, 'this.images') // console.log(this.images, 'this.images')
}, },
mounted(){ mounted(){
this.changeList(this.currentItem.images)
this.getSwiperHeight() this.getSwiperHeight()
}, },
methods: { methods: {
changeList(){
let swiperList = JSON.parse(JSON.stringify(val))
let len = tabs.length
let tabList = [{name:'拍照要求'}].concat(Array.from({name:'示意图'},len))
console.log(tabList,'tabList')
},
getSwiperHeight(){ getSwiperHeight(){
const globalData = getApp().globalData const globalData = getApp().globalData
this.height = globalData.screenHeight*2 - globalData.navHeight - 200 this.height = globalData.screenHeight*2 - globalData.navHeight - 200
......
...@@ -484,6 +484,7 @@ ...@@ -484,6 +484,7 @@
bottom:0; bottom:0;
left:0;right:0; left:0;right:0;
height:200rpx; height:200rpx;
z-index:100;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
......
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