update 更新打包费,和测试扫码进入问题

This commit is contained in:
qijq 2025-08-18 10:26:55 +08:00
parent 038c9ecda5
commit 1155891056
3 changed files with 36 additions and 8 deletions

24
App.vue
View File

@ -35,13 +35,29 @@ export default {
uni.setStorageSync("activity_id", options.query.activity_id);
}
//
if (options.ulr = 'pagesub/index/store') {
const scene = decodeURIComponent(options.query.scene || `store_id=${options.query.store_id}`);
//
if (options.url === 'pagesub/index/store') { // options.url
let sceneParams = '';
// 1 scene
if (options.query.scene) {
sceneParams = decodeURIComponent(options.query.scene);
}
// 2 scene store_id
else if (options.query.store_id || options.store_id) {
sceneParams = `store_id=${options.query.store_id}`;
}
//
if (sceneParams) {
wx.navigateTo({
url: `/${options.path}?${scene}`
url: `/${options.path}?${sceneParams}` // /pages/store?id=123
});
} else {
//
console.error('错误:未找到 store_id 参数');
wx.switchTab({ url: '/pages/index/index' }); //
}
}
let that = this;

View File

@ -619,7 +619,14 @@
+{{__('¥')}}{{number_format(store_items.freight,2) || 0}}</view>
<view class="arrow"></view>
</view>
<view class="m-cell">
<view class="m-cell-bd">
<text>打包费</text>
</view>
<view class="m-cell-ft m-order-typetxt">
+{{__('¥')}}{{number_format(store_items.packing_fee,2) || 0}}</view>
<view class="arrow"></view>
</view>
<!-- 返利 -->
<view class="m-cell" v-if="(store_items.store_rebate>0)">
<view class="m-cell-bd">
@ -667,7 +674,7 @@
<view class="m-cell-ft m-total-info">
{{__('总金额:')}}
<text
class="m-total-price">{{sprintf(__('¥%.2f'), store_items.store_amount != null ? store_items.store_amount : store_items.order_money_select_items+store_items.freight)}}</text>
class="m-total-price">{{sprintf(__('¥%.2f'), store_items.store_amount != null ? store_items.store_amount : store_items.order_money_select_items+store_items.freight+store_items.packing_fee)}}</text>
</view>
</view>
<view v-if="(delivery_item_none_row.length > 0)">

View File

@ -732,13 +732,18 @@ export default {
onBackPress({ from }) {
console.log("=======", from);
debugger;
if (from == "backbutton") {
uni.switchTab({ url: "/pages/index/index" });
}
},
onLoad: function (options) {
let that = this;
that.$.showModal({
title: "提示",
content: options,
});
this.initStorePageData(options);
},