猫妈狗爸伴宠师小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

342 lines
8.7 KiB

1 week ago
  1. <template>
  2. <!-- <div>订单详情</div> -->
  3. <view class="box">
  4. <view class="top" :style="{ borderRadius: '8px' }">
  5. <view class="money" :style="{ borderRadius: '8px' }">
  6. <view class="top_left">
  7. <view class="">
  8. <u--text text="客户实际支付" size="10px"></u--text>
  9. <u--text text="¥ 45" color="#FE4E41" size="15px" lineHeight="21px"></u--text>
  10. </view>
  11. <u-line color="#FFBF60" direction="col" length="30px"></u-line>
  12. <view class="">
  13. <u--text text="分成比例" size="10px"></u--text>
  14. <u--text text="20%" color="#FE4E41" size="15px" lineHeight="21px"></u--text>
  15. </view>
  16. <u-line color="#FFBF60" direction="col" length="30px"></u-line>
  17. <view class="">
  18. <u--text text="本单酬劳" size="10px"></u--text>
  19. <u--text text="¥ 9" color="#FE4E41" size="15px" lineHeight="21px"></u--text>
  20. </view>
  21. </view>
  22. </view>
  23. <view class="top_bottom">
  24. <u--text text="订单为系统派发,请确认订单信息后再抢单" size="10px" color="#707070"></u--text>
  25. </view>
  26. <view class="top-button" :style="{ borderRadius: '27px' }">
  27. <u--text text=" 系统派单" size="10px" color="#FFBF60" align="center" line-height="28px"></u--text>
  28. </view>
  29. </view>
  30. <view class="information" :style="{ borderRadius: '8px' }">
  31. <view class="text1">
  32. <u-line color="#FFBF60" direction="col" length="15px" bold></u-line>
  33. <u--text text="基本信息" size="15px" color="#000000"></u--text>
  34. </view>
  35. <u-divider text="" :hairline="true" lineColor="#F5F5F5"></u-divider>
  36. <view class="time">
  37. <u--text text="服务日期" size="13px" color="#000000"></u--text>
  38. <u--text text="12-0,12-08" size="13px" color="#000000"></u--text>
  39. </view>
  40. <u-divider text="" :hairline="true" lineColor="#F5F5F5"></u-divider>
  41. <view class="time">
  42. <u--text text="服务地址" size="13px" color="#000000"></u--text>
  43. <u--text text="湖南省长沙市雨花区人民东路" size="13px" color="#000000"></u--text>
  44. </view>
  45. </view>
  46. <view class="service" :style="{ borderRadius: '8px' }">
  47. <view class="horizontal_distribution">
  48. <view class="text1">
  49. <u-line color="#FFBF60" direction="col" length="15px"></u-line>
  50. <u--text text="服务内容和酬劳" size="15px" color="#000000"></u--text>
  51. </view>
  52. <view class="text2">
  53. <u--text text="查看宠物信息" size="10px" color="#F5F5F5"></u--text>
  54. <u-icon name="arrow-right-double" color="#F5F5F5" size="10"></u-icon>
  55. </view>
  56. </view>
  57. <u-divider text="" :hairline="true" lineColor="#F5F5F5"></u-divider>
  58. <view class="pet_information">
  59. <u--image
  60. src="https://k.sinaimg.cn/n/sinakd20118/751/w690h861/20240406/8eda-d4d56e3bface126bd5806ff981a09314.jpg/w700d1q75cms.jpg"
  61. shape="circle" width="50px" height="50px"></u--image>
  62. <view class="">
  63. <view class="flex">
  64. <u--text text="小咪" size="14px" color="#000000"></u--text>
  65. <u-icon name="woman" color="#F77293" size="10"></u-icon>
  66. </view>
  67. <u--text text="中华田园犬(小型犬)" size="14px" color="#707070"></u--text>
  68. </view>
  69. </view>
  70. <u-divider text="" :hairline="true" lineColor="#F5F5F5"></u-divider>
  71. <view class="flex">
  72. <u--text text="12-14" size="14px" color="#707070"></u--text>
  73. <u--text text="专业喂养" size="14px" color="#000000"></u--text>
  74. <u--text text="上门1次" size="14px" color="#707070"></u--text>
  75. </view>
  76. <u-divider text="" :hairline="true" lineColor="#F5F5F5"></u-divider>
  77. <view class="horizontal_distribution money_total">
  78. <view>
  79. <u--text text="合计" size="14px" color="#707070"></u--text>
  80. </view>
  81. <view>
  82. <u--text text="¥ 45" size="14px" color="#FE4E41"></u--text>
  83. </view>
  84. </view>
  85. </view>
  86. <view class="other_information">
  87. <view class="text1">
  88. <u-line color="#FFBF60" direction="col" length="15px"></u-line>
  89. <u--text text="其他信息" size="15px" color="#000000"></u--text>
  90. </view>
  91. <u-divider text="" :hairline="true" lineColor="#F5F5F5"></u-divider>
  92. <view class="horizontal_distribution">
  93. <view>
  94. <u--text text="订单编号:" size="14px" color="#000000"></u--text>
  95. </view>
  96. <view>
  97. <u--text text="fe34521532513256" size="14px" color="#000000"></u--text>
  98. </view>
  99. </view>
  100. <u-divider text="" :hairline="true" lineColor="#F5F5F5"></u-divider>
  101. <view class="horizontal_distribution">
  102. <view>
  103. <u--text text="下单时间:" size="14px" color="#000000"></u--text>
  104. </view>
  105. <view>
  106. <u--text text="2024-12-45 12:32:41" size="14px" color="#000000"></u--text>
  107. </view>
  108. </view>
  109. <u-divider text="" :hairline="true" lineColor="#F5F5F5"></u-divider>
  110. <view class="horizontal_distribution">
  111. <view>
  112. <u--text text="支付时间:" size="14px" color="#000000"></u--text>
  113. </view>
  114. <view>
  115. <u--text text="2024-12-45 12:32:41" size="14px" color="#000000"></u--text>
  116. </view>
  117. </view>
  118. </view>
  119. <view class="bottom">
  120. <view class="bottom_button" :style="{ borderRadius: '41px' }">
  121. <u--text text="立即抢单" size="15px" color="#FFFFFF" align="center" line-height="60px"></u--text>
  122. </view>
  123. </view>
  124. <view>
  125. <u-popup :show="show" mode="center" @close="close" @open="open">
  126. <view class="success">
  127. <view class="pop_top">
  128. </view>
  129. <u--text text="请立即添加服务顾问,并提供订单编码" size="12px" color="#707070" align="center"></u--text>
  130. <view class="pop_image">
  131. <u--image src="https://xxx.com/album/1.jpg" shape="square" width="100px"
  132. height="100px"></u--image>
  133. </view>
  134. <view class="code" :style="{ borderRadius: '6px' }">
  135. <!-- <u--input type="number" border="surround" v-model="value" @change="change"></u--input> -->
  136. </view>
  137. <view class="copy" :style="{ borderRadius: '40px' }">
  138. <u--text text="复制订单编号" size="12px" color="#FFFFFF" align="center" line-height="50px"></u--text>
  139. </view>
  140. <view class="cancel" :style="{ borderRadius: '50px' }">
  141. <u-icon name="close-circle" color="#707070" size="40"></u-icon>
  142. </view>
  143. </view>
  144. </u-popup>
  145. <u-button @click="show = true">打开</u-button>
  146. </view>
  147. </view>
  148. </template>
  149. <script>
  150. export default {
  151. data() {
  152. return {
  153. show: false
  154. }
  155. },
  156. methods: {
  157. open() {
  158. // console.log('open');
  159. },
  160. close() {
  161. this.show = false
  162. // console.log('close');
  163. }
  164. }
  165. }
  166. // export default {
  167. // data() {
  168. // return {
  169. // value: ''
  170. // }
  171. // },
  172. // methods: {
  173. // change(e) {
  174. // console.log('change', e);
  175. // }
  176. // }
  177. // }
  178. </script>
  179. <style lang="scss">
  180. .box {
  181. width: 100%;
  182. height: 100%;
  183. background-color: #F5F5F5;
  184. }
  185. .top {
  186. width: 350px;
  187. height: 100px;
  188. background-color: #FFFFFF;
  189. margin: 14px 20px 0 20px;
  190. }
  191. .money {
  192. width: 250px;
  193. height: 80px;
  194. }
  195. .top_left {
  196. width: 220px;
  197. height: 26px;
  198. display: flex;
  199. padding: 25px 0 0 20px;
  200. justify-content: space-between;
  201. }
  202. .top_bottom {
  203. width: 200px;
  204. height: 26px;
  205. // background-color: aqua;
  206. margin-left: 20px;
  207. }
  208. .top-button {
  209. width: 66px;
  210. height: 28px;
  211. border: 1px solid #FFBF60;
  212. position: absolute;
  213. top: 30px;
  214. right: 30px;
  215. }
  216. .information {
  217. width: 350px;
  218. height: 130px;
  219. background-color: #FFFFFF;
  220. margin: 10px 20px 0 20px;
  221. padding: 25px;
  222. }
  223. .text1 {
  224. width: 120px;
  225. height: 20px;
  226. display: flex;
  227. }
  228. .time {
  229. width: 300px;
  230. height: 30px;
  231. // background-color: gray;
  232. display: flex;
  233. justify-content: space-between;
  234. }
  235. .service {
  236. width: 350px;
  237. height: 190px;
  238. background-color: #FFFFFF;
  239. margin: 10px 20px 0 20px;
  240. padding: 27px;
  241. }
  242. .horizontal_distribution {
  243. display: flex;
  244. justify-content: space-between;
  245. }
  246. .flex {
  247. display: flex;
  248. }
  249. .text2 {
  250. width: 100px;
  251. height: 20px;
  252. display: flex;
  253. }
  254. .pet_information {
  255. width: 300px;
  256. height: 50px;
  257. // background-color: red;
  258. display: flex;
  259. }
  260. .money_total {
  261. width: 300px;
  262. }
  263. .other_information {
  264. width: 350px;
  265. height: 190px;
  266. background-color: #FFFFFF;
  267. margin: 10px 20px 0 20px;
  268. padding: 27px 0 0 27px;
  269. }
  270. .bottom {
  271. width: 100%;
  272. height: 60px;
  273. background-color: #FFFFFF;
  274. margin-top: 20px;
  275. padding: 20px 50px;
  276. }
  277. .bottom_button {
  278. width: 300px;
  279. height: 60px;
  280. background-color: #FFBF60;
  281. }
  282. .success {
  283. width: 310px;
  284. height: 370px;
  285. background-color: #FFFFFF;
  286. }
  287. .pop_top {
  288. width: 310px;
  289. height: 100px;
  290. background-image: linear-gradient(to bottom, #FFBF60, #FFD494)
  291. }
  292. .code {
  293. width: 250px;
  294. height: 50px;
  295. background-color: #F3F3F3;
  296. margin: 30px 0 0 30px;
  297. }
  298. .pop_image {
  299. display: grid;
  300. place-items: center;
  301. margin-top: 20px;
  302. }
  303. .copy {
  304. width: 260px;
  305. height: 50px;
  306. background-color: #FFBF60;
  307. margin: 30px 0 0 25px;
  308. }
  309. .cancel {
  310. width: 40px;
  311. height: 40px;
  312. background-color: #FFFFFF;
  313. position: absolute;
  314. top: -20px;
  315. right: -17px;
  316. }
  317. </style>