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

302 lines
7.7 KiB

3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
6 days ago
3 weeks ago
3 weeks ago
2 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
6 days ago
3 weeks ago
6 days ago
3 weeks ago
6 days ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
3 weeks ago
6 days ago
3 weeks ago
3 weeks ago
3 weeks 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', fromPromotion ? 'promotion' : '']" @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. fromPromotion: false
  75. }
  76. },
  77. onLoad(options) {
  78. this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight
  79. if (options && options.fromPromotion === 'true') {
  80. this.fromPromotion = true
  81. }
  82. },
  83. methods: {
  84. async onRefresh() {
  85. // 模拟刷新数据
  86. await new Promise(resolve => setTimeout(resolve, 1000))
  87. uni.stopPullRefresh()
  88. },
  89. goBack() {
  90. uni.navigateBack()
  91. },
  92. showNotice() {
  93. this.showNoticePopup = true
  94. },
  95. closeNotice() {
  96. this.showNoticePopup = false
  97. },
  98. submitWithdraw() {
  99. if (!this.realName) {
  100. uni.showToast({ title: '请输入真实姓名', icon: 'none' })
  101. return
  102. }
  103. if (!this.amount) {
  104. uni.showToast({ title: '请输入提现金额', icon: 'none' })
  105. return
  106. }
  107. uni.showToast({ title: '提现申请已提交', icon: 'success' })
  108. }
  109. }
  110. }
  111. </script>
  112. <style lang="scss" scoped>
  113. .withdraw-container {
  114. min-height: 100vh;
  115. background: #f8f8f8;
  116. padding-bottom: calc(160rpx + env(safe-area-inset-bottom));
  117. }
  118. .nav-bar {
  119. display: flex;
  120. align-items: center;
  121. background: #fff;
  122. position: fixed;
  123. top: 0;
  124. left: 0;
  125. right: 0;
  126. z-index: 999;
  127. box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.02);
  128. }
  129. .back {
  130. padding: 20rpx;
  131. margin-left: -20rpx;
  132. }
  133. .title {
  134. flex: 1;
  135. text-align: center;
  136. font-size: 36rpx;
  137. font-weight: 500;
  138. color: #222;
  139. }
  140. .main-card {
  141. background: #fff;
  142. border-radius: 32rpx;
  143. box-shadow: 0 8rpx 32rpx rgba(60, 167, 250, 0.06);
  144. padding: 48rpx 36rpx 32rpx 36rpx;
  145. position: relative;
  146. }
  147. .section-title {
  148. font-size: 34rpx;
  149. font-weight: bold;
  150. color: #222;
  151. margin-bottom: 40rpx;
  152. }
  153. .form-group {
  154. margin-bottom: 0;
  155. }
  156. .form-label {
  157. font-size: 28rpx;
  158. color: #222;
  159. font-weight: 500;
  160. margin-bottom: 16rpx;
  161. }
  162. .form-input {
  163. width: 100%;
  164. font-size: 28rpx;
  165. color: #222;
  166. background: none;
  167. border: none;
  168. outline: none;
  169. padding: 16rpx 0 22rpx 0;
  170. }
  171. .input-placeholder {
  172. color: #ccc;
  173. font-size: 28rpx;
  174. }
  175. .divider {
  176. border-bottom: 1rpx solid #eee;
  177. margin: 0 0 24rpx 0;
  178. }
  179. .desc-area {
  180. margin: 36rpx 40rpx 0 40rpx;
  181. font-size: 24rpx;
  182. color: #bbb;
  183. line-height: 1.7;
  184. text-align: left;
  185. }
  186. .desc-link {
  187. color: #FFA800;
  188. margin-left: 4rpx;
  189. white-space: nowrap;
  190. }
  191. .footer-btn-area {
  192. position: fixed;
  193. left: 0;
  194. right: 0;
  195. bottom: 0;
  196. z-index: 10;
  197. background: #fff;
  198. padding: 24rpx 0 env(safe-area-inset-bottom);
  199. display: flex;
  200. justify-content: center;
  201. }
  202. .main-btn {
  203. width: 92%;
  204. height: 100rpx;
  205. background: linear-gradient(90deg, #FFD36D 0%, #FFA800 100%);
  206. color: #fff;
  207. font-size: 36rpx;
  208. border-radius: 50rpx;
  209. font-weight: bold;
  210. margin: 0 auto;
  211. display: flex;
  212. align-items: center;
  213. justify-content: center;
  214. box-shadow: 0 4rpx 16rpx rgba(255, 168, 0, 0.08);
  215. border: none;
  216. }
  217. .main-btn.promotion {
  218. background: linear-gradient(90deg, #c2fdab 0%, #08eae0 100%);
  219. color: #222;
  220. }
  221. .notice-popup {
  222. position: fixed;
  223. left: 0; right: 0; top: 0; bottom: 0;
  224. z-index: 2000;
  225. display: flex;
  226. align-items: center;
  227. justify-content: center;
  228. }
  229. .popup-mask {
  230. position: absolute;
  231. left: 0; right: 0; top: 0; bottom: 0;
  232. background: rgba(0,0,0,0.55);
  233. }
  234. .popup-content {
  235. position: relative;
  236. width: 86vw;
  237. max-width: 650rpx;
  238. background: #fff;
  239. border-radius: 40rpx;
  240. overflow: hidden;
  241. box-shadow: 0 8rpx 32rpx rgba(0,0,0,0.10);
  242. display: flex;
  243. flex-direction: column;
  244. align-items: center;
  245. }
  246. .popup-title {
  247. text-align: center;
  248. font-size: 38rpx;
  249. font-weight: bold;
  250. color: #222;
  251. margin: 48rpx 0 32rpx 0;
  252. }
  253. .popup-body {
  254. max-height: 600rpx;
  255. padding: 0 40rpx 0 40rpx !important;
  256. font-size: 28rpx;
  257. color: #888;
  258. line-height: 1.9;
  259. margin-bottom: 24rpx;
  260. box-sizing: border-box;
  261. width: 100%;
  262. }
  263. .section-title {
  264. font-size: 28rpx;
  265. color: #888;
  266. font-weight: bold;
  267. margin-top: 0;
  268. margin-bottom: 0;
  269. display: block;
  270. }
  271. .section-content {
  272. font-size: 28rpx;
  273. color: #888;
  274. margin-bottom: 8rpx;
  275. display: block;
  276. word-break: break-all;
  277. }
  278. .popup-footer {
  279. border-top: 1rpx solid #f2f2f2;
  280. width: 100%;
  281. padding: 24rpx 0 32rpx 0;
  282. display: flex;
  283. justify-content: center;
  284. }
  285. .confirm-btn {
  286. color: #FFA800;
  287. font-size: 34rpx;
  288. font-weight: bold;
  289. text-align: center;
  290. }
  291. </style>