hupeng 4 years ago
parent
commit
aba959eaa3
  1. 2
      manifest.json
  2. 20
      pages/activity/DargainDetails/index.vue
  3. 1
      unpackage/debug/.ios.ins
  4. BIN
      unpackage/debug/iOS_debug.ipa

2
manifest.json

@ -146,9 +146,9 @@
"version" : "1.1.10", "version" : "1.1.10",
"provider" : "wx2b03c6e691cd7370" "provider" : "wx2b03c6e691cd7370"
} }
// #endif
} }
}, },
// #endif
"mp-alipay" : { "mp-alipay" : {
"usingComponents" : true "usingComponents" : true
}, },

20
pages/activity/DargainDetails/index.vue

@ -55,8 +55,8 @@
<!-- 砍价进度条下的金额 --> <!-- 砍价进度条下的金额 -->
<view class="balance acea-row row-between-wrapper"> <view class="balance acea-row row-between-wrapper">
<view v-text="'已砍' + bargainHelpCount.alreadyPrice + '元'"></view> <view v-text="'已砍' + bargainHelpCount.alreadyPrice + '元'"></view>
<view v-if="bargainHelpCount.remainingPrice === 0">砍价成功</view> <view v-if="bargainHelpCount.price === 0">砍价成功</view>
<view v-else v-text="'还剩' + bargainHelpCount.remainingPrice + '元'"></view> <view v-else v-text="'还剩' + bargainHelpCount.price + '元'"></view>
</view> </view>
<!-- 砍价成功--> <!-- 砍价成功-->
@ -267,15 +267,15 @@
// //
openAlone: function () { openAlone: function () {
this.$yrouter.push({ this.$yrouter.push({
path: "/detail/" + this.bargain.productId path: "/detail/" + this.goodsDetail.productId
}); });
}, },
// //
goPay: function () { goPay: function () {
var data = {}; var data = {};
var that = this; var that = this;
data.productId = that.bargain.productId; data.productId = that.goodsDetail.productId;
data.cartNum = that.bargain.num; data.cartNum = that.goodsDetail.num;
data.uniqueId = ""; data.uniqueId = "";
data.bargainId = that.bargainId; data.bargainId = that.bargainId;
data.new = 1; data.new = 1;
@ -379,7 +379,7 @@
getBargainHelp: function () { getBargainHelp: function () {
var that = this; var that = this;
if ( if (
this.bargainHelpCount.remainingPrice === 0 && this.bargainHelpCount.price === 0 &&
that.bargainUid !== that.userInfo.uid that.bargainUid !== that.userInfo.uid
) { ) {
return uni.showToast({ return uni.showToast({
@ -478,7 +478,7 @@
bargainUserUid: this.bargainUid bargainUserUid: this.bargainUid
}) })
.then(res => { .then(res => {
// = - // ** 使 = -
let remainingPrice = (this.goodsDetail.price - res.data.alreadyPrice).toFixed(2) let remainingPrice = (this.goodsDetail.price - res.data.alreadyPrice).toFixed(2)
this.bargainHelpCount = { this.bargainHelpCount = {
...res.data, ...res.data,
@ -514,7 +514,7 @@
if ( if (
this.bargainUid === this.userInfo.uid && this.bargainUid === this.userInfo.uid &&
this.bargainHelpCount.status == 1 && this.bargainHelpCount.status == 1 &&
this.bargainHelpCount.remainingPrice > 0 this.bargainHelpCount.price > 0
) { ) {
this.inviteFriends = true this.inviteFriends = true
} else { } else {
@ -526,7 +526,7 @@
this.bargainUid != this.userInfo.uid && this.bargainUid != this.userInfo.uid &&
this.bargainHelpCount.status == 1 && this.bargainHelpCount.status == 1 &&
// this.bargainHelpCount.userBargainStatus && // this.bargainHelpCount.userBargainStatus &&
this.bargainHelpCount.remainingPrice > 0 this.bargainHelpCount.price > 0
) { ) {
this.helpFriendsBargain = true this.helpFriendsBargain = true
} else { } else {
@ -537,7 +537,7 @@
if ( if (
this.bargainUid === this.userInfo.uid && this.bargainUid === this.userInfo.uid &&
this.bargainHelpCount.status == 1 && this.bargainHelpCount.status == 1 &&
this.bargainHelpCount.remainingPrice <= 0 this.bargainHelpCount.price <= 0
) { ) {
this.pay = true this.pay = true
} else { } else {

1
unpackage/debug/.ios.ins

@ -0,0 +1 @@
forceInstall

BIN
unpackage/debug/iOS_debug.ipa

Binary file not shown.
Loading…
Cancel
Save