Files
MALL_MP_WX/ChargingStation/pages/placeOrder/components/accountItem/index.vue
dt_2916866708 f756390529 第一次提交
2024-02-28 17:26:46 +08:00

46 lines
1.1 KiB
Vue

<template>
<view class="accountItem_body flex column">
<view class="accountItem_title flex jc">
<view>支付选择</view>
</view>
<view class="accountItem_content ">
<view @click="$emit('update:selectIndex', index)" v-for=" (item,index) in pageData " :key="index"
class="accountItem_content_item flex ac">
<image src="@/static/account.png"></image>
<view class="oneflex">
<view class="accountItem_content_item_name">{{item.name}}</view>
<view class="accountItem_content_item_tip"> 当前账户余额 <text>{{ tool.getnum(item.balance,3) }}</text> </view>
</view>
<uni-icons type="checkmarkempty"
:color=" selectIndex==index? 'rgba(255, 103, 0, 1)' : 'rgba(202, 202, 202, 1)' "
size="20"></uni-icons>
</view>
</view>
</view>
</template>
<script>
import station from '@/api/station.js'
import play from '@/api/play.js'
export default {
props: {
selectIndex: {
type: Number,
default: 0
},
pageData: {
type: Array,
default: () => []
}
},
data() {
return {}
},
onLoad(e) {},
methods: {}
}
</script>
<style lang="scss" scoped>
@import 'index.scss';
</style>