order-pay.vue 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  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">
  74. <view class="title">韩国恩盛进口氢洁气小气泡清韩国恩盛盛进口氢洁气小气泡清...</view>
  75. <view class="unit">规格:10ml/盒</view>
  76. <view class="tags">
  77. <view class="tag type1">促销</view>
  78. <view class="tag type1">自营</view>
  79. <view class="tag type2">活动价</view>
  80. </view>
  81. <view class="price">
  82. <text class="active">¥50.00</text>
  83. <text class="deleted">¥80.00</text>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. <!-- <view class="total">
  89. <text>优惠:¥20.00</text>
  90. <text>已付:¥0</text>
  91. </view> -->
  92. <view class="foot">
  93. <view class="price">
  94. <text>待付:</text>
  95. <text class="active">¥100.00</text>
  96. </view>
  97. <view class="submit">付款</view>
  98. </view>
  99. </view>
  100. <view class="shop-info">
  101. <view class="shop-name">采美快递物流商</view>
  102. <view class="product-list">
  103. <view class="product">
  104. <image class="cover" src="https://picsum.photos/200/200" mode="widthFix"></image>
  105. <view class="content between">
  106. <view class="title">运费</view>
  107. <view class="price"><text>¥50.00</text></view>
  108. <view class="count">×7</view>
  109. </view>
  110. </view>
  111. </view>
  112. <view class="total">
  113. <!-- <text>优惠:¥20.00</text> -->
  114. <text>已付:¥0</text>
  115. </view>
  116. <view class="foot">
  117. <view class="price">
  118. <text>待付:</text>
  119. <text class="active">¥100.00</text>
  120. </view>
  121. <view class="submit" @click="onPay">付款</view>
  122. </view>
  123. </view>
  124. <!-- 弹框 -->
  125. <tui-modal
  126. :show="modal"
  127. :size="30"
  128. :button="[{ text: '确定', type: 'danger' }]"
  129. shape="circle"
  130. color="#333333"
  131. title="提示"
  132. content="抱歉,该商品支付正在调整暂不支持下单!"
  133. @click="onConfirm"
  134. ></tui-modal>
  135. </view>
  136. </template>
  137. <script>
  138. export default {
  139. data() {
  140. return {
  141. modal: false
  142. }
  143. },
  144. methods: {
  145. onConfirm(e) {
  146. if (e.index) return
  147. this.modal = false
  148. },
  149. onPay() {
  150. this.modal = true
  151. }
  152. }
  153. }
  154. </script>
  155. <style lang="scss" scoped>
  156. .order-pay {
  157. min-height: 100vh;
  158. background: #f7f7f7;
  159. .top-tip {
  160. position: sticky;
  161. top: 0;
  162. z-index: 99;
  163. width: 750rpx;
  164. height: 80rpx;
  165. line-height: 80rpx;
  166. padding: 0 24rpx;
  167. background: #fff3f7;
  168. color: #ff457b;
  169. font-size: 26rpx;
  170. box-sizing: border-box;
  171. }
  172. .shop-info {
  173. padding: 32rpx 24rpx;
  174. background-color: #fff;
  175. margin-bottom: 20rpx;
  176. .shop-name {
  177. font-size: 30rpx;
  178. color: #333333;
  179. font-weight: bold;
  180. }
  181. .product-list {
  182. .product {
  183. display: flex;
  184. margin: 20rpx 0;
  185. .cover {
  186. width: 180rpx;
  187. height: 180rpx;
  188. border-radius: 8rpx;
  189. background-color: #f7f7f7;
  190. }
  191. .content {
  192. position: relative;
  193. width: 500rpx;
  194. margin-left: 16rpx;
  195. .count {
  196. position: absolute;
  197. bottom: 0;
  198. right: 0;
  199. font-size: 26rpx;
  200. color: #666;
  201. }
  202. &.between {
  203. display: flex;
  204. flex-direction: column;
  205. justify-content: space-between;
  206. }
  207. .title {
  208. font-size: 28rpx;
  209. color: #333333;
  210. text-align: justify;
  211. height: 72rpx;
  212. line-height: 36rpx;
  213. }
  214. .unit {
  215. font-size: 20rpx;
  216. color: #999999;
  217. margin: 8rpx 0;
  218. }
  219. .tags {
  220. display: flex;
  221. justify-content: flex-start;
  222. align-items: center;
  223. width: 100%;
  224. height: 30rpx;
  225. .tag {
  226. margin-right: 8rpx;
  227. font-size: 22rpx;
  228. height: 30rpx;
  229. line-height: 30rpx;
  230. text-align: center;
  231. &.type1 {
  232. padding: 0 8rpx;
  233. background: #f83c6c;
  234. border-radius: 4rpx;
  235. color: #fff;
  236. }
  237. &.type2 {
  238. width: 80rpx;
  239. color: #f83c6c;
  240. background: url(https://static.caimei365.com/app/mini-hehe/icon/icon-active.png) top center no-repeat;
  241. background-size: contain;
  242. }
  243. &.type3 {
  244. width: 80rpx;
  245. background: linear-gradient(270deg, #ff457b 0%, #b03bb8 51%, #6431f2 100%);
  246. color: #fff;
  247. border-radius: 4rpx;
  248. }
  249. &.type4 {
  250. border: 1rpx solid #f83c6c;
  251. padding: 0 6rpx;
  252. color: #f83c6c;
  253. border-radius: 4rpx;
  254. }
  255. }
  256. }
  257. }
  258. .price {
  259. font-size: 26rpx;
  260. .active {
  261. color: #ff457b;
  262. }
  263. .deleted {
  264. font-size: 24rpx;
  265. color: #999;
  266. text-decoration: line-through;
  267. }
  268. }
  269. }
  270. }
  271. .total {
  272. padding-left: 220rpx - 24rpx;
  273. margin: 16rpx 0 20rpx;
  274. font-size: 26rpx;
  275. color: #333;
  276. text {
  277. &:nth-child(2) {
  278. margin-left: 56rpx;
  279. }
  280. }
  281. }
  282. .foot {
  283. display: flex;
  284. justify-content: flex-end;
  285. align-items: center;
  286. .price {
  287. font-size: 26rpx;
  288. color: #333333;
  289. .active {
  290. color: #ff457b;
  291. }
  292. }
  293. .submit {
  294. display: flex;
  295. justify-content: center;
  296. align-items: center;
  297. width: 160rpx;
  298. height: 64rpx;
  299. margin-left: 40rpx;
  300. background: linear-gradient(90deg, #fa55bf 0%, #f83c6c 100%);
  301. color: #ffffff;
  302. border-radius: 32rpx;
  303. font-size: 26rpx;
  304. }
  305. }
  306. }
  307. }
  308. </style>