Selaa lähdekoodia

feat:个人中心界面修改我的积分样式及图标

xyh 5 kuukautta sitten
vanhempi
commit
0984be43b9

+ 19 - 0
src/api/pointOrder.js

@@ -17,3 +17,22 @@ export function getPointOrderInfo(data) {
         data
     });
 }
+
+//确认收货
+export function confirmReceipt(data) {
+    return request({
+        method: 'put',
+        url: '/product/order/confirm/receipt',
+        data
+    });
+}
+
+//取消退货申请
+export function cancelReturn(data) {
+    return request({
+        method: 'put',
+        url: '/product/order/cancel/return',
+        data
+    });
+}
+

+ 13 - 7
src/pages/my/my.vue

@@ -81,15 +81,21 @@
 		<view class="card-box flex option-card">
 			<view class="item" @click="goCollect">
 				<image class="img" src="/static/other/collect.png" mode="" />
-				<view class="val">收藏 <text>{{ collectNum }}</text> 人</view>
+				<view class="val">我的收藏
+          <view><text>{{ collectNum }}</text> 人</view>
+        </view>
 			</view>
       <view class="item" @click="goPoints">
-        <image class="img" src="/static/other/collect.png" mode="" />
-        <view class="val">积分 <text>{{ totalPoints }}</text> 分</view>
+        <image class="img" src="/static/other/points.png" mode="" />
+        <view class="val">我的积分
+          <view><text>{{ totalPoints }}</text> 分</view>
+         </view>
       </view>
 			<view class="item" @click="goCoupon">
 				<image class="img" src="/static/other/coupon.png" mode="" />
-				<view class="val">优惠券 <text>{{ couponNum }}</text> 张</view>
+				<view class="val">我的优惠券
+          <view><text>{{ couponNum }}</text> 张</view>
+        </view>
 			</view>
 		</view>
 
@@ -531,14 +537,14 @@ export default {
 			}
 
 			.img {
-				width: 50rpx;
-				height: 50rpx;
+				width: 60rpx;
+				height: 60rpx;
 				margin-right: 12rpx;
 			}
 
 			.val {
 				font-weight: 400;
-				font-size: 28rpx;
+				font-size: 26rpx;
 				color: #2F3437;
 
 				text {

+ 2 - 1
src/points/order/orderList.vue

@@ -32,7 +32,7 @@ export default {
           data.data.records = data.data.records.map(item=>{
             let skuspecStr = '';
             try {
-              const skuspec = item?.skuspec;
+              const skuspec = item?.skuSpec;
               if (skuspec && skuspec !== 'undefined' && skuspec !== 'null') {
                 const parsedSpec = JSON.parse(skuspec);
                 if (Array.isArray(parsedSpec)) {
@@ -42,6 +42,7 @@ export default {
             } catch (error) {
               console.error('解析 skuspec 失败:', error);
             }
+            console.log(skuspecStr,'123123123')
             return{
               ...item,
               skuspec: skuspecStr

BIN
src/static/other/points.png


+ 0 - 1
src/store/modules/points.js

@@ -11,7 +11,6 @@ const other = {
     },
     mutations: {
         SET_POINTINFO: (state, payload) => {
-            console.log('SET_POINTINFO', payload)
             state.myPoint = payload;
         },
     },