Merge branch 'test' of https://e.coding.net/g-cphe0354/duanju/video_app into ymf
This commit is contained in:
@@ -8,13 +8,13 @@
|
|||||||
// const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
|
// const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
|
||||||
|
|
||||||
// h5
|
// h5
|
||||||
// const ROOTPATH1 = "https://web.hnsiyao.cn/czg/"; //
|
const ROOTPATH1 = "https://web.hnsiyao.cn/czg/"; //
|
||||||
// const ROOTPATH = "https://web.hnsiyao.cn/czg/"; //后台服务域名
|
const ROOTPATH = "https://web.hnsiyao.cn/czg/"; //后台服务域名
|
||||||
// const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
|
const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
|
||||||
|
|
||||||
const ROOTPATH1 = "https://web-api.hnsiyao.cn/czg/"; //
|
// const ROOTPATH1 = "https://web-api.hnsiyao.cn/czg/"; //
|
||||||
const ROOTPATH = "https://web-api.hnsiyao.cn/czg/"; //后台服务域名
|
// const ROOTPATH = "https://web-api.hnsiyao.cn/czg/"; //后台服务域名
|
||||||
const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
|
// const ROOTPATH2 = "https://video-h5.hnsiyao.cn"; //后台服务域名
|
||||||
|
|
||||||
// const ROOTPATH1 = "http://192.168.1.41:8100/czg/"; //
|
// const ROOTPATH1 = "http://192.168.1.41:8100/czg/"; //
|
||||||
// const ROOTPATH = "http://192.168.1.41:8100/czg/"; //后台服务域名
|
// const ROOTPATH = "http://192.168.1.41:8100/czg/"; //后台服务域名
|
||||||
|
|||||||
@@ -468,35 +468,13 @@
|
|||||||
tipContent = `恭喜您,获得 ${name}${this.result.type==2?(this.result.number+'元'):''} !`
|
tipContent = `恭喜您,获得 ${name}${this.result.type==2?(this.result.number+'元'):''} !`
|
||||||
}
|
}
|
||||||
const _this = this;
|
const _this = this;
|
||||||
uni.showModal({
|
uni.showToast({
|
||||||
content: tipContent,
|
title: tipContent,
|
||||||
showCancel: false,
|
icon: 'none'
|
||||||
success() {
|
|
||||||
const {
|
|
||||||
orderId,
|
|
||||||
id
|
|
||||||
} = _this.result
|
|
||||||
_this.$Request.postJson('app/discSpinning/receive', _this.result).then(res => {
|
|
||||||
_this.result = ''
|
|
||||||
console.log(res)
|
|
||||||
if (res.code == 0) {
|
|
||||||
uni.showToast({
|
|
||||||
title: '领取成功',
|
|
||||||
icon: 'none'
|
|
||||||
})
|
|
||||||
_this.getRedPack()
|
|
||||||
} else {
|
|
||||||
uni.showToast({
|
|
||||||
title: '领取失败',
|
|
||||||
icon: 'none'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
complete: () => {
|
|
||||||
this.prizeing = false
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
_this.getRedPack()
|
||||||
|
this.prizeing = false
|
||||||
|
|
||||||
},
|
},
|
||||||
// 抽奖转盘绘制完成
|
// 抽奖转盘绘制完成
|
||||||
handleDrawFinish(res) {
|
handleDrawFinish(res) {
|
||||||
|
|||||||
@@ -1,175 +0,0 @@
|
|||||||
<template>
|
|
||||||
<view>
|
|
||||||
<u-popup v-model="show" mode="center" @close="close">
|
|
||||||
<view class="bg">
|
|
||||||
<view class="title">恭喜您获得</view>
|
|
||||||
<view class="goods">
|
|
||||||
<template v-if="result&&result.type==3">
|
|
||||||
<view class="u-flex u-col-center u-row-center">
|
|
||||||
<image style="height: 42px;" src="/static/red-pack.png" mode="heightFix"></image>
|
|
||||||
</view>
|
|
||||||
<view class="u-flex u-row-center">
|
|
||||||
<view class="type">物品</view>
|
|
||||||
</view>
|
|
||||||
</template>
|
|
||||||
<template v-if="result&&result.type==2">
|
|
||||||
<view class="u-flex color-money u-col-center u-row-center">
|
|
||||||
<view class="money">{{result.number}}</view>
|
|
||||||
<view class="font-bold" style="margin-top: 20rpx;">元</view>
|
|
||||||
</view>
|
|
||||||
<view class="u-flex u-row-center">
|
|
||||||
<view class="type">现金红包</view>
|
|
||||||
</view>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
</view>
|
|
||||||
<view class="u-flex u-row-center btn-box">
|
|
||||||
<view class="btn" @click="lingqu">立即领取</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="u-flex u-row-center">
|
|
||||||
<u-icon name="close-circle" :size="54" @click="close" color="#fff"></u-icon>
|
|
||||||
</view>
|
|
||||||
</u-popup>
|
|
||||||
</view>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
show: false,
|
|
||||||
result: ''
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
open(data) {
|
|
||||||
console.log(data);
|
|
||||||
this.result = data
|
|
||||||
this.show = true
|
|
||||||
},
|
|
||||||
lingqu() {
|
|
||||||
const {
|
|
||||||
orderId,
|
|
||||||
id
|
|
||||||
} = this.result
|
|
||||||
this.$Request.postJson('app/discSpinning/receive', this.result).then(res => {
|
|
||||||
this.result = ''
|
|
||||||
console.log(res)
|
|
||||||
if (res.code == 0) {
|
|
||||||
uni.showToast({
|
|
||||||
title: '领取成功',
|
|
||||||
icon: 'none'
|
|
||||||
})
|
|
||||||
this.$emit('success')
|
|
||||||
this.close()
|
|
||||||
} else {
|
|
||||||
uni.showToast({
|
|
||||||
title: '领取失败',
|
|
||||||
icon: 'none'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
close() {
|
|
||||||
this.show = false
|
|
||||||
if(!this.result){
|
|
||||||
return
|
|
||||||
}
|
|
||||||
const {
|
|
||||||
orderId,
|
|
||||||
id
|
|
||||||
} = this.result
|
|
||||||
this.$Request.postJson('app/discSpinning/receive', this.result).then(res => {
|
|
||||||
this.result = ''
|
|
||||||
console.log(res)
|
|
||||||
if (res.code == 0) {
|
|
||||||
this.$emit('success')
|
|
||||||
this.close()
|
|
||||||
} else {
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
::v-deep .u-mode-center-box {
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
.color-money {
|
|
||||||
color: #E42F00;
|
|
||||||
}
|
|
||||||
|
|
||||||
.money {
|
|
||||||
font-weight: 700;
|
|
||||||
font-size: 72rpx;
|
|
||||||
letter-spacing: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bg {
|
|
||||||
width: 628rpx;
|
|
||||||
height: 770rpx;
|
|
||||||
margin-right: 10rpx;
|
|
||||||
background-color: transparent;
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-position: center center;
|
|
||||||
background-size: cover;
|
|
||||||
background-image: url("~static/images/zhuanpan/ling-qu.png");
|
|
||||||
position: relative;
|
|
||||||
|
|
||||||
@media (-webkit-min-device-pixel-ratio: 2),
|
|
||||||
(min-device-pixel-ratio: 2) {
|
|
||||||
background-image: url("~static/images/zhuanpan/ling-qu@2x.png");
|
|
||||||
}
|
|
||||||
|
|
||||||
.title {
|
|
||||||
position: absolute;
|
|
||||||
top: 238rpx;
|
|
||||||
text-align: center;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
font-weight: 700;
|
|
||||||
font-size: 58rpx;
|
|
||||||
color: #AF6920;
|
|
||||||
letter-spacing: 4rpx;
|
|
||||||
}
|
|
||||||
|
|
||||||
.goods {
|
|
||||||
position: absolute;
|
|
||||||
top: 326rpx;
|
|
||||||
text-align: center;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.type {
|
|
||||||
padding: 6rpx 28rpx;
|
|
||||||
border-radius: 100rpx;
|
|
||||||
background: #E25B41;
|
|
||||||
font-size: 28rpx;
|
|
||||||
color: #fff;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-box {
|
|
||||||
position: absolute;
|
|
||||||
top: 574rpx;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
|
|
||||||
.btn {
|
|
||||||
padding: 10rpx 60rpx 10rpx 64rpx;
|
|
||||||
text-align: center;
|
|
||||||
font-weight: bold;
|
|
||||||
font-size: 44rpx;
|
|
||||||
color: #AF6920;
|
|
||||||
letter-spacing: 2px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
@@ -49,28 +49,7 @@
|
|||||||
close() {
|
close() {
|
||||||
console.log('抽奖弹窗关闭');
|
console.log('抽奖弹窗关闭');
|
||||||
this.show = false
|
this.show = false
|
||||||
if(!this.result){
|
this.$emit('close',key)
|
||||||
return
|
|
||||||
}
|
|
||||||
const {
|
|
||||||
orderId,
|
|
||||||
id
|
|
||||||
} = this.result
|
|
||||||
this.$Request.postJson('app/discSpinning/receive', this.result).then(res => {
|
|
||||||
this.result = ''
|
|
||||||
console.log(res)
|
|
||||||
if (res.code == 0) {
|
|
||||||
console.log('抽奖领取成功');
|
|
||||||
const key=res.data==0?'isBindAliPay':undefined
|
|
||||||
this.$emit('close',key)
|
|
||||||
if(key&&key=='isBindAliPay'){
|
|
||||||
uni.navigateTo({
|
|
||||||
url:'/me/invite/zhifubao'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
"name" : "斯耀短剧",
|
"name" : "斯耀短剧",
|
||||||
"appid" : "__UNI__E0B05B1",
|
"appid" : "__UNI__E0B05B1",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.1.8",
|
"versionName" : "1.1.9",
|
||||||
"versionCode" : 118,
|
"versionCode" : 119,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
|||||||
@@ -485,9 +485,9 @@
|
|||||||
tipContent = `恭喜您,获得 ${name}${this.result.type==2?(this.result.number+'元'):''} !`
|
tipContent = `恭喜您,获得 ${name}${this.result.type==2?(this.result.number+'元'):''} !`
|
||||||
this.showLingPop({...this.result})
|
this.showLingPop({...this.result})
|
||||||
const cacheData={...this.result}
|
const cacheData={...this.result}
|
||||||
setTimeout(()=>{
|
// setTimeout(()=>{
|
||||||
this.$Request.postJson('app/discSpinning/receive',cacheData )
|
// this.$Request.postJson('app/discSpinning/receive',cacheData )
|
||||||
},1000)
|
// },1000)
|
||||||
}
|
}
|
||||||
console.log(this.result);
|
console.log(this.result);
|
||||||
this.result=''
|
this.result=''
|
||||||
|
|||||||
@@ -832,8 +832,8 @@
|
|||||||
} else {
|
} else {
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: res.msg,
|
icon: "none",
|
||||||
title: '支付失败!'
|
title: res.msg
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -54,9 +54,12 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view style="display: flex;width: 100%;justify-content: center;">
|
<view style="display: flex;width: 100%;justify-content: center;">
|
||||||
<view class="u-flex-1" style="color: grey;padding-bottom: 30px;padding-top: 20upx;" @click="goZhifuBao">
|
<view class="u-flex-1" style="color: grey;padding-bottom: 30px;padding-top: 20upx;" @click="realName">
|
||||||
提现账号
|
实名认证
|
||||||
</view>
|
</view>
|
||||||
|
<!-- <view class="u-flex-1" style="color: grey;padding-bottom: 30px;padding-top: 20upx;" @click="goZhifuBao">
|
||||||
|
提现账号
|
||||||
|
</view> -->
|
||||||
<view class="u-flex-1" style="color: grey;padding-bottom: 30px;padding-top: 20upx;" @click="goqianbao">
|
<view class="u-flex-1" style="color: grey;padding-bottom: 30px;padding-top: 20upx;" @click="goqianbao">
|
||||||
红包明细
|
红包明细
|
||||||
</view>
|
</view>
|
||||||
@@ -132,7 +135,7 @@
|
|||||||
用户在平台中对奖励提现的,适用以下规则:
|
用户在平台中对奖励提现的,适用以下规则:
|
||||||
<br/>
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
1,用户的收益达到最低提现金额要求后,可以申请提现。每日发起前10笔提现为自动到账,超出则需第二个工作日后到账。
|
1,用户的收益达到最低提现金额要求后,可以申请提现,每日只可以提现一笔。
|
||||||
<br/>
|
<br/>
|
||||||
2,用户需要通过支付宝提现,需按照要求绑定支付宝账号并填写提现金额或其他提现所需信息,请确保提供的信息准确无误,以免提现失败。
|
2,用户需要通过支付宝提现,需按照要求绑定支付宝账号并填写提现金额或其他提现所需信息,请确保提供的信息准确无误,以免提现失败。
|
||||||
<br/>
|
<br/>
|
||||||
@@ -142,9 +145,9 @@
|
|||||||
<br/>
|
<br/>
|
||||||
(2)高峰期提现人数多会导致网络拥堵,显示提现成功之后72小时内属于正常现象,请耐心等候。
|
(2)高峰期提现人数多会导致网络拥堵,显示提现成功之后72小时内属于正常现象,请耐心等候。
|
||||||
<br/>
|
<br/>
|
||||||
4,每日23:00至次日11:00为系统维护时间,活动的对应奖励可能延迟到账。提现通常会在72小时内到账,如遇双休日、节假日,提现到账时间可能会延长。活动高峰期间,由于网络拥堵,用户可能存在短时间内无法提现的情况。平台将尽最大努力及时恢复提现功能,但无需因此承担任何责任。
|
4,每日08:00至次日18:00为提现时间,活动的对应奖励可能延迟到账。提现通常会在72小时内到账,如遇双休日、节假日,提现到账时间可能会延长。活动高峰期间,由于网络拥堵,用户可能存在短时间内无法提现的情况。平台将尽最大努力及时恢复提现功能,但无需因此承担任何责任。
|
||||||
<br/>
|
<br/>
|
||||||
`,
|
`,
|
||||||
money: '',
|
money: '',
|
||||||
mayMoney: '0',
|
mayMoney: '0',
|
||||||
shouxufei: '',
|
shouxufei: '',
|
||||||
@@ -173,7 +176,6 @@
|
|||||||
userId: '',
|
userId: '',
|
||||||
zhifubao: '',
|
zhifubao: '',
|
||||||
zhifubaoName: '',
|
zhifubaoName: '',
|
||||||
certNum: '',
|
|
||||||
list: [],
|
list: [],
|
||||||
page: 1,
|
page: 1,
|
||||||
limit: 10,
|
limit: 10,
|
||||||
@@ -192,11 +194,18 @@
|
|||||||
onShow() {
|
onShow() {
|
||||||
this.token = uni.getStorageSync('token')
|
this.token = uni.getStorageSync('token')
|
||||||
this.userId = uni.getStorageSync('userId')
|
this.userId = uni.getStorageSync('userId')
|
||||||
this.zhifubao = uni.getStorageSync('zhiFuBao')
|
|
||||||
this.zhifubaoName = uni.getStorageSync('zhiFuBaoName')
|
|
||||||
this.certNum = uni.getStorageSync('certNum')
|
|
||||||
this.getcashMoney()
|
this.getcashMoney()
|
||||||
|
this.$u.api.userinfo().then(res => {
|
||||||
|
if (res.code === 0) {
|
||||||
|
if (res.data.certName) {
|
||||||
|
this.zhifubaoName = res.data.certName;
|
||||||
|
}
|
||||||
|
if (res.data.accountNo) {
|
||||||
|
this.zhifubao = res.data.accountNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
onReachBottom: function() {
|
onReachBottom: function() {
|
||||||
if (this.page * this.limit < this.totalCount) {
|
if (this.page * this.limit < this.totalCount) {
|
||||||
@@ -385,6 +394,15 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 实名认证
|
||||||
|
*/
|
||||||
|
realName() {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/me/invite/realName'
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 绑定支付宝
|
* 绑定支付宝
|
||||||
*/
|
*/
|
||||||
@@ -419,7 +437,7 @@
|
|||||||
that.getcashMoney()
|
that.getcashMoney()
|
||||||
}, 1500)
|
}, 1500)
|
||||||
|
|
||||||
} else if (res.code == 9991) {
|
} else if (res.code == 9999) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.msg,
|
title: res.msg,
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
@@ -430,6 +448,17 @@
|
|||||||
});
|
});
|
||||||
}, 1500)
|
}, 1500)
|
||||||
|
|
||||||
|
} else if (res.code == 9991) {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.msg,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
setTimeout(function() {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/me/invite/realName'
|
||||||
|
});
|
||||||
|
}, 1500)
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.msg,
|
title: res.msg,
|
||||||
@@ -447,136 +476,78 @@
|
|||||||
let cashMoney = that.cashMoney;
|
let cashMoney = that.cashMoney;
|
||||||
|
|
||||||
if (token) {
|
if (token) {
|
||||||
if (that.zhifubao && that.zhifubaoName) {
|
|
||||||
if (!/^\d+(\.\d{1,2})?$/.test(that.money)) {
|
|
||||||
uni.showToast({
|
|
||||||
icon: 'none',
|
|
||||||
title: '请输入正确金额,不能包含中文,英文,特殊字符和小数'
|
|
||||||
});
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
let shouxufei = parseFloat(that.money * that.shouxufei).toFixed(2);
|
|
||||||
if (parseFloat(that.mayMoney).toFixed(2) >= parseFloat(that.money)) {
|
|
||||||
// if (parseFloat(that.mayMoney).toFixed(1) >= parseFloat(that.money) + shouxufei * 1) {
|
|
||||||
if (parseFloat(that.money).toFixed(2) >= parseFloat(cashMoney)) {
|
|
||||||
if (that.shouxufei > 0) {
|
|
||||||
|
|
||||||
uni.showModal({
|
if (!/^\d+(\.\d{1,2})?$/.test(that.money)) {
|
||||||
title: "提现申请提示",
|
uni.showToast({
|
||||||
content: '请仔细确认收款人信息\n\n收款人姓名:' + that.zhifubaoName + '\n\n提现金额:' + that
|
icon: 'none',
|
||||||
.money + '元\n\n收款人账号:' + that.zhifubao + '',
|
title: '请输入正确金额,不能包含中文,英文,特殊字符和小数'
|
||||||
// content: '请仔细确认收款人信息\n\n收款人姓名:' + that.zhifubaoName + '\n\n提现金额:' + that
|
});
|
||||||
// .money + '元\n\n提现手续费:' + shouxufei +
|
return;
|
||||||
// '\n\n收款人账号:' + that.zhifubao + '',
|
|
||||||
success: (e) => {
|
|
||||||
if (e.confirm) {
|
|
||||||
// that.money = money
|
|
||||||
that.getMoney();
|
|
||||||
that.getMoneyDetail();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
uni.showModal({
|
|
||||||
title: "提现申请提示",
|
|
||||||
content: '请仔细确认收款人信息\n\n收款人姓名:' + that.zhifubaoName + '\n\n提现金额:' + that
|
|
||||||
.money + '元\n\n收款人账号:' + that.zhifubao +
|
|
||||||
'',
|
|
||||||
success: (e) => {
|
|
||||||
if (e.confirm) {
|
|
||||||
// that.money = money
|
|
||||||
that.getMoney();
|
|
||||||
that.getMoneyDetail();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
} else {
|
|
||||||
uni.showToast({
|
|
||||||
icon: 'none',
|
|
||||||
title: "提现金额必须大于或等于" + cashMoney + "元才可提现"
|
|
||||||
});
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
uni.showToast({
|
|
||||||
icon: 'none',
|
|
||||||
title: "您的余额不足"
|
|
||||||
});
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
uni.navigateTo({
|
|
||||||
url: "/me/invite/zhifubao"
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
} else {
|
let shouxufei = parseFloat(that.money * that.shouxufei).toFixed(2);
|
||||||
uni.navigateTo({
|
if (parseFloat(that.mayMoney).toFixed(2) >= parseFloat(that.money)) {
|
||||||
url: '/pages/login/login'
|
// if (parseFloat(that.mayMoney).toFixed(1) >= parseFloat(that.money) + shouxufei * 1) {
|
||||||
});
|
if (parseFloat(that.money).toFixed(2) >= parseFloat(cashMoney)) {
|
||||||
}
|
if (that.shouxufei > 0) {
|
||||||
},
|
uni.showModal({
|
||||||
getOut1(money) {
|
title: "提现申请提示",
|
||||||
let that = this;
|
content: '每日只可提现一次',
|
||||||
let token = that.token
|
success: (e) => {
|
||||||
let userId = that.userId
|
if (e.confirm) {
|
||||||
if (token) {
|
uni.showModal({
|
||||||
if (that.zhifubao && that.zhifubaoName) {
|
title: "提现申请提示",
|
||||||
if (parseFloat(this.mayMoney).toFixed(1) >= parseFloat(money)) {
|
content: '请仔细确认收款人信息\n\n收款人姓名:' + that.zhifubaoName + '\n\n提现金额:' + that
|
||||||
if (parseFloat(money).toFixed(1) >= 10) {
|
.money + '元\n\n收款人账号:' + that.zhifubao + '',
|
||||||
if (this.shouxufei > 0) {
|
// content: '请仔细确认收款人信息\n\n收款人姓名:' + that.zhifubaoName + '\n\n提现金额:' + that
|
||||||
let shouxufei = parseFloat(money * this.shouxufei).toFixed(2);
|
// .money + '元\n\n提现手续费:' + shouxufei +
|
||||||
uni.showModal({
|
// '\n\n收款人账号:' + that.zhifubao + '',
|
||||||
title: '提现申请提示',
|
success: (e) => {
|
||||||
content: '请仔细确认收款人信息\n\n收款人姓名:' + that.zhifubaoName + '\n\n提现金额:' + money +
|
if (e.confirm) {
|
||||||
'元\n\n收款人账号:' + that.zhifubao + '',
|
// that.money = money
|
||||||
// content: '请仔细确认收款人信息\n\n收款人姓名:' + that.zhifubaoName + '\n\n提现金额:' + money +
|
that.getMoney();
|
||||||
// '元\n\n提现手续费:' + shouxufei +
|
that.getMoneyDetail();
|
||||||
// '\n\n收款人账号:' + that.zhifubao + '',
|
}
|
||||||
confirmColor: '#ff7581',
|
}
|
||||||
success: e => {
|
});
|
||||||
if (e.confirm) {
|
|
||||||
this.money = money
|
|
||||||
that.getMoney();
|
|
||||||
// uni.showToast({
|
|
||||||
// icon: 'none',
|
|
||||||
// title: '提现成功'
|
|
||||||
// })
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
} else {
|
|
||||||
uni.showModal({
|
|
||||||
title: '提现申请提示',
|
|
||||||
content: '请仔细确认收款人信息\n\n收款人姓名:' + that.zhifubaoName + '\n\n提现金额:' + money +
|
|
||||||
'元\n\n收款人账号:' + that.zhifubao +
|
|
||||||
'',
|
|
||||||
success: e => {
|
|
||||||
if (e.confirm) {
|
|
||||||
this.money = money
|
|
||||||
that.getMoney();
|
|
||||||
// uni.showToast({
|
|
||||||
// icon: 'none',
|
|
||||||
// title: '提现成功'
|
|
||||||
// })
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
uni.showToast({
|
|
||||||
icon: 'none',
|
|
||||||
title: '提现金额必须大于或等于10元才可提现'
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
} else {
|
||||||
|
uni.showModal({
|
||||||
|
title: "提现申请提示",
|
||||||
|
content: '每日只可提现一次',
|
||||||
|
success: (e) => {
|
||||||
|
if (e.confirm) {
|
||||||
|
uni.showModal({
|
||||||
|
title: "提现申请提示",
|
||||||
|
content: '请仔细确认收款人信息\n\n收款人姓名:' + that.zhifubaoName + '\n\n提现金额:' + that
|
||||||
|
.money + '元\n\n收款人账号:' + that.zhifubao +
|
||||||
|
'',
|
||||||
|
success: (e) => {
|
||||||
|
if (e.confirm) {
|
||||||
|
// that.money = money
|
||||||
|
that.getMoney();
|
||||||
|
that.getMoneyDetail();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
title: '您的余额不足'
|
title: "提现金额必须大于或等于" + cashMoney + "元才可提现"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
uni.navigateTo({
|
uni.showToast({
|
||||||
url: '/me/invite/zhifubao'
|
icon: 'none',
|
||||||
|
title: "您的余额不足"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -585,6 +556,7 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
177
me/invite/realName.vue
Normal file
177
me/invite/realName.vue
Normal file
@@ -0,0 +1,177 @@
|
|||||||
|
<template>
|
||||||
|
<view class="containerView">
|
||||||
|
<list-cell title="姓名" type="text" placeholder="请输入姓名" v-model="certName"></list-cell>
|
||||||
|
|
||||||
|
|
||||||
|
<list-cell title="身份证号码" type="text" placeholder="请输入身份证号码" v-model="certNum"></list-cell>
|
||||||
|
|
||||||
|
<list-cell title="银行卡号码" type="text" placeholder="请输入银行卡号码" v-model="accountNo"></list-cell>
|
||||||
|
|
||||||
|
<list-cell title="手机号" type="text" placeholder="请输入银行预留号码" v-model="mobile"></list-cell>
|
||||||
|
|
||||||
|
<button v-if="!user.accountNo" class="confirm-btn" @click="toLogin"
|
||||||
|
:disabled="logining">认证</button>
|
||||||
|
<view style="font-size: 24upx;color: #999999;padding: 0 64rpx;margin-top: 32rpx;margin-bottom: 10rpx;">请正确填写收款人的银行卡号和真实的收款人姓名</view>
|
||||||
|
<view style="font-size: 24upx;color: #999999;padding: 0 64rpx;;margin-bottom: 10rpx;">手机号需是银行卡预留手机号</view>
|
||||||
|
<view style="font-size: 24upx;color: #999999;padding: 0 64rpx;;margin-bottom: 10rpx;">银行卡号需与收款人姓名一致</view>
|
||||||
|
<view style="font-size: 24upx;color: #999999;padding: 0 64rpx;;margin-bottom: 10rpx;">身份证信息仅可使用一次</view>
|
||||||
|
<view style="font-size: 24upx;color: #999999;padding: 0 64rpx">否则将无法正常收款,请须知</view>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import listCell from '@/me/components/com-input';
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
listCell
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
certName: '',
|
||||||
|
mobile: '',
|
||||||
|
certNum: '',
|
||||||
|
accountNo: '',
|
||||||
|
user: {},
|
||||||
|
logining: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onLoad() {
|
||||||
|
let userId = uni.getStorageSync('userId');
|
||||||
|
|
||||||
|
if (userId) {
|
||||||
|
this.$u.api.userinfo().then(res => {
|
||||||
|
if (res.code === 0) {
|
||||||
|
this.user = res.data
|
||||||
|
if (res.data.certName) {
|
||||||
|
this.certName = res.data.certName;
|
||||||
|
}
|
||||||
|
if (res.data.mobile) {
|
||||||
|
this.mobile = res.data.mobile;
|
||||||
|
}
|
||||||
|
if (res.data.accountNo) {
|
||||||
|
this.certNum = res.data.certNo;
|
||||||
|
this.accountNo = res.data.accountNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
inputChange(e) {
|
||||||
|
const key = e.currentTarget.dataset.key;
|
||||||
|
this[key] = e.detail.value;
|
||||||
|
},
|
||||||
|
navBack() {
|
||||||
|
uni.navigateBack();
|
||||||
|
},
|
||||||
|
|
||||||
|
toLogin() {
|
||||||
|
|
||||||
|
if (!this.certName) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请输入姓名',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
} else if (!this.mobile) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请输入手机号',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
} else if (!this.certNum) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请输入身份证账号',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
} else if (!this.accountNo) {
|
||||||
|
uni.showToast({
|
||||||
|
title: '请请输入银行卡号',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.logining = true
|
||||||
|
this.$u.post('app/user/realNameAuth?certName=' + this.certName + '&mobile=' + this.mobile + '&certNum=' + this.certNum + '&accountNo=' + this.accountNo.replace(/\s+/g, '')).then(
|
||||||
|
res => {
|
||||||
|
this.logining = false
|
||||||
|
console.log(res);
|
||||||
|
if(res.code===0){
|
||||||
|
uni.setStorageSync('certName', this.certName)
|
||||||
|
uni.setStorageSync('mobile', this.mobile)
|
||||||
|
uni.setStorageSync('certNum', this.certNum)
|
||||||
|
uni.setStorageSync('accountNo', this.accountNo)
|
||||||
|
uni.showToast({
|
||||||
|
title: '修改成功',
|
||||||
|
icon: 'none',
|
||||||
|
complete() {
|
||||||
|
setTimeout(function() {
|
||||||
|
uni.navigateBack();
|
||||||
|
}, 1000)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
uni.showToast({
|
||||||
|
title:res.msg||'修改失败',
|
||||||
|
icon:'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang='scss'>
|
||||||
|
page {
|
||||||
|
background: #FFFFFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.containerView {
|
||||||
|
padding-top: 32upx;
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
background: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.confirm-btn1 {
|
||||||
|
width: 300px;
|
||||||
|
height: 42px;
|
||||||
|
line-height: 42px;
|
||||||
|
border-radius: 30px;
|
||||||
|
margin-top: 70upx;
|
||||||
|
/* background: whitesmoke; */
|
||||||
|
background: #ff7581;
|
||||||
|
color: #FFFFFF;
|
||||||
|
font-size: 32rpx;
|
||||||
|
|
||||||
|
&:after {
|
||||||
|
border-radius: 60px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.confirm-btn {
|
||||||
|
width: 300px;
|
||||||
|
height: 42px;
|
||||||
|
line-height: 42px;
|
||||||
|
border-radius: 30px;
|
||||||
|
margin-top: 70upx;
|
||||||
|
background: #ff7581;
|
||||||
|
color: #ffffff;
|
||||||
|
font-size: 32rpx;
|
||||||
|
|
||||||
|
&:after {
|
||||||
|
border-radius: 60px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -4,14 +4,9 @@
|
|||||||
|
|
||||||
<list-cell title="支付宝账号" type="text" placeholder="请输入要绑定的支付宝手机号" v-model="zhiFuBao"></list-cell>
|
<list-cell title="支付宝账号" type="text" placeholder="请输入要绑定的支付宝手机号" v-model="zhiFuBao"></list-cell>
|
||||||
|
|
||||||
<list-cell title="身份证号码" type="text" placeholder="请输入要绑定身份证号码" v-model="certNum"></list-cell>
|
<button class="confirm-btn" @click="toLogin"
|
||||||
|
|
||||||
|
|
||||||
<button :class="zhiFuBao&&zhiFuBaoName?'confirm-btn':'confirm-btn1'" @click="toLogin"
|
|
||||||
:disabled="logining">绑定账户</button>
|
:disabled="logining">绑定账户</button>
|
||||||
<view style="font-size: 24upx;color: #999999;padding: 0 64rpx;margin-top: 32rpx;margin-bottom: 10rpx;">请正确填写收款人的支付宝账户和真实的收款人姓名</view>
|
<view style="font-size: 24upx;color: #999999;padding: 0 64rpx;margin-top: 32rpx;margin-bottom: 10rpx;">请正确填写收款人的支付宝账户和真实的收款人姓名</view>
|
||||||
<view style="font-size: 24upx;color: #999999;padding: 0 64rpx;;margin-bottom: 10rpx;">身份证姓名需与支付宝姓名一致</view>
|
|
||||||
<view style="font-size: 24upx;color: #999999;padding: 0 64rpx;;margin-bottom: 10rpx;">身份证信息仅可使用一次</view>
|
|
||||||
<view style="font-size: 24upx;color: #999999;padding: 0 64rpx">否则将无法正常收款,请须知</view>
|
<view style="font-size: 24upx;color: #999999;padding: 0 64rpx">否则将无法正常收款,请须知</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
@@ -27,7 +22,6 @@
|
|||||||
return {
|
return {
|
||||||
zhiFuBao: '',
|
zhiFuBao: '',
|
||||||
zhiFuBaoName: '',
|
zhiFuBaoName: '',
|
||||||
certNum: '',
|
|
||||||
logining: false
|
logining: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -43,9 +37,7 @@
|
|||||||
if (res.data.zhiFuBaoName) {
|
if (res.data.zhiFuBaoName) {
|
||||||
this.zhiFuBaoName = res.data.zhiFuBaoName;
|
this.zhiFuBaoName = res.data.zhiFuBaoName;
|
||||||
}
|
}
|
||||||
if (res.data.certNo) {
|
|
||||||
this.certNum = res.data.certNo;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -63,7 +55,6 @@
|
|||||||
toLogin() {
|
toLogin() {
|
||||||
let zhiFuBao = this.zhiFuBao
|
let zhiFuBao = this.zhiFuBao
|
||||||
let zhiFuBaoName = this.zhiFuBaoName
|
let zhiFuBaoName = this.zhiFuBaoName
|
||||||
let certNum = this.certNum
|
|
||||||
|
|
||||||
if (!zhiFuBao) {
|
if (!zhiFuBao) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
@@ -75,21 +66,15 @@
|
|||||||
title: '请设置收款人支付宝账号',
|
title: '请设置收款人支付宝账号',
|
||||||
icon: 'none'
|
icon: 'none'
|
||||||
})
|
})
|
||||||
} else if (!certNum) {
|
|
||||||
uni.showToast({
|
|
||||||
title: '请设置收款人身份证账号',
|
|
||||||
icon: 'none'
|
|
||||||
})
|
|
||||||
} else {
|
} else {
|
||||||
this.logining = true
|
this.logining = true
|
||||||
this.$u.post('app/user/updateUser?zhiFuBao=' + zhiFuBao + '&certName=' + zhiFuBaoName + '&certNum=' + certNum).then(
|
this.$u.post('app/user/bindAlipay?zhiFuBao=' + zhiFuBao + '&certName=' + zhiFuBaoName).then(
|
||||||
res => {
|
res => {
|
||||||
this.logining = false
|
this.logining = false
|
||||||
console.log(res);
|
console.log(res);
|
||||||
if(res.code===0){
|
if(res.code===0){
|
||||||
uni.setStorageSync('zhiFuBao', zhiFuBao)
|
uni.setStorageSync('zhiFuBao', zhiFuBao)
|
||||||
uni.setStorageSync('zhiFuBaoName', zhiFuBaoName)
|
uni.setStorageSync('zhiFuBaoName', zhiFuBaoName)
|
||||||
uni.setStorageSync('certNum', certNum)
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '修改成功',
|
title: '修改成功',
|
||||||
icon: 'none',
|
icon: 'none',
|
||||||
|
|||||||
11
pages.json
11
pages.json
@@ -373,6 +373,17 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "invite/realName",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "实名认证",
|
||||||
|
"h5": {
|
||||||
|
"titleNView": {
|
||||||
|
"backgroundColor": "#FFFFFF"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "invite/zhifubao",
|
"path": "invite/zhifubao",
|
||||||
"style": {
|
"style": {
|
||||||
|
|||||||
Reference in New Issue
Block a user