[同步代码]

This commit is contained in:
2021-10-29 14:28:53 +08:00
parent e5ba70c517
commit d45410e6f2
10 changed files with 910 additions and 10 deletions

View File

@@ -28,7 +28,9 @@
</view>
</view>
<view class="title">
<view class="title-hot" v-if="goodsObj.specal_tags.is_allow_values">{{goodsObj.specal_tags.is_allow_values}}</view>
<view class="title-hot" v-if="goodsObj.specal_tags.is_allow_values">
{{goodsObj.specal_tags.is_allow_values}}
</view>
<view class="title-hot" v-if="goodsObj.specal_tags.is_self">{{goodsObj.specal_tags.is_self}}</view>
{{goodsObj.name}}
</view>
@@ -175,9 +177,7 @@
</view>
</view>
</view>
<view class="coupons-true" @click="serveClose">
确定
</view>
<view class="coupons-true" @click="serveClose">确定</view>
</view>
</uni-popup>
</view>
@@ -189,6 +189,9 @@
managesCoupons
} from '@/apis/interfaces/goods'
import userAuth from '@/public/userAuth'
import UniShare from 'uni_modules/uni-share/js_sdk/uni-share.js'
const uniShare = new UniShare()
import {config} from '@/apis/index.js'
export default {
data() {
return {
@@ -210,6 +213,17 @@
this.coupons = res.coupons
})
},
onBackPress({
from
}) {
console.log(from);
if (from == 'backbutton') {
this.$nextTick(function() {
uniShare.hide()
})
return uniShare.isShow;
}
},
methods: {
// 提交购买单
buyGoods() {
@@ -298,6 +312,40 @@
// 查看保障服务-隐藏
serveClose() {
this.$refs.servePopup.close()
},
// 顶部菜单点击了分享功能
onNavigationBarButtonTap() {
console.log('点击了分享功能。。。')
uniShare.show({
content: { //公共的分享参数配置 类型type、链接herf、标题title、summary描述、imageUrl缩略图
type: 0,
href: 'https://www.lianshang.vip/app?',
title: '链商星球,共创未来,一起搭建链商经济的世界~',
summary: '链商星球app你值得拥有~天天签到领福利~',
imageUrl: config.apiUrls+'images/top_logo.png'
},
menus: [{
"img": "/static/icons/payWay_icon_00.png",
"text": "微信好友",
"share": { //当前项的分享参数配置。可覆盖公共的配置如下分享到微信小程序配置了type=5
"provider": "weixin",
"scene": "WXSceneSession"
}
},
{
"img": "/static/icons/share-pyq.png",
"text": "微信朋友圈",
"share": {
"provider": "weixin",
"scene": "WXSenceTimeline"
}
}
],
cancelText: "取消分享",
}, e => { //callback
console.log(uniShare.isShow);
console.log(e);
})
}
}
}
@@ -353,7 +401,7 @@
.title-hot {
display: inline-block;
background-image: linear-gradient(to left,#fee195,#fee195);
background-image: linear-gradient(to left, #fee195, #fee195);
font-size: 24rpx;
border-radius: 50rpx;
padding: 0 10rpx;