confirm-order.vue 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. <template>
  2. <view class="confirm-order-box iPhone-bottom flex-common-css box-border-box">
  3. <view class="bg-box"></view>
  4. <Nav title='提交订单' bgckgroundBox='transparent'></Nav>
  5. <view class="scroll-view-css box-border-box p-24">
  6. <view class="box-card box-border-box mb-20 bgc-f">
  7. <view class="box-input box-border-box p-b-20 mb-20" @click="selectFun(2)">
  8. <view class="flex-justify-space mb-12">
  9. <view class="fs-36 fw-600 text-overflow-ellipsis w570">
  10. 重庆工商职业学校3栋1楼503重庆工 商职业学校3栋1楼503重庆工商职业学校3栋1楼503重庆工 商职业学校3栋1楼503
  11. </view>
  12. <image class="right-icon" src="@/static/img/toRight.png" mode=""></image>
  13. </view>
  14. <view class="">
  15. <span class="mr-24 fs-28 fc-9">张晓鹏</span><span class="fs-28 fc-9">18883660721</span>
  16. </view>
  17. </view>
  18. <view class="box-input flex-justify-space align-items-center box-border-box p-b-20 mb-20" @click="selectFun(3)">
  19. <view class="fs-28 fw-600">预计送达</view>
  20. <view class="align-items-center">
  21. <view class="fs-28 fw-400 fc-41ABF5">预计 12:30 送达</view>
  22. <image class="right-icon" src="@/static/img/toRight.png" mode=""></image>
  23. </view>
  24. </view>
  25. <view v-if="false" class="box-input flex-justify-space box-border-box p-b-20 mb-20">
  26. <view class="fs-28 fw-600">配送方式</view>
  27. <view class="fs-24 fw-400 sd-box fc-FB3D03">送达宿舍</view>
  28. </view>
  29. <view class="p-b-20">
  30. <view class=" flex-justify-space box-border-box p-b-20">
  31. <view class="fs-28 fw-600">取件码</view>
  32. <view class="align-items-center" @click="selectFun(4)">
  33. <view class="fs-24 fw-400 fc-9">修改</view>
  34. <image class="right-icon" src="@/static/img/toRight.png" mode=""></image>
  35. </view>
  36. </view>
  37. <view class="code-box box-border-box flex-wrap-wrap">
  38. <view class="code-item fs-28" v-for="(item,i) in codeList" :key="i">{{item}}</view>
  39. </view>
  40. </view>
  41. </view>
  42. <view class="box-card box-border-box bgc-f mb-20">
  43. <view class="mb-32 b-b-F9F9F9">
  44. <view class="fs-28 fw-600 mb-24">宋氏重庆鸡公煲(重工业店)宋氏重庆鸡公煲(重工业店)宋氏重庆鸡公煲(重工业店)</view>
  45. <view class="flex-justify-space mb-28" v-for="(item,i) in 3" :key="i">
  46. <image class="goods-img" src="@/static/img/my/lqzx-bg.png" mode="scaleToFill"></image>
  47. <view class="w376">
  48. <view class="fs-28 fw-400 mb-4">
  49. 鸡公煲单人豪华D套餐(含米饭)鸡公煲单人豪华D套
  50. </view>
  51. <view class="fs-24 fc-9 mb-4">微辣</view>
  52. <view class="fs-24 fc-9">x1</view>
  53. </view>
  54. <view class="fs-32 fw-600">¥59.97</view>
  55. </view>
  56. </view>
  57. <view class="flex-justify-space mb-24">
  58. <view class="fs-28 fw-400">打包费</view>
  59. <view class="fs-32 fw-600">¥3</view>
  60. </view>
  61. <view class="flex-justify-space mb-24">
  62. <view class="fs-28 fw-400">配送费</view>
  63. <view class="fs-32 fw-600">¥3</view>
  64. </view>
  65. <view class="flex-justify-space mb-24 p-b-20 b-b-F9F9F9" @click="selectFun(1)">
  66. <view class="fs-28 fw-400">优惠券</view>
  67. <view class="align-items-center">
  68. <view class="fs-32 fc-FB3D03 fw-600">-¥3</view>
  69. <image class="right-icon" src="@/static/img/toRight.png" mode=""></image>
  70. </view>
  71. </view>
  72. <view class="text-align-right p-b-20">
  73. <span class="fc-9 fs-28">共3件,</span>
  74. <span class="fw-400 fc-0 fs-28">合计¥</span>
  75. <span class="fw-600 fc-0 fs-44">179.1</span>
  76. </view>
  77. </view>
  78. <view class="box-card box-border-box bgc-f mb-20">
  79. <view class="flex-justify-space b-b-F9F9F9 p-b-20 mb-24">
  80. <view class="fs-28 fw-600 w158">备注</view>
  81. <input class="text-align-right fs-28" type="text" placeholder="请填写你的需求">
  82. </view>
  83. <view class="fs-28 fw-600 mb-16">平台将通过服务通知向你推送最新动态</view>
  84. <view class="p-16 bgc-F3F4F6 b-rad-12 tz-an-f">
  85. <view class="fc-0 fw-400 fs-24 mb-4">是否电话通知</view>
  86. <view class="fc-9 fw-400 fs-24">若开启,则订单送达系统自动曝光(电话)通知</view>
  87. <view class="tz-an">
  88. <view class="r-right" @click="fromData.is_default == 1?fromData.is_default=0:fromData.is_default=1"
  89. :class="fromData.is_default == 0?'n-r':'s-r'">
  90. <view class="r-y"></view>
  91. </view>
  92. </view>
  93. </view>
  94. <view class="p-b-20"></view>
  95. </view>
  96. <view class="box-card box-border-box mb-20 bgc-f flex-justify-space">
  97. <view class="fs-28 fw-600 w158">支付方式</view>
  98. <view class="wx-box display-flex">
  99. <image src="@/static/img/common/wx-zf.png" mode="scaleToFill"></image>
  100. <view class="fs-28 fw-400 ml-10">微信支付</view>
  101. </view>
  102. </view>
  103. </view>
  104. <view class="bottom-box box-border-box p-24">
  105. <view class="flex-justify-space">
  106. <view class="align-items-flex-end box-1">
  107. <span class="fs-28 fc-f fw-600">¥</span>
  108. <span class="fs-44 fc-f fw-600">19.5</span>
  109. </view>
  110. <view class="text-align-center box-2 fs-32 fc-f fw-600" @click="toSave()">立即支付</view>
  111. </view>
  112. </view>
  113. <Coupon ref="coupon" @giveCouPon='giveCouPon'></Coupon>
  114. <SelectAddress ref="selectAddress" @giveAddress='giveAddress'></SelectAddress>
  115. <Time ref="selectTime" @giveTime='giveTime'></Time>
  116. <EditCode ref='editCode' v-model="codeList"></EditCode>
  117. </view>
  118. </template>
  119. <script>
  120. import Coupon from './confirm-mod/coupon.vue';
  121. import SelectAddress from './confirm-mod/select-address.vue';
  122. import Time from './confirm-mod/time.vue';
  123. import EditCode from './confirm-mod/edit-code.vue';
  124. export default {
  125. components:{Coupon,SelectAddress,Time,EditCode},
  126. data(){
  127. return{
  128. fromData:{
  129. is_default:0,
  130. },
  131. codeList:['1-3-3344','1-1-3344','12-11-3344','11-11-3344','1-3-3344','1-1-3344','12-11-3344','11-11-3344'],
  132. }
  133. },
  134. onLoad(e) {
  135. },
  136. methods:{
  137. selectFun(type){
  138. if(type === 1){
  139. this.$refs.coupon.getList();
  140. }else if(type === 2){
  141. this.$refs.selectAddress.getList();
  142. }else if(type === 3){
  143. this.$refs.selectTime.getList();
  144. }else if(type === 4){
  145. this.$refs.editCode.getList();
  146. }
  147. },
  148. giveCouPon(e){
  149. console.log(e);
  150. },
  151. giveAddress(e){
  152. console.log(e);
  153. },
  154. giveTime(e){
  155. console.log(e);
  156. },
  157. toSave(){
  158. console.log(this.codeList);
  159. },
  160. },
  161. }
  162. </script>
  163. <style scoped lang="scss">
  164. .code-box{
  165. min-height: 100rpx;
  166. background-color: #F3F4F6;
  167. border-radius: 12rpx;
  168. padding: 24rpx 24rpx 0 24rpx;
  169. .code-item{
  170. width: 156rpx;
  171. margin-right: 52rpx;
  172. margin-bottom: 16rpx;
  173. }
  174. .code-item:nth-child(3n){
  175. margin-right: 0 !important;
  176. }
  177. }
  178. .tz-an-f{
  179. position: relative;
  180. .tz-an{
  181. position: absolute;
  182. right: 16rpx;
  183. top: 0;
  184. }
  185. }
  186. .r-right{
  187. margin-top: 24rpx;
  188. width: 88rpx;
  189. height: 52rpx;
  190. border-radius: 200rpx;
  191. position: relative;
  192. .r-y{
  193. width: 44rpx;
  194. height: 44rpx;
  195. background: #FFFFFF;
  196. border-radius: 200rpx;
  197. position: absolute;
  198. top: 4rpx;
  199. }
  200. }
  201. .s-r{
  202. background-color: #41ABF5;
  203. transition: all 1s;
  204. .r-y{
  205. right: 4rpx !important;
  206. transition: all 1s;
  207. }
  208. }
  209. .n-r{
  210. background-color: #ccc;
  211. transition: all 1s;
  212. .r-y{
  213. left: 4rpx !important;
  214. transition: all 1s;
  215. }
  216. }
  217. .goods-img{
  218. width: 108rpx;
  219. height: 108rpx;
  220. border-radius: 8rpx;
  221. margin-right: 16rpx;
  222. }
  223. .right-icon{
  224. width: 32rpx;
  225. height: 32rpx;
  226. }
  227. .w376{
  228. width: 376rpx;
  229. }
  230. .w570{
  231. width: 570rpx;
  232. }
  233. .sd-box{
  234. padding: 3rpx 16rpx;
  235. height: 40rpx;
  236. line-height: 40rpx;
  237. background: rgba(251,61,3,0.1);
  238. border-radius: 8rpx 8rpx 8rpx 8rpx;
  239. }
  240. .confirm-order-box{
  241. position: relative;
  242. .bg-box{
  243. width: 100%;
  244. height: 448rpx;
  245. filter: blur(80rpx);
  246. background: linear-gradient(to right,rgba(176, 252, 250, 0.6),rgba(249,246,224,0.87),rgba(249,246,224,0.87));
  247. position: absolute;
  248. top: 0;
  249. left: 0;
  250. z-index: -1;
  251. }
  252. .bottom-box{
  253. background-color: #fff;
  254. .box-1{
  255. flex: 1;
  256. height: 100rpx;
  257. background: #333;
  258. border-radius: 200rpx 0rpx 0rpx 200rpx;
  259. box-sizing: border-box;
  260. padding-left: 32rpx;
  261. padding-bottom: 20rpx;
  262. }
  263. .box-2{
  264. width: 200rpx;
  265. height: 100rpx;
  266. line-height: 100rpx;
  267. background: #41ABF5;
  268. border-radius: 0rpx 200rpx 200rpx 0rpx;
  269. text-align: center;
  270. }
  271. }
  272. .box-card{
  273. width: 100%;
  274. min-height: 88rpx;
  275. border-radius: 20rpx;
  276. padding: 24rpx 24rpx 0 24rpx;
  277. }
  278. .wx-box{
  279. image{
  280. width: 40rpx;
  281. height: 40rpx;
  282. }
  283. }
  284. .box-input{
  285. border-bottom: 2rpx solid #F9F9F9;
  286. }
  287. }
  288. </style>