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