appointOrder.vue 56 KB

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