Jelajahi Sumber

细节调整

DELL 3 tahun lalu
induk
melakukan
a71f318409

+ 1 - 1
packageGoods/order/index.vue

@@ -29,7 +29,7 @@
 							<view class="info">
 								<view class="info-title ells">{{ items.title }}</view>
 								<view class="info-num flex">
-									<view class="info-num-price">¥{{ $numberFormat(85) }}</view>
+									<view class="info-num-price">¥{{ $numberFormat(items.price) }}</view>
 									<view class="info-num-goods">x{{ items.goodsNum }}</view>
 								</view>
 							</view>

+ 3 - 0
packageGoods/recovery/index.vue

@@ -57,6 +57,7 @@
 			}
 		},
 		onLoad(opthios) {
+			
 			if(opthios){
 				this.value = opthios.num
 				this.recovery = {
@@ -66,6 +67,7 @@
 					skuId: opthios.skuId=="null"?null:Number(opthios.skuId),
 					storageId: opthios.storageId,
 				}
+				
 				this.getDetail()
 			}
 		},
@@ -80,6 +82,7 @@
 				$http.post('/api/v1/mp/user/prize/recovery/settle', this.recovery).then(res => {
 					uni.hideLoading();
 					if (res.code == 0) {
+						this.value = res.data.num
 						res.data.picUrl = env.filePublic + res.data.picUrl.split(',')[0] + '?imageView2/2/w/170'
 						this.list = res.data
 					}

+ 29 - 3
packagePrize/prize/index.vue

@@ -199,7 +199,7 @@
 			getList() {
 				let _this = this
 				let url = _this.state == 0 ? '/api/v1/mp/user/mine/prize/list' : '/api/v1/mp/user/mine/coupon/list'
-				let data = _this.state == 0 ? { status:this.statusIndex } : {
+				let data = _this.state == 0 ? { } : {
 					status: 1
 				}
 				uni.showLoading({
@@ -228,18 +228,44 @@
 					this.loading = false
 				})
 			},
+			getListTwo(){
+				let _this = this
+				let url = '/api/v1/mp/user/prize/recovery/list'
+				this.loading = true
+				this.checkedAll = false
+				$http.post(`${ url }?pageNum=${_this.pageNum}&pageSize=20`, {}).then(res => {
+					uni.hideLoading();
+					this.loading = false
+					if (res.code == 0) {
+						console.log(res);
+						res.rows.forEach(item => {
+							item.status = 3
+							item.goodsNum = item.num
+							let picUrlArr = item.picUrl.split(',')
+							item.picUrl = env.filePublic + picUrlArr[0] + '?imageView2/2/w/170'
+						})
+						_this.list = _this.list.concat(res.rows)
+					}
+				}).catch(() => {
+					uni.hideLoading();
+					this.loading = false
+				})
+			},
 			
 			typeState(index){
+				this.list = []
 				this.typeIndex = index//样式改变
 				// this.statusIndex = index
 				if(index == 0 ){
 					this.statusIndex = 1 //待提货
+					this.getList()
 				}
 				if(index == 1 ){
 					this.statusIndex = 3 //已兑换
+					this.getListTwo()
 				}
-				this.list = []
-				this.getList()
+				
+				
 			},
 
 			toIndex() {