diff --git a/common/http.interceptor.js b/common/http.interceptor.js index 7f24251..fd300f9 100644 --- a/common/http.interceptor.js +++ b/common/http.interceptor.js @@ -20,7 +20,7 @@ const install = (Vue, vm) => { // }, // }); Vue.prototype.$u.http.setConfig({ - baseUrl: 'http://192.168.2.8:3302', + baseUrl: 'http://192.168.2.157:3302', // baseUrl: 'https://kang.chuangtewl.com/prod-api', loadingText: '努力加载中~', loadingTime: 800, diff --git a/page_fenbao/addtaocan.vue b/page_fenbao/addtaocan.vue index 04cb11a..7350439 100644 --- a/page_fenbao/addtaocan.vue +++ b/page_fenbao/addtaocan.vue @@ -35,16 +35,16 @@ /时 - - + @@ -99,7 +99,7 @@ price: '', title: '', suitId: '', - array: ['天', '时', '分钟', '秒'], + array: ['时', '分钟'], gmsj: [{ name: '时', disabled: false @@ -107,10 +107,6 @@ { name: '分', disabled: false - }, - { - name: '秒', - disabled: false } ], index: 2, @@ -132,7 +128,9 @@ titaoc: [], newobj: [], listflag: false, - storeList:[] + storeList:[], + timeUnit:2, + txt:'' } }, onLoad(option) { @@ -242,6 +240,13 @@ btnxl(index) { this.index = index this.arrflag = false + if(index == 0){ + this.timeUnit = 2 + this.txt = '时' + }else{ + this.timeUnit = 3 + this.txt = '分钟' + } }, btnxz() { if (this.arrflag == true) { @@ -259,6 +264,13 @@ this.value = res.data.value this.description = res.data.description this.deviceList = res.data.storeList + if(res.data.timeUnit == 2){ + this.txt = '时' + this.timeUnit = 2 + }else{ + this.txt = '分钟' + this.timeUnit = 3 + } this.deviceList.forEach(item => { this.tcidlist.push(item.storeId) }) @@ -319,7 +331,7 @@ value:this.value, price: this.price, description: this.description, - timeUnit:2, + timeUnit:this.timeUnit, storeIds: arrs, feeMode: 1, feeType: 1, @@ -355,7 +367,7 @@ value: this.value, price: this.price, description: this.description, - timeUnit: 2, + timeUnit: this.timeUnit, storeIds: arrs, feeMode: 1, feeType:1, @@ -668,7 +680,7 @@ right: -20rpx; background: #FFFFFF; width: 140rpx; - height: 245rpx; + height: 126rpx; box-shadow: 0rpx 16rpx 40rpx 0rpx rgba(42, 130, 228, 0.1); padding: 5rpx 0; box-sizing: border-box; diff --git a/page_user/homepage.vue b/page_user/homepage.vue index 93bb72f..34bab8e 100644 --- a/page_user/homepage.vue +++ b/page_user/homepage.vue @@ -1,33 +1,36 @@