拼团问题修复,增加套餐功能
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
<template>
|
||||
<view class="color-333 u-font-28" v-if="item.id">
|
||||
<view>
|
||||
<view class="relative">
|
||||
<up-swiper height="428rpx" :list="coverImgs" @click="prveImg"></up-swiper>
|
||||
<view class="share-box">
|
||||
分享
|
||||
<button class="share" open-type="share">分享</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="sku">
|
||||
@@ -40,7 +44,7 @@
|
||||
<view class="item u-flex" v-for="(item,index) in item.gbOrderList" :key="index">
|
||||
<up-avatar size="76rpx" :src="item.avatar"></up-avatar>
|
||||
<view class="u-flex u-flex-1 u-p-l-22 u-col-center u-row-between">
|
||||
<view>
|
||||
<view>立即购买购
|
||||
<view class="color-000 u-line-1" style="max-width: 180rpx;">{{item.nickName}}</view>
|
||||
<view class="main-color u-m-t-2">差{{returnNeedPerpole(item)}}人拼成</view>
|
||||
</view>
|
||||
@@ -104,7 +108,7 @@
|
||||
<view>
|
||||
<view class="price">¥{{item.groupPrice}}</view>
|
||||
<view class="old-price">¥{{item.originalPrice}}</view>
|
||||
<view class="limitBuyNum" v-if="item.limitBuyNum"> 限购{{item.limitBuyNum}} </view>
|
||||
<view class="limitBuyNum" v-if="item.limitBuyNum&&item.limitBuyNum!=-10086"> 限购{{item.limitBuyNum}} </view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -139,6 +143,7 @@
|
||||
watch
|
||||
} from "vue";
|
||||
import dayjs from "dayjs";
|
||||
import {wxShare} from '@/utils/share.js'
|
||||
import {
|
||||
getOpenId
|
||||
} from '@/utils/uniapp.js'
|
||||
@@ -147,6 +152,11 @@
|
||||
import {
|
||||
pay
|
||||
} from '@/utils/pay.js'
|
||||
import {
|
||||
Storelogin
|
||||
} from '@/stores/user.js';
|
||||
const storelogin = Storelogin();
|
||||
|
||||
const imgs = {
|
||||
bg: "https://cashier-oss.oss-cn-beijing.aliyuncs.com/upload/2/9fd6a3ad2b384f6cb4e88ed6b77bd334.png",
|
||||
};
|
||||
@@ -326,7 +336,7 @@
|
||||
|
||||
const coverImgs = ref([])
|
||||
|
||||
function init(opt) {
|
||||
async function init(opt) {
|
||||
// 获取小程序进入场景和参数
|
||||
const launchOptions = uni.getLaunchOptionsSync();
|
||||
console.log(launchOptions);
|
||||
@@ -337,6 +347,7 @@
|
||||
console.log(opt)
|
||||
Object.assign(query, opt)
|
||||
console.log(query)
|
||||
await storelogin.actionslogin()
|
||||
getDetail()
|
||||
}
|
||||
|
||||
@@ -346,6 +357,7 @@
|
||||
Object.assign(item, res)
|
||||
console.log(item)
|
||||
coverImgs.value = res.wareImgs.split(',')
|
||||
uni.cache.set('shopId',item.shopId)
|
||||
})
|
||||
}
|
||||
|
||||
@@ -413,11 +425,11 @@
|
||||
// #endif
|
||||
onShareAppMessage(() => {
|
||||
|
||||
const query = `wareId=${item.wareId}&shopId=${item.shopId}`
|
||||
const query = `wareId=${item.id}&shopId=${item.shopId}`
|
||||
return wxShare({
|
||||
title: item.wareJson.wareName,
|
||||
imageUrl: item.goodsImg,
|
||||
path: '/groupBuying/detail/index' + '?' + query,
|
||||
title: item.wareName,
|
||||
imageUrl: coverImgs.value[0],
|
||||
path: '/groupBuying/goodsDetail/goodsDetail' + '?' + query,
|
||||
query,
|
||||
})
|
||||
})
|
||||
@@ -663,4 +675,22 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
.share-box{
|
||||
top: 0;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
padding: 4rpx 30rpx;
|
||||
border-radius: 0 0 0 24rpx;
|
||||
color: #ed5a2e; font-weight: 700;
|
||||
background: #FFF;
|
||||
overflow: hidden;
|
||||
.share{
|
||||
position: absolute;
|
||||
left:0;
|
||||
right: 0;
|
||||
top:0;
|
||||
bottom: 0;
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user