Commit 54a4f691 authored by Facius's avatar Facius

feat: 电子名片转发

parent d72336ad
Pipeline #2922 canceled with stages
......@@ -38,13 +38,19 @@
class="item-view"
v-for="(item, index) in toolInfos"
:key="index"
hover-class="u-hover-class"
@click="handleClickTool(index)"
>
<view class="image-view">
<image :src="item.image"></image>
</view>
<view>{{ item.text }}</view>
<u-button
:open-type="item.openType"
:custom-style="customButtonStyle"
@click="handleClickTool(index)"
>
<view class="button-view">
<view class="image-view">
<image :src="item.image"></image>
</view>
<view>{{ item.text }}</view>
</view>
</u-button>
</view>
</view>
</template>
......@@ -61,7 +67,9 @@
hover-class="u-hover-class"
@click="handleChangeList(index)"
>
<view class="count-view">{{ statistics[item.key] || 0 }}</view>
<view class="count-view">{{
statistics[item.key] || 0
}}</view>
<view>{{ item.text }}</view>
</view>
<view class="mark-view">
......@@ -133,7 +141,7 @@ export default {
}
},
computed: {
...mapGetters(['userInfo']),
...mapGetters(['userInfo']),
baseUrl() {
return process.uniEnv.qn_base_url
},
......@@ -178,12 +186,23 @@ export default {
return [
{ text: '编辑', image: this.baseUrl + 'bianjimingpian@3x.png' },
{ text: '保存', image: this.baseUrl + 'baocunmingpian@3x.png' },
{ text: '转发', image: this.baseUrl + 'zhuanfamingp@3x.png' },
{
text: '转发',
image: this.baseUrl + 'zhuanfamingp@3x.png',
openType: 'share',
},
]
},
lastId() {
return this.list.length > 0 ? this.list[this.list.length - 1].id : ''
},
customButtonStyle() {
return {
color: 'transparent',
height: '80rpx',
width: '140rpx',
}
},
},
onLoad() {
this._freshing = false
......@@ -373,10 +392,20 @@ export default {
.item-view {
display: flex;
align-items: center;
.image-view {
width: 32rpx;
height: 32rpx;
margin-right: 16rpx;
.button-view {
color: #333333;
font-weight: 28rpx;
display: flex;
align-items: center;
justify-content: center;
.image-view {
width: 32rpx;
height: 32rpx;
margin-right: 16rpx;
display: flex;
align-items: center;
justify-content: center;
}
}
}
}
......
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