From c7fe0a9ae77c69103155c7b401fe243bf87bb3a1 Mon Sep 17 00:00:00 2001 From: leiqingsong <1762842758@qq.com> Date: Thu, 1 Apr 2021 23:20:36 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E7=BD=B2=E6=B5=8B=E8=AF=95=E7=8E=AF?= =?UTF-8?q?=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- H5/.env.production | 4 ++-- H5/src/main.js | 4 ++-- H5/src/views/airDropPool.vue | 1 - H5/src/views/customer-service.vue | 4 +++- H5/src/views/grade.vue | 6 ++++-- H5/src/views/income/wallet.vue | 4 +++- H5/src/views/invite.vue | 4 +++- H5/src/views/rewards/fastest-progress.vue | 14 +++++++------- H5/src/views/rewards/month-award.vue | 4 +++- H5/vue.config.js | 2 +- 10 files changed, 28 insertions(+), 19 deletions(-) diff --git a/H5/.env.production b/H5/.env.production index 91ae612..9ecc096 100644 --- a/H5/.env.production +++ b/H5/.env.production @@ -1,5 +1,5 @@ # 生产环境 部署生产环境放开这个 -VUE_APP_BASE_URL = "http://app.xitiansen.com" +# VUE_APP_BASE_URL = "http://app.xitiansen.com" # 测试环境 部署测试环境放开这个 -# VUE_APP_BASE_URL = "http://8.131.244.76:81" \ No newline at end of file +VUE_APP_BASE_URL = "http://8.131.244.76:81" \ No newline at end of file diff --git a/H5/src/main.js b/H5/src/main.js index 57d00ae..bc01369 100644 --- a/H5/src/main.js +++ b/H5/src/main.js @@ -7,13 +7,13 @@ import "minirefresh/dist/debug/minirefresh.css"; import "amfe-flexible"; import "@/plugins/vant-ui.js"; import "@/plugins/echarts-plugins.js"; -// import Vconsole from "vconsole"; +import Vconsole from "vconsole"; import bridgeToAppFun from "@/utils/bridgeToAppFun"; Vue.prototype.$bridgeToAppFun = new bridgeToAppFun(); /*生产环境请注释掉 */ -// Vue.prototype.$vConsole = new Vconsole(); +Vue.prototype.$vConsole = new Vconsole(); Vue.use(MiniRefreshTools); Vue.config.productionTip = false; diff --git a/H5/src/views/airDropPool.vue b/H5/src/views/airDropPool.vue index 86b2ec4..a52d18b 100644 --- a/H5/src/views/airDropPool.vue +++ b/H5/src/views/airDropPool.vue @@ -92,7 +92,6 @@ export default { this.canScroll = true; }, openUserInfo(item) { - console.log(123); this.canScroll = false; this.userInfoDialog = true; this.currentUser = item; diff --git a/H5/src/views/customer-service.vue b/H5/src/views/customer-service.vue index c4a1429..1074ded 100644 --- a/H5/src/views/customer-service.vue +++ b/H5/src/views/customer-service.vue @@ -35,7 +35,9 @@ export default { }; }, created() { - this.getCustomerData(); + setTimeout(() => { + this.getCustomerData(); + }, 200); }, mounted() {}, methods: { diff --git a/H5/src/views/grade.vue b/H5/src/views/grade.vue index 535438a..39ddf19 100644 --- a/H5/src/views/grade.vue +++ b/H5/src/views/grade.vue @@ -99,8 +99,10 @@ export default { ] }; }, - created() { - this.getstatus(); + created() { + setTimeout(() => { + this.getstatus(); + }, 200); }, methods: { handlerBack() { diff --git a/H5/src/views/income/wallet.vue b/H5/src/views/income/wallet.vue index 4c0827f..9097266 100644 --- a/H5/src/views/income/wallet.vue +++ b/H5/src/views/income/wallet.vue @@ -49,7 +49,9 @@ export default { }; }, mounted() { - this.getWalletInfo(); + setTimeout(() => { + this.getWalletInfo(); + }); }, methods: { // è·³è½¬åˆ°å¯æçŽ°ç•Œé¢ diff --git a/H5/src/views/invite.vue b/H5/src/views/invite.vue index 1d1b1db..906e1ba 100644 --- a/H5/src/views/invite.vue +++ b/H5/src/views/invite.vue @@ -28,7 +28,9 @@ export default { }; }, mounted() { - this.inviteCode(); + setTimeout(() => { + this.inviteCode(); + }, 200); }, methods: { onSave() { diff --git a/H5/src/views/rewards/fastest-progress.vue b/H5/src/views/rewards/fastest-progress.vue index 0f5cfaa..dc976f3 100644 --- a/H5/src/views/rewards/fastest-progress.vue +++ b/H5/src/views/rewards/fastest-progress.vue @@ -82,13 +82,13 @@ export default { getProgressPrizes().then(res => { if (res.code === 0) { _this.growthTotal = res.data.growthTotal; - _this.prizeVos = res.data.prizeVos.map(item => { - const temp = item; - temp.userId = - item.userId.substring(0, 3) + "****" + item.userId.substring(7); - return temp; - }); - // _this.prizeVos = res.data.prizeVos; + _this.prizeVos = res.data.prizeVos.map(item => { + const temp = item; + temp.userId = + item.userId.substring(0, 3) + "****" + item.userId.substring(7); + return temp; + }); + // _this.prizeVos = res.data.prizeVos; } else { _this.growthTotal = 0; _this.prizeVos = []; diff --git a/H5/src/views/rewards/month-award.vue b/H5/src/views/rewards/month-award.vue index a2e394d..ae52bc1 100644 --- a/H5/src/views/rewards/month-award.vue +++ b/H5/src/views/rewards/month-award.vue @@ -110,7 +110,9 @@ export default { }; }, created() { - this.getData(); + setTimeout(() => { + this.getData(); + }, 200); }, methods: { handlerBack() { diff --git a/H5/vue.config.js b/H5/vue.config.js index e3e268e..a063a79 100644 --- a/H5/vue.config.js +++ b/H5/vue.config.js @@ -4,7 +4,7 @@ const name = "西田森App"; module.exports = { publicPath: "/front", - outputDir: "front", + // outputDir: "front", devServer: { proxy: { '/shop-mall': { -- 2.18.1