Commit 2f3dfd63 by huSun

注册--对接登录接口

parent e929885a
...@@ -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,20 +15,28 @@ ...@@ -15,20 +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])">
<!-- :class="`padding-left-${item.level * 5 + 10}`" --> <!-- -->
<view class="d-td"> <view class="d-td" :class="`padding-left-${item.level * 5 + 10}`">
<view class="" style="display: flex;align-items: center;"> <view class="" style="display: flex;">
<view class="">
<uni-icons <uni-icons
v-if="item.hasChildren" v-if="item.hasChildren"
:type="checkLazy(item.id) ? 'spinner-cycle' : !checkOpen(item.id) ? 'arrowright' : 'arrowdown'" :type="checkLazy(item.id) ? 'spinner-cycle' : !checkOpen(item.id) ? 'arrowright' : 'arrowdown'"
size="12" size="12"
></uni-icons> ></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="" v-if="item.levelCode == 'A1'" style="text-align: center;font-size: 26rpx;line-height: rpx;">{{ item.name || '张麻花' }}</text> <!-- class="d-header" -->
<text class="" v-else style="text-align: center;font-size: 13px;line-height: 26px;">{{ item.areaCenterName || '张麻花' }}</text> <!-- :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>
...@@ -302,46 +310,62 @@ export default { ...@@ -302,46 +310,62 @@ 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-repeat: no-repeat;
// background-color: #3F52B7;
background-size: 100%; background-size: 100%;
border-radius: 5px; margin-left: 20rpx;
text-align: center; 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-repeat: no-repeat;
background-size: 100%; background-size: 100%;
border-radius: 5px; color: #000;
text-align: center; border-radius: 10rpx;
color: #000000; // 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{ .d-td{
flex: 1; flex: 1;
font-size: 26rpx;
min-height: 60rpx;
ling-height: 80rpx;
// padding: 10rpx 0;
} }
} }
.d-tr{ .d-tr{
......
...@@ -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>
...@@ -22,7 +22,8 @@ ...@@ -22,7 +22,8 @@
return { return {
areaName:'', areaName:'',
invitationName:'', invitationName:'',
shareId:'' shareId:'',
levelaName:''
} }
}, },
onLoad(options) { onLoad(options) {
...@@ -34,12 +35,14 @@ ...@@ -34,12 +35,14 @@
api.queryById({id:this.shareId}).then(res =>{ api.queryById({id:this.shareId}).then(res =>{
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 = { let dataForm = {
name: this.invitationName, name: this.name,
mobile: this.mobileNumber, mobile: this.mobileNumber,
id:this.shareId id:this.shareId
}; };
......
...@@ -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,15 +42,15 @@ ...@@ -42,15 +42,15 @@
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
} }
} }
}, },
...@@ -73,6 +73,8 @@ ...@@ -73,6 +73,8 @@
}else{ }else{
common.errorDialog(2,'手机号校验错误') common.errorDialog(2,'手机号校验错误')
} }
}, },
delayTime() { delayTime() {
this.disabledSendBtn = true; this.disabledSendBtn = true;
...@@ -88,9 +90,43 @@ ...@@ -88,9 +90,43 @@
}, 1000); }, 1000);
}, },
nextstep(){ nextstep(){
console.log(this.form.code, 555)
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({ uni.navigateTo({
url:`/pages/application-process/basic-info?shareId=${this.form.id}` 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,17 +191,21 @@ ...@@ -191,17 +191,21 @@
// 发起邀请事件 // 发起邀请事件
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({ uni.showToast({
title: '请将信息补充完整', title: '请将信息补充完整',
duration: 2000, duration: 2000,
...@@ -209,14 +213,14 @@ ...@@ -209,14 +213,14 @@
}); });
return false return false
} }
if (common.mobileNoValid(this.dataForm.mobileNumber)) {
api.saveApplyInfo(this.dataForm).then(res => { api.saveApplyInfo(this.dataForm).then(res => {
if (res['success']) { if (res['success']) {
// this.switchTab(2) // this.switchTab(2)
// this.$refs.share.open() // this.$refs.share.open()
this.shareId = res.data.id this.shareId = res.data.id
uni.navigateTo({ uni.navigateTo({
url:'/pages/invitationRegister/invitationRegister?shareId=' + this.shareId url: '/pages/invitationRegister/invitationRegister?shareId=' + this.shareId
}) })
} }
uni.showToast({ uni.showToast({
...@@ -225,16 +229,19 @@ ...@@ -225,16 +229,19 @@
icon: 'none' icon: 'none'
}); });
}) })
} else {
common.errorDialog(2, '手机号校验错误')
}
}, },
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>
......

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