xiongzhu 5 anos atrás
pai
commit
ee9df543f1
2 arquivos alterados com 3 adições e 4 exclusões
  1. 1 1
      .env.development
  2. 2 3
      src/pages/home.vue

+ 1 - 1
.env.development

@@ -1 +1 @@
-VUE_APP_BASE_URL=http://192.168.50.127:8080
+VUE_APP_BASE_URL=http://192.168.50.210:8080

+ 2 - 3
src/pages/home.vue

@@ -86,7 +86,7 @@
                     </div> -->
                     <van-stepper min="1" :max="maxNum" @change="numChange" />
                 </div>
-                <div v-if="tab === 0" style="height: 20px;"></div>
+                <div v-if="tab === 0" style="height: 20px"></div>
             </div>
             <van-button type="info" block v-if="!!(userInfo && userInfo.phone)" :key="1" @click="submit">
                 提交订单
@@ -483,8 +483,7 @@ export default {
                     'yyyy-MM-dd HH:mm:ss'
                 )
             };
-            if (this.currentScenic.id === this.qrCode.scenicId) {
-                console.log('xxx');
+            if (this.qrCode && this.currentScenic && this.currentScenic.id === this.qrCode.scenicId) {
                 appointmentData.location = this.qrCode.location;
             }
             if (!this.userInfo.authorized) {