Browse Source

去除砍价无用参数

zyh
Gao xiaosong 4 years ago
parent
commit
70de4062bc
  1. 34
      pages/activity/DargainDetails/index.vue

34
pages/activity/DargainDetails/index.vue

@ -194,25 +194,16 @@
props: {},
data: function () {
return {
price: 0,
bargainId: 0, //
bargain: [], //
partake: null,
bargainSumCount: 0, //
activeMsg: "",
active: false,
loading: false,
lookCount: 0, //
shareCount: 0, //
userCount: 0, //
bargainHelpPrice: 0, //
bargainHelpList: [],
helpListStatus: false, // false true
page: 1, //
limit: 2, //
pricePercent: 0, //
bargainShare: {}, //
bargainHelpCount: {}, //
goodsDetail: {}, //
@ -239,29 +230,18 @@
if (url) {
//
that.bargainId = url.bargainId;
that.partake = url.partake;
that.bargainUid = url.partake;
} else {
//
that.bargainId = that.$yroute.query.id;
that.partake = parseInt(that.$yroute.query.partake);
that.bargainUid = parseInt(that.$yroute.query.partake);
}
if (
this.partake === undefined ||
this.partake <= 0 ||
isNaN(this.partake)
) {
if (!this.bargainUid) {
// urluiduid
that.bargainUid = that.userInfo.uid;
that.$yrouter.push({
path: "/pages/activity/DargainDetails/index",
query: {
id: that.bargainId,
partake: that.bargainUid
}
});
return
} else {
that.bargainUid = this.partake;
}
//
that.getBargainDetail();
//
@ -557,7 +537,7 @@
this.bargainUid != this.userInfo.uid
) {
this.bargain = true
}else{
} else {
this.bargain = false
}

Loading…
Cancel
Save