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

26
App.vue
View File

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

View File

@ -619,7 +619,14 @@
+{{__('¥')}}{{number_format(store_items.freight,2) || 0}}</view> +{{__('¥')}}{{number_format(store_items.freight,2) || 0}}</view>
<view class="arrow"></view> <view class="arrow"></view>
</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" v-if="(store_items.store_rebate>0)">
<view class="m-cell-bd"> <view class="m-cell-bd">
@ -667,7 +674,7 @@
<view class="m-cell-ft m-total-info"> <view class="m-cell-ft m-total-info">
{{__('总金额:')}} {{__('总金额:')}}
<text <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> </view>
<view v-if="(delivery_item_none_row.length > 0)"> <view v-if="(delivery_item_none_row.length > 0)">

View File

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