|
|
@@ -19,46 +19,16 @@ import common from './mixins/common';
|
|
|
import VueClipboard from 'vue-clipboard2';
|
|
|
import queryString from 'query-string';
|
|
|
import PageBar from './components/PageBar';
|
|
|
+import eruda from 'eruda';
|
|
|
+
|
|
|
+let showConsole = localStorage.getItem('showConsole');
|
|
|
+if (showConsole && parseInt(showConsole) > new Date().getTime()) {
|
|
|
+ eruda.init();
|
|
|
+}
|
|
|
store.commit('setFirstUrl', location.href);
|
|
|
|
|
|
import ImgContent from './components/ImgContent.vue';
|
|
|
|
|
|
-http.http
|
|
|
- .get('/wx/jsapiSign', { url: location.href })
|
|
|
- .then(res => {
|
|
|
- wx.config({
|
|
|
- debug: false,
|
|
|
- appId: res.appId,
|
|
|
- timestamp: res.timestamp,
|
|
|
- nonceStr: res.nonceStr,
|
|
|
- signature: res.signature,
|
|
|
- jsApiList: [
|
|
|
- 'chooseWXPay',
|
|
|
- 'updateAppMessageShareData',
|
|
|
- 'updateTimelineShareData',
|
|
|
- 'hideAllNonBaseMenuItem',
|
|
|
- 'scanQRCode'
|
|
|
- ]
|
|
|
- });
|
|
|
- wx.error(function (res) {
|
|
|
- console.log(res);
|
|
|
- });
|
|
|
- wx.ready(function () {
|
|
|
- wx.updateAppMessageShareData({
|
|
|
- title: '第九空间',
|
|
|
- desc: '全球首个基于区块链的游戏资产集换中心',
|
|
|
- link: location.origin + '/9th',
|
|
|
- imgUrl: 'https://9space-2021.oss-cn-shenzhen.aliyuncs.com/nft/2021-11-05-15-58-30YwqLzMjy.jpg'
|
|
|
- });
|
|
|
- wx.updateTimelineShareData({
|
|
|
- title: '第九空间-全球首个基于区块链的游戏资产集换中心',
|
|
|
- link: location.origin + '/9th',
|
|
|
- imgUrl: 'https://9space-2021.oss-cn-shenzhen.aliyuncs.com/nft/2021-11-05-15-58-30YwqLzMjy.jpg'
|
|
|
- });
|
|
|
- });
|
|
|
- })
|
|
|
- .catch(e => {});
|
|
|
-
|
|
|
createApp(App)
|
|
|
.use(Vant)
|
|
|
.use(http)
|