Forráskód Böngészése

修复省市区问题、修改支付弹框所显示商品图片、线下的盲票兑奖类型可以回收、首页轮播图片大小修改

DELL 3 éve
szülő
commit
f202b68b82

+ 5 - 5
src/components/area-picker/area-picker.vue

@@ -32,13 +32,16 @@
 		},
 		data() {
 			return {
-				value: [0,0,0],//所选下标
+				value: [],//所选下标
 				provinceRes: [],//省
 				cityRes: [],//市
 				areaRes: [],//区
 				
 			};
 		},
+		mounted() {
+			this.getArea()
+		},
 		methods: {
 			//切换
 			async bindChange(e){
@@ -85,7 +88,7 @@
 					pid: 0
 				})
 				let cityRes = await $http.post('/api/v1/mp/area/listByPid', {
-					pid: provinceRes && provinceRes.data && provinceRes.data[1].areaId
+					pid: provinceRes && provinceRes.data && provinceRes.data[0].areaId
 				})
 				let areaRes = await $http.post('/api/v1/mp/area/listByPid', {
 					pid: cityRes && cityRes.data && cityRes.data[0].areaId
@@ -98,9 +101,6 @@
 				this.$emit('cancel')
 			},
 		},
-		mounted() {
-			this.getArea()
-		}
 	}
 </script>
 

+ 1 - 1
src/packagePrize/goods/index.vue

@@ -143,7 +143,7 @@
 						let info = {
 							...res.data,
 							...this.info,
-							picUrl: env.filePublic + res.data.picUrl.split(',')[0],
+							picUrl: env.filePublic + res.data.goodsPicUrl.split(',')[0],
 						}
 						this.payInfo = info
 						this.payShow = true

+ 2 - 1
src/packagePrize/prize/index.vue

@@ -75,7 +75,7 @@
 					<!-- 来源 -->
 					<view class="prize-goods-list-item__btn flex" v-if="item.status == 1">
 						<view class="type">来自:{{ item.inType && item.inType.desc }}</view>
-						<!-- <view class="btn" @click="toRecovery(item)" v-if="item.inType.value == '1' || item.inType.value == '2'">兑换盲豆</view> -->
+						<view class="btn" @click="toRecovery(item)" v-if="item.inType.value == '1' && item.type.value == 'offline'">兑换盲豆</view>
 					</view>
 					<view class="prize-goods-list-item__btn flex" v-else>
 						<view class="type"></view>
@@ -258,6 +258,7 @@
 							if (_this.state == 0) {
 								item.checked = false
 								item.inType = JSON.parse(item.inType)
+								item.type = JSON.parse(item.type)
 							}
 						})
 						_this.total = res.total

+ 1 - 1
src/pages/index/index.vue

@@ -40,7 +40,7 @@
 						:duration="200" @change="changeTicket">
 						<swiper-item v-for="(item, index) in ticketList" :key="index">
 							<view class="ticket-swiper-item flex" @click="toTicketBox(item)">
-								<image class="ticket-swiper-item-box" :src="item.picUrl[0]" mode="scaleToFill"></image>
+								<image class="ticket-swiper-item-box" :src="item.picUrl[0]" mode="aspectFit"></image>
 							</view>
 						</swiper-item>
 					</swiper>