Bläddra i källkod

fix:添加服务项目 做服务人员空提示

xuyunhui 2 månader sedan
förälder
incheckning
b76eacf7dc
3 ändrade filer med 26 tillägg och 7 borttagningar
  1. 2 2
      common/js/env.js
  2. 16 0
      pages/index/index.rpx.css
  3. 8 5
      pages/index/index.vue

+ 2 - 2
common/js/env.js

@@ -4,13 +4,13 @@
  * 正式环境
  * @type {string}
  */
-let baseUrl = `https://jje.xinyuekj.com.cn/prod-api`
+// let baseUrl = `https://jje.xinyuekj.com.cn/prod-api`
 
 /**
  * 测试环境
  * @type {string}
  */
-// let baseUrl = `https://jje.xinyuekj.com.cn/test-api`
+let baseUrl = `https://jje.xinyuekj.com.cn/test-api`
 
 /**
  * 庞架开发环境

+ 16 - 0
pages/index/index.rpx.css

@@ -600,3 +600,19 @@
 	font-weight: 500;
 	color: #333333;
 }
+
+.emptyDataView {
+	width: 684rpx;
+	height: 200rpx;
+	display: flex;
+	align-items: center;
+	justify-content: center;
+	background: #FAFAFA;
+	border-radius: 16rpx;
+}
+
+.emptyDataText {
+	font-size: 28rpx;
+	font-weight: 400;
+	color: #999999;
+}

+ 8 - 5
pages/index/index.vue

@@ -251,7 +251,7 @@
               <text>选择服务项目</text>
             </view>
             <view class="flex-row justify-center">
-              <view class="serviceItems ">
+              <view class="serviceItems " v-if="serviceProjectList.length > 0">
                 <view class="serviceItem "
                       :class="{vBackGround: serviceProjectListIndex === index,marginLeft16: (index+3) % 3!==0,marginTop24:index>2}"
                       v-for="(item,index) in serviceProjectList" :key="index"
@@ -259,13 +259,16 @@
                   <text>{{ item.serviceName }}</text>
                 </view>
               </view>
+              <view class="flex-row justify-center emptyDataView" v-else>
+                <text class="emptyDataText">暂无服务项目</text>
+              </view>
             </view>
             <view class="popupTitle marginTop24">
               <text>选择服务技师</text>
             </view>
 
             <view class="flex-row justify-center">
-              <view class="serviceItems ">
+              <view class="serviceItems " v-if="servicePersonList.length > 0">
                 <view class="flex-col serviceTeach "
                       :class="{marginLeft28: (index+4) % 4!==0,marginTop24:index>3}"
                       v-for="(item,index) in servicePersonList" :key="index"
@@ -279,11 +282,11 @@
                          src="/static/index/xuanzhong.png"></image>
                 </view>
               </view>
+              <view class="flex-row justify-center emptyDataView" v-else>
+                <text class="emptyDataText">暂无服务技师</text>
+              </view>
             </view>
-
           </view>
-
-
         </scroll-view>
 
         <view class="flex-row justify-around">