修改问题

This commit is contained in:
duan 2025-02-25 15:10:11 +08:00
parent 0c5e5798ea
commit a56aabb05a
14 changed files with 271 additions and 150 deletions

View File

@ -2,7 +2,7 @@
"version" : "1.0",
"configurations" : [
{
"playground" : "custom",
"playground" : "standard",
"type" : "uni-app:app-android"
},
{

View File

@ -35,7 +35,8 @@ export const queryUserMoneyDetails = (data) => {
*/
export const updateUser = (data) => {
return http.request({
url: '/user/updateUser',
url: '/user/bindAlipay',
method: 'POST',
params: data
})
}

View File

@ -159,6 +159,9 @@
</view>
<view class="u-m-t-30">
<text class=" color-999 u-font-24">{{paytips}} </text>
</view>
<view class="u-m-t-30">
<text class=" color-999 u-font-24">抽奖机会仅当日可用次日作废 </text>
</view>
<view class="colo-333 pay-list font-bold u-font-28 u-m-t-20">
<view class="pay-list-item" v-if="info&&info.price" @click="payBtnClick('money','all')">

View File

@ -18,7 +18,7 @@
<swiper :autoplay="true" :vertical="true" :interval="4000" :circular="true" :indicator-dots="false"
class="swiperstyle">
<swiper-item v-for="(item, index) in datas.noticeList" :key="index">
<view style="height: 80rpx;line-height: 80rpx;">{{ item.title }}</view>
<view style="height: 80rpx;line-height: 80rpx;font-size: 14px;">{{ item.title }}</view>
</swiper-item>
</swiper>
</view>
@ -297,12 +297,12 @@
<style lang="scss" scoped>
.indexStyle {
height: 555rpx;
height: 350rpx;
position: relative;
>image {
width: 100%;
height: 555rpx;
height: 100%;
position: absolute;
}
@ -334,11 +334,11 @@
.gongao {
position: absolute;
bottom: 75rpx;
bottom: 85rpx;
left: 70rpx;
border-radius: 21rpx 21rpx 21rpx 21rpx;
border-radius: 12rpx 12rpx 12rpx 12rpx;
width: 611rpx;
height: 78rpx;
height: 60rpx;
background-color: rgba(255, 255, 255, .65);
display: flex;
align-items: center;
@ -348,10 +348,10 @@
.gongaoicon {
color: #ffffff;
width: 98rpx;
height: 50rpx;
line-height: 50rpx;
height: 40rpx;
line-height: 40rpx;
text-align: center;
font-size: 25rpx;
font-size: 20rpx;
background-image: url('../../static/index/gonggaobg.png');
background-size: 98rpx 50rpx;
}

View File

@ -79,18 +79,22 @@
}
if (datas.tabIndex == 1) {
if (datas.page == 1) {
datas.list = []
datas.list = res.records;
} else {
if (res.records.length) {
datas.list.push(...datas.list, res.records)
let arr = datas.list.concat(res.records)
datas.list = arr
}
}
} else {
if (datas.page == 1) {
datas.list = []
datas.list = res.list;
} else {
if (res.records.length) {
datas.list.push(...datas.list, res.list)
let arr = datas.list.concat(res.records)
datas.list = arr
}
}
// datas.total = res.page.totalCount;

View File

@ -24,7 +24,8 @@
<view class="t-r-title t-flex-row">活动规则</view>
<view class="t-rule">
<text>1.抽奖细则每日前{{ freeNumDay }}次付款均可获得抽奖机会</text>
<text>2.奖励说明红包奖励将自动发放到红包余额已绑定银行卡账号将会自动发起提现其余奖品则需联系客服领取</text>
<text>2.抽奖机会仅当日可用次日作废</text>
<text>3.奖励说明红包奖励将自动发放到红包余额已绑定银行卡账号将会自动发起提现其余奖品则需联系客服领取</text>
</view>
</view>
</view>

View File

@ -72,8 +72,8 @@
<view class="card-wrap">
<view class="menu-list">
<view class="item" @click="toTask">
<image class="icon" src="/static/me/menu_icon1.png" mode="aspectFit"></image>
<view class="name">任务中心</view>
<image class="icon" src="/static/me/Frame.png" mode="aspectFit"></image>
<view class="name">邀请好友</view>
</view>
<view class="item" @click="linkTo('/pages/me/setting')">
<image class="icon" src="/static/me/menu_icon2.png" mode="aspectFit"></image>
@ -164,9 +164,7 @@ async function selectUserMoneyAjax() {
//
function toTask() {
uni.switchTab({
url: '/pages/task/index'
});
linkTo('/pages/share/index');
}
onPullDownRefresh(async () => {

View File

@ -52,6 +52,37 @@
})
} else {
data.logining = true
// this.$u.post('app/user/updateUser?zhiFuBao=' + zhiFuBao + '&certName=' + zhiFuBaoName + '&certNum=' + certNum).then(
// res => {
// console.log(res);
// if (res.code === 0) {
// uni.setStorageSync('zhiFuBao', zhiFuBao)
// uni.setStorageSync('zhiFuBaoName', zhiFuBaoName)
// uni.setStorageSync('certNum', certNum)
// uni.showToast({
// title: '',
// icon: 'none',
// complete() {
// setTimeout(function () {
// uni.navigateBack();
// }, 1000)
// }
// })
// } else {
// uni.showToast({
// title: res.msg || '',
// icon: 'none'
// })
// }
// });
let res = await updateUser({
zhiFuBao: data.zhiFuBao,
certName: data.zhiFuBaoName,

View File

@ -1,9 +1,6 @@
<template>
<view class="container">
<up-navbar title="申请提现"
:autoBack="true"
bgColor="rgb(255, 117, 129)"
leftIconColor="#FFF"
<up-navbar title="申请提现" :autoBack="true" bgColor="rgb(255, 117, 129)" leftIconColor="#FFF"
:titleStyle="{color:'#FFF'}">
<template #right>
<view class="u-p-r-30 u-flex u-col-center" style="color: #fff;">
@ -22,7 +19,8 @@
<view class="input" style="">
<view style="display: flex;align-items: center;">
<view style="font-size: 40upx;color: #333333;">¥</view>
<input type="digit" v-model="data.money" placeholder="请输入金额" @input="moneyInput" style="font-size: 32rpx;color: #333333;text-align: left;margin-left: 10rpx;width: 80%;" />
<input type="digit" v-model="data.money" placeholder="请输入金额" @input="moneyInput"
style="font-size: 32rpx;color: #333333;text-align: left;margin-left: 10rpx;width: 80%;" />
</view>
<view class="allbtn" @click="setAllMoney">
全部
@ -32,7 +30,9 @@
</view>
<view class="witBtn" @click="goWithdraw"> {{data.isWithdraw?'立即提现':'观看广告提现'}} </view>
<view style="color: #666;" @click="WithdrawalAlipay">
提现到支付宝
</view>
<view class="tab" style="">
<view @click="linkTo('/pages/me/withdraw/realName')">实名认证</view>
<!-- <view @click="linkTo('/pages/me/withdraw/alipay')">提现账号</view> -->
@ -73,18 +73,20 @@
</view>
<up-modal :show="data.ruleShow" confirm-text="知道了" title="规则说明" :title="data.rule_title" :title-style="{fontWeight:'700'}" @confirm="ruleConfirm" confirm-color="rgb(255, 117, 129)">
<up-modal :show="data.ruleShow" confirm-text="知道了" title="规则说明" :title="data.rule_title"
:title-style="{fontWeight:'700'}" @confirm="ruleConfirm" confirm-color="rgb(255, 117, 129)">
<view class="u-p-30 u-text-left">
<scroll-view scroll-y="true" style="max-height: 50vh;">
<rich-text style="text-align: justify;font-size: 18px;color: #666;" :nodes="data.rule_content"></rich-text>
<rich-text style="text-align: justify;font-size: 18px;color: #666;"
:nodes="data.rule_content"></rich-text>
</scroll-view>
</view>
</up-modal>
<view style="width: 0;height: 0;overflow: hidden;">
<!-- 激励视频广告 -->
<ad-rewarded-video ref="adRewardedw" :adpid="data.adpid" :loadnext="true"
:url-callback="data.urlCallback" @load="onadload" @close="onadclose" @error="onaderror">
<ad-rewarded-video ref="adRewardedw" :adpid="data.adpid" :loadnext="true" :url-callback="data.urlCallback"
@load="onadload" @close="onadclose" @error="onaderror">
</ad-rewarded-video>
</view>
@ -92,13 +94,38 @@
</template>
<script setup>
import { reactive, nextTick, ref } from 'vue';
import { onReady,onLoad,onShow,onLaunch,onPullDownRefresh, onReachBottom } from '@dcloudio/uni-app'
import { selectUserMoney, selectPayDetails, canCash, state, withdraw } from '@/api/me/withdraw.js';
import { selectUserById } from '@/api/user/user.js';
import { announcement } from '@/api/index/index.js';
import { commonType } from '@/api/init.js';
import { linkTo } from '@/utils/app.js';
import {
reactive,
nextTick,
ref
} from 'vue';
import {
onReady,
onLoad,
onShow,
onLaunch,
onPullDownRefresh,
onReachBottom
} from '@dcloudio/uni-app'
import {
selectUserMoney,
selectPayDetails,
canCash,
state,
withdraw
} from '@/api/me/withdraw.js';
import {
selectUserById
} from '@/api/user/user.js';
import {
announcement
} from '@/api/index/index.js';
import {
commonType
} from '@/api/init.js';
import {
linkTo
} from '@/utils/app.js';
let data = reactive({
ruleShow: false,
@ -133,7 +160,9 @@
getExtractFei();
getMoneyDetail();
getCanCash()
announcement({type: 1}).then(res=>{
announcement({
type: 1
}).then(res => {
data.ruleList = res
ruleInit()
@ -162,6 +191,7 @@
data.list = []
getMoneyDetail();
})
function ruleInit() {
data.rule_title = data.ruleList[data.ruleIndex].title
data.rule_content = data.ruleList[data.ruleIndex].content
@ -201,6 +231,42 @@
data.userInfo = res;
})
}
function WithdrawalAlipay() {
if (data.userInfo.zhiFuBao) {
if (data.money) {
withdraw({
amount: data.money,
isAlipay: 0
}).then(res => {
data.money = ''
uni.setStorageSync('adRewardedNum', 0)
setTimeout(function() {
getcashMoney()
}, 1500)
uni.showToast({
title: res.msg,
icon: 'none'
})
})
}else{
uni.showToast({
title: "请输入金额",
icon: 'none',
})
}
} else {
uni.showToast({
title: "请绑定支付宝",
icon: 'none',
})
setTimeout(() => {
//
linkTo('/pages/me/withdraw/alipay')
}, 1500)
}
}
function back() {
uni.navigateBack()
}
@ -424,7 +490,10 @@
return;
}
if (!data.userInfo.accountNo) {
uni.showToast({ icon: 'none', title: "请先实名认证" });
uni.showToast({
icon: 'none',
title: "请先实名认证"
});
setTimeout(() => {
linkTo('/pages/me/withdraw/realName')
}, 1500)
@ -441,7 +510,8 @@
setTimeout(() => {
uni.showModal({
title: "提现申请提示",
content: '请仔细确认收款人信息\n\n收款人姓名:' + data.userInfo.certName + '\n\n提现金额:' + data
content: '请仔细确认收款人信息\n\n收款人姓名:' + data.userInfo.certName +
'\n\n提现金额:' + data
.money + '元\n\n收款人账号' + data.userInfo.accountNo + '',
success: (e) => {
@ -471,7 +541,6 @@
});
}
}
</script>
<style lang="scss" scoped>
@ -480,6 +549,7 @@
background: white;
position: absolute;
width: 100%;
.nav {
width: 100%;
@ -491,45 +561,53 @@
align-items: center;
justify-content: space-between;
padding: 100rpx 30rpx 15rpx 30rpx;
.navTitle {
color: #fff;
font-size: 32rpx;
font-weight: bold;
}
.ruleBtn {
font-size: 30rpx;
color: #fff;
}
}
.content {
background-color: #ff7581;
height: 500rpx;
border-bottom-right-radius: 40rpx;
border-bottom-left-radius: 40rpx;
.title {
font-size: 32rpx;
color: #FFFFFF;
padding-top: 230rpx;
}
.mayMoney {
font-size: 40rpx;
color: #FFFFFF;
padding-top: 20rpx;
}
.val {
width: 90%;
height: max-content
;margin-left: 40rpx;
height: max-content;
margin-left: 40rpx;
background-color: #FFFFFF;
box-shadow: rgba(183, 183, 183, 0.3) 0px 1px 10px;
margin-top: 50rpx;
border-radius: 20rpx;
.input {
display: flex;
padding: 20rpx;
justify-content: space-between;
align-items: center;
}
.allbtn {
font-size: 28rpx;
color: #333333;
@ -540,6 +618,7 @@
flex-shrink: 0;
}
}
.witBtn {
margin: 32rpx;
font-size: 36rpx;
@ -549,11 +628,13 @@
height: 80rpx;
line-height: 80rpx;
}
.tab {
width: 100%;
display: flex;
width: 100%;
justify-content: space-around;
>view {
font-size: 28rpx;
color: #666;
@ -561,6 +642,7 @@
padding-top: 20rpx;
}
}
.moneyList {
text-align: left
}

View File

@ -55,7 +55,7 @@
moneyType : data.moneyType,
viewType: data.viewType,
}).then(res => {
data.totalCount = res.total;
data.totalCount = res.totalCount;
if ( res.records.length > 0) {
data.list = [...data.list,...res.records];
}
@ -65,6 +65,7 @@
})
}
onReachBottom(() => {
console.log(1)
if (data.page*data.limit < data.totalCount) {
data.page = data.page + 1;
getMoney();

Binary file not shown.

Before

Width:  |  Height:  |  Size: 258 KiB

After

Width:  |  Height:  |  Size: 129 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
static/me/Frame.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 29 KiB