submitOrder.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <template>
  2. <view class="w-full">
  3. <send-type @sendTypeChange="sendTypeChange" />
  4. <view class="gap"></view>
  5. <!-- <view class="address">
  6. <u-cell-group>
  7. <u-cell title="添加收货地址" :border="false" url='' isLink>
  8. <u-icon slot="icon" size="24" name="plus"></u-icon>
  9. </u-cell>
  10. </u-cell-group>
  11. </view> -->
  12. <view class="padding-sm dflex-b bg-main" @click="show = true">
  13. <view class="dflex">
  14. <!-- <view class="addr-label">配送至</view> -->
  15. <view class="w-full dflex-wrap-w send-label">
  16. 取餐时间
  17. </view>
  18. </view>
  19. <u-icon slot="icon" size="20" name="arrow-right" :label="value" labelPos="left"></u-icon>
  20. <!-- <view class="iconfont iconjiantou-01 fs-sm"></view> -->
  21. </view>
  22. <u-datetime-picker :show="show" v-model="value" mode="time" @confirm="onConfirm"
  23. @cancel="onCancel"></u-datetime-picker>
  24. <view class="gap"></view>
  25. <view class="padding-sm dflex-b bg-main">
  26. <view class="dflex">
  27. <!-- <view class="addr-label">配送至</view> -->
  28. <view class="w-full dflex-wrap-w send-label">
  29. 取餐方式
  30. </view>
  31. </view>
  32. <view>
  33. <radio style="margin: 0 10px; transform: scale(0.85)" value="r1" :checked="true" color="#ff0000" class="radio">店内用餐
  34. </radio >
  35. <radio style="transform: scale(0.85)" value="r1" :checked="true" color="#ff0000" class="radio">打包带走
  36. </radio>
  37. </view>
  38. <!-- <view class="iconfont iconjiantou-01 fs-sm"></view> -->
  39. </view>
  40. <view class="gap"></view>
  41. <view class="goods-order-list w-full padding-lr-sm">
  42. <view class="shop dflex-b ">
  43. <view class="shop-check">
  44. <text class="shop-name">xxx学校xx年级xx班级</text>
  45. </view>
  46. </view>
  47. <view class="goods-cart w-full">
  48. <view class="goods-cont padding-tb" v-for="index in 1" :key="index">
  49. <my-goods :data="data">
  50. <view class="good-num">×1</view>
  51. </my-goods>
  52. </view>
  53. </view>
  54. </view>
  55. <!-- 金额明细 -->
  56. <view class="bg-main">
  57. <view class="dflex-b padding-lr padding-tb-sm">
  58. <view class="flex1">总金额</view>
  59. <view class=""><text style="font-size: 24rpx;">¥</text>46.32</view>
  60. </view>
  61. <!-- <view class="dflex-b padding-lr padding-tb-sm">
  62. <view class="flex1">运费 (总重:4.960 kg )</view>
  63. <view class="ft-base">¥10.00</view>
  64. </view>
  65. <view class="dflex-b padding-lr padding-tb-sm">
  66. <view class="margin-right-xl">备注</view>
  67. <input class="flex1 padding-sm" type="text" v-model="order_desc" placeholder="请填写买家备注"
  68. placeholder-class="placeholder" />
  69. </view> -->
  70. </view>
  71. <view class="gap"></view>
  72. <my-gap :height="130" />
  73. <view class="submit-bar padding-sm dflex-b">
  74. <view class="submit-btn dflex-c background-gradient" @click="toBuy">立即下单</view>
  75. </view>
  76. </view>
  77. </template>
  78. <script>
  79. export default {
  80. data() {
  81. return {
  82. data: {
  83. src: '../../static/x0.jpg',
  84. title: '标题标题标题标题标题标题标题标题标题标题标题标题标题标题标题',
  85. spec: '180cm',
  86. price: '53.30'
  87. },
  88. show: false,
  89. value: '',
  90. }
  91. },
  92. methods: {
  93. sendTypeChange(v) {
  94. console.log(v)
  95. },
  96. onConfirm(v) {
  97. console.log('vvvvvvvvvvvvvvv', v)
  98. this.value = v.value
  99. this.show = false
  100. },
  101. onCancel() {
  102. this.show = false
  103. },
  104. toBuy() {
  105. uni.navigateTo({
  106. url: `/pages/order/orderPaid/orderPaid`
  107. })
  108. }
  109. }
  110. }
  111. </script>
  112. <style lang="scss" scoped>
  113. .addr-label {
  114. padding: 6upx 0;
  115. border-radius: 3px;
  116. background-color: #F6390D;
  117. color: #fff;
  118. width: 120upx;
  119. text-align: center;
  120. flex-shrink: 0;
  121. margin-right: 14upx;
  122. }
  123. .order-spec {
  124. padding-bottom: 10upx;
  125. }
  126. .shop {
  127. padding-top: 20upx;
  128. }
  129. .goods-num {
  130. font-size: 16px;
  131. padding-left: 20upx;
  132. }
  133. .goods-cont {
  134. width: 100%;
  135. box-sizing: border-box;
  136. }
  137. .total-goods {
  138. font-size: 12px;
  139. color: #999;
  140. }
  141. .submit-bar {
  142. height: 130rpx;
  143. width: 100%;
  144. background-color: #FFF;
  145. position: fixed;
  146. left: 0;
  147. bottom: 0;
  148. box-shadow: 0px -4px 16px 0px rgba(0, 0, 0, 0.15);
  149. z-index: 10;
  150. .submit-btn {
  151. background-color: #0581FE;
  152. height: 100%;
  153. width: 100%;
  154. color: #FFF;
  155. font-size: 14px;
  156. // font-weight: 700;
  157. border-radius: 35upx;
  158. }
  159. }
  160. .good-num {
  161. font-size: 12px;
  162. padding-top: 40rpx;
  163. }
  164. .send-label{
  165. font-size: 14px;
  166. font-weight: 700;
  167. }
  168. </style>