Browse Source

fix: 打包命令添加测试换环境

master
zhang_li 8 months ago
parent
commit
f3b8e0d77a
  1. 2
      .env.test
  2. 12
      package.json
  3. 6
      src/pages/repairOrder/detail.vue

2
.env.test

@ -0,0 +1,2 @@
VITE_BASE_URL=http://dev.ccwin-in.com:25202/api/admin-api
VITE_BASE_URL_IMAGE=http://dev.ccwin-in.com:25202/api/admin-api

12
package.json

@ -3,14 +3,18 @@
"version": "1.0.0", "version": "1.0.0",
"private": true, "private": true,
"scripts": { "scripts": {
"dev:app": "uni -p app",
"dev:custom": "uni -p",
"dev": "uni", "dev": "uni",
"dev:mp-weixin": "uni -p mp-weixin", "dev:mp-weixin": "uni -p mp-weixin",
"dev:app": "uni -p app",
"dev:custom": "uni -p",
"test": "uni build --mode test",
"test:mp-weixin": "uni build -p mp-weixin",
"test:app": "uni build -p app", "test:app": "uni build -p app",
"test:custom": "uni build -p", "test:custom": "uni build -p",
"test": "uni build", "build": "uni build --mode production",
"test:mp-weixin": "uni build -p mp-weixin" "build:mp-weixin": "uni build -p mp-weixin --mode production",
"build:app": "uni build -p app --mode production",
"build:custom": "uni build -p --mode production"
}, },
"dependencies": { "dependencies": {
"@dcloudio/uni-app": "3.0.0-alpha-3060920221114001", "@dcloudio/uni-app": "3.0.0-alpha-3060920221114001",

6
src/pages/repairOrder/detail.vue

@ -186,17 +186,17 @@
</view> </view>
</view> </view>
<view class="footer"> <view class="footer">
<view class="btns" v-if="data.status == 'PENDING'> <view class="btns" v-if="data.status == 'PENDING'">
<u-button type="primary" @click="orderClick(1)" :loading='loading' :disabled='loading'>接单</u-button> <u-button type="primary" @click="orderClick(1)" :loading='loading' :disabled='loading'>接单</u-button>
</view> </view>
<view class="btns" v-if="data.status == 'PECEIVED'> <view class="btns" v-if="data.status == 'PECEIVED'">
<u-button shape="shape" type="warning" style="min-width: 120rpx;" :loading='loading1' @click="editForm" <u-button shape="shape" type="warning" style="min-width: 120rpx;" :loading='loading1' @click="editForm"
:disabled='loading1'>修改工单</u-button> :disabled='loading1'>修改工单</u-button>
<u-button type="primary" @click="orderClickSuccess()" :loading='loading' <u-button type="primary" @click="orderClickSuccess()" :loading='loading'
:disabled='loading'>完成</u-button> :disabled='loading'>完成</u-button>
</view> </view>
<view class="btns" v-if="data.status == 'COMPLETED'> <view class="btns" v-if="data.status == 'COMPLETED'">
<u-button type="primary" @click="orderClick(3)" :loading='loading' :disabled='loading'>验证完结</u-button> <u-button type="primary" @click="orderClick(3)" :loading='loading' :disabled='loading'>验证完结</u-button>
</view> </view>
<view style="height: constant(safe-area-inset-bottom); height: env(safe-area-inset-bottom);"></view> <view style="height: constant(safe-area-inset-bottom); height: env(safe-area-inset-bottom);"></view>

Loading…
Cancel
Save