reservationPlaceOrder.vue 16 KB

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