wangfukang 3 years ago
parent
commit
86dbe3eb4f
  1. 27
      uni_modules/uni-popup/components/uni-popup-share/uni-popup-share.vue
  2. 2
      uni_modules/uview-ui/components/u-notice-bar/u-notice-bar.vue

27
uni_modules/uni-popup/components/uni-popup-share/uni-popup-share.vue

@ -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()
},

2
uni_modules/uview-ui/components/u-notice-bar/u-notice-bar.vue

@ -95,7 +95,7 @@
.u-notice-bar {
overflow: hidden;
padding: 9px 12px;
// padding: 9px 12px;
flex: 1;
}
</style>

Loading…
Cancel
Save