integral_mall_confirmorder.vue 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  1. <template>
  2. <view>
  3. <!-- 确认订单 -->
  4. <view class="content-top">
  5. <view class="addressInfo" >
  6. <view class="top">
  7. <view class="name">{{ addressInfo.name }}</view>
  8. <view class="phone">{{ addressInfo.phone }}</view>
  9. <!-- <view class="tag">
  10. <text v-for="(item, index) in addressInfo.tag" :key="index" :class="{red:item.tagText=='默认'}">{{ item.tagText }}</text>
  11. </view> -->
  12. </view>
  13. <view class="bottom">
  14. {{addressInfo.site}}
  15. <u-icon name="edit-pen" :size="40" color="#999999" @click="handleSelecAddress"></u-icon>
  16. </view>
  17. </view>
  18. </view>
  19. <view class="content-center">
  20. <view class="order">
  21. <view class="item" v-for="(item, index) in list" :key="index">
  22. <view class="left"><image :src="item.image" mode="aspectFill"></image></view>
  23. <view class="content">
  24. <view class="title u-line-2">{{ item.title }}</view>
  25. <view class="type">{{ item.type }}</view>
  26. <!-- <view class="delivery-time">发货时间 {{ item.deliveryTime }}</view> -->
  27. <view class="price-row">
  28. <view class="count-text">
  29. 数量
  30. </view>
  31. <view class="count">
  32. ×{{ item.count }}
  33. </view>
  34. </view>
  35. <view class="price">
  36. {{ item.price }}积分
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. <view class="navigation">
  43. <view class="left">
  44. <view class="item">
  45. <view class="total">合计:<text style="color: #ff7900;">2条</text></view>
  46. </view>
  47. </view>
  48. <view class="right">
  49. <view class="buy btn u-line-1" @click="handleSubmit">立即兑换</view>
  50. </view>
  51. </view>
  52. </view>
  53. </template>
  54. <script>
  55. export default {
  56. data() {
  57. return {
  58. addressInfo: {
  59. id: 1,
  60. name: '游学中华',
  61. phone: '18323455233',
  62. tag: [
  63. {
  64. tagText: '默认'
  65. },
  66. {
  67. tagText: '家'
  68. }
  69. ],
  70. site: '广东省深圳市宝安区 自由路66号'
  71. },
  72. list: [{
  73. price: 35,
  74. title: '175/70R14 88T XL SH08 BGSL',
  75. count: '100',
  76. image: 'https://img12.360buyimg.com/n7/jfs/t16642/126/2693663818/450163/6879e8ce/5b06d93bN6305bd94.png',
  77. },
  78. {
  79. price: 75,
  80. title: '175/70R14 88T XL SH08 BGSL',
  81. count: '100',
  82. image: 'https://img12.360buyimg.com/n7/jfs/t1/47645/22/6120/140457/5d3d17deEec9f8e8d/3687ff03ca89b48c.jpg',
  83. },
  84. {
  85. price: 385,
  86. title: '175/70R14 88T XL SH08 BGSL',
  87. count: '100',
  88. image: 'https://img11.360buyimg.com/n7/jfs/t1/88990/24/4208/105799/5de4c6e9E24bc09d0/f810effb14c9c13a.jpg',
  89. },
  90. {
  91. price: 784,
  92. title: '175/70R14 88T XL SH08 BGSL',
  93. count: '100',
  94. image: 'https://img12.360buyimg.com/n7/jfs/t1/93698/23/4500/114562/5de713dfEfc997085/e8deaa979909851d.jpg',
  95. },
  96. {
  97. price: 7891,
  98. title: '175/70R14 88T XL SH08 BGSL',
  99. count: '100',
  100. image: 'https://img11.360buyimg.com/n7/jfs/t16642/126/2693663818/450163/6879e8ce/5b06d93bN6305bd94.png',
  101. },
  102. {
  103. price: 2341,
  104. count: '100',
  105. title: '175/70R14 88T XL SH08 BGSL',
  106. image: 'https://img10.360buyimg.com/n7/jfs/t1/68753/35/2229/118427/5d089fb7Ee5b93887/2e3bbc7fec247fdc.jpg',
  107. },
  108. {
  109. price: 661,
  110. count: '100',
  111. title: '175/70R14 88T XL SH08 BGSL',
  112. image: 'https://img10.360buyimg.com/n7/jfs/t1/68753/35/2229/118427/5d089fb7Ee5b93887/2e3bbc7fec247fdc.jpg',
  113. },
  114. {
  115. price: 1654,
  116. title: '175/70R14 88T XL SH08 BGSL',
  117. count: '100',
  118. image: 'https://img10.360buyimg.com/n7/jfs/t1/68753/35/2229/118427/5d089fb7Ee5b93887/2e3bbc7fec247fdc.jpg',
  119. },
  120. {
  121. price: 1678,
  122. title: '175/70R14 88T XL SH08 BGSL',
  123. count: '100',
  124. image: 'https://img10.360buyimg.com/n7/jfs/t1/68753/35/2229/118427/5d089fb7Ee5b93887/2e3bbc7fec247fdc.jpg',
  125. },
  126. {
  127. price: 924,
  128. title: '175/70R14 88T XL SH08 BGSL',
  129. count: '100',
  130. image: 'https://img10.360buyimg.com/n7/jfs/t1/68753/35/2229/118427/5d089fb7Ee5b93887/2e3bbc7fec247fdc.jpg',
  131. },
  132. {
  133. price: 8243,
  134. title: '175/70R14 88T XL SH08 BGSL',
  135. count: '100',
  136. image: 'https://img10.360buyimg.com/n7/jfs/t1/68753/35/2229/118427/5d089fb7Ee5b93887/2e3bbc7fec247fdc.jpg',
  137. },
  138. ]
  139. }
  140. },
  141. methods: {
  142. handleSubmit: function(){
  143. },
  144. handleSelecAddress: function(){
  145. uni.navigateTo({
  146. url: "/pages/me/address"
  147. })
  148. }
  149. }
  150. }
  151. </script>
  152. <style lang="scss" scoped>
  153. .content-top{
  154. background-color: #0094FE;
  155. padding-bottom: 119rpx;
  156. .addressInfo {
  157. padding: 40rpx 20rpx;
  158. background-color: #FFFFFF;
  159. width: 712rpx;
  160. margin: 0 auto;
  161. border-radius: 20rpx;
  162. .top {
  163. display: flex;
  164. font-weight: bold;
  165. font-size: 34rpx;
  166. .phone {
  167. margin-left: 60rpx;
  168. }
  169. .tag {
  170. display: flex;
  171. font-weight: normal;
  172. align-items: center;
  173. text {
  174. display: block;
  175. width: 60rpx;
  176. height: 34rpx;
  177. line-height: 34rpx;
  178. color: #ffffff;
  179. font-size: 20rpx;
  180. border-radius: 6rpx;
  181. text-align: center;
  182. margin-left: 30rpx;
  183. background-color:rgb(49, 145, 253);
  184. }
  185. .red{
  186. background-color:red
  187. }
  188. }
  189. }
  190. .bottom {
  191. display: flex;
  192. margin-top: 20rpx;
  193. font-size: 28rpx;
  194. justify-content: space-between;
  195. color: #999999;
  196. }
  197. }
  198. }
  199. .content-center{
  200. width: 712rpx;
  201. margin: -106rpx auto 0 auto;
  202. border-radius: 20rpx;
  203. background-color: #FFFFFF;
  204. padding: 26rpx;
  205. .order {
  206. background-color: #ffffff;
  207. // margin: 20rpx auto;
  208. border-radius: 20rpx;
  209. box-sizing: border-box;
  210. padding: 20rpx;
  211. font-size: 28rpx;
  212. .top {
  213. display: flex;
  214. justify-content: space-between;
  215. .left {
  216. display: flex;
  217. align-items: center;
  218. .store {
  219. margin: 0 10rpx;
  220. font-size: 32rpx;
  221. font-weight: bold;
  222. }
  223. }
  224. .right {
  225. color: $u-type-warning-dark;
  226. }
  227. }
  228. .item {
  229. display: flex;
  230. margin: 20rpx 0 0;
  231. .left {
  232. margin-right: 20rpx;
  233. image {
  234. width: 200rpx;
  235. height: 200rpx;
  236. border-radius: 10rpx;
  237. }
  238. }
  239. .content {
  240. .title {
  241. font-size: 28rpx;
  242. line-height: 50rpx;
  243. }
  244. .type {
  245. margin: 10rpx 0;
  246. font-size: 24rpx;
  247. color: $u-tips-color;
  248. }
  249. .delivery-time {
  250. color: #e5d001;
  251. font-size: 24rpx;
  252. }
  253. .price-row{
  254. display: flex;
  255. justify-content: space-between;
  256. margin: 10rpx 0;
  257. font-size: 26rpx;
  258. .price{
  259. color: #FF0000;
  260. }
  261. .exchange{
  262. background: #0094FE;
  263. color: #FFFFFF;
  264. padding: 4rpx 16rpx;
  265. line-height: 1.5;
  266. },
  267. .count-text{
  268. color: #999999;
  269. font-size: 18rpx;
  270. }
  271. .count{
  272. color: #999999;
  273. font-size: 18rpx;
  274. }
  275. }
  276. }
  277. .right {
  278. margin-left: 10rpx;
  279. padding-top: 20rpx;
  280. text-align: right;
  281. .decimal {
  282. font-size: 24rpx;
  283. margin-top: 4rpx;
  284. }
  285. .number {
  286. color: $u-tips-color;
  287. font-size: 24rpx;
  288. }
  289. }
  290. }
  291. .total {
  292. margin-top: 20rpx;
  293. text-align: right;
  294. font-size: 24rpx;
  295. .total-price {
  296. font-size: 32rpx;
  297. }
  298. }
  299. .bottom {
  300. display: flex;
  301. margin-top: 40rpx;
  302. padding: 0 10rpx;
  303. justify-content: space-between;
  304. align-items: center;
  305. .btn {
  306. line-height: 52rpx;
  307. width: 160rpx;
  308. border-radius: 26rpx;
  309. border: 2rpx solid $u-border-color;
  310. font-size: 26rpx;
  311. text-align: center;
  312. color: $u-type-info-dark;
  313. }
  314. .evaluate {
  315. color: $u-type-warning-dark;
  316. border-color: $u-type-warning-dark;
  317. }
  318. }
  319. }
  320. }
  321. .navigation {
  322. display: flex;
  323. width: 100%;
  324. justify-content: space-between;
  325. margin-top: 100rpx;
  326. border: solid 2rpx #f2f2f2;
  327. background-color: #ffffff;
  328. padding: 16rpx 0;
  329. position: fixed;
  330. bottom: 0;
  331. z-index: 100;
  332. .left {
  333. display: flex;
  334. // font-size: 20rpx;
  335. .item {
  336. margin: 0 30rpx;
  337. display: flex;
  338. align-items: center;
  339. justify-content: center;
  340. .total{
  341. font: 34rpx;
  342. }
  343. &.car {
  344. text-align: center;
  345. position: relative;
  346. .car-num {
  347. position: absolute;
  348. top: -10rpx;
  349. right: -10rpx;
  350. }
  351. }
  352. }
  353. }
  354. .right {
  355. display: flex;
  356. font-size: 28rpx;
  357. align-items: center;
  358. .btn {
  359. line-height: 66rpx;
  360. padding: 0 30rpx;
  361. border-radius: 36rpx;
  362. color: #ffffff;
  363. }
  364. .cart {
  365. background-color: #ed3f14;
  366. margin-right: 30rpx;
  367. }
  368. .buy {
  369. margin: 0 16rpx;
  370. background-color: #ff7900;
  371. }
  372. }
  373. }
  374. </style>