mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-02-23 21:36:38 +08:00
优化代码
This commit is contained in:
parent
32a76ad73e
commit
085e383a2a
@ -11,7 +11,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- #ifdef H5 -->
|
<!-- #ifdef H5 || WUYE -->
|
||||||
<view class="order_box">
|
<view class="order_box">
|
||||||
<view class="order_title">我的订单</view>
|
<view class="order_title">我的订单</view>
|
||||||
<view class="order_list">
|
<view class="order_list">
|
||||||
|
|||||||
16
package.json
16
package.json
@ -23,5 +23,19 @@
|
|||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/java110/WechatOwnerService/issues"
|
"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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -600,7 +600,7 @@
|
|||||||
"iconPath": "static/images/rent.png",
|
"iconPath": "static/images/rent.png",
|
||||||
"selectedIconPath": "static/images/rent-selected.png"
|
"selectedIconPath": "static/images/rent-selected.png"
|
||||||
},
|
},
|
||||||
// #ifdef H5
|
// #ifdef H5 || WUYE
|
||||||
{
|
{
|
||||||
"pagePath": "pages/mall/mall",
|
"pagePath": "pages/mall/mall",
|
||||||
"text": "商圈",
|
"text": "商圈",
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
<service-property></service-property>
|
<service-property></service-property>
|
||||||
<!-- #ifdef H5 -->
|
<!-- #ifdef H5 || WUYE -->
|
||||||
<service-homemaking></service-homemaking>
|
<service-homemaking></service-homemaking>
|
||||||
<!-- #endif -->
|
<!-- #endif -->
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@ -60,8 +60,8 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
logoUrl: '',
|
logoUrl: '',
|
||||||
username: 'test001',
|
username: '',
|
||||||
password: 'wuxw2015',
|
password: '',
|
||||||
appId: "",
|
appId: "",
|
||||||
code: "",
|
code: "",
|
||||||
loginByPhone: false,
|
loginByPhone: false,
|
||||||
|
|||||||
@ -85,6 +85,7 @@
|
|||||||
return {
|
return {
|
||||||
paId: '',
|
paId: '',
|
||||||
carNum: '',
|
carNum: '',
|
||||||
|
machineId:'',
|
||||||
stopTimeTotal: 0,
|
stopTimeTotal: 0,
|
||||||
inTime: '',
|
inTime: '',
|
||||||
amount: 0.0,
|
amount: 0.0,
|
||||||
@ -105,6 +106,7 @@
|
|||||||
this.paId = options.paId;
|
this.paId = options.paId;
|
||||||
this.carNum = options.carNum;
|
this.carNum = options.carNum;
|
||||||
this.appId = options.appId;
|
this.appId = options.appId;
|
||||||
|
this.machineId = options.machineId;
|
||||||
this._loadTempCarFee();
|
this._loadTempCarFee();
|
||||||
},
|
},
|
||||||
onShow: function(options) {
|
onShow: function(options) {
|
||||||
@ -172,7 +174,8 @@
|
|||||||
tradeType: _tradeType,
|
tradeType: _tradeType,
|
||||||
appId: this.appId,
|
appId: this.appId,
|
||||||
inoutId: this.inoutId,
|
inoutId: this.inoutId,
|
||||||
couponList: this.couponList
|
couponList: this.couponList,
|
||||||
|
machineId:this.machineId
|
||||||
};
|
};
|
||||||
toPayTempCarFee(_objData)
|
toPayTempCarFee(_objData)
|
||||||
.then(_data=>{
|
.then(_data=>{
|
||||||
@ -201,7 +204,7 @@
|
|||||||
},
|
},
|
||||||
onReQuery:function(){
|
onReQuery:function(){
|
||||||
uni.navigateTo({
|
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
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -95,6 +95,7 @@
|
|||||||
paId: '',
|
paId: '',
|
||||||
appId: '',
|
appId: '',
|
||||||
openId: '',
|
openId: '',
|
||||||
|
machineId:'',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@ -104,6 +105,7 @@
|
|||||||
this.paId = options.paId;
|
this.paId = options.paId;
|
||||||
this.appId = options.appId;
|
this.appId = options.appId;
|
||||||
this.openId = options.openId;
|
this.openId = options.openId;
|
||||||
|
this.machineId = options.machineId;
|
||||||
uni.setStorageSync(mapping.W_APP_ID,this.appId)
|
uni.setStorageSync(mapping.W_APP_ID,this.appId)
|
||||||
if (!isNotNull(this.openId)) {
|
if (!isNotNull(this.openId)) {
|
||||||
//刷新 openId
|
//刷新 openId
|
||||||
@ -114,7 +116,7 @@
|
|||||||
if (isNotNull(this.carNum)) {
|
if (isNotNull(this.carNum)) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/tempCarFee/tempCarFee?paId=' + this.paId + '&carNum=' + this
|
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;
|
return;
|
||||||
}else{
|
}else{
|
||||||
@ -189,7 +191,7 @@
|
|||||||
}
|
}
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pages/tempCarFee/tempCarFee?paId=' + _that.paId + '&carNum=' + _that
|
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
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user