mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-02-24 05:46:04 +08:00
optimzie owe
This commit is contained in:
parent
f334103a69
commit
f2b2eba05b
@ -158,7 +158,8 @@
|
|||||||
{
|
{
|
||||||
name: '智能充电',
|
name: '智能充电',
|
||||||
src: this.imgUrl + '/h5/images/serve/my3.png',
|
src: this.imgUrl + '/h5/images/serve/my3.png',
|
||||||
href: '/pages/machine/chargeMachines'
|
href: '/pages/machine/chargeMachines',
|
||||||
|
needLogin: 'N'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '物业打分',
|
name: '物业打分',
|
||||||
|
|||||||
@ -12,7 +12,7 @@
|
|||||||
<text class="margin-right-xs">{{item.endTime}}至{{item.deadlineTime}}</text></view>
|
<text class="margin-right-xs">{{item.endTime}}至{{item.deadlineTime}}</text></view>
|
||||||
</view>
|
</view>
|
||||||
<view class="action">
|
<view class="action">
|
||||||
<text class="text-grey text-sm">应缴:¥{{item.feePrice}}</text>
|
<text class="text-grey text-sm">应缴:¥{{item.feeTotalPrice}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -121,7 +121,7 @@
|
|||||||
.then(function(_fees){
|
.then(function(_fees){
|
||||||
_fees.forEach(function(_item){
|
_fees.forEach(function(_item){
|
||||||
if(_item.payOnline == 'Y'){
|
if(_item.payOnline == 'Y'){
|
||||||
_that.receivableAmount += _item.feePrice;
|
_that.receivableAmount += _item.feeTotalPrice;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
_that.receivableAmount = _that.receivableAmount.toFixed(2);
|
_that.receivableAmount = _that.receivableAmount.toFixed(2);
|
||||||
|
|||||||
@ -39,15 +39,19 @@
|
|||||||
<view v-else>{{couponCount+ '张' }}</view>
|
<view v-else>{{couponCount+ '张' }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="margin-sm">
|
<view class="margin-sm" v-if="login">
|
||||||
<account ref="accRef"></account>
|
<account ref="accRef"></account>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="plat-btn-black"></view>
|
<view class="plat-btn-black"></view>
|
||||||
<view class="cu-bar btn-group" style="margin-top: 30px;">
|
<view class="cu-bar btn-group" style="margin-top: 30px;" v-if="login">
|
||||||
<button @click="_toCharge" :disabled="!curHours.duration || !curPort.portId"
|
<button @click="_toCharge" :disabled="!curHours.duration || !curPort.portId"
|
||||||
class="cu-btn bg-green shadow-blur round lg">去充电</button>
|
class="cu-btn bg-green shadow-blur round lg">去充电</button>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="cu-bar btn-group" style="margin-top: 30px;" v-else>
|
||||||
|
<button @click="_toLogin"
|
||||||
|
class="cu-btn bg-green shadow-blur round lg">请先登录</button>
|
||||||
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@ -73,6 +77,7 @@
|
|||||||
curHours:{},
|
curHours:{},
|
||||||
couponList:[],
|
couponList:[],
|
||||||
couponCount:0,
|
couponCount:0,
|
||||||
|
login:false,
|
||||||
hours:[{
|
hours:[{
|
||||||
name:'充满自停',
|
name:'充满自停',
|
||||||
duration:999,
|
duration:999,
|
||||||
@ -101,6 +106,7 @@
|
|||||||
context.onLoad(options);
|
context.onLoad(options);
|
||||||
this.machineId = options.machineId;
|
this.machineId = options.machineId;
|
||||||
this.communityId = options.communityId;
|
this.communityId = options.communityId;
|
||||||
|
this.login= context.checkLoginStatus();
|
||||||
this._loadChargeMachines();
|
this._loadChargeMachines();
|
||||||
this._loadChargeMachinePorts();
|
this._loadChargeMachinePorts();
|
||||||
let _that = this;
|
let _that = this;
|
||||||
@ -180,6 +186,11 @@
|
|||||||
this.couponList = chargeCoupons;
|
this.couponList = chargeCoupons;
|
||||||
this.couponCount = chargeCoupons.length;
|
this.couponCount = chargeCoupons.length;
|
||||||
},
|
},
|
||||||
|
_toLogin:function(){
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/pages/login/login'
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user