|
@@ -77,7 +77,15 @@ export default {
|
|
// 如果刷新之后没有与微信小程序建立链接则提示用户,关闭小程序重新进入
|
|
// 如果刷新之后没有与微信小程序建立链接则提示用户,关闭小程序重新进入
|
|
const isReloadLoop = await isReloadBefore();
|
|
const isReloadLoop = await isReloadBefore();
|
|
if (isReloadLoop) {
|
|
if (isReloadLoop) {
|
|
- const isReload = await theCommunicationBetweenWechatAndH5IsNormal();
|
|
|
|
|
|
+ uni.removeStorageSync('isReload');
|
|
|
|
+ const { theme } = getsTheCurrentTopic();
|
|
|
|
+ this.$dialog({
|
|
|
|
+ title: '温馨提示',
|
|
|
|
+ message: '当前网络异常,请重新进入小程序',
|
|
|
|
+ confirmButtonColor: this.$theme[theme].primaryColor,
|
|
|
|
+ });
|
|
|
|
+ return;
|
|
|
|
+ /* const isReload = await theCommunicationBetweenWechatAndH5IsNormal();
|
|
if (isReload) {
|
|
if (isReload) {
|
|
uni.removeStorageSync('isReload');
|
|
uni.removeStorageSync('isReload');
|
|
const { theme } = getsTheCurrentTopic();
|
|
const { theme } = getsTheCurrentTopic();
|
|
@@ -87,7 +95,7 @@ export default {
|
|
confirmButtonColor: this.$theme[theme].primaryColor,
|
|
confirmButtonColor: this.$theme[theme].primaryColor,
|
|
});
|
|
});
|
|
return;
|
|
return;
|
|
- }
|
|
|
|
|
|
+ } */
|
|
}
|
|
}
|
|
if (window.location.href.indexOf('cryptojs') > -1) {
|
|
if (window.location.href.indexOf('cryptojs') > -1) {
|
|
return;
|
|
return;
|