diff --git a/manifest.json b/manifest.json index cbf61821..b292c230 100644 --- a/manifest.json +++ b/manifest.json @@ -216,7 +216,7 @@ "h5": { "template": "index.html", "router": { - "mode": "hash", + "mode": "history", "base": "./" }, "sdkConfigs": { @@ -236,4 +236,4 @@ "_spaceID": "192b4892-5452-4e1d-9f09-eee1ece40639", "locale": "zh-Hans", "fallbackLocale": "zh-Hans" -} \ No newline at end of file +} diff --git a/package.json b/package.json index aafe3011..d2e3bb5f 100644 --- a/package.json +++ b/package.json @@ -90,6 +90,7 @@ "dependencies": { "dayjs": "^1.11.7", "lodash": "^4.17.21", + "lodash-es": "^4.17.21", "luch-request": "^3.0.8", "pinia": "^2.0.33", "pinia-plugin-persist-uni": "^1.2.0", diff --git a/pages.json b/pages.json index 72d50091..78d7c311 100644 --- a/pages.json +++ b/pages.json @@ -307,6 +307,18 @@ "title": "编辑地址" } }, + { + "path": "goods_details_store/index", + "style": { + "navigationBarTitleText": "自提门店" + }, + "meta": { + "auth": true, + "sync": true, + "title": "地址管理", + "group": "用户中心" + } + }, { "path": "wallet/money", "style": { diff --git a/pages/activity/groupon/detail.vue b/pages/activity/groupon/detail.vue index 0db9ab3a..7b606ec6 100644 --- a/pages/activity/groupon/detail.vue +++ b/pages/activity/groupon/detail.vue @@ -1,6 +1,11 @@ \ No newline at end of file + .tab-line { + width: 60rpx; + height: 6rpx; + border-radius: 6rpx; + position: absolute; + left: 50%; + transform: translateX(-50%); + bottom: 10rpx; + background-color: var(--ui-BG-Main); + z-index: 12; + } + } + diff --git a/pages/goods/seckill.vue b/pages/goods/seckill.vue index 027449a3..34708d62 100644 --- a/pages/goods/seckill.vue +++ b/pages/goods/seckill.vue @@ -63,16 +63,13 @@ - {{ state.goodsInfo?.name }} + {{ state.goodsInfo.name || '' }} {{ state.goodsInfo.introduction }} - + 秒杀价 @@ -136,11 +135,11 @@ diff --git a/pages/index/cart.vue b/pages/index/cart.vue index ae90777f..633b567d 100644 --- a/pages/index/cart.vue +++ b/pages/index/cart.vue @@ -107,6 +107,7 @@ skuId: item.sku.id, count: item.count, cartId: item.id, + categoryId: item.spu.categoryId }) goods_list.push({ // goods_id: item.goods_id, @@ -124,12 +125,7 @@ } sheep.$router.go('/pages/order/confirm', { data: JSON.stringify({ - // order_type: 'goods', - // goods_list, - items, - // from: 'cart', - deliveryType: 1, - pointStatus: false, + items }), }); } diff --git a/pages/index/category.vue b/pages/index/category.vue index 2317d1d9..4c88f388 100644 --- a/pages/index/category.vue +++ b/pages/index/category.vue @@ -63,7 +63,7 @@ import SpuApi from '@/sheep/api/product/spu'; import { onLoad, onReachBottom } from '@dcloudio/uni-app'; import { computed, reactive } from 'vue'; - import _ from 'lodash'; + import _ from 'lodash-es'; import { handleTree } from '@/sheep/util'; const state = reactive({ @@ -131,12 +131,13 @@ getGoodsList(); } - onLoad(async () => { + onLoad(async (params) => { await getList(); - // 如果是 first 风格,需要加载商品分页 - if (state.style === 'first_one' || state.style === 'first_two') { - onMenu(0); - } + + // 首页点击分类的处理:查找满足条件的分类 + const foundCategory = state.categoryList.find(category => category.id === params.id); + // 如果找到则调用 onMenu 自动勾选相应分类,否则调用 onMenu(0) 勾选第一个分类 + onMenu(foundCategory ? state.categoryList.indexOf(foundCategory) : 0); }); onReachBottom(() => { diff --git a/pages/order/addressSelection.vue b/pages/order/addressSelection.vue new file mode 100644 index 00000000..2432d413 --- /dev/null +++ b/pages/order/addressSelection.vue @@ -0,0 +1,261 @@ + + + + + + diff --git a/pages/order/aftersale/apply.vue b/pages/order/aftersale/apply.vue index 8c9752ed..805ea944 100644 --- a/pages/order/aftersale/apply.vue +++ b/pages/order/aftersale/apply.vue @@ -98,11 +98,7 @@ - @@ -30,7 +30,9 @@ 充值时间 - {{ sheep.$helper.timeFormat(item.payTime, 'yyyy-mm-dd hh:MM:ss') }} + + {{ sheep.$helper.timeFormat(item.payTime, 'yyyy-mm-dd hh:MM:ss') }} @@ -53,7 +55,7 @@ \ No newline at end of file + .cancel-btn { + width: 710rpx; + height: 80rpx; + border-radius: 40rpx; + background: var(--ui-BG); + } + } + diff --git a/pages/user/address/list.vue b/pages/user/address/list.vue index a812afc7..f3bc6869 100644 --- a/pages/user/address/list.vue +++ b/pages/user/address/list.vue @@ -1,143 +1,166 @@ \ No newline at end of file + .sync-wxaddress { + flex: 1; + line-height: 80rpx; + background: $white; + border-radius: 80rpx; + font-size: 30rpx; + font-weight: 500; + color: $dark-6; + margin-right: 18rpx; + } + } + diff --git a/pages/user/goods-collect.vue b/pages/user/goods-collect.vue index 03099bce..af5e64a1 100644 --- a/pages/user/goods-collect.vue +++ b/pages/user/goods-collect.vue @@ -5,7 +5,8 @@ - 共 {{ state.pagination.total }} 件商品 + 共 + {{ state.pagination.total }} 件商品 @@ -100,7 +102,7 @@ import sheep from '@/sheep'; import { reactive } from 'vue'; import { onLoad, onReachBottom } from '@dcloudio/uni-app'; - import _ from 'lodash'; + import _ from 'lodash-es'; import FavoriteApi from '@/sheep/api/product/favorite'; import { resetPagination } from '@/sheep/util'; @@ -129,7 +131,7 @@ if (code !== 0) { return; } - state.pagination.list = _.concat(state.pagination.list, data.list) + state.pagination.list = _.concat(state.pagination.list, data.list); state.pagination.total = data.total; state.loadStatus = state.pagination.list.length < state.pagination.total ? 'more' : 'noMore'; } @@ -174,7 +176,7 @@ // 加载更多 function loadMore() { if (state.loadStatus === 'noMore') { - return + return; } state.pagination.pageNo++; getData(); diff --git a/pages/user/goods-log.vue b/pages/user/goods-log.vue index 630f7c5a..b52efe3c 100644 --- a/pages/user/goods-log.vue +++ b/pages/user/goods-log.vue @@ -81,11 +81,13 @@ @@ -154,10 +155,7 @@ - + {{ state.thirdInfo.nickname }} @@ -185,7 +183,7 @@ + &.vertical { + width: 50rpx; + height: 140rpx; + margin: auto 20rpx auto 0; + + .btn-text { + font-size: 24rpx; + text-align: center; + writing-mode: vertical-lr; + } + } + } + + .coupon-item { + &:nth-of-type(1) { + margin-left: 0 !important; + } + } + \ No newline at end of file diff --git a/sheep/components/s-coupon-card/s-coupon-card.vue b/sheep/components/s-coupon-card/s-coupon-card.vue index bd5705bb..dac69e31 100644 --- a/sheep/components/s-coupon-card/s-coupon-card.vue +++ b/sheep/components/s-coupon-card/s-coupon-card.vue @@ -1,6 +1,6 @@