Browse Source

uniapp生成的H5在微信环境下 第一次进入,卡屏

zyh
Gao xiaosong 4 years ago
parent
commit
0a6107644e
  1. 6
      pages/home/index.vue

6
pages/home/index.vue

@ -103,6 +103,10 @@ import { getHomeData, getShare } from "@/api/public";
import cookie from "@/utils/store/cookie";
import { isWeixin, handleUrlParam } from "@/utils/index";
import {
openShareAll,
} from '@/libs/wechat'
const HAS_COUPON_WINDOW = "has_coupon_window";
export default {
@ -309,7 +313,7 @@ export default {
link: location.href,
imgUrl: data.img,
};
this.openShareAll(configAppMessage);
openShareAll(configAppMessage);
});
}
},

Loading…
Cancel
Save