爱简收旧衣按件回收前端代码仓库
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.

294 lines
7.5 KiB

1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
5 days ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
1 week ago
  1. <template>
  2. <view class="withdraw-container">
  3. <!-- 顶部自适应导航栏 -->
  4. <view class="nav-bar" :style="{height: (statusBarHeight + 88) + 'rpx', paddingTop: statusBarHeight + 'px'}">
  5. <view class="back" @tap="goBack">
  6. <uni-icons type="left" size="22" color="#222"></uni-icons>
  7. </view>
  8. <text class="title">提现</text>
  9. </view>
  10. <!-- 主内容卡片 -->
  11. <view
  12. class="main-card"
  13. :style="{marginTop: (statusBarHeight + 88 + 32) + 'rpx', marginLeft: '24rpx', marginRight: '24rpx'}"
  14. >
  15. <view class="section-title">微信提现</view>
  16. <view class="form-group">
  17. <view class="form-label">真实姓名</view>
  18. <input class="form-input" v-model="realName" placeholder="请输入" placeholder-class="input-placeholder" />
  19. </view>
  20. <view class="divider"></view>
  21. <view class="form-group">
  22. <view class="form-label">提现金额</view>
  23. <input class="form-input" v-model="amount" placeholder="请输入" placeholder-class="input-placeholder" />
  24. </view>
  25. </view>
  26. <!-- 说明文字 -->
  27. <view class="desc-area">
  28. <text>
  29. 请仔细检查并确认相关信息因用户个人疏忽导致的充值错误需由用户自行承担
  30. <text class="desc-link" @tap="showNotice">提现须知</text>
  31. </text>
  32. </view>
  33. <!-- 提现须知弹窗 -->
  34. <view v-if="showNoticePopup" class="notice-popup">
  35. <view class="popup-mask" @tap="closeNotice"></view>
  36. <view class="popup-content">
  37. <view class="popup-title">提现须知</view>
  38. <scroll-view class="popup-body" scroll-y>
  39. <view class="section">
  40. <text class="section-title">1.适用范围:</text>
  41. <text class="section-content">(1)本规则仅适用于可提现账户</text>
  42. </view>
  43. <view class="section">
  44. <text class="section-title">2.提现规则:</text>
  45. <text class="section-content">(1)提现时间:订单确认收货次月25日可提现由于财务审核遇节假日不可抗力等原因部分时间段将无法支持提现操作具体请以提现页面信息为准</text>
  46. <text class="section-content">(2)提现限额:单笔提现不能低于人民币10元不能超过5万元具体请以提现页面信息为准</text>
  47. <text class="section-content">到账时间:一般发起提现申请后48小时内到账您在瀚海回收绑定的微信账户上</text>
  48. <text class="section-content">(3)提现账号绑定:一个瀚海回收账号只可以绑定一个微信账号</text>
  49. <text class="section-content">(4)账号进行提现:需要确认您填写的微信账号信息是真实有效的否则有可能会导致您提现失败</text>
  50. <text class="section-content">(5)提现条件:您应满足瀚海回收提现的前置条件并根据提现页面提示的流</text>
  51. </view>
  52. </scroll-view>
  53. <view class="popup-footer">
  54. <text class="confirm-btn" @tap="closeNotice">知道了</text>
  55. </view>
  56. </view>
  57. </view>
  58. <!-- 底部按钮 -->
  59. <view class="footer-btn-area">
  60. <button class="main-btn" @tap="submitWithdraw">提现</button>
  61. </view>
  62. </view>
  63. </template>
  64. <script>
  65. import pullRefreshMixin from '@/pages/mixins/pullRefreshMixin.js'
  66. export default {
  67. mixins: [pullRefreshMixin],
  68. data() {
  69. return {
  70. statusBarHeight: 0,
  71. realName: '',
  72. amount: '',
  73. showNoticePopup: false
  74. }
  75. },
  76. onLoad() {
  77. this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight
  78. },
  79. methods: {
  80. async onRefresh() {
  81. // 模拟刷新数据
  82. await new Promise(resolve => setTimeout(resolve, 1000))
  83. uni.stopPullRefresh()
  84. },
  85. goBack() {
  86. uni.navigateBack()
  87. },
  88. showNotice() {
  89. this.showNoticePopup = true
  90. },
  91. closeNotice() {
  92. this.showNoticePopup = false
  93. },
  94. submitWithdraw() {
  95. if (!this.realName) {
  96. uni.showToast({ title: '请输入真实姓名', icon: 'none' })
  97. return
  98. }
  99. if (!this.amount) {
  100. uni.showToast({ title: '请输入提现金额', icon: 'none' })
  101. return
  102. }
  103. uni.showToast({ title: '提现申请已提交', icon: 'success' })
  104. }
  105. }
  106. }
  107. </script>
  108. <style lang="scss" scoped>
  109. .withdraw-container {
  110. min-height: 100vh;
  111. background: #f8f8f8;
  112. padding-bottom: calc(160rpx + env(safe-area-inset-bottom));
  113. }
  114. .nav-bar {
  115. display: flex;
  116. align-items: center;
  117. background: #fff;
  118. position: fixed;
  119. top: 0;
  120. left: 0;
  121. right: 0;
  122. z-index: 999;
  123. box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.02);
  124. }
  125. .back {
  126. padding: 20rpx;
  127. margin-left: -20rpx;
  128. }
  129. .title {
  130. flex: 1;
  131. text-align: center;
  132. font-size: 36rpx;
  133. font-weight: 500;
  134. color: #222;
  135. }
  136. .main-card {
  137. background: #fff;
  138. border-radius: 32rpx;
  139. box-shadow: 0 8rpx 32rpx rgba(60, 167, 250, 0.06);
  140. padding: 48rpx 36rpx 32rpx 36rpx;
  141. position: relative;
  142. }
  143. .section-title {
  144. font-size: 34rpx;
  145. font-weight: bold;
  146. color: #222;
  147. margin-bottom: 40rpx;
  148. }
  149. .form-group {
  150. margin-bottom: 0;
  151. }
  152. .form-label {
  153. font-size: 28rpx;
  154. color: #222;
  155. font-weight: 500;
  156. margin-bottom: 16rpx;
  157. }
  158. .form-input {
  159. width: 100%;
  160. font-size: 28rpx;
  161. color: #222;
  162. background: none;
  163. border: none;
  164. outline: none;
  165. padding: 16rpx 0 22rpx 0;
  166. }
  167. .input-placeholder {
  168. color: #ccc;
  169. font-size: 28rpx;
  170. }
  171. .divider {
  172. border-bottom: 1rpx solid #eee;
  173. margin: 0 0 24rpx 0;
  174. }
  175. .desc-area {
  176. margin: 36rpx 40rpx 0 40rpx;
  177. font-size: 24rpx;
  178. color: #bbb;
  179. line-height: 1.7;
  180. text-align: left;
  181. }
  182. .desc-link {
  183. color: #FFA800;
  184. margin-left: 4rpx;
  185. white-space: nowrap;
  186. }
  187. .footer-btn-area {
  188. position: fixed;
  189. left: 0;
  190. right: 0;
  191. bottom: 0;
  192. z-index: 10;
  193. background: #fff;
  194. padding: 24rpx 0 env(safe-area-inset-bottom);
  195. display: flex;
  196. justify-content: center;
  197. }
  198. .main-btn {
  199. width: 92%;
  200. height: 100rpx;
  201. background: linear-gradient(90deg, #FFD36D 0%, #FFA800 100%);
  202. color: #fff;
  203. font-size: 36rpx;
  204. border-radius: 50rpx;
  205. font-weight: bold;
  206. margin: 0 auto;
  207. display: flex;
  208. align-items: center;
  209. justify-content: center;
  210. box-shadow: 0 4rpx 16rpx rgba(255, 168, 0, 0.08);
  211. border: none;
  212. }
  213. .notice-popup {
  214. position: fixed;
  215. left: 0; right: 0; top: 0; bottom: 0;
  216. z-index: 2000;
  217. display: flex;
  218. align-items: center;
  219. justify-content: center;
  220. }
  221. .popup-mask {
  222. position: absolute;
  223. left: 0; right: 0; top: 0; bottom: 0;
  224. background: rgba(0,0,0,0.55);
  225. }
  226. .popup-content {
  227. position: relative;
  228. width: 86vw;
  229. max-width: 650rpx;
  230. background: #fff;
  231. border-radius: 40rpx;
  232. overflow: hidden;
  233. box-shadow: 0 8rpx 32rpx rgba(0,0,0,0.10);
  234. display: flex;
  235. flex-direction: column;
  236. align-items: center;
  237. }
  238. .popup-title {
  239. text-align: center;
  240. font-size: 38rpx;
  241. font-weight: bold;
  242. color: #222;
  243. margin: 48rpx 0 32rpx 0;
  244. }
  245. .popup-body {
  246. max-height: 600rpx;
  247. padding: 0 40rpx 0 40rpx !important;
  248. font-size: 28rpx;
  249. color: #888;
  250. line-height: 1.9;
  251. margin-bottom: 24rpx;
  252. box-sizing: border-box;
  253. width: 100%;
  254. }
  255. .section-title {
  256. font-size: 28rpx;
  257. color: #888;
  258. font-weight: bold;
  259. margin-top: 0;
  260. margin-bottom: 0;
  261. display: block;
  262. }
  263. .section-content {
  264. font-size: 28rpx;
  265. color: #888;
  266. margin-bottom: 8rpx;
  267. display: block;
  268. word-break: break-all;
  269. }
  270. .popup-footer {
  271. border-top: 1rpx solid #f2f2f2;
  272. width: 100%;
  273. padding: 24rpx 0 32rpx 0;
  274. display: flex;
  275. justify-content: center;
  276. }
  277. .confirm-btn {
  278. color: #FFA800;
  279. font-size: 34rpx;
  280. font-weight: bold;
  281. text-align: center;
  282. }
  283. </style>