修复默认弹促销

master
paulGao 2021-12-23 16:06:59 +08:00
parent 07627c41e3
commit 09ec1e8c06
1 changed files with 11 additions and 16 deletions

View File

@ -362,7 +362,7 @@ import { getGoods, getGoodsList, getMpScene, getGoodsDistribution } from "@/api/
import * as API_trade from "@/api/trade.js"; import * as API_trade from "@/api/trade.js";
import * as API_Members from "@/api/members.js"; import * as API_Members from "@/api/members.js";
import * as API_store from "@/api/store.js"; import * as API_store from "@/api/store.js";
import { getIMDetail } from '@/api/common' import { getIMDetail } from "@/api/common";
import { modelNavigateTo } from "@/pages/tabbar/home/template/tpl.js"; import { modelNavigateTo } from "@/pages/tabbar/home/template/tpl.js";
/************请求存储***************/ /************请求存储***************/
import storage from "@/utils/storage.js"; import storage from "@/utils/storage.js";
@ -443,7 +443,6 @@ export default {
popupsSwitch: false, // popupsSwitch: false, //
shareFlage: false, shareFlage: false,
selectedGoods: "", // selectedGoods: "", //
promotionFlag: true, //
isGroup: false, // isGroup: false, //
pointDetail: "", // pointDetail: "", //
assemble: "", //sku assemble: "", //sku
@ -523,12 +522,11 @@ export default {
startTimer: false, // false startTimer: false, // false
routerVal: "", routerVal: "",
IMLink:"", // IM IMLink: "", // IM
}; };
}, },
computed:{ computed: {
IM() { IM() {
return this.IMLink + this.storeDetail.merchantEuid; return this.IMLink + this.storeDetail.merchantEuid;
}, },
@ -699,24 +697,21 @@ export default {
} }
// IM 使 // IM 使
// this.getIMDetailMethods(); // this.getIMDetailMethods();
}, },
async getIMDetailMethods(){ async getIMDetailMethods() {
let res = await getIMDetail() let res = await getIMDetail();
if(res.data.success){ if (res.data.success) {
this.IMLink = res.data.result this.IMLink = res.data.result;
} }
}, },
linkMsgDetail() { linkMsgDetail() {
if (this.storeDetail.merchantEuid) {
if(this.storeDetail.merchantEuid){
uni.navigateTo({ uni.navigateTo({
url:`/pages/tabbar/home/web-view?src=${this.IM}` url: `/pages/tabbar/home/web-view?src=${this.IM}`,
}); });
} } else {
else{
// //
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
const params = { const params = {