优化代码

This commit is contained in:
java110 2022-08-25 09:45:19 +08:00
parent 32a76ad73e
commit 085e383a2a
7 changed files with 29 additions and 10 deletions

View File

@ -11,7 +11,7 @@
</view>
</view>
</view>
<!-- #ifdef H5 -->
<!-- #ifdef H5 || WUYE -->
<view class="order_box">
<view class="order_title">我的订单</view>
<view class="order_list">

View File

@ -23,5 +23,19 @@
"bugs": {
"url": "https://github.com/java110/WechatOwnerService/issues"
},
"homepage": "https://github.com/java110/WechatOwnerService#readme"
"homepage": "https://github.com/java110/WechatOwnerService#readme",
"uni-app": {
"scripts": {
"WUYE": {
"title":"业主端不包含商城",
"BROWSER":"",
"env": {
"UNI_PLATFORM": "h5"
},
"define": {
"WUYE": true
}
}
}
}
}

View File

@ -600,7 +600,7 @@
"iconPath": "static/images/rent.png",
"selectedIconPath": "static/images/rent-selected.png"
},
// #ifdef H5
// #ifdef H5 || WUYE
{
"pagePath": "pages/mall/mall",
"text": "商圈",

View File

@ -1,7 +1,7 @@
<template>
<view>
<service-property></service-property>
<!-- #ifdef H5 -->
<!-- #ifdef H5 || WUYE -->
<service-homemaking></service-homemaking>
<!-- #endif -->
</view>

View File

@ -60,8 +60,8 @@
data() {
return {
logoUrl: '',
username: 'test001',
password: 'wuxw2015',
username: '',
password: '',
appId: "",
code: "",
loginByPhone: false,

View File

@ -85,6 +85,7 @@
return {
paId: '',
carNum: '',
machineId:'',
stopTimeTotal: 0,
inTime: '',
amount: 0.0,
@ -105,6 +106,7 @@
this.paId = options.paId;
this.carNum = options.carNum;
this.appId = options.appId;
this.machineId = options.machineId;
this._loadTempCarFee();
},
onShow: function(options) {
@ -172,7 +174,8 @@
tradeType: _tradeType,
appId: this.appId,
inoutId: this.inoutId,
couponList: this.couponList
couponList: this.couponList,
machineId:this.machineId
};
toPayTempCarFee(_objData)
.then(_data=>{
@ -201,7 +204,7 @@
},
onReQuery:function(){
uni.navigateTo({
url: '/pages/tempParkingFee/tempParkingFee?paId=' + _that.paId + "&appId=" + _that.appId + "&openId=" + _that.openId
url: '/pages/tempParkingFee/tempParkingFee?paId=' + _that.paId + "&appId=" + _that.appId + "&openId=" + _that.openId+"&machineId="+this.machineId
})
}

View File

@ -95,6 +95,7 @@
paId: '',
appId: '',
openId: '',
machineId:'',
}
},
components: {
@ -104,6 +105,7 @@
this.paId = options.paId;
this.appId = options.appId;
this.openId = options.openId;
this.machineId = options.machineId;
uni.setStorageSync(mapping.W_APP_ID,this.appId)
if (!isNotNull(this.openId)) {
// openId
@ -114,7 +116,7 @@
if (isNotNull(this.carNum)) {
uni.navigateTo({
url: '/pages/tempCarFee/tempCarFee?paId=' + this.paId + '&carNum=' + this
.carNum + "&appId=" + this.appId + "&openId=" + this.openId
.carNum + "&appId=" + this.appId + "&openId=" + this.openId+"&machineId="+this.machineId
})
return;
}else{
@ -189,7 +191,7 @@
}
uni.navigateTo({
url: '/pages/tempCarFee/tempCarFee?paId=' + _that.paId + '&carNum=' + _that
.carNum + "&appId=" + _that.appId + "&openId=" + _that.openId
.carNum + "&appId=" + _that.appId + "&openId=" + _that.openId+"&machineId="+this.machineId
})
})
},