order-pay.vue 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. <template>
  2. <view class="order-pay">
  3. <view class="top-tip">请对每家店铺分别进行付款</view>
  4. <view class="shop-info">
  5. <view class="shop-name">浙江瑞琪</view>
  6. <view class="product-list">
  7. <view class="product">
  8. <image class="cover" src="https://picsum.photos/200/200" mode="widthFix"></image>
  9. <view class="content">
  10. <view class="title">韩国恩盛进口氢洁气小气泡清韩国恩盛盛进口氢洁气小气泡清...</view>
  11. <view class="unit">规格:10ml/盒</view>
  12. <view class="tags">
  13. <view class="tag type1">促销</view>
  14. <view class="tag type1">自营</view>
  15. <view class="tag type2">活动价</view>
  16. </view>
  17. <view class="price">
  18. <text class="active">¥50.00</text>
  19. <text class="deleted">¥80.00</text>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="total">
  25. <text>优惠:¥20.00</text>
  26. <text>已付:¥0</text>
  27. </view>
  28. <view class="foot">
  29. <view class="price">
  30. <text>待付:</text>
  31. <text class="active">¥100.00</text>
  32. </view>
  33. <view class="submit">付款</view>
  34. </view>
  35. </view>
  36. <view class="shop-info">
  37. <view class="shop-name">浙江瑞琪</view>
  38. <view class="product-list">
  39. <view class="product">
  40. <image class="cover" src="https://picsum.photos/200/200" mode="widthFix"></image>
  41. <view class="content">
  42. <view class="title">韩国恩盛进口氢洁气小气泡清韩国恩盛盛进口氢洁气小气泡清...</view>
  43. <view class="unit">规格:10ml/盒</view>
  44. <view class="tags">
  45. <view class="tag type1">促销</view>
  46. <view class="tag type1">自营</view>
  47. <view class="tag type2">活动价</view>
  48. </view>
  49. <view class="price">
  50. <text class="active">¥50.00</text>
  51. <text class="deleted">¥80.00</text>
  52. </view>
  53. </view>
  54. </view>
  55. </view>
  56. <!-- <view class="total">
  57. <text>优惠:¥20.00</text>
  58. <text>已付:¥0</text>
  59. </view> -->
  60. <view class="foot">
  61. <view class="price">
  62. <text>待付:</text>
  63. <text class="active">¥100.00</text>
  64. </view>
  65. <view class="submit">付款</view>
  66. </view>
  67. </view>
  68. <view class="shop-info">
  69. <view class="shop-name">采美快递物流商</view>
  70. <view class="product-list">
  71. <view class="product">
  72. <image class="cover" src="https://picsum.photos/200/200" mode="widthFix"></image>
  73. <view class="content between">
  74. <view class="title">运费</view>
  75. <view class="price"><text>¥50.00</text></view>
  76. <view class="count">×7</view>
  77. </view>
  78. </view>
  79. </view>
  80. <view class="total">
  81. <!-- <text>优惠:¥20.00</text> -->
  82. <text>已付:¥0</text>
  83. </view>
  84. <view class="foot">
  85. <view class="price">
  86. <text>待付:</text>
  87. <text class="active">¥100.00</text>
  88. </view>
  89. <view class="submit" @click="onPay">付款</view>
  90. </view>
  91. </view>
  92. <!-- 弹框 -->
  93. <tui-modal
  94. :show="modal"
  95. :size="30"
  96. :button="[{ text: '确定', type: 'danger' }]"
  97. shape="circle"
  98. color="#333333"
  99. title="提示"
  100. content="抱歉,该商品支付正在调整暂不支持下单!"
  101. @click="onConfirm"
  102. ></tui-modal>
  103. </view>
  104. </template>
  105. <script>
  106. export default {
  107. data() {
  108. return {
  109. modal: true
  110. }
  111. },
  112. methods: {
  113. onConfirm(e) {
  114. if (e.index) return
  115. this.modal = false
  116. },
  117. onPay() {
  118. this.modal = true
  119. }
  120. }
  121. }
  122. </script>
  123. <style lang="scss" scoped>
  124. .order-pay {
  125. min-height: 100vh;
  126. background: #f7f7f7;
  127. .top-tip {
  128. height: 80rpx;
  129. line-height: 80rpx;
  130. padding: 0 24rpx;
  131. background: #fff3f7;
  132. color: #ff457b;
  133. font-size: 26rpx;
  134. }
  135. .shop-info {
  136. padding: 32rpx 24rpx;
  137. background-color: #fff;
  138. margin-bottom: 20rpx;
  139. .shop-name {
  140. font-size: 30rpx;
  141. color: #333333;
  142. font-weight: bold;
  143. }
  144. .product-list {
  145. .product {
  146. display: flex;
  147. margin: 20rpx 0;
  148. .cover {
  149. width: 180rpx;
  150. height: 180rpx;
  151. border-radius: 8rpx;
  152. background-color: #f7f7f7;
  153. }
  154. .content {
  155. position: relative;
  156. width: 500rpx;
  157. margin-left: 16rpx;
  158. .count {
  159. position: absolute;
  160. bottom: 0;
  161. right: 0;
  162. font-size: 26rpx;
  163. color: #666;
  164. }
  165. &.between {
  166. display: flex;
  167. flex-direction: column;
  168. justify-content: space-between;
  169. }
  170. .title {
  171. font-size: 28rpx;
  172. color: #333333;
  173. text-align: justify;
  174. height: 72rpx;
  175. line-height: 36rpx;
  176. }
  177. .unit {
  178. font-size: 20rpx;
  179. color: #999999;
  180. margin: 8rpx 0;
  181. }
  182. .tags {
  183. display: flex;
  184. justify-content: flex-start;
  185. align-items: center;
  186. width: 100%;
  187. height: 30rpx;
  188. .tag {
  189. margin-right: 8rpx;
  190. font-size: 22rpx;
  191. height: 30rpx;
  192. line-height: 30rpx;
  193. text-align: center;
  194. &.type1 {
  195. padding: 0 8rpx;
  196. background: #f83c6c;
  197. border-radius: 4rpx;
  198. color: #fff;
  199. }
  200. &.type2 {
  201. width: 80rpx;
  202. color: #f83c6c;
  203. background: url(https://static.caimei365.com/app/mini-hehe/icon/icon-active.png) top center no-repeat;
  204. background-size: contain;
  205. }
  206. &.type3 {
  207. width: 80rpx;
  208. background: linear-gradient(270deg, #ff457b 0%, #b03bb8 51%, #6431f2 100%);
  209. color: #fff;
  210. border-radius: 4rpx;
  211. }
  212. &.type4 {
  213. border: 1rpx solid #f83c6c;
  214. padding: 0 6rpx;
  215. color: #f83c6c;
  216. border-radius: 4rpx;
  217. }
  218. }
  219. }
  220. }
  221. .price {
  222. font-size: 26rpx;
  223. .active {
  224. color: #ff457b;
  225. }
  226. .deleted {
  227. font-size: 24rpx;
  228. color: #999;
  229. text-decoration: line-through;
  230. }
  231. }
  232. }
  233. }
  234. .total {
  235. padding-left: 220rpx - 24rpx;
  236. margin: 16rpx 0 20rpx;
  237. font-size: 26rpx;
  238. color: #333;
  239. text {
  240. &:nth-child(2) {
  241. margin-left: 56rpx;
  242. }
  243. }
  244. }
  245. .foot {
  246. display: flex;
  247. justify-content: flex-end;
  248. align-items: center;
  249. .price {
  250. font-size: 26rpx;
  251. color: #333333;
  252. .active {
  253. color: #ff457b;
  254. }
  255. }
  256. .submit {
  257. display: flex;
  258. justify-content: center;
  259. align-items: center;
  260. width: 160rpx;
  261. height: 64rpx;
  262. margin-left: 40rpx;
  263. background: linear-gradient(90deg, #fa55bf 0%, #f83c6c 100%);
  264. color: #ffffff;
  265. border-radius: 32rpx;
  266. font-size: 26rpx;
  267. }
  268. }
  269. }
  270. }
  271. </style>