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

335 lines
8.4 KiB

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