guhongwei 2 jaren geleden
bovenliggende
commit
8be583e746
1 gewijzigde bestanden met toevoegingen van 12 en 10 verwijderingen
  1. 12 10
      pagesIntegral/order/detail.vue

+ 12 - 10
pagesIntegral/order/detail.vue

@@ -72,7 +72,7 @@
 					<text>库存{{info.num||0}}</text>
 					<text>库存{{info.num||0}}</text>
 				</view>
 				</view>
 				<view class="btn">
 				<view class="btn">
-					<text @click="toExchange" class="button">立即兑换</text>
+					<text @tap="toExchange" class="button">立即兑换</text>
 				</view>
 				</view>
 			</view>
 			</view>
 		</uni-popup>
 		</uni-popup>
@@ -93,11 +93,13 @@
 				// 数量
 				// 数量
 				num: 1,
 				num: 1,
 				barList: [],
 				barList: [],
-				buttonGroup: [{
-					text: '兑换',
-					backgroundColor: 'linear-gradient(90deg, #6A5ACD, #6A5ACD)',
-					color: '#fff',
-				}],
+				buttonGroup: [ //
+					{
+						text: '兑换',
+						backgroundColor: 'linear-gradient(90deg, #6A5ACD, #6A5ACD)',
+						color: '#fff',
+					}
+				],
 				// 是否显示返回顶部
 				// 是否显示返回顶部
 				isShow: false,
 				isShow: false,
 				topItem: '',
 				topItem: '',
@@ -173,12 +175,12 @@
 				const that = this;
 				const that = this;
 				let user = that.user;
 				let user = that.user;
 				if (user._id) {
 				if (user._id) {
-					let data = {
+					let obj = {
 						shop: that.shop._id,
 						shop: that.shop._id,
 						goods: that.id,
 						goods: that.id,
 						num: that.num
 						num: that.num
 					};
 					};
-					let arr = await that.$api(`/zrOrder/checkCanBuy`, `POST`, data, `integral`)
+					let arr = await that.$api(`/zrOrder/checkCanBuy`, `POST`, obj, `integral`)
 					if (arr.errcode == '0') {
 					if (arr.errcode == '0') {
 						if (arr.data.result == true) {
 						if (arr.data.result == true) {
 							uni.navigateTo({
 							uni.navigateTo({
@@ -465,8 +467,8 @@
 		padding: 0 !important;
 		padding: 0 !important;
 	}
 	}
 
 
-	uni-popup {
-		z-index: 999999 !important;
+	.uni-popup {
+		z-index: 999 !important;
 	}
 	}
 
 
 	.content {
 	.content {