换活动编码
This commit is contained in:
parent
d315bb2ab8
commit
9143105904
|
@ -10,7 +10,7 @@
|
|||
<view class="product-content">
|
||||
<wd-cell class="product-cell" title="订单号:" :value="productData.order_no"></wd-cell>
|
||||
<wd-cell class="product-cell" title="创建时间:" :value="productData.order_time"></wd-cell>
|
||||
<wd-cell class="product-cell" title="面值:" :value="productData.order_amount"></wd-cell>
|
||||
<wd-cell class="product-cell" title="面值:" :value="productData.product_amount"></wd-cell>
|
||||
<wd-cell
|
||||
class="product-cell"
|
||||
title="商品名称:"
|
||||
|
|
|
@ -120,7 +120,6 @@ window.parent.addEventListener('message', function (event) {
|
|||
})
|
||||
|
||||
const initContent = async () => {
|
||||
query.value = getUrlPathName()
|
||||
const params = {
|
||||
activity_code: query.value || '',
|
||||
}
|
||||
|
@ -145,10 +144,11 @@ const initContent = async () => {
|
|||
|
||||
onLoad(() => {
|
||||
// activity_id 方式
|
||||
if (!useStore.userInfo.srcList.url) {
|
||||
query.value = getUrlPathName()
|
||||
if (!useStore.userInfo.srcList.url || useStore.userInfo.query !== query.value) {
|
||||
initContent()
|
||||
} else {
|
||||
query.value = useStore.userInfo.query
|
||||
// query.value = useStore.userInfo.query
|
||||
Object.assign(srcList, useStore.userInfo.srcList)
|
||||
Object.assign(contentData, useStore.userInfo.contentData)
|
||||
uni.setNavigationBarTitle({
|
||||
|
|
Loading…
Reference in New Issue