Commit af0c1da3 by kyle

Merge branch 'dev' of http://139.224.139.2:9091/chaosun/CFFP into dev

parents cba915a3 4120575a
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<view class="container"> <view class="container">
<view class="d-table"> <view class="d-table">
<view class="content-box"> <view class="content-box">
<view class="" v-for="item in datatitleList"> <view class="content-box-title" v-for="item in datatitleList">
<span class="content-box-title">{{item}}</span> <span class="">{{item}}</span>
</view> </view>
</view> </view>
<view class="d-tr"> <view class="d-tr">
...@@ -15,18 +15,28 @@ ...@@ -15,18 +15,28 @@
<!-- 为了提高dom渲染效率,当list产生破坏性变动时(如删除其中一项,或者排序等)必须使用唯一确定的key,而不能使用index --> <!-- 为了提高dom渲染效率,当list产生破坏性变动时(如删除其中一项,或者排序等)必须使用唯一确定的key,而不能使用index -->
<block v-for="(item, i) in treeList" :key="item.id"> <block v-for="(item, i) in treeList" :key="item.id">
<view class="d-box" v-if="item.level === 0 || checkOpen(item.pids[item.pids.length - 1])"> <view class="d-box" v-if="item.level === 0 || checkOpen(item.pids[item.pids.length - 1])">
<view class="d-td" style="text-align: left;" :class="`padding-left-${item.level * 5 + 10}`"> <!-- -->
<view class="" style="display: flex;align-items: center;"> <view class="d-td" :class="`padding-left-${item.level * 5 + 10}`">
<uni-icons <view class="" style="display: flex;">
v-if="item.hasChildren" <view class="">
:type="checkLazy(item.id) ? 'spinner-cycle' : !checkOpen(item.id) ? 'arrowright' : 'arrowdown'" <uni-icons
size="12" v-if="item.hasChildren"
:type="checkLazy(item.id) ? 'spinner-cycle' : !checkOpen(item.id) ? 'arrowright' : 'arrowdown'"
></uni-icons> size="12"
></uni-icons>
</view>
<view @click="open(item, i)" v-if="item.level && !item.hasChildren" style="width: 24rpx;height: 26rpx;display: inline-block;"></view> <view @click="open(item, i)" v-if="item.level && !item.hasChildren" style="width: 24rpx;height: 26rpx;display: inline-block;"></view>
<view v-else @click="open(item, i)" :class="item.levelCode == 'B1' ? 'content-box-title-a' : item.levelCode == 'C3' ? 'content-box-title-b':'content-box-title'"> <view v-else @click="open(item, i)" :class="item.levelCode == 'B1' ? 'content-box-title-a' : item.levelCode == 'C3' ? 'content-box-title-b':'content-box-title'">
<!-- --> <!-- class="d-header" -->
<text class="" style="text-align: center;font-size: 13px;line-height: 26px;">{{ item.areaCenterName || '张麻花' }}</text> <!-- class="d-header" -->
<!-- :class="item.levelCode == 'B1' ? 'content-box-title-a' : item.levelCode == 'C3' ? 'content-box-title-b':'content-box-title'" -->
<!-- <view > -->
<text style="color: #000;" v-if="item.levelCode == 'A1'" >{{ item.name || '张麻花' }}</text>
<text v-else >{{ item.areaCenterName || '张麻花' }}</text>
<!-- </view> -->
</view> </view>
</view> </view>
...@@ -34,7 +44,7 @@ ...@@ -34,7 +44,7 @@
<!-- </view> --> <!-- </view> -->
</view> </view>
<view class="d-td" v-if="item.levelCode == 'A1'">{{ item.levelName }}</view> <view class="d-td">{{ item.levelName }}</view>
<view class="d-td" style="padding-right: 10rpx;">{{ item.count }}</view> <view class="d-td" style="padding-right: 10rpx;">{{ item.count }}</view>
</view> </view>
</block> </block>
...@@ -300,44 +310,63 @@ export default { ...@@ -300,44 +310,63 @@ export default {
} }
.content-box-title { .content-box-title {
padding: 5px 0; // padding: 5px 0;
flex: 1; flex: 1;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
text-align: center; text-align: center;
} }
.content-box-title{
}
.content-box-title-a { .content-box-title-a {
// min-width: 100rpx;
flex: 1; flex: 1;
color: #FFFFFF; height: 80rpx;
background: #3F52B7; // line-height: 80rpx;
align-items: center;
height: 26px;
width: 120px;
margin-top: 5px;
background: url('../../static/myteam/Group1660.png'); background: url('../../static/myteam/Group1660.png');
background-size: 100%; background-repeat: no-repeat;
border-radius: 5px; // background-color: #3F52B7;
text-align: center; background-size: 100%;
margin-left: 20rpx;
color: #FFFFFF;
} }
.content-box-title-b{ .content-box-title-b{
// min-width: 100rpx;
flex: 1; flex: 1;
color: #FFFFFF; // min-height: 60rpx;
/* margin: 0 10px; */ // padding: 10rpx 0;
background: #3F52B7;
height: 26px;
width: 120px;
background: url('../../static/myteam/Group1662.png'); background: url('../../static/myteam/Group1662.png');
background-size: 100%; background-repeat: no-repeat;
border-radius: 5px; background-size: 100%;
text-align: center; color: #000;
color: #000000; border-radius: 10rpx;
// border: 1rpx solid #3F52B7;
} }
// .content-box-title-b{
// flex: 1;
// color: #000;
// /* margin: 0 10px; */
// // background: #3F52B7;
// // min-width: 240rpx;
// background: url('../../static/myteam/Group1662.png');
// background-repeat: no-repeat;
// background-size: 100%;
// border-radius: 5px;
// // border-top-left-radius: 820rpx;
// // border-bottom-left-radius: 40rpx;
// text-align: center;
// }
.d-box{ .d-box{
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
.d-header{
text-align: center;font-size: 26rpx;
}
.d-td{
flex: 1;
font-size: 26rpx;
min-height: 60rpx;
ling-height: 80rpx;
// padding: 10rpx 0;
}
} }
.d-tr{ .d-tr{
display: flex; display: flex;
......
<template>
<view id="box" @click="func()">返回CFFP财富中心</view>
<view class="">
您已授权登录,请点击返回CFFP财富中心
</view>
</template>
<script>
export default{
data(){
return {
}
},
components:{},
onLoad(){
},
methods:{
func() {
console.log("点击触发99999");
// 判断是那种设备
let u = navigator.userAgent;
console.log(u);
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; // Android系统或者uc浏览器
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); // iOS系统
// 如果为Android系统
if (isAndroid) {
window.location.href = "cffpUrlSdls://mdev.zuihuibi.cn/cffp/pages/withdrawal/withdrawal?auth_code=4d79e014a44841448415d715bdceIX16"; // 注意*** 这里需要修改为刚刚设置的urlscheme,auth_code需要后端拼接。auth_code只有后端才能拿到
window.setTimeout(function () {
window.location.href = "http://www.baidu.com"; // 3s后如果不能跳转到 App,则跳转到 App 的下载地址,一般是应用宝的对应的下载地址
}, 2000);
return;
}
// ios设备:原理:判断是否认识这个协议,认识则直接跳转,不认识就在这里下载appios();
if (isiOS) {
let startIndex = u.indexOf('iPhone OS') + 9;
let endIndex = u.indexOf('like Mac OS') - 1;
let num = +u.slice(startIndex, endIndex).split('_')[0]; // 计算版本号的前面数值
if (num < 9) {
window.location.href = "cffpUrlSdls://?auth_code=4d79e014a44841448415d715bdceIX16"; // 注意*** 这里需要修改为刚刚设置的urlscheme,auth_code需要后端拼接。auth_code只有后端才能拿到
} else {
window.location.href = " "; // universal link 链接
}
window.setTimeout(function () {
window.location.href = " "; // 3s后如果不能跳转到 App,则跳转到 AppStore 的下载地址
}, 3000);
return;
};
}
}
}
</script>
<style>
</style>
\ No newline at end of file
...@@ -48,11 +48,13 @@ ...@@ -48,11 +48,13 @@
"<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>", "<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>" "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
], ],
"minSdkVersion" : 21 "minSdkVersion" : 21,
"schemes" : "cffpUrlSdls"
}, },
/* ios打包配置 */ /* ios打包配置 */
"ios" : { "ios" : {
"dSYMs" : false "dSYMs" : false,
"urltypes" : "cffpUrlSdls"
}, },
/* SDK配置 */ /* SDK配置 */
"sdkConfigs" : { "sdkConfigs" : {
......
...@@ -437,6 +437,13 @@ ...@@ -437,6 +437,13 @@
"navigationBarTitleText": "申请加盟-结果", "navigationBarTitleText": "申请加盟-结果",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
},{
"path" : "components/redirect_uri/redirect_uri",
"style" :
{
"navigationBarTitleText": "第三方回调页面",
"enablePullDownRefresh": false
}
} }
], ],
......
...@@ -105,9 +105,7 @@ ...@@ -105,9 +105,7 @@
...this.applyParam, ...this.applyParam,
applyType:2, applyType:2,
operatStep:5, operatStep:5,
// userId:uni.getStorageSync('cffp_userId'), userId:uni.getStorageSync('cffp_userId'),
userId:42,
id:17
} }
api.saveApplyInfo(this.applyParam).then((res)=>{ api.saveApplyInfo(this.applyParam).then((res)=>{
if(res['success']){ if(res['success']){
......
...@@ -115,6 +115,7 @@ ...@@ -115,6 +115,7 @@
idNo:'', idNo:'',
birthday:'', birthday:'',
areaId:'', areaId:'',
approvalStatus:0
// birthday:`${new Date().getFullYear()}-${new Date().getMonth() + 1} -${new Date().getDate()}`, // birthday:`${new Date().getFullYear()}-${new Date().getMonth() + 1} -${new Date().getDate()}`,
}, },
idTypesList:[{id:null,name:'请选择'}], idTypesList:[{id:null,name:'请选择'}],
...@@ -300,10 +301,8 @@ ...@@ -300,10 +301,8 @@
...this.applyParam, ...this.applyParam,
applyType:2, applyType:2,
operatStep:1, operatStep:1,
// userId:uni.getStorageSync('cffp_userId'), userId:uni.getStorageSync('cffp_userId'),
userId:42, hasCrossDistrict:0
hasCrossDistrict:0,
id:17
} }
api.saveApplyInfo(this.applyParam).then((res)=>{ api.saveApplyInfo(this.applyParam).then((res)=>{
if(res['success']){ if(res['success']){
......
...@@ -161,9 +161,7 @@ ...@@ -161,9 +161,7 @@
...this.applyParam, ...this.applyParam,
applyType:2, applyType:2,
operatStep:4, operatStep:4,
// userId:uni.getStorageSync('cffp_userId'), userId:uni.getStorageSync('cffp_userId'),
userId:42,
id:17,
} }
api.saveApplyInfo(this.applyParam).then((res)=>{ api.saveApplyInfo(this.applyParam).then((res)=>{
if(res['success']){ if(res['success']){
......
...@@ -138,9 +138,7 @@ ...@@ -138,9 +138,7 @@
...this.applyParam, ...this.applyParam,
applyType:2, applyType:2,
operatStep:3, operatStep:3,
// userId:uni.getStorageSync('cffp_userId'), userId:uni.getStorageSync('cffp_userId'),
userId:42,
id:17,
} }
api.saveApplyInfo(this.applyParam).then((res)=>{ api.saveApplyInfo(this.applyParam).then((res)=>{
if(res['success']){ if(res['success']){
......
...@@ -170,9 +170,7 @@ ...@@ -170,9 +170,7 @@
...this.applyParam, ...this.applyParam,
applyType:2, applyType:2,
operatStep:2, operatStep:2,
// userId:uni.getStorageSync('cffp_userId'), userId:uni.getStorageSync('cffp_userId'),
userId:42,
id:17,
certificate:this.picList.join(',') certificate:this.picList.join(',')
} }
console.log(this.applyParam) console.log(this.applyParam)
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
</view> </view>
<view class="inviteInfo"> <view class="inviteInfo">
<text>{{invitationName}}邀请您申请为</text> <text>{{invitationName}}邀请您申请为</text>
<text>{{areaName}}</text> <text>{{areaName}}{{levelaName}}</text>
</view> </view>
<view class="register" @click="ckregister()"> <view class="register" @click="ckregister()">
<text>点击注册</text> <text>点击注册</text>
...@@ -21,26 +21,33 @@ ...@@ -21,26 +21,33 @@
data() { data() {
return { return {
areaName:'', areaName:'',
invitationName:'' invitationName:'',
shareId:'',
levelaName:''
} }
}, },
onLoad(options) { onLoad(options) {
console.log(options, 777) this.shareId = options.shareId
this.getqueryById(options.shareId) this.getqueryById()
}, },
methods:{ methods:{
getqueryById(id){ getqueryById(){
console.log(id) api.queryById({id:this.shareId}).then(res =>{
api.queryById({id}).then(res =>{
console.log(res, 77414)
this.areaName = res.data.data.areaName this.areaName = res.data.data.areaName
this.invitationName = res.data.data.invitationName this.invitationName = res.data.data.invitationName
this.name = res.data.data.name
this.mobileNumber = res.data.data.mobileNumber this.mobileNumber = res.data.data.mobileNumber
this.levelaName = res.data.data.partnerLevel == 'B1' ?'工作室': '事业合作伙伴'
}) })
}, },
ckregister(){ ckregister(){
let dataForm = {
name: this.name,
mobile: this.mobileNumber,
id:this.shareId
};
uni.navigateTo({ uni.navigateTo({
url:'/pages/invitationRegister/invitationlogin?invitationName=' + this.invitationName + '&mobileNumber=' + this.mobileNumber url:'/pages/invitationRegister/invitationlogin?form=' + JSON.stringify(dataForm)
}) })
} }
} }
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</view> </view>
<view class="login-code"> <view class="login-code">
<!-- <view class="text" style="display: flex;justify-content: space-between;"> --> <!-- <view class="text" style="display: flex;justify-content: space-between;"> -->
<input name="form.code" placeholder="输入验证码" v-model="code" type="number" maxlength="6"/> <input name="form.code" placeholder="输入验证码" v-model="form.code" type="number" maxlength="6"/>
<text @click="sendMessage()" :class="{'grey':disabledSendBtn}">{{sendCodeHtml}}</text> <text @click="sendMessage()" :class="{'grey':disabledSendBtn}">{{sendCodeHtml}}</text>
<!-- </view> --> <!-- </view> -->
...@@ -42,22 +42,20 @@ ...@@ -42,22 +42,20 @@
return { return {
imgSrc: '../../static/cffp_logo.jpg', imgSrc: '../../static/cffp_logo.jpg',
liginName: '登录', liginName: '登录',
code: '',
disabledSendBtn:false, disabledSendBtn:false,
agreeFlag:false, agreeFlag:false,
remainTimes:60, remainTimes:60,
sendCodeHtml:'获取验证码', sendCodeHtml:'获取验证码',
userId: '',
form:{ form:{
name: '', name: '',
mobile: '', mobile: '',
code: '' code: null
} }
} }
}, },
onLoad(option) { onLoad(options) {
console.log(option, 555) this.form =JSON.parse( options.form)
this.form.name = option.invitationName
this.form.mobile = option.mobileNumber
}, },
methods:{ methods:{
sendMessage(){ sendMessage(){
...@@ -92,9 +90,43 @@ ...@@ -92,9 +90,43 @@
}, 1000); }, 1000);
}, },
nextstep(){ nextstep(){
uni.navigateTo({ console.log(this.form.code, 555)
url:'/pages/application-process/basic-info' if(this.form.code =='' ||this.form.code == null ){
uni.showToast({
title: '请输入验证码',
duration: 2000,
icon: 'none'
});
return false
}
if(this.agreeFlag == false) {
uni.showToast({
title: '请阅读并勾选银盾保险经纪服务协议和隐私条款',
duration: 2000,
icon: 'none'
});
return false
}
const params = {
loginType:'3',
...this.form
}
api.loginVerification(params).then((res)=>{
console.log(res, 5524)
if(res['success']){
this.userId = String(res['data']['userId']);
uni.navigateTo({
url:'/pages/application-process/basic-info?userId=' + this.userId
})
}else{
uni.showToast({
title: res['message'],
duration: 2000,
icon: 'none'
})
}
}) })
} }
} }
} }
......
...@@ -29,8 +29,7 @@ ...@@ -29,8 +29,7 @@
</view> </view>
<view class="liBox" v-if="applyIdentity == 0"> <view class="liBox" v-if="applyIdentity == 0">
<text>工作室名称:</text> <text>工作室名称:</text>
<text><input v-model="dataForm.b1Name" class="uni-input" <text><input v-model="dataForm.b1Name" class="uni-input" placeholder="工作室名称" /></text>
placeholder="工作室名称" /></text>
</view> </view>
<view class="liBox"> <view class="liBox">
<text>所属组织:</text> <text>所属组织:</text>
...@@ -97,7 +96,8 @@ ...@@ -97,7 +96,8 @@
<text v-else-if="item.approvalStatus=='3'" class="success">邀请成功</text> <text v-else-if="item.approvalStatus=='3'" class="success">邀请成功</text>
<text v-else class="fail">邀请失败</text> <text v-else class="fail">邀请失败</text>
</view> </view>
<view class="liBox-footer" v-if="item.approvalStatus == 0 || item.approvalStatus== '2'" @click="reinvite(item.id)"> <view class="liBox-footer" v-if="item.approvalStatus == 0 || item.approvalStatus== '2'"
@click="reinvite(item.id)">
<text>重新邀请</text> <text>重新邀请</text>
</view> </view>
</view> </view>
...@@ -132,22 +132,22 @@ ...@@ -132,22 +132,22 @@
<script> <script>
import api from "@/api/api" import api from "@/api/api"
import common from '../../common/common';
export default { export default {
data() { data() {
return { return {
dataForm: { dataForm: {
applyType: '1', //申请类型邀请加盟传 1 申请加盟传 2 applyType: '1', //申请类型邀请加盟传 1 申请加盟传 2
operatStep: '1', // 99:最后一步,1:第一步,2:为第二步该obj 为第一步 operatStep: '1', // 99:最后一步,1:第一步,2:为第二步该obj 为第一步
userId: '32', // 目前Id 为1
name: '', //姓名 name: '', //姓名
mobileNumber: '', //被邀请人手机号 mobileNumber: '', //被邀请人手机号
b1Name:'', // 工作室 b1Name: '', // 工作室
partnerLevel: '', //被邀请人身份 partnerLevel: '', //被邀请人身份
hasCrossDistrict: '', //是否跨区邀请 hasCrossDistrict: '', //是否跨区邀请
areaId: '', //所属组织Id areaId: '', //所属组织Id
areaName: '' //所属组织名称 areaName: '' //所属组织名称
}, },
userId: '1', userId: uni.getStorageSync('cffp_userId'),
tabType: 1, tabType: 1,
identityArr: ['工作室', '事业伙伴'], identityArr: ['工作室', '事业伙伴'],
applyIdentity: 0, applyIdentity: 0,
...@@ -191,50 +191,57 @@ ...@@ -191,50 +191,57 @@
// 发起邀请事件 // 发起邀请事件
shareToggle() { shareToggle() {
this.dataForm.partnerLevel = this.applyIdentity == 0 ? 'B1' : 'A1' this.dataForm.partnerLevel = this.applyIdentity == 0 ? 'B1' : 'A1'
this.dataForm.hasCrossDistrict = this.isCross == true ? '1' : '0' this.dataForm.hasCrossDistrict = this.isCross == true ? '1' : '0'
this.dataForm.areaId = this.queryorgList[this.index].areaId this.dataForm.areaId = this.queryorgList[this.index].areaId
this.dataForm.areaName = this.isCross == false ? this.queryorgList[this.index].areaName : this.dataForm.areaName this.dataForm.userId = this.userId
this.dataForm.areaName = this.isCross == false ? this.queryorgList[this.index].areaName : this.dataForm
.areaName
// this.dataForm.b1Name = this.applyIdentity == 'B1' ? this.dataForm.b1Name : null // this.dataForm.b1Name = this.applyIdentity == 'B1' ? this.dataForm.b1Name : null
// if(this.applyIdentity == 'B1'){ // if(this.applyIdentity == 'B1'){
// if(this.dataForm.b1Name ==''){ // if(this.dataForm.b1Name ==''){
// } // }
// } // }
if (this.dataForm.name == "" || this.dataForm.mobileNumber == "" || this.dataForm.areaName =='' || this.applyIdentity == 'B1' && this.dataForm.b1Name =='') { if (this.dataForm.name == "" || this.dataForm.mobileNumber == "" || this.dataForm.areaName == '' || this
.applyIdentity == 'B1' && this.dataForm.b1Name == '') {
uni.showToast({
title: '请将信息补充完整',
duration: 2000,
icon: 'none'
});
return false
}
if (common.mobileNoValid(this.dataForm.mobileNumber)) {
api.saveApplyInfo(this.dataForm).then(res => {
if (res['success']) {
// this.switchTab(2)
// this.$refs.share.open()
this.shareId = res.data.id
uni.navigateTo({
url: '/pages/invitationRegister/invitationRegister?shareId=' + this.shareId
})
}
uni.showToast({ uni.showToast({
title: '请将信息补充完整', title: res['message'],
duration: 2000, duration: 2000,
icon: 'none' icon: 'none'
}); });
return false })
} } else {
common.errorDialog(2, '手机号校验错误')
}
api.saveApplyInfo(this.dataForm).then(res => {
if (res['success']) {
// this.switchTab(2)
// this.$refs.share.open()
this.shareId = res.data.id
uni.navigateTo({
url:'/pages/invitationRegister/invitationRegister?shareId=' + this.shareId
})
}
uni.showToast({
title: res['message'],
duration: 2000,
icon: 'none'
});
})
}, },
closeShare() { closeShare() {
this.$refs.share.close() this.$refs.share.close()
}, },
reinvite(id){ reinvite(id) {
this.shareId = id this.shareId = id
this.$refs.share.open() this.$refs.share.open()
}, },
uniShare(type) { uniShare(type) {
console.log(type, 4455)
if (type === 1) { if (type === 1) {
uni.share({ uni.share({
provider: "weixin", provider: "weixin",
...@@ -437,7 +444,8 @@ ...@@ -437,7 +444,8 @@
} }
} }
.liBox-footer{
.liBox-footer {
width: 200rpx; width: 200rpx;
height: 50rpx; height: 50rpx;
color: #FFFFFF; color: #FFFFFF;
...@@ -447,6 +455,7 @@ ...@@ -447,6 +455,7 @@
border-radius: 30rpx; border-radius: 30rpx;
background: #20269B; background: #20269B;
} }
.popup-footer { .popup-footer {
color: #666; color: #666;
font-size: 36rpx; font-size: 36rpx;
......
...@@ -64,8 +64,8 @@ ...@@ -64,8 +64,8 @@
justify-content: center; justify-content: center;
} }
.concent-title{ .concent-title{
width: 223px; width: 446rpx;
height: 40px; height: 80rpx;
background: url('../../../static/Group 1623.png'); background: url('../../../static/Group 1623.png');
background-size: auto 100%; background-size: auto 100%;
} }
......
...@@ -28,16 +28,16 @@ ...@@ -28,16 +28,16 @@
</view> </view>
<view class="classtotal"> <view class="classtotal">
<view class="classtotal-box"> <view class="classtotal-box">
<span v-if="totalOrder" class="totalsingular">{{totalOrder}}</span> <span class="totalsingular">{{totalOrder || 0}}</span>
<p>总单数</p> <p>总单数</p>
</view> </view>
<view class="classtotal-box"> <view class="classtotal-box" style="width: 40%;">
<span class="totalsingular">{{totalCoursePrice}}</span> <span class="totalsingular">{{totalCoursePrice || 0}}</span>
<p>总销售额</p> <p>总销售额</p>
<p style="font-size: 5px;">温馨提示:业绩以最终核算为准</p> <p style="font-size: 5rpx;">温馨提示:业绩以最终核算为准</p>
</view> </view>
<view class="classtotal-box"> <view class="classtotal-box">
<span class="totalsingular">{{totalIncome}}</span> <span class="totalsingular">{{totalIncome || 0}}</span>
<p>总销售收入</p> <p>总销售收入</p>
</view> </view>
</view> </view>
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
</view> </view>
<view class="item"> <view class="item">
<text>E.已退课</text> <text>E.已退课</text>
<text @click="viewDropLists()">{{returnFortune?returnFortune:0}}积分<i class="iconfont icon-youjiantou" style="margin-right: 10rpx;"></i></text> <text style="color: #0A2F99;" @click="viewDropLists()">{{returnFortune?returnFortune:0}}积分<i class="iconfont icon-youjiantou" style="margin-right: 10rpx;"></i></text>
</view> </view>
</view> </view>
<view class="total"> <view class="total">
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
</view> </view>
<view class="status_item"> <view class="status_item">
<text>E.已退课</text> <text>E.已退课</text>
<text>{{returnFortune?returnFortune:0}}积分</text> <text @click="viewDropLists()" style="color: #0A2F99;">{{returnFortune?returnFortune:0}}积分<i class="iconfont icon-youjiantou" style="margin-right: 10rpx;"></i></text>
</view> </view>
</view> </view>
<view class="total"> <view class="total">
...@@ -73,6 +73,11 @@ ...@@ -73,6 +73,11 @@
} }
}) })
},
viewDropLists(){
uni.navigateTo({
url:'/pages/dropLists/dropLists'
})
} }
} }
} }
......
...@@ -123,19 +123,50 @@ ...@@ -123,19 +123,50 @@
orderNo:this.partnerTradeNo orderNo:this.partnerTradeNo
} }
api.aliWithdrawal(this.aliWithdrawalResVO).then((res)=>{ api.aliWithdrawal(this.aliWithdrawalResVO).then((res)=>{
alert(JSON.stringify(res))
console.log(res) console.log(res)
}) })
}, },
//微信去提现 //微信去提现
wxWithdrawal(){ wxWithdrawal(){
// APP:
// #ifdef APP-PLUS
uni.login({
provider: 'weixin',
success: function (loginRes) {
// 登录成功
// alert(JSON.stringify(loginRes))
uni.getUserInfo({
provider: 'weixin',
success: function(info) {
// 获取用户信息成功, info.authResult保存用户信息
console.log(info)
this.wxWithdrawalResVO.openId=info.openId;
const wxWithdrawalResVO = {
...this.wxWithdrawalResVO,
userId:uni.getStorageSync('cffp_userId'),
}
api.wxWithdrawal(wxWithdrawalResVO).then((res)=>{
console.log(res)
})
}
})
},
fail: function (err) {
// 登录授权失败
// err.code是错误码
}
})
// #endif
}, },
confirmWithdrawal(){ confirmWithdrawal(){
if(this.paymentMethod == 1){ if(this.paymentMethod == 1){
this.wxWithdrawal(); this.wxWithdrawal();
} }
if(this.paymentMethod == 2){ if(this.paymentMethod == 2){
let urls= this.withdrawalParam.aliAuthUrl; // APP:
// #ifdef APP-PLUS
let urls= this.aliWithdrawalResVO.aliAuthUrl;
urls=encodeURIComponent(urls); urls=encodeURIComponent(urls);
// 判断平台 // 判断平台
if (plus.os.name == 'Android') { if (plus.os.name == 'Android') {
...@@ -173,6 +204,7 @@ ...@@ -173,6 +204,7 @@
); );
} }
// this.aliWithdrawal(); // this.aliWithdrawal();
// #endif
} }
} }
} }
......

5.09 KB | W: | H:

5.18 KB | W: | H:

static/myteam/Group1660.png
static/myteam/Group1660.png
static/myteam/Group1660.png
static/myteam/Group1660.png
  • 2-up
  • Swipe
  • Onion skin

3.85 KB | W: | H:

4.16 KB | W: | H:

static/myteam/Group1662.png
static/myteam/Group1662.png
static/myteam/Group1662.png
static/myteam/Group1662.png
  • 2-up
  • Swipe
  • Onion skin
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment