From d796875e4dee22341c48469973d03e1015db61e8 Mon Sep 17 00:00:00 2001 From: zuoxiao <470321431@qq.com> Date: 星期五, 05 七月 2024 11:40:28 +0800 Subject: [PATCH] 首页添加扫码 --- pages/home/home.wxml | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/pages/home/home.wxml b/pages/home/home.wxml index c2bc9c0..b4f283b 100644 --- a/pages/home/home.wxml +++ b/pages/home/home.wxml @@ -1,5 +1,6 @@ <!--pages/home/home.wxml--> <view class="base-wrapper"> + <view class="head-wrapper"> <view class="head-top"> <t-avatar class="avatar-example" image="{{image}}" size="120rpx" /> @@ -11,6 +12,7 @@ <text class="unbind" bind:tap="feedBack">瑙g粦</text> <text class="head-bottom" bind:tap="feedBack">鑱旂郴瀹㈡湇</text> </view> + <image class="scen-code" src="/images/scen_code.svg" bind:tap="scenCode"/> </view> </view> @@ -47,7 +49,7 @@ <view class="dot"></view> </view> <view class="scroll-bg"> - <view wx:if="{{listData.length > 0}}" class="list-item" wx:for="{{listData}}" wx:for-item="item" wx:for-index="index"> + <view wx:if="{{listData.length > 0}}" class="list-item" wx:for="{{listData}}" wx:key="index"> <view class="item-left"> <!-- <image class="item-img" src="/images/pipeline.svg" /> --> <text>{{item.intakeNum}}</text> @@ -64,6 +66,8 @@ <text class="noMore-text">娌℃湁寮�娉佃褰�</text> </view> </scroll-view> + <t-dialog class="dialog" visible="{{showConfirm}}" content="纭鍏抽棴{{waterIntakeName}}鍚楋紵" confirm-btn="{{ { content: '纭', variant: 'base', theme: 'danger' } }}" close-on-overlay-click="false" cancel-btn="鍙栨秷" bind:confirm="confirmDialog" bind:cancel="closeDialog" /> <t-dialog class="error-dialog" title="鍏抽榾閿欒" visible="{{showErrorDialog}}" content="{{errorData}}" confirm-btn="{{ confirmBtn }}" bind:confirm="closeDialog" /> + </view> \ No newline at end of file -- Gitblit v1.8.0