Commit 92df0de8 authored by qipeng's avatar qipeng

我的相册 图片下载

parent e21c31ce
...@@ -24,8 +24,8 @@ ...@@ -24,8 +24,8 @@
<view>{{item.merchantName}}</view> <view>{{item.merchantName}}</view>
</view> </view>
<view class="album-subject"> <view class="album-subject">
<view class="subject-List" v-for="(item2,index2) in item.list" :key="index2"> <view class="subject-List" v-for="(item2,index2) in item.photoOrderImgResVoList" :key="index2">
<image class="list-image" :src="item2.faceSourceUrl||item2.faceAiUrl" @click="stopPhoto(index,index2)"></image> <image class="list-image" :src="item2.imgUrl" @click="stopPhoto(index,index2)"></image>
<u-checkbox v-model="item2.checkType" v-if="checkTypeFun==true" @click.stop.native="()=>{}" @change="stopPhoto(index,index2)" shape="circle" class="list-uCheck"></u-checkbox> <u-checkbox v-model="item2.checkType" v-if="checkTypeFun==true" @click.stop.native="()=>{}" @change="stopPhoto(index,index2)" shape="circle" class="list-uCheck"></u-checkbox>
</view> </view>
</view> </view>
...@@ -101,14 +101,15 @@ export default { ...@@ -101,14 +101,15 @@ export default {
sellingPrices:0,//售价 sellingPrices:0,//售价
favorablePrice:0,//优惠 favorablePrice:0,//优惠
priceNum:0,//选购了多少照片 priceNum:0,//选购了多少照片
options:{},//参数 //options:{},//参数
imgList:[],//下载图片列表 imgList:[],//下载图片列表
downImgNumber:0,//下载图片的数量 downImgNumber:0,//下载图片的数量
} }
}, },
onLoad(option) { onLoad(option) {
this.openid = 'oroHZ5B455jLw_BqDmVpr7W13NLY' //获取openid uni.getStorageSync('openid') this.openid = uni.getStorageSync('openid') //获取openid
this.options = option //this.openid = 'oh2UV1lFq2CjxbBw0y7DOohhBFBM' //获取openid uni.getStorageSync('openid')
//this.options = option
//this.merchantId = 'z0015605022691a5945bbe463141668c'//uni.getStorageSync('merchantId') //this.merchantId = 'z0015605022691a5945bbe463141668c'//uni.getStorageSync('merchantId')
this.obtainProvince()//获取省市区 this.obtainProvince()//获取省市区
this.inquireMerchant()//查询所有商户 this.inquireMerchant()//查询所有商户
...@@ -147,14 +148,14 @@ export default { ...@@ -147,14 +148,14 @@ export default {
}, },
getPhotos(){//照片 getPhotos(){//照片
var data = { var data = {
openid:this.openid, userId:this.openid,
merchantId:this.merchantId,//商户ID orderType:11,//商户ID
} }
this.$request('wechatUser/pdFace/getAlbumList',data).then((res)=>{ this.$request('orderc/photo/queryPhotoOrderList',data).then((res)=>{
if(res.code=='00'){ if(res.code=='00'){
this.previewData = res.data this.previewData = res.data
this.previewData.forEach((item,index)=>{ this.previewData.forEach((item,index)=>{
item.list.forEach((item2,index2)=>{ item.photoOrderImgResVoList.forEach((item2,index2)=>{
item2['checkType'] = false item2['checkType'] = false
}) })
}) })
...@@ -186,10 +187,10 @@ export default { ...@@ -186,10 +187,10 @@ export default {
if(this.checkProjectAll==true){ if(this.checkProjectAll==true){
this.checkProjectAll=false this.checkProjectAll=false
} }
if(this.previewData[index].list[index2].checkType==false){ if(this.previewData[index].photoOrderImgResVoList[index2].checkType==false){
this.previewData[index].list[index2].checkType = true this.previewData[index].photoOrderImgResVoList[index2].checkType = true
}else{ }else{
this.previewData[index].list[index2].checkType = false this.previewData[index].photoOrderImgResVoList[index2].checkType = false
} }
this.checkTypeFun = false this.checkTypeFun = false
this.checkTypeFun = true this.checkTypeFun = true
...@@ -198,25 +199,25 @@ export default { ...@@ -198,25 +199,25 @@ export default {
if(this.checkProjectAll==true){ if(this.checkProjectAll==true){
this.checkProjectAll = false this.checkProjectAll = false
this.previewData.forEach((item,index)=>{ this.previewData.forEach((item,index)=>{
item.list.forEach((item2,index2)=>{ item.photoOrderImgResVoList.forEach((item2,index2)=>{
item2.checkType = false item2.checkType = false
}) })
}) })
}else{ }else{
this.checkProjectAll = true this.checkProjectAll = true
this.previewData.forEach((item,index)=>{ this.previewData.forEach((item,index)=>{
item.list.forEach((item2,index2)=>{ item.photoOrderImgResVoList.forEach((item2,index2)=>{
item2.checkType = true item2.checkType = true
}) })
}) })
} }
}, },
upLoad(){//下 upLoad(){//下
this.imgList = [] this.imgList = []
this.previewData.forEach((item,index)=>{ this.previewData.forEach((item,index)=>{
item.list.forEach((item2,index2)=>{ item.photoOrderImgResVoList.forEach((item2,index2)=>{
if(item2.checkType==true){ if(item2.checkType==true){
var imgUrl = item2.faceSourceUrl||item2.faceAiUrl var imgUrl = item2.imgUrl
this.imgList.push(imgUrl) this.imgList.push(imgUrl)
} }
}) })
......
...@@ -354,7 +354,7 @@ ...@@ -354,7 +354,7 @@
<image class="coupon-backgruondImg" src="../../../../static/img/my/backgroundIcon01.png" ></image> <image class="coupon-backgruondImg" src="../../../../static/img/my/backgroundIcon01.png" ></image>
<u-icon class="close" name="close-circle" @click="closeMask"></u-icon> <u-icon class="close" name="close-circle" @click="closeMask"></u-icon>
</view> </view>
<u-button type="primary" shape="circle" @click="showtip = false" v-if="showtip">知道了</u-button> <u-button type="primary" shape="circle" @click="showtipCloseFun()">知道了</u-button>
</view> </view>
</u-mask> </u-mask>
</view> </view>
...@@ -624,6 +624,10 @@ export default { ...@@ -624,6 +624,10 @@ export default {
this.showtip= false//领取提示 this.showtip= false//领取提示
this.showUseRule=true//使用规则提示 this.showUseRule=true//使用规则提示
}, },
showtipCloseFun(){//点击使用规则
this.showtip= false//领取提示
this.showUseRule=false//使用规则提示
},
closeMask(){//遮罩关闭 closeMask(){//遮罩关闭
this.showtip= false//领取提示 this.showtip= false//领取提示
this.showUseRule= false//使用规则提示 this.showUseRule= false//使用规则提示
...@@ -663,6 +667,7 @@ export default { ...@@ -663,6 +667,7 @@ export default {
if(item.useRange==11&&item.couponStatus==1){ if(item.useRange==11&&item.couponStatus==1){
this.couponType=true this.couponType=true
} }
}) })
}else{ }else{
uni.showToast({ uni.showToast({
...@@ -1633,8 +1638,8 @@ export default { ...@@ -1633,8 +1638,8 @@ export default {
position: fixed; position: fixed;
right: -30rpx; right: -30rpx;
bottom: 200rpx; bottom: 200rpx;
width: 120rpx; width: 140rpx;
height: 120rpx; height: 140rpx;
z-index: 20; z-index: 20;
} }
</style> </style>
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