Commit ed370d57 authored by qipeng's avatar qipeng

BUG修改

parent 92eac68a
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
<u-checkbox v-model="item.checkType" v-if="checkTypeFun==true" shape="circle" class="list-uCheck" @click.stop.native="()=>{}" @change="stopPhoto(index)"></u-checkbox> <u-checkbox v-model="item.checkType" v-if="checkTypeFun==true" shape="circle" class="list-uCheck" @click.stop.native="()=>{}" @change="stopPhoto(index)"></u-checkbox>
<view class="list-mask" @click.stop.native="()=>{}" @click="projectCheckPhoto(index)" >预览</view> <view class="list-mask" @click.stop.native="()=>{}" @click="projectCheckPhoto(index)" >预览</view>
</view> </view>
<view class="subject-noMore" v-if="previewDataType==true">暂无更多数据</view>
</view> </view>
<!--脚部--> <!--脚部-->
<view class="album-bottom"> <view class="album-bottom">
...@@ -149,6 +150,7 @@ export default { ...@@ -149,6 +150,7 @@ export default {
// src: '../static/album/customPic.png' // src: '../static/album/customPic.png'
// }, // },
], ],
previewDataType:false,
previewNum: 0, //当前是第几张图片 previewNum: 0, //当前是第几张图片
checkTypeFun:true,//刷新选项 checkTypeFun:true,//刷新选项
//左右滑动监听开始 //左右滑动监听开始
...@@ -172,13 +174,14 @@ export default { ...@@ -172,13 +174,14 @@ export default {
priceNum:0,//选购了多少照片 priceNum:0,//选购了多少照片
merchantMessage:[],//景区基础参数 merchantMessage:[],//景区基础参数
masterSlaveCouponList:[],//优惠券 masterSlaveCouponList:[],//优惠券
} }
}, },
onLoad(option) { onLoad(option) {
this.companyId = this.$commonjs.getCompanyId(option)||'' this.companyId = this.$commonjs.getCompanyId(option)||''
//this.companyId = '6da527f930be4aa1904fe17fcb41874f' //this.companyId = '6da527f930be4aa1904fe17fcb41874f'
this.openid = uni.getStorageSync('openid') //获取openid this.openid = uni.getStorageSync('openid') //获取openid
//this.openid = 'oroHZ5B455jLw_BqDmVpr7W13NLY' //获取openid //this.openid = 'oh2UV1lyYABHMZ1rMlgjhVHyyYDQ' //获取openid oroHZ5B455jLw_BqDmVpr7W13NLY
this.faceIds = JSON.parse(option.faceIds) this.faceIds = JSON.parse(option.faceIds)
var locationData = { var locationData = {
latitude:'', latitude:'',
...@@ -245,6 +248,10 @@ export default { ...@@ -245,6 +248,10 @@ export default {
}) })
}, },
getPhotos(){//照片 getPhotos(){//照片
//显示加载框
uni.showLoading({
title: '加载中'
})
var data = { var data = {
faceIds:this.faceIds,//照片ID faceIds:this.faceIds,//照片ID
openid:this.openid, openid:this.openid,
...@@ -254,6 +261,11 @@ export default { ...@@ -254,6 +261,11 @@ export default {
this.$request('wechatUser/pdFace/list',data).then((res)=>{ this.$request('wechatUser/pdFace/list',data).then((res)=>{
if(res.code=='00'){ if(res.code=='00'){
this.previewData = res.data this.previewData = res.data
if(this.previewData){
this.previewDataType = true
}else{
this.previewDataType = false
}
this.previewData.forEach((item,index)=>{ this.previewData.forEach((item,index)=>{
item['checkType'] = false item['checkType'] = false
if(item.sellingPrice!=null){ if(item.sellingPrice!=null){
...@@ -264,7 +276,8 @@ export default { ...@@ -264,7 +276,8 @@ export default {
item['title']='' item['title']=''
}) })
this.mearchLoadList() this.mearchLoadList()
//隐藏加载框
uni.hideLoading()
}else{ }else{
this.$refs.uToast.show({ this.$refs.uToast.show({
title: res.message, title: res.message,
...@@ -664,6 +677,14 @@ export default { ...@@ -664,6 +677,14 @@ export default {
border-color: #2979ff !important; border-color: #2979ff !important;
} }
} }
.subject-noMore{
width: 100%;
height: 40rpx;
color: #666666;
font-size: 30rpx;
line-height: 40rpx;
text-align: center;
}
} }
.album-bottom { .album-bottom {
......
...@@ -446,6 +446,7 @@ export default { ...@@ -446,6 +446,7 @@ export default {
this.getData(1) this.getData(1)
}, },
onShow(){ onShow(){
this.pageIndex = 1
this.getData(1) this.getData(1)
}, },
methods: { methods: {
......
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