From 5ef23f712359ef7b86cd577c92df2b176965366a Mon Sep 17 00:00:00 2001 From: peng <peng.com> Date: 星期一, 21 七月 2025 09:02:50 +0800 Subject: [PATCH] 解决主包过大问题 --- pages/mine/deposit/operation.vue | 7 + pages/tabbar/user/my.vue | 2 pages/mine/deposit/recharge.vue | 10 ++ pages/order/orderDetail.vue | 2 pages.json | 163 +++++++++++++++++++++++++++++++++++++--- pages/mine/deposit/index.vue | 6 6 files changed, 166 insertions(+), 24 deletions(-) diff --git a/pages.json b/pages.json index 8f863be..06eec49 100644 --- a/pages.json +++ b/pages.json @@ -2,7 +2,8 @@ "easycom": { "autoscan": true, "custom": { - "^u-(.*)": "@/pages/subComponents/uview-components/uview-ui/components/u-$1/u-$1.vue" + "^u-(.*)": "@/pages/subComponents/uview-components/uview-ui/components/u-$1/u-$1.vue", + "__placeholder__": true //uview, // "^uni-(.*)": "@/uni_modules/uni-$1/components/uni-$1/uni-$1.vue" // uniapp缁勪欢 } @@ -528,13 +529,15 @@ { "path": "deposit/index", "style": { - "navigationStyle": "custom" + // "navigationStyle": "custom" + "navigationBarTitleText": "棰勫瓨娆惧垪琛�" } }, { "path": "deposit/operation", "style": { - "navigationStyle": "custom" + "navigationBarTitleText": "浣欓" + // "navigationStyle": "custom" } }, { @@ -647,7 +650,12 @@ "navigationStyle": "custom", // 闅愯棌绯荤粺瀵艰埅鏍� "enablePullDownRefresh": true, - "app-plus": {} + "app-plus": {}, + "componentPlaceholder": { + "u-navbar": "view", + "u-image": "view", + "u-avatar": "view" + } } }, { @@ -761,7 +769,13 @@ { "path": "msgTips/packageMsg/logisticsDetail", "style": { - "navigationBarTitleText": "璁㈠崟璺熻釜" + "navigationBarTitleText": "璁㈠崟璺熻釜", + "componentPlaceholder": { + "u-time-line": "view", + "u-time-line-item": "view", + "u-icon": "view", + "u-empty": "view" + } } }, { @@ -811,8 +825,8 @@ "enablePullDownRefresh": true, //涓嬫媺鍒锋柊 "componentPlaceholder": { - "u-form": "view", - "u-form-item": "view", + "u-empty": "view", + "u-loadmore": "view", "u-input": "view", "u-icon": "view", "u-action-sheet": "view", @@ -887,6 +901,79 @@ "navigationBarTitleText": "" } }, + { + "path": "m-share/index", + "style": { + "navigationBarTitleText": "", + "navigationStyle": "custom", + "componentPlaceholder": { + "u-popup": "view", + "u-icon": "view" + } + } + }, + { + "path": "m-goods-list/list", + "style": { + "navigationBarTitleText": "", + "navigationStyle": "custom", + "app-plus": { + //app椤甸潰涓嶆樉绀烘粴鍔ㄦ潯 + "scrollIndicator": "none", + "bottom": "0", + "contentAdjust": "false", + "bounce": "none", + "safearea": { + "bottom": "none" + } + }, + "componentPlaceholder": { + "u-image": "view", + "u-loading": "view", + "u-tag": "view", + "u-icon": "view" + } + } + }, + { + "path": "m-buy/goods", + "style": { + "navigationBarTitleText": "", + "componentPlaceholder": { + "u-popup": "view", + "u-image": "view", + "u-alert-tips": "view" + } + } + }, + { + "path": "m-take-down-sale-goods/index", + "style": { + "navigationBarTitleText": "", + "componentPlaceholder": { + "u-popup": "view" + } + } + }, + // { + // "path": "popups/popups", + // "style": { + // "navigationBarTitleText": "", + // "componentPlaceholder": { + // "u-icon": "view", + // "u-button": "view", + // "u-form": "view", + // "u-form-item": "view", + // "u-input": "view", + // "u-popup": "view", + // "u-search": "view", + // "u-loading": "view", + // "u-navbar": "view", + // "u-image": "view", + // "u-loadmore": "view" + // } + // } + // }, { "path": "shopList", "style": { @@ -904,7 +991,20 @@ "path": "shopPageGoods", "style": { "navigationBarTitleText": "", - "navigationStyle": "custom" + "navigationStyle": "custom", + "componentPlaceholder": { + "u-icon": "view", + "u-button": "view", + "u-form": "view", + "u-form-item": "view", + "u-input": "view", + "u-popup": "view", + "u-search": "view", + "u-loading": "view", + "u-navbar": "view", + "u-image": "view", + "u-loadmore": "view" + } } }, { @@ -1328,7 +1428,12 @@ "app-plus": { "popGesture": "none" //绂佹渚ф粦閫�鍑� - } + }, + "componentPlaceholder": { + "u-count-down": "view", + "u-row": "view", + "u-icon": "view" + } } }, { @@ -1424,7 +1529,18 @@ { "path": "orderDetail", "style": { - "navigationBarTitleText": "璁㈠崟璇︽儏" + "navigationBarTitleText": "璁㈠崟璇︽儏", + "componentPlaceholder": { + "u-icon": "view", + "u-image": "view", + "u-tag": "view", + "u-button": "view", + "u-popup": "view", + "u-radio-group": "view", + "u-radio": "view", + "u-toast": "view", + "u-modal": "view" + } } }, { @@ -1436,13 +1552,24 @@ { "path": "evaluate/evaluateDetail", "style": { - "navigationBarTitleText": "璇勪环璇︽儏" + "navigationBarTitleText": "璇勪环璇︽儏", + "componentPlaceholder": { + "u-image": "view" + } } }, { "path": "evaluate/releaseEvaluate", "style": { - "navigationBarTitleText": "鍙戝竷璇勪环" + "navigationBarTitleText": "鍙戝竷璇勪环", + "componentPlaceholder": { + "u-icon": "view", + "u-image": "view", + "u-input": "view", + "u-upload": "view", + "u-rate": "view", + "u-toast": "view" + } } }, { @@ -1497,7 +1624,11 @@ { "path": "afterSales/afterSalesSelect", "style": { - "navigationBarTitleText": "鐢宠鍞悗" + "navigationBarTitleText": "鐢宠鍞悗", + "componentPlaceholder": { + "u-image": "view", + "u-icon": "view" + } } }, { @@ -1709,7 +1840,9 @@ "u-search": "view", "u-loading": "view", "u-navbar": "view", - "u-loadmore": "view" + "u-loadmore": "view", + "u-empty": "view" + } } }, @@ -1723,7 +1856,7 @@ "u-form": "view", "u-form-item": "view", "u-input": "view", - "u-popup": "view", + "u-toast": "view", "u-search": "view", "u-loading": "view", "u-navbar": "view", diff --git a/pages/mine/deposit/index.vue b/pages/mine/deposit/index.vue index 80d5a66..9cf175a 100644 --- a/pages/mine/deposit/index.vue +++ b/pages/mine/deposit/index.vue @@ -1,7 +1,7 @@ <template> <view class="wap"> - <u-navbar title="棰勫瓨娆惧垪琛�"> - </u-navbar> +<!-- <u-navbar title="棰勫瓨娆惧垪琛�"> + </u-navbar> --> <view class="wrapper-show-money"> <view class="money-view"> <h3>棰勫瓨娆鹃噾棰� </h3> @@ -27,7 +27,7 @@ </view> </view> - <u-empty v-if="depositData.length==0" mode="history" text="鏆傛棤璁板綍" /> + <!-- <u-empty v-if="depositData.length==0" mode="history" text="鏆傛棤璁板綍" /> --> </scroll-view> diff --git a/pages/mine/deposit/operation.vue b/pages/mine/deposit/operation.vue index 2013d8b..8d4d37b 100644 --- a/pages/mine/deposit/operation.vue +++ b/pages/mine/deposit/operation.vue @@ -1,6 +1,6 @@ <template> <div class="wrapper"> - <u-navbar :custom-back="back" title="浣欓"></u-navbar> + <!-- <u-navbar :custom-back="back" title="浣欓"></u-navbar> --> <div class="box"> <div class="deposit">棰勫瓨娆鹃噾棰�</div> <div class="money">锟{walletNum | unitPrice }}</div> @@ -13,14 +13,15 @@ <div class="box list" @click="navigateTo('/pages/mine/deposit/index')"> <div class="list-left">棰勫瓨娆炬槑缁�</div> <div class="list-right"> - <u-icon name="arrow-right"></u-icon> + <!-- <u-icon name="arrow-right"></u-icon> --> + <uni-icons type="right" size="24"></uni-icons> </div> </div> </div> </template> <script> -import '@/components/uview-components/uview-ui' +import '@/pages/subComponents/uview-components/uview-ui'; import { getUserWallet } from "@/api/members"; export default { data() { diff --git a/pages/mine/deposit/recharge.vue b/pages/mine/deposit/recharge.vue index af499a8..1bfb23c 100644 --- a/pages/mine/deposit/recharge.vue +++ b/pages/mine/deposit/recharge.vue @@ -6,7 +6,7 @@ <view class="content"> <view class="price"> <span> 锟�</span> - <u-input v-model="price" placeholder='閲戦' type="number" /> + <input v-model="price" style="height: 120rpx;" placeholder='閲戦' type="number" /> </view> @@ -50,4 +50,12 @@ </script> <style lang="scss" scoped> @import './style.scss'; +.price{ + width: 60%; + margin: 20rpx 0; + font-size: 40rpx; + display: flex; + align-items: center; + justify-content: center; +} </style> \ No newline at end of file diff --git a/pages/order/orderDetail.vue b/pages/order/orderDetail.vue index a1ce441..0662cb8 100644 --- a/pages/order/orderDetail.vue +++ b/pages/order/orderDetail.vue @@ -263,7 +263,7 @@ </template> <script> -import '@/components/uview-components/uview-ui' +import '@/pages/subComponents/uview-components/uview-ui' import { getExpress, getPackage ,buyBack} from "@/api/trade.js"; import { cancelOrder, confirmReceipt, getOrderDetail } from "@/api/order.js"; diff --git a/pages/tabbar/user/my.vue b/pages/tabbar/user/my.vue index 470bb0a..4ae3257 100644 --- a/pages/tabbar/user/my.vue +++ b/pages/tabbar/user/my.vue @@ -116,7 +116,7 @@ </view> </template> <script> -import '@/components/uview-components/uview-ui'; +import '@/pages/subComponents/uview-components/uview-ui'; import tool from "@/pages/tabbar/user/utils/tool.vue"; import { getSTSToken } from "@/api/common.js"; import { getCouponsNum, getFootprintNum } from "@/api/members.js"; -- Gitblit v1.8.0