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