Переглянути джерело

fix(create-order): 修正全国云盘服务展示逻辑

- 在 OrderDetailCardProductList.vue 和 SelectOrderDetailCard.vue 中
- 将 finalAreaCount 为 0 时的展示内容从空字符串改为 '全国'
- 优化了服务类型为购买或升级时的显示逻辑

Signed-off-by: tangshizhe <48740614+tangshizhe@users.noreply.github.com>
tangshizhe 1 місяць тому
батько
коміт
ac514ae50a

+ 1 - 1
src/views/create-order/components/order-detail-submodule/OrderDetailCardProductList.vue

@@ -387,7 +387,7 @@ export default {
         const suffix = count > 0 ? `<span style="color:#f74e29">(此次增购${count}个省)</span>` : '';
         // 1购买2续费3升级4试用
         const serviceType = product.service_type;
-        const final = finalAreaCount ? `${finalAreaCount}个省` : '';
+        const final = finalAreaCount > 0 ? `${finalAreaCount}个省` : '全国';
         if(serviceType == 1 || serviceType == 3) {
           result = `${final}${suffix}`;
         } else if (serviceType == 2) {

+ 1 - 1
src/views/create-order/components/order-detail-submodule/SelectOrderDetailCard.vue

@@ -574,7 +574,7 @@ export default {
         const suffix = count > 0 ? `<span style="color:#f74e29">(此次增购${count}个省)</span>` : '';
         // 1购买2续费3升级4试用
         const serviceType = product.service_type;
-        const final = finalAreaCount ? `${finalAreaCount}个省` : '';
+        const final = finalAreaCount > 0 ? `${finalAreaCount}个省` : '全国';
         if(serviceType == 1 || serviceType == 3) {
           result = `${final}${suffix}`;
         } else if (serviceType == 2) {