|
|
@@ -3,11 +3,11 @@
|
|
|
<view class="share-inner">
|
|
|
<view class="share-item" @click="wxShare(0)">
|
|
|
<image src="/static/images/icon_wx.png" mode=""></image>
|
|
|
- <text class="text">微信</text>
|
|
|
+ <text class="text">分享给微信好友</text>
|
|
|
</view>
|
|
|
- <view class="share-item" @click="wxShare(1)">
|
|
|
+ <view v-if="false" class="share-item" @click="wxShare(1)">
|
|
|
<image src="/static/images/icon_pyq.png" mode=""></image>
|
|
|
- <text class="text">朋友圈</text>
|
|
|
+ <text class="text">分享到朋友圈</text>
|
|
|
</view>
|
|
|
<!-- <view class="share-item" @click="qwShare()">
|
|
|
<image src="/static/images/icon_qwshare.png" mode=""></image>
|
|
|
@@ -26,7 +26,7 @@
|
|
|
<text class="text">二维码</text>
|
|
|
</view> -->
|
|
|
|
|
|
- <view class="share-item" @click="copyUrl()">
|
|
|
+ <view v-if="false" class="share-item" @click="copyUrl()">
|
|
|
<image src="/static/images/icon_copy_link.png" mode=""></image>
|
|
|
<text class="text">复制链接</text>
|
|
|
</view>
|
|
|
@@ -184,7 +184,7 @@
|
|
|
type: 5,
|
|
|
imageUrl: imageUrl, //分享封面图片
|
|
|
title: this.shareItem.title, // 分享标题
|
|
|
- //summary: this.shareItem.summary, // 分享内容文字
|
|
|
+ summary: this.shareItem.summary, // 分享内容文字
|
|
|
miniProgram: {
|
|
|
id: getApp().globalData.miniprogamId,
|
|
|
path: this.shareItem.path,
|
|
|
@@ -192,7 +192,8 @@
|
|
|
webUrl: "http://uniapp.dcloud.io"
|
|
|
},
|
|
|
success: function(res) {
|
|
|
- that.doShare();
|
|
|
+ // that.doShare();
|
|
|
+ that.closeShare()
|
|
|
uni.showToast({
|
|
|
title: "分享成功",
|
|
|
icon: 'none'
|
|
|
@@ -336,48 +337,55 @@
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
.share-content {
|
|
|
- background-color: #FFF;
|
|
|
- border-radius: 40upx 40upx 0px 0px;
|
|
|
+ background-color: #F4F6F7;
|
|
|
+ border-radius: 20rpx 20rpx 0px 0px;
|
|
|
+ padding: 24rpx 24rpx 30rpx;
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
|
.share-inner {
|
|
|
- padding: 70upx 0 0 0;
|
|
|
+ padding: 40rpx;
|
|
|
+ background: #FFFFFF;
|
|
|
+ border-radius: 12rpx;
|
|
|
display: flex;
|
|
|
- flex-wrap: wrap;
|
|
|
+ flex-direction: column;
|
|
|
+ // flex-wrap: wrap;
|
|
|
|
|
|
.share-item {
|
|
|
- width: 25%;
|
|
|
+ width: 100%;
|
|
|
display: flex;
|
|
|
- flex-direction: column;
|
|
|
+ flex-direction: row;
|
|
|
align-items: center;
|
|
|
- justify-content: center;
|
|
|
- margin-bottom: 66upx;
|
|
|
+ margin-bottom: 40rpx;
|
|
|
|
|
|
image {
|
|
|
- width: 80upx;
|
|
|
- height: 80upx;
|
|
|
- margin-bottom: 20upx;
|
|
|
+ width: 80rpx;
|
|
|
+ height: 80rpx;
|
|
|
}
|
|
|
|
|
|
.text {
|
|
|
- font-size: 28upx;
|
|
|
- font-family: PingFang SC;
|
|
|
- font-weight: 500;
|
|
|
- color: #111111;
|
|
|
- line-height: 1;
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 36rpx;
|
|
|
+ color: rgba(0,0,0,0.85);
|
|
|
+ margin-left: 20rpx;
|
|
|
}
|
|
|
}
|
|
|
+ .share-item:last-child{
|
|
|
+ margin-bottom: 0;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.cancel-btn {
|
|
|
height: 96upx;
|
|
|
line-height: 96upx;
|
|
|
text-align: center;
|
|
|
- font-size: 32upx;
|
|
|
+ font-size: 32rpx;
|
|
|
font-family: PingFang SC;
|
|
|
- font-weight: 500;
|
|
|
- color: #111111;
|
|
|
- border-top: 2upx solid #E8E8E8;
|
|
|
+ font-weight: 400;
|
|
|
+ color: rgba(0,0,0,0.85);
|
|
|
background-color: #FFF;
|
|
|
+ margin-top: 20rpx;
|
|
|
+ margin-bottom: 20rpx;
|
|
|
+ border-radius: 48rpx;
|
|
|
}
|
|
|
}
|
|
|
</style>
|