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

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

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

Loading…
Cancel
Save