Commit bf0227c1 authored by Mac's avatar Mac

小程序登录token失效 处理修改 商品详情富文本 组件新增判断

parent 3c2f121d
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
"sdkConfigs" : { "sdkConfigs" : {
"share" : { "share" : {
"weixin" : { "weixin" : {
"appid" : "wxcf0727a7c78b501e", "appid" : "wxacd9f8cc3480d29e",
"UniversalLinks" : "" "UniversalLinks" : ""
} }
} }
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
"quickapp" : {}, "quickapp" : {},
/* 小程序特有相关 */ /* 小程序特有相关 */
"mp-weixin" : { "mp-weixin" : {
"appid" : "wxcf0727a7c78b501e", "appid" : "wxacd9f8cc3480d29e",
"setting" : { "setting" : {
"urlCheck" : false, "urlCheck" : false,
"minified" : false "minified" : false
......
...@@ -304,8 +304,9 @@ ...@@ -304,8 +304,9 @@
</view> </view>
<u-divider :margin-top="20" :margin-bottom="20" bg-color="transparent">商品详情</u-divider> <u-divider :margin-top="20" :margin-bottom="20" bg-color="transparent">商品详情</u-divider>
<view class="details"> <view class="details">
<!-- <h-parse :content="detailContent" @navigate="clickDescription"></h-parse> --> <h-parse v-if="AppletID!=5" :content="detailContent" @navigate="clickDescription"></h-parse>
<rich-text :nodes="detailContent"></rich-text> <!-- 甲鹤等于5 -->
<rich-text v-if="AppletID==5" :nodes="detailContent"></rich-text>
</view> </view>
<template v-if="setting.is_show_korea==1"> <template v-if="setting.is_show_korea==1">
<view style="width:100%;height:1px;border-top:1px solid #FFFFFF;margin:20px 0;"></view> <view style="width:100%;height:1px;border-top:1px solid #FFFFFF;margin:20px 0;"></view>
...@@ -458,7 +459,8 @@ export default { ...@@ -458,7 +459,8 @@ export default {
}, },
compentList:[] ,//评论列表 compentList:[] ,//评论列表
compentTotal:0, compentTotal:0,
curren:1 curren:1,
AppletID:0,//小程序id
}; };
}, },
components: { components: {
...@@ -472,6 +474,7 @@ export default { ...@@ -472,6 +474,7 @@ export default {
hParse hParse
}, },
onLoad(option) { onLoad(option) {
this.opTionObj = option; this.opTionObj = option;
console.log(option, "option"); console.log(option, "option");
...@@ -600,6 +603,8 @@ export default { ...@@ -600,6 +603,8 @@ export default {
setTimeout(() => { setTimeout(() => {
this.initImages(); this.initImages();
}, 3000); }, 3000);
let basedata =uni.getStorageSync("basedata")?uni.getStorageSync("basedata"):'';
this.AppletID = basedata.home_pages.id?basedata.home_pages.id:0;
}, },
methods: { methods: {
clickDescription(e) { clickDescription(e) {
......
...@@ -59,7 +59,7 @@ export default { ...@@ -59,7 +59,7 @@ export default {
let u = uni.getStorageSync("mall_UserInfo"); let u = uni.getStorageSync("mall_UserInfo");
if (u) { if (u) {
this.getLogin_t(u) this.getLogin_t(u)
typeof failed == "function" && failed(res.data); // typeof failed == "function" && failed(res.data);
} }
} else if (res.data.resultCode != 1) { } else if (res.data.resultCode != 1) {
if (res.data.message != '') { if (res.data.message != '') {
...@@ -120,7 +120,7 @@ export default { ...@@ -120,7 +120,7 @@ export default {
// 获取小程序APPID // 获取小程序APPID
Vue.prototype.GetMiniAppId = function() { Vue.prototype.GetMiniAppId = function() {
let appObj = {}; let appObj = {};
let appType = 7; let appType = 1;
switch (appType) { switch (appType) {
case 1: //赞羊 case 1: //赞羊
appObj = { appObj = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment