小钻风 4 years ago
parent d34c7a8ec9
commit 2f150545e9

@ -56,8 +56,7 @@
</view>
<view class="goods-btns flex align-end">
<!-- IMAGE_URL+item.mainPhotoUrl -->
<button v-if="!hideShareBtn" class="share-btn text-center" @tap.stop="" :data-url='item.mainPhotoUrl'
:data-title="item.goodsName" :data-id="item.goodsId" open-type="share">
<button v-if="!hideShareBtn" class="share-btn text-center" @tap.stop="shareBtn(item.goodsName, item.goodsId, item.mainPhotoUrl)">
<view class="iconfont iconfenxiang"></view>
</button>
<view class="buy-btn text-white round" :class="item.inventory==0?'bg-aaa':'bg-red'">{{item.inventory==0?'已售完':'自购'}}</view>

@ -114,8 +114,6 @@
</scroll-view>
<!-- </u-sticky> -->
<!-- 商品列表组件 -->
<template v-if="goodsList.length!=0">
<goods-list :goodsList="goodsList" :hideShareBtn="roleLevel==500" @shareBtn='shareBtn'></goods-list>
@ -126,6 +124,12 @@
<!-- 分享弹出框 -->
<u-popup v-model="isShow" mode="bottom" border-radius="15">
<view class="share-box flex justify-between">
<view class="flex-sub flex justify-center">
<button class="flex flex-direction justify-center align-center" open-type="share" @tap="hideModel">
<image class="share-icon" src="/static/mine/wx.png" mode="widthFix"></image>
<view class="txt">小程序海报</view>
</button>
</view>
<view class="flex-sub flex justify-center">
<button class="flex flex-direction justify-center align-center" open-type="share" @tap="hideModel">
<image class="share-icon" src="/static/mine/wx.png" mode="widthFix"></image>
@ -282,6 +286,7 @@
},
methods: {
shareBtn(data){
this.isShow = true
this.onShareData = data
},
//
@ -541,12 +546,6 @@
}
});
},
// scan() {
// console.log('1234')
// uni.navigateTo({
// url: '/pages/scan/scan'
// })
// },
toDeitail(id,src){
@ -643,6 +642,7 @@
this.getGoodsList()
},
onShareAppMessage(res) {
console.log(this.onShareData)
let shareObj = {
title: '',
path: "/pages/index/index?invite=" + this.$store.state.invitationNo,

Loading…
Cancel
Save