tbdetail.vue 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. <template>
  2. <view class="content">
  3. <view class="vheight"></view>
  4. <view class="top flex">
  5. <image @click="back()" class="top-icon1" src="../../static/img/cb2.png" mode=""></image>
  6. <image class="top-icon2" src="../../static/img/cb1.png" mode=""></image>
  7. </view>
  8. <view class="title">提幣</view>
  9. <view class="type flex" @click="navTo('/pages/transaction/cblist')">
  10. <view class="type-left">幣種</view>
  11. <view class="type-right">
  12. <view class="type-name">{{ info.title }}</view>
  13. <image class="type-icon" src="../../static/icon/user-back.png" mode=""></image>
  14. </view>
  15. </view>
  16. <view class="main">
  17. <view class="main-title">提幣網絡</view>
  18. <view class="main-list">{{ info.czline }}</view>
  19. <view class="main-title" style="margin-top: 20rpx;">提幣地址</view>
  20. <view class="sr-input"><input placeholder="請輸入提幣地址" type="text" v-model="address" /></view>
  21. <view class="sr-sl flex">
  22. <view class="sr-title">提幣數量</view>
  23. <view class="sr-num" v-if="info">可用 {{ money }} {{ info.name.toLocaleUpperCase() }}</view>
  24. </view>
  25. <view class="sr-input flex">
  26. <input placeholder="請輸入提幣數量" type="number" v-model="num" />
  27. <view class="main-type-box">
  28. <view class="main-type" v-if="info">{{ info.name.toLocaleUpperCase() }}</view>
  29. <view class="all" @click="qb()">全部</view>
  30. </view>
  31. </view>
  32. <view class="sr-btn" @click="submit()">提交</view>
  33. <view class="sr-tip flex" v-if="num">
  34. <view class="sr-tip-item">實際到賬</view>
  35. <view class="sr-tip-item" v-if="info.sxftype == 1">{{ num * 1 * (1 - (info.txsxf * 1) / 100) }}</view>
  36. <view class="sr-tip-item" v-if="info.sxftype == 2">{{ num * 1 - info.txsxf_n * 1 }}</view>
  37. </view>
  38. </view>
  39. <view class="info">
  40. <view class="info-item red">
  41. 提币扣除{{ info.sxftype == 1 ? info.txsxf + '%' : info.txsxf_n + info.title }}手续费 , 輸小提幣數量:{{ info.txminnum
  42. }}{{ info.title }},小於最小金額的提幣將不會到賬且無法退回
  43. </view>
  44. <view class="info-item">為保障資金安全,當您賬戶安全策略變更,密碼修改,我們會對提幣進行人工審核,請耐心等待工作人員電話或郵件聯繫.</view>
  45. <view class="info-item">請務必確認電腦及瀏覽器安全,防止信息被篡改或洩露</view>
  46. </view>
  47. </view>
  48. </template>
  49. <script>
  50. import { txpage, tbhandle } from '@/api/wallet.js';
  51. import tkiQrcode from '@/components/tki-qrcode/tki-qrcode.vue';
  52. import uniCopy from '@/js_sdk/xb-copy/uni-copy.js';
  53. export default {
  54. data() {
  55. return {
  56. id: '',
  57. info: '',
  58. address: '',
  59. num: '',
  60. money: ''
  61. };
  62. },
  63. onLoad(opt) {
  64. this.id = opt.type;
  65. this.loadData();
  66. },
  67. onShow() {},
  68. onReachBottom() {},
  69. onReady() {},
  70. methods: {
  71. loadData() {
  72. txpage({ id: this.id }).then(({ data }) => {
  73. this.info = data.info;
  74. this.money = data.money;
  75. });
  76. },
  77. qrR(res) {
  78. console.log(res, '123456');
  79. },
  80. back() {
  81. uni.navigateBack();
  82. },
  83. qb() {
  84. this.num = this.money;
  85. },
  86. navTo(url) {
  87. uni.navigateTo({
  88. url
  89. });
  90. },
  91. submit() {
  92. console.log(222);
  93. if (this.num < 0) {
  94. return this.$api.msg('提幣數量不能為0');
  95. }
  96. if (!this.address) {
  97. return this.$api.msg('請輸入上傳地址');
  98. }
  99. tbhandle({ id: this.id, num: this.num, address: this.address }).then(e => {
  100. this.num = '';
  101. this.image = '';
  102. return this.$api.msg('提交申請成功,請耐心等待審核');
  103. });
  104. }
  105. }
  106. };
  107. </script>
  108. <style lang="scss">
  109. page,
  110. .content {
  111. min-height: 100%;
  112. height: auto;
  113. background: #f5f5f5;
  114. }
  115. .vheigh {
  116. height: var(--status-bar-height);
  117. }
  118. .top {
  119. padding: 20rpx 40rpx;
  120. .top-icon1 {
  121. width: 52rpx;
  122. height: 36rpx;
  123. }
  124. .top-icon2 {
  125. width: 48rpx;
  126. height: 48rpx;
  127. }
  128. }
  129. .title {
  130. padding: 20rpx 20rpx 0;
  131. font-size: 52rpx;
  132. font-weight: 500;
  133. }
  134. .type {
  135. margin: 20rpx auto 0;
  136. width: 690rpx;
  137. background: #ffffff;
  138. border-radius: 20rpx;
  139. padding: 30rpx 20rpx;
  140. .type-left {
  141. font-size: 32rpx;
  142. color: #000;
  143. }
  144. .type-right {
  145. display: flex;
  146. align-items: center;
  147. .type-name {
  148. font-size: 36rpx;
  149. font-weight: bold;
  150. color: #fcd535;
  151. margin-right: 10rpx;
  152. }
  153. .type-icon {
  154. width: 24rpx;
  155. height: 24rpx;
  156. }
  157. }
  158. }
  159. .main {
  160. margin: 20rpx auto 0;
  161. width: 690rpx;
  162. background: #ffffff;
  163. border-radius: 20rpx;
  164. padding: 30rpx 20rpx;
  165. .main-title {
  166. font-size: 32rpx;
  167. color: #000;
  168. }
  169. .main-list {
  170. margin-top: 20rpx;
  171. width: 200rpx;
  172. height: 70rpx;
  173. line-height: 70rpx;
  174. text-align: center;
  175. border: 2px solid #fcd535;
  176. border-radius: 10rpx;
  177. font-size: 28rpx;
  178. color: #fcd535;
  179. }
  180. .sr-input {
  181. margin-top: 20rpx;
  182. display: flex;
  183. align-items: center;
  184. width: 100%;
  185. height: 80rpx;
  186. line-height: 80rpx;
  187. background: #f5f5f5;
  188. border-radius: 20rpx;
  189. padding: 0rpx 30rpx;
  190. input {
  191. font-size: 28rpx;
  192. padding-left: 30rpx;
  193. background: #f5f5f5;
  194. }
  195. }
  196. .sr-sl {
  197. margin-top: 20rpx;
  198. .sr-num {
  199. color: #707a8a;
  200. font-size: 24rpx;
  201. }
  202. }
  203. .main-type-box {
  204. display: flex;
  205. align-items: center;
  206. .main-type {
  207. font-size: 32rpx;
  208. color: #707a8a;
  209. margin-right: 20rpx;
  210. }
  211. .all {
  212. font-size: 32rpx;
  213. color: #707a8a;
  214. }
  215. }
  216. .sr-btn {
  217. width: 100%;
  218. height: 80rpx;
  219. line-height: 80rpx;
  220. text-align: center;
  221. border-radius: 10rpx;
  222. margin: 20rpx auto 0;
  223. background: linear-gradient(to left, #eeb80d, #ffe35b);
  224. font-size: 28rpx;
  225. color: #000;
  226. }
  227. .sr-tip {
  228. margin-top: 20rpx;
  229. .sr-tip-item {
  230. font-size: 24rpx;
  231. color: #707a8a;
  232. }
  233. }
  234. }
  235. .info {
  236. margin: 20rpx auto 0;
  237. width: 690rpx;
  238. background: #ffffff;
  239. border-radius: 20rpx;
  240. padding: 30rpx 20rpx;
  241. .info-item {
  242. font-size: 24rpx;
  243. color: #000;
  244. margin-bottom: 20rpx;
  245. }
  246. .red {
  247. color: red;
  248. }
  249. }
  250. </style>