order.vue 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. <template>
  2. <mobile-frame>
  3. <view class="main">
  4. <view class="one">
  5. <scroll-view scroll-y="true" class="scroll-view">
  6. <view class="list-scroll-view">
  7. <view class="one_1">
  8. <text class="localicon iconfont icon-dingweixiao"></text>
  9. <view class="other">
  10. <view class="name">
  11. <text>{{info.name}},</text>{{info.phone}}
  12. </view>
  13. <view class="other_1">
  14. {{info.address}}
  15. </view>
  16. </view>
  17. <text class="iconfont icon-jiantouyou"></text>
  18. </view>
  19. <view class="one_2">
  20. <view class="list">
  21. <view class="list_1">
  22. <view class="l">
  23. <text class="iconfont icon-shangdian"></text>
  24. <text>{{shop.shop}}</text>
  25. </view>
  26. </view>
  27. <view class="list_2">
  28. <view class="l">
  29. <image class="image" :src="shop.url&&shop.url.length>0?shop.url[0].url:''"
  30. mode=""></image>
  31. </view>
  32. <view class="c">
  33. <view class="name">
  34. {{shop.name}}
  35. </view>
  36. </view>
  37. <view class="r">
  38. <view class="price">
  39. ¥{{shop.price}}
  40. </view>
  41. <view class="num">
  42. ×{{shop.buy_num}}
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. <view class="one_3">
  49. <view class="other">
  50. <view class="other_1">配送方式</view>
  51. <view class="other_2"><text class="iconfont icon-duihao"></text>快递配送</view>
  52. </view>
  53. <view class="other">
  54. <view class="other_1">运费</view>
  55. <view class="other_2">¥{{info.freight}}</view>
  56. </view>
  57. <view class="other">
  58. <view class="other_1">订单备注</view>
  59. <view class="other_3">
  60. <input type="text" v-model="info.remarks" placeholder="选填,可填写您与卖家达成一致的要求" />
  61. </view>
  62. </view>
  63. </view>
  64. </view>
  65. </scroll-view>
  66. </view>
  67. <view class="two">
  68. <view class="two_1">
  69. <view>实付金额:</view>
  70. <view>¥{{info.money}}</view>
  71. </view>
  72. <view class="two_2">
  73. <text @click="toSubmit">提交订单</text>
  74. </view>
  75. </view>
  76. </view>
  77. </mobile-frame>
  78. </template>
  79. <script>
  80. export default {
  81. data() {
  82. return {
  83. info: {
  84. name: '张饱饱',
  85. phone: '12345678901',
  86. money: 79.8,
  87. freight: 7,
  88. address: '吉林省 长春市 朝阳区 南湖街道朝阳区吉林省科技厅科研园(富强街西)105'
  89. },
  90. shop: {
  91. shop: '官方自营店',
  92. status: '1',
  93. url: [{
  94. name: "20220928155634.jpg",
  95. uri: "/files/point/20220928155634.jpg",
  96. url: "https://broadcast.waityou24.cn/files/point/20220928155634.jpg"
  97. }],
  98. name: '饮用水',
  99. price: 58,
  100. buy_num: 1,
  101. market_num: 1,
  102. money: 58
  103. },
  104. };
  105. },
  106. onShow: function() {},
  107. methods: {
  108. // 提交订单
  109. toSubmit() {
  110. },
  111. }
  112. }
  113. </script>
  114. <style lang="scss">
  115. .main {
  116. display: flex;
  117. flex-direction: column;
  118. width: 100vw;
  119. height: 100vh;
  120. .one {
  121. position: relative;
  122. flex-grow: 1;
  123. background-color: var(--f1Color);
  124. .one_1 {
  125. display: flex;
  126. padding: 2vw;
  127. border-bottom: 1vw dashed var(--fcColor);
  128. .iconfont {
  129. line-height: 15vw;
  130. font-size: var(--font20Szie);
  131. }
  132. .other {
  133. width: 82vw;
  134. padding: 0 2vw;
  135. .name{
  136. font-size: var(--font16Size);
  137. }
  138. .other_1{
  139. font-size: var(--font14Size);
  140. color: var(--f85Color);
  141. }
  142. }
  143. }
  144. .one_2 {
  145. margin: 2vw 0 0 0;
  146. background-color: var(--mainColor);
  147. .list {
  148. width: 96vw;
  149. padding: 0 2vw;
  150. .list_1 {
  151. margin: 0 0 1vw 0;
  152. padding: 1vw 0;
  153. border-bottom: 0.1vw solid var(--fcColor);
  154. text {
  155. padding: 0 0 0 1vw;
  156. }
  157. }
  158. .list_2 {
  159. margin: 0 0 1vw 0;
  160. display: flex;
  161. .l {
  162. width: 20vw;
  163. .image {
  164. width: 100%;
  165. height: 20vw;
  166. border-radius: 5px;
  167. }
  168. }
  169. .c {
  170. width: 60vw;
  171. padding: 0 2vw;
  172. }
  173. .r {
  174. width: 15vw;
  175. text-align: right;
  176. }
  177. }
  178. }
  179. }
  180. .one_3 {
  181. width: 96vw;
  182. margin: 2vw 0 0 0;
  183. padding: 2vw;
  184. background-color: var(--mainColor);
  185. .other {
  186. display: flex;
  187. justify-content: space-between;
  188. border-bottom: 0.1vw solid var(--fcColor);
  189. margin: 0 0 2vw 0;
  190. padding: 2vw 0;
  191. .other_1 {
  192. font-size: var(--font16Size);
  193. color: var(--f85Color);
  194. }
  195. .other_3 {
  196. flex-grow: 1;
  197. margin: 0 0 0 2vw;
  198. font-size: var(--font12Size);
  199. }
  200. text {
  201. padding: 0 1vw 0 0;
  202. font-size: var(--font20Szie);
  203. }
  204. }
  205. }
  206. }
  207. .two {
  208. display: flex;
  209. justify-content: space-between;
  210. border-top: 0.1vw solid var(--fcColor);
  211. .two_1 {
  212. display: flex;
  213. align-items: center;
  214. padding: 0 2vw;
  215. font-size: var(--font16Size);
  216. view:last-child {
  217. margin: 0 0 0 2vw;
  218. color: var(--ff0Color);
  219. font-weight: bold;
  220. }
  221. }
  222. .two_2 {
  223. padding: 3vw 4vw;
  224. color: var(--mainColor);
  225. font-size: var(--font16Size);
  226. background-color: var(--ff0Color);
  227. }
  228. }
  229. }
  230. .scroll-view {
  231. position: absolute;
  232. top: 0;
  233. left: 0;
  234. right: 0;
  235. bottom: 0;
  236. .list-scroll-view {
  237. display: flex;
  238. flex-direction: row;
  239. flex-wrap: wrap;
  240. }
  241. }
  242. </style>