index.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <template>
  2. <view class="pay">
  3. <!-- header -->
  4. <cu-custom isBack bgColor="bg-gradual-blue"><view slot="content">确认订单</view></cu-custom>
  5. <view @click="addressListFunc" class="padding bg-white flex align-center">
  6. <view style="flex: auto;">
  7. <view class="margin-bottom-sm flex align-center">
  8. <text class="cu-tag text-white round sm margin-right-xs" style="background-color:#ee0a24;">默认</text>
  9. 河南省郑州市中原区石佛镇
  10. </view>
  11. <view class="margin-bottom-sm text-bold text-black text-lg">详细地址</view>
  12. <view class=" text-black text-lg">张三 1886458562</view>
  13. </view>
  14. <text style="min-width: 40upx;" class="cuIcon-right lg text-gray text-center"></text>
  15. </view>
  16. <view class="padding bg-white margin-tb-sm">
  17. <view class="padding-bottom-sm flex justify-between">
  18. <view class="text-black text-bold">商品清单</view>
  19. <view @click="show = true" class="text-gray flex align-center">
  20. 共n件
  21. <text class="cuIcon-right lg "></text>
  22. </view>
  23. </view>
  24. <scroll-view style="width: 100%;flex-wrap: nowrap;height: 180upx;" class="flex " enable-flex scroll-x="true">
  25. <image
  26. @click="show = true"
  27. class="margin-right"
  28. v-for="(item, index) in 5"
  29. :key="index"
  30. style="min-width: 180upx; width: 180upx;height: 180upx;"
  31. src="https://gd-hbimg.huaban.com/1f50f2135ba51e4b9aa20caef41860b15005c9386f0b-LxqWsh_fw658/format/webp"
  32. mode="aspectFit"
  33. ></image>
  34. </scroll-view>
  35. </view>
  36. <!-- footer -->
  37. <view class="footer">
  38. <view class="footer-content flex padding justify-between align-center bg-white">
  39. <view class="flex align-end">
  40. <view class="margin-right-xs text-black">实付款</view>
  41. <view style="transform: translateY(10upx);" class="text-price text-red"><cu-price value="500" size="52" /></view>
  42. </view>
  43. <button class="bg-red cu-btn round ">提交订单</button>
  44. </view>
  45. </view>
  46. <!-- 工具 -->
  47. <cu-modalC :show.sync="show" custom="2">
  48. <view class="padding text-center text-lg text-black text-bold border">
  49. 商品清单1
  50. <text class="text-sm" style="color:#999">(共n件)</text>
  51. </view>
  52. <cu-scrollView height="50vh">
  53. <view class="flex padding">
  54. <image
  55. class="radius margin-right-sm"
  56. style="width: 160upx;height: 160upx;min-width: 160upx;"
  57. lazy-load="true"
  58. src="https://gd-hbimg.huaban.com/1f50f2135ba51e4b9aa20caef41860b15005c9386f0b-LxqWsh_fw658/format/webp"
  59. mode="aspectFit"
  60. ></image>
  61. <view style="flex:auto" class="content margin-right-sm">
  62. <view class="text-black cut">商品名称</view>
  63. <view class="text-grey margin-top-xs">尺码 大小</view>
  64. </view>
  65. </view>
  66. </cu-scrollView>
  67. </cu-modalC>
  68. </view>
  69. </template>
  70. <script>
  71. export default {
  72. data() {
  73. return {
  74. show: false
  75. };
  76. },
  77. methods:{
  78. addressListFunc(){
  79. uni.navigateTo({
  80. url:"/loginPages/addressList/index"
  81. })
  82. }
  83. }
  84. };
  85. </script>
  86. <style lang="scss" scoped>
  87. .pay {
  88. .border {
  89. position: relative;
  90. &::after {
  91. content: '';
  92. border-top: 1upx solid #ccc;
  93. position: absolute;
  94. left: 0;
  95. bottom: 0;
  96. transform: scale(1, 0.5);
  97. width: 100%;
  98. }
  99. }
  100. .footer {
  101. height: calc(120rpx + env(safe-area-inset-bottom));
  102. .footer-content {
  103. width: 100vw;
  104. padding-bottom: calc(30upx + env(safe-area-inset-bottom)) !important;
  105. box-sizing: border-box;
  106. position: fixed;
  107. left: 0;
  108. bottom: 0;
  109. z-index: 999;
  110. }
  111. }
  112. }
  113. </style>