Commit 54a4f691 authored by Facius's avatar Facius

feat: 电子名片转发

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