Преглед изворни кода

stlye:服务对象管理页面添加提示语

xyh8905170 пре 2 година
родитељ
комит
0544f8ae7f

+ 10 - 0
orderPages/storeService/index.rpx.scss

@@ -68,6 +68,16 @@
     line-height: 44rpx;
     margin-top: 16rpx;
 }
+.text_5 {
+    overflow-wrap: break-word;
+    font-size: 24rpx;
+    color: red;
+    font-weight: normal;
+    text-align: left;
+    white-space: nowrap;
+    line-height: 44rpx;
+    margin-top: 16rpx;
+}
 
 .thumbnail_2 {
     width: 32rpx;

+ 93 - 90
orderPages/storeService/index.vue

@@ -1,111 +1,114 @@
 <template>
-    <view class="content">
-        <view>
-            <view class="box_4">
-                <view class="group_1" @click="getServiceObject">
-                    <view class="text-group_2">
-                        <text lines="1" class="text_3">服务对象</text>
-                        <text lines="1" class="text_4">{{serviceObject.nickName || '请选择服务对象'}}</text>
-                    </view>
-                    <u-icon name="arrow-right" color="#666" size="18"></u-icon>
-                </view>
-                <view class="group_2"></view>
-                <view class="group_1">
-                  <picker @change="bindPickerChange" mode='selector'  range-key="typeName" :value="index" :range="storeServiceList">
-                    <view >
-                      <text lines="1" class="text_3 ">服务类型</text>
-                      <view  class="text-group_3 ">
-                        <view class="text_4">{{storeServiceList[index].typeName || '111111' }}</view>
-                        <u-icon name="arrow-right" color="#666" size="18"></u-icon>
-                      </view>
-                    </view>
-                  </picker>
-                </view>
-                <view class="group_2"></view>
-            </view>
-            <view class="tabBarLineHeight"></view>
-            <view class="tabBarView">
-                <view class="submitButton" @click="commonGeneralOrder">提交</view>
+  <view class="content">
+    <view>
+      <view class="box_4">
+        <view class="group_1" @click="getServiceObject">
+          <view class="text-group_2">
+            <text class="text_3">服务对象</text>
+            <text class="text_4">{{ serviceObject.nickName || '请选择服务对象' }}</text>
+            <text class="text_5" >服务对象指接受娇骄儿理发服务的儿童</text>
+          </view>
+          <u-icon name="arrow-right" color="#666" size="18"></u-icon>
+        </view>
+        <view class="group_2"></view>
+        <view class="group_1">
+          <picker @change="bindPickerChange" mode='selector' range-key="typeName" :value="index"
+                  :range="storeServiceList">
+            <view>
+              <text lines="1" class="text_3 ">服务类型</text>
+              <view class="text-group_3 ">
+                <view class="text_4">{{ storeServiceList[index].typeName || '111111' }}</view>
+                <u-icon name="arrow-right" color="#666" size="18"></u-icon>
+              </view>
             </view>
+          </picker>
         </view>
+        <view class="group_2"></view>
+      </view>
+      <view class="tabBarLineHeight"></view>
+      <view class="tabBarView">
+        <view class="submitButton" @click="commonGeneralOrder">提交</view>
+      </view>
     </view>
+  </view>
 </template>
 
 <script>
-	import tabBar from "../../components/tabBar/tabBar";
-	export default {
-		components: {
-			tabBar
-		},
-		data() {
-			return {
-                serviceObject:{},
-                store:{},
-                storeServiceList:[],
-                index:0
+import tabBar from "../../components/tabBar/tabBar";
+
+export default {
+  components: {
+    tabBar
+  },
+  data() {
+    return {
+      serviceObject: {},
+      store: {},
+      storeServiceList: [],
+      index: 0
 
 
-			}
-		},
-		onLoad() {
-		},
-        onShow(){
-            // 服务对象
-            uni.$off()
-            uni.$on('selectedServiceObject', this.selectedServiceObject);
+    }
+  },
+  onLoad() {
+  },
+  onShow() {
+    // 服务对象
+    uni.$off()
+    uni.$on('selectedServiceObject', this.selectedServiceObject);
 
-            this.store = uni.getStorageSync('storeInfo')
-            // this.storeAllServiceList()
-            this.category()
-        },
-		methods: {
+    this.store = uni.getStorageSync('storeInfo')
+    // this.storeAllServiceList()
+    this.category()
+  },
+  methods: {
 
-            getServiceObject(){
-                uni.navigateTo({
-                    url:'/orderPages/serviceObject/index'
-                })
-            },
+    getServiceObject() {
+      uni.navigateTo({
+        url: '/orderPages/serviceObject/index'
+      })
+    },
 
-            // storeAllServiceList(){
-            //     this.$api.storeAllServiceList({storeId:this.store.storeId}).then(res=>{
-            //         this.storeServiceList= res.data.data
-            //     })
-            // },
+    // storeAllServiceList(){
+    //     this.$api.storeAllServiceList({storeId:this.store.storeId}).then(res=>{
+    //         this.storeServiceList= res.data.data
+    //     })
+    // },
 
-            selectedServiceObject(e){
-                this.serviceObject = e
-                console.log('++++++++++++selectedServiceObject++++++++++++++',e)
-            },
+    selectedServiceObject(e) {
+      this.serviceObject = e
+      console.log('++++++++++++selectedServiceObject++++++++++++++', e)
+    },
 
-            category(){
-                this.$api.category({storeId:this.store.storeId}).then(res=>{
-                    this.storeServiceList= res.data.data
-                    console.log('+++++++++++++++category+++++++++++++++++',res)
-                })
+    category() {
+      this.$api.category({storeId: this.store.storeId}).then(res => {
+        this.storeServiceList = res.data.data
+        console.log('+++++++++++++++category+++++++++++++++++', res)
+      })
 
-            },
-            bindPickerChange(e){
-                this.index= e.detail.value
-                console.log(e)
-            },
+    },
+    bindPickerChange(e) {
+      this.index = e.detail.value
+      console.log(e)
+    },
 
-            commonGeneralOrder(){
-                this.$api.commonGeneralOrder({
-                    orderType: 1,
-                    serviceObjectId: this.serviceObject.id,
-                    serviceAttribute: 1,
-                    serviceStoreId: this.store.storeId,
-                    serviceTypeId:this.storeServiceList[this.index].id
-                }).then(res=>{
-                    uni.switchTab({
-                        url:'/pages/order/index'
-                    })
+    commonGeneralOrder() {
+      this.$api.commonGeneralOrder({
+        orderType: 1,
+        serviceObjectId: this.serviceObject.id,
+        serviceAttribute: 1,
+        serviceStoreId: this.store.storeId,
+        serviceTypeId: this.storeServiceList[this.index].id
+      }).then(res => {
+        uni.switchTab({
+          url: '/pages/order/index'
+        })
 
-                })
-            }
+      })
+    }
 
-		}
-	}
+  }
+}
 </script>
 
 <style scoped lang="scss">

+ 2 - 1
pages/order/index.vue

@@ -191,7 +191,8 @@
 			})
 
 			let sysInfo = uni.getSystemInfoSync()
-			this.windowHeight = sysInfo.windowHeight - 44 + 'px' //除标题栏栏外的屏幕可用高度
+      console.log(sysInfo,'2222222222222222222222222')
+			this.windowHeight = sysInfo.windowHeight - 74 + 'px' //除标题栏栏外的屏幕可用高度
 			this.$off()
 			this.$on('orderListIndex',this.listenerIndex)
 		},

+ 3 - 2
pages/order/module/index.rpx.css

@@ -162,13 +162,14 @@
 
 
 .order-state-name {
+    margin-top: 10rpx;
     width: 30%;
     text-align: right;
     padding-right: 24rpx;
     font-size: 28rpx;
 }
 .h-text1 {
-    color: #666666;
+    color: #FFAF36;
 }
 
 .h-text2 {
@@ -176,7 +177,7 @@
 }
 
 .h-text3 {
-    color: #FFAF36;
+    color: #999999;
 }