85 lines
1.6 KiB
Vue
85 lines
1.6 KiB
Vue
<template>
|
||
<view class="shop-item-view" >
|
||
<image :src="type == 2 ? 'https://cex-pub.s3.ap-southeast-1.amazonaws.com/static/new/zfb.png' : 'https://cex-pub.s3.ap-southeast-1.amazonaws.com/static/new/wx.png'" ></image>
|
||
<view class="show-item-left">
|
||
<text class="text-32 text-zu1">{{itemData.name}}</text>
|
||
<text class="text-26 text-fu1">账号:{{itemData.account}}</text>
|
||
</view>
|
||
<view class="item-right-btn" @click="onBtn">
|
||
<text class="text-zu1 text-24">解绑</text>
|
||
</view>
|
||
</view>
|
||
</template>
|
||
|
||
<script>
|
||
|
||
export default {
|
||
props:{
|
||
obj:{
|
||
type:Object,
|
||
default:null
|
||
},
|
||
type:{
|
||
type:Number,
|
||
default:0
|
||
},
|
||
itemData:{
|
||
type:[Array,Object],
|
||
default:()=>{}
|
||
},
|
||
|
||
},
|
||
mounted(){
|
||
},
|
||
methods: {
|
||
onBtn(){
|
||
this.$emit('ok',this.itemData);
|
||
}
|
||
}
|
||
}
|
||
</script>
|
||
|
||
<style lang="scss" scoped>
|
||
.shop-item-view{
|
||
width:100%;
|
||
min-height:152rpx;
|
||
display: flex;
|
||
flex-direction: row;
|
||
align-items: center;
|
||
padding: 32rpx 28rpx;
|
||
box-sizing: border-box;
|
||
position: relative;
|
||
border-radius: 24rpx;
|
||
overflow: hidden;
|
||
background-color: #fff;
|
||
margin-top:24rpx;
|
||
.show-item-left{
|
||
display: flex;
|
||
flex-direction: column;
|
||
height:88rpx;
|
||
min-height:88rpx;
|
||
margin-left:24rpx;
|
||
|
||
}
|
||
.item-right-btn{
|
||
width:112rpx;
|
||
height:48rpx;
|
||
min-height:48rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
background-color: #f3f3f3;
|
||
border-radius: 24rpx;
|
||
position: absolute;
|
||
right:28rpx;
|
||
}
|
||
image{
|
||
width:88rpx;
|
||
height:88rpx;
|
||
border-radius: 44rpx;
|
||
}
|
||
|
||
}
|
||
|
||
</style>
|