Commit 2544574c authored by beisir's avatar beisir

feat:禁止在其他环境打开

parent 4ab6516e
......@@ -18,8 +18,8 @@
<script>
import { mapState } from 'vuex';
import NetError from '@/components/NetError';
// import { isApp, isWxMp, isWechat } from '@/service/validation.service';
// import store from '@/store';
import { isApp, isWxMp, isWechat } from '@/service/validation.service';
import store from '@/store';
import Weapp from '@/components/weapp';
import goodsShare from '@/components/groupShare';
......@@ -52,11 +52,11 @@ export default {
}
},
$route() {
// store.dispatch('change_show_mini_app_guide', {
// bool: !isApp && !isWxMp && !isWechat ? true : false,
// pointer: this
// });
// store.dispatch('change_is_weixin_browser', !isApp && !isWxMp && isWechat ? true : false);
store.dispatch('change_show_mini_app_guide', {
bool: !isApp && !isWxMp && !isWechat ? true : false,
pointer: this
});
store.dispatch('change_is_weixin_browser', !isApp && !isWxMp && isWechat ? true : false);
}
},
methods: {
......
......@@ -92,7 +92,7 @@ const mutations = {
},
[types.CHANGE_SHOW_MINI_APP_GUIDE](state, { bool, pointer }) {
state.isPrimordialBrowser = bool;
if (!bool) {
if (bool) {
// 需要取反
// 如果非app webview并且非小程序webview,直接拦截提示,到小程序操作
pointer.$dialog({
......
......@@ -230,7 +230,7 @@ export default {
shareIconUrl,
img
} = this.goodsTemp;
const link = `${config.localHost}/groupBuy/list?activityId=${this.activityId}`;
const link = `${config.localHost}/groupBuy/list?h=0&activityId=${this.activityId}`;
return Promise.resolve({
title: shareTitle,
desc: shareSubTitle,
......
......@@ -118,7 +118,7 @@ export default {
templateId: shareInfo.templateId,
templateDetailId: shareInfo.templateId
});
const detailUrl = `${config.localHost}/groupBuy/skuInfoSmallPic?${linkPath}`;
const detailUrl = `${config.localHost}/groupBuy/skuInfoSmallPic?h=0&${linkPath}`;
return Promise.resolve({
title: shareInfo.skuName,
desc: '',
......
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