diff --git a/src/components/HeaderTop.vue b/src/components/HeaderTop.vue index 092627f..b2bc6bf 100644 --- a/src/components/HeaderTop.vue +++ b/src/components/HeaderTop.vue @@ -25,9 +25,6 @@
{{ "意见反馈" }}
-
- {{ "在线客服" }} -
diff --git a/src/components/marketDynamics/activeZone.vue b/src/components/marketDynamics/activeZone.vue index 037f7b1..d62e743 100644 --- a/src/components/marketDynamics/activeZone.vue +++ b/src/components/marketDynamics/activeZone.vue @@ -171,9 +171,9 @@ export default { { name: "活动列表", }, - { - name: "沙棘公益", - }, + // { + // name: "沙棘公益", + // }, ], treeObj: "", treeMin: 0, @@ -342,7 +342,7 @@ export default { background: #ffffff; .acttitle { font-size: 18px; - color: #00417C; + color: #00417c; font-weight: 500; } .acttime { diff --git a/src/components/selfService/modifyAddress.vue b/src/components/selfService/modifyAddress.vue index 0a48a75..bc5fc94 100644 --- a/src/components/selfService/modifyAddress.vue +++ b/src/components/selfService/modifyAddress.vue @@ -118,6 +118,7 @@ title="" width="200" trigger="hover" + :disabled="!scope.row.remark" :content="scope.row.remark" >
@@ -137,179 +138,6 @@
- -
- {{ - "取消" - }} - {{ - "确定" - }} + 取消 + 确定
@@ -407,9 +240,12 @@
- {{ - "确认" - }} + 确认
diff --git a/src/components/selfService/selfPickOrders.vue b/src/components/selfService/selfPickOrders.vue index 8145320..d59e477 100644 --- a/src/components/selfService/selfPickOrders.vue +++ b/src/components/selfService/selfPickOrders.vue @@ -277,17 +277,17 @@ }}
2、{{ "自提时间:每日9:00至18:00" }}
3、{{ - "自提地址:山东省青岛市崂山区金家岭街道金岭广场1号楼13层101前台" - }}
- 4、{{ "获取自提码请尽快在1个工作日内完成自提,若未完成自提,系统将默认重新发货!" }}
-
- {{ - "确认自提" - }} +
+ 确认自提
- {{ "自提地址:山东省青岛市崂山区金家岭街道金岭广场1号楼13层101前台" }} + {{ "自提地址:" }}
- {{ - "确认" - }} + 确认
diff --git a/src/styles/index.scss b/src/styles/index.scss index 141a4e4..e7ba528 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -11,3 +11,8 @@ --button-primary-disabled-border-color: #A0CFFF; /* 禁用主按钮边框颜色 (同背景) */ --danger-color: #DC3545; /* 危险色 */ } + + +.common-dialog-footer-btn { + min-width: 180px; +} \ No newline at end of file diff --git a/src/views/index/components/sidebarUserInfo.vue b/src/views/index/components/sidebarUserInfo.vue index 06b1499..6464a8b 100644 --- a/src/views/index/components/sidebarUserInfo.vue +++ b/src/views/index/components/sidebarUserInfo.vue @@ -40,16 +40,23 @@
昨日业绩
+
@@ -60,16 +67,25 @@
当月业绩
+
@@ -80,16 +96,23 @@
历史业绩
+
@@ -142,7 +165,7 @@ export default { awards: {}, userMin: 0, userSec: 0, - _interval: "", + intervalTimer: "", toLiveBtn: "", isHandImg: true, }; @@ -153,7 +176,7 @@ export default { }, beforeDestroy() { - clearInterval(this._interval); + clearInterval(this.intervalTimer); }, methods: { clickTap() { @@ -168,21 +191,22 @@ export default { defaultSrc() { this.isHandImg = false; }, - yesPercent(left, right) { + calculatePercent(left, right) { left = parseFloat(left); right = parseFloat(right); - if (isNaN(left) || isNaN(right)) { - return "-"; + const total = left + right; + if (isNaN(left) || isNaN(right) || total === 0) { + return { left: "0%", right: "0%" }; } - return right + left == 0 - ? "0%" - : Math.round((left / (right + left)) * 10000) / 100.0 + "%"; + const leftPercent = Math.round((left / total) * 10000) / 100.0 + "%"; + const rightPercent = Math.round((right / total) * 10000) / 100.0 + "%"; + return { left: leftPercent, right: rightPercent }; }, // 倒计时事件 countdown() { const that = this; - that._interval = setInterval(() => { + that.intervalTimer = setInterval(() => { let time = new Date(this.userInfo.registerTime).getTime() / 1000; let time1 = new Date().getTime() / 1000; let time2 = parseInt(time1 - time); @@ -368,31 +392,56 @@ export default { } } .user-cards-left { - .schedule { - // width: 149px; + .progress-bar-container { flex: 1; height: 16px; - background: rgba(255, 255, 255, 0.3); - border-radius: 10px 10px 10px 10px; + border-radius: 10px; margin: 5px; position: relative; + overflow: hidden; // Hide overflowing parts of bars } + + .progress-bar-container.no-value { + background: rgba( + 255, + 255, + 255, + 0.3 + ); // Transparent background when no values + } + + .progress-bar-container.has-value { + background: #fff; // White background when has values + } + + .left-bar { + position: absolute; + left: 0; + top: 0; + height: 100%; + background: #fea43c; // Left bar color + border-radius: 10px 0 0 10px; // Rounded left corners + z-index: 1; // Below text + } + + .right-bar { + position: absolute; + right: 0; // Align to the right + top: 0; + height: 100%; + background: #409eff; // Right bar color (changed to blue) + border-radius: 0 10px 10px 0; // Rounded right corners + z-index: 1; // Below text + } + // Remove old schedule styles if they exist + .schedule, .schedule1 { - // width: 149px; - flex: 1; - height: 16px; - background: #fff; - border-radius: 10px 10px 10px 10px; - margin: 5px; - position: relative; + display: none; // Hide old elements if necessary, or remove them fully } .current-schedule { - position: absolute; - width: 30%; - background: #fea43c; - height: 16px; - border-radius: 10px 10px 10px 10px; + display: none; // Hide old elements if necessary, or remove them fully } + .progress-wrapper { display: flex; align-items: center; @@ -413,6 +462,8 @@ export default { transform: translate(-50%, -50%); font-size: 12px; white-space: nowrap; + color: #fff; // Ensure text is readable (changed to white) + z-index: 2; // Above the bars } .state { font-size: 10px; diff --git a/src/views/vipCenter/index.vue b/src/views/vipCenter/index.vue index 054fd2b..7bc1822 100644 --- a/src/views/vipCenter/index.vue +++ b/src/views/vipCenter/index.vue @@ -221,7 +221,7 @@ export default { ], baseSelfServiceList: [ { name: "修改地址", id: "1", ifshow: 0 }, - { name: "订单自提", id: "2", ifshow: 0 }, + // { name: "订单自提", id: "2", ifshow: 0 }, { name: "户籍变更", id: "3", ifshow: 0 }, // { name: "经销商认证", id: "4", ifshow: 0 }, { name: "自助撤单", id: "8", ifshow: 0 },