diff --git a/pages/mine/mine.vue b/pages/mine/mine.vue index f89e4d0..ea5194f 100644 --- a/pages/mine/mine.vue +++ b/pages/mine/mine.vue @@ -12,7 +12,7 @@ + shape="circle" width="26rpx" height="26rpx" bgColor="#f1f6ff00"> {{ currentUserData.agentName }} @@ -21,9 +21,8 @@ - {{ currentUserData.gradeName }} + shape="circle" width="30rpx" height="30rpx" bgColor="#f1f6ff00"> + {{ currentUserData.gradeName }} @@ -81,7 +80,8 @@ - + {{ item.title }} - - - - + + + + + + + + 共{{ item.buyNum }}件,合计数字积分{{ item.buyDeductionValue - }} + }} +¥{{ item.sumAmount }} 运费:¥{{ item.postage }},商品总价:¥{{ item.sumAmount }} @@ -392,10 +396,15 @@ export default { activeIndex: 0, aftterSalesProduct: {}, //售后商品信息 deleteShow: false, - deleteInfo: {} + deleteInfo: {}, + mpWarpStyle: {}, + mpHeaderStyle: {} }; }, onLoad(options) { + // #ifdef MP-WEIXIN || MP + this.initMPHeader(); + // #endif const type = options.type; this.form.type = type ? parseInt(type, 10) : MINE_ORDER_TYPE.UNPAID; this.$nextTick(() => { @@ -411,6 +420,34 @@ export default { this.userinfo(); }, methods: { + initMPHeader() { + // #ifdef MP-WEIXIN || MP + try { + const menuButton = uni.getMenuButtonBoundingClientRect(); + const systemInfo = uni.getSystemInfoSync(); + + if (menuButton && menuButton.top && menuButton.top > 0) { + const menuButtonHeight = menuButton.height || 32; + const menuButtonTop = menuButton.top; + const menuButtonLeft = menuButton.left; + const windowWidth = systemInfo.windowWidth; + + this.mpWarpStyle = { + paddingTop: `${menuButtonTop}px` + }; + + this.mpHeaderStyle = { + height: `${menuButtonHeight}px`, + paddingRight: `${windowWidth - menuButtonLeft + 10}px`, + display: 'flex', + alignItems: 'center' + }; + } + } catch (e) { + console.error("initMPHeader error:", e); + } + // #endif + }, dayjs, getValue, formatDate1, @@ -654,10 +691,6 @@ export default { } catch (error) { console.error("加载数据失败:", error); } finally { - console.log( - "this.orderList1111", - JSON.parse(JSON.stringify(this.orderList)) - ); this.$forceUpdate(); this.loading = false; // 设置加载状态为false } @@ -969,13 +1002,35 @@ export default { height: calc(100vh - env(safe-area-inset-bottom) - 130rpx); background-color: $app-bj; padding: 100rpx 30rpx 30rpx; + /* #ifdef MP-WEIXIN */ + padding-top: 20rpx; + /* #endif */ overflow-y: hidden; position: relative; } .order_header { display: flex; + flex-direction: row; align-items: center; + width: 100%; + box-sizing: border-box; + + .back_btn { + display: flex; + align-items: center; + justify-content: center; + height: 100%; + margin-right: 20rpx; + flex-shrink: 0; + } + + .search_box { + flex: 1; + display: flex; + align-items: center; + height: 100%; + } } .order_type_title { diff --git a/pages/rwa_package/shop/points-shop.vue b/pages/rwa_package/shop/points-shop.vue index d4ed15f..4ec8480 100644 --- a/pages/rwa_package/shop/points-shop.vue +++ b/pages/rwa_package/shop/points-shop.vue @@ -1,50 +1,52 @@ \ No newline at end of file diff --git a/pages/shopping_cart/shopping_cart.vue b/pages/shopping_cart/shopping_cart.vue index 8ec6a16..91ee46c 100644 --- a/pages/shopping_cart/shopping_cart.vue +++ b/pages/shopping_cart/shopping_cart.vue @@ -52,7 +52,8 @@ pItem.unitPrice }} - ¥{{ pItem.unitPrice }} + ¥{{ pItem.originalPrice }} +