|
|
@@ -1,10 +1,10 @@
|
|
|
<template>
|
|
|
<view class="footer-share-box display-around">
|
|
|
- <view class="display-flex-start items-center share-font" :style="{'border-right': isCollection ? '1px solid #d8d8d8' : 'none'}">
|
|
|
+ <button class="display-flex-start items-center share-font" :style="{'border-right': isCollection ? '1px solid #d8d8d8' : 'none'}" open-type="share" @click="sharePage()">
|
|
|
<view style="margin-right:15rpx;font-size: 26rpx;">分享</view>
|
|
|
<image src="../../static/share_icon.png" mode="aspectFill" style="width: 30rpx;height: 30rpx;"></image>
|
|
|
- </view>
|
|
|
- <view class="display-flex-start items-center share-font" v-if='isCollection'>
|
|
|
+ </button>
|
|
|
+ <view class="display-flex-start items-center share-font" v-if='isCollection' @click="collectionPage()">
|
|
|
<view style="margin-right:15rpx;font-size: 26rpx;">收藏</view>
|
|
|
<image src="../../static/collection.png" mode="aspectFill" style="width: 40rpx;height: 40rpx;"></image>
|
|
|
</view>
|
|
|
@@ -24,6 +24,14 @@
|
|
|
return {
|
|
|
|
|
|
};
|
|
|
+ },
|
|
|
+ methods:{
|
|
|
+ sharePage() {
|
|
|
+ this.$emit('sharePages')
|
|
|
+ },
|
|
|
+ collectionPage() {
|
|
|
+ this.$emit('collectionPages')
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
@@ -43,4 +51,9 @@
|
|
|
width: 45%;
|
|
|
justify-content: center;
|
|
|
}
|
|
|
+ .footer-share-box button {
|
|
|
+ background-color: #fff;
|
|
|
+ border-radius:0;
|
|
|
+ }
|
|
|
+ .footer-share-box button::after{ border: none;}
|
|
|
</style>
|