拼团修改
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="min-page bg-f7 color-333 u-font-28 relative">
|
||||
<view class="top" :style="topStyle">
|
||||
<up-navbar bg-color="transparent" :fixed="false" :placeholder="false" title="订单详情" left-icon-color="#fff"
|
||||
<up-navbar bg-color="transparent" :fixed="false" :placeholder="false" title="订单详情" left-icon-color="#fff" @leftClick="uni.navigateBack()"
|
||||
title-color="#fff"></up-navbar>
|
||||
<view class="u-flex info u-col-center">
|
||||
</view>
|
||||
@@ -184,8 +184,16 @@
|
||||
})
|
||||
|
||||
function init(opt) {
|
||||
// 获取小程序进入场景和参数
|
||||
const launchOptions = uni.getLaunchOptionsSync();
|
||||
console.log(launchOptions);
|
||||
// 获取链接上的参数
|
||||
const launchOptionsQuery = launchOptions.query;
|
||||
console.log('launchOptionsQuery', launchOptionsQuery);
|
||||
Object.assign(query, launchOptionsQuery)
|
||||
console.log(opt)
|
||||
Object.assign(query, opt)
|
||||
console.log(query)
|
||||
getDetail()
|
||||
}
|
||||
const item = reactive({})
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<template v-if="item.gbOrderList.length">
|
||||
<view class="bg-f7" style="height: 32rpx"></view>
|
||||
<view class="groups">
|
||||
<view class="color-000 u-m-b-28 u-font-32 font-700">立即拼团</view>
|
||||
@@ -54,6 +55,8 @@
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
||||
<view class="bg-f7" style="height: 32rpx"></view>
|
||||
|
||||
@@ -238,7 +241,8 @@
|
||||
console.log(res)
|
||||
if (res) {
|
||||
uni.redirectTo({
|
||||
url: '/groupBuying/success/index?detailId='+orderRes.goodsRecord.id
|
||||
url: '/groupBuying/success/index?detailId=' + orderRes.goodsRecord
|
||||
.id
|
||||
})
|
||||
} else {
|
||||
uni.showToast({
|
||||
@@ -327,14 +331,23 @@
|
||||
const query = reactive({
|
||||
shopId: '',
|
||||
wareId: '',
|
||||
groupOrderNo:''
|
||||
})
|
||||
|
||||
|
||||
const coverImgs = ref([])
|
||||
|
||||
function init(opt) {
|
||||
// 获取小程序进入场景和参数
|
||||
const launchOptions = uni.getLaunchOptionsSync();
|
||||
console.log(launchOptions);
|
||||
// 获取链接上的参数
|
||||
const launchOptionsQuery = launchOptions.query;
|
||||
console.log('launchOptionsQuery', launchOptionsQuery);
|
||||
Object.assign(query, launchOptionsQuery)
|
||||
console.log(opt)
|
||||
Object.assign(query, opt)
|
||||
console.log(query)
|
||||
getDetail()
|
||||
}
|
||||
|
||||
@@ -625,15 +638,19 @@
|
||||
.groups {
|
||||
padding: 28rpx 22rpx;
|
||||
background-color: #fff;
|
||||
|
||||
.item {
|
||||
padding: 28rpx 0;
|
||||
border-bottom: 2rpx solid #EDEDED;
|
||||
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.main-color {
|
||||
color: #ed5a2e;
|
||||
}
|
||||
|
||||
.btn {
|
||||
padding: 8rpx 26rpx;
|
||||
border-radius: 36rpx;
|
||||
|
||||
@@ -352,12 +352,13 @@
|
||||
|
||||
onShareAppMessage(() => {
|
||||
console.log('onShareAppMessage')
|
||||
|
||||
console.log(shareItem)
|
||||
const query=`groupOrderNo=${shareItem.groupOrderNo}&shopId=${shareItem.shopId}`
|
||||
return wxShare({
|
||||
title: shareItem.wareJson.wareName,
|
||||
imageUrl: shareItem.goodsImg,
|
||||
path:'/groupBuying/goodsDetail/goodsDetail',
|
||||
query: `wareId=${shareItem.wareId}&shopId=${shareItem.shopId}`,
|
||||
path:'/groupBuying/detail/index' +'?'+query,
|
||||
query,
|
||||
})
|
||||
})
|
||||
onLoad(getData)
|
||||
|
||||
Reference in New Issue
Block a user