瀏覽代碼

q-select setting update

fengchang 1 年之前
父節點
當前提交
98dfd61c43
共有 1 個文件被更改,包括 7 次插入2 次删除
  1. 7 2
      hichina-main-front-mobile-first/src/pages/BookPage.vue

+ 7 - 2
hichina-main-front-mobile-first/src/pages/BookPage.vue

@@ -72,6 +72,8 @@
           <q-select
             outlined
             dense
+            emit-value
+            map-options
             class="col-12 col-sm-6 col-md-4"
             v-model="peopleform.value[index - 1]['gender']"
             :options="genderOption"
@@ -298,6 +300,11 @@ export default {
     }
 
     function submitOrder(paymethod) {
+      if (paymethod === "wechatpay") {
+        alert("not available, will be on line soon");
+        return;
+      }
+
       var finalParams = {};
       if (LOCALSPECIALTYPRODUCTTYPE != productTypeId.value) {
         finalParams.passengerInfo = peopleform.value;
@@ -320,8 +327,6 @@ export default {
           .then((res) => {
             gp.$generalNotify($q, true, "Succeed creating order");
             if (paymethod == "wechatpay") {
-              alert("not available, will be on line soon");
-              return;
               // go to we chat pay page
               // go to alipay page
               console.log(res.data.data);