Commit 2544574c authored by beisir's avatar beisir

feat:禁止在其他环境打开

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