Commit 08302978f278884c203e6e5b83b1ab1854f68f86
1 parent
bf795fd7
1
Showing
5 changed files
with
38 additions
and
213 deletions
packageA/pages/my_service/appment_main.js
| @@ -44,14 +44,6 @@ Page({ | @@ -44,14 +44,6 @@ Page({ | ||
| 44 | validay: "", //服务项目有效期 | 44 | validay: "", //服务项目有效期 |
| 45 | is_sub: 0, //判断是否重复提交 | 45 | is_sub: 0, //判断是否重复提交 |
| 46 | is_textea: 1, //备注是否是可输入 | 46 | is_textea: 1, //备注是否是可输入 |
| 47 | - | ||
| 48 | - | ||
| 49 | - // 拖拽参数 | ||
| 50 | - writePosition: [80, 90], //默认定位参数 | ||
| 51 | - writesize: [0, 0],// X Y 定位 | ||
| 52 | - window: [0, 0], //屏幕尺寸 | ||
| 53 | - write: [0, 0], //定位参数 | ||
| 54 | - scrolltop: 0,//据顶部距离 | ||
| 55 | }, | 47 | }, |
| 56 | //控制备注输入 | 48 | //控制备注输入 |
| 57 | check_text: function() { | 49 | check_text: function() { |
| @@ -541,10 +533,6 @@ Page({ | @@ -541,10 +533,6 @@ Page({ | ||
| 541 | * 生命周期函数--监听页面加载 | 533 | * 生命周期函数--监听页面加载 |
| 542 | */ | 534 | */ |
| 543 | onLoad: function(options) { | 535 | onLoad: function(options) { |
| 544 | - | ||
| 545 | - | ||
| 546 | - | ||
| 547 | - | ||
| 548 | var th = this; | 536 | var th = this; |
| 549 | th.setData({ | 537 | th.setData({ |
| 550 | options, | 538 | options, |
| @@ -755,66 +743,8 @@ Page({ | @@ -755,66 +743,8 @@ Page({ | ||
| 755 | 743 | ||
| 756 | } | 744 | } |
| 757 | }) | 745 | }) |
| 758 | - }, | ||
| 759 | - | ||
| 760 | - | ||
| 761 | - | ||
| 762 | - //计算默认定位值 | ||
| 763 | - getSysdata: function () { | ||
| 764 | - var that = this; | ||
| 765 | - wx.getSystemInfo({ | ||
| 766 | - success: function (e) { | ||
| 767 | - that.data.window = [e.windowWidth, e.windowHeight]; | ||
| 768 | - var write = []; | ||
| 769 | - write[0] = that.data.window[0] * that.data.writePosition[0] / 100; | ||
| 770 | - write[1] = that.data.window[1] * that.data.writePosition[1] / 100; | ||
| 771 | - console.log(write,45) | ||
| 772 | - that.setData({ | ||
| 773 | - write: write | ||
| 774 | - }, function () { | ||
| 775 | - // 获取元素宽高 | ||
| 776 | - wx.createSelectorQuery().select('.td').boundingClientRect(function (res) { | ||
| 777 | - // console.log('0x0x',res.width) | ||
| 778 | - that.data.writesize = [res.width, res.height]; | ||
| 779 | - }).exec(); | ||
| 780 | - }) | ||
| 781 | - }, | ||
| 782 | - fail: function (e) { | ||
| 783 | - console.log(e) | ||
| 784 | - } | ||
| 785 | - }); | ||
| 786 | - }, | ||
| 787 | - //开始拖拽 | ||
| 788 | - touchmove: function (e) { | ||
| 789 | - // console.log(123); | ||
| 790 | - var that = this; | ||
| 791 | - var position = [e.touches[0].pageX - that.data.writesize[0] / 2, e.touches[0].pageY - that.data.writesize[1] / 2 - this.data.scrolltop]; | ||
| 792 | - that.setData({ | ||
| 793 | - write: position | ||
| 794 | - }); | ||
| 795 | - this.getSysdata(); | ||
| 796 | - }, | ||
| 797 | - onPageScroll(e) { | ||
| 798 | - this.data.scrolltop = e.scrollTop; | ||
| 799 | - }, | 746 | + } |
| 747 | + | ||
| 800 | 748 | ||
| 801 | - scroll(e) { | ||
| 802 | - // console.log('scroll', e); | ||
| 803 | - }, | ||
| 804 | - | ||
| 805 | - rect() { | ||
| 806 | - // console.log('click'); | ||
| 807 | - // wx.createSelectorQuery().select('.td').boundingClientRect(function (res) { | ||
| 808 | - // console.log('0x0x',res); | ||
| 809 | - // }).exec(); | ||
| 810 | - }, | ||
| 811 | - | ||
| 812 | - print(e) { | ||
| 813 | - console.log('e', e); | ||
| 814 | - wx.createSelectorQuery().select('.td').boundingClientRect(function (res) { | ||
| 815 | - console.log('0x0x',res); | ||
| 816 | - // that.data.writesize = [res.width, res.height]; | ||
| 817 | - }).exec(); | ||
| 818 | - }, | ||
| 819 | 749 | ||
| 820 | }) | 750 | }) |
| 821 | \ No newline at end of file | 751 | \ No newline at end of file |
packageA/pages/my_service/appment_main.wxml
| 1 | <wxs module="filters" src="../../../utils/filter.wxs"></wxs> | 1 | <wxs module="filters" src="../../../utils/filter.wxs"></wxs> |
| 2 | <view class="container" catchtap="close"> | 2 | <view class="container" catchtap="close"> |
| 3 | <image class="main" src="{{iurl}}/miniapp/images/yyservice/main.png"></image> | 3 | <image class="main" src="{{iurl}}/miniapp/images/yyservice/main.png"></image> |
| 4 | - <!-- Fram --> | ||
| 5 | - <view class=""> | 4 | + |
| 5 | + <view class="Fram"> | ||
| 6 | <!-- 选择门店 --> | 6 | <!-- 选择门店 --> |
| 7 | - <view class="flex-vertical pdv20 jc-center"> | 7 | + <view class="flex-vertical mabot"> |
| 8 | <!-- 门店 --> | 8 | <!-- 门店 --> |
| 9 | <view class="flex-vertical-between head fs30"> | 9 | <view class="flex-vertical-between head fs30"> |
| 10 | <view>门</view> | 10 | <view>门</view> |
| @@ -17,120 +17,54 @@ | @@ -17,120 +17,54 @@ | ||
| 17 | <view class="angle">∟</view> | 17 | <view class="angle">∟</view> |
| 18 | </view> | 18 | </view> |
| 19 | </view> | 19 | </view> |
| 20 | - | ||
| 21 | - | ||
| 22 | - <view class="table flex"> | ||
| 23 | - <view class="left t-c"> | ||
| 24 | - <view class="td">时间</view> | ||
| 25 | - <view class="td">8:00</view> | ||
| 26 | - <view class="td">9:00</view> | ||
| 27 | - </view> | ||
| 28 | - <scroll-view scroll-x class="right" bindscroll="scroll"> | ||
| 29 | - <view class="flex t-c" bindtap="rect"> | ||
| 30 | - <view bindtap="rect"> | ||
| 31 | - <view class="td blue">张三</view> | ||
| 32 | - <view class="td" bindtap="print">100</view> | ||
| 33 | - <view class="td">200</view> | ||
| 34 | - </view> | ||
| 35 | - <view> | ||
| 36 | - <view class="td blue">张三</view> | ||
| 37 | - <view class="td">100</view> | ||
| 38 | - <view class="td">200</view> | ||
| 39 | - </view> | ||
| 40 | - <view> | ||
| 41 | - <view class="td blue">张三</view> | ||
| 42 | - <view class="td" bindtap="print">100</view> | ||
| 43 | - <view class="td">200</view> | ||
| 44 | - </view> | ||
| 45 | - <view> | ||
| 46 | - <view class="td blue">张三</view> | ||
| 47 | - <view class="td">100</view> | ||
| 48 | - <view class="td">200</view> | ||
| 49 | - </view> | ||
| 50 | - <view> | ||
| 51 | - <view class="td blue">张三</view> | ||
| 52 | - <view class="td">100</view> | ||
| 53 | - <view class="td">200</view> | ||
| 54 | - </view> | ||
| 55 | - <view> | ||
| 56 | - <view class="td blue">张三</view> | ||
| 57 | - <view class="td">100</view> | ||
| 58 | - <view class="td">200</view> | ||
| 59 | - </view> | ||
| 60 | - <view> | ||
| 61 | - <view class="td blue">张三</view> | ||
| 62 | - <view class="td">100</view> | ||
| 63 | - <view class="td">200</view> | ||
| 64 | - </view> | ||
| 65 | - <view> | ||
| 66 | - <view class="td blue">1张三</view> | ||
| 67 | - <view class="td">300</view> | ||
| 68 | - <view class="td">300</view> | ||
| 69 | - </view> | ||
| 70 | - </view> | ||
| 71 | - </scroll-view> | ||
| 72 | - <view class="card"> | ||
| 73 | - <view class="t-c pd20"> | ||
| 74 | - <text class="iconfont icon-meirong fs40"></text> | ||
| 75 | - <view class="fs24">项目1</view> | ||
| 76 | - </view> | ||
| 77 | - <view class="t-c pd20"> | ||
| 78 | - <text class="iconfont icon-meirong fs40"></text> | ||
| 79 | - <view class="fs24">项目1</view> | ||
| 80 | - </view> | ||
| 81 | - </view> | ||
| 82 | - </view> | ||
| 83 | - | ||
| 84 | - | ||
| 85 | - | ||
| 86 | <!-- 选择美容师 --> | 20 | <!-- 选择美容师 --> |
| 87 | - <!-- <view class="flex-vertical mabot"> --> | 21 | + <view class="flex-vertical mabot"> |
| 88 | <!-- 门店 --> | 22 | <!-- 门店 --> |
| 89 | - <!-- <view class="flex-vertical-between head fs30"> | 23 | + <view class="flex-vertical-between head fs30"> |
| 90 | <view>美</view> | 24 | <view>美</view> |
| 91 | <view>容</view> | 25 | <view>容</view> |
| 92 | <view>师</view> | 26 | <view>师</view> |
| 93 | - </view> --> | 27 | + </view> |
| 94 | 28 | ||
| 95 | <!-- 选择美容师 --> | 29 | <!-- 选择美容师 --> |
| 96 | - <!-- <view class="rel fs26"> --> | ||
| 97 | - <!-- <view class="flex-vertical-between Cosmetology" bindtap="query_beautician"> | 30 | + <view class="rel fs26"> |
| 31 | + <view class="flex-vertical-between Cosmetology" bindtap="query_beautician"> | ||
| 98 | <view class="{{beautician_name==''?'color':''}} value ellipsis-1">{{beautician_name==''?'选择美容师':beautician_name}}</view> | 32 | <view class="{{beautician_name==''?'color':''}} value ellipsis-1">{{beautician_name==''?'选择美容师':beautician_name}}</view> |
| 99 | <view class="angle">∟</view> | 33 | <view class="angle">∟</view> |
| 100 | - </view> --> | 34 | + </view> |
| 101 | <!-- 美容师下拉列表 --> | 35 | <!-- 美容师下拉列表 --> |
| 102 | - <!-- <view class="beauticians abs" wx:if="{{beautician}}"> --> | 36 | + <view class="beauticians abs" wx:if="{{beautician}}"> |
| 103 | <!-- 到时候要做判断如果是index==循环的最后一个则把下边线去掉:(beaclone去掉的css) --> | 37 | <!-- 到时候要做判断如果是index==循环的最后一个则把下边线去掉:(beaclone去掉的css) --> |
| 104 | - <!-- <view class="beautician flex-vertical fs26" wx:for="{{beautician_list}}" bindtap="choice_beautician" data-baaindex="{{key}}" wx:for-index="key"> | 38 | + <view class="beautician flex-vertical fs26" wx:for="{{beautician_list}}" bindtap="choice_beautician" data-baaindex="{{key}}" wx:for-index="key"> |
| 105 | <view class="StaffName ellipsis-1">{{item.StaffName}}</view> | 39 | <view class="StaffName ellipsis-1">{{item.StaffName}}</view> |
| 106 | </view> | 40 | </view> |
| 107 | <view> | 41 | <view> |
| 108 | </view> | 42 | </view> |
| 109 | - </view> --> | ||
| 110 | - <!-- </view> --> | ||
| 111 | - <!-- <view class="flex-center users" bindtap="nav_bea"> | 43 | + </view> |
| 44 | + </view> | ||
| 45 | + <view class="flex-center users" bindtap="nav_bea"> | ||
| 112 | <image class="user" src="{{iurl}}/miniapp/images/yyservice/user.png"></image> | 46 | <image class="user" src="{{iurl}}/miniapp/images/yyservice/user.png"></image> |
| 113 | - </view> --> | ||
| 114 | - <!-- </view> --> | 47 | + </view> |
| 48 | + </view> | ||
| 115 | 49 | ||
| 116 | <!-- 选择时间 --> | 50 | <!-- 选择时间 --> |
| 117 | - <!-- <view class="flex-vertical mabot"> --> | 51 | + <view class="flex-vertical mabot"> |
| 118 | <!-- 门店 --> | 52 | <!-- 门店 --> |
| 119 | - <!-- <view class="head fs30"> | 53 | + <view class="head fs30"> |
| 120 | <view>预约时间</view> | 54 | <view>预约时间</view> |
| 121 | - </view> --> | 55 | + </view> |
| 122 | 56 | ||
| 123 | <!-- 选择时间 --> | 57 | <!-- 选择时间 --> |
| 124 | - <!-- <view class="flex-vertical-between fs26 select" data-url="/packageA/pages/my_service/beauty_deta?url={{url}}&StorageId={{StorageId}}&BeauticianID={{beauticianID}}&itemId={{itemId}}&modify=0&projectId={{project_id}}" bindtap="goto"> | 58 | + <view class="flex-vertical-between fs26 select" data-url="/packageA/pages/my_service/beauty_deta?url={{url}}&StorageId={{StorageId}}&BeauticianID={{beauticianID}}&itemId={{itemId}}&modify=0&projectId={{project_id}}" bindtap="goto"> |
| 125 | <view class="{{time==''?'color':''}}">{{time==""?'选择时间':time}}</view> | 59 | <view class="{{time==''?'color':''}}">{{time==""?'选择时间':time}}</view> |
| 126 | <view class="angle angler">∟</view> | 60 | <view class="angle angler">∟</view> |
| 127 | - </view> --> | ||
| 128 | - <!-- </view> --> | 61 | + </view> |
| 62 | + </view> | ||
| 129 | 63 | ||
| 130 | <!-- 备注 --> | 64 | <!-- 备注 --> |
| 131 | - <!-- <view class="flex Remarks"> --> | 65 | + <view class="flex Remarks"> |
| 132 | <!-- 门店 --> | 66 | <!-- 门店 --> |
| 133 | - <!-- <view class="flex-space-between head fs30"> | 67 | + <view class="flex-space-between head fs30"> |
| 134 | <view>备</view> | 68 | <view>备</view> |
| 135 | <view>注</view> | 69 | <view>注</view> |
| 136 | </view> | 70 | </view> |
| @@ -143,20 +77,20 @@ | @@ -143,20 +77,20 @@ | ||
| 143 | <view class="textarea {{remarks==''?'color':''}}" bindtap="check_text">{{remarks==''?'填写备注':remarks}} | 77 | <view class="textarea {{remarks==''?'color':''}}" bindtap="check_text">{{remarks==''?'填写备注':remarks}} |
| 144 | </view> | 78 | </view> |
| 145 | </block> | 79 | </block> |
| 146 | - </view> --> | ||
| 147 | - <!-- </view> | 80 | + </view> |
| 81 | + </view> | ||
| 148 | <view wx:if="{{tment_count!=''}}" class="notes flex-level-right fs24 color"> | 82 | <view wx:if="{{tment_count!=''}}" class="notes flex-level-right fs24 color"> |
| 149 | <view>注:剩余可预约人数{{tment_count}}人</view> | 83 | <view>注:剩余可预约人数{{tment_count}}人</view> |
| 150 | - </view> --> | 84 | + </view> |
| 151 | 85 | ||
| 152 | - <!-- <view class="submitMax flex-space-center fs32"> --> | 86 | + <view class="submitMax flex-space-center fs32"> |
| 153 | <!-- <navigator class="appment flex-center" url="/pages/user/my_service/tment_order_list"> | 87 | <!-- <navigator class="appment flex-center" url="/pages/user/my_service/tment_order_list"> |
| 154 | <view>我的预约</view> | 88 | <view>我的预约</view> |
| 155 | </navigator> --> | 89 | </navigator> --> |
| 156 | - <!-- <form report-submit='true' bindtap="sub_success"> | 90 | + <form report-submit='true' bindtap="sub_success"> |
| 157 | <button form-type="submit" class="sub_appment flex-center">帮你预约</button> | 91 | <button form-type="submit" class="sub_appment flex-center">帮你预约</button> |
| 158 | - </form> --> | ||
| 159 | - <!-- </view> --> | 92 | + </form> |
| 93 | + </view> | ||
| 160 | </view> | 94 | </view> |
| 161 | 95 | ||
| 162 | </view> | 96 | </view> |
| @@ -213,6 +147,4 @@ | @@ -213,6 +147,4 @@ | ||
| 213 | <view wx:if="{{store}}" class="disgraceful" bindtap="onclickstore"></view> | 147 | <view wx:if="{{store}}" class="disgraceful" bindtap="onclickstore"></view> |
| 214 | <warn id="warn"></warn> | 148 | <warn id="warn"></warn> |
| 215 | <!-- 制作一个圆球导航 --> | 149 | <!-- 制作一个圆球导航 --> |
| 216 | -<!-- <nav_b id="nav_b"></nav_b> --> | ||
| 217 | - | ||
| 218 | -<view bindtouchmove="touchmove" catch:touchmove style="position:absolute;left:{{write[0]}}px;top:{{write[1]}}px;">我可以移动</view> | ||
| 219 | \ No newline at end of file | 150 | \ No newline at end of file |
| 151 | +<!-- <nav_b id="nav_b"></nav_b> --> | ||
| 220 | \ No newline at end of file | 152 | \ No newline at end of file |
packageA/pages/my_service/appment_main.wxss
| @@ -286,40 +286,3 @@ button { | @@ -286,40 +286,3 @@ button { | ||
| 286 | height: 80rpx; | 286 | height: 80rpx; |
| 287 | color: rgb(159, 159, 159); | 287 | color: rgb(159, 159, 159); |
| 288 | } | 288 | } |
| 289 | - | ||
| 290 | - | ||
| 291 | -.table { | ||
| 292 | - background-color: white; | ||
| 293 | - border-top: 2rpx solid rgba(218, 217, 217, 1); | ||
| 294 | - border-left: 2rpx solid rgba(218, 217, 217, 1); | ||
| 295 | -} | ||
| 296 | -.blue { | ||
| 297 | - background: rgba(241, 252, 255, 1); | ||
| 298 | -} | ||
| 299 | -.td { | ||
| 300 | - width: 100rpx; | ||
| 301 | - height: 100rpx; | ||
| 302 | - display: flex; | ||
| 303 | - align-items: center; | ||
| 304 | - justify-content: center; | ||
| 305 | - border-right: 2rpx solid rgba(218, 217, 217, 1); | ||
| 306 | - border-bottom: 2rpx solid rgba(218, 217, 217, 1); | ||
| 307 | -} | ||
| 308 | - | ||
| 309 | -.left { | ||
| 310 | - box-shadow: 4px 0px 6px #e7e9eb; | ||
| 311 | -} | ||
| 312 | - | ||
| 313 | -.right { | ||
| 314 | - width: calc(100% - 102rpx); | ||
| 315 | - padding-right: 102rpx; | ||
| 316 | - box-sizing: border-box; | ||
| 317 | -} | ||
| 318 | - | ||
| 319 | -.card { | ||
| 320 | - position: fixed; | ||
| 321 | - right: 0; | ||
| 322 | - background-color: white; | ||
| 323 | - box-shadow: 4px 0px 12px #e7e9eb; | ||
| 324 | - border-radius: 8rpx; | ||
| 325 | -} |
pages/goods/goodsInfo/goodsInfo.wxml
| @@ -578,7 +578,7 @@ | @@ -578,7 +578,7 @@ | ||
| 578 | </view> | 578 | </view> |
| 579 | </view> | 579 | </view> |
| 580 | <view class="xc_comment-font pj_word_size ellipsis-2"> | 580 | <view class="xc_comment-font pj_word_size ellipsis-2"> |
| 581 | - {{item.content?item.content:''}} | 581 | + {{item.content?item.content:'此用户没有填写评价。'}} |
| 582 | </view> | 582 | </view> |
| 583 | <view class="xc_comment-val"> | 583 | <view class="xc_comment-val"> |
| 584 | <view class="xc_comment-time">{{item.add_time}}</view> | 584 | <view class="xc_comment-time">{{item.add_time}}</view> |
| @@ -795,7 +795,7 @@ | @@ -795,7 +795,7 @@ | ||
| 795 | </view> | 795 | </view> |
| 796 | <view class="xc-pirces"> | 796 | <view class="xc-pirces"> |
| 797 | <view class="middle-font {{item.seeMore==true?'ellipsis-3':''}}" > | 797 | <view class="middle-font {{item.seeMore==true?'ellipsis-3':''}}" > |
| 798 | - {{item.content?item.content:''}} | 798 | + {{item.content?item.content:'此用户没有填写评价。'}} |
| 799 | </view> | 799 | </view> |
| 800 | </view> | 800 | </view> |
| 801 | <view wx:if='{{item.seeMore}}' data-index='{{cIdx}}' class="s_btn fs30 red-co" catchtap='toggleHandler'>全部显示</view> | 801 | <view wx:if='{{item.seeMore}}' data-index='{{cIdx}}' class="s_btn fs30 red-co" catchtap='toggleHandler'>全部显示</view> |
pages/user/add_comment/add_comment.js
| @@ -88,8 +88,8 @@ Page({ | @@ -88,8 +88,8 @@ Page({ | ||
| 88 | var a = this; | 88 | var a = this; |
| 89 | if (!a.data.service_rank || !a.data.goods_rank || !a.data.deliver_rank) | 89 | if (!a.data.service_rank || !a.data.goods_rank || !a.data.deliver_rank) |
| 90 | return getApp().my_warnning("请先打分",0,a); | 90 | return getApp().my_warnning("请先打分",0,a); |
| 91 | - if(a.data.content=="") | ||
| 92 | - return getApp().my_warnning("请填写评价内容",0,a); | 91 | + // if(a.data.content=="") |
| 92 | + // return getApp().my_warnning("请填写评价内容",0,a); | ||
| 93 | 93 | ||
| 94 | //this.uploadPhotos(function () { | 94 | //this.uploadPhotos(function () { |
| 95 | var p_data= { | 95 | var p_data= { |
-
mentioned in commit 5d9615c60a8897f6170cb7c766fb44e456d16d85