diff --git a/common/http.interceptor.js b/common/http.interceptor.js
index 3e3c0a7..ba41f6e 100644
--- a/common/http.interceptor.js
+++ b/common/http.interceptor.js
@@ -9,11 +9,11 @@ const install = (Vue, vm) => {
// 测试环境
// baseUrl: 'https://dianche.chuantewulian.cn/prod-api',
// 俞山岛
- baseUrl: 'https://zc.chuangtewl.com/prod-api',
+ // baseUrl: 'https://zc.chuangtewl.com/prod-api',
// baseUrl: 'https://testzc.chuangtewl.com/prod-api',
- baseUrl: 'https://zc.chuangtewl.com/prod-api',
+ // baseUrl: 'https://zc.chuangtewl.com/prod-api',
// baseUrl: 'http://47.120.68.19:8090',
- // baseUrl: 'http://192.168.2.20:8090',
+ baseUrl: 'http://192.168.2.21:8090',
// 创特
loadingText: '努力加载中~',
loadingTime: 10000,
diff --git a/pages.json b/pages.json
index 47990c9..2ed5f69 100644
--- a/pages.json
+++ b/pages.json
@@ -190,10 +190,20 @@
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
+ },
+ {
+ "path" : "addcode",
+ "style" :
+ {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false,
+ "navigationStyle": "custom"
+ }
}
+
// ... 分包A的其他页面
diff --git a/pages/my.vue b/pages/my.vue
index 84f8603..8e41d88 100644
--- a/pages/my.vue
+++ b/pages/my.vue
@@ -22,7 +22,7 @@
累计提现:{{AccountInfo.totalWithdrawAmount}}
-
+
立即提现
@@ -116,6 +116,11 @@
methods: {
+ toWd(){
+ uni.navigateTo({
+ url:'/pages_withdraw/withdraw'
+ })
+ },
typeReturn(type){
if(type==1){
return '订单收入'
diff --git a/pages_withdraw/addcode.vue b/pages_withdraw/addcode.vue
new file mode 100644
index 0000000..5e12489
--- /dev/null
+++ b/pages_withdraw/addcode.vue
@@ -0,0 +1,228 @@
+
+
+
+
+
+
+
+
+
+ 请上传微信收款二维码
+
+
+
+ 请上传图例中二维码收款中保存收款码的图片而非黄底截图二维码
+
+
+ 确认上传
+
+
+ 上传成功后如需更换,请联系客服
+
+
+
+
+
+
+
diff --git a/pages_withdraw/withdraw.vue b/pages_withdraw/withdraw.vue
index 0c8d0c1..6adfa47 100644
--- a/pages_withdraw/withdraw.vue
+++ b/pages_withdraw/withdraw.vue
@@ -1,8 +1,76 @@
-
+
+
+
+
+ 账户余额
+
+
+ {{AccountInfo.balance}}
+
+
+
+
+
+ 余额提现
+
+
+ 可提现金额:{{AccountInfo.withdrawableAmount}}元
+
+
+
+ ¥
+
+
+
+ 全部提现
+
+
+
+
+ 提现方式
+
+
+
+
+ {{item.name}}提现
+
+
+
+ 未绑定收款码
+
+
+
+
+
+
+
+
+
+
+
+
+ 提现说明:
+
+
+ -提现额度:单笔提现金额最低{{checkInfo.minAmount}}元,最高{{checkInfo.maxAmount}}元
+
+
+ -到账时间:3个工作日内
+
+
+ -提现手续费:{{checkInfo.withdrawHandlingCharge*100}}%
+
+
+
+ 确定提现
+
@@ -11,15 +79,350 @@
export default {
data() {
return {
-
+ list: [],
+ amount: 0,
+ checkInfo: {},
+ AccountInfo:{},
+ isThrottled: false,
}
},
+ onShow() {
+ this.getWcList()
+ this.getAccountInfo()
+ },
methods: {
+ all(){
+ this.amount=this.AccountInfo.withdrawableAmount
+ },
+ choose(item){
+ this.checkInfo=item
+ },
+ upload(id){
+ uni.navigateTo({
+ url:'/pages_withdraw/addcode?id='+id
+ })
+ },
+ getAccountInfo(){
+ this.$u.get(`appAdmin/myAccountInfo`).then((res) => {
+ if (res.code === 200) {
+ this.AccountInfo=res.data
+ } else {
+ uni.showToast({
+ title: res.msg,
+ icon: 'none',
+ duration: 2000
+ });
+ }
+ });
+ },
+ sub() {
+
+ if (!this.checkInfo.userChannelId) {
+ uni.showToast({
+ title: '请选择支付渠道',
+ icon: 'none',
+ duration: 2000
+ });
+ return;
+ }
+ if (this.amountthis.checkInfo.maxAmount) {
+ uni.showToast({
+ title: '体现金额大于最低高提现金额',
+ icon: 'none',
+ duration: 2000
+ });
+ return;
+ }
+ if(this.checkInfo.collectionCode==null){
+
+ uni.showToast({
+ title: '请上传收款二维码',
+ icon: 'none',
+ duration: 1000
+ });
+ setTimeout(()=>{
+ uni.navigateTo({
+ url:'/pages_withdraw/addcode'
+ })
+ },1100)
+ }else{
+ if (this.isThrottled) {
+ uni.showToast({
+ title: '请勿重复点击',
+ icon: 'none',
+ duration: 2000
+ });
+ return;
+ }
+
+ // 设置节流标志位
+ this.isThrottled = true;
+
+ if (parseFloat(this.amount) > parseFloat(this.AccountInfo.withdrawableAmount)) {
+
+ uni.showToast({
+ title: '提现金额不能大于可提现金额',
+ icon: 'none',
+ duration: 2000
+ });
+ return;
+ }
+ let data = {
+ amount: this.amount,
+ userWithdrawChannelId:this.checkInfo.userChannelId
+ }
+
+ this.$u.post('appAdmin/admin/withdraw', data).then((res) => {
+ if (res.code == 200) {
+ this.getAccountInfo()
+ uni.showToast({
+ title: '提现成功',
+ icon: 'none',
+ duration: 2000
+ });
+ } else {
+ uni.showToast({
+ title: res.msg,
+ icon: 'none',
+ duration: 2000
+ });
+ }
+ }).catch(error => {
+ console.error("Error fetching area data:", error);
+ }).finally(() => {
+ // 三秒后解除节流
+ setTimeout(() => {
+ this.isThrottled = false;
+ }, 3000);
+ });
+ }
+ },
+ getWcList() {
+ this.$u.get(`appAgent/getUserWithdrawChannelList`).then((res) => {
+ if (res.code === 200) {
+ this.list = res.data
+ } else {
+ uni.showToast({
+ title: res.msg,
+ icon: 'none',
+ duration: 2000
+ });
+ }
+ });
+
+ }
}
}
-
+ .page {
+ padding-bottom: 200rpx;
+ .cont_box {
+ padding: 54rpx 56rpx;
+ margin-top: -140rpx;
+ width: 750rpx;
+ // height: 1198rpx;
+ background: #FFFFFF;
+ border-radius: 40rpx 40rpx 0 0;
+ .btn{
+ position: fixed;
+ left: 80rpx;
+ bottom: 72rpx;
+ // margin-top: 76rpx;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ margin-left: 24rpx;
+ width: 590rpx;
+ height: 84rpx;
+ background: #4297F3;
+ filter: blur(0px);
+ border-radius: 40rpx;
+ font-weight: 400;
+ font-size: 36rpx;
+ color: #FFFFFF;
+ }
+ .tips{
+ display: flex;
+ flex-wrap: wrap;
+ .tip_tit{
+ margin-top: 40rpx;
+ font-weight: 500;
+ font-size: 28rpx;
+ color: #808080;
+ }
+ .tips_li{
+ width: 100%;
+ margin-top: 16rpx;
+ font-weight: 400;
+ font-size: 24rpx;
+ color: #808080;
+ }
+ }
+ .card_box {
+ margin-top: 30rpx;
+ width: 642rpx;
+ height: 86rpx;
+ background: #FFFFFF;
+ box-shadow: 0rpx 16rpx 40rpx 0rpx rgba(42, 130, 228, 0.1);
+ border-radius: 20rpx;
+ padding: 18rpx 30rpx;
+ display: flex;
+ align-items: center;
+ flex-wrap: nowrap;
+
+ image {
+ width: 50rpx;
+ height: 50rpx;
+ }
+
+ .txt {
+ margin-left: 30rpx;
+ font-weight: 400;
+ font-size: 32rpx;
+ color: #3D3D3D;
+ }
+
+ .right1 {
+ display: flex;
+ align-items: center;
+ flex-wrap: nowrap;
+ margin-left: auto;
+
+ .txt1 {
+ font-weight: 400;
+ font-size: 24rpx;
+ color: #F76D6D;
+ }
+
+ .icon-xiangyou1 {
+ margin-top: 4rpx;
+ }
+ }
+
+ .right2 {
+ display: flex;
+ align-items: center;
+ flex-wrap: nowrap;
+ margin-left: auto;
+
+ .quen {
+ width: 29rpx;
+ height: 29rpx;
+ border-radius: 50%;
+ border: 1rpx solid #ccc;
+ }
+ }
+
+ }
+
+ .ipt_box {
+ margin-top: 42rpx;
+ padding: 0 20rpx;
+ display: flex;
+ align-items: center;
+ flex-wrap: nowrap;
+ width: 642rpx;
+ height: 108rpx;
+ background: #F4F4F4;
+ border-radius: 20rpx;
+
+ .yuan {
+ margin-right: 14rpx;
+ font-weight: 600;
+ font-size: 52rpx;
+ color: #4297F3;
+ }
+
+ .ipt_btn {
+ margin-left: auto;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: 158rpx;
+ height: 56rpx;
+ background: #FFFFFF;
+ box-shadow: 0rpx 0rpx 8rpx 0rpx rgba(0, 0, 0, 0.2);
+ border-radius: 12rpx 12rpx 12rpx 12rpx;
+ font-weight: 400;
+ font-size: 28rpx;
+ color: #4297F3;
+ }
+
+ .input {
+ height: 100%;
+ width: 400rpx;
+ }
+ }
+
+ .cont_tit {
+ display: flex;
+ align-items: center;
+ flex-wrap: nowrap;
+ font-weight: 600;
+ font-size: 36rpx;
+ color: #3D3D3D;
+
+ .tit_line {
+ margin-right: 12rpx;
+ width: 8rpx;
+ height: 50rpx;
+ background: #4297F3;
+ border-radius: 0rpx 0rpx 0rpx 0rpx;
+ }
+ }
+ }
+
+ .backimg {
+ // position: fixed;
+ position: relative;
+ width: 750rpx;
+ height: 696rpx;
+
+ z-index: -10;
+ background-image: url('https://lxnapi.ccttiot.com/bike/img/static/u7b1VqZuiMFIG7twTRaS');
+ background-size: cover;
+ /* 背景图片等比缩放以覆盖整个容器 */
+ background-position: center;
+
+ .tit {
+ position: absolute;
+ left: 84rpx;
+ bottom: 284rpx;
+ font-weight: 600;
+ font-size: 32rpx;
+ color: #FFFFFF;
+ }
+
+ .price {
+ position: absolute;
+ left: 84rpx;
+ bottom: 172rpx;
+ font-weight: 600;
+ font-size: 72rpx;
+ color: #FFFFFF;
+ }
+
+ }
+
+ .fixed {
+ z-index: 999;
+ position: fixed;
+ top: 0;
+ }
+ }
+
\ No newline at end of file