优化砍价逻辑
This commit is contained in:
@ -431,9 +431,9 @@
|
|||||||
"borderStyle": "black",
|
"borderStyle": "black",
|
||||||
"backgroundColor": "#ffffff",
|
"backgroundColor": "#ffffff",
|
||||||
"height": "50px",
|
"height": "50px",
|
||||||
"fontSize": "8px",
|
"fontSize": "10px",
|
||||||
"iconWidth": "16px",
|
"iconWidth": "24px",
|
||||||
"spacing": "-3px",
|
"spacing": "3px",
|
||||||
"list": [{
|
"list": [{
|
||||||
"pagePath": "pages/home/index",
|
"pagePath": "pages/home/index",
|
||||||
"iconPath": "static/icon-home.png",
|
"iconPath": "static/icon-home.png",
|
||||||
|
@ -276,7 +276,9 @@
|
|||||||
},
|
},
|
||||||
mountedStart: function () {
|
mountedStart: function () {
|
||||||
var that = this;
|
var that = this;
|
||||||
|
console.log(this)
|
||||||
let url = handleQrCode();
|
let url = handleQrCode();
|
||||||
|
console.log(url)
|
||||||
if (url) {
|
if (url) {
|
||||||
that.bargainId = url.bargainId;
|
that.bargainId = url.bargainId;
|
||||||
that.partake = url.uid;
|
that.partake = url.uid;
|
||||||
@ -377,6 +379,8 @@
|
|||||||
);
|
);
|
||||||
that.datatime = that.bargain.stopTime / 1000;
|
that.datatime = that.bargain.stopTime / 1000;
|
||||||
that.getBargainHelpCount();
|
that.getBargainHelpCount();
|
||||||
|
// that.setOpenShare();
|
||||||
|
that.getBargainHelpList();
|
||||||
})
|
})
|
||||||
.catch(res => {
|
.catch(res => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
@ -451,12 +455,15 @@
|
|||||||
//获取砍掉的金额
|
//获取砍掉的金额
|
||||||
getBargainHelpPrice: function () {
|
getBargainHelpPrice: function () {
|
||||||
var that = this;
|
var that = this;
|
||||||
|
that.helpListLoading = true;
|
||||||
|
|
||||||
getBargainHelpPrice({
|
getBargainHelpPrice({
|
||||||
bargainId: that.bargainId,
|
bargainId: that.bargainId,
|
||||||
bargainUserUid: that.bargainPartake
|
bargainUserUid: that.bargainPartake
|
||||||
})
|
})
|
||||||
.then(res => {
|
.then(res => {
|
||||||
that.bargainHelpPrice = res.data.price;
|
that.bargainHelpPrice = res.data.price;
|
||||||
|
that.helpListLoading = false;
|
||||||
that.getBargainHelpCount();
|
that.getBargainHelpCount();
|
||||||
that.getBargainHelpList();
|
that.getBargainHelpList();
|
||||||
switch (that.activeMsg) {
|
switch (that.activeMsg) {
|
||||||
|
@ -37,11 +37,16 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 砍价海报
|
||||||
getBargainPoster: function () {
|
getBargainPoster: function () {
|
||||||
var that = this;
|
var that = this;
|
||||||
|
let from = this.$deviceType
|
||||||
|
if (from == 'weixin' || this.$deviceType == 'weixinh5') {
|
||||||
|
from = 'uniappH5'
|
||||||
|
}
|
||||||
getBargainPoster({
|
getBargainPoster({
|
||||||
bargainId: that.id,
|
bargainId: that.id,
|
||||||
from: "wechat"
|
from
|
||||||
})
|
})
|
||||||
.then(res => {
|
.then(res => {
|
||||||
that.image = res.data.url;
|
that.image = res.data.url;
|
||||||
@ -58,9 +63,15 @@
|
|||||||
// 拼团海报
|
// 拼团海报
|
||||||
getCombinationPoster: function () {
|
getCombinationPoster: function () {
|
||||||
var that = this;
|
var that = this;
|
||||||
|
console.log(this.$deviceType)
|
||||||
|
let from = this.$deviceType
|
||||||
|
if (from == 'weixin' || this.$deviceType == 'weixinh5') {
|
||||||
|
from = 'uniappH5'
|
||||||
|
}
|
||||||
|
console.log(from)
|
||||||
getCombinationPoster({
|
getCombinationPoster({
|
||||||
id: that.id,
|
id: that.id,
|
||||||
from: this.$deviceType == 'weixin' || this.$deviceType == 'weixinh5' ? 'uniappH5' : this.$deviceType
|
from
|
||||||
})
|
})
|
||||||
.then(res => {
|
.then(res => {
|
||||||
that.image = res.data.url;
|
that.image = res.data.url;
|
||||||
|
@ -37,7 +37,6 @@ function _has(key) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
let value = uni.getStorageSync(key)
|
let value = uni.getStorageSync(key)
|
||||||
console.log(key)
|
|
||||||
if (value) {
|
if (value) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user