Commit aa8fd4f7594cbf40a9079b0c7fc147bf8b110544

Authored by DESKTOP-QHAFKU5\iceling
1 parent 6a260123

预约服务添加导航,以及选择的文字从灰变黑

components/nav_b/nav_b.wxss
... ... @@ -9,7 +9,7 @@
9 9 border-radius: 50rpx;
10 10 position: fixed;
11 11 right: 10rpx;
12   - bottom: 650rpx;
  12 + bottom: 570rpx;
13 13 overflow: hidden;
14 14 z-index: 4;
15 15 }
... ...
pages/user/my_service/appment_main.js
... ... @@ -500,5 +500,11 @@ Page({
500 500 getApp().my_warnning(res.data.msg, 0, th);
501 501 }
502 502 })
  503 + },
  504 + //关闭导航
  505 + close:function(){
  506 + var th = this;
  507 + var nav_b = th.selectComponent("#nav_b"); //组件的id
  508 + nav_b.close_box();
503 509 }
504 510 })
505 511 \ No newline at end of file
... ...
pages/user/my_service/appment_main.json
1 1 {
2 2 "navigationBarTitleText": "预约服务",
3 3 "usingComponents": {
4   - "warn": "/components/long_warn/long_warn"
  4 + "warn": "/components/long_warn/long_warn",
  5 + "nav_b": "/components/nav_b/nav_b"
5 6 }
6 7 }
7 8 \ No newline at end of file
... ...
pages/user/my_service/appment_main.wxml
1 1 <wxs module="filters" src="../../../utils/filter.wxs"></wxs>
2   -<view class="container">
  2 +<view class="container" catchtap="close">
3 3 <image class="main" src="{{iurl}}/miniapp/images/yyservice/main.png"></image>
4 4  
5 5 <view class="Fram">
... ... @@ -13,7 +13,7 @@
13 13  
14 14 <!-- 选择门店 -->
15 15 <view class="flex-vertical-between fs26 select" bindtap="onclickstore">
16   - <view class="color value ellipsis-1">{{store_name==""?'选择服务门店':store_name}}</view>
  16 + <view class="{{store_name==''?'color':''}} value ellipsis-1">{{store_name==""?'选择服务门店':store_name}}</view>
17 17 <view class="angle">∟</view>
18 18 </view>
19 19 </view>
... ... @@ -29,7 +29,7 @@
29 29 <!-- 选择美容师 -->
30 30 <view class="rel fs26">
31 31 <view class="flex-vertical-between Cosmetology" bindtap="query_beautician">
32   - <view class="color value ellipsis-1">{{beautician_name==''?'选择美容师':beautician_name}}</view>
  32 + <view class="{{beautician_name==''?'color':''}} value ellipsis-1">{{beautician_name==''?'选择美容师':beautician_name}}</view>
33 33 <view class="angle">∟</view>
34 34 </view>
35 35 <!-- 美容师下拉列表 -->
... ... @@ -56,7 +56,7 @@
56 56  
57 57 <!-- 选择时间 -->
58 58 <view class="flex-vertical-between fs26 select" data-url="/pages/user/my_service/beauty_deta?url+{{url}}&BeauticianID={{beauticianID}}&itemId={{itemId}}&modify=0&projectId={{project_id}}" bindtap="goto">
59   - <view class="color">{{time==""?'选择时间':time}}</view>
  59 + <view class="{{time==''?'color':''}}">{{time==""?'选择时间':time}}</view>
60 60 <view class="angle angler">∟</view>
61 61 </view>
62 62 </view>
... ... @@ -70,7 +70,7 @@
70 70 </view>
71 71 <view class="flex fs26" bindtap="">
72 72 <block wx:if="{{is_textea==1 && store==0}}">
73   - <textarea class="textarea color" placeholder="{{remarks==''?'填写备注':remarks}}" placeholder-class="fs26 color" value="{{remarks}}" bindinput="input_remarks" maxlength="100">
  73 + <textarea class="textarea" placeholder="{{remarks==''?'填写备注':remarks}}" placeholder-class="fs26 color" value="{{remarks}}" bindinput="input_remarks" maxlength="100">
74 74 </textarea>
75 75 </block>
76 76 <block wx:else>
... ... @@ -147,4 +147,6 @@
147 147 </view>
148 148 <!-- 蒙尘 -->
149 149 <view wx:if="{{store}}" class="disgraceful" bindtap="onclickstore"></view>
150   -<warn id="warn"></warn>
151 150 \ No newline at end of file
  151 +<warn id="warn"></warn>
  152 +<!-- 制作一个圆球导航 -->
  153 +<nav_b id="nav_b"></nav_b>
152 154 \ No newline at end of file
... ...
pages/user/my_service/appment_main.wxss
... ... @@ -94,7 +94,6 @@ button {
94 94 padding-right: 15rpx;
95 95 padding-top: 15rpx;
96 96 padding-bottom: 15rpx;
97   - color: rgb(172, 172, 172);
98 97 }
99 98  
100 99 .mabot {
... ... @@ -168,7 +167,7 @@ button {
168 167  
169 168 .disgraceful {
170 169 position: fixed;
171   - z-index: 3;
  170 + z-index: 4;
172 171 width: 100%;
173 172 height: 100%;
174 173 top: 0rpx;
... ... @@ -177,7 +176,7 @@ button {
177 176 }
178 177  
179 178 .storeList {
180   - z-index: 4;
  179 + z-index: 5;
181 180 left: 0rpx;
182 181 border-top-left-radius: 25rpx;
183 182 border-top-right-radius: 25rpx;
... ...
pages/user/my_service/i_service.js
... ... @@ -46,8 +46,6 @@ Page({
46 46 */
47 47 onShow: function() {
48 48 var th = this;
49   - var nav_b = th.selectComponent("#nav_b"); //组件的id
50   - nav_b.close_box();
51 49 var my_confirm = th.selectComponent("#my_confirm"); //组件的id
52 50 my_confirm.open_cancel(0);
53 51 },
... ... @@ -99,8 +97,6 @@ Page({
99 97 title: '加载中',
100 98 })
101 99 var th = this;
102   - var nav_b = th.selectComponent("#nav_b"); //组件的id
103   - nav_b.close_box();
104 100 var url = e.currentTarget.dataset.url;
105 101 var service_id = e.currentTarget.dataset.service_id; //服务id
106 102 var project_id = e.currentTarget.dataset.project_id;
... ... @@ -179,8 +175,6 @@ Page({
179 175 //校正是否可预约
180 176 correcting: function(e) {
181 177 var th = this;
182   - var nav_b = th.selectComponent("#nav_b"); //组件的id
183   - nav_b.close_box();
184 178 wx.showLoading({
185 179 title: '加载中',
186 180 })
... ... @@ -250,6 +244,12 @@ Page({
250 244 }
251 245 })
252 246 }
  247 + },
  248 + //关闭导航
  249 + close: function () {
  250 + var th = this;
  251 + var nav_b = th.selectComponent("#nav_b"); //组件的id
  252 + nav_b.close_box();
253 253 }
254 254  
255 255 })
256 256 \ No newline at end of file
... ...
pages/user/my_service/i_service.wxml
1 1 <!-- 背景图片 -->
2   -<view>
  2 +<view catchtap="close">
3 3 <image class="backimage" src="{{iurl}}/miniapp/images/yyservice/backimage.png" lazy-load="true"></image>
4 4 <navigator class="History fs26" url="/pages/user/my_service/hist_service">历史服务</navigator>
5 5 </view>
6 6  
7 7 <!-- 预约内容 -->
8 8 <!-- 项目框架 -->
9   -<view class="Serviceitems">
  9 +<view class="Serviceitems" catchtap="close">
10 10 <!-- 单个项目 -->
11 11 <view class="rel" wx:for="{{service_List}}">
12 12 <view class="abs">
... ...
pages/user/my_service/tment_details.js
... ... @@ -102,17 +102,9 @@ Page({
102 102 }
103 103 })
104 104 },
105   - close: function() {
106   - var th = this;
107   - var nav_b = th.selectComponent("#nav_b"); //组件的id
108   - nav_b.close_box();
109   - },
110 105 //显示核销码
111 106 code_show: function(e) {
112 107 var th = this;
113   - th.close();
114   - var nav_b = th.selectComponent("#nav_b"); //组件的id
115   - nav_b.close_box();
116 108 //--获取成功的时候--
117 109 var no = e.currentTarget.dataset.order_sn;
118 110 var qc_com = th.selectComponent("#qc_com"); //组件的id
... ... @@ -125,7 +117,6 @@ Page({
125 117 //跳到首页
126 118 goto: function(e) {
127 119 var th = this;
128   - th.close();
129 120 wx.switchTab({
130 121 url: '/pages/index/index/index',
131 122 })
... ... @@ -136,6 +127,11 @@ Page({
136 127 onShow: function() {
137 128 var th = this;
138 129 th.query_bea();
139   - th.close();
140 130 },
  131 + //关闭导航
  132 + close: function () {
  133 + var th = this;
  134 + var nav_b = th.selectComponent("#nav_b"); //组件的id
  135 + nav_b.close_box();
  136 + }
141 137 })
142 138 \ No newline at end of file
... ...
pages/user/my_service/tment_details.wxml
1   -<view class="container" wx:for="{{tment_details}}" wx:if="{{index<1}}">
  1 +<view class="container" wx:for="{{tment_details}}" wx:if="{{index<1}}" catchtap="close">
2 2 <!-- 预约人的属性 -->
3 3 <view class="Subscriber padding">
4 4 <!-- 状态栏 -->
... ...