From 3cd15fe9e1bc4c91f5587f95f8ad48b5eb868cce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=8F?= <1978476055@qq.com> Date: Mon, 4 Nov 2024 18:19:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=83=A0=E7=BE=8E,=E8=BF=94=E4=BD=A3,=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E8=B0=83=E6=95=B4,test=E7=8E=AF=E5=A2=83=E9=83=A8?= =?UTF-8?q?=E7=BD=B2=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.test | 11 +++++++ package.json | 1 + src/views/product/addProduct/index.vue | 31 +++++++++++--------- src/views/product/productList/editAttr.vue | 8 ++--- src/views/product/productList/index.vue | 6 +++- src/views/product/productList/proDetails.vue | 18 +++++++----- src/views/product/productList/taoBao.vue | 8 ++--- src/views/user/list/index.vue | 6 ++-- 8 files changed, 56 insertions(+), 33 deletions(-) create mode 100644 .env.test 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 b633d22..802d086 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/product/addProduct/index.vue b/src/views/product/addProduct/index.vue index a5839ce..d0155b3 100644 --- a/src/views/product/addProduct/index.vue +++ b/src/views/product/addProduct/index.vue @@ -81,17 +81,6 @@ /> - - + --> + + + + + + + + @@ -196,7 +196,7 @@ - - + + + +
  • +
    惠美乡村产品:
    +
    + {{ productData.is_huimei ? "是" : "否" }} +
    +
    • @@ -272,7 +278,7 @@ - - @@ -485,9 +491,7 @@
      实际销量 :
      - {{ - productData.sales - productData.ficti - }} + {{ productData.sales - productData.ficti }} (指实际售出数量)
      diff --git a/src/views/product/productList/taoBao.vue b/src/views/product/productList/taoBao.vue index 1099099..7bb4628 100644 --- a/src/views/product/productList/taoBao.vue +++ b/src/views/product/productList/taoBao.vue @@ -251,7 +251,7 @@ - - - +