换活动编码

This commit is contained in:
lf 2024-06-14 10:45:28 +08:00
parent d315bb2ab8
commit 9143105904
2 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@
<view class="product-content"> <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_no"></wd-cell>
<wd-cell class="product-cell" title="创建时间:" :value="productData.order_time"></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 <wd-cell
class="product-cell" class="product-cell"
title="商品名称:" title="商品名称:"

View File

@ -120,7 +120,6 @@ window.parent.addEventListener('message', function (event) {
}) })
const initContent = async () => { const initContent = async () => {
query.value = getUrlPathName()
const params = { const params = {
activity_code: query.value || '', activity_code: query.value || '',
} }
@ -145,10 +144,11 @@ const initContent = async () => {
onLoad(() => { onLoad(() => {
// activity_id // activity_id
if (!useStore.userInfo.srcList.url) { query.value = getUrlPathName()
if (!useStore.userInfo.srcList.url || useStore.userInfo.query !== query.value) {
initContent() initContent()
} else { } else {
query.value = useStore.userInfo.query // query.value = useStore.userInfo.query
Object.assign(srcList, useStore.userInfo.srcList) Object.assign(srcList, useStore.userInfo.srcList)
Object.assign(contentData, useStore.userInfo.contentData) Object.assign(contentData, useStore.userInfo.contentData)
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({