Commit d12246c4 authored by 李俊赕's avatar 李俊赕

add-standard-data

parent f30a6ae3
<template>
<cover-view class="standard-box" >
<view class="standard-box" v-if="currentItem">
<swiper class="swiper-box" :current="swiperCurrent" @transition="transition" @animationfinish="animationfinish">
<swiper-item class="swiper-item" key="swiper1">
<view class="title">
拍照要求
</view>
<view class="txt-box">
<view class="txt">
1.充电桩必须通电,可看到电源指示灯亮
<view class="txt-box" >
<view class="txt" v-for="(txt,index) in currentItem.main_point" :key="index">
{{index+1}}. {{txt}}
</view>
<view class="txt tips">
注意:人桩合影必须上传至少两张相片,一张
注意:{{currentItem.note}}
</view>
</view>
</swiper-item>
<swiper-item class="swiper-item" v-for="(src, index) in swiperList" :key="index">
<cover-image bindtap="previewImage(item,index)" class="icon" mode="aspectFit" :src="src"></cover-image>
<cover-image @click="previewImage(index)" class="icon" mode="aspectFit" :src="src"></cover-image>
</swiper-item>
</swiper>
......@@ -24,7 +24,7 @@
ref="uTabs" :list="tabList" :current="current"
@change="tabsChange" :is-scroll="false" swiperWidth="750"></u-tabs-swiper>
</view>
</cover-view>
</view>
</template>
<script>
......@@ -66,7 +66,7 @@
watch:{
"currentItem.images"(val){
if(val.length>0){
this.changeList()
this.changeList(val)
// let swiperList = JSON.parse(JSON.stringify(val))
// let len = tabs.length
// let tabList = [{name:'拍照要求'}].concat(Array.from({name:'示意图'},len))
......@@ -87,11 +87,20 @@
this.getSwiperHeight()
},
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')
changeList(list){
let swiperList = JSON.parse(JSON.stringify(list))
let len = list.length
let tabList = []
for(let i=0;i<len;i++){
let item = {
name:'示意图' + (i + 1)
}
tabList.push(item)
}
tabList = [{name:'拍照要求'}].concat(tabList)
this.swiperList = swiperList
this.tabList = tabList
},
getSwiperHeight(){
const globalData = getApp().globalData
......@@ -100,7 +109,7 @@
previewImage(index){
uni.previewImage({
current:index,
urls:[],
urls:this.swiperList,
})
},
// tabs通知swiper切换
......@@ -172,6 +181,7 @@
overflow: auto;
}
.txt{
white-space: normal;
padding-top:26rpx;
line-height: 34rpx;
color:#666;
......
......@@ -86,13 +86,7 @@
this.waterInfo.date = this.getTime()
this.getLocation()
this.getMarkPath()
console.log(standard,'standard')
// this.getSystemInfo()
// uni.setNavigationBarColor({
// frontColor: '#FFFFFF',
// backgroundColor: '#333333',
// })
//this.address = ''
this.currentItem = photo.currentItem
},
compute: {},
watch: {
......
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