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/activity/groupon/detail.vue b/pages/activity/groupon/detail.vue
index 0db9ab3a..86daff20 100644
--- a/pages/activity/groupon/detail.vue
+++ b/pages/activity/groupon/detail.vue
@@ -1,6 +1,11 @@
-
+
@@ -22,7 +27,7 @@
priceColor="#E1212B"
@tap="
sheep.$router.go('/pages/goods/groupon', {
- id: state.data.headRecord.activityId
+ id: state.data.headRecord.activityId,
})
"
:style="[{ top: Number(statusBarHeight + 108) + 'rpx' }]"
@@ -71,7 +76,9 @@
还差
- {{ state.data.headRecord.userSize - state.data.headRecord.userCount }}人
+ {{ state.data.headRecord.userSize - state.data.headRecord.userCount }}人
拼团成功
{{ endTime.h }}
@@ -109,7 +116,11 @@
-
+
-
@@ -198,8 +205,8 @@
import { onLoad } from '@dcloudio/uni-app';
import { useDurationTime } from '@/sheep/hooks/useGoods';
import { showShareModal } from '@/sheep/hooks/useModal';
- import { isEmpty } from 'lodash';
- import CombinationApi from "@/sheep/api/promotion/combination";
+ import { isEmpty } from 'lodash-es';
+ import CombinationApi from '@/sheep/api/promotion/combination';
const headerBg = sheep.$url.css('/static/img/shop/user/withdraw_bg.png');
const statusBarHeight = sheep.$platform.device.statusBarHeight * 2;
@@ -295,7 +302,9 @@
state.remainNumber = remainNumber > 0 ? remainNumber : 0;
// 获取活动信息
- const { data: activity } = await CombinationApi.getCombinationActivity(data.headRecord.activityId);
+ const { data: activity } = await CombinationApi.getCombinationActivity(
+ data.headRecord.activityId,
+ );
state.activity = activity;
} else {
state.data = null;
@@ -316,8 +325,7 @@
.recharge-box {
position: relative;
margin-bottom: 120rpx;
- background: v-bind(headerBg) center/750rpx 100%
- no-repeat,
+ background: v-bind(headerBg) center/750rpx 100% no-repeat,
linear-gradient(115deg, #f44739 0%, #ff6600 100%);
border-radius: 0 0 5% 5%;
height: 100rpx;
diff --git a/pages/activity/groupon/order.vue b/pages/activity/groupon/order.vue
index fc2a38a2..72e03475 100644
--- a/pages/activity/groupon/order.vue
+++ b/pages/activity/groupon/order.vue
@@ -24,9 +24,9 @@
@@ -67,8 +67,8 @@
import { reactive } from 'vue';
import { onLoad, onReachBottom, onPullDownRefresh } from '@dcloudio/uni-app';
import sheep from '@/sheep';
- import _ from 'lodash';
- import {formatOrderColor} from "@/sheep/hooks/useGoods";
+ import _ from 'lodash-es';
+ import { formatOrderColor } from '@/sheep/hooks/useGoods';
import { resetPagination } from '@/sheep/util';
import CombinationApi from '@/sheep/api/promotion/combination';
@@ -121,7 +121,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';
}
diff --git a/pages/activity/index.vue b/pages/activity/index.vue
index f36a0e5a..56417ed9 100644
--- a/pages/activity/index.vue
+++ b/pages/activity/index.vue
@@ -63,7 +63,7 @@
import { reactive } from 'vue';
import { onLoad, onReachBottom } from '@dcloudio/uni-app';
import sheep from '@/sheep';
- import _ from 'lodash';
+ import _ from 'lodash-es';
import RewardActivityApi from '@/sheep/api/promotion/rewardActivity';
import { formatRewardActivityRule } from '@/sheep/hooks/useGoods';
import SpuApi from '@/sheep/api/product/spu';
@@ -118,7 +118,7 @@
const { code, data } = await SpuApi.getSpuPage({
pageNo: state.pagination.pageNo,
pageSize: state.pagination.pageSize,
- ...params
+ ...params,
});
if (code !== 0) {
return;
diff --git a/pages/chat/components/select-popup.vue b/pages/chat/components/select-popup.vue
index 6c701441..60711af2 100644
--- a/pages/chat/components/select-popup.vue
+++ b/pages/chat/components/select-popup.vue
@@ -32,7 +32,7 @@
\ No newline at end of file
+ .log-text {
+ max-width: 480rpx;
+ font-size: 24rpx;
+ font-weight: 500;
+ color: #333333;
+ }
+ }
+ }
+ }
+
diff --git a/pages/commission/goods.vue b/pages/commission/goods.vue
index d4678490..b9df293a 100644
--- a/pages/commission/goods.vue
+++ b/pages/commission/goods.vue
@@ -14,12 +14,18 @@
>
- 预计佣金:计算中
-
+ 预计佣金:计算中
+
预计佣金:{{ fen2yuan(item.brokerageMinPrice) }}
- 预计佣金:{{ fen2yuan(item.brokerageMinPrice) }} ~ {{ fen2yuan(item.brokerageMaxPrice) }}
+ 预计佣金:{{ fen2yuan(item.brokerageMinPrice) }} ~
+ {{ fen2yuan(item.brokerageMaxPrice) }}
订单编号:{{ item.bizId }}
- {{
- item.status === 0 ? '待结算'
- : item.status === 1 ? '已结算' : '已取消'
- }}
+ {{ item.status === 0 ? '待结算' : item.status === 1 ? '已结算' : '已取消' }}
( 佣金 {{ fen2yuan(item.price) }} 元 )
@@ -77,7 +74,7 @@
import sheep from '@/sheep';
import { onLoad, onReachBottom } from '@dcloudio/uni-app';
import { reactive } from 'vue';
- import _ from 'lodash';
+ import _ from 'lodash-es';
import { onPageScroll } from '@dcloudio/uni-app';
import { resetPagination } from '@/sheep/util';
import BrokerageApi from '@/sheep/api/trade/brokerage';
diff --git a/pages/commission/team.vue b/pages/commission/team.vue
index 82a492e1..eb58abb9 100644
--- a/pages/commission/team.vue
+++ b/pages/commission/team.vue
@@ -235,7 +235,7 @@
import sheep from '@/sheep';
import { onLoad, onReachBottom } from '@dcloudio/uni-app';
import { computed, reactive, ref } from 'vue';
- import _ from 'lodash';
+ import _ from 'lodash-es';
import { onPageScroll } from '@dcloudio/uni-app';
import BrokerageApi from '@/sheep/api/trade/brokerage';
diff --git a/pages/commission/wallet.vue b/pages/commission/wallet.vue
index d0ad059b..2181b30c 100644
--- a/pages/commission/wallet.vue
+++ b/pages/commission/wallet.vue
@@ -1,196 +1,243 @@
-
-
-
+ }"
+ />
+
\ No newline at end of file
+ .uni-easyinput__placeholder-class {
+ font-size: 30rpx;
+ height: 40rpx;
+ line-height: normal;
+ }
+ }
+
diff --git a/pages/coupon/detail.vue b/pages/coupon/detail.vue
index 0a760d27..6ebaa854 100644
--- a/pages/coupon/detail.vue
+++ b/pages/coupon/detail.vue
@@ -16,13 +16,16 @@
{{ state.coupon.name }}
满 {{ fen2yuan(state.coupon.usePrice) }} 元,
- {{ state.coupon.discountType === 1
- ? '减 ' + fen2yuan(state.coupon.discountPrice) + ' 元'
- : '打 ' + state.coupon.discountPercent / 10.0 + ' 折' }}
+ {{
+ state.coupon.discountType === 1
+ ? '减 ' + fen2yuan(state.coupon.discountPrice) + ' 元'
+ : '打 ' + state.coupon.discountPercent / 10.0 + ' 折'
+ }}
{{ state.coupon.canTake ? '立即领取' : '已领取' }}
- {{ state.coupon.status === 1 ? '立即使用' : state.coupon.status === 2 ? '已使用' : '已过期' }}
+ {{
+ state.coupon.status === 1
+ ? '立即使用'
+ : state.coupon.status === 2
+ ? '已使用'
+ : '已过期'
+ }}
@@ -140,7 +149,7 @@
import sheep from '@/sheep';
import { onLoad, onReachBottom } from '@dcloudio/uni-app';
import { reactive } from 'vue';
- import _ from 'lodash';
+ import _ from 'lodash-es';
import CouponApi from '@/sheep/api/promotion/coupon';
import { fen2yuan } from '@/sheep/hooks/useGoods';
import SpuApi from '@/sheep/api/product/spu';
@@ -176,7 +185,7 @@
const { code, data } = await SpuApi.getSpuPage({
categoryId: state.categoryId,
pageNo: state.pagination.pageNo,
- pageSize: state.pagination.pageSize
+ pageSize: state.pagination.pageSize,
});
if (code !== 0) {
return;
@@ -197,7 +206,9 @@
// 获得分类列表
async function getCategoryList() {
- const { data, code } = await CategoryApi.getCategoryListByIds(state.coupon.productScopeValues.join(','));
+ const { data, code } = await CategoryApi.getCategoryListByIds(
+ state.coupon.productScopeValues.join(','),
+ );
if (code !== 0) {
return;
}
@@ -225,8 +236,10 @@
// 加载优惠劵信息
async function getCouponContent() {
- const { code, data } = state.id > 0 ? await CouponApi.getCouponTemplate(state.id)
- : await CouponApi.getCoupon(state.couponId);
+ const { code, data } =
+ state.id > 0
+ ? await CouponApi.getCouponTemplate(state.id)
+ : await CouponApi.getCoupon(state.couponId);
if (code !== 0) {
return;
}
diff --git a/pages/coupon/list.vue b/pages/coupon/list.vue
index e7c4394d..08addbd0 100644
--- a/pages/coupon/list.vue
+++ b/pages/coupon/list.vue
@@ -45,7 +45,7 @@
@@ -56,9 +56,14 @@
- 0"
+ :status="state.loadStatus"
+ :content-text="{
contentdown: '上拉加载更多',
- }" @tap="loadMore" />
+ }"
+ @tap="loadMore"
+ />
@@ -66,7 +71,7 @@
import sheep from '@/sheep';
import { onLoad, onReachBottom } from '@dcloudio/uni-app';
import { reactive } from 'vue';
- import _ from 'lodash';
+ import _ from 'lodash-es';
import { resetPagination } from '@/sheep/util';
import CouponApi from '@/sheep/api/promotion/coupon';
@@ -78,7 +83,7 @@
list: [],
total: 0,
pageNo: 1,
- pageSize: 5
+ pageSize: 5,
},
loadStatus: '',
});
@@ -106,9 +111,9 @@
function onTabsChange(e) {
state.currentTab = e.index;
state.type = e.value;
- resetPagination(state.pagination)
+ resetPagination(state.pagination);
if (state.currentTab === 0) {
- getData();
+ getData();
} else {
getCoupon();
}
@@ -135,7 +140,7 @@
const { data, code } = await CouponApi.getCouponPage({
pageNo: state.pagination.pageNo,
pageSize: state.pagination.pageSize,
- status: state.type
+ status: state.type,
});
if (code !== 0) {
return;
@@ -177,13 +182,13 @@
// 领劵中心
if (Option.type === 'all' || !Option.type) {
getData();
- // 我的优惠劵
+ // 我的优惠劵
} else {
Option.type === 'geted'
? (state.currentTab = 1)
: Option.type === 'used'
- ? (state.currentTab = 2)
- : (state.currentTab = 3);
+ ? (state.currentTab = 2)
+ : (state.currentTab = 3);
state.type = state.currentTab;
getCoupon();
}
diff --git a/pages/goods/comment/list.vue b/pages/goods/comment/list.vue
index 01526b00..8d4184e7 100644
--- a/pages/goods/comment/list.vue
+++ b/pages/goods/comment/list.vue
@@ -30,7 +30,7 @@
import CommentApi from '@/sheep/api/product/comment';
import { onLoad, onReachBottom } from '@dcloudio/uni-app';
import { reactive } from 'vue';
- import _ from 'lodash';
+ import _ from 'lodash-es';
import commentItem from '../components/detail/comment-item.vue';
const state = reactive({
diff --git a/pages/goods/groupon.vue b/pages/goods/groupon.vue
index 50bba1c4..354d6ed9 100644
--- a/pages/goods/groupon.vue
+++ b/pages/goods/groupon.vue
@@ -7,12 +7,16 @@
@@ -47,10 +51,7 @@
-
+
单买价:
{{ fen2yuan(state.goodsInfo.price) }}
@@ -123,7 +124,9 @@
"
:disabled="state.goodsInfo.stock === 0 || state.activity.status !== 0"
>
- {{ fen2yuan(state.activity.price || state.goodsInfo.price) }}
+ {{
+ fen2yuan(state.activity.price || state.goodsInfo.price)
+ }}
未开始
已结束
@@ -141,7 +144,7 @@
import { reactive, computed } from 'vue';
import { onLoad, onPageScroll } from '@dcloudio/uni-app';
import sheep from '@/sheep';
- import { isEmpty } from 'lodash';
+ import { isEmpty } from 'lodash-es';
import detailNavbar from './components/detail/detail-navbar.vue';
import detailCellSku from './components/detail/detail-cell-sku.vue';
import detailTabbar from './components/detail/detail-tabbar.vue';
@@ -149,29 +152,27 @@
import detailCommentCard from './components/detail/detail-comment-card.vue';
import detailContentCard from './components/detail/detail-content-card.vue';
import grouponCardList from './components/groupon/groupon-card-list.vue';
- import {useDurationTime, formatGoodsSwiper, fen2yuan} from '@/sheep/hooks/useGoods';
- import CombinationApi from "@/sheep/api/promotion/combination";
- import SpuApi from "@/sheep/api/product/spu";
+ import { useDurationTime, formatGoodsSwiper, fen2yuan } from '@/sheep/hooks/useGoods';
+ import CombinationApi from '@/sheep/api/promotion/combination';
+ import SpuApi from '@/sheep/api/product/spu';
const headerBg = sheep.$url.css('/static/img/shop/goods/groupon-bg.png');
const btnBg = sheep.$url.css('/static/img/shop/goods/groupon-btn.png');
- const disabledBtnBg = sheep.$url.css(
- '/static/img/shop/goods/activity-btn-disabled.png',
- );
+ const disabledBtnBg = sheep.$url.css('/static/img/shop/goods/activity-btn-disabled.png');
const grouponBg = sheep.$url.css('/static/img/shop/goods/groupon-tip-bg.png');
onPageScroll(() => {});
const state = reactive({
- skeletonLoading: true, // 骨架屏
- goodsId: 0, // 商品ID
- goodsInfo: {}, // 商品信息
- goodsSwiper: [], // 商品轮播图
- showSelectSku: false, // 显示规格弹框
- selectedSkuPrice: {}, // 选中的规格价格
- activity: {}, // 团购活动
- grouponId: 0, // 团购ID
- grouponNum: 0, // 团购人数
- grouponAction: 'create', // 团购操作
+ skeletonLoading: true, // 骨架屏
+ goodsId: 0, // 商品ID
+ goodsInfo: {}, // 商品信息
+ goodsSwiper: [], // 商品轮播图
+ showSelectSku: false, // 显示规格弹框
+ selectedSkuPrice: {}, // 选中的规格价格
+ activity: {}, // 团购活动
+ grouponId: 0, // 团购ID
+ grouponNum: 0, // 团购人数
+ grouponAction: 'create', // 团购操作
combinationHeadId: null, // 拼团团长编号
});
@@ -261,7 +262,7 @@
// 加载商品信息
const { data: spu } = await SpuApi.getSpuDetail(activity.spuId);
state.goodsId = spu.id;
- activity.products.forEach(product => {
+ activity.products.forEach((product) => {
spu.price = Math.min(spu.price, product.combinationPrice); // 设置 SPU 的最低价格
});
// 关闭骨架屏
@@ -475,8 +476,7 @@
}
.groupon-box {
- background: v-bind(grouponBg)
- no-repeat;
+ background: v-bind(grouponBg) no-repeat;
background-size: 100% 100%;
}
diff --git a/pages/goods/list.vue b/pages/goods/list.vue
index 36240d50..1fdf5592 100644
--- a/pages/goods/list.vue
+++ b/pages/goods/list.vue
@@ -1,362 +1,398 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
- {{ item.label }}
-
-
-
+
+
+
+
+ {{ item.label }}
+
+
+
-
-
-
+
+
-
-
+
+
-
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
-
-
+ }"
+ @tap="loadMore"
+ />
+
+
\ 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..aed2cd33 100644
--- a/pages/goods/seckill.vue
+++ b/pages/goods/seckill.vue
@@ -69,10 +69,7 @@
-
+
秒杀价
@@ -136,11 +135,11 @@
diff --git a/pages/index/category.vue b/pages/index/category.vue
index 2317d1d9..cb87b0b5 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({
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 @@
-
+
+
\ No newline at end of file
+ font-weight: 400;
+ color: rgba(51, 51, 51, 1);
+ }
+ }
+
diff --git a/pages/order/aftersale/list.vue b/pages/order/aftersale/list.vue
index 64624960..5ec22b4a 100644
--- a/pages/order/aftersale/list.vue
+++ b/pages/order/aftersale/list.vue
@@ -1,187 +1,210 @@
-
-
-
-
-
-
-
-
-
-
- 服务单号:{{ order.no }}
- {{ formatAfterSaleStatus(order) }}
-
-
+
+
+
+
+
+
+
+
+
+ 服务单号:{{ order.no }}
+ {{ formatAfterSaleStatus(order) }}
+
+
-
-
- {{ order.way === 10 ? '仅退款' : '退款退货' }}
- {{ formatAfterSaleStatusDescription(order) }}
-
-
-
-
+
+
+ {{ order.way === 10 ? '仅退款' : '退款退货' }}
+ {{ formatAfterSaleStatusDescription(order) }}
+
+
+
+
-
- 取消申请
-
-
-
-
- 取消申请
+
+
+
+
+
-
+ }"
+ @tap="loadMore"
+ />
+
\ No newline at end of file
+ .tool-btn {
+ width: 160rpx;
+ height: 60rpx;
+ background: #f6f6f6;
+ border-radius: 30rpx;
+ font-size: 26rpx;
+ font-weight: 400;
+ }
+ }
+ }
+
diff --git a/pages/order/list.vue b/pages/order/list.vue
index 323d7ae7..926ecfde 100644
--- a/pages/order/list.vue
+++ b/pages/order/list.vue
@@ -1,243 +1,284 @@
-
-
-
-
-
-
-
-
-
- 0"
+ :status="state.loadStatus"
+ :content-text="{
contentdown: '上拉加载更多',
- }" @tap="loadMore" />
-
+ }"
+ @tap="loadMore"
+ />
+
\ No newline at end of file
+ .info-color {
+ color: #999999;
+ }
+
diff --git a/pages/pay/recharge-log.vue b/pages/pay/recharge-log.vue
index 67e46881..8de792ac 100644
--- a/pages/pay/recharge-log.vue
+++ b/pages/pay/recharge-log.vue
@@ -8,7 +8,7 @@
充值金额
{{ fen2yuan(item.payPrice) }} 元
- (赠送 {{ fen2yuan(item.bonusPrice)}} 元)
+ (赠送 {{ fen2yuan(item.bonusPrice) }} 元)
@@ -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..47b0b1a3 100644
--- a/pages/user/address/list.vue
+++ b/pages/user/address/list.vue
@@ -1,143 +1,156 @@
-
-
-
-
+
+
+
+
-
-
-
-
-
+
+
+
+
+
\ 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.thirdInfo.nickname }}
@@ -185,7 +183,7 @@