铝交易,微信公众号
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.

222 lines
4.2 KiB

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