suborder.vue 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445
  1. <template>
  2. <view class="container">
  3. <view class="top">
  4. </view>
  5. <view class="content-box">
  6. <view class="tit">
  7. 站点自提
  8. </view>
  9. <view class="tit1">
  10. <view class="address">
  11. 上西路服务站
  12. </view>
  13. <view class="address1">
  14. 台州市椒江区商海北街381号
  15. </view>
  16. <view class="address3">
  17. <image src="../../static/img/img71.png" class="icon-address"></image>
  18. <view class="distance">
  19. 距您14.5km
  20. </view>
  21. <view class="border"></view>
  22. <view class="see">
  23. 查看地图 >
  24. </view>
  25. </view>
  26. </view>
  27. <view class="tit2">
  28. <view class="tit2-left">
  29. 提货人
  30. </view>
  31. <view class="tit2-left2">
  32. 韩大力
  33. </view>
  34. <view class="tit2-right">
  35. <label class="radio" @click="sex=1"><radio :checked="sex==1" color='#119327'style="transform:scale(0.7)" />先生</label>
  36. <label class="radio margin-left" @click="sex=0"><radio :checked="sex==0" color='#119327'style="transform:scale(0.7)" />女士</label>
  37. </view>
  38. </view>
  39. <view class="tit3">
  40. <view class="number">
  41. 手机号
  42. </view>
  43. <view class="phone-number">
  44. 13896969696
  45. </view>
  46. </view>
  47. </view>
  48. <view class="time-box">
  49. <view class="time-top flex">
  50. <view class="service">
  51. 送达时间
  52. </view>
  53. <view class="explain">
  54. 拼团结束后8小时后到货
  55. </view>
  56. </view>
  57. <view class="time-center flex">
  58. <view class="center-left">
  59. <image src="/static/img/img52.png" class="shop-img"></image>
  60. <image src="/static/img/img52.png" class="aatuan"></image>
  61. </view>
  62. <view class="center-center flex">
  63. <view class="center-left">
  64. <view class="center-tit">
  65. 洋鸡蛋10枚490g
  66. </view>
  67. <view class="center-number">
  68. 10枚
  69. </view>
  70. <view class="over-right">
  71. <view>截单倒计时</view>
  72. <uni-countdown
  73. color="#ffffff"
  74. background-color="#FF0000"
  75. show-colon
  76. :show-day="false"
  77. :hour="seckillObj.stopTimeH"
  78. :minute="seckillObj.stopTimeM"
  79. :second="seckillObj.stopTimeS"
  80. ></uni-countdown>
  81. </view>
  82. </view>
  83. <view class="center-right">
  84. <view class="right-pic">
  85. <text class="pic-b">¥1.9</text><text>/份</text>
  86. </view>
  87. <view class="right-pic2">
  88. ¥ 9.9
  89. </view>
  90. <view class="right-number">
  91. x1
  92. </view>
  93. </view>
  94. </view>
  95. </view>
  96. </view>
  97. <view class="discount-box">
  98. <view class="flex">
  99. <view >
  100. 商品总额
  101. </view>
  102. <view >
  103. ¥9.9
  104. </view>
  105. </view>
  106. <view class="flex">
  107. <view >
  108. 配送费
  109. </view>
  110. <view >
  111. + ¥0
  112. </view>
  113. </view>
  114. <view class="flex">
  115. <view >
  116. 团购优惠金额
  117. </view>
  118. <view class="red-color">
  119. - ¥8
  120. </view>
  121. </view>
  122. </view>
  123. <view class="agreement">
  124. <label class="radio">
  125. <radio :checked='ischeck' @click="changecheck()" style="transform:scale(0.7)" color="#018D25" value="" /><text>同意</text><text class="text_color">《用户自提服务协议》</text>
  126. </label>
  127. </view>
  128. <view class="bottom-box">
  129. <view class="pay">
  130. 立即支付
  131. </view>
  132. <view class="mony">
  133. ¥1.9
  134. </view>
  135. <view class="content">
  136. 待支付:
  137. </view>
  138. </view>
  139. </view>
  140. </template>
  141. <script>
  142. export default{
  143. data(){
  144. return{
  145. sex:1,
  146. ischeck:true,//是否选中
  147. // 秒杀数据保存
  148. seckillObj: {
  149. stopTime: 0, //结束时间
  150. stop: false, //是否结束
  151. stopTimeH: 0, //小时
  152. stopTimeM: 0, //分钟
  153. stopTimeS: 0 //秒钟
  154. },
  155. // 拼团数据保存
  156. }
  157. },
  158. methods:{
  159. //选中
  160. changecheck(){
  161. console.log(this.ischeck);
  162. this.ischeck = !this.ischeck;
  163. },
  164. radioChange: function(evt) {
  165. for (let i = 0; i < this.items.length; i++) {
  166. if (this.items[i].value === evt.target.value) {
  167. this.current = i;
  168. break;
  169. }
  170. }
  171. }
  172. }
  173. }
  174. </script>
  175. <style lang="scss">
  176. .container{
  177. padding-bottom: 110rpx;
  178. .top{
  179. width:750rpx;
  180. height:454rpx;
  181. background:linear-gradient(180deg,rgba(49,193,59,0.93) 65%,rgba(255,255,255,0) 100%);
  182. }
  183. .content-box{
  184. width:705rpx;
  185. // height:419rpx;
  186. background:rgba(255,255,255,1);
  187. border-radius:20rpx;
  188. margin: - 280rpx auto 0;
  189. .tit{
  190. text-align: center;
  191. line-height:70rpx;
  192. background:rgba(218,250,209,1);
  193. border-radius:20rpx 20rpx 0 0 ;
  194. font-size:37rpx;
  195. font-weight:bold;
  196. color:rgba(0,0,0,1);
  197. }
  198. .tit1{
  199. border-bottom: 1px solid rgba(236,236,236,1);
  200. margin: 0 6rpx 0 20rpx;
  201. .address{
  202. margin-top: 30rpx;
  203. margin-bottom: 14rpx;
  204. font-size:33rpx;
  205. font-weight:bold;
  206. color:rgba(0,0,0,1);
  207. }
  208. .address1{
  209. font-size:25rpx;
  210. font-weight:bold;
  211. color:rgba(155,155,155,1);
  212. }
  213. .address3{
  214. display: flex;
  215. align-items: center;
  216. margin: 23rpx 0 29rpx 0;
  217. .icon-address{
  218. width: 22rpx;
  219. height: 27rpx;
  220. margin-right: 13rpx;
  221. }
  222. .distance{
  223. font-size:24rpx;
  224. font-weight:bold;
  225. color:rgba(17,147,39,1);
  226. margin-right: 18rpx;
  227. }
  228. .border{
  229. width:2rpx;
  230. height:20rpx;
  231. background:rgba(169,169,169,1);
  232. margin-right: 18rpx;
  233. }
  234. .see{
  235. font-size:25rpx;
  236. font-weight:bold;
  237. color:rgba(155,155,155,1);
  238. }
  239. }
  240. }
  241. .tit2{
  242. border-bottom: 1px solid rgba(236,236,236,1);
  243. display: flex;
  244. justify-content: space-between;
  245. align-items: center;
  246. height: 86rpx;
  247. margin: 0 6rpx 0 20rpx;
  248. .tit2-left{
  249. margin-right: 20rpx;
  250. font-size:26rpx;
  251. font-weight:bold;
  252. color:rgba(0,0,0,1);
  253. }
  254. .tit2-left2{
  255. flex: 1;
  256. font-size:26rpx;
  257. font-weight:bold;
  258. }
  259. .tit2-right{
  260. display: flex;
  261. align-items: center;
  262. font-size:27rpx;
  263. font-weight:400;
  264. color:rgba(0,0,0,1);
  265. margin-right: 37rpx;
  266. }
  267. }
  268. .tit3{
  269. display: flex;
  270. align-items: center;
  271. height: 87rpx;
  272. font-size:26rpx;
  273. font-weight:bold;
  274. color:rgba(0,0,0,1);
  275. margin: 0 6rpx 0 20rpx;
  276. .number{
  277. margin-right: 20rpx;
  278. }
  279. }
  280. }
  281. .time-box{
  282. width:705rpx;
  283. background:rgba(255,255,255,1);
  284. border-radius:20rpx;
  285. margin: 15rpx auto 33rpx;
  286. .time-top{
  287. height: 85rpx;
  288. margin-left: 20rpx;
  289. margin-right: 5rpx;
  290. padding-right: 13rpx;
  291. border-bottom: 1px solid rgba(236,236,236,1);
  292. .service{
  293. font-size:27rpx;
  294. font-weight:400;
  295. color:rgba(103,103,103,1);
  296. }
  297. .explain{
  298. font-size:24rpx;
  299. font-weight:bold;
  300. color:rgba(0,140,31,1);
  301. }
  302. }
  303. .time-center{
  304. margin: 5rpx 23rpx;
  305. .center-left{
  306. width: 169rpx;
  307. height: 169rpx;
  308. position: relative;
  309. margin-right: 16rpx;
  310. .shop-img{
  311. width: 100%;
  312. height: 100%;
  313. }
  314. .aatuan{
  315. width: 83rpx;
  316. height: 34rpx;
  317. position: absolute;
  318. top: 0;
  319. left: 0;
  320. }
  321. }
  322. .center-center{
  323. flex:1;
  324. .center-left{
  325. flex: 1;
  326. .center-tit{
  327. margin-top: 20rpx;
  328. margin-bottom: 10rpx;
  329. font-size:27rpx;
  330. font-weight:bold;
  331. color:rgba(0,0,0,1);
  332. }
  333. .center-number{
  334. font-size:23rpx;
  335. font-weight:bold;
  336. color:rgba(126,126,134,1);
  337. margin-bottom: 15rpx;
  338. }
  339. .over-right{
  340. display: flex;
  341. align-items: center;
  342. font-size:29rpx;
  343. font-weight:bold;
  344. color:rgba(255,0,0,1);
  345. }
  346. }
  347. .center-right{
  348. text-align: right;
  349. .right-pic{
  350. font-size:23rpx;
  351. font-weight:bold;
  352. color:rgba(136,139,145,1);
  353. margin-bottom: 15rpx;
  354. .pic-b{
  355. font-size:27rpx;
  356. font-weight:bold;
  357. color:rgba(0,0,0,1);
  358. }
  359. }
  360. .right-pic2{
  361. font-size:23rpx;
  362. font-weight:bold;
  363. text-decoration:line-through;
  364. color:rgba(136,139,145,1);
  365. }
  366. .right-number{
  367. font-size:24rpx;
  368. font-weight:bold;
  369. color:rgba(136,139,145,1);
  370. }
  371. }
  372. }
  373. }
  374. }
  375. .discount-box{
  376. width:705rpx;
  377. background:rgba(255,255,255,1);
  378. border-radius:20rpx;
  379. margin: 0 auto 38rpx;
  380. padding: 33rpx 20rpx;
  381. font-size:26rpx;
  382. font-weight:bold;
  383. color:rgba(0,0,0,1);
  384. line-height: 50rpx;
  385. .red-color{
  386. color:rgba(255,0,0,1);
  387. }
  388. }
  389. .radio{
  390. font-size:21rpx;
  391. font-weight:bold;
  392. color:rgba(97,97,97,1);
  393. margin-left: 23rpx;
  394. .text_color{
  395. color:rgba(1,141,37,1);
  396. }
  397. }
  398. .bottom-box{
  399. position: fixed;
  400. bottom: 0;
  401. padding-right: 18rpx;
  402. width:750rpx;
  403. height:109rpx;
  404. background:rgba(255,255,255,1);
  405. border:2rpx solid rgba(133, 133, 133, 0.08);
  406. display: flex;
  407. align-items: center;
  408. flex-direction:row-reverse;
  409. .content{
  410. font-size:27rpx;
  411. font-weight:bold;
  412. color:rgba(0,0,0,1);
  413. }
  414. .mony{
  415. font-size:34rpx;
  416. font-weight:400;
  417. color:rgba(255,0,0,1);
  418. }
  419. .pay{
  420. background:linear-gradient(90deg,rgba(255,83,37,1) 0%,rgba(255,34,41,1) 100%);
  421. border-radius:39rpx;
  422. font-size:28rpx;
  423. font-weight:400;
  424. color:rgba(255,255,255,1);
  425. padding: 14rpx 52rpx;
  426. margin-left: 22rpx;
  427. }
  428. }
  429. }
  430. </style>