ifcheng hace 2 años
padre
commit
ec62ddecbd

+ 7 - 7
src/pages/benefits/index.vue

@@ -28,9 +28,9 @@
         >
           <p class="benefit-name">{{ item.title }}</p>
           <p class="benefit-desc">
-            {{ item.type === 1 ? `Available ${item.left_times}` : item.remark }}
+            {{ item.type == 1 ? `Available ${item.left_times}` : item.remark }}
           </p>
-          <p v-if="item.type === 1" class="benefit-sup">
+          <p v-if="item.type == 1" class="benefit-sup">
             <template v-if="item.available">
               Member price:<span class="highlight">${{ item.price }}</span>
             </template>
@@ -40,15 +40,15 @@
           </p>
           <button
             v-if="
-              (item.type === 1 && item.available) || [2, 4].includes(item.type)
+              (item.type == 1 && item.available) || [2, 4].includes(+item.type)
             "
             class="ptc-button"
             @click="onClickButton(item)"
           >
             {{
-              item.type === 1
+              item.type == 1
                 ? 'Apply'
-                : item.type === 2
+                : item.type == 2
                 ? item.button_name
                 : 'Send to me'
             }}
@@ -77,9 +77,9 @@ export default defineComponent({
   },
   methods: {
     onClickButton(right) {
-      right.type === 1
+      right.type === '1'
         ? this.$router.push(`/repaire/appointment?right_id=${right.id}`)
-        : right.type === 2
+        : right.type === '2'
         ? (location.href = right.link)
         : this.$router.push({
             path: '/mailing',

+ 8 - 8
src/pages/my-order/index.vue

@@ -9,11 +9,11 @@
       v-for="item of list"
       :key="item.id"
       class="ptc-block wrapper"
-      :class="{ pb24: item.status !== 1 }"
+      :class="{ pb24: item.status != 1 }"
     >
       <div
         class="pointer"
-        @click="item.status === 1 && $router.push(`/order/${item.id}`)"
+        @click="item.status == 1 && $router.push(`/order/${item.id}`)"
       >
         <div class="cell-group border-bottom">
           <div class="cell">
@@ -22,14 +22,14 @@
               <span
                 class="ptc-tag"
                 :class="{
-                  'not-paid': item.status === 0,
-                  paid: item.status === 1,
+                  'not-paid': item.status == 0,
+                  paid: item.status == 1,
                   canceled: item.stauts > 1,
                 }"
                 >{{
-                  item.status === 0
+                  item.status == 0
                     ? 'Not Paid'
-                    : item.status === 1
+                    : item.status == 1
                     ? 'Paid'
                     : 'Canceled'
                 }}</span
@@ -78,8 +78,8 @@
           </div>
         </div>
       </div>
-      <div v-if="item.status !== 1" class="button-group">
-        <template v-if="item.status === 0">
+      <div v-if="item.status != 1" class="button-group">
+        <template v-if="item.status == 0">
           <button class="ptc-button" @click="handlePay(item.stripe_pay_link)">
             Pay 14:40
           </button>

+ 1 - 1
src/pages/repaire/steps/StepTwo.vue

@@ -47,7 +47,7 @@
               v-for="(item, index) of state.periods"
               :key="index"
               class="date"
-              :disabled="!!item.is_resreve"
+              :disabled="item.is_resreve != 1"
               :value="item.interface_time"
               >{{ item.time }}</PtcRadio
             >