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

216 lines
4.1 KiB

5 months ago
5 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. uni.redirectTo({
  81. url: '/pages/index/clearanceService'
  82. })
  83. }
  84. })
  85. },
  86. //取消订单
  87. closeOrder() {
  88. },
  89. },
  90. }
  91. </script>
  92. <style scoped lang="scss">
  93. .confirmOrder {
  94. background-color: #FFF;
  95. height: 100vh;
  96. .frame {
  97. .title {
  98. display: flex;
  99. justify-content: center;
  100. align-items: center;
  101. font-size: 36rpx;
  102. color: #000;
  103. padding: 30rpx;
  104. }
  105. .form {
  106. margin: 20rpx;
  107. border: 1px solid #efefef;
  108. border-radius: 20rpx;
  109. overflow: hidden;
  110. .item {
  111. display: flex;
  112. align-items: center;
  113. background-color: #FFF;
  114. height: 100rpx;
  115. padding: 10rpx 0 0 20rpx;
  116. border-bottom: 1px solid #efefef;
  117. >view:nth-of-type(1) {
  118. width: 30%;
  119. // font-weight: 700;
  120. }
  121. >view:nth-of-type(2) {
  122. width: 70%;
  123. border-radius: 10rpx;
  124. overflow: hidden;
  125. input {
  126. background-color: #FFF;
  127. font-size: 28rpx;
  128. padding: 16rpx 8rpx 16rpx 15rpx;
  129. }
  130. }
  131. }
  132. .tip {
  133. display: flex;
  134. justify-content: center;
  135. align-items: center;
  136. font-size: 28rpx;
  137. color: #f95e7d;
  138. background-color: #f5f5f5;
  139. height: 40rpx;
  140. //margin-top: 20rpx;
  141. padding: 10rpx;
  142. }
  143. }
  144. .btns {
  145. width: 100%;
  146. display: flex;
  147. flex-direction: column;
  148. align-items: center;
  149. justify-content: center;
  150. gap: 20rpx;
  151. position: fixed;
  152. bottom: 80rpx;
  153. left: 0;
  154. right: 0;
  155. .qrdd {
  156. display: flex;
  157. align-items: center;
  158. justify-content: center;
  159. width: 500rpx;
  160. height: 70rpx;
  161. border-radius: 40rpx;
  162. color: #FFF;
  163. font-size: 28rpx;
  164. margin: 20rpx 10rpx 0 0;
  165. background: $uni-color;
  166. //margin-top: 20rpx;
  167. border-radius: 40rpx;
  168. }
  169. .qxdd {
  170. display: flex;
  171. align-items: center;
  172. justify-content: center;
  173. width: 500rpx;
  174. height: 70rpx;
  175. border-radius: 40rpx;
  176. color: #000000;
  177. font-size: 28rpx;
  178. margin: 20rpx 10rpx 0 0;
  179. background: #f1f1f1;
  180. //margin-top: 20rpx;
  181. border-radius: 40rpx;
  182. }
  183. }
  184. }
  185. }
  186. </style>