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

305 lines
8.1 KiB

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