appointOrder.vue 67 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396
  1. <template>
  2. <view class="container">
  3. <!-- 步骤 -->
  4. <view class="step-block">
  5. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/jzmall-dy/step-01.png" class="step-img"></image>
  6. <view class="step-right">
  7. <view class="step-title">填写上门信息</view>
  8. <view class="step-tips">服务所需的地址、电话等信息</view>
  9. </view>
  10. </view>
  11. <!-- 地址 -->
  12. <view class="order-address">
  13. <!-- 有地址,选择 -->
  14. <view v-if="addressId > 0" class="address-select" @tap="addressSelect">
  15. <!-- <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-order-map.png" class="map-img"></image> -->
  16. <view class="address-main">
  17. <view class="customer-address">
  18. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-map-yj.png" class="map-img"></image>
  19. <view>{{ checkedAddress.addressDetail }}</view>
  20. </view>
  21. <view class="main-line">
  22. <view>{{ checkedAddress.name }}</view>
  23. <view class="phone">{{ checkedAddress.tel }}</view>
  24. </view>
  25. </view>
  26. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-arrow-blue.png" class="arrow-img"></image>
  27. </view>
  28. <!-- 没地址,输入 -->
  29. <view v-else class="address-input-module add-address">
  30. <view class="add-form">
  31. <view class="form-item" @tap="goMap" style="height: auto; min-height: 78rpx">
  32. <view class="label">
  33. <text>*</text>
  34. 服务地址
  35. </view>
  36. <view class="content" style="height: auto; min-height: 78rpx">
  37. <view v-if="address.addressname == ''" style="color: #acadb1; font-size: 24rpx" class="input">选择省、市、县(区)、乡(镇)</view>
  38. <view v-else class="input">{{ address.addressname }}</view>
  39. <!-- <input class="input" value="{{address.addressname}}" disabled="true" placeholder="选择省、市、县(区)、乡(镇)" placeholder-style="color: #ACADB1;;font-size:24rpx;"/> -->
  40. <image src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-address-map.png" style="width: 28rpx; height: 28rpx; margin: 28rpx 0 0 10rpx"></image>
  41. </view>
  42. </view>
  43. <view class="form-item">
  44. <view class="label">
  45. <text>*</text>
  46. 小区门牌
  47. </view>
  48. <view class="content">
  49. <input
  50. class="input"
  51. @input="bindinputAddress"
  52. :value="address.detail"
  53. placeholder="详细地址,例xx小区x号楼x单元xx室"
  54. placeholder-style="color: #ACADB1;;font-size:24rpx;"
  55. />
  56. </view>
  57. </view>
  58. <view class="form-item">
  59. <view class="label">
  60. <text>*</text>
  61. 联系人
  62. </view>
  63. <view class="content special-content">
  64. <input class="input" @input="bindinputName" placeholder="姓名" :value="address.name" auto-focus placeholder-style="color: #ACADB1;;font-size:24rpx;" />
  65. <view class="gender-wrapper">
  66. <view class="female" @tap="femaleSelect">
  67. <image src="https://mall.zhaijieshi.cc/file/jzmall-dy/icon-select-popup.png" mode="asceptFit" v-if="gender == 2"></image>
  68. <image src="https://mall.zhaijieshi.cc/file/jzmall-dy/icon-unselect-popup.png" mode="asceptFit" v-else></image>
  69. <text>女士</text>
  70. </view>
  71. <view class="male" @tap="maleSelect">
  72. <image src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-select-popup.png" mode="asceptFit" v-if="gender == 1"></image>
  73. <image src="https://mall.zhaijieshi.cc/file/jzmall-dy/icon-unselect-popup.png" mode="asceptFit" v-else></image>
  74. <text>先生</text>
  75. </view>
  76. </view>
  77. </view>
  78. </view>
  79. <view class="form-item">
  80. <view class="label">
  81. <text>*</text>
  82. 联系电话
  83. </view>
  84. <view class="content">
  85. <input
  86. class="input"
  87. @input="bindinputMobile"
  88. :value="address.tel"
  89. type="number"
  90. placeholder="手机号码"
  91. maxlength="11"
  92. placeholder-style="color: #ACADB1;;font-size:24rpx;"
  93. />
  94. </view>
  95. </view>
  96. </view>
  97. </view>
  98. </view>
  99. <!-- 步骤 -->
  100. <view class="step-block">
  101. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/jzmall-dy/step-02.png" class="step-img"></image>
  102. <view class="step-right">
  103. <view class="step-title">预约服务时间</view>
  104. <view class="step-tips">选择您想要的服务时间</view>
  105. </view>
  106. </view>
  107. <!-- <view style="color: red; font-size: 24rpx; margin-top: 20rpx">临近春节,服务力紧张,我们会尽量为您安排。如果不能准时服务,支持全额退款</view> -->
  108. <!-- 预约服务时间 -->
  109. <view class="appoint-main-module">
  110. <view class="appoint-block appoint-block-special" @tap="showAppoint">
  111. <!-- <view class="title">
  112. <text>*</text>
  113. 上门时段
  114. </view> -->
  115. <view class="appoint-time" v-if="appointDate == ''">服务者将在该时段内上门</view>
  116. <view class="appoint-timed" v-else>{{ appointDate }}</view>
  117. <view v-if="appointDate!= ''&&futureDays>=1" class="future-days">
  118. 距离今日 <text>{{futureDays}}</text> 天
  119. </view>
  120. </view>
  121. <image src="https://mall.zhaijieshi.cc/file/wx-dy/icon-arrow-blue.png" mode="aspectFit" class="arrow-img"></image>
  122. </view>
  123. <!-- 步骤 -->
  124. <view class="step-block">
  125. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/jzmall-dy/step-03.png" class="step-img"></image>
  126. <view class="step-right">
  127. <view class="step-title">填写备注</view>
  128. <view class="step-tips">请提前告知需要我们注意的信息</view>
  129. </view>
  130. </view>
  131. <view class="appoint-main-module">
  132. <view class="appoint-block" @tap="showRemarkSelect">
  133. <!-- <view class="title">选择备注</view> -->
  134. <view class="appoint-time" v-if="remark == ''">请选择备注</view>
  135. <view class="appoint-timed" v-else>{{ remark }}</view>
  136. <image src="https://mall.zhaijieshi.cc/file/jzmall-dy/icon-arrow-blue.png" mode="aspectFit" class="arrow-img"></image>
  137. </view>
  138. </view>
  139. <view class="appoint-main-module textarea-wrapper">
  140. <textarea placeholder="其他备注请填写" class="remark-extra" :value="message" placeholder-style="font-size:24rpx;color: #ACADB1;" @input="bindMessageInput" auto-height/>
  141. </view>
  142. <!-- 商品 -->
  143. <!-- <view class="product-block">
  144. <view class="product-detail">
  145. <view class="profuct-info">
  146. <image mode="aspectFit" class="product-img" :src="orderGoods.picUrl"></image>
  147. <view class="info-right">
  148. <view class="info-main">
  149. <view class="product-name">{{ orderGoods.name }}</view>
  150. <view class="price">
  151. ¥
  152. <text style="font-size: 24rpx">{{ amount / 100 }}</text>
  153. </view>
  154. </view>
  155. <view class="sku-name">规格:{{ orderProduct.specifications }}</view>
  156. <view class="other-info">服务{{ orderProduct.serviceTimes }}次</view>
  157. </view>
  158. </view>
  159. </view>
  160. </view> -->
  161. <!-- 订单信息 -->
  162. <!-- <view class="order-info">
  163. <view class="order-top">
  164. <view class="topic">订单编号:</view>
  165. <view>
  166. {{ dyOrderId }}
  167. </view>
  168. <image mode="aspectFit" class="copy-img" src="https://mall.zhaijieshi.cc/file/jzmall-dy/icon-order-copy.png" @tap="copyOrder"></image>
  169. </view>
  170. <view class="order-top">
  171. <view class="topic">抖音券号:</view>
  172. <view>
  173. {{ certificateId }}
  174. </view>
  175. </view>
  176. <view class="order-top">
  177. <view class="topic">订单金额:</view>
  178. <view>¥{{ amount / 100 }}</view>
  179. </view>
  180. </view> -->
  181. <!-- 提交按钮 -->
  182. <!-- <view class="appoint-btn" bindtap="submitAll" wx:if="{{!isHide}}">
  183. 立即预约
  184. </view> -->
  185. <view class="appoint-btn" @tap="submitAll">立即预约</view>
  186. <!-- 备注弹框 -->
  187. <view class="appoint-overlay-wrapper" v-if="remarkShow" @tap="onRemarkClose"></view>
  188. <view class="remark-popup" v-if="remarkShow">
  189. <view class="title">订单备注</view>
  190. <textarea
  191. @input="bindMessageInput"
  192. placeholder="请输入订单备注信息"
  193. :value="message"
  194. placeholder-style="font-size:26rpx;color:#666;"
  195. maxlength="200"
  196. class="remark-textarea"
  197. ></textarea>
  198. <view class="btn" @tap="confirmRemark">确定</view>
  199. </view>
  200. <view class="appoint-overlay-wrapper" v-if="choosePopup" @tap="onClose"></view>
  201. <view class="popup-wrapper popup-wrapper-special" v-if="choosePopup">
  202. <!-- 标题 -->
  203. <view class="popup-title popup-title-special popup-title-new">
  204. <view>选择服务开始时间</view>
  205. <view v-if="selectTimeValue >= 17" class="fee-tips">您选的时间段可能会加收夜间服务费,具体以与商家的沟通为准</view>
  206. <!-- 选择服务者上门时段(具体服务时长以实际服务为准) -->
  207. </view>
  208. <block>
  209. <view class="popup-content popup-content-special">
  210. <view class="time-select-left">
  211. <view
  212. class="time-select-left-item"
  213. @tap="dateCheck"
  214. :data-index="index"
  215. :data-week="item.week"
  216. :data-date="item.date"
  217. :data-isbook="item.isBook"
  218. v-for="(item, index) in dateList"
  219. :key="index"
  220. >
  221. <view class="date-line-wrapper">
  222. <view :class="dateIndex == index ? 'current-date' : ''">{{ item.bookdate + ' ' + item.weekOfDay }}</view>
  223. <view>
  224. <text v-if="index <= 1" class="date-tag">{{ index == 0 ? '今天' : '明天' }}</text>
  225. </view>
  226. </view>
  227. <view :class="'date-msg ' + (item.dateMsg == '可约' ? 'avail-date' : '')">{{ item.dateMsg }}</view>
  228. </view>
  229. </view>
  230. <view class="time-select-right">
  231. <view class="noon-select">
  232. <view :class="'noon-item ' + (noonType == '1' ? 'active-noon' : '')" data-noon="1" @tap="noonTab">上午</view>
  233. <view :class="'noon-item ' + (noonType == '2' ? 'active-noon' : '')" data-noon="2" @tap="noonTab">下午</view>
  234. </view>
  235. <view class="time-item-wrapper">
  236. <view
  237. :class="'time-select-right-item ' + (item.timeMsg ? 'invalid-time' : '')"
  238. @tap="timeCheck"
  239. :data-stock="item.stock"
  240. :data-index="index"
  241. :data-msg="item.timeMsg"
  242. v-for="(item, index) in timeList"
  243. :key="index"
  244. >
  245. <!-- <view class="{{item.stock<=0?'zero-stock':''}}"> -->
  246. <view class="time-line">
  247. <text :class="timeIndex === index ? 'current-date' : ''">{{ item.begin }}</text>
  248. <!-- <text class="stock-text">(库存:{{item.stock}})</text> -->
  249. <text v-if="selectTimeValue >= 17 && timeIndex == index && !item.timeMsg" class="extra-tips">收夜间服务费</text>
  250. <text v-if="timeIndex === index" class="date-tag">已选</text>
  251. <view v-if="item.timeMsg && item.timeMsg != null" class="time-msg">
  252. {{ item.timeMsg }}
  253. </view>
  254. </view>
  255. <!-- <view wx:if="{{timeIndex===index&&item.time>='17:00'}}" style="font-size: 11px;line-height: 12px;">您选的时间段可能会加收夜间服务费,具体以与商家的沟通为准</view> -->
  256. </view>
  257. </view>
  258. </view>
  259. </view>
  260. </block>
  261. <!-- 确认按钮 -->
  262. <view class="popup-btn-wrapper">
  263. <view @tap="confirmTime" class="confirm-btn">确定</view>
  264. </view>
  265. </view>
  266. <!-- 地址弹框 -->
  267. <view class="appoint-overlay-wrapper address-overlay" v-if="addressShow" @tap="onAddressClose">
  268. <view class="address-popup" cantap="onAddressClick">
  269. <view class="title">选择地址</view>
  270. <view class="address-list">
  271. <view class="address-item" :data-address="item" @tap="addressConfirm" v-for="(item, index) in addressList" :key="index">
  272. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-order-map.png" class="map-img"></image>
  273. <view class="address-main">
  274. <view class="main-line">
  275. <view>{{ item.name }}</view>
  276. <view class="phone">{{ item.tel }}</view>
  277. </view>
  278. <view class="customer-address">{{ item.addressDetail }}</view>
  279. </view>
  280. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/wx-dy/arrow-grey.png" class="arrow-img"></image>
  281. </view>
  282. </view>
  283. <view class="add-address-btn" @tap="goAddAddress">添加其他地址</view>
  284. </view>
  285. </view>
  286. <!-- 备注弹框 -->
  287. <view class="appoint-overlay-wrapper remark-overlay" v-if="remarkPopupShow" @tap="onRemarkPopupClose">
  288. <view class="remark-select" @tap.stop.prevent="onRemarkClick">
  289. <view class="title">选择备注</view>
  290. <view class="remark-list">
  291. <view class="remark-item" :data-remark="item" @tap.stop.prevent="remarkItemSelect" v-for="(item, index) in remarkList" :key="index">
  292. <view class="remark-value">{{ item }}</view>
  293. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-select-popup.png" class="radio-img" v-if="remarkActive == item"></image>
  294. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-unselect-popup.png" class="radio-img" v-else></image>
  295. </view>
  296. </view>
  297. <view class="remark-conf-btn" @tap.stop.prevent="remarkItemConfirm">提交备注</view>
  298. </view>
  299. </view>
  300. </view>
  301. </template>
  302. <script>
  303. //获取应用实例
  304. var util = require('../../../utils/util.js');
  305. var api = require('../../../config/api.js');
  306. var check = require('../../../utils/check.js');
  307. var app = getApp();
  308. export default {
  309. data() {
  310. return {
  311. futureDays:'',
  312. type: '',
  313. //2为修改预约类型
  314. gender: '2',
  315. address: {
  316. id: 0,
  317. areaCode: 0,
  318. address: '',
  319. name: '',
  320. tel: '',
  321. isDefault: 0,
  322. province: '',
  323. city: '',
  324. county: '',
  325. latitude: '',
  326. longitude: '',
  327. addressDetail: '',
  328. detail: '',
  329. addressname: ''
  330. },
  331. addressIdSave: '',
  332. //新增地址保存
  333. checkedAddress: {
  334. name: '',
  335. tel: '',
  336. addressDetail: ''
  337. },
  338. addressList: [],
  339. addressShow: false,
  340. remark: '',
  341. remarkPopupShow: false,
  342. remarkList: ['上门前提前电话联系', '请准时到达', '请自带打扫工具', '主要打扫厨房&卫生间', '家里有宠物'],
  343. remarkActive: '',
  344. serviceId: '',
  345. message: '',
  346. remarkShow: false,
  347. addressId: '',
  348. addressName: '',
  349. noAppoint: '',
  350. aftersaleStatus: '',
  351. orderId: '',
  352. order: '',
  353. bookId: '',
  354. bookCount: 0,
  355. orderStatusText: '订单服务中',
  356. activeTab: 1,
  357. orderBook: {
  358. status: ''
  359. },
  360. orderChannel: 0,
  361. jzOrderBookDetails: [],
  362. unusedSerList: [],
  363. usedSerList: [],
  364. serList: [],
  365. choosePopup: false,
  366. timeList: [],
  367. // dateList: util.getDateList(new Date(new Date().getTime() + 60 * 60 * 1000 * 24 * 0), 1, 30),
  368. dateList: [],
  369. timeIndex: '',
  370. //选中的时间段
  371. dateIndex: 0,
  372. //选中的日期
  373. appointDate: '',
  374. //显示信息
  375. isHide: false,
  376. certificateId: '',
  377. //抖音券
  378. dyOrderId: '',
  379. //抖音券的订单号
  380. goodsId: '',
  381. //抖音券上的第三方商品id
  382. amount: '',
  383. //抖音券支付金额
  384. specifications: '',
  385. //商品规格
  386. orderGoods: {
  387. picUrl: '',
  388. name: ''
  389. },
  390. orderProduct: {
  391. specifications: '',
  392. serviceTimes: ''
  393. },
  394. noonType: 1,
  395. selectTimeValue: '',
  396. dySku: '',
  397. remainTimes: '',
  398. mobile: ''
  399. };
  400. }
  401. /**
  402. * 生命周期函数--监听页面加载
  403. */,
  404. onLoad: function (options) {
  405. console.log(options);
  406. if (options.type) {
  407. this.setData({
  408. type: options.type
  409. });
  410. }
  411. if (options.serviceId) {
  412. this.setData({
  413. serviceId: options.serviceId
  414. });
  415. }
  416. if (options.orderId) {
  417. this.setData({
  418. orderId: options.orderId
  419. });
  420. }
  421. if (options.goodsId) {
  422. //券绑定的商品
  423. this.setData({
  424. goodsId: options.goodsId
  425. });
  426. }
  427. if (options.amount) {
  428. //券支付金额
  429. this.setData({
  430. amount: options.amount
  431. });
  432. }
  433. if (options.dyOrderId) {
  434. //券订单
  435. this.setData({
  436. dyOrderId: options.dyOrderId
  437. });
  438. }
  439. if (options.dySku) {
  440. //券订单
  441. this.setData({
  442. dySku: options.dySku
  443. });
  444. }
  445. if (options.certificateId) {
  446. //券码
  447. this.setData({
  448. certificateId: options.certificateId
  449. });
  450. }
  451. },
  452. onShow: function () {
  453. this.getOrderGoodsDetail();
  454. if (app.globalData.mapSelectFinish) {
  455. let poi = app.globalData.mapSelectPoi;
  456. let location = poi.location;
  457. let address = this.address;
  458. address.lng = location.split(',')[0];
  459. address.lat = location.split(',')[1];
  460. address.addressname = poi.address;
  461. this.setData({
  462. address: address
  463. // selectAddress:poi.address
  464. });
  465. console.log(this.address);
  466. this.getAreaCode();
  467. }
  468. },
  469. methods: {
  470. getOrderGoodsDetail: function () {
  471. uni.showLoading({
  472. title: '加载中'
  473. });
  474. setTimeout(function () {
  475. uni.hideLoading();
  476. }, 2000);
  477. util.request(api.OrderGoodsInfo, {
  478. goodsId: this.goodsId
  479. }).then((res) => {
  480. if (res.errno === 0) {
  481. uni.hideLoading();
  482. console.log(res.data);
  483. this.setData({
  484. addressId: res.data.addressId,
  485. remainTimes: res.data.serviceTimes - res.data.servedTimes,
  486. orderGoods: res.data.orderGoods,
  487. orderProduct: res.data.orderProduct
  488. });
  489. if (res.data.addressId) {
  490. this.getAddressList();
  491. }
  492. } else {
  493. util.showErrorToast(res.errmsg);
  494. }
  495. });
  496. },
  497. getAddressList() {
  498. util.request(api.AddressList).then((res) => {
  499. if (res.errno === 0) {
  500. this.setData({
  501. addressList: res.data.list
  502. });
  503. let current = this.addressList.filter((item) => {
  504. return item.id == this.addressId;
  505. });
  506. if (current.length > 0) {
  507. this.setData({
  508. checkedAddress: current[0]
  509. });
  510. }
  511. }
  512. });
  513. },
  514. showAppoint(e) {
  515. if (this.appointDate != '') {
  516. this.setData({
  517. choosePopup: true
  518. });
  519. return false;
  520. } else {
  521. this.setData({
  522. choosePopup: true,
  523. noonType: 1,
  524. timeIndex: 0
  525. });
  526. let params = {
  527. days: 30,
  528. // orderBookId:this.data.bookId,
  529. bookId: this.serviceId,
  530. productId: this.orderProduct.id,
  531. serviceDuration: this.orderProduct.serviceDuration
  532. };
  533. this.getDayTime(params);
  534. }
  535. // console.info('getDayStock')
  536. // this.getDayStock();
  537. //如果是当天 只能预约四小时后 大于12点 默认加载下午时间段
  538. // if (this.data.dateList[this.data.dateIndex].name == '今天' ) {
  539. // this.setData({
  540. // noonType: 2,
  541. // })
  542. // }
  543. // this.getTimeList();
  544. },
  545. getTimeList() {
  546. let timeList = util.getBeginTimeList(this.orderProduct.serviceDuration, this.noonType, this.dateList[this.dateIndex].name);
  547. this.setData({
  548. timeList: timeList,
  549. selectTimeValue: timeList.length == 0 ? '' : timeList[0].value
  550. });
  551. if (this.timeList.length == 0) {
  552. this.setData({
  553. timeIndex: ''
  554. });
  555. }
  556. },
  557. getDayStock() {
  558. if (this.dateIndex < 0) {
  559. return false;
  560. }
  561. if (!this.addressIdSave && !this.checkedAddress) {
  562. util.showErrorToast('请选择地址');
  563. return;
  564. }
  565. let params = {
  566. day: this.dateList[this.dateIndex].date,
  567. goodsId: this.orderGoods.id,
  568. lng: this.address.lng,
  569. lat: this.address.lat,
  570. productId: this.orderProduct.id,
  571. serviceDuration: this.orderProduct.serviceDuration
  572. };
  573. uni.showLoading({
  574. title: '加载中'
  575. });
  576. util.request(api.EveryDayStock, params, 'GET')
  577. .then((res) => {
  578. uni.hideLoading();
  579. if (res.errno == 0) {
  580. this.setData({
  581. timeList: res.data
  582. });
  583. let validList = this.timeList.filter((item) => {
  584. return item.stock > 0;
  585. });
  586. if (validList.length > 0) {
  587. this.setData({
  588. timeIndex: validList[0].id - 1
  589. });
  590. } else {
  591. this.setData({
  592. timeIndex: ''
  593. });
  594. }
  595. } else {
  596. uni.showToast({
  597. title: res.errmsg,
  598. icon: 'none',
  599. duration: 2000
  600. });
  601. this.setData({
  602. timeList: [],
  603. timeIndex: ''
  604. });
  605. }
  606. })
  607. .catch((err) => {
  608. console.log(err);
  609. uni.hideLoading();
  610. uni.showToast({
  611. title: err.errMsg,
  612. icon: 'none'
  613. });
  614. this.setData({
  615. timeList: [],
  616. timeIndex: ''
  617. });
  618. });
  619. },
  620. onClose() {
  621. this.setData({
  622. choosePopup: false
  623. });
  624. },
  625. getDayTime(params) {
  626. uni.showLoading({
  627. title: '加载中'
  628. });
  629. util.request(api.everyDayTime, params, 'GET')
  630. .then((res) => {
  631. uni.hideLoading();
  632. if (res.errno == 0) {
  633. this.setData({
  634. dateList: res.data,
  635. dateIndex: 0,
  636. timeIndex: -1,
  637. noonType: 1
  638. });
  639. let period = res.data[0].period;
  640. let list = period.filter((item) => {
  641. return item.ofTime == '上午';
  642. });
  643. this.setData({
  644. timeList: list
  645. });
  646. } else {
  647. uni.showToast({
  648. title: res.errmsg,
  649. icon: 'none',
  650. duration: 2000
  651. });
  652. this.setData({
  653. timeList: [],
  654. timeIndex: ''
  655. });
  656. }
  657. })
  658. .catch((err) => {
  659. console.log(err);
  660. uni.hideLoading();
  661. uni.showToast({
  662. title: err.errMsg,
  663. icon: 'none'
  664. });
  665. this.setData({
  666. timeList: [],
  667. timeIndex: ''
  668. });
  669. });
  670. },
  671. dateCheck(e) {
  672. let index = e.currentTarget.dataset.index;
  673. let date = e.currentTarget.dataset.date;
  674. let week = e.currentTarget.dataset.week;
  675. let isbook = e.currentTarget.dataset.isbook;
  676. this.setData({
  677. dateIndex: index
  678. });
  679. let period = this.dateList[this.dateIndex].period;
  680. let current = this.noonType == 1 ? '上午' : '下午';
  681. let list = period.filter((item) => {
  682. return item.ofTime == current;
  683. });
  684. this.setData({
  685. timeList: list
  686. });
  687. let isNoTime = list.every((item) => {
  688. return item.timeMsg && item.timeMsg != null;
  689. });
  690. if (isNoTime) {
  691. this.setData({
  692. timeIndex: -1,
  693. selectTimeValue: ''
  694. });
  695. }
  696. // if (isbook) {
  697. // this.setData({
  698. // dateIndex: index
  699. // });
  700. // this.getDayStock();
  701. // }
  702. //上一个选中日期是今日 这里需要变更时间段
  703. // let dateName = this.data.dateList[this.data.dateIndex].name;
  704. // this.setData({
  705. // dateIndex: index
  706. // });
  707. // let curDateName = this.data.dateList[this.data.dateIndex].name;
  708. // if ((curDateName == '今天') || ((new Date()).getHours() >18&&curDateName == "明天")) {
  709. // this.setData({
  710. // noonType: 2
  711. // })
  712. // }
  713. // this.getTimeList();
  714. },
  715. timeCheck(e) {
  716. let index = e.currentTarget.dataset.index;
  717. // this.setData({
  718. // timeIndex: index,
  719. // selectTimeValue:this.data.timeList[index].value
  720. // });
  721. let msg = e.currentTarget.dataset.msg;
  722. if (msg == null || msg == '') {
  723. let time = this.timeList[index].begin.split(':')[0];
  724. this.setData({
  725. timeIndex: index,
  726. selectTimeValue: Number(time)
  727. });
  728. }
  729. },
  730. submitBook() {
  731. //提交预约
  732. let that = this;
  733. if (this.addressId == '' && this.addressIdSave == '') {
  734. util.showErrorToast('请输入服务地址');
  735. return false;
  736. }
  737. if (this.timeIndex === '' || this.timeIndex < 0||this.appointDate=='') {
  738. util.showErrorToast('请选择服务时间');
  739. return false;
  740. }
  741. uni.showModal({
  742. title: '温馨提示',
  743. content: '是否确认预约?',
  744. confirmColor:'#09afff',
  745. success: function (res) {
  746. if (res.confirm) {
  747. that.confirmOrder();
  748. } else if (res.cancel) {
  749. }
  750. }
  751. });
  752. },
  753. confirmOrder(){
  754. let that=this;
  755. let date = this.dateList[this.dateIndex].bookdate;
  756. let week = this.dateList[this.dateIndex].weekOfDay;
  757. let time = this.timeList[this.timeIndex].begin + '-' + this.timeList[this.timeIndex].end;
  758. console.log(date, week, time);
  759. let params = {
  760. goodsId: this.goodsId,
  761. dyOrderId: this.dyOrderId,
  762. certificateId: this.certificateId,
  763. addressId: this.addressId == 0 ? this.addressIdSave : this.checkedAddress.id,
  764. bookDate: date,
  765. bookStartTime: time.split('-')[0],
  766. bookEndTime: time.split('-')[1],
  767. bookRemark: this.remark + this.message,
  768. amount: that.amount,
  769. productId: this.orderProduct.id,
  770. dySkuId: this.dySku
  771. };
  772. console.info(params);
  773. uni.showLoading({
  774. title: '加载中...'
  775. });
  776. // 如果是修改预约,不用生成订单
  777. if (this.type == 2||this.orderId) {
  778. params = {
  779. detail_id: this.serviceId ? this.serviceId : this.orderId,
  780. // bookId: this.data.bookId,
  781. date: date,
  782. startTime: time.split('-')[0],
  783. endTime: time.split('-')[1],
  784. addressId: this.addressId == 0 ? this.addressIdSave : this.checkedAddress.id,
  785. // orderId: this.data.orderId,
  786. remark: this.remark + this.message
  787. };
  788. util.request(api.ServiceOrderBookV2, params, 'GET').then((res) => {
  789. if (res.errno == 0) {
  790. uni.hideLoading();
  791. this.setData({
  792. isHide: true
  793. });
  794. uni.showToast({
  795. title: '预约成功',
  796. icon: 'none',
  797. duration: 2000
  798. });
  799. setTimeout(() => {
  800. uni.navigateTo({
  801. url: '/pages/ucenter/orderDetail/orderDetail?id=' + this.orderId
  802. });
  803. }, 1000);
  804. } else {
  805. uni.showToast({
  806. title: res.errmsg,
  807. icon: 'none'
  808. });
  809. // util.showErrorToast(res.errmsg);
  810. }
  811. });
  812. } else {
  813. util.request(api.OrderPrepay, params, 'GET').then((res) => {
  814. uni.hideLoading();
  815. if (res.errno == 0) {
  816. // this.setData({
  817. // isHide: true
  818. // });
  819. let orderId=res.data;
  820. setTimeout(() => {
  821. uni.navigateTo({
  822. url: '/pages/ucenter/orderDetail/orderDetail?id=' + orderId
  823. });
  824. }, 1000);
  825. //拉起支付
  826. // that.createOrder(res.data);
  827. } else {
  828. uni.showToast({
  829. title: res.errmsg,
  830. icon: 'none'
  831. });
  832. }
  833. });
  834. }
  835. },
  836. createOrder(data) {
  837. console.log('data--->' + JSON.stringify(data));
  838. uni.createOrder({
  839. skuList: data.preOrderParm.skuList,
  840. payment: data.preOrderParm.payment,
  841. callbackData: data.orderInfo,
  842. callbackUrl: data.preOrderParm.callbackUrl,
  843. success: (res) => {
  844. uni.hideLoading();
  845. console.log('预下单成功11');
  846. console.log(res);
  847. const { orderId, outOrderNo } = res;
  848. console.log('success res', res, 'orderId', orderId, 'outOrderNo', outOrderNo);
  849. //如果是静默状态未登录 开始授权登录
  850. // wx.redirectTo({
  851. // url: '/pages/checkout/payResult/payResult?status=1&outOrderNo=' + outOrderNo + '&actualPrice=' + that.data.actualPrice
  852. // });
  853. uni.redirectTo({
  854. url: '/pages/ucenter/order/order?tab=0'
  855. });
  856. },
  857. fail: (res) => {
  858. uni.hideLoading();
  859. console.log('预下单失败11');
  860. console.log(res);
  861. const { orderId, outOrderNo, errNo, errMsg, errLogId } = res;
  862. if (errLogId) {
  863. console.log('预下单失败', errNo, errMsg, errLogId);
  864. let tomsg = errMsg;
  865. if (tomsg.indexOf('createOrder') != -1) {
  866. tomsg = tomsg.replace('createOrder:fail 开发者限购:', '');
  867. tomsg = tomsg.replace('createOrder:fail 开发者拒绝交易:', '');
  868. tomsg = tomsg.replace('createOrder:fail', '');
  869. }
  870. uni.showModal({
  871. title: '提示',
  872. content: tomsg,
  873. showCancel: false
  874. });
  875. }
  876. if (orderId || outOrderNo) {
  877. uni.navigateTo({
  878. url: '/pages/ucenter/orderDetail/orderDetail?id=' + outOrderNo
  879. });
  880. console.log('支付失败', errNo, errMsg, orderId, outOrderNo);
  881. }
  882. console.log(errNo, errMsg);
  883. }
  884. });
  885. },
  886. confirmTime() {
  887. if (this.timeIndex === '' || this.timeIndex < 0) {
  888. util.showErrorToast('请选择服务时间');
  889. return false;
  890. }
  891. let date = this.dateList[this.dateIndex].bookdate;
  892. let week = this.dateList[this.dateIndex].weekOfDay;
  893. let time = this.timeList[this.timeIndex].begin + '-' + this.timeList[this.timeIndex].end;
  894. let futureDays=(((new Date(date)).getTime()-(new Date()).getTime())/(1000*24*3600));
  895. futureDays=Math.ceil(futureDays);
  896. this.setData({
  897. choosePopup: false,
  898. appointDate: date + ' ' + week + ' ' + time,
  899. futureDays:futureDays
  900. });
  901. },
  902. selectAddress() {
  903. //已经输入过地址的订单 不允许再次选择地址
  904. if (this.order.addressId > 0) {
  905. return;
  906. }
  907. uni.navigateTo({
  908. url: '/pages/ucenter/address/address'
  909. });
  910. },
  911. showRemark() {
  912. this.setData({
  913. remarkShow: true
  914. });
  915. },
  916. onRemarkClose() {
  917. this.setData({
  918. remarkShow: false
  919. });
  920. },
  921. confirmRemark() {
  922. this.setData({
  923. remarkShow: false
  924. });
  925. },
  926. bindMessageInput: function (e) {
  927. this.setData({
  928. message: e.detail.value
  929. });
  930. },
  931. bindPhone(e) {
  932. this.setData({
  933. mobile: e.detail.value
  934. });
  935. },
  936. copyOrder() {
  937. uni.setClipboardData({
  938. data: this.dyOrderId,
  939. success: function (res) {
  940. uni.getClipboardData({
  941. success: function (res) {
  942. uni.showToast({
  943. title: '订单编号复制成功',
  944. icon: 'success',
  945. duration: 2000
  946. });
  947. }
  948. });
  949. }
  950. });
  951. },
  952. onAddressClose() {
  953. this.setData({
  954. addressShow: false
  955. });
  956. },
  957. onAddressClick() {
  958. //阻止事件冒泡,不要删
  959. },
  960. addressConfirm(e) {
  961. let address = e.currentTarget.dataset.address;
  962. this.setData({
  963. checkedAddress: address,
  964. addressShow: false
  965. });
  966. },
  967. addressSelect() {
  968. this.setData({
  969. addressShow: true
  970. });
  971. },
  972. showRemarkSelect() {
  973. this.setData({
  974. remarkPopupShow: true
  975. });
  976. },
  977. onRemarkPopupClose() {
  978. this.setData({
  979. remarkPopupShow: false
  980. });
  981. },
  982. onRemarkClick() {
  983. //阻止事件冒泡,不要删
  984. },
  985. remarkItemSelect(e) {
  986. let remark = e.currentTarget.dataset.remark;
  987. this.setData({
  988. remark: remark,
  989. remarkActive: remark
  990. });
  991. },
  992. remarkItemConfirm() {
  993. if (this.remarkActive === '') {
  994. util.showErrorToast('请选择备注');
  995. return false;
  996. }
  997. this.setData({
  998. remarkPopupShow: false
  999. });
  1000. },
  1001. bindinputMobile(event) {
  1002. let address = this.address;
  1003. address.tel = event.detail.value;
  1004. this.setData({
  1005. address: address
  1006. });
  1007. },
  1008. bindinputName(event) {
  1009. let address = this.address;
  1010. address.name = event.detail.value;
  1011. this.setData({
  1012. address: address
  1013. });
  1014. },
  1015. bindinputAddress(event) {
  1016. let address = this.address;
  1017. address.detail = event.detail.value.replace(/[,,]/g, '');
  1018. this.setData({
  1019. address: address
  1020. });
  1021. // return value.replace(/[,,]/g,'');
  1022. },
  1023. bindAddressDetail(event) {
  1024. let address = this.address;
  1025. address.addressname = event.detail.value.replace(/[,,]/g, '');
  1026. this.setData({
  1027. address: address
  1028. });
  1029. },
  1030. submitAll() {
  1031. if (this.addressId == '' && this.addressIdSave == '') {
  1032. this.saveAddress();
  1033. } else {
  1034. this.submitBook();
  1035. }
  1036. },
  1037. async saveAddress() {
  1038. console.log(this.address);
  1039. let address = this.address;
  1040. // if (address.addressname == 0) {
  1041. // util.showErrorToast('请选择服务地址');
  1042. // return false;
  1043. // }
  1044. if (address.addressname == '') {
  1045. util.showErrorToast('请选择服务地址');
  1046. return false;
  1047. }
  1048. if (address.name == '') {
  1049. util.showErrorToast('请输入姓名');
  1050. return false;
  1051. }
  1052. if (address.detail == '') {
  1053. util.showErrorToast('请输入门牌号');
  1054. return false;
  1055. }
  1056. if (this.gender == null || this.gender == '') {
  1057. util.showErrorToast('请选择性别');
  1058. return false;
  1059. }
  1060. if (address.tel == '') {
  1061. util.showErrorToast('请输入手机号码');
  1062. return false;
  1063. }
  1064. if (!check.isValidPhone(address.tel)) {
  1065. util.showErrorToast('手机号不正确');
  1066. return false;
  1067. }
  1068. let that = this;
  1069. let addressString = address.detail == '' ? address.addressname : address.addressname + ',' + address.detail;
  1070. uni.showLoading({
  1071. title: '加载中...'
  1072. });
  1073. let res = await util.request(
  1074. api.AddressSave,
  1075. {
  1076. gender: this.gender,
  1077. id: address.id,
  1078. name: address.name,
  1079. tel: address.tel,
  1080. province: address.province,
  1081. city: address.city,
  1082. county: address.county,
  1083. areaCode: address.areaCode,
  1084. addressDetail: addressString,
  1085. isDefault: address.isDefault,
  1086. lat: Number(address.lat).toFixed(5),
  1087. lng: Number(address.lng).toFixed(5)
  1088. },
  1089. 'POST'
  1090. );
  1091. uni.hideLoading();
  1092. if (res.errno === 0) {
  1093. that.setData({
  1094. addressIdSave: res.data
  1095. });
  1096. that.submitBook();
  1097. } else {
  1098. uni.showModal({
  1099. title: '提醒',
  1100. showCancel: false,
  1101. content: res.errmsg
  1102. });
  1103. }
  1104. },
  1105. goMap() {
  1106. let that = this;
  1107. // wx.authorize({
  1108. // scope: "scope.userLocation",
  1109. // success: (res) => {
  1110. // console.log("authorize", res);
  1111. uni.chooseLocation({
  1112. success: (location) => {
  1113. console.log('chooseLocation success: ', location);
  1114. console.log(`经度${location.longitude},维度${location.latitude}`);
  1115. console.log(location);
  1116. if (location != null) {
  1117. let address = that.address;
  1118. address.lat = location.latitude;
  1119. address.lng = location.longitude;
  1120. address.addressname = location.address;
  1121. that.setData({
  1122. address: address
  1123. // selectAddress:location.address
  1124. });
  1125. console.log(that.address);
  1126. that.getAreaCode();
  1127. }
  1128. },
  1129. fail: (err) => {
  1130. console.log('chooseLocation fail: ' + err.errMsg);
  1131. }
  1132. });
  1133. // },
  1134. // fail: () => {
  1135. // wx.openSetting({});
  1136. // },
  1137. // });
  1138. },
  1139. goMap() {
  1140. console.log('gomap');
  1141. app.globalData.mapSelectFinish = false;
  1142. if (this.address.lng && this.address.lat) {
  1143. let city = this.address.city == '市辖区' ? this.address.province : this.address.city;
  1144. uni.navigateTo({
  1145. url: '/pages/map/mapContent/mapContent?lng=' + this.address.lng + '&lat=' + this.address.lat + '&addressname=' + this.address.addressname + '&city=' + city
  1146. });
  1147. } else {
  1148. uni.navigateTo({
  1149. url: '/pages/map/mapContent/mapContent'
  1150. });
  1151. }
  1152. },
  1153. maleSelect() {
  1154. this.setData({
  1155. gender: 1
  1156. });
  1157. },
  1158. femaleSelect() {
  1159. this.setData({
  1160. gender: 2
  1161. });
  1162. },
  1163. getAreaCode() {
  1164. let param = {
  1165. location: this.address.lng + ',' + this.address.lat,
  1166. extensions: 'all',
  1167. key: api.gdKey,
  1168. radius: 3000
  1169. };
  1170. uni.request({
  1171. url: api.gdUrl,
  1172. data: param,
  1173. method: 'GET',
  1174. header: {
  1175. 'Content-Type': 'application/json'
  1176. },
  1177. success: (res) => {
  1178. console.log(res);
  1179. if (res.data.infocode == '10000') {
  1180. if (res.data.info == 'OK') {
  1181. // let ad_info = res.data.result.ad_info;
  1182. // let areaCode = res.data.result.ad_info.adcode;
  1183. let regeocode = res.data.regeocode.addressComponent;
  1184. let cityName = regeocode.city == null || regeocode.city.length == 0 ? regeocode.province : regeocode.city;
  1185. let district = regeocode.district == null || regeocode.district.length == 0 ? '' : regeocode.district;
  1186. this.setData({
  1187. ['address.areaCode']: regeocode.adcode,
  1188. ['address.province']: regeocode.province,
  1189. ['address.city']: cityName,
  1190. ['address.county']: district
  1191. // ['address.addressname']:res.data.result.address
  1192. });
  1193. } else {
  1194. uni.showToast({
  1195. title: '获取地区码失败',
  1196. icon: 'none',
  1197. duration: 3000
  1198. });
  1199. }
  1200. } else {
  1201. uni.showToast({
  1202. title: '获取地区码失败',
  1203. icon: 'none',
  1204. duration: 3000
  1205. });
  1206. }
  1207. },
  1208. fail: function (err) {
  1209. reject(err);
  1210. }
  1211. });
  1212. },
  1213. goAddAddress() {
  1214. uni.navigateTo({
  1215. url: '/pages/ucenter/addressAdd/addressAdd?id=0'
  1216. });
  1217. },
  1218. noonTab(e) {
  1219. let noon = e.currentTarget.dataset.noon;
  1220. this.setData({
  1221. timeIndex: -1,
  1222. noonType: noon,
  1223. selectTimeValue: ''
  1224. });
  1225. let period = this.dateList[this.dateIndex].period;
  1226. let current = this.noonType == 1 ? '上午' : '下午';
  1227. let list = period.filter((item) => {
  1228. return item.ofTime == current;
  1229. });
  1230. this.setData({
  1231. timeList: list
  1232. });
  1233. }
  1234. }
  1235. };
  1236. </script>
  1237. <style>
  1238. .container {
  1239. padding:0 0 180rpx;
  1240. background: linear-gradient(180deg, rgb(240,234,226) 0%, rgb(239,238,237) 100%);
  1241. }
  1242. view,
  1243. text {
  1244. font-size: 30rpx;
  1245. color: #333;
  1246. box-sizing: border-box;
  1247. }
  1248. .address-block {
  1249. background: #ffffff;
  1250. border-radius: 10rpx;
  1251. padding: 30rpx 20rpx 24rpx;
  1252. display: flex;
  1253. align-items: center;
  1254. justify-content: space-between;
  1255. }
  1256. .address-wrapper {
  1257. width: 610rpx;
  1258. height: 90rpx;
  1259. }
  1260. .address-block .tips {
  1261. display: flex;
  1262. align-items: center;
  1263. height: 30rpx;
  1264. }
  1265. .tips image {
  1266. width: 30rpx;
  1267. height: 30rpx;
  1268. margin-right: 10rpx;
  1269. }
  1270. .tips view {
  1271. line-height: 30rpx;
  1272. font-size: 30rpx;
  1273. }
  1274. .address-block .detail {
  1275. padding-left: 38rpx;
  1276. margin-top: 18rpx;
  1277. line-height: 40rpx;
  1278. font-size: 26rpx;
  1279. overflow: hidden;
  1280. height: 40rpx;
  1281. text-overflow: ellipsis;
  1282. white-space: nowrap;
  1283. }
  1284. .arrow-img {
  1285. width: 24rpx;
  1286. height: 24rpx;
  1287. }
  1288. .product-block {
  1289. background: #ffffff;
  1290. border-radius: 24rpx;
  1291. padding: 24rpx;
  1292. margin: 24rpx 0;
  1293. }
  1294. .product-block .title {
  1295. height: 88rpx;
  1296. line-height: 78rpx;
  1297. }
  1298. .profuct-info {
  1299. height: 190rpx;
  1300. display: flex;
  1301. align-items: flex-start;
  1302. }
  1303. .product-img {
  1304. width: 190rpx;
  1305. height: 190rpx;
  1306. border-radius: 10rpx;
  1307. margin-right: 20rpx;
  1308. }
  1309. .info-right {
  1310. /* padding-top: 10rpx; */
  1311. flex: 1;
  1312. }
  1313. .info-main {
  1314. display: flex;
  1315. height: 40rpx;
  1316. align-items: center;
  1317. justify-content: space-between;
  1318. /* margin-bottom: 58rpx; */
  1319. }
  1320. .info-right .sku-name {
  1321. color: #666666;
  1322. font-size: 24rpx;
  1323. margin: 10rpx 0;
  1324. height: 34rpx;
  1325. line-height: 34rpx;
  1326. display: flex;
  1327. justify-content: space-between;
  1328. }
  1329. .product-name {
  1330. line-height: 40rpx;
  1331. font-size: 28rpx;
  1332. /* padding-left: 20rpx;
  1333. text-indent: -16rpx; */
  1334. overflow: hidden;
  1335. text-overflow: ellipsis;
  1336. white-space: nowrap;
  1337. width: 328rpx;
  1338. font-weight: bold;
  1339. color: rgba(0, 0, 0, 0.9);
  1340. }
  1341. .info-main .price {
  1342. color: rgba(0, 0, 0, 0.9);
  1343. font-size: 18rpx;
  1344. font-weight: bold;
  1345. }
  1346. .info-right .other-info {
  1347. font-size: 24rpx;
  1348. color: rgba(0, 0, 0, 0.9);
  1349. line-height: 34rpx;
  1350. }
  1351. .appoint-main-module {
  1352. height: 156rpx;
  1353. border-radius: 14rpx;
  1354. background: #ffffff;
  1355. padding: 0 24rpx;
  1356. display: flex;
  1357. align-items: center;
  1358. width:690rpx;
  1359. margin:0 30rpx;
  1360. }
  1361. .textarea-wrapper{
  1362. margin-top:10rpx;
  1363. }
  1364. .appoint-block {
  1365. /* height: 74rpx; */
  1366. flex:1;
  1367. display: flex;
  1368. align-items: center;
  1369. justify-content: space-between;
  1370. /* border-bottom: 2rpx solid #e0e0e0; */
  1371. }
  1372. .appoint-block .title {
  1373. width: 136rpx;
  1374. border-bottom: 2rpx solid #fff;
  1375. font-size: 26rpx;
  1376. font-weight: bold;
  1377. z-index: 9;
  1378. height: 72rpx;
  1379. line-height: 72rpx;
  1380. }
  1381. .appoint-block .title text {
  1382. color: #f00;
  1383. }
  1384. .appoint-time {
  1385. flex: 1;
  1386. color: #acadb1;
  1387. padding-left: 4rpx;
  1388. font-size: 26rpx;
  1389. }
  1390. .appoint-timed {
  1391. flex: 1;
  1392. padding-left: 4rpx;
  1393. color: #333;
  1394. font-size: 26rpx;
  1395. }
  1396. .appoint-block.appoint-block-special{
  1397. flex-direction: column;
  1398. align-items: flex-start;
  1399. }
  1400. .appoint-block .arrow-img {
  1401. width: 24rpx;
  1402. height: 24rpx;
  1403. margin-left: 8rpx;
  1404. }
  1405. .future-days{
  1406. height: 38rpx;
  1407. font-size: 26rpx;
  1408. color: #999;
  1409. margin:0 8rpx;
  1410. }
  1411. .future-days text{
  1412. color:#09AFFF;
  1413. }
  1414. .remark-extra{
  1415. wigth:642rpx;
  1416. font-size: 26rpx;
  1417. /* height:130rpx; */
  1418. }
  1419. .appoint-btn {
  1420. position: fixed;
  1421. bottom: 56rpx;
  1422. left: 40rpx;
  1423. right: 40rpx;
  1424. height: 90rpx;
  1425. width: 670rpx;
  1426. border-radius: 90rpx;
  1427. line-height: 90rpx;
  1428. text-align: center;
  1429. color: #fff;
  1430. background: linear-gradient(90deg, #00baff 0%, #008dff 100%);
  1431. font-size: 30rpx;
  1432. }
  1433. .appoint-overlay-wrapper {
  1434. position: fixed;
  1435. top: 0;
  1436. left: 0;
  1437. width: 100%;
  1438. height: 100%;
  1439. background-color: rgba(0, 0, 0, 0.7);
  1440. z-index: 999;
  1441. }
  1442. .remark-text {
  1443. font-size: 26rpx;
  1444. white-space: nowrap;
  1445. overflow: hidden;
  1446. text-overflow: ellipsis;
  1447. width: 486rpx;
  1448. padding-left: 40rpx;
  1449. margin: 0 10rpx 0 20rpx;
  1450. text-align: right;
  1451. }
  1452. .remark-popup {
  1453. position: fixed;
  1454. left: 0;
  1455. right: 0;
  1456. bottom: 0;
  1457. height: 860rpx;
  1458. background: #fff;
  1459. border-radius: 20rpx 20rpx 0px 0px;
  1460. padding: 40rpx 30rpx 50rpx;
  1461. z-index: 9999;
  1462. }
  1463. .remark-popup .title {
  1464. height: 30rpx;
  1465. line-height: 30rpx;
  1466. font-size: 30rpx;
  1467. color: #333333;
  1468. }
  1469. .remark-textarea {
  1470. width: 690rpx;
  1471. height: 240rpx;
  1472. background: #f8f8f8;
  1473. border-radius: 10rpx;
  1474. padding: 20rpx 36rpx 36rpx 20rpx;
  1475. font-size: 26rpx;
  1476. line-height: 40rpx;
  1477. margin: 30rpx 0 330rpx;
  1478. box-sizing: border-box;
  1479. }
  1480. .remark-popup .btn {
  1481. width: 690rpx;
  1482. height: 100rpx;
  1483. background: #00b9ff;
  1484. border-radius: 50rpx;
  1485. line-height: 100rpx;
  1486. font-size: 30rpx;
  1487. text-align: center;
  1488. color: #fff;
  1489. }
  1490. .address-item {
  1491. display: flex;
  1492. min-height: 136rpx;
  1493. background: #fff;
  1494. padding: 30rpx 20rpx;
  1495. border-radius: 10rpx;
  1496. }
  1497. .address-item.address-empty {
  1498. line-height: 75rpx;
  1499. text-align: center;
  1500. }
  1501. .address-item .map-icon {
  1502. width: 28rpx;
  1503. height: 30rpx;
  1504. margin: 6rpx 10rpx 0 0;
  1505. }
  1506. .address-box .l {
  1507. width: 125rpx;
  1508. height: 100%;
  1509. }
  1510. .address-box .l .name {
  1511. margin-left: 6.25rpx;
  1512. margin-top: -7.25rpx;
  1513. display: block;
  1514. width: 125rpx;
  1515. height: 43rpx;
  1516. line-height: 43rpx;
  1517. font-size: 30rpx;
  1518. color: #333;
  1519. margin-bottom: 5rpx;
  1520. }
  1521. .address-box .l .default {
  1522. margin-left: 6.25rpx;
  1523. display: block;
  1524. width: 62rpx;
  1525. height: 33rpx;
  1526. border-radius: 5rpx;
  1527. border: 1px solid #b4282d;
  1528. font-size: 20.5rpx;
  1529. text-align: center;
  1530. line-height: 29rpx;
  1531. color: #b4282d;
  1532. }
  1533. .address-box .m {
  1534. flex: 1;
  1535. }
  1536. .address-box .mobile {
  1537. display: block;
  1538. height: 29rpx;
  1539. line-height: 29rpx;
  1540. margin-bottom: 6.25rpx;
  1541. font-size: 26rpx;
  1542. }
  1543. .address-box .address {
  1544. display: block;
  1545. /* height: 30rpx; */
  1546. line-height: 32rpx;
  1547. font-size: 30rpx;
  1548. margin: 0 0 16rpx 0;
  1549. }
  1550. .address-bottom {
  1551. color: #999;
  1552. line-height: 28rpx;
  1553. height: 28rpx;
  1554. font-size: 26rpx;
  1555. }
  1556. .address-bottom .user-name {
  1557. margin: 0 32rpx 0 0;
  1558. }
  1559. .address-box .r {
  1560. width: 30rpx;
  1561. height: 90rpx;
  1562. display: flex;
  1563. justify-content: flex-end;
  1564. align-items: center;
  1565. }
  1566. .address-box .r image {
  1567. width: 14rpx;
  1568. height: 24rpx;
  1569. }
  1570. .popup-wrapper view {
  1571. color: #888;
  1572. font-size: 30rpx;
  1573. }
  1574. .popup-content {
  1575. flex: 1;
  1576. }
  1577. .popup-title {
  1578. height: 96rpx;
  1579. line-height: 96rpx;
  1580. text-align: center;
  1581. border-bottom: 1rpx solid #ddd;
  1582. }
  1583. .popup-content {
  1584. display: flex;
  1585. }
  1586. .time-select-left {
  1587. /* flex: 2; */
  1588. border-right: 1rpx solid #ddd;
  1589. padding: 0 8rpx 0 20rpx;
  1590. width: 370rpx;
  1591. }
  1592. .time-select-right {
  1593. flex: 1;
  1594. /* padding: 0 8rpx; */
  1595. height: 900rpx;
  1596. overflow-y: hidden;
  1597. }
  1598. .time-select-left-item {
  1599. height: 108rpx;
  1600. display: flex;
  1601. flex-direction: column;
  1602. padding: 4rpx 0;
  1603. }
  1604. .date-line-wrapper {
  1605. flex: 1;
  1606. display: flex;
  1607. /* justify-content: space-between; */
  1608. align-items: center;
  1609. }
  1610. .time-select-left-item .date-msg {
  1611. height: 36rpx;
  1612. line-height: 36rpx;
  1613. color: #888;
  1614. font-size: 24rpx;
  1615. }
  1616. .time-select-left-item .date-msg.avail-date {
  1617. color: #3fa10d;
  1618. font-weight: bold;
  1619. }
  1620. .popup-wrapper .popup-content .current-date {
  1621. color: #09afff;
  1622. font-weight: bold;
  1623. }
  1624. view.popup-wrapper .time-select-right-item {
  1625. height: 104rpx;
  1626. border-bottom: 1rpx solid #ddd;
  1627. display: flex;
  1628. align-items: flex-start;
  1629. flex-direction: column;
  1630. justify-content: center;
  1631. padding: 0 24rpx;
  1632. }
  1633. .time-select-right-item view {
  1634. color: #6d7278;
  1635. /* font-weight: bold; */
  1636. }
  1637. view.popup-btn-wrapper {
  1638. margin: 20rpx 0 0;
  1639. padding: 0 24rpx 20rpx;
  1640. }
  1641. view.popup-btn-wrapper button > view {
  1642. color: #fff;
  1643. }
  1644. view.popup-wrapper .date-tag {
  1645. color: #09afff;
  1646. height: 44rpx;
  1647. line-height: 42rpx;
  1648. width: 76rpx;
  1649. border: 2rpx solid #09afff;
  1650. border-radius: 44rpx;
  1651. text-align: center;
  1652. font-weight: normal;
  1653. font-size: 22rpx;
  1654. display: inline-block;
  1655. margin-left: 8rpx;
  1656. }
  1657. view.popup-wrapper .full-time {
  1658. color: #09afff;
  1659. font-size: 24rpx;
  1660. margin: 0 0 0 20rpx;
  1661. height: 44rpx;
  1662. line-height: 44rpx;
  1663. float: right;
  1664. padding-right: 40rpx;
  1665. }
  1666. .first-appoint-date-item {
  1667. height: 108rpx;
  1668. display: flex;
  1669. align-items: center;
  1670. padding: 0 0 0 240rpx;
  1671. }
  1672. .first-time-selected {
  1673. margin: 0 0 0 60rpx;
  1674. }
  1675. .select-week-times {
  1676. border-top: 1rpx solid #ddd;
  1677. }
  1678. .week-select-left {
  1679. flex: 1.2;
  1680. }
  1681. .week-select-left > view.time-select-left-item {
  1682. padding: 0 0 0 60rpx;
  1683. display: flex;
  1684. align-items: flex-start;
  1685. justify-content: flex-start;
  1686. flex-direction: row;
  1687. padding: 10rpx 0 0 60rpx;
  1688. }
  1689. .week-select-left > view.time-select-left-item .week-str {
  1690. padding: 12rpx 0 0 0;
  1691. }
  1692. view.popup-wrapper view.select-num-tag {
  1693. width: 32rpx;
  1694. height: 32rpx;
  1695. line-height: 32rpx;
  1696. background: #09afff;
  1697. border-radius: 34rpx;
  1698. font-size: 20rpx;
  1699. color: #fff;
  1700. text-align: center;
  1701. margin: 0 0 0 6rpx;
  1702. }
  1703. .popup-content-special {
  1704. position: relative;
  1705. }
  1706. .popup-title-special {
  1707. position: absolute;
  1708. left: 0;
  1709. top: 0;
  1710. right: 0;
  1711. background: #fff;
  1712. }
  1713. .popup-content-special {
  1714. height: 900rpx;
  1715. /* margin-top: 96rpx; */
  1716. margin-top: 116rpx;
  1717. }
  1718. .popup-content-special .time-select-left {
  1719. height: 900rpx;
  1720. overflow-y: scroll;
  1721. }
  1722. .stock-text {
  1723. font-size: 20rpx;
  1724. font-weight: normal;
  1725. color: #888;
  1726. }
  1727. .zero-stock {
  1728. color: #ccc;
  1729. }
  1730. .appoint-overlay-wrapper {
  1731. position: fixed;
  1732. top: 0;
  1733. left: 0;
  1734. width: 100%;
  1735. height: 100%;
  1736. background-color: rgba(0, 0, 0, 0.7);
  1737. z-index: 999;
  1738. }
  1739. /* 选择时间 */
  1740. view.popup-wrapper {
  1741. /* padding: 0 0 20rpx; */
  1742. color: #333;
  1743. display: flex;
  1744. flex-direction: column;
  1745. justify-content: space-between;
  1746. /* height: 80%; */
  1747. position: fixed;
  1748. left: 0;
  1749. right: 0;
  1750. bottom: 0;
  1751. background: #fff;
  1752. padding-bottom: constant(safe-area-inset-bottom);
  1753. padding-bottom: env(safe-area-inset-bottom);
  1754. z-index: 9999;
  1755. border-radius: 36rpx 36rpx 0rpx 0rpx;
  1756. overflow: hidden;
  1757. }
  1758. view.popup-wrapper view.confirm-btn {
  1759. background: #09afff;
  1760. height: 88rpx;
  1761. line-height: 88rpx;
  1762. border-radius: 88rpx;
  1763. text-align: center;
  1764. color: #fff;
  1765. }
  1766. .go-pay-wrapper {
  1767. padding-bottom: constant(safe-area-inset-bottom);
  1768. padding-bottom: env(safe-area-inset-bottom);
  1769. }
  1770. .go-pay-wrapper view {
  1771. background: #09afff;
  1772. height: 88rpx;
  1773. line-height: 88rpx;
  1774. border-radius: 88rpx;
  1775. text-align: center;
  1776. color: #fff;
  1777. }
  1778. .appoint-tabs-wrapper {
  1779. height: 88rpx;
  1780. display: flex;
  1781. align-items: center;
  1782. line-height: 88rpx;
  1783. justify-content: space-around;
  1784. background: #fff;
  1785. }
  1786. .appoint-tab-item {
  1787. /* width:80rpx; */
  1788. }
  1789. .appoint-tab-item.active {
  1790. color: #09afff;
  1791. border-bottom: 4rpx solid #09afff;
  1792. }
  1793. .order-info {
  1794. background: #ffffff;
  1795. border-radius: 24rpx;
  1796. padding: 20rpx 24rpx;
  1797. }
  1798. .order-info .order-top {
  1799. display: flex;
  1800. align-items: center;
  1801. height: 36rpx;
  1802. margin-bottom: 6rpx;
  1803. }
  1804. .order-top view {
  1805. font-size: 26rpx;
  1806. color: #333;
  1807. }
  1808. .order-top view.topic {
  1809. color: #666;
  1810. margin-right: 16rpx;
  1811. }
  1812. .order-top .copy-img {
  1813. width: 24rpx;
  1814. height: 24rpx;
  1815. margin-left: 20rpx;
  1816. }
  1817. .order-bottom {
  1818. border-top: 2rpx solid #e0e0e0;
  1819. margin-top: 14rpx;
  1820. padding-top: 16rpx;
  1821. }
  1822. .order-price,
  1823. .coupon-price {
  1824. display: flex;
  1825. align-items: center;
  1826. height: 36rpx;
  1827. margin-bottom: 6rpx;
  1828. justify-content: space-between;
  1829. }
  1830. .order-price view,
  1831. .coupon-price view {
  1832. font-size: 26rpx;
  1833. color: rgba(0, 0, 0, 0.9);
  1834. font-weight: bold;
  1835. }
  1836. .order-price view.topic,
  1837. .coupon-price view.topic {
  1838. color: #666;
  1839. margin-right: 16rpx;
  1840. font-weight: normal;
  1841. }
  1842. .order-bottom .real-price {
  1843. display: flex;
  1844. align-items: center;
  1845. height: 36rpx;
  1846. justify-content: flex-end;
  1847. font-size: 26rpx;
  1848. font-weight: bold;
  1849. }
  1850. .order-bottom .real-price text {
  1851. color: #ff004e;
  1852. font-size: 26rpx;
  1853. }
  1854. /* 顶部地址 */
  1855. .address-select {
  1856. padding: 44rpx 24rpx 36rpx 26rpx;
  1857. background: #ffffff;
  1858. border-radius: 14rpx;
  1859. display: flex;
  1860. align-items: center;
  1861. min-height: 132rpx;
  1862. width:690rpx;
  1863. margin:0 30rpx;
  1864. }
  1865. .address-select .map-img {
  1866. width: 48rpx;
  1867. height: 48rpx;
  1868. margin-right: 24rpx;
  1869. }
  1870. .address-main {
  1871. display: flex;
  1872. flex-direction: column;
  1873. flex: 1;
  1874. }
  1875. .address-main .main-line {
  1876. display: flex;
  1877. height: 36rpx;
  1878. line-height: 36rpx;
  1879. margin-top: 16rpx;
  1880. align-items: center;
  1881. font-size: 26rpx;
  1882. }
  1883. .main-line view {
  1884. color: #333333;
  1885. font-size: 32rpx;
  1886. }
  1887. .main-line view.phone {
  1888. /* color: #999999; */
  1889. /* font-size: 24rpx; */
  1890. margin-left: 20rpx;
  1891. }
  1892. .customer-address {
  1893. color: #191919;
  1894. line-height: 40rpx;
  1895. display: flex;
  1896. align-items: center;
  1897. }
  1898. .customer-address .map-img{
  1899. width:28rpx;
  1900. height:34rpx;
  1901. margin-right:24rpx;
  1902. }
  1903. .address-select .arrow-img {
  1904. width: 24rpx;
  1905. height: 24rpx;
  1906. margin-left: 20rpx;
  1907. }
  1908. /* 地址选择 */
  1909. .appoint-overlay-wrapper.address-overlay {
  1910. display: flex;
  1911. align-items: flex-end;
  1912. }
  1913. .address-popup {
  1914. width: 750rpx;
  1915. padding: 0 24rpx 0rpx;
  1916. background: #ffffff;
  1917. border-radius: 56rpx 56rpx 0 0;
  1918. }
  1919. .address-popup .title {
  1920. font-weight: 600;
  1921. color: #191919;
  1922. font-size: 28rpx;
  1923. height: 122rpx;
  1924. line-height: 122rpx;
  1925. text-align: center;
  1926. }
  1927. .address-list {
  1928. height: 720rpx;
  1929. overflow-y: scroll;
  1930. padding-bottom: 20rpx;
  1931. }
  1932. .address-popup .add-address-btn {
  1933. width: 654rpx;
  1934. margin: 40rpx 24rpx 40rpx;
  1935. height: 90rpx;
  1936. background: linear-gradient(90deg, #00baff 0%, #008dff 100%);
  1937. border-radius: 45rpx;
  1938. font-size: 36rpx;
  1939. text-align: center;
  1940. color: rgba(255, 255, 255, 0.9);
  1941. line-height: 90rpx;
  1942. }
  1943. .address-item {
  1944. width: 690rpx;
  1945. display: flex;
  1946. align-items: center;
  1947. min-height: 132rpx;
  1948. border-radius: 24rpx;
  1949. border: 2rpx solid #e3e3e3;
  1950. margin-bottom: 30rpx;
  1951. }
  1952. .address-item .arrow-img {
  1953. width: 28rpx;
  1954. height: 28rpx;
  1955. margin-left: 20rpx;
  1956. }
  1957. .address-item .map-img {
  1958. width: 48rpx;
  1959. height: 48rpx;
  1960. margin-right: 24rpx;
  1961. }
  1962. /* 选择备注 */
  1963. .appoint-overlay-wrapper.remark-overlay {
  1964. display: flex;
  1965. align-items: flex-end;
  1966. justify-content: center;
  1967. }
  1968. .remark-select {
  1969. width: 750rpx;
  1970. padding: 0 24rpx 56rpx;
  1971. background: #ffffff;
  1972. border-radius: 24rpx 24rpx 0 0;
  1973. }
  1974. .remark-select .title {
  1975. font-weight: 600;
  1976. color: #191919;
  1977. font-size: 30rpx;
  1978. height: 90rpx;
  1979. line-height: 90rpx;
  1980. text-align: center;
  1981. border-bottom: 2rpx solid #e0e0e0;
  1982. }
  1983. .remark-item .remark-value {
  1984. color: #191919;
  1985. font-size: 26rpx;
  1986. font-weight: bold;
  1987. flex: 1;
  1988. text-align: left;
  1989. }
  1990. .remark-list .remark-item {
  1991. height: 84rpx;
  1992. display: flex;
  1993. border-bottom: 2rpx solid #e0e0e0;
  1994. align-items: center;
  1995. }
  1996. .remark-item .radio-img {
  1997. width: 26rpx;
  1998. height: 26rpx;
  1999. }
  2000. .remark-conf-btn {
  2001. width: 652rpx;
  2002. height: 90rpx;
  2003. line-height: 90rpx;
  2004. border-radius: 90rpx;
  2005. border: 4rpx solid #ff8219;
  2006. text-align: center;
  2007. font-size: 36rpx;
  2008. color: #ff8219;
  2009. margin: 0 auto;
  2010. margin-top: 54rpx;
  2011. }
  2012. /* 地址输入 */
  2013. .add-address .add-form {
  2014. background: #fff;
  2015. width: 690rpx;
  2016. border-radius: 25rpx;
  2017. padding: 4rpx 24rpx 24rpx;
  2018. margin:0 30rpx;
  2019. }
  2020. .add-address .form-item {
  2021. height: 78rpx;
  2022. display: flex;
  2023. align-items: center;
  2024. }
  2025. .add-address .input {
  2026. flex: 1;
  2027. /* height: 78rpx; */
  2028. /* overflow: hidden; */
  2029. font-size: 26rpx;
  2030. color: #333;
  2031. padding-top: 24rpx;
  2032. }
  2033. .add-address .label {
  2034. font-size: 26rpx;
  2035. font-weight: bold;
  2036. width: 160rpx;
  2037. text-align: left;
  2038. color: rgba(0, 0, 0, 0.9);
  2039. }
  2040. .add-address .label text {
  2041. color: #ff0000;
  2042. }
  2043. .add-address .content {
  2044. border-bottom: 2rpx solid #e0e0e0;
  2045. /* height: 88rpx; */
  2046. align-content: center;
  2047. flex: 1;
  2048. display: flex;
  2049. align-items: center;
  2050. padding-bottom: 8rpx;
  2051. height: 78rpx;
  2052. }
  2053. .gender-wrapper image {
  2054. width: 26rpx;
  2055. height: 26rpx;
  2056. margin-right: 10rpx;
  2057. }
  2058. .gender-wrapper {
  2059. display: flex;
  2060. /* align-items: center;
  2061. */
  2062. height: 78rpx;
  2063. justify-content: space-between;
  2064. width: 220rpx;
  2065. }
  2066. .male,
  2067. .female {
  2068. display: flex;
  2069. align-items: center;
  2070. height: 78rpx;
  2071. padding-top: 24rpx;
  2072. }
  2073. .male text,
  2074. .female text {
  2075. color: #acadb1;
  2076. font-size: 24rpx;
  2077. }
  2078. .noon-select {
  2079. height: 64rpx;
  2080. display: flex;
  2081. border-bottom: 1rpx solid #ddd;
  2082. }
  2083. .time-select-right .noon-item {
  2084. flex: 1;
  2085. text-align: center;
  2086. line-height: 64rpx;
  2087. color: #979797;
  2088. font-size: 26rpx;
  2089. }
  2090. .time-select-right view.noon-item.active-noon {
  2091. color: #fff;
  2092. background: #09afff;
  2093. }
  2094. view.popup-wrapper .time-select-right-item .date-tag {
  2095. width: 80rpx;
  2096. height: 40rpx;
  2097. line-height: 38rpx;
  2098. margin-left: 0;
  2099. /* margin-left:120rpx; */
  2100. }
  2101. .popup-title-new.popup-title {
  2102. display: flex;
  2103. flex-direction: column;
  2104. justify-content: center;
  2105. align-items: center;
  2106. height: 116rpx;
  2107. line-height: normal;
  2108. }
  2109. .popup-title-new view {
  2110. color: #333;
  2111. font-size: 32rpx;
  2112. }
  2113. .popup-title-new view.fee-tips {
  2114. color: #ff5735;
  2115. font-size: 22rpx;
  2116. }
  2117. .time-select-right-item text {
  2118. color: #888;
  2119. }
  2120. .time-select-right .time-item-wrapper {
  2121. height: 836rpx;
  2122. overflow-y: scroll;
  2123. }
  2124. .time-line {
  2125. display: flex;
  2126. align-items: center;
  2127. justify-content: space-between;
  2128. width: 100%;
  2129. }
  2130. view.popup-wrapper .time-select-right-item.invalid-time text {
  2131. color: #999;
  2132. }
  2133. view.popup-wrapper .time-select-right-item.invalid-time {
  2134. /* background: #E1E1E1; */
  2135. background: #eee;
  2136. }
  2137. .time-select-right-item view.time-msg {
  2138. height: 40rpx;
  2139. line-height: 38rpx;
  2140. border-radius: 40rpx;
  2141. padding: 0 8rpx;
  2142. font-size: 22rpx;
  2143. border: 2rpx solid #999;
  2144. color: #999;
  2145. font-weight: normal;
  2146. white-space: nowrap;
  2147. }
  2148. .time-select-right-item text.extra-tips {
  2149. color: #ff5735;
  2150. font-size: 22rpx;
  2151. }
  2152. .step-block{
  2153. display: flex;
  2154. align-items: center;
  2155. height: 172rpx;
  2156. }
  2157. .step-block .step-img{
  2158. width:124rpx;
  2159. height:124rpx;
  2160. }
  2161. .step-right{
  2162. padding-top:20rpx;
  2163. }
  2164. .step-title{
  2165. height: 46rpx;
  2166. font-size: 32rpx;
  2167. margin-bottom:10rpx;
  2168. font-weight: 600;
  2169. color: #191919;
  2170. line-height: 46rpx;
  2171. }
  2172. .step-tips{
  2173. height: 38rpx;
  2174. font-size: 26rpx;
  2175. font-weight: 400;
  2176. color: #ACADB1;
  2177. line-height: 38rpx;
  2178. }
  2179. </style>