铝交易,微信公众号
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

208 lines
4.4 KiB

6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
  1. <template>
  2. <view class="confirmOrder">
  3. <navbar :title="$t('pageTitle.confirmOrder')" leftClick @leftClick="$utils.navigateBack"/>
  4. <view class="frame">
  5. <view class="title">
  6. {{ $t('other.payDeposit') }}
  7. </view>
  8. <!--填写信息-->
  9. <view class="form">
  10. <!--开户名称-->
  11. <view class="item">
  12. <view> {{ $t('components.accountName') }}</view>
  13. <view>
  14. <input v-model="form.a" :placeholder="$t('components.enterAccountName')" clearable></input>
  15. </view>
  16. </view>
  17. <!--开户行-->
  18. <view class="item">
  19. <view> {{ $t('components.bankName') }}</view>
  20. <view>
  21. <input v-model="form.b" :placeholder="$t('components.enterOpeningBank')" clearable></input>
  22. </view>
  23. </view>
  24. <!--银行账号-->
  25. <view class="item">
  26. <view> {{ $t('components.bankAccount') }}</view>
  27. <view>
  28. <input v-model="form.c" :placeholder="$t('components.enterBankAccount')" clearable></input>
  29. </view>
  30. </view>
  31. <view class="tip">
  32. {{ $t('components.paymentNotice') }}
  33. </view>
  34. </view>
  35. <!--和联系我们-->
  36. <view class="btns">
  37. <span @click="confirmOrder" class="qrdd">
  38. {{ $t('components.confirmOrder') }}
  39. </span>
  40. <span @click="closeOrder" class="qxdd">
  41. {{ $t('components.cancelOrder') }}
  42. </span>
  43. </view>
  44. </view>
  45. </view>
  46. </template>
  47. <script>
  48. export default {
  49. name: "confirmOrder",
  50. onLoad(options) {
  51. if (options.params) {
  52. const fatherData = JSON.parse(decodeURIComponent(options.params));
  53. console.log(fatherData, "fatherData==========")
  54. this.fatherData = fatherData;
  55. }
  56. },
  57. data() {
  58. return {
  59. fatherData: {},
  60. form: {
  61. a: "",
  62. b: "",
  63. c: "",
  64. },
  65. }
  66. },
  67. methods: {
  68. //确认下单
  69. confirmOrder() {
  70. this.$api('addProductOrder',this.form, res => {
  71. if (res.code == 200) {
  72. uni.redirectTo({
  73. url: '/pages/index/clearanceService'
  74. })
  75. }
  76. })
  77. },
  78. //取消订单
  79. closeOrder() {
  80. },
  81. },
  82. }
  83. </script>
  84. <style scoped lang="scss">
  85. .confirmOrder {
  86. background-color: #FFF;
  87. height: 100vh;
  88. .frame {
  89. .title {
  90. display: flex;
  91. justify-content: center;
  92. align-items: center;
  93. font-size: 36rpx;
  94. color: #000;
  95. padding: 30rpx;
  96. }
  97. .form {
  98. margin: 20rpx;
  99. border: 1px solid #efefef;
  100. border-radius: 20rpx;
  101. overflow: hidden;
  102. .item {
  103. display: flex;
  104. align-items: center;
  105. background-color: #FFF;
  106. height: 100rpx;
  107. padding: 10rpx 0 0 20rpx;
  108. border-bottom: 1px solid #efefef;
  109. > view:nth-of-type(1) {
  110. width: 30%;
  111. // font-weight: 700;
  112. }
  113. > view:nth-of-type(2) {
  114. width: 70%;
  115. border-radius: 10rpx;
  116. overflow: hidden;
  117. input {
  118. background-color: #FFF;
  119. font-size: 28rpx;
  120. padding: 16rpx 8rpx 16rpx 15rpx;
  121. }
  122. }
  123. }
  124. .tip {
  125. display: flex;
  126. justify-content: center;
  127. align-items: center;
  128. font-size: 28rpx;
  129. color: #f95e7d;
  130. background-color: #f5f5f5;
  131. height: 40rpx;
  132. //margin-top: 20rpx;
  133. padding: 10rpx;
  134. }
  135. }
  136. .btns {
  137. width: 100%;
  138. display: flex;
  139. flex-direction: column;
  140. align-items: center;
  141. justify-content: center;
  142. gap: 20rpx;
  143. position: fixed;
  144. bottom: 80rpx;
  145. left: 0;
  146. right: 0;
  147. .qrdd {
  148. display: flex;
  149. align-items: center;
  150. justify-content: center;
  151. width: 500rpx;
  152. height: 70rpx;
  153. border-radius: 40rpx;
  154. color: #FFF;
  155. font-size: 28rpx;
  156. margin: 20rpx 10rpx 0 0;
  157. background: $uni-color;
  158. //margin-top: 20rpx;
  159. border-radius: 40rpx;
  160. }
  161. .qxdd {
  162. display: flex;
  163. align-items: center;
  164. justify-content: center;
  165. width: 500rpx;
  166. height: 70rpx;
  167. border-radius: 40rpx;
  168. color: #000000;
  169. font-size: 28rpx;
  170. margin: 20rpx 10rpx 0 0;
  171. background: #f1f1f1;
  172. //margin-top: 20rpx;
  173. border-radius: 40rpx;
  174. }
  175. }
  176. }
  177. }
  178. </style>