修复分享问题
This commit is contained in:
@@ -27,7 +27,10 @@
|
||||
</view>
|
||||
<text class="text">剩余:{{item.quantity}}</text>
|
||||
</view>
|
||||
<view class="goods-name">{{item.goodsName}}</view>
|
||||
<view class="goods-name u-flex u-row-between">
|
||||
<text class="u-m-r-30" style="word-break: break-all;">{{item.goodsName}}</text>
|
||||
<ymfShare color="#333" />
|
||||
</view>
|
||||
<view class="bg-f7" style="height: 24rpx"></view>
|
||||
<view class="desc">
|
||||
<view class="u-flex">
|
||||
@@ -116,6 +119,7 @@
|
||||
</view>
|
||||
</template>
|
||||
<script setup>
|
||||
import ymfShare from '@/components/ymf-components/ymf-share.vue'
|
||||
import {
|
||||
computed,
|
||||
reactive
|
||||
@@ -335,7 +339,7 @@
|
||||
|
||||
import {
|
||||
shareMixin,
|
||||
handleMixinOnLoad,wxShare,returnQuery
|
||||
handleMixinOnLoad,wxShare,returnQuery ,returnIndexBg,
|
||||
} from '@/utils/share.js'
|
||||
// defineOptions({
|
||||
// mixins: [shareMixin],
|
||||
@@ -343,12 +347,13 @@
|
||||
|
||||
onShareAppMessage(async(res)=>{
|
||||
const query=await returnQuery()
|
||||
const shopInfo=uni.cache.get('shopInfo')
|
||||
return wxShare({
|
||||
...res,
|
||||
title:item.goodsName,
|
||||
title:item.goodsName +'-'+shopInfo.shopName,
|
||||
path:'/scoreShop/detail/index'+'?'+query,
|
||||
query,
|
||||
imageUrl:item.goodsImageUrl||''
|
||||
imageUrl:item.goodsImageUrl||returnIndexBg()||''
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user