reservationPlaceOrder.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537
  1. <!-- 预约下单 -->
  2. <template>
  3. <view class="body" :style="'padding-top:'+bottomHeight">
  4. <view class="bg-box">
  5. <!-- 导航 -->
  6. <view class="ss-flex-2 ss-col-center ss-margin-width2" style="position: relative;">
  7. <view class="ss-flex-2 ss-col-center">
  8. <text class="textIcon icon-fanhui icon-navigation" @click="backPage"></text>
  9. <view style="margin-left: 15rpx;color:#fff;font-size:28rpx;">预约下单</view>
  10. </view>
  11. <view class="ss-flex-1"></view>
  12. <text class="textIcon icon-kefu icon-navigation"></text>
  13. <text class="textIcon icon-tongzhiguanli icon-navigation" style="margin-left: 30rpx;"></text>
  14. </view>
  15. <!-- 选择地址框 -->
  16. <view class="public-box top-box-info ss-flex-2 ss-col-center" style="padding:20rpx 10rpx;" @click="jumpNewAddress">
  17. <text class="textIcon icon-ditu" style="font-size: 30rpx;color: #35AEC9;"></text>
  18. <view class="ss-flex-2" style="flex-wrap:wrap;margin-left:20rpx;">
  19. <view class="add-title">选择您的地址与联系方式</view>
  20. <view class="add-message">技师将到达指定地址服务,清晰地址有助于更快到达</view>
  21. </view>
  22. <view class="ss-flex=1"></view>
  23. <text class="textIcon icon-gengduo" style="font-size: 32rpx;color: #333;font-weight: 750;"></text>
  24. </view>
  25. <!-- 安心购 -->
  26. <view class="public-box top-box-info ss-flex-2 ss-col-center">
  27. <text class="textIcon icon-anquan" style="font-size: 28rpx;color: #36AFCA;"></text>
  28. <view style="font-size:24rpx;color:#4FBAD0;margin-left:5rpx;">安心购</view>
  29. <view class="vertical-line"></view>
  30. <view style="font-size:22rpx;color:#4FBAD0;margin-left:5rpx;">
  31. 未服务全额退.爽约包退.不满意重服务.全程保障
  32. </view>
  33. </view>
  34. </view>
  35. <!-- 中部 -->
  36. <view class="list-wrap" style="margin-top:-20rpx">
  37. <scroll-view scroll-y="true" class="list">
  38. <!-- 服务项目信息 -->
  39. <view class="service-box">
  40. <!-- 左右布局 -->
  41. <view class="ss-flex-2" v-for="i in 3" style="margin-bottom: 10rpx;">
  42. <view style="width:180rpx;">
  43. <image class="wh" referrerpolicy="no-referrer"
  44. src="/static/lanhu_shouye/pskrims113novhztuh3djro4dewm6siic9cbfccd-f457-4e94-a2a5-bf7808d1dd3f.png" />
  45. </view>
  46. <view class="ss-flex-1" style="margin-left: 10rpx;margin-top: 5rpx;">
  47. <!-- 服务大项 -->
  48. <view class="ss-flex-2 ss-col-center">
  49. <view>精油按摩</view>
  50. <view class="ss-flex-2 ss-col-center ss-row-center" style="margin-left: 10rpx;">
  51. <text class="textIcon icon-chenghao"
  52. style="font-size: 30rpx;color:#C3C4C4;padding-top: 10rpx;"></text>
  53. <view style="font-size: 28rpx;color:#C3C4C4;padding-top: 4rpx;">2</view>
  54. </view>
  55. <view class="ss-flex-1"></view>
  56. <view class="ss-flex-2 ss-col-center ss-row-center">
  57. <text class="textIcon icon-fenzhong" style="font-size: 22rpx;color:#3A4450;"></text>
  58. <view style="font-size: 20rpx;color:#3A4450;margin-left: 10rpx;padding-top: 5rpx;">
  59. 80分钟</view>
  60. </view>
  61. </view>
  62. <!-- 服务小项 -->
  63. <view class="ss-flex-2 event-wrap" style="margin-top: 5rpx;flex-wrap: wrap;">
  64. <view class="ss-flex-2" v-for="i in 4">
  65. <view class="event-box">舒缓疲劳{{i}}</view>
  66. <view class="line-box"></view>
  67. </view>
  68. </view>
  69. <!-- 价格以及预约 -->
  70. <view class="ss-flex-2 ss-col-center" style="margin-top: 10rpx;">
  71. <view class="ss-flex-2 ss-col-center ss-row-center">
  72. <text class="textIcon icon-renminbi1688 icon-rmb"></text>
  73. <view class="maney-number-box">498.00</view>
  74. </view>
  75. <view class="ss-flex-1"></view>
  76. </view>
  77. </view>
  78. </view>
  79. <view style="width: 100%;height:20rpx;"></view>
  80. <view class="ss-flex-2 ss-col-center">
  81. <view style="font-size: 27rpx;color:#44484B;font-weight: 600;">服务时间</view>
  82. <view class="ss-flex-1"></view>
  83. <view style="font-size: 22rpx;color:#5AB8D1;">2024-07-02 15:14:41</view>
  84. <text class="textIcon icon-gengduo" @click="jumpServiceTime"
  85. style="font-size: 30rpx;color:#44484B;font-weight: 650;margin-left: 20rpx;"></text>
  86. </view>
  87. <view class="ss-flex-2 ss-col-center" style="margin-top:20rpx;">
  88. <view style="font-size: 27rpx;color:#44484B;font-weight: 600;">服务人数</view>
  89. <view class="ss-flex-1"></view>
  90. <view style="width: 100rpx;margin-right: 50rpx;">
  91. <uni-data-select
  92. class="wh"
  93. v-model="perpeoNumber"
  94. :localdata="range"
  95. :clear="false"
  96. ></uni-data-select>
  97. </view>
  98. </view>
  99. </view>
  100. <!-- 会员卡 -->
  101. <view class="public-box member-box" style="margin-top: 20rpx;">
  102. <view class="ss-flex-2">
  103. <view class="ss-flex-2 ss-col-center member-item-box">
  104. <text class="textIcon icon-huiyuan"
  105. style="font-size: 30rpx;color: #EF8338;font-weight: 650;"></text>
  106. <view style="color: #EF8338;font-size: 24rpx;font-weight: 650;">会员卡套餐</view>
  107. </view>
  108. <view class="ss-flex-1"></view>
  109. <view class="check-info-box">勾选开通</view>
  110. </view>
  111. <view class="ss-flex-2 ss-col-center" style="margin-left: 50rpx;">
  112. <text style="font-size: 22rpx;color: #555;font-weight: 650;">开通月卡会员本单可立省</text>
  113. <text class="textIcon icon-renminbi1688"
  114. style="font-size: 24rpx;color: #E40214;font-weight: 650;"></text>
  115. <text style="font-size: 22rpx;color: #E40214;font-weight: 650;">11.95</text>
  116. <view class="ss-flex-1"></view>
  117. <text class="textIcon icon-renminbi1688"
  118. style="font-size: 33rpx;color: #E50315;font-weight: 650;"></text>
  119. <text style="font-size: 32rpx;color: #E50315;font-weight: 650;">38</text>
  120. <view style="margin-left: 10rpx;">
  121. <text class="textIcon icon-renminbi1688"
  122. style="font-size: 24rpx;color: #919190;font-weight: 650;text-decoration: line-through;"></text>
  123. <text
  124. style="font-size: 22rpx;color: #919190;font-weight: 650;text-decoration: line-through;">40</text>
  125. </view>
  126. <uni-data-checkbox style="margin-left: 40rpx;" selectedColor="#F4AB78" multiple
  127. v-model="checkbox" :localdata="hobby"></uni-data-checkbox>
  128. </view>
  129. <view style="margin-left: 50rpx;" class="ss-flex-2 ss-col-center">
  130. <text style="font-size: 19rpx;color:#F19250;">开通嘀咚到位会员卡&nbsp;享受多重会员权益</text>
  131. <text class="textIcon icon-kongxinwenhao"
  132. style="font-size: 22rpx;color: #F19250;font-weight: 650;margin-left: 10rpx;;"></text>
  133. <view class="ss-flex-1"></view>
  134. </view>
  135. <view class="ss-flex-2 ss-row-center">
  136. <view class="ss-flex-2 ss-col-center more-member-box">
  137. <text style="font-size: 18rpx;color: #F29758;">更多会员套餐</text>
  138. <text class="textIcon icon-xiangxiashuangjiantou"
  139. style="font-size: 20rpx;color: #F19250;font-weight: 650;margin-left: 10rpx;;"></text>
  140. </view>
  141. </view>
  142. </view>
  143. <!-- 价钱明细以及优惠卷 -->
  144. <view class="price-box public-box">
  145. <view style="font-size: 30rpx;color: #414851;font-weight: 550;">价格明细</view>
  146. <view class="ss-flex-2 ss-row-center" style="margin-top: 10rpx;">
  147. <view style="font-size: 27rpx;color: #555;">套餐总价</view>
  148. <view class="ss-flex-1"></view>
  149. <view class="ss-flex-2 ss-row-center" style="margin-right: 50rpx;">
  150. <text class="textIcon icon-renminbi1688" style="font-size: 30rpx;color: #555;font-weight: 650;"></text>
  151. <text style="font-size: 28rpx;color: #555;">398.00</text>
  152. </view>
  153. </view>
  154. <!-- <view class="ss-flex-2 ss-row-center" style="margin-top: 10rpx;">
  155. <view style="font-size: 27rpx;color: #555;">出行路费</view>
  156. <view class="ss-flex-1"></view>
  157. <view class="ss-flex-2 ss-row-center" style="margin-right: 50rpx;">
  158. <text class="textIcon icon-renminbi1688" style="font-size: 30rpx;color: #555;font-weight: 650;"></text>
  159. <text style="font-size: 28rpx;color: #555;">98.00</text>
  160. </view>
  161. </view> -->
  162. <view class="ss-flex-2 ss-row-center" style="margin-top: 10rpx;">
  163. <view style="font-size: 27rpx;color: #555;">通用优惠卷</view>
  164. <text class="textIcon icon-youhuijuan" style="font-size: 35rpx;font-weight: 650;color:#FF3938;margin-left:5rpx;"></text>
  165. <view class="ss-flex-1"></view>
  166. <view class="ss-flex-2 ss-row-center">
  167. <text class="textIcon icon-renminbi1688" style="font-size: 30rpx;color: #E92C3A;font-weight: 650;"></text>
  168. <text style="font-size: 28rpx;color: #E92C3A;">-10.00</text>
  169. </view>
  170. <text class="textIcon icon-gengduo" style="font-size: 32rpx;color: #555;font-weight: 650;width:50rpx;text-align:right;margin-top:3rpx;"></text>
  171. </view>
  172. <view class="ss-flex-2 ss-row-center ss-row-left" style="margin-top: 30rpx;">
  173. <text class="textIcon icon-weibiaoti-" style="font-size: 33rpx;color: #E92C3A;"></text>
  174. <text style="font-size: 24rpx;color: #E92C3A;">已为您选择最佳优惠</text>
  175. </view>
  176. <view style="width: 100%;height: 2rpx;background-color: #D6D6D9;margin-top: 10rpx;"></view>
  177. <view class="ss-flex-2 ss-row-center ss-row-right" style="padding:10rpx;margin-top: 20rpx;">
  178. <view class="ss-flex-2 ss-col-center">
  179. <text style="font-size: 32rpx;color: #333;font-weight: 650;">已优惠</text>
  180. <text class="textIcon icon-renminbi1688" style="font-size: 30rpx;color: #E92C3A;font-weight: 650;"></text>
  181. <text style="font-size: 32rpx;color: #E92C3A;">10.00</text>
  182. </view>
  183. <view class="ss-flex-2 ss-col-center" style="margin-left: 40rpx;">
  184. <text style="font-size: 32rpx;color: #333;font-weight: 650;">需支付</text>
  185. <text class="textIcon icon-renminbi1688" style="font-size: 30rpx;color: #333;font-weight: 650;"></text>
  186. <text style="font-size: 32rpx;color: #333;">416.00</text>
  187. </view>
  188. </view>
  189. </view>
  190. <!-- 备注 -->
  191. <view class="public-box price-box" style="box-sizing: border-box;">
  192. <textarea class="text-area-box-info" maxlength="300" auto-height disabled placeholder="请提前告知特殊情况(选填)"/>
  193. <!-- 自己定的一些常用语 -->
  194. <view class="ss-flex-2 ss-row-center ss-row-left" style="flex-wrap: wrap;">
  195. <view class="expressions-box" v-for="i in 7">
  196. 肌肉拉伤233
  197. </view>
  198. </view>
  199. </view>
  200. <!-- 号码保护 -->
  201. <view class="ss-flex-2 ss-row-center ss-col-center public-box price-box" style="margin-top: 20rpx;">
  202. <view>
  203. <view class="ss-flex-2 ss-row-center ss-col-center ss-row-left">
  204. <text class="textIcon icon-yuyinyinsixiaohao" style="font-size: 30rpx;color: #36AFCA;font-weight: 650;"></text>
  205. <text style="font-size: 28rpx;color: #333;font-weight: 650;margin-left: 5rpx;">号码保护</text>
  206. </view>
  207. <view style="font-size: 20rpx;color: #A8A8A8;margin-top: 10rpx;">
  208. 隐藏手机号,保护隐私,通话录音,保驾护航
  209. </view>
  210. </view>
  211. <view class="ss-flex-1"></view>
  212. <text class="textIcon icon-gengduo" style="font-size: 30rpx;color: #333;font-weight: 650;"></text>
  213. </view>
  214. <view style="width:100%;height:20rpx;"></view>
  215. </scroll-view>
  216. </view>
  217. <!-- 底部结算 -->
  218. <view class="bottom-info-box ss-flex-2 ss-row-center ss-col-center">
  219. <view style="color:#fff;margin-left:30rpx;">
  220. <view class="ss-flex-2 ss-col-center">
  221. <text>合计:</text>
  222. <text class="textIcon icon-renminbi1688" style="font-size: 34rpx;color: #fff;font-weight: 650;"></text>
  223. <text style="color:#fff;font-weight:650;">465.25</text>
  224. </view>
  225. <view class="ss-flex-2 ss-col-center" style="font-size:24rpx;margin-top:15rpx;">
  226. <text>已优惠:</text>
  227. <text class="textIcon icon-renminbi1688" style="font-size: 24rpx;color: #fff;font-weight: 650;"></text>
  228. <text style="color:#fff;">10.00</text>
  229. </view>
  230. </view>
  231. <view class="ss-flex-1"></view>
  232. <view class="settlement-box" @click="jumpGrabOrder">下单等待技师抢单</view>
  233. </view>
  234. </view>
  235. </template>
  236. <script setup>
  237. import {
  238. reactive,
  239. ref
  240. } from 'vue';
  241. import {
  242. computed
  243. } from 'vue';
  244. import {
  245. onLoad,
  246. onPageScroll,
  247. onPullDownRefresh,
  248. onReady,
  249. onReachBottom,
  250. onShow
  251. } from '@dcloudio/uni-app';
  252. import sheep from '@/sheep';
  253. import $share from '@/sheep/platform/share';
  254. // 隐藏原生tabBar
  255. // uni.hideTabBar();
  256. // 返回上一页
  257. const backPage = async () => {
  258. uni.redirectTo({
  259. url: '/pages/XDHome/technician/itemList/itemList'
  260. });
  261. }
  262. // 跳转到服务时间页面进行选择时间
  263. const jumpServiceTime=async()=>{
  264. uni.navigateTo({
  265. url: '/pages/XDHome/technician/serviceTimePage/serviceTimePage?item='
  266. });
  267. }
  268. // 勾选开通会员
  269. const checkbox = ref([0])
  270. const hobby = ref([{
  271. text: "",
  272. value: 0
  273. }])
  274. // 跳转到抢单等待
  275. const jumpGrabOrder=async()=>{
  276. uni.navigateTo({
  277. url: '/pages/XDHome/technician/grabOrders/grabOrders?item='
  278. });
  279. }
  280. // 服务人数
  281. const perpeoNumber=ref(0)
  282. const range=ref([
  283. { value: 0, text: "1" },
  284. { value: 1, text: "2" },
  285. { value: 2, text: "3" },
  286. { value: 3, text: "4" },
  287. { value: 4, text: "5" },
  288. ])
  289. // 跳转到新增地址
  290. const jumpNewAddress=async()=>{
  291. uni.navigateTo({
  292. url: '/pages/XDHome/technician/newAddress/newAddress'
  293. });
  294. }
  295. //获取顶部安全距离
  296. const app = uni.getSystemInfoSync()
  297. const bottomHeightOne = (app.statusBarHeight) + 'rpx'
  298. const bottomHeight = ref(bottomHeightOne)
  299. onLoad((option) => {
  300. console.log(option.item, '获取的项目信息数据')
  301. })
  302. </script>
  303. <style scoped>
  304. /deep/ .uni-data-checklist .checklist-group .checklist-box .checkbox__inner {
  305. border-radius: 16rpx !important;
  306. border: 2rpx solid #F49F64 !important;
  307. }
  308. /deep/.uni-select{
  309. height: 40rpx !important;
  310. font-size: 24rpx !important;
  311. }
  312. </style>
  313. <style scoped lang="scss">
  314. .settlement-box{
  315. font-size:26rpx;
  316. padding:15rpx;
  317. padding-left:50rpx;
  318. padding-right:50rpx;
  319. margin-right:30rpx;
  320. background-color:#fff;
  321. color:#35AEC9;
  322. font-weight: 650;
  323. border-radius: 10rpx;
  324. }
  325. .bottom-info-box{
  326. width: 100%;
  327. height: 120rpx;
  328. background-color: #2EAFCF;
  329. }
  330. .expressions-box{
  331. font-size: 22rpx;
  332. color: #8E8E8E;
  333. background-color: #EEEEF0;
  334. border-radius: 10rpx;
  335. margin-top: 10rpx;
  336. margin-right: 10rpx;
  337. padding: 5rpx 20rpx;
  338. }
  339. .text-area-box-info{
  340. background-color: #EEEEF0;
  341. font-size: 22rpx;
  342. width:100%;
  343. min-height: 140rpx;
  344. border-radius: 10rpx;
  345. padding:10rpx;
  346. box-sizing: border-box;
  347. }
  348. .price-box{
  349. background-color: #fff;
  350. border-radius: 20rpx;
  351. box-shadow: 5rpx 5rpx 5rpx rgba(0, 0, 0, .2);
  352. margin-top: 20rpx;
  353. box-sizing: border-box;
  354. padding: 15rpx;
  355. }
  356. .check-info-box {
  357. font-size: 20rpx;
  358. color: #F2A066;
  359. border: 2rpx solid #F2A066;
  360. border-radius: 15rpx;
  361. margin-right: 70rpx;
  362. height: 35rpx;
  363. padding: 3rpx;
  364. padding-left: 10rpx;
  365. padding-right: 10rpx;
  366. ;
  367. box-sizing: border-box;
  368. margin-top: 10rpx;
  369. }
  370. .more-member-box {
  371. margin-top: 20rpx;
  372. padding: 5rpx 40rpx;
  373. box-sizing: border-box;
  374. background-color: #FBD9C0;
  375. border-top-right-radius: 30rpx;
  376. border-top-left-radius: 30rpx;
  377. }
  378. .member-item-box {
  379. background-color: #FBD9C0;
  380. padding: 10rpx 30rpx;
  381. box-sizing: border-box;
  382. border-top-left-radius: 20rpx;
  383. border-bottom-right-radius: 40rpx;
  384. }
  385. .member-box {
  386. background-color: #FFF8F0;
  387. border-radius: 20rpx;
  388. box-shadow: 5rpx 5rpx 5rpx rgba(0, 0, 0, .2);
  389. box-sizing: border-box;
  390. }
  391. .maney-number-box {
  392. font-size: 30rpx;
  393. color: #E60012;
  394. margin-left: 5rpx;
  395. padding-top: 5rpx;
  396. font-weight: 650;
  397. }
  398. .icon-rmb {
  399. font-size: 30rpx;
  400. color: #E60012;
  401. font-weight: 700;
  402. }
  403. .line-box {
  404. width: 2rpx;
  405. height: 30rpx;
  406. background-color: #D2D3D5;
  407. margin-left: 10rpx;
  408. margin-right: 10rpx;
  409. }
  410. .event-box {
  411. font-size: 22rpx;
  412. color: #909295;
  413. height: 30rpx;
  414. line-height: 30rpx;
  415. box-sizing: border-box;
  416. }
  417. .event-wrap {
  418. width: 100%;
  419. max-height: 60rpx;
  420. min-height: 60rpx;
  421. overflow-y: auto;
  422. }
  423. .service-box {
  424. width: 95%;
  425. margin-left: 2.5%;
  426. background-color: #fff;
  427. box-sizing: border-box;
  428. border-radius: 10rpx;
  429. padding: 10rpx;
  430. padding-bottom: 30rpx;
  431. box-shadow: 5rpx 5rpx 5rpx rgba(0, 0, 0, .3);
  432. }
  433. .add-message {
  434. font-size: 18rpx;
  435. color: #A2A2A2;
  436. }
  437. .add-title {
  438. font-size: 23rpx;
  439. color: #3E464F;
  440. font-weight: 650;
  441. ‌letter-spacing: 2px;
  442. }
  443. .top-box-info {
  444. margin-top: 30rpx;
  445. padding: 10rpx 20rpx;
  446. background-color: #fff;
  447. border-radius: 10rpx;
  448. }
  449. .icon-navigation {
  450. font-size: 32rpx;
  451. color: #fff;
  452. font-weight: 700;
  453. }
  454. .bg-box {
  455. width: 100%;
  456. height: 300rpx;
  457. background: url('@/static/top-bg.png') no-repeat;
  458. background-size: 100% 100%;
  459. box-sizing: border-box;
  460. }
  461. // 上中下布局样式
  462. .body {
  463. display: flex;
  464. flex-direction: column;
  465. height: 100vh;
  466. // background: linear-gradient(to bottom, #08A3E9, #F8FCFF);
  467. background-color: #EFEEF1;
  468. }
  469. .head {
  470. text-align: center;
  471. }
  472. // 中部滚动
  473. .list-wrap {
  474. flex-grow: 1;
  475. position: relative;
  476. }
  477. .list {
  478. position: absolute;
  479. top: 0;
  480. left: 0;
  481. right: 0;
  482. bottom: 0;
  483. }
  484. .list-scroll-view {
  485. display: flex;
  486. flex-direction: row;
  487. flex-wrap: wrap;
  488. justify-content: space-between;
  489. margin-left: 2vw;
  490. margin-right: 2vw;
  491. }
  492. .course-card {
  493. width: 47vw;
  494. margin-top: 10px;
  495. margin-bottom: 10px;
  496. }
  497. // 底部
  498. .tools {
  499. display: flex;
  500. flex-direction: row;
  501. justify-content: space-between;
  502. }
  503. .tools-item {
  504. width: 45px;
  505. text-align: center;
  506. font-size: 14px;
  507. padding: 20px;
  508. }
  509. </style>