新增分享功能,修改开票判断逻辑,可查询电表列表
This commit is contained in:
@@ -124,6 +124,20 @@ Page({
|
||||
onChangeMoney(e) {
|
||||
this.setData({ money: e.detail })
|
||||
},
|
||||
jumpToMeterList() {
|
||||
const { tenement, user } = this.data;
|
||||
if (!user) {
|
||||
alertInfo("请先登录")
|
||||
return
|
||||
}
|
||||
if (!tenement) {
|
||||
alertInfo("请先选择商户")
|
||||
return
|
||||
}
|
||||
wx.navigateTo({
|
||||
url: '/pages/meterList/index?id=' + tenement?.id,
|
||||
})
|
||||
},
|
||||
async recharge() {
|
||||
const { user, money, meter, tenement, park } = this.data;
|
||||
if (!user || !user.id) {
|
||||
|
@@ -62,9 +62,20 @@
|
||||
<view class="cardItemValue" style="position: relative;">
|
||||
<view class="text" wx:if="{{user.id}}"> {{meter.money}} </view>
|
||||
<view class="text" wx:else> --- </view>
|
||||
<van-button type="info" size="small" plain="{{true}}" custom-style="position: absolute; right: -20rpx; bottom: -20rpx;z-index: 99;" bind:click="refreshMeter" wx:if="{{user.id}}">
|
||||
<view style="width: 160rpx;display: flex;justify-content: center;"><van-icon name="replay" />
|
||||
刷新</view>
|
||||
<!-- bind:click="jumpToMeterList" -->
|
||||
<van-button
|
||||
type="info"
|
||||
size="small"
|
||||
plain="{{true}}"
|
||||
custom-style="position: absolute; right: -20rpx; bottom: -20rpx;z-index: 99;"
|
||||
wx:if="{{user.id}}"
|
||||
bind:click="refreshMeter"
|
||||
>
|
||||
<view style="width: 160rpx;display: flex;justify-content: center;">
|
||||
<van-icon name="replay" />
|
||||
<!-- 查看全部 -->
|
||||
刷新
|
||||
</view>
|
||||
</van-button>
|
||||
</view>
|
||||
</view>
|
||||
|
Reference in New Issue
Block a user