WIN-2CJ8FMUT9OF\Administrator 7 місяців тому
батько
коміт
92c576401e
4 змінених файлів з 11 додано та 7 видалено
  1. 2 2
      .env.dev.js
  2. 2 2
      .env.prod.js
  3. 6 3
      pages-takeout/new-shop.vue
  4. 1 0
      pages/login/index.vue

+ 2 - 2
.env.dev.js

@@ -1,6 +1,6 @@
 const config = {
-	baseUrl: 'http://testfood.jhcs888.com/',
-	socketUrl: 'http://testfood.jhcs888.com/',
+	baseUrl: 'https://testfood.jhcs888.com/',
+	socketUrl: 'https://testfood.jhcs888.com/',
     appName:'开发环境'
 }
 module.exports = config;

+ 2 - 2
.env.prod.js

@@ -1,6 +1,6 @@
 const config = {
-    baseUrl: 'http://food.jhcs888.com',
-    socketUrl: 'http://food.jhcs888.com',
+    baseUrl: 'https://food.jhcs888.com',
+    socketUrl: 'https://food.jhcs888.com',
     appName:'正式环境'
 }
 module.exports = config;

+ 6 - 3
pages-takeout/new-shop.vue

@@ -74,7 +74,8 @@
 						<view class="" v-if="item.list <= 0">
 							<EnBlank message='暂无商品' :customSrc='true'>
 								<template v-slot:blankImg>
-									<image class="<strong>black-custom-img</strong>" src="@/static/img/common/no-order.png" mode="">
+									<image class="<strong>black-custom-img</strong>"
+										src="@/static/img/common/no-order.png" mode="">
 									</image>
 								</template>
 							</EnBlank>
@@ -334,8 +335,10 @@
 				//获取商家分类
 				getGoodsCategory().then((res) => {
 					if (res.code === 1) {
-						this.categoryList = res.data
-						this.type = res.data[0].category_id
+						if (res.data.length > 0) {
+							this.categoryList = res.data
+							this.type = res.data[0].category_id
+						}
 					}
 				})
 			},

+ 1 - 0
pages/login/index.vue

@@ -117,6 +117,7 @@
 		width: 100%;
 		max-height: 62%;
 		overflow: auto;
+		line-height: 50rpx;
 	}
 
 	.but-box {