|
|
|
@ -3,11 +3,14 @@ |
|
|
|
<view class="uni-share-title"><text class="uni-share-title-text">{{shareTitleText}}</text></view> |
|
|
|
<view class="uni-share-content"> |
|
|
|
<view class="uni-share-content-box"> |
|
|
|
<button class="uni-share-content-item" open-type="share" v-for="(item,index) in bottomData" :key="index" @click.stop="select(item,index)"> |
|
|
|
<image class="uni-share-image" :src="item.icon" mode="aspectFill"></image> |
|
|
|
<text class="uni-share-text">{{item.text}}</text> |
|
|
|
<button class="uni-share-content-item" open-type="share" @click.stop="select('0')"> |
|
|
|
<image class="uni-share-image" :src="bottomData[0].icon" mode="aspectFill"></image> |
|
|
|
<text class="uni-share-text">{{bottomData[0].text}}</text> |
|
|
|
</button> |
|
|
|
<button class="uni-share-content-item" @click.stop="select('1')"> |
|
|
|
<image class="uni-share-image" :src="bottomData[1].icon" mode="aspectFill"></image> |
|
|
|
<text class="uni-share-text">{{bottomData[1].text}}</text> |
|
|
|
</button> |
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="uni-share-button-box"> |
|
|
|
@ -65,10 +68,18 @@ |
|
|
|
/** |
|
|
|
* 选择内容 |
|
|
|
*/ |
|
|
|
select(index) { |
|
|
|
this.$emit('select', { |
|
|
|
index |
|
|
|
}) |
|
|
|
select(index) { |
|
|
|
if(index == 1){ |
|
|
|
uni.showModal({ |
|
|
|
title: "提示", |
|
|
|
content: "请点击右上角“...”转发朋友圈" |
|
|
|
}) |
|
|
|
}else{ |
|
|
|
this.$emit('select', { |
|
|
|
index |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
this.close() |
|
|
|
|
|
|
|
}, |
|
|
|
|