From f42ab11f4cda7290ef2fcd3eb84d414100ecb82f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=8F?= <1978476055@qq.com> Date: Tue, 29 Oct 2024 14:41:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=90=E9=95=BF=E5=80=BC,=E5=A5=96=E5=8A=B1?= =?UTF-8?q?=E9=87=91,=E7=94=A8=E6=88=B7=E5=88=97=E8=A1=A8=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E5=A2=9E=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 4 ++-- .env.test | 11 +++++++++++ package.json | 1 + src/views/marketing/lottery/create.vue | 3 +++ src/views/promoter/bonusLog/index.vue | 3 +++ src/views/promoter/brokerage/index.vue | 3 +++ src/views/user/list/index.vue | 2 +- vue.config.js | 1 - 8 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 .env.test diff --git a/.env.production b/.env.production index 47ddd58..c7b3776 100644 --- a/.env.production +++ b/.env.production @@ -2,6 +2,6 @@ ENV = 'production' # base api -VUE_APP_BASE_API ='' +VUE_APP_BASE_API ='https://api.tropjoin.com' # socket 连接地址 -VUE_APP_WS_URL ='' +VUE_APP_WS_URL ='wss://api.tropjoin.com' diff --git a/.env.test b/.env.test new file mode 100644 index 0000000..6bb96f4 --- /dev/null +++ b/.env.test @@ -0,0 +1,11 @@ +NODE_ENV = production + +# just a flag +ENV = 'test' + +# base api +VUE_APP_BASE_API = '' + +VUE_APP_WS_URL = '' + +# VUE_APP_OPEN_HTTP_URL = 'http://test.tropjoin.com' diff --git a/package.json b/package.json index d23302b..929d2e1 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "dev": "vue-cli-service serve", "build:prod": "vue-cli-service build", "build:stage": "vue-cli-service build --mode staging", + "build:test": "vue-cli-service build --mode test", "preview": "node build/index.js --preview", "lint": "eslint --ext .js,.vue src", "test:unit": "jest --clearCache && vue-cli-service test:unit", diff --git a/src/views/marketing/lottery/create.vue b/src/views/marketing/lottery/create.vue index fe421c2..ddd51ee 100644 --- a/src/views/marketing/lottery/create.vue +++ b/src/views/marketing/lottery/create.vue @@ -956,6 +956,9 @@ export default { if (res.status == 200) { lotteryFactor_info(this.formValidate.factor).then((item) => { this.specsData = item.data.prize; + this.$nextTick((e) => { + this.getProbability(); + }); }); this.$message.success(res.message); this.addGoodsModel = false; diff --git a/src/views/promoter/bonusLog/index.vue b/src/views/promoter/bonusLog/index.vue index e8ee069..9734993 100644 --- a/src/views/promoter/bonusLog/index.vue +++ b/src/views/promoter/bonusLog/index.vue @@ -63,6 +63,9 @@ + + +