confirmOrder.vue 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. <template>
  2. <view>
  3. <ujp-navbar title="确认订单"></ujp-navbar>
  4. <!-- 商品信息 -->
  5. <view class="product-infos">
  6. <view class="picture">
  7. <img src="../../assets/img/productPic.png" alt="">
  8. </view>
  9. <view class="infos">
  10. <view class="name">
  11. 自营站充电服务费6折卡
  12. </view>
  13. <view class="specification">
  14. <view class="title">
  15. 可用338度(有效期30天)
  16. </view>
  17. <view class="value">
  18. x1
  19. </view>
  20. </view>
  21. <view class="price">
  22. 12.9元
  23. </view>
  24. </view>
  25. </view>
  26. <!-- 订单金额 -->
  27. <view class="order-price">
  28. <view class="title">
  29. 订单金额
  30. </view>
  31. <view class="price-group">
  32. <view class="item">
  33. <view class="item-title">
  34. 商品金额
  35. </view>
  36. <view class="item-value">
  37. 12.9元
  38. </view>
  39. </view>
  40. <view class="item">
  41. <view class="item-title">
  42. 优惠金额
  43. </view>
  44. <view class="item-value">
  45. 0元
  46. </view>
  47. </view>
  48. <view class="item">
  49. <view class="item-title">
  50. 合计
  51. </view>
  52. <view class="item-value">
  53. 12.9元
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. <!-- 支付方式 -->
  59. <view class="payment-mode">
  60. <view class="title">
  61. 支付方式
  62. </view>
  63. <view class="mode">
  64. <view class="item">
  65. <view class="mode-name">
  66. <view class="img"><img src="../../assets/img/wechat-pay-fill.svg" alt=""></view>微信支付
  67. </view>
  68. <view class="mode-radio">
  69. <label class="radio">
  70. <radio value="" /><text></text>
  71. </label>
  72. </view>
  73. </view>
  74. <view class="item">
  75. <view class="mode-name">
  76. <view class="img"><img src="../../assets/img/alipay-fill.svg" alt=""></view>微信支付
  77. </view>
  78. <view class="mode-radio">
  79. <label class="radio">
  80. <radio value="" /><text></text>
  81. </label>
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. <!-- 底部 -->
  87. <view class="bottom">
  88. <view class="to-be-pay">
  89. 待支付: 12.9元
  90. </view>
  91. <view class="btn">
  92. <button class="submit">提交订单</button>
  93. </view>
  94. </view>
  95. <!-- 弹窗 -->
  96. <view>
  97. <u-modal title="订购须知" :show-cancel-button="true" confirm-text="阅读并同意(9)" cancel-text="不同意" cancel-color="#333333" confirm-color="#00B962" v-model="show" :title-style="{color: '#101010 '}">
  98. <view class="slot-content">
  99. <p>当前购买的产品为自营站充电服务费6折卡:</p>
  100. <p>【适用人群】本产品限新能源车主购买及使用。</p>
  101. <p>【使用范围】本产品<text>仅支持在{{projectName}}自营充电站使用</text>,可抵扣充电服务费。</p>
  102. <p>【使用说明】30天自营站充电服务费6折卡,限338度以内抵扣服务费;90天自营站充电服务费6折卡,限1000度以内抵扣服务费。</p>
  103. <p>【使用规则】<text>本产品与其他折扣卡不能同时使用;可与账户余额、优惠券叠加使用。</text></p>
  104. <p>【使用顺序】若同时拥有账户余额、优惠券和服务费折扣卡,使用顺序为:1、服务费折扣卡 2、优惠券 3、账户余额。</p>
  105. <p>【退货规则】<text>购买后30天内未使用可享受无忧退</text>,详见<text>《自营站充电服务费6折卡购买协议》</text>。</p>
  106. </view>
  107. </u-modal>
  108. </view>
  109. </view>
  110. </template>
  111. <script>
  112. export default {
  113. data() {
  114. return {
  115. show: true,
  116. }
  117. },
  118. methods: {
  119. }
  120. }
  121. </script>
  122. <style>
  123. page {
  124. padding-bottom: 100px;
  125. }
  126. </style>
  127. <style scoped lang="scss">
  128. .product-infos {
  129. display: flex;
  130. align-items: center;
  131. margin: 24rpx;
  132. background-color: #fff;
  133. padding: 32rpx 24rpx;
  134. .picture {
  135. width: 152rpx;
  136. height: 152rpx;
  137. border-radius: 4px;
  138. overflow: hidden;
  139. margin-right: 16rpx;
  140. img {
  141. width: 100%;
  142. }
  143. }
  144. .infos {
  145. flex: 1;
  146. .name {
  147. color: rgba(51, 51, 51, 1);
  148. font-size: 32rpx;
  149. font-weight: bold;
  150. }
  151. .specification {
  152. display: flex;
  153. justify-content: space-between;
  154. align-items: center;
  155. margin-top: 8rpx;
  156. .title {
  157. color: rgba(119, 119, 119, 1);
  158. font-size: 24rpx;
  159. }
  160. .value {
  161. color: rgba(51, 51, 51, 1);
  162. font-size: 32rpx;
  163. }
  164. }
  165. .price {
  166. color: rgba(16, 16, 16, 1);
  167. font-size: 32rpx;
  168. margin-top: 24rpx;
  169. }
  170. }
  171. }
  172. // 订单金额
  173. .order-price {
  174. margin: 40rpx;
  175. padding: 32rpx 24rpx;
  176. background-color: #fff;
  177. border-radius: 8px;
  178. .title {
  179. color: rgba(51, 51, 51, 1);
  180. font-size: 32rpx;
  181. font-weight: bold;
  182. }
  183. .price-group {
  184. margin-top: 32rpx;
  185. .item {
  186. display: flex;
  187. align-items: center;
  188. justify-content: space-between;
  189. margin-top: 24rpx;
  190. .item-title {
  191. color: rgba(51, 51, 51, 1);
  192. }
  193. .item-value {
  194. color: rgba(51, 51, 51, 1);
  195. font-size: 32rpx
  196. }
  197. }
  198. }
  199. }
  200. // 支付方式
  201. .payment-mode{
  202. margin: 40rpx;
  203. padding: 32rpx 24rpx;
  204. background-color: #fff;
  205. border-radius: 8px;
  206. .title {
  207. color: rgba(51, 51, 51, 1);
  208. font-size: 32rpx;
  209. font-weight: bold;
  210. }
  211. .mode{
  212. margin-top: 24rpx;
  213. .item{
  214. margin-bottom: 24rpx;
  215. display: flex;
  216. justify-content: space-between;
  217. align-items: center;
  218. .mode-name{
  219. display: flex;
  220. align-items: center;
  221. .img{
  222. width: 48rpx;
  223. height: 48rpx;
  224. margin-right: 8rpx;
  225. img{
  226. width: 100%;
  227. }
  228. }
  229. }
  230. ::v-deep .uni-radio-input{
  231. width: 40rpx;
  232. height: 40rpx;
  233. }
  234. ::v-deep .uni-radio-input-checked{
  235. background-color: #00B962 !important;
  236. border-color: #00B962 !important;
  237. }
  238. }
  239. }
  240. }
  241. // 底部
  242. .bottom{
  243. position: fixed;
  244. left: 0;
  245. right: 0;
  246. bottom: 0;
  247. background-color: #fff;
  248. padding: 24rpx 32rpx;
  249. display: flex;
  250. align-items: center;
  251. justify-content: space-between;
  252. .to-be-pay{
  253. color: rgba(16, 16, 16, 1);
  254. font-size: 40rpx;
  255. font-weight: bold;
  256. }
  257. .submit{
  258. width: 318rpx;
  259. height: 96rpx;
  260. line-height: 96rpx;
  261. background-color: rgba(0, 185, 98, 1);
  262. color: rgba(255, 255, 255, 1);
  263. font-size: 36rpx;
  264. border-radius: 50px;
  265. }
  266. }
  267. .slot-content {
  268. font-size: 28rpx;
  269. color: $u-content-color;
  270. padding-left: 30rpx;
  271. margin-top: 40rpx;
  272. p{
  273. margin-bottom: 16rpx;
  274. line-height: 40rpx;
  275. text{
  276. color: #00B962;
  277. }
  278. }
  279. }
  280. </style>