From 9cad6a832c786989be620573b09badccfe7e3b51 Mon Sep 17 00:00:00 2001
From: QYF-GitLab1 <1940665526@qq.com>
Date: 星期一, 25 八月 2025 15:11:37 +0800
Subject: [PATCH] 首页头部,样式调整

---
 src/views/personalCenter/myCart.vue |   26 ++++++++------------------
 1 files changed, 8 insertions(+), 18 deletions(-)

diff --git a/src/views/personalCenter/myCart.vue b/src/views/personalCenter/myCart.vue
index e9ea084..3c03131 100644
--- a/src/views/personalCenter/myCart.vue
+++ b/src/views/personalCenter/myCart.vue
@@ -44,7 +44,7 @@
 
           <el-table-column label="鍏ㄩ��" width="200">
             <template #default="scope">
-              <div style="position: relative; width: 110px">
+              <div style="position: relative;width: 120px;">
                 <el-image :src="scope.row.imgUrl ? scope.row.imgUrl : defaultImg" class="bookImg">
                 </el-image>
                 <div
@@ -104,7 +104,7 @@
               鎬讳环锛�<span v-if="sumUnitprice">楼{{ sumUnitprice.toFixed(2) }}</span>
               <span v-else>楼0.00</span>
             </p>
-            <el-button class="button" type="warning" @click="goPaymentPage">缁撶畻</el-button>
+            <el-button class="button" type="primary" @click="goPaymentPage">缁撶畻</el-button>
           </div>
         </div>
       </div>
@@ -117,14 +117,13 @@
 import { ElTable, ElMessage } from 'element-plus'
 import { reactive } from 'vue'
 import { useRouter } from 'vue-router'
-import { InfoFilled } from '@element-plus/icons-vue'
 import { useUserStore } from '@/store'
 import { getPublicImage } from '@/assets/js/middleGround/tool.js'
 import defaultImg from '@/assets/images/default-book-img.png'
 const dialogVisible = ref(false)
 const router = useRouter()
 const userStore = useUserStore()
-const MG = inject('MG')
+const MG: any = inject('MG')
 const total = ref()
 const multipleTableRef = ref()
 const loading = ref(true)
@@ -244,17 +243,8 @@
   }
   MG.store.getShoppingCartProductList(query).then((res) => {
     const newData = res.datas.map((item) => {
-      console.log(item.saleMethod.type, 'item.saleMethod.type')
-      if (item.productMonWithLinkDto.links[0].storeRefCode == 'digitalTextbooks') {
-        item.typeTxt = '鏁板瓧鏁欐潗'
-        item.productType = '鏁板瓧鏁欐潗'
-      } else if (item.productMonWithLinkDto.links[0].storeRefCode == 'digitalCourses') {
-        item.typeTxt = '鏁板瓧璇剧▼'
-        item.productType = '鏁板瓧璇剧▼'
-      } else {
-        item.typeTxt = '鐢靛瓙涔�'
-        item.productType = '鍥句功鏈嶅姟-鐢靛瓙涔�'
-      }
+      item.typeTxt = '鏁板瓧鏁欐潗'
+      item.productType = '鏁板瓧鏁欐潗'
 
       // console.log(item.saleMethod.id);
       console.log(item.saleMethod.type, 'item.saleMethod.type')
@@ -308,7 +298,6 @@
         router.push({
           name: 'paymentPage',
           query: {
-            crumbsKey: key,
             orderNumber: orderNumber.value,
             // type: route.query.type,
             type: 'shoppingCart',
@@ -488,8 +477,8 @@
   .el-image__inner {
     box-shadow: 0px 0px 20px 1px #ccc;
     object-fit: contain !important;
-    width: 110px;
-    height: 140px;
+    width: 120px;
+    height: 160px;
   }
 
   .el-icon {
@@ -527,6 +516,7 @@
   right: 0;
   margin: 0 !important;
   border-radius: 0px 0px 0px 5px;
+  box-sizing: border-box;
 
   p {
     display: flex;

--
Gitblit v1.9.1