Merge branch 'gaohao' of https://e.coding.net/g-cphe0354/duanju/video_app into test
This commit is contained in:
commit
b0b8406104
|
|
@ -1,7 +1,7 @@
|
||||||
// APP
|
// APP
|
||||||
const ROOTPATH1 = "https://dj-api.hnsiyao.cn/czg/"; //
|
// const ROOTPATH1 = "https://dj-api.hnsiyao.cn/czg/"; //
|
||||||
const ROOTPATH = "https://dj-api.hnsiyao.cn/czg/"; //后台服务域名
|
// const ROOTPATH = "https://dj-api.hnsiyao.cn/czg/"; //后台服务域名
|
||||||
const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
|
// const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
|
||||||
|
|
||||||
// const ROOTPATH1 = "https://video.hnsiyao.cn/czg/"; //
|
// const ROOTPATH1 = "https://video.hnsiyao.cn/czg/"; //
|
||||||
// const ROOTPATH = "https://video.hnsiyao.cn/czg/"; //后台服务域名
|
// const ROOTPATH = "https://video.hnsiyao.cn/czg/"; //后台服务域名
|
||||||
|
|
@ -12,9 +12,9 @@ const ROOTPATH2 = "https://dj-h5.hnsiyao.cn"; //后台服务域名
|
||||||
// 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/"; //后台服务域名
|
||||||
|
|
|
||||||
|
|
@ -167,6 +167,7 @@
|
||||||
userId: '',
|
userId: '',
|
||||||
zhifubao: '',
|
zhifubao: '',
|
||||||
zhifubaoName: '',
|
zhifubaoName: '',
|
||||||
|
certNum: '',
|
||||||
list: [],
|
list: [],
|
||||||
page: 1,
|
page: 1,
|
||||||
limit: 10,
|
limit: 10,
|
||||||
|
|
@ -183,6 +184,7 @@
|
||||||
this.userId = uni.getStorageSync('userId')
|
this.userId = uni.getStorageSync('userId')
|
||||||
this.zhifubao = uni.getStorageSync('zhiFuBao')
|
this.zhifubao = uni.getStorageSync('zhiFuBao')
|
||||||
this.zhifubaoName = uni.getStorageSync('zhiFuBaoName')
|
this.zhifubaoName = uni.getStorageSync('zhiFuBaoName')
|
||||||
|
this.certNum = uni.getStorageSync('certNum')
|
||||||
this.getcashMoney()
|
this.getcashMoney()
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
@ -312,6 +314,7 @@
|
||||||
title: '提现中'
|
title: '提现中'
|
||||||
});
|
});
|
||||||
this.$u.api.withdraw(data).then(res => {
|
this.$u.api.withdraw(data).then(res => {
|
||||||
|
console.log(res)
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.msg,
|
title: res.msg,
|
||||||
|
|
@ -322,6 +325,17 @@
|
||||||
that.getcashMoney()
|
that.getcashMoney()
|
||||||
}, 1500)
|
}, 1500)
|
||||||
|
|
||||||
|
} else if (res.code == 9991) {
|
||||||
|
uni.showToast({
|
||||||
|
title: res.msg,
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
setTimeout(function() {
|
||||||
|
uni.navigateTo({
|
||||||
|
url: '/me/invite/zhifubao'
|
||||||
|
});
|
||||||
|
}, 1500)
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: res.msg,
|
title: res.msg,
|
||||||
|
|
@ -351,8 +365,6 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let shouxufei = parseFloat(that.money * that.shouxufei).toFixed(2);
|
let shouxufei = parseFloat(that.money * that.shouxufei).toFixed(2);
|
||||||
console.log(parseFloat(that.mayMoney))
|
|
||||||
console.log(parseFloat(that.money))
|
|
||||||
if (parseFloat(that.mayMoney).toFixed(2) >= parseFloat(that.money)) {
|
if (parseFloat(that.mayMoney).toFixed(2) >= parseFloat(that.money)) {
|
||||||
// if (parseFloat(that.mayMoney).toFixed(1) >= parseFloat(that.money) + shouxufei * 1) {
|
// if (parseFloat(that.mayMoney).toFixed(1) >= parseFloat(that.money) + shouxufei * 1) {
|
||||||
if (parseFloat(that.money).toFixed(2) >= parseFloat(cashMoney)) {
|
if (parseFloat(that.money).toFixed(2) >= parseFloat(cashMoney)) {
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,15 @@
|
||||||
|
|
||||||
<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="zhiFuBao&&zhiFuBaoName?'confirm-btn':'confirm-btn1'" @click="toLogin"
|
<button :class="zhiFuBao&&zhiFuBaoName?'confirm-btn':'confirm-btn1'" @click="toLogin"
|
||||||
:disabled="logining">绑定账户</button>
|
:disabled="logining">绑定账户</button>
|
||||||
<view style="padding: 32upx 64upx;font-size: 24upx;color: #999999;">提示:请正确填写收款人的支付宝账户和真实的收款人姓名,否则将无法正常收款</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>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -22,6 +27,7 @@
|
||||||
return {
|
return {
|
||||||
zhiFuBao: '',
|
zhiFuBao: '',
|
||||||
zhiFuBaoName: '',
|
zhiFuBaoName: '',
|
||||||
|
certNum: '',
|
||||||
logining: false
|
logining: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -37,8 +43,9 @@
|
||||||
if (res.data.zhiFuBaoName) {
|
if (res.data.zhiFuBaoName) {
|
||||||
this.zhiFuBaoName = res.data.zhiFuBaoName;
|
this.zhiFuBaoName = res.data.zhiFuBaoName;
|
||||||
}
|
}
|
||||||
// console.log(this.zhiFuBao )
|
if (res.data.certNo) {
|
||||||
// console.log(this.zhiFuBaoName )
|
this.certNum = res.data.certNo;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
@ -56,6 +63,7 @@
|
||||||
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({
|
||||||
|
|
@ -67,15 +75,21 @@
|
||||||
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 + '&zhiFuBaoName=' + zhiFuBaoName).then(
|
this.$u.post('app/user/updateUser?zhiFuBao=' + zhiFuBao + '&certName=' + zhiFuBaoName + '&certNum=' + certNum).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',
|
||||||
|
|
|
||||||
|
|
@ -237,6 +237,7 @@
|
||||||
uni.setStorageSync('invitationCode', res.data.invitationCode)
|
uni.setStorageSync('invitationCode', res.data.invitationCode)
|
||||||
uni.setStorageSync('zhiFuBao', res.data.zhiFuBao)
|
uni.setStorageSync('zhiFuBao', res.data.zhiFuBao)
|
||||||
uni.setStorageSync('zhiFuBaoName', res.data.zhiFuBaoName)
|
uni.setStorageSync('zhiFuBaoName', res.data.zhiFuBaoName)
|
||||||
|
uni.setStorageSync('certNum', res.data.certNum)
|
||||||
this.$Request.get("/app/UserVip/isUserVip").then(res => {
|
this.$Request.get("/app/UserVip/isUserVip").then(res => {
|
||||||
if (res.code == 0 && res.data && res.data.isVip == 2) {
|
if (res.code == 0 && res.data && res.data.isVip == 2) {
|
||||||
uni.setStorageSync('isVIP', true)
|
uni.setStorageSync('isVIP', true)
|
||||||
|
|
|
||||||
|
|
@ -210,6 +210,7 @@
|
||||||
uni.setStorageSync('invitationCode', res.data.invitationCode)
|
uni.setStorageSync('invitationCode', res.data.invitationCode)
|
||||||
uni.setStorageSync('zhiFuBao', res.data.zhiFuBao)
|
uni.setStorageSync('zhiFuBao', res.data.zhiFuBao)
|
||||||
uni.setStorageSync('zhiFuBaoName', res.data.zhiFuBaoName)
|
uni.setStorageSync('zhiFuBaoName', res.data.zhiFuBaoName)
|
||||||
|
uni.setStorageSync('certNum', res.data.certNum)
|
||||||
this.$Request.get("/app/UserVip/isUserVip").then(res => {
|
this.$Request.get("/app/UserVip/isUserVip").then(res => {
|
||||||
if (res.code == 0 && res.data && res.data.isVip == 2) {
|
if (res.code == 0 && res.data && res.data.isVip == 2) {
|
||||||
uni.setStorageSync('isVIP', true)
|
uni.setStorageSync('isVIP', true)
|
||||||
|
|
|
||||||
|
|
@ -246,6 +246,7 @@
|
||||||
uni.setStorageSync('invitationCode', res.data.invitationCode)
|
uni.setStorageSync('invitationCode', res.data.invitationCode)
|
||||||
uni.setStorageSync('zhiFuBao', res.data.zhiFuBao)
|
uni.setStorageSync('zhiFuBao', res.data.zhiFuBao)
|
||||||
uni.setStorageSync('zhiFuBaoName', res.data.zhiFuBaoName)
|
uni.setStorageSync('zhiFuBaoName', res.data.zhiFuBaoName)
|
||||||
|
uni.setStorageSync('certNum', res.data.certNum)
|
||||||
this.$Request.get("/app/UserVip/isUserVip").then(res => {
|
this.$Request.get("/app/UserVip/isUserVip").then(res => {
|
||||||
if (res.code == 0 && res.data && res.data.isVip == 2) {
|
if (res.code == 0 && res.data && res.data.isVip == 2) {
|
||||||
uni.setStorageSync('isVIP', true)
|
uni.setStorageSync('isVIP', true)
|
||||||
|
|
|
||||||
|
|
@ -343,6 +343,7 @@
|
||||||
if (res.code === 0 && res.data) {
|
if (res.code === 0 && res.data) {
|
||||||
uni.setStorageSync('zhiFuBao', res.data.zhiFuBao)
|
uni.setStorageSync('zhiFuBao', res.data.zhiFuBao)
|
||||||
uni.setStorageSync('zhiFuBaoName', res.data.zhiFuBaoName)
|
uni.setStorageSync('zhiFuBaoName', res.data.zhiFuBaoName)
|
||||||
|
uni.setStorageSync('certNum', res.data.certNum)
|
||||||
uni.setStorageSync('userName', res.data.userName)
|
uni.setStorageSync('userName', res.data.userName)
|
||||||
uni.setStorageSync('avatar', res.data.avatar)
|
uni.setStorageSync('avatar', res.data.avatar)
|
||||||
this.userName = res.data.userName
|
this.userName = res.data.userName
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue