Commit 3110335b authored by 袁玲利's avatar 袁玲利

复制卡号bug修复

parent d2d43fe2
...@@ -20,8 +20,10 @@ ...@@ -20,8 +20,10 @@
<view>{{ cardBalanceTx }}</view> <view>{{ cardBalanceTx }}</view>
</view> </view>
<view class="right"> <view class="right">
<van-popover v-model="showPopover" trigger="click" :actions="actions" placement="bottom-end" <van-popover v-model="showPopover" trigger="click" placement="bottom-end">
@select="onSelect"> <view v-for="(item, index) in actions" @click="onSelect(item)" :id="item.id ? item.id : '#item'+index">
{{item.text}}
</view>
<template #reference> <template #reference>
<image class="icon" :src="ImgUrl + 'user/more.png'" alt=""></image> <image class="icon" :src="ImgUrl + 'user/more.png'" alt=""></image>
</template> </template>
...@@ -343,6 +345,7 @@ ...@@ -343,6 +345,7 @@
// 通过 actions 属性来定义菜单选项 // 通过 actions 属性来定义菜单选项
actions: [{ actions: [{
text: "复制卡号", text: "复制卡号",
id: "cardNumright"
}, },
{ {
text: "账户明细", text: "账户明细",
......
...@@ -19,8 +19,10 @@ ...@@ -19,8 +19,10 @@
<view>{{ cardBalanceTx }}</view> <view>{{ cardBalanceTx }}</view>
</view> </view>
<view class="right"> <view class="right">
<van-popover v-model="showPopover" trigger="click" :actions="actions" placement="bottom-end" <van-popover v-model="showPopover" trigger="click" placement="bottom-end">
@select="onSelect"> <view v-for="(item, index) in actions" @click="onSelect(item)" :id="item.id ? item.id : '#item'+index">
{{item.text}}
</view>
<template #reference> <template #reference>
<image class="icon" :src="ImgUrl + 'user/more.png'" alt=""></image> <image class="icon" :src="ImgUrl + 'user/more.png'" alt=""></image>
</template> </template>
...@@ -298,7 +300,8 @@ ...@@ -298,7 +300,8 @@
showPopover: false, showPopover: false,
// 通过 actions 属性来定义菜单选项 // 通过 actions 属性来定义菜单选项
actions: [{ actions: [{
text: "复制卡号" text: "复制卡号",
id: "cardNumright"
}, { }, {
text: "账户明细" text: "账户明细"
}, { }, {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment