homePage.vue 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416
  1. <!-- 首页 -->
  2. <template>
  3. <s-layout class="homepage-wrap ss-w-100 box-sizing" title="首页" navbar="custom"
  4. tabbar="/pages/Technician/homePage/homePage">
  5. <view class="body" :style="'padding-top:' + bottomHeight">
  6. <view class="bg-info-box">
  7. <!-- 导航 -->
  8. <view class="ss-flex-2 ss-col-center ss-margin-width2" style="position: relative">
  9. <text class="textIcon icon-ditutubiao icon-navigation"></text>
  10. <view style="font-size:24rpx;color:#fff;margin-left:5rpx;">烟台市莱山区</view>
  11. <view class="ss-flex-1"></view>
  12. <text class="textIcon icon-kefu2 icon-navigation"></text>
  13. <text class="textIcon icon-shezhi icon-navigation" style="margin-left: 30rpx"></text>
  14. </view>
  15. </view>
  16. <view class="ss-flex-2 ss-col-center"
  17. style="margin-top: 20rpx;width: 95%;margin-left: 2.5%;box-sizing: border-box;">
  18. <view>
  19. <switchInfo :activeText="'开启接单'" :inactiveText="'关闭接单'"></switchInfo>
  20. </view>
  21. <view class="ss-flex-1"></view>
  22. <view class="ss-flex-2 ss-col-center bg-box-info">
  23. <text class="textIcon icon-ditutubiao" style="font-size: 28rpx;color: #DE3A52;"></text>
  24. <view class="address-box">烟台市莱山区华庭路橡树湾小区</view>
  25. <view class="ss-flex-1"></view>
  26. <text class="textIcon icon-jiazai" style="font-size: 30rpx;color: #DE3A52;"></text>
  27. <view style="font-size: 20rpx;color: #CC3043;margin-left:5rpx;">更新定位</view>
  28. </view>
  29. </view>
  30. <view class="ss-flex-2 left-right-box">
  31. <view style="width: 48%;">
  32. <view class="personalInformation">
  33. <view class="ss-flex-2 ss-col-center" style="padding: 10rpx 0rpx;">
  34. <text class="textIcon icon-gerenxinxi" style="font-size: 34rpx;color: #666;margin-right: 10rpx;font-weight: 650;"></text>
  35. <view style="font-size: 22rpx;color: #4B515A;font-weight: 550;">个人信息</view>
  36. <view class="ss-flex-1"></view>
  37. <view style="font-size: 20rpx;color: #838282;">修改</view>
  38. <text class="textIcon icon-gengduo" style="font-size: 32rpx;color: #333;margin-left: 5rpx;font-weight: 650;"></text>
  39. </view>
  40. <view style="width: 100%;height: 440rpx;">
  41. <image class="wh" referrerpolicy="no-referrer"
  42. src="/static/lanhu_shouye/pserz4p1s8x8wkob1c0bat390gscqet6q2w9869d84a-bcd7-4f8a-a669-dda68333c1f2.png" />
  43. </view>
  44. <view class="ss-flex-2 ss-col-center" style="margin-top: 10rpx;">
  45. <view style="font-size:28rpx;color:#595757;font-weight: 600;">王琳王琳</view>
  46. <view style="font-size:21rpx;color:#27AEEB;margin-left: 20rpx;margin-top: 10rpx;min-width: 70rpx;">接单中</view>
  47. <text class="textIcon icon-duihao2" style="font-size: 24rpx;margin-top: 10rpx;"></text>
  48. <view class="ss-flex-1"></view>
  49. </view>
  50. <view class="ss-flex-2 ss-col-center" style="margin-top: 10rpx;">
  51. <view class="ss-flex-2 ss-col-center item-info-box">
  52. <text class="textIcon icon-vip" style="font-size: 26rpx;color:#FE7212;font-weight: 650;"></text>
  53. <view style="font-size:20rpx;margin-left: 5rpx;">个人认证</view>
  54. </view>
  55. <view class="ss-flex-2 ss-col-center item-info-box" style="margin-left: 10rpx;">
  56. <text class="textIcon icon-baozhang" style="font-size: 26rpx;color:#FE7212;font-weight: 650;"></text>
  57. <view style="font-size:20rpx;margin-left: 5rpx;">平台保障</view>
  58. </view>
  59. <view class="ss-flex-1"></view>
  60. </view>
  61. <view class="button-box-info">预览个人主页</view>
  62. <view style="width: 100%;height:10rpx;"></view>
  63. </view>
  64. <view class="bt-box">
  65. <view class="ss-flex-2 ss-col-center">
  66. <text class="textIcon icon-icon_map_list" style="font-size: 28rpx;color:#E2645B;font-weight: 650;"></text>
  67. <view style="font-size:24rpx;margin-left: 5rpx;font-weight: 550;">我的订单</view>
  68. <view class="ss-flex-1"></view>
  69. <text class="textIcon icon-gengduo" style="font-size: 28rpx;color:#333;font-weight: 650;"></text>
  70. </view>
  71. <view class="ss-flex-2 ss-col-center" style="margin-top:20rpx;">
  72. <view class="ss-flex-2" style="flex-wrap:wrap;width:45%;">
  73. <view style="width:100%;text-align:center;font-size:22rpx;font-weight:650;">待接订单</view>
  74. <view style="width:100%;text-align:center;font-size:32rpx;margin-top:20rpx;color:#FF7315;font-weight:650;">3</view>
  75. </view>
  76. <view class="ss-flex-1"></view>
  77. <view class="line-box"></view>
  78. <view class="ss-flex-1"></view>
  79. <view class="ss-flex-2" style="flex-wrap:wrap;width:45%;">
  80. <view style="width:100%;text-align:center;font-size:22rpx;font-weight:650;">待完成订单</view>
  81. <view style="width:100%;text-align:center;font-size:32rpx;margin-top:20rpx;color:#444;font-weight:650;">3</view>
  82. </view>
  83. </view>
  84. </view>
  85. <view class="ss-flex-2 ss-col-center bottom-box">
  86. <view style="width: 100rpx;height: 80rpx;">
  87. <image class="wh" referrerpolicy="no-referrer"
  88. src="/static/lanhu_shouye/pserz4p1s8x8wkob1c0bat390gscqet6q2w9869d84a-bcd7-4f8a-a669-dda68333c1f2.png" />
  89. </view>
  90. <view style="margin-left:30rpx;flex-wrap:wrap;" class="ss-flex-2 ss-col-center">
  91. <text style="font-size:28rpx;color:#333;">课程学习</text>
  92. <text style="font-size:20rpx;color:#999;margin-left:7rpx;">(未答题)</text>
  93. </view>
  94. </view>
  95. </view>
  96. <view style="width: 48%;margin-left: 4%;">
  97. <view class="right-box">
  98. <view class="ss-flex-2 ss-col-center" style="padding:10rpx;" @click="jumpOrderSetting">
  99. <text class="textIcon icon-jiedanshezhi" style="font-size: 30rpx;color:#333;font-weight: 650;"></text>
  100. <view style="font-size: 24rpx;color:#495058;font-weight: 600;margin-left:10rpx;">接单设置</view>
  101. <view class="ss-flex-1"></view>
  102. <text class="textIcon icon-gengduo" style="font-size: 30rpx;color:#333;font-weight: 650;"></text>
  103. </view>
  104. <view style="width:100%;margin-top:20rpx;">
  105. <view class="ss-flex-2 ss-col-center">
  106. <text class="textIcon icon-jiedanshijian" style="font-size: 28rpx;color:#649DFD;font-weight: 650;"></text>
  107. <view style="font-size: 22rpx;color:#B4B3B3;font-weight: 600;margin-left:10rpx;">接单时间</view>
  108. </view>
  109. <view style="font-size: 24rpx;color:#3D444D;font-weight: 600;margin-top:10rpx;margin-left:40rpx;">已开启8个小时</view>
  110. </view>
  111. <view style="width:100%;margin-top:20rpx;">
  112. <view class="ss-flex-2 ss-col-center">
  113. <text class="textIcon icon-nannvxingbie" style="font-size: 28rpx;color:#E47061;font-weight: 650;"></text>
  114. <view style="font-size: 22rpx;color:#B4B3B3;font-weight: 600;margin-left:10rpx;">客户性别</view>
  115. </view>
  116. <view style="font-size: 24rpx;color:#3D444D;font-weight: 600;margin-top:10rpx;margin-left:40rpx;">不限</view>
  117. </view>
  118. <view style="width:100%;margin-top:20rpx;margin-bottom: 10rpx;">
  119. <view class="ss-flex-2 ss-col-center">
  120. <text class="textIcon icon-destination" style="font-size: 28rpx;color:#FF7D13;font-weight: 650;"></text>
  121. <view style="font-size: 22rpx;color:#B4B3B3;font-weight: 600;margin-left:10rpx;">接单距离</view>
  122. </view>
  123. <view style="font-size: 24rpx;color:#3D444D;font-weight: 600;margin-top:10rpx;margin-left:40rpx;">10公里以内</view>
  124. </view>
  125. </view>
  126. <view class="right-bott-box">
  127. <view class="ss-flex-2 ss-col-center" style="padding:10rpx;">
  128. <text class="textIcon icon-xiangmushezhi" style="font-size: 30rpx;color:#DF4654;font-weight: 650;"></text>
  129. <view style="font-size: 24rpx;color:#495058;font-weight: 600;margin-left:10rpx;">项目设置</view>
  130. <view class="ss-flex-1"></view>
  131. <text class="textIcon icon-gengduo" style="font-size: 30rpx;color:#333;font-weight: 650;"></text>
  132. </view>
  133. <view class="ss-flex-2 ss-col-center" style="margin-top: 10rpx;flex-wrap: wrap;">
  134. <view class="pro-item-box" style="background-color: #F54CB3;">养生保健</view>
  135. <view class="pro-item-box" style="background-color: #FF7D11;">足部按摩</view>
  136. <view class="pro-item-box" style="background-color: #F54CB3;">养生保健</view>
  137. <view class="pro-item-box" style="background-color: #FF7D11;">足部按摩</view>
  138. </view>
  139. <view class="list-wrap">
  140. <scroll-view scroll-y="true" class="list">
  141. <view class="list-scroll-view">
  142. <view class="ss-flex-2 ss-col-center project-item-box">
  143. <view style="font-size: 24rpx;color: #444A53;margin-right: 10rpx;max-width: 130rpx;min-width: 130rpx;">泰式按摩</view>
  144. <view style="font-size: 18rpx;color: #7C7A7B;">90分钟</view>
  145. <view class="ss-flex-1"></view>
  146. <text class="textIcon icon-renminbi" style="font-size: 24rpx;color:#FC8D44;font-weight: 650;"></text>
  147. <view style="font-size: 26rpx;color:#FC8D44;font-weight: 600;">399</view>
  148. </view>
  149. <view class="ss-flex-2 ss-col-center project-item-box" v-for="i in 5">
  150. <view style="font-size: 24rpx;color: #444A53;margin-right: 10rpx;max-width: 130rpx;min-width: 130rpx;">小儿推拿,按摩</view>
  151. <view style="font-size: 18rpx;color: #7C7A7B;">90分钟</view>
  152. <view class="ss-flex-1"></view>
  153. <text class="textIcon icon-renminbi" style="font-size: 24rpx;color:#FC8D44;font-weight: 650;"></text>
  154. <view style="font-size: 26rpx;color:#FC8D44;font-weight: 600;">399</view>
  155. </view>
  156. </view>
  157. </scroll-view>
  158. </view>
  159. </view>
  160. <view class="ss-flex-2 ss-col-center bottom-box">
  161. <view style="width: 100rpx;height: 80rpx;">
  162. <image class="wh" referrerpolicy="no-referrer"
  163. src="/static/lanhu_shouye/pserz4p1s8x8wkob1c0bat390gscqet6q2w9869d84a-bcd7-4f8a-a669-dda68333c1f2.png" />
  164. </view>
  165. <view style="font-size:28rpx;color:#333;margin-left:30rpx;">嘀咚商城</view>
  166. </view>
  167. </view>
  168. </view>
  169. <!-- 中部 -->
  170. </view>
  171. </s-layout>
  172. </template>
  173. <script setup>
  174. import {
  175. reactive,
  176. ref
  177. } from 'vue';
  178. import {
  179. computed
  180. } from 'vue';
  181. import {
  182. onLoad,
  183. onPageScroll,
  184. onPullDownRefresh,
  185. onReady,
  186. onReachBottom,
  187. onShow,
  188. } from '@dcloudio/uni-app';
  189. import sheep from '@/sheep';
  190. import $share from '@/sheep/platform/share';
  191. // 隐藏原生tabBar
  192. // uni.hideTabBar();
  193. //跳转到接单设置
  194. const jumpOrderSetting=async()=>{
  195. uni.navigateTo({
  196. url:'/pages/Technician/other/orderSetting/orderSetting'
  197. })
  198. }
  199. const iconClick = async (type) => {
  200. uni.showToast({
  201. title: `点击了${type==='prefix'?'左侧':'右侧'}的图标`,
  202. icon: 'none'
  203. })
  204. }
  205. // 返回首页
  206. const backPage = async () => {
  207. uni.reLaunch({
  208. url: '/pages/XDHome/homePage/homePage',
  209. });
  210. };
  211. const bottomHeight = ref('0rpx');
  212. // #ifdef APP-PlUS
  213. //获取顶部安全距离
  214. const app = uni.getSystemInfoSync();
  215. const bottomHeightOne = app.statusBarHeight + 'rpx';
  216. bottomHeight.value = bottomHeightOne
  217. // #endif
  218. </script>
  219. <style scoped lang="scss">
  220. .bottom-box{
  221. width:100%;
  222. background-color: #fff;
  223. border-radius:30rpx;
  224. box-sizing:border-box;
  225. margin-top:20rpx;
  226. padding:10rpx 20rpx;
  227. }
  228. .project-item-box{
  229. width: 95%;
  230. margin-left: 2.5%;
  231. box-sizing: border-box;
  232. padding: 15rpx 10rpx;
  233. font-size: 24rpx;
  234. background-color: #EEEEF0;
  235. border-radius: 10rpx;
  236. margin-top: 10rpx;
  237. }
  238. .pro-item-box{
  239. padding: 3rpx 10rpx;
  240. box-sizing: border-box;
  241. font-size: 16rpx;
  242. color: #fff;
  243. border-radius: 20rpx;
  244. margin-right: 5rpx;
  245. margin-bottom: 10rpx;
  246. }
  247. .right-bott-box{
  248. width:100%;
  249. min-height:200rpx;
  250. box-sizing:border-box;
  251. padding:10rpx;
  252. background-color: #fff;
  253. border-radius:10rpx;
  254. margin-top: 20rpx;
  255. }
  256. .right-box{
  257. width:100%;
  258. min-height:200rpx;
  259. box-sizing:border-box;
  260. padding:10rpx;
  261. background-color: #fff;
  262. border-radius:10rpx;
  263. }
  264. .line-box{
  265. width:4rpx;
  266. min-height:140rpx;
  267. background-color: #9EA1A6;
  268. }
  269. .bt-box{
  270. width: 100%;
  271. min-height: 200rpx;
  272. margin-top: 20rpx;
  273. border-radius: 10rpx;
  274. box-sizing: border-box;
  275. padding: 10rpx;
  276. background-color: #fff;
  277. }
  278. .button-box-info{
  279. width: 90%;
  280. margin-left: 5%;
  281. box-sizing: border-box;
  282. padding: 10rpx;
  283. margin-top: 20rpx;
  284. text-align: center;
  285. font-size: 34rpx;
  286. color: #C30D24;
  287. border: 1rpx solid #FFB887;
  288. border-radius: 30rpx;
  289. font-weight: 500;
  290. }
  291. .item-info-box{
  292. padding:4rpx;
  293. border-radius:10rpx;
  294. box-sizing:border-box;
  295. border:1rpx solid #BFC1C4;
  296. }
  297. .personalInformation{
  298. position: relative;
  299. width: 100%;
  300. min-height: 200rpx;
  301. border-radius: 10rpx;
  302. background-color: #fff;
  303. padding: 10rpx;
  304. box-sizing: border-box;
  305. }
  306. .left-right-box{
  307. width: 95%;
  308. margin-left: 2.5%;
  309. box-sizing: border-box;
  310. margin-top: 20rpx;
  311. }
  312. .address-box {
  313. max-width:260rpx;
  314. font-size: 20rpx;
  315. color: #4B515A;
  316. margin-left: 5rpx;
  317. white-space: nowrap;
  318. overflow: hidden;
  319. text-overflow: ellipsis;
  320. }
  321. .bg-box-info {
  322. padding: 15rpx;
  323. min-width: 240rpx;
  324. box-sizing: border-box;
  325. font-size: 24rpx;
  326. background-color: #fff;
  327. border-radius: 30rpx;
  328. }
  329. .bg-info-box {
  330. width: 100%;
  331. min-height: 350rpx;
  332. box-sizing: border-box;
  333. background: linear-gradient(to bottom, #CE4555, #EADADD);
  334. }
  335. .icon-navigation {
  336. font-size: 35rpx;
  337. color: #fff;
  338. }
  339. // 上中下布局样式
  340. .body {
  341. display: flex;
  342. flex-direction: column;
  343. background-color: #EEEEF0;
  344. height: calc(100vh - 50px);
  345. box-sizing: border-box;
  346. }
  347. .head {
  348. text-align: center;
  349. }
  350. // 中部滚动
  351. .list-wrap {
  352. flex-grow: 1;
  353. position: relative;
  354. width: 100%;
  355. min-height:420rpx;
  356. max-height:700rpx;
  357. box-sizing: border-box;
  358. }
  359. .list {
  360. position: absolute;
  361. top: 0;
  362. left: 0;
  363. right: 0;
  364. bottom: 0;
  365. box-sizing: border-box;
  366. }
  367. .list-scroll-view {
  368. width: 100%;
  369. margin-bottom: 10rpx;
  370. box-sizing: border-box;
  371. }
  372. .course-card {
  373. width: 47vw;
  374. margin-top: 10px;
  375. margin-bottom: 10px;
  376. }
  377. // 底部
  378. .tools {
  379. display: flex;
  380. flex-direction: row;
  381. justify-content: space-between;
  382. }
  383. .tools-item {
  384. width: 45px;
  385. text-align: center;
  386. font-size: 14px;
  387. padding: 20px;
  388. }
  389. </style>