提交 733c3b22 authored 作者: 黄旭新's avatar 黄旭新

xin

......@@ -262,11 +262,11 @@
let that = this
//查询用户实名认证信息
that.type = uni.getStorageSync('type')
that.status = uni.getStorageSync('userStatus').isAuthenticate
that.status = uni.getStorageSync('user').isAuthenticate
// console.log(that.status + '==============================================')
that.electricId = uni.getStorageSync('user').electricId
that.viewVerifiedDetails()
that.authenticateRemark = uni.getStorageSync('userStatus').authenticateRemark
that.authenticateRemark = uni.getStorageSync('user').authenticateRemark
// console.log(that.status)
},
onShow() {
......
......@@ -183,7 +183,6 @@
<image v-for="(item,index) in imgList" :key="index" :src="item" mode=""></image>
<image v-if="!hide" src="../../static/images/upload_bg.png" mode=""></image>
</view>
<view class="border_bottom"></view>
</view>
</view>
<!-- 用电信息end -->
......@@ -424,7 +423,6 @@
imgList: [], // 电费通知单(最多六张)
hide: false, // 是否隐藏上传按钮
}
},
created() {
console.log(this.isClick)
......@@ -477,9 +475,7 @@
},
//区域选择
regionChange(event) {
// console.log(event.target.value)
this.region = event.target.value.join('/')
// console.log(this.region)
},
//用电性质选择
natureChange(event) {
......@@ -503,18 +499,8 @@
let url = JSON.parse(res.data).url
if (index == 0) {
that.imgUrlFront = url
if (that.typeValue == '法人认证') {
that.cardFront = url
} else {
that.principalCardFront = url
}
} else if (index == 1) {
that.imgUrlNegative = url
if (that.typeValue == '法人认证') {
that.cardNegative = url
} else {
that.principalCardNegative = url
}
} else if (index == 2) {
that.powerOfAttorney = url
} else if (index == 3) {
......@@ -573,9 +559,7 @@
}
this.contactPerson = res.data.tuserCertification.contactPerson
this.phone = res.data.tuserCertification.phone
// this.industry = res.data.industry
this.email = res.data.tuserCertification.mailbox
// console.log(this.industry)
this.industryValue = res.data.industryName
let arr = this.industrys.map(item => {
if (item.industryName == this.industryValue) {
......@@ -588,14 +572,10 @@
this.typeValue = '委托人认证'
this.imgUrlFront = res.data.principalCardFront
this.imgUrlNegative = res.data.principalCardNegative
this.principalCardFront = res.data.principalCardFront
this.principalCardNegative = res.data.principalCardNegative
} else {
this.typeValue = '法人认证'
this.imgUrlFront = res.data.cardFront
this.imgUrlNegative = res.data.cardNegative
this.cardFront = res.data.cardFront
this.cardNegative = res.data.cardNegative
}
this.entrustName = res.data.tuserCertification.legalPersonName
this.powerOfAttorney = res.data.powerOfAttorney
......@@ -614,28 +594,6 @@
// 编辑之后再提交
edit() {
this.isAuthenticate = 0
// this.companyName = ''
// this.whetherAdmit = ''
// this.enterpriseCode = ''
// this.contactPerson = ''
// this.phone = ''
// this.typeValue = ''
// this.imgUrlFront = ''
// this.imgUrlNegative = ''
// this.industryValue = ''
// this.region = ''
// this.cardNegative = ''
// this.principalCardFront = ''
// this.principalCardNegative = ''
// this.powerOfAttorney = ''
// this.region = ''
// this.businessLicense = ''
// this.natureValue = ''
// this.annualElectricityConsumption = ''
// this.peakElectricity = ''
// this.peaceElectricity = ''
// this.valleyElectricity = ''
// this.electricityBill = ''
},
//提交
submit() {
......@@ -769,7 +727,14 @@
})
return false
}
// console.log(this.whetherAdmit)
// 区分法人认证和委托人证的身份证照片
if (this.typeValue == '法人认证') {
this.cardFront = this.imgUrlFront
this.cardNegative = this.imgUrlNegative
} else {
this.principalCardFront = this.imgUrlFront
this.principalCardNegative = this.imgUrlNegative
}
let obj = {
id: this.id,
enterpriseId: this.enterpriseId,
......
......@@ -167,7 +167,7 @@
that.type = uni.getStorageSync('type')
let user = uni.getStorageSync('user')
let statustext = ''
that.isAuthenticate = uni.getStorageSync('userStatus').isAuthenticate //认证状态
that.isAuthenticate = uni.getStorageSync('user').isAuthenticate //认证状态
if (that.isAuthenticate == 0) {
statustext = '未认证'
} else if (that.isAuthenticate == 1) {
......
......@@ -183,6 +183,12 @@
this.getElectricChooseABusiness()
// 获取拼团电量上限和已拼电量之和
this.getElectricityLimit()
// 获取电客信用分是否满足拼团
this.getBasicCreditScore()
},
onShow() {
uni.removeStorageSync('concludeList')
uni.removeStorageSync('entrustList')
},
data() {
return {
......@@ -281,23 +287,26 @@
},
// 选择企业
checkEnterprise(enterpriseId, contractId, userType, i) {
this.isSatisfy = true
// userType=3是为中级会员, 中级会员没有合同
if (userType == 3) {
this.contractId = contractId
} else {
this.contractId = ''
}
let flag = false
if (this.tabIndex == 1 || this.tabIndex == 3) {
this.concludeList[i].checked = !this.concludeList[i].checked
uni.setStorageSync('concludeList', this.concludeList)
if (this.concludeList[i].checked) {
flag = true
}
} else {
this.entrustList[i].checked = !this.entrustList[i].checked
uni.setStorageSync('entrustList', this.entrustList)
if (this.entrustList[i].checked) {
flag = true
}
}
this.userId = enterpriseId
// 判断信用分
this.getBasicCreditScore(1, enterpriseId)
// 电客选择企业拼包条件的校验
let electric = 0
if (this.tabIndex == 1 || this.tabIndex == 3) {
......@@ -306,8 +315,6 @@
electric += Number(this.entrustList[i].tuserCertification.annualElectricityConsumption)
}
let result = this.limit - this.contractElectricity
// console.log(electric)
// console.log(result)
if (this.limit && electric > result) {
this.failDialog = true
this.hintText = '已到达售电公司的拼团上限,不能继续选择企业'
......@@ -315,7 +322,10 @@
this.enterpriseIndex = i
return false
}
this.participatePackageCheck()
if (flag) {
// 拼团校验
this.participatePackageCheck(enterpriseId)
}
},
// 不满足弹窗的取消按钮
cancleClcik() {
......@@ -369,11 +379,11 @@
// if (that.btnText == '替换成该套餐') {
// that.successDialog = true
// } else
// that.getBasicCreditScore()
if (!that.BasicCreditScore) {
uni.showToast({
title: '选择的企业信用分过低不能参与拼包',
icon: 'none'
})
this.failDialog = true
this.hintText = '您的信用分过低不能参加拼团'
this.btnText = '我知道了'
return false
} else {
// 参与/退出拼团
......@@ -407,15 +417,14 @@
uni.removeStorageSync('entrustList')
}
})
}
},
// 企业拼包校验
participatePackageCheck() {
participatePackageCheck(enterpriseId) {
get(api.participatePackageCheck, {
type: '2',
packageId: this.packageId,
userId: this.userId
userId: enterpriseId
}).then(res => {
if (res.code == 500) {
// 仅为测试所用(返回具体错误信息)
......@@ -430,7 +439,7 @@
this.hintText = '该企业未认证或者未准入市场,请让该企业先完成认证'
this.btnText = '提醒企业认证'
} else if (text.indexOf('W') > -1) {
this.hintText = '该企业是存量已交易远期企业,不能参与拼'
this.hintText = '该企业是存量已交易远期企业,不能参与拼'
this.btnText = '我知道了'
} else if (text.indexOf('b') > -1) {
this.hintText = '该企业已参与独立询价套餐,不能参与拼团'
......@@ -442,22 +451,20 @@
// this.btnText = '替换成该套餐'
// }
else if (text.indexOf('J') > -1) {
this.failDialogBtnShow = false
this.hintText = '该企业的用电性质不符合'
this.btnText = '我知道了'
} else if (text.indexOf('f') > -1) {
this.failDialogBtnShow = false
this.hintText = '该企业的月竟分成合同的分成比例高于拼团的月竟最高分成比例,不能参与拼团'
this.btnText = '我知道了'
} else if (text.indexOf('h') > -1) {
this.failDialogBtnShow = false
this.hintText = '该企业的固定价差合同的固定价差高于拼团的最高保底价差,不能参与拼团'
this.btnText = '我知道了'
} else {
this.failDialogBtnShow = false
this.hintText = '该企业不满足拼包条件,无法参与拼包'
this.hintText = '该企业不满足拼团的峰平谷要求,无法参与拼团'
this.btnText = '我知道了'
}
} else {
this.isSatisfy = true
}
})
},
......@@ -485,6 +492,7 @@
this.mode = res.data.mode
} else {
this.dialogShow = true
}
}
})
......@@ -514,12 +522,12 @@
}
})
},
// 判断信用分是否可以参与拼包
getBasicCreditScore(type, userId) {
// 判断电客信用分是否可以参与拼包
getBasicCreditScore() {
let that = this
get(api.getBasicCreditScore, {
type: type,
userId: userId
type: 1,
userId: this.electricId
}).then(res => {
if (res.code == 200) {
that.BasicCreditScore = res.data
......@@ -528,7 +536,7 @@
}
})
},
// 获取拼团电量上限和已拼电量之和
// 获取拼团电量上限和已拼电量
getElectricityLimit() {
get(api.getElectricityLimit, {
packageId: this.packageId
......
......@@ -517,7 +517,10 @@
if (res.code == 200) {
let data = res.data
this.takeCompanyList = data.map(item => {
// console.log(item.certificationName)
(function(str) {
console.log(str)
item.certificationName = str.substring(0, 2) + '***有限公司'
}(item.certificationName))
item.createTime = item.createTime.substr(5, 11)
......@@ -624,10 +627,10 @@
this.hintText = '您已参与过同年度其他拼团套餐,是否退出已参与的拼团套餐并重新参与新拼团套餐'
this.btnText = '参与新套餐'
} else if (text.indexOf('J') > -1) {
this.hintText = '的用电性质不符合'
this.hintText = '的用电性质不符合'
this.btnText = '我知道了'
} else {
this.hintText = '您不满足拼团条件,无法参与拼团'
this.hintText = '您不满足拼团的峰平谷要求,无法参与拼团'
this.btnText = '我知道了'
}
}
......
......@@ -687,10 +687,10 @@
}).then(res => {
// console.log(res)
if (res.code == 200) {
let user = uni.getStorageSync('user')
user.userType = res.data.userType
uni.setStorageSync('user', user)
uni.setStorageSync('userStatus', res.data)
// let user = uni.getStorageSync('user')
// user.userType = res.data.userType
uni.setStorageSync('user', res.data)
// uni.setStorageSync('userStatus', res.data)
this.wxName = res.data.wxName
this.inviteCode = res.data.inviteCode //邀请码
this.certificationName = res.data.certificationName
......
......@@ -77,7 +77,7 @@
created() {
let type = uni.getStorageSync('type')
let user = uni.getStorageSync('user')
this.isAuthenticate = uni.getStorageSync('userStatus').isAuthenticate
this.isAuthenticate = uni.getStorageSync('user').isAuthenticate
if (type == 1) {
this.userId = user.enterpriseId
} else {
......
......@@ -204,7 +204,6 @@
<text>15.5、本协议中的标题仅为方便而设,在解释本协议时应被忽略。</text>
<text>15.6、广东伙石头科技有限公司对本协议享有最终的解释权。</text>
</view>
</view>
</scroll-view>
<view class="btn">
......
<template>
<view class="PrivacyProtocol">
<view class="PrivacyProtocol_box">
隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议
</view>
</view>
</template>
......@@ -15,7 +14,7 @@
width: 100%;
height: 100%;
background-color: #f4f5f7;
.PrivacyProtocol_box {
padding: 56rpx;
background: #fff;
......
......@@ -7,9 +7,9 @@
基本信息
</view>
<view class="basic_info common_box">
<view v-if="messages.contractSpread!=null">意向价差: {{messages.contractSpread}}</view>
<view v-if="messages.shareRatio!=null">意向分成比例(%): {{messages.shareRatio}}</view>
<view v-if="type==2">居间价差: {{messages.intermediateSpread}}</view>
<view v-if="messages.contractSpread!=null">意向价差(厘): {{messages.contractSpread}}</view>
<view v-if="messages.shareRatio!=null">意向分成比例(%): {{messages.shareRatio}}</view>
<view v-if="type==2">居间价差(厘): {{messages.intermediateSpread}}</view>
<view>用电年份: {{messages.year}}</view>
<view class="df_block">企业电费通知单:
<view class="dftzd_img" style="height: auto;">
......@@ -29,11 +29,11 @@
<view class="basic_info common_box">
<view>合同甲方: {{messages.tcontract.contractA}}</view>
<view>居间乙方: {{messages.tcontract.contractB}}</view>
<view>合同电量: {{messages.tcontract.electricity}}</view>
<view>合同电量: {{messages.tcontract.electricity}}万kWh</view>
<view v-if="messages.tcontract.contractType==1">合同类型: 固定价差</view>
<view v-if="messages.tcontract.contractType==3">合同类型: 月竞分成</view>
<view v-if="messages.tcontract.contractType==1">合同价差: {{messages.tcontract.fixedSpread}}</view>
<view v-if="messages.tcontract.contractType==3">分成比例: {{messages.tcontract.shareRatio}}</view>
<view v-if="messages.tcontract.contractType==1">合同价差: {{messages.tcontract.fixedSpread}}</view>
<view v-if="messages.tcontract.contractType==3">分成比例: {{messages.tcontract.shareRatio}}%</view>
<view>合同期限: {{messages.tcontract.contractStartTime}} - {{messages.tcontract.contractEndTime}}</view>
<view>合同附件: <text @click="checkFile(messages.tcontract.contractAnnex)">{{messages.tcontract.contractAnnex!=''?'点击查看':'无'}}</text></view>
<view>考核条件: 全部由甲方承担</view>
......
<template>
<view class="requirements">
<!-- 头部背景start -->
<view class="requirements_top">
<view class="requirements_top_nav">
<image src="../../static/images/left.png" mode="widthFix"></image>电客中心
<image @click="linktoBack" src="../../static/images/left.png" mode="widthFix"></image>电客中心
</view>
</view>
<!-- 头部背景end -->
<view class="requirements_content">
<view class="requirements_content_img">
<image src="../../static/images/requirements_bg.png"></image>
</view>
<view class="requirements_box">
<!-- 报名信息start -->
<!-- 已报名 -->
<view class="requirements_box" v-if="status==1">
<view class="requirements_box_message">
<view class="requirements_box_message_item">
<text class="lable">姓名</text>
......@@ -23,16 +27,56 @@
</view>
</view>
<view class="requirements_box_message_btn">
<view>已报名,去认证电客</view>
<view @click="linktoBack">已报名,去认证电客</view>
</view>
</view>
<!-- 未报名 -->
<view class="requirements_box" v-else>
<view class="requirements_box_message">
<view class="userInput">你的姓名</view>
<view class="requirements_box_message_item">
<input type="text" v-model="name" placeholder="请输入您的姓名" />
<view class="hexian"></view>
</view>
<view class="userInput">你的联系方式</view>
<view class="requirements_box_message_item requirements_code">
<input type="text" v-model="phone" placeholder="请输入您的手机号码" />
<view v-if="count==60" class="input_code" @click="getcode">获取验证码</view>
<view v-else class="input_code">{{count}}S后重新获取</view>
<view class="hexian"></view>
</view>
<view class="userInput">验证码</view>
<view class="requirements_box_message_item">
<input type="text" v-model="code" placeholder="请输入验证码" />
<view class="hexian"></view>
</view>
</view>
<view class="requirements_box_message_btn">
<view @click="enroll">立刻报名</view>
</view>
<view class="requirements_box_message_hint">
<image src="../../static/images/gou.png" mode=""></image>
成为认证电客需要参加平台电客课程培训,培训通过后即可获得电客资质证书,如有意向,请留下您的联系方式,方便平台联系您
</view>
</view>
<!-- 报名信息end -->
<!-- 认证优势start -->
<view class="requirements_good">
<view class="requirements_good_box">
<view class="requirements_good_title">
认证电客有什么优势
</view>
<view class="requirements_good_icons">
<image src="" mode=""></image>
<view class="">
<image src="../../static/images/major.png" mode=""></image>专业培训
</view>
<view class="">
<image src="../../static/images/success.png" mode=""></image>更高成功率
</view>
<view class="">
<image src="../../static/images/platform.png" mode=""></image>平台资源
</view>
</view>
<view class="requirements_good_text">
<view class="requirements_good_text_item">
......@@ -47,6 +91,7 @@
</view>
</view>
</view>
<!-- 认证优势end -->
</view>
</view>
</template>
......@@ -72,13 +117,19 @@
user: '', //用户信息
count: '60',
status: '0', //1已报名
name: '奉俊昊',
phone: '1350002423',
name: '',
phone: '',
code: '', //验证码
timeId: '',
}
},
methods: {
// 返回下一页
linktoBack() {
uni.navigateBack({
delta: 1
})
},
// 60s倒计时
countSixty() {
let that = this
......@@ -101,6 +152,7 @@
uni.showToast({
title: '验证码已发送',
})
get(api.VerificationCode, {
phone
}).then(res => {
......@@ -178,9 +230,10 @@
.requirements {
position: relative;
width: 100%;
height: 100%;
height: 140vh;
background: #f4f5f7;
// 头部
.requirements_top {
position: relative;
width: 100%;
......@@ -213,57 +266,69 @@
top: 150rpx;
width: 100%;
// 背景图
.requirements_content_img {
padding: 0 32rpx;
width: 100%;
height: 317rpx;
}
// 报名信息
.requirements_box {
padding: 0 32rpx;
margin-top: 32rpx;
width: 100%;
background: #F5F5F5;
border-radius: 5rpx;
margin: 32rpx auto;
width: 686rpx;
height: auto;
opacity: 1;
overflow: hidden;
border-radius: 12rpx;
box-shadow: 0rpx 2rpx 4rpx rgba(0, 0, 0, 0.16);
background-color: #fff;
.requirements_box_message {
padding: 0 32rpx;
background: #fff;
// 未报名
.userInput {
padding-top: 32rpx;
font-size: 28rpx;
color: #333333;
opacity: 1;
}
.requirements_box_message_item {
position: relative;
width: 100%;
position: relative;
height: 90rpx;
line-height: 90rpx;
.hexian {
width: 100%;
height: 1px;
background-color: #c6c9cc;
transform: scaleY(0.5);
-webkit-transform: scaleY(0.5);
-moz-transform: scaleY(0.5);
-o-transform: scaleY(0.5);
-ms-transform: scaleY(0.5);
position: absolute;
bottom: 0;
}
// 未报名
input {
height: 100%;
position: absolute;
right: 0;
text-align: right;
top: 0;
text-align: left;
outline: none;
border: none;
background: transparent;
z-index: 100;
color: #333;
font-size: 34rpx;
color: #999999;
font-size: 24rpx;
}
.input_code {
position: absolute;
right: 0;
bottom: 10rpx;
z-index: 10;
padding: 0 20rpx;
height: 60rpx;
text-align: center;
line-height: 60rpx;
color: #2a92fa;
font-size: 22rpx;
border: 2rpx solid #2a92fa;
border-radius: 10rpx;
}
// 已报名
.lable {
color: #333;
font-size: 34rpx;
......@@ -271,12 +336,6 @@
height: 68rpx;
}
.placeholder2 {
color: #ccc;
font-size: 24rpx;
text-align: right;
}
.placeholder {
color: #ccc;
font-size: 24rpx;
......@@ -287,27 +346,26 @@
top: 0;
left: 0;
background: transparent;
}
.code_block {
display: inline-block;
}
.getcode {
height: 60rpx;
font-size: 24rpx;
font-weight: 500;
text-align: center;
color: #1989fa;
border: 4rpx solid #1989fa;
border-radius: 10rpx;
padding: 10rpx;
margin-left: 32rpx;
line-height: 38rpx;
}
// 底部分割线
.hexian {
width: 100%;
height: 1px;
background-color: #c6c9cc;
transform: scaleY(0.5);
-webkit-transform: scaleY(0.5);
-moz-transform: scaleY(0.5);
-o-transform: scaleY(0.5);
-ms-transform: scaleY(0.5);
position: absolute;
bottom: 0;
}
}
}
// 报名按钮
.requirements_box_message_btn {
padding: 32rpx;
background-color: #fff;
......@@ -319,23 +377,37 @@
text-align: center;
font-size: 30rpx;
font-weight: 700;
// letter-spacing: 4rpx;
color: #fff;
background-image: linear-gradient(180deg, #1A8AFA 0%, #3CAFF6 100%);
border-radius: 8rpx;
}
}
// 未报名时提示
.requirements_box_message_hint {
padding: 0 32rpx;
padding-bottom: 32rpx;
color: #666666;
opacity: 1;
image {
margin-right: 10rpx;
width: 24rpx;
height: 24rpx;
}
}
}
// 电客优势
.requirements_good {
margin-top: 16rpx;
padding: 0 32rpx;
margin: 32rpx auto;
width: 686rpx;
overflow: hidden;
border-radius: 12rpx;
box-shadow: 0rpx 2rpx 4rpx rgba(0, 0, 0, 0.16);
.requirements_good_box {
background-color: #fff;
border-radius: 5rpx;
.requirements_good_title {
height: 100rpx;
......@@ -345,6 +417,51 @@
font-weight: 600;
color: #FFB233;
}
.requirements_good_icons {
display: flex;
align-items: center;
justify-content: space-around;
height: 180rpx;
view {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-around;
height: 100%;
font-size: 32rpx;
font-weight: bold;
color: #3CAFF6;
opacity: 1;
image {
width: 100rpx;
height: 100rpx;
}
}
}
.requirements_good_text {
padding-bottom: 32rpx;
.requirements_good_text_item {
display: flex;
align-items: flex-start;
margin-bottom: 8rpx;
color: #333333;
opacity: 1;
.biaodian {
margin: 0 10rpx;
margin-top: 10rpx;
width: 24rpx;
height: 24rpx;
background-color: #1a8afa;
border-radius: 24rpx;
}
}
}
}
}
}
......
......@@ -38,8 +38,6 @@
methods: {
// 切换身份
switchIdentity() {
uni.removeStorageSync('user')
uni.removeStorageSync('type')
uni.showLoading({
title: '切换中'
})
......@@ -47,57 +45,21 @@
type: this.type,
userId: this.userId
}).then(res => {
let type = this.type == 1 ? 2 : 1
uni.setStorageSync('type', type)
if (res.data.registered) {
let type = this.type == 1 ? 2 : 1
uni.setStorageSync('user', res.data.user)
uni.setStorageSync('type', type)
uni.reLaunch({
url: '/pages/index/index'
})
uin.hideLoading()
} else {
uni.reLaunch({
url: '/pages/register/register'
})
}
uni.hideLoading()
})
// uni.getUserProfile({
// desc: '用于完善会员资料',
// success: (resData) => {
// uni.setStorageSync('userInfo', resData.userInfo)
// // 登录
// uni.showLoading({
// title: '加载中'
// })
// uni.login({
// success: result => {
// let type = this.type == 1 ? 2 : 1
// let code = result.code
// let nickName = uni.getStorageSync('userInfo').nickName
// let avatar = uni.getStorageSync('userInfo').avatarUrl
// get(api.login, {
// type: type,
// inviterUserId: '',
// roleId: '',
// code: code,
// nickName: nickName,
// avatar: avatar
// }).then(res => {
// if (res.code == 200) {
// uni.setStorageSync('type', type, )
// uni.setStorageSync('openId', res.data.user.openId)
// uni.setStorageSync('user', res.data.user)
// let flag = res.data.sign
// if (flag) {
// // that.WebSocket()
// uni.setStorageSync('user', res.data.user)
// uni.reLaunch({
// url: '/pages/index/index'
// })
// uni.hideLoading()
// }
// }
// })
// }
// })
// }
// })
},
// 返回上一页
linkBack() {
......@@ -148,6 +110,7 @@
border-radius: 10rpx;
background-color: #1989fa;
}
.back {
background-color: #3caff6;
}
......
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/basicInformation/basicInformation"],{"26b1":function(e,t,n){"use strict";n.r(t);var i=n("51f1"),a=n("a672");for(var s in a)"default"!==s&&function(e){n.d(t,e,(function(){return a[e]}))}(s);n("7821");var r,o=n("f0c5"),u=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],r);t["default"]=u.exports},"51f1":function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return i}));var a=function(){var e=this,t=e.$createElement;e._self._c},s=[]},"6cdb":function(e,t,n){"use strict";(function(e){n("78ef");i(n("66fd"));var t=i(n("26b1"));function i(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},7821:function(e,t,n){"use strict";var i=n("8d3d"),a=n.n(i);a.a},8743:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;i(n("9036")),n("86df");function i(e){return e&&e.__esModule?e:{default:e}}var a={data:function(){return{type:null,isCreated:!1,enterpriseId:"",isAuthenticate:"",earningsList:[],earningsList_dianke:[{id:1,name:"绑定手机号",message:"",url:"/pages/phone/phone"},{id:2,name:"实名认证",message:"未认证",url:"/pages/Certification/Certification"},{id:3,name:"电客认证",message:"",url:"/pages/authentication/authentication"},{id:4,name:"信用分",message:"",url:"/pages/CreditPoints/CreditPoints"}],earningsList_gaoji:[{id:1,name:"绑定手机号",message:"",limit:"bindMobile",url:"/pages/phone/phone"},{id:2,name:"企业认证",message:"未认证",limit:"enterpriseCertification",url:"/pages/authentication/CompanyAuthentication"},{id:3,name:"信用分",message:"",limit:"creditScore",url:"/pages/CreditPoints/CreditPoints"},{id:4,name:"账号管理",message:"",limit:"accountManagement",url:"/pages/Account/AccountSetting"}],earningsList_putong:[{id:1,name:"绑定手机号",message:"",limit:"bindMobile",url:"/pages/phone/phone"},{id:2,name:"企业认证",message:"未认证",limit:"enterpriseCertification",url:"/pages/authentication/CompanyAuthentication"},{id:4,name:"账号管理",message:"",limit:"accountManagement",url:"/pages/Account/AccountSetting"}],terracelist:[{id:5,name:"平台协议",message:"",limit:"accountManagement",url:"/pagesA/agreement/protocol/PlatformProtocol"},{id:6,name:"法律条款",message:"",limit:"accountManagement",url:"/pagesA/agreement/protocol/LawProtocol"},{id:7,name:"隐私协议",message:"",limit:"accountManagement",url:"/pagesA/agreement/protocol/PrivacyProtocol"},{id:8,name:"意见反馈",message:"",limit:"accountManagement",url:"/pagesA/feedback/feedback"}]}},created:function(){var t=this,n=e.getStorageSync("type");t.type=e.getStorageSync("type");var i=e.getStorageSync("user"),a="";t.isAuthenticate=e.getStorageSync("userStatus").isAuthenticate,0==t.isAuthenticate?a="未认证":1==t.isAuthenticate?a="认证失败":2==t.isAuthenticate?a="已认证":3==t.isAuthenticate&&(a="待审核");var s=i.creditScore;if(1==n){var r=i.userType,o=i.createById,u={};u=i.tenterpriseRole,1==r||5==r?(t.isCreated=!0,o&&u?(t.earningsList_gaoji.pop(),t.earningsList=t.earningsList_gaoji.map((function(e){for(var t in u)t==e.limit&&1==u[t]&&(e.url="");return e}))):t.earningsList=t.earningsList_gaoji):o&&u?(t.earningsList_putong.pop(),t.earningsList=t.earningsList_putong.map((function(e){for(var t in u)t==e.limit&&1==u[t]&&(e.url="");return e}))):t.earningsList=t.earningsList_putong}else t.isCreated=!0,t.earningsList=t.earningsList_dianke;console.log(a),t.earningsList.map((function(e,t){0==t&&(e.message=i.phone),"信用分"==e.name&&(e.message=s),"企业认证"!=e.name&&"实名认证"!=e.name||(e.message=a)}))},methods:{linkto:function(t){if(console.log(t),""==t)return e.showToast({title:"你没有权限, 请联系管理员",icon:"none"}),!1;if("/pages/authentication/authentication"==t||"/pages/Account/AccountSetting"==t){if(0==this.isAuthenticate)return e.showToast({title:"请先完成实名认证",icon:"none"}),!1;if(3==this.isAuthenticate)return e.showToast({title:"实名认证还未通过",icon:"none"}),!1;if(1==this.isAuthenticate)return e.showToast({title:"实名认证失败,请重新认证",icon:"none"}),!1}e.navigateTo({url:t})},linktoSwitchIdentity:function(){e.navigateTo({url:"/pagesA/switchIdentity/switchIdentity"})},quit:function(){var t=e.getStorageSync("user");if(!t.userType||2!=t.userType&&3!=t.userType)e.reLaunch({url:"/pages/login/login"});else{var n=2==t.userType?2:1;e.reLaunch({url:"/pages/login/login?inviteType="+n})}e.clearStorageSync()}}};t.default=a}).call(this,n("543d")["default"])},"8d3d":function(e,t,n){},a672:function(e,t,n){"use strict";n.r(t);var i=n("8743"),a=n.n(i);for(var s in i)"default"!==s&&function(e){n.d(t,e,(function(){return i[e]}))}(s);t["default"]=a.a}},[["6cdb","common/runtime","common/vendor"]]]);
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/basicInformation/basicInformation"],{"26b1":function(e,t,n){"use strict";n.r(t);var i=n("c03a"),a=n("a672");for(var s in a)"default"!==s&&function(e){n.d(t,e,(function(){return a[e]}))}(s);n("7821");var r,o=n("f0c5"),u=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],r);t["default"]=u.exports},"6cdb":function(e,t,n){"use strict";(function(e){n("78ef");i(n("66fd"));var t=i(n("26b1"));function i(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},7821:function(e,t,n){"use strict";var i=n("8d3d"),a=n.n(i);a.a},8743:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;i(n("9036")),n("86df");function i(e){return e&&e.__esModule?e:{default:e}}var a={data:function(){return{type:null,isCreated:!1,enterpriseId:"",isAuthenticate:"",earningsList:[],earningsList_dianke:[{id:1,name:"绑定手机号",message:"",url:"/pages/phone/phone"},{id:2,name:"实名认证",message:"未认证",url:"/pages/Certification/Certification"},{id:3,name:"电客认证",message:"",url:"/pages/authentication/authentication"},{id:4,name:"信用分",message:"",url:"/pages/CreditPoints/CreditPoints"}],earningsList_gaoji:[{id:1,name:"绑定手机号",message:"",limit:"bindMobile",url:"/pages/phone/phone"},{id:2,name:"企业认证",message:"未认证",limit:"enterpriseCertification",url:"/pages/authentication/CompanyAuthentication"},{id:3,name:"信用分",message:"",limit:"creditScore",url:"/pages/CreditPoints/CreditPoints"},{id:4,name:"账号管理",message:"",limit:"accountManagement",url:"/pages/Account/AccountSetting"}],earningsList_putong:[{id:1,name:"绑定手机号",message:"",limit:"bindMobile",url:"/pages/phone/phone"},{id:2,name:"企业认证",message:"未认证",limit:"enterpriseCertification",url:"/pages/authentication/CompanyAuthentication"},{id:4,name:"账号管理",message:"",limit:"accountManagement",url:"/pages/Account/AccountSetting"}],terracelist:[{id:5,name:"平台协议",message:"",limit:"accountManagement",url:"/pagesA/agreement/protocol/PlatformProtocol"},{id:6,name:"法律条款",message:"",limit:"accountManagement",url:"/pagesA/agreement/protocol/LawProtocol"},{id:7,name:"隐私协议",message:"",limit:"accountManagement",url:"/pagesA/agreement/protocol/PrivacyProtocol"},{id:8,name:"意见反馈",message:"",limit:"accountManagement",url:"/pagesA/feedback/feedback"}]}},created:function(){var t=this,n=e.getStorageSync("type");t.type=e.getStorageSync("type");var i=e.getStorageSync("user"),a="";t.isAuthenticate=e.getStorageSync("user").isAuthenticate,0==t.isAuthenticate?a="未认证":1==t.isAuthenticate?a="认证失败":2==t.isAuthenticate?a="已认证":3==t.isAuthenticate&&(a="待审核");var s=i.creditScore;if(1==n){var r=i.userType,o=i.createById,u={};u=i.tenterpriseRole,1==r||5==r?(t.isCreated=!0,o&&u?(t.earningsList_gaoji.pop(),t.earningsList=t.earningsList_gaoji.map((function(e){for(var t in u)t==e.limit&&1==u[t]&&(e.url="");return e}))):t.earningsList=t.earningsList_gaoji):o&&u?(t.earningsList_putong.pop(),t.earningsList=t.earningsList_putong.map((function(e){for(var t in u)t==e.limit&&1==u[t]&&(e.url="");return e}))):t.earningsList=t.earningsList_putong}else t.isCreated=!0,t.earningsList=t.earningsList_dianke;console.log(a),t.earningsList.map((function(e,t){0==t&&(e.message=i.phone),"信用分"==e.name&&(e.message=s),"企业认证"!=e.name&&"实名认证"!=e.name||(e.message=a)}))},methods:{linkto:function(t){if(console.log(t),""==t)return e.showToast({title:"你没有权限, 请联系管理员",icon:"none"}),!1;if("/pages/authentication/authentication"==t||"/pages/Account/AccountSetting"==t){if(0==this.isAuthenticate)return e.showToast({title:"请先完成实名认证",icon:"none"}),!1;if(3==this.isAuthenticate)return e.showToast({title:"实名认证还未通过",icon:"none"}),!1;if(1==this.isAuthenticate)return e.showToast({title:"实名认证失败,请重新认证",icon:"none"}),!1}e.navigateTo({url:t})},linktoSwitchIdentity:function(){e.navigateTo({url:"/pagesA/switchIdentity/switchIdentity"})},quit:function(){var t=e.getStorageSync("user");if(!t.userType||2!=t.userType&&3!=t.userType)e.reLaunch({url:"/pages/login/login"});else{var n=2==t.userType?2:1;e.reLaunch({url:"/pages/login/login?inviteType="+n})}e.clearStorageSync()}}};t.default=a}).call(this,n("543d")["default"])},"8d3d":function(e,t,n){},a672:function(e,t,n){"use strict";n.r(t);var i=n("8743"),a=n.n(i);for(var s in i)"default"!==s&&function(e){n.d(t,e,(function(){return i[e]}))}(s);t["default"]=a.a},c03a:function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return i}));var a=function(){var e=this,t=e.$createElement;e._self._c},s=[]}},[["6cdb","common/runtime","common/vendor"]]]);
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/order/ServiceDetails"],{"0a47":function(t,e,i){"use strict";i.r(e);var n=i("59bc"),a=i("c47d");for(var u in a)"default"!==u&&function(t){i.d(e,t,(function(){return a[t]}))}(u);i("9153");var o,c=i("f0c5"),r=Object(c["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],o);e["default"]=r.exports},"12e2":function(t,e,i){},"59bc":function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return u})),i.d(e,"a",(function(){return n}));var a=function(){var t=this,e=t.$createElement;t._self._c;t._isMounted||(t.e0=function(e){t.dialogShow=!1})},u=[]},"5e0b":function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=u(i("9036")),a=i("86df");function u(t){return t&&t.__esModule?t:{default:t}}var o={onShow:function(){this.dialogShow=!1},onLoad:function(t){var e=this;this.inviteType=t.inviteType,this.inviteCode=t.inviteCode,this.id=t.id,(0,a.get)(n.default.entrustedServiceDetails,{id:this.id}).then((function(t){200==t.code&&(e.data=t.data)}))},created:function(){var e=t.getStorageSync("type"),i=t.getStorageSync("user");this.isAuthenticate=t.getStorageSync("userStatus").isAuthenticate,this.userId=1==e?i.enterpriseId:i.electricId},data:function(){return{data:{},userId:"",isAuthenticate:"",dialogShow:!1,dialogText:"",id:null,inviteType:null,inviteCode:null}},methods:{order:function(e){var i=this;(0,a.get)(n.default.takeEntrustedService,{userId:this.userId,id:e}).then((function(e){200==e.code?(t.showToast({title:"接单成功"}),setTimeout((function(){t.navigateBack({delta:1})}),500)):i.inviteType?(t.showToast({title:"你当前不是电客,请先完成电客注册",icon:"none"}),setTimeout((function(){t.reLaunch({url:"/pages/order/ServiceDetails?inviteType="+i.inviteType+"&inviteCode"+i.inviteCode})}),1e3)):(i.dialogShow=!0,i.dialogText=2!=i.isAuthenticate?"你未完成实名认证,暂不能接单":"你未完成电客认证,暂不能接单")}))},linkto:function(){2!=this.isAuthenticate?t.navigateTo({url:"/pages/Certification/Certification"}):t.navigateTo({url:"/pages/authentication/authentication"})}}};e.default=o}).call(this,i("543d")["default"])},9153:function(t,e,i){"use strict";var n=i("12e2"),a=i.n(n);a.a},c151:function(t,e,i){"use strict";(function(t){i("78ef");n(i("66fd"));var e=n(i("0a47"));function n(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,i("543d")["createPage"])},c47d:function(t,e,i){"use strict";i.r(e);var n=i("5e0b"),a=i.n(n);for(var u in n)"default"!==u&&function(t){i.d(e,t,(function(){return n[t]}))}(u);e["default"]=a.a}},[["c151","common/runtime","common/vendor"]]]);
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/order/ServiceDetails"],{"0a47":function(t,e,i){"use strict";i.r(e);var n=i("73f4"),a=i("c47d");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("9153");var u,r=i("f0c5"),c=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],u);e["default"]=c.exports},"12e2":function(t,e,i){},"5e0b":function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(i("9036")),a=i("86df");function o(t){return t&&t.__esModule?t:{default:t}}var u={onShow:function(){this.dialogShow=!1},onLoad:function(t){var e=this;this.inviteType=t.inviteType,this.inviteCode=t.inviteCode,this.id=t.id,(0,a.get)(n.default.entrustedServiceDetails,{id:this.id}).then((function(t){200==t.code&&(e.data=t.data)}))},created:function(){var e=t.getStorageSync("type"),i=t.getStorageSync("user");this.isAuthenticate=t.getStorageSync("user").isAuthenticate,this.userId=1==e?i.enterpriseId:i.electricId},data:function(){return{data:{},userId:"",isAuthenticate:"",dialogShow:!1,dialogText:"",id:null,inviteType:null,inviteCode:null}},methods:{order:function(e){var i=this;(0,a.get)(n.default.takeEntrustedService,{userId:this.userId,id:e}).then((function(e){200==e.code?(t.showToast({title:"接单成功"}),setTimeout((function(){t.navigateBack({delta:1})}),500)):i.inviteType?(t.showToast({title:"你当前不是电客,请先完成电客注册",icon:"none"}),setTimeout((function(){t.reLaunch({url:"/pages/order/ServiceDetails?inviteType="+i.inviteType+"&inviteCode"+i.inviteCode})}),1e3)):(i.dialogShow=!0,i.dialogText=2!=i.isAuthenticate?"你未完成实名认证,暂不能接单":"你未完成电客认证,暂不能接单")}))},linkto:function(){2!=this.isAuthenticate?t.navigateTo({url:"/pages/Certification/Certification"}):t.navigateTo({url:"/pages/authentication/authentication"})}}};e.default=u}).call(this,i("543d")["default"])},"73f4":function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var a=function(){var t=this,e=t.$createElement;t._self._c;t._isMounted||(t.e0=function(e){t.dialogShow=!1})},o=[]},9153:function(t,e,i){"use strict";var n=i("12e2"),a=i.n(n);a.a},c151:function(t,e,i){"use strict";(function(t){i("78ef");n(i("66fd"));var e=n(i("0a47"));function n(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,i("543d")["createPage"])},c47d:function(t,e,i){"use strict";i.r(e);var n=i("5e0b"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a}},[["c151","common/runtime","common/vendor"]]]);
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/register/register"],{"22a3":function(e,t,n){"use strict";var o=n("7fc1"),i=n.n(o);i.a},"433e":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=c(n("9036")),i=n("86df");function c(e){return e&&e.__esModule?e:{default:e}}var s=function(){Promise.all([n.e("common/vendor"),n.e("components/pickerAddress/pickerAddress")]).then(function(){return resolve(n("31b9"))}.bind(null,n)).catch(n.oe)},r={onLoad:function(e){e.inviteCode&&(this.inviteCode=e.inviteCode,this.inviteType=e.inviteType,this.contractId=e.contractId),e.culiangcontractId&&(this.scene=e.culiangcontractId),console.log("接受邀请的合同id=",this.contractId)},components:{pickerAddress:s},data:function(){return{inviteCode:"",inviteType:0,contractId:"",wxName:"",headImgUrl:"",phone:"",verifyCode:"",address:"",radioCheck:!1,clauseShow:!1,code:"",count:60,scene:""}},methods:{clickhilden:function(){this.clauseShow=!1,this.radioCheck=!0},getIphone:function(e){this.phone=e.detail.value},getAuthCode:function(){var t=this,n=this.phone,c=/^1[9|3|4|5|7|8][0-9]{9}$/,s=c.test(n);n&&s?(e.showToast({title:"验证码已发送"}),(0,i.get)(o.default.VerificationCode,{phone:n}).then((function(e){200==e.code&&(console.log(e),t.code=e.msg,t.countSixty())}))):e.showToast({title:"请输入手机号",icon:"none"})},change:function(e){this.address=e.data.join("/")},getInviteCode:function(e){this.inviteCode=e.detail.value},register:function(){var t=this.$data,n=t.phone,o=t.verifyCode,i=t.address,c=t.radioCheck,s=t.code;if(c){var r=this.verifyInfo(n,o,i,s);if(r)e.showToast({title:r,icon:"none"});else{var a=e.getStorageSync("userInfo");this.openId=e.getStorageSync("openId"),this.type=e.getStorageSync("type"),this.wxName=a.nickName,this.headImgUrl=a.avatarUrl,this.registerProt()}}else e.showToast({title:"请同意协议",icon:"none"})},countSixty:function(){var e=this,t=this.count,n=setInterval((function(){e.count=t--,0==t&&(e.count=60,clearInterval(n))}),1e3)},verifyInfo:function(){var e=arguments;return""==e[0]?"请重新输入手机号":""==e[1]?"请输入验证码":""==e[2]?"请选择地址":e[1]!=e[3]&&"验证码输入有误"},registerProt:function(){console.log("inviteType:"+this.inviteType),(0,i.post)(o.default.register,{inviteType:this.inviteType,inviteCode:this.inviteCode,contractId:this.contractId,openId:this.openId,phone:this.phone,code:this.code,type:this.type,wxName:this.wxName,address:this.address,headImgUrl:this.headImgUrl,scene:this.scene}).then((function(t){console.log(t),200==t.code?(e.showToast({title:"注册成功"}),e.setStorageSync("user",t.data),setTimeout((function(){e.reLaunch({url:"/pages/index/index"})}),500)):e.showToast({title:t.msg,icon:"none"})}))}}};t.default=r}).call(this,n("543d")["default"])},"4aae":function(e,t,n){"use strict";n.r(t);var o=n("433e"),i=n.n(o);for(var c in o)"default"!==c&&function(e){n.d(t,e,(function(){return o[e]}))}(c);t["default"]=i.a},7400:function(e,t,n){"use strict";n.r(t);var o=n("9812"),i=n("4aae");for(var c in i)"default"!==c&&function(e){n.d(t,e,(function(){return i[e]}))}(c);n("22a3");var s,r=n("f0c5"),a=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],s);t["default"]=a.exports},"7cdb":function(e,t,n){"use strict";(function(e){n("78ef");o(n("66fd"));var t=o(n("7400"));function o(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},"7fc1":function(e,t,n){},9812:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return o}));var o={pickerAddress:function(){return Promise.all([n.e("common/vendor"),n.e("components/pickerAddress/pickerAddress")]).then(n.bind(null,"31b9"))}},i=function(){var e=this,t=e.$createElement;e._self._c;e._isMounted||(e.e0=function(t){t.stopPropagation(),e.clauseShow=!0})},c=[]}},[["7cdb","common/runtime","common/vendor"]]]);
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/register/register"],{"22a3":function(e,t,n){"use strict";var o=n("7fc1"),i=n.n(o);i.a},"433e":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=c(n("9036")),i=n("86df");function c(e){return e&&e.__esModule?e:{default:e}}var s=function(){Promise.all([n.e("common/vendor"),n.e("components/pickerAddress/pickerAddress")]).then(function(){return resolve(n("31b9"))}.bind(null,n)).catch(n.oe)},r={onLoad:function(e){e.inviteCode&&(this.inviteCode=e.inviteCode,this.inviteType=e.inviteType,this.contractId=e.contractId),e.culiangcontractId&&(this.scene=e.culiangcontractId),console.log("接受邀请的合同id=",this.contractId)},components:{pickerAddress:s},data:function(){return{inviteCode:"",inviteType:0,contractId:"",wxName:"",headImgUrl:"",phone:"",verifyCode:"",address:"",radioCheck:!1,clauseShow:!1,code:"",count:60,scene:""}},methods:{clickhilden:function(){this.clauseShow=!1,this.radioCheck=!0},getIphone:function(e){this.phone=e.detail.value},getAuthCode:function(){var t=this,n=this.phone,c=/^1[9|3|4|5|7|8][0-9]{9}$/,s=c.test(n);n&&s?(e.showToast({title:"验证码已发送"}),(0,i.get)(o.default.VerificationCode,{phone:n}).then((function(e){200==e.code&&(console.log(e),t.code=e.msg,t.countSixty())}))):e.showToast({title:"请输入手机号",icon:"none"})},change:function(e){this.address=e.data.join("/")},getInviteCode:function(e){this.inviteCode=e.detail.value},register:function(){var t=this.$data,n=t.phone,o=t.verifyCode,i=t.address,c=t.radioCheck,s=t.code;if(c){var r=this.verifyInfo(n,o,i,s);if(r)e.showToast({title:r,icon:"none"});else{var a=e.getStorageSync("userInfo");this.openId=e.getStorageSync("openId"),this.type=e.getStorageSync("type"),this.wxName=a.nickName,this.headImgUrl=a.avatarUrl,this.registerProt()}}else e.showToast({title:"请同意协议",icon:"none"})},countSixty:function(){var e=this,t=this.count,n=setInterval((function(){e.count=t--,0==t&&(e.count=60,clearInterval(n))}),1e3)},verifyInfo:function(){var e=arguments;return""==e[0]?"请重新输入手机号":""==e[1]?"请输入验证码":""==e[2]?"请选择地址":e[1]!=e[3]&&"验证码输入有误"},registerProt:function(){console.log("inviteType:"+this.inviteType),(0,i.post)(o.default.register,{inviteType:this.inviteType,inviteCode:this.inviteCode,contractId:this.contractId,openId:this.openId,phone:this.phone,code:this.code,type:this.type,wxName:this.wxName,address:this.address,headImgUrl:this.headImgUrl,scene:this.scene}).then((function(t){console.log(t),200==t.code?(e.showToast({title:"注册成功"}),e.setStorageSync("user",t.data),setTimeout((function(){e.reLaunch({url:"/pages/index/index"})}),500)):e.showToast({title:t.msg,icon:"none"})}))}}};t.default=r}).call(this,n("543d")["default"])},"4aae":function(e,t,n){"use strict";n.r(t);var o=n("433e"),i=n.n(o);for(var c in o)"default"!==c&&function(e){n.d(t,e,(function(){return o[e]}))}(c);t["default"]=i.a},5063:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return o}));var o={pickerAddress:function(){return Promise.all([n.e("common/vendor"),n.e("components/pickerAddress/pickerAddress")]).then(n.bind(null,"31b9"))}},i=function(){var e=this,t=e.$createElement;e._self._c;e._isMounted||(e.e0=function(t){t.stopPropagation(),e.clauseShow=!0})},c=[]},7400:function(e,t,n){"use strict";n.r(t);var o=n("5063"),i=n("4aae");for(var c in i)"default"!==c&&function(e){n.d(t,e,(function(){return i[e]}))}(c);n("22a3");var s,r=n("f0c5"),a=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],s);t["default"]=a.exports},"7cdb":function(e,t,n){"use strict";(function(e){n("78ef");o(n("66fd"));var t=o(n("7400"));function o(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},"7fc1":function(e,t,n){}},[["7cdb","common/runtime","common/vendor"]]]);
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/agreement/protocol/PlatformProtocol"],{"006a":function(n,t,e){"use strict";e.r(t);var u=e("c3a0"),c=e.n(u);for(var r in u)"default"!==r&&function(n){e.d(t,n,(function(){return u[n]}))}(r);t["default"]=c.a},"351d":function(n,t,e){"use strict";var u=e("6325"),c=e.n(u);c.a},6325:function(n,t,e){},c1fb:function(n,t,e){"use strict";(function(n){e("78ef");u(e("66fd"));var t=u(e("e24b"));function u(n){return n&&n.__esModule?n:{default:n}}n(t.default)}).call(this,e("543d")["createPage"])},c3a0:function(n,t){},e24b:function(n,t,e){"use strict";e.r(t);var u=e("f680"),c=e("006a");for(var r in c)"default"!==r&&function(n){e.d(t,n,(function(){return c[n]}))}(r);e("351d");var a,o=e("f0c5"),f=Object(o["a"])(c["default"],u["b"],u["c"],!1,null,null,null,!1,u["a"],a);t["default"]=f.exports},f680:function(n,t,e){"use strict";var u;e.d(t,"b",(function(){return c})),e.d(t,"c",(function(){return r})),e.d(t,"a",(function(){return u}));var c=function(){var n=this,t=n.$createElement;n._self._c},r=[]}},[["c1fb","common/runtime","common/vendor"]]]);
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/agreement/protocol/PlatformProtocol"],{"006a":function(n,t,c){"use strict";c.r(t);var e=c("c3a0"),u=c.n(e);for(var r in e)"default"!==r&&function(n){c.d(t,n,(function(){return e[n]}))}(r);t["default"]=u.a},"351d":function(n,t,c){"use strict";var e=c("6325"),u=c.n(e);u.a},"3c1a":function(n,t,c){"use strict";var e;c.d(t,"b",(function(){return u})),c.d(t,"c",(function(){return r})),c.d(t,"a",(function(){return e}));var u=function(){var n=this,t=n.$createElement;n._self._c},r=[]},6325:function(n,t,c){},c1fb:function(n,t,c){"use strict";(function(n){c("78ef");e(c("66fd"));var t=e(c("e24b"));function e(n){return n&&n.__esModule?n:{default:n}}n(t.default)}).call(this,c("543d")["createPage"])},c3a0:function(n,t){},e24b:function(n,t,c){"use strict";c.r(t);var e=c("3c1a"),u=c("006a");for(var r in u)"default"!==r&&function(n){c.d(t,n,(function(){return u[n]}))}(r);c("351d");var a,o=c("f0c5"),f=Object(o["a"])(u["default"],e["b"],e["c"],!1,null,null,null,!1,e["a"],a);t["default"]=f.exports}},[["c1fb","common/runtime","common/vendor"]]]);
\ No newline at end of file
.platformProtocol{padding-top:32rpx;width:100%;height:100%;background-color:#f4f5f7}.platformProtocol .platformProtocol_box{padding:56rpx;background:#fff;font-size:28rpx;color:#333}
\ No newline at end of file
.platformProtocol{padding:32rpx;width:100%;height:100%;background-color:#f4f5f7}.platformProtocol view{font-size:24rpx;margin:16rpx 0}.platformProtocol view text{margin:8rpx 0;display:block;text-indent:32rpx}
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/agreement/protocol/PrivacyProtocol"],{"1c07":function(n,t,e){"use strict";(function(n){e("78ef");c(e("66fd"));var t=c(e("e267"));function c(n){return n&&n.__esModule?n:{default:n}}n(t.default)}).call(this,e("543d")["createPage"])},"49e6":function(n,t,e){"use strict";e.r(t);var c=e("f5d4"),u=e.n(c);for(var r in c)"default"!==r&&function(n){e.d(t,n,(function(){return c[n]}))}(r);t["default"]=u.a},"5c65":function(n,t,e){},e267:function(n,t,e){"use strict";e.r(t);var c=e("e670"),u=e("49e6");for(var r in u)"default"!==r&&function(n){e.d(t,n,(function(){return u[n]}))}(r);e("e6b2");var o,a=e("f0c5"),f=Object(a["a"])(u["default"],c["b"],c["c"],!1,null,null,null,!1,c["a"],o);t["default"]=f.exports},e670:function(n,t,e){"use strict";var c;e.d(t,"b",(function(){return u})),e.d(t,"c",(function(){return r})),e.d(t,"a",(function(){return c}));var u=function(){var n=this,t=n.$createElement;n._self._c},r=[]},e6b2:function(n,t,e){"use strict";var c=e("5c65"),u=e.n(c);u.a},f5d4:function(n,t){}},[["1c07","common/runtime","common/vendor"]]]);
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/agreement/protocol/PrivacyProtocol"],{"1c07":function(n,t,e){"use strict";(function(n){e("78ef");c(e("66fd"));var t=c(e("e267"));function c(n){return n&&n.__esModule?n:{default:n}}n(t.default)}).call(this,e("543d")["createPage"])},"49e6":function(n,t,e){"use strict";e.r(t);var c=e("f5d4"),u=e.n(c);for(var r in c)"default"!==r&&function(n){e.d(t,n,(function(){return c[n]}))}(r);t["default"]=u.a},"5c65":function(n,t,e){},"5f9b":function(n,t,e){"use strict";var c;e.d(t,"b",(function(){return u})),e.d(t,"c",(function(){return r})),e.d(t,"a",(function(){return c}));var u=function(){var n=this,t=n.$createElement;n._self._c},r=[]},e267:function(n,t,e){"use strict";e.r(t);var c=e("5f9b"),u=e("49e6");for(var r in u)"default"!==r&&function(n){e.d(t,n,(function(){return u[n]}))}(r);e("e6b2");var o,f=e("f0c5"),a=Object(f["a"])(u["default"],c["b"],c["c"],!1,null,null,null,!1,c["a"],o);t["default"]=a.exports},e6b2:function(n,t,e){"use strict";var c=e("5c65"),u=e.n(c);u.a},f5d4:function(n,t){}},[["1c07","common/runtime","common/vendor"]]]);
\ No newline at end of file
<view class="PrivacyProtocol"><view class="PrivacyProtocol_box">隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议隐私协议</view></view>
\ No newline at end of file
<view class="PrivacyProtocol"></view>
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/enquiry/Particulars"],{"4a7a":function(e,t,n){"use strict";var u=n("59ff"),i=n.n(u);i.a},"4f6c":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=n("86df"),i=a(n("9036"));function a(e){return e&&e.__esModule?e:{default:e}}var r={data:function(){return{status:"",messages:"",userType:"0",type:""}},created:function(){var t=this,n=e.getStorageSync("type");t.type=n;var u=e.getStorageSync("user");1==n&&(t.userType=u.userType,console.log("userType:"+t.userType))},onLoad:function(e){var t=this;this.status=e.status,console.log(this.status),(0,u.get)(i.default.independentInquiryDetails,{id:e.id}).then((function(e){200==e.code&&(t.messages=e.data,t.messages.enterpriseElectricityNoticeBill=JSON.parse(t.messages.enterpriseElectricityNoticeBill))}))},methods:{previewImage:function(t){e.previewImage({urls:[t]})},checkFile:function(){e.navigateTo({url:"/pagesA/Contracts/attachment/attachment"}),console.log("查看pdf文件")}}};t.default=r}).call(this,n("543d")["default"])},"59ff":function(e,t,n){},"727b":function(e,t,n){"use strict";(function(e){n("78ef");u(n("66fd"));var t=u(n("78bf"));function u(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},"78bf":function(e,t,n){"use strict";n.r(t);var u=n("7c13"),i=n("b371");for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("4a7a");var r,c=n("f0c5"),s=Object(c["a"])(i["default"],u["b"],u["c"],!1,null,"44254616",null,!1,u["a"],r);t["default"]=s.exports},"7c13":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return u}));var u={uTimeLine:function(){return n.e("uview-ui/components/u-time-line/u-time-line").then(n.bind(null,"aef7"))},uTimeLineItem:function(){return n.e("uview-ui/components/u-time-line-item/u-time-line-item").then(n.bind(null,"bf7a"))}},i=function(){var e=this,t=e.$createElement;e._self._c},a=[]},b371:function(e,t,n){"use strict";n.r(t);var u=n("4f6c"),i=n.n(u);for(var a in u)"default"!==a&&function(e){n.d(t,e,(function(){return u[e]}))}(a);t["default"]=i.a}},[["727b","common/runtime","common/vendor"]]]);
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/enquiry/Particulars"],{"01e6":function(e,t,n){"use strict";var u=n("46fd"),i=n.n(u);i.a},"46fd":function(e,t,n){},"4f6c":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=n("86df"),i=a(n("9036"));function a(e){return e&&e.__esModule?e:{default:e}}var r={data:function(){return{status:"",messages:"",userType:"0",type:""}},created:function(){var t=this,n=e.getStorageSync("type");t.type=n;var u=e.getStorageSync("user");1==n&&(t.userType=u.userType,console.log("userType:"+t.userType))},onLoad:function(e){var t=this;this.status=e.status,console.log(this.status),(0,u.get)(i.default.independentInquiryDetails,{id:e.id}).then((function(e){200==e.code&&(t.messages=e.data,t.messages.enterpriseElectricityNoticeBill=JSON.parse(t.messages.enterpriseElectricityNoticeBill))}))},methods:{previewImage:function(t){e.previewImage({urls:[t]})},checkFile:function(){e.navigateTo({url:"/pagesA/Contracts/attachment/attachment"}),console.log("查看pdf文件")}}};t.default=r}).call(this,n("543d")["default"])},"727b":function(e,t,n){"use strict";(function(e){n("78ef");u(n("66fd"));var t=u(n("78bf"));function u(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},"78bf":function(e,t,n){"use strict";n.r(t);var u=n("eaad"),i=n("b371");for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("01e6");var r,c=n("f0c5"),s=Object(c["a"])(i["default"],u["b"],u["c"],!1,null,"02f8e134",null,!1,u["a"],r);t["default"]=s.exports},b371:function(e,t,n){"use strict";n.r(t);var u=n("4f6c"),i=n.n(u);for(var a in u)"default"!==a&&function(e){n.d(t,e,(function(){return u[e]}))}(a);t["default"]=i.a},eaad:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return u}));var u={uTimeLine:function(){return n.e("uview-ui/components/u-time-line/u-time-line").then(n.bind(null,"aef7"))},uTimeLineItem:function(){return n.e("uview-ui/components/u-time-line-item/u-time-line-item").then(n.bind(null,"bf7a"))}},i=function(){var e=this,t=e.$createElement;e._self._c},a=[]}},[["727b","common/runtime","common/vendor"]]]);
\ No newline at end of file
.particulars.data-v-44254616{padding-top:32rpx;width:100%;min-height:100%;background-color:#f4f5f7;padding-bottom:100rpx}.particulars .block.data-v-44254616{width:100%;background-color:#fff;padding:0 32rpx 32rpx 32rpx;margin-bottom:16rpx}.particulars .block .u-order-title.data-v-44254616{font-size:28rpx;color:#333}.particulars .block .u-order-desc.data-v-44254616{font-size:24rpx;color:#999}.particulars .block .u-dot.data-v-44254616{background-color:#1989fa}.particulars .block .u-node.data-v-44254616{width:16rpx;height:16rpx;-webkit-border-radius:50%;border-radius:50%}.particulars .particulars_title.data-v-44254616{height:90rpx;line-height:90rpx;font-size:32rpx}.particulars .common_box.data-v-44254616{padding:0 32rpx;background-color:#f4f5f7}.particulars .common_box view.data-v-44254616{min-height:60rpx;line-height:60rpx;font-size:28rpx;color:#333;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row}.particulars .common_box view text.data-v-44254616{color:#1989fa}.particulars .common_box view image.data-v-44254616{width:80rpx;height:80rpx;-webkit-border-radius:4px;border-radius:4px;vertical-align:top;margin-left:20rpx}.particulars .common_box .df_block .dftzd_img.data-v-44254616{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;flex-wrap:wrap;width:60%}.particulars .common_box .df_block .dftzd_img image.data-v-44254616{margin-right:10rpx;margin-left:0;margin-bottom:10rpx}
\ No newline at end of file
.particulars.data-v-02f8e134{padding-top:32rpx;width:100%;min-height:100%;background-color:#f4f5f7;padding-bottom:100rpx}.particulars .block.data-v-02f8e134{width:100%;background-color:#fff;padding:0 32rpx 32rpx 32rpx;margin-bottom:16rpx}.particulars .block .u-order-title.data-v-02f8e134{font-size:28rpx;color:#333}.particulars .block .u-order-desc.data-v-02f8e134{font-size:24rpx;color:#999}.particulars .block .u-dot.data-v-02f8e134{background-color:#1989fa}.particulars .block .u-node.data-v-02f8e134{width:16rpx;height:16rpx;-webkit-border-radius:50%;border-radius:50%}.particulars .particulars_title.data-v-02f8e134{height:90rpx;line-height:90rpx;font-size:32rpx}.particulars .common_box.data-v-02f8e134{padding:0 32rpx;background-color:#f4f5f7}.particulars .common_box view.data-v-02f8e134{min-height:60rpx;line-height:60rpx;font-size:28rpx;color:#333;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row}.particulars .common_box view text.data-v-02f8e134{color:#1989fa}.particulars .common_box view image.data-v-02f8e134{width:80rpx;height:80rpx;-webkit-border-radius:4px;border-radius:4px;vertical-align:top;margin-left:20rpx}.particulars .common_box .df_block .dftzd_img.data-v-02f8e134{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;flex-wrap:wrap;width:60%}.particulars .common_box .df_block .dftzd_img image.data-v-02f8e134{margin-right:10rpx;margin-left:0;margin-bottom:10rpx}
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/requirements/requirements"],{"11de":function(t,e,n){"use strict";n.r(e);var o=n("9ac2"),i=n("2a0a");for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("27d0");var u,s=n("f0c5"),r=Object(s["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],u);e["default"]=r.exports},"1a74":function(t,e,n){},"27d0":function(t,e,n){"use strict";var o=n("1a74"),i=n.n(o);i.a},"2a0a":function(t,e,n){"use strict";n.r(e);var o=n("5617"),i=n.n(o);for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},5617:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(n("9036")),i=n("86df");function a(t){return t&&t.__esModule?t:{default:t}}var u={created:function(){this.user=t.getStorageSync("user"),this.status=this.user.certificationStatus,console.log(this.status),this.phone=this.user.phone,this.name=this.user.certificationName},data:function(){return{user:"",count:"60",status:"0",name:"奉俊昊",phone:"1350002423",code:"",timeId:""}},methods:{countSixty:function(){var t=this,e=this,n=this.count;this.timeId=setInterval((function(){t.count=n--,0==n&&(t.count=60,clearInterval(e.timeId))}),1e3)},getcode:function(){var e=this;console.log(this.phone);var n=this.phone,a=/^1[3|4|5|7|8][0-9]{9}$/,u=a.test(n);n&&u?(t.showToast({title:"验证码已发送"}),(0,i.get)(o.default.VerificationCode,{phone:n}).then((function(t){200==t.code&&(console.log(t),e.code=t.msg,e.countSixty())}))):t.showToast({title:"请输入手机号",icon:"none"})},enroll:function(){var e=this;if(1==this.status)return!1;""==this.code?t.showToast({title:"请输入验证码",icon:"none"}):(0,i.get)(o.default.checkPhoneCodeIsExpired,{phone:e.phone,code:e.code}).then((function(n){n.data?(e.count=60,clearInterval(e.timeId),e.trainingRegistration()):t.showToast({title:"验证码已过期,请重新获取",icon:"none"})}))},trainingRegistration:function(){var e=this;(0,i.get)(o.default.trainingRegistration,{userId:e.user.electricId}).then((function(n){200==n.code?(e.status=1,t.showToast({title:"报名成功!"}),e.user.certificationStatus=1,t.removeStorageSync("user"),t.setStorageSync("user",e.user)):t.showToast({title:n.msg,icon:"none"})}))}}};e.default=u}).call(this,n("543d")["default"])},"8a08":function(t,e,n){"use strict";(function(t){n("78ef");o(n("66fd"));var e=o(n("11de"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},"9ac2":function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}));var i=function(){var t=this,e=t.$createElement;t._self._c},a=[]}},[["8a08","common/runtime","common/vendor"]]]);
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/requirements/requirements"],{"11de":function(t,e,n){"use strict";n.r(e);var o=n("2a87"),i=n("2a0a");for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("27d0");var u,s=n("f0c5"),c=Object(s["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],u);e["default"]=c.exports},"1a74":function(t,e,n){},"27d0":function(t,e,n){"use strict";var o=n("1a74"),i=n.n(o);i.a},"2a0a":function(t,e,n){"use strict";n.r(e);var o=n("5617"),i=n.n(o);for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},"2a87":function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}));var i=function(){var t=this,e=t.$createElement;t._self._c},a=[]},5617:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(n("9036")),i=n("86df");function a(t){return t&&t.__esModule?t:{default:t}}var u={created:function(){this.user=t.getStorageSync("user"),this.status=this.user.certificationStatus,console.log(this.status),this.phone=this.user.phone,this.name=this.user.certificationName},data:function(){return{user:"",count:"60",status:"0",name:"",phone:"",code:"",timeId:""}},methods:{linktoBack:function(){t.navigateBack({delta:1})},countSixty:function(){var t=this,e=this,n=this.count;this.timeId=setInterval((function(){t.count=n--,0==n&&(t.count=60,clearInterval(e.timeId))}),1e3)},getcode:function(){var e=this;console.log(this.phone);var n=this.phone,a=/^1[3|4|5|7|8][0-9]{9}$/,u=a.test(n);n&&u?(t.showToast({title:"验证码已发送"}),(0,i.get)(o.default.VerificationCode,{phone:n}).then((function(t){200==t.code&&(console.log(t),e.code=t.msg,e.countSixty())}))):t.showToast({title:"请输入手机号",icon:"none"})},enroll:function(){var e=this;if(1==this.status)return!1;""==this.code?t.showToast({title:"请输入验证码",icon:"none"}):(0,i.get)(o.default.checkPhoneCodeIsExpired,{phone:e.phone,code:e.code}).then((function(n){n.data?(e.count=60,clearInterval(e.timeId),e.trainingRegistration()):t.showToast({title:"验证码已过期,请重新获取",icon:"none"})}))},trainingRegistration:function(){var e=this;(0,i.get)(o.default.trainingRegistration,{userId:e.user.electricId}).then((function(n){200==n.code?(e.status=1,t.showToast({title:"报名成功!"}),e.user.certificationStatus=1,t.removeStorageSync("user"),t.setStorageSync("user",e.user)):t.showToast({title:n.msg,icon:"none"})}))}}};e.default=u}).call(this,n("543d")["default"])},"8a08":function(t,e,n){"use strict";(function(t){n("78ef");o(n("66fd"));var e=o(n("11de"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])}},[["8a08","common/runtime","common/vendor"]]]);
\ No newline at end of file
<view class="requirements"><view class="requirements_top"><view class="requirements_top_nav"><image src="../../static/images/left.png" mode="widthFix"></image>电客中心</view></view><view class="requirements_content"><view class="requirements_content_img"><image src="../../static/images/requirements_bg.png"></image></view><view class="requirements_box"><view class="requirements_box_message"><view class="requirements_box_message_item"><text class="lable">姓名</text><view class="placeholder">{{name}}</view><view class="hexian"></view></view><view class="requirements_box_message_item"><text class="lable">联系方式</text><view class="placeholder">{{phone}}</view><view class="hexian"></view></view></view><view class="requirements_box_message_btn"><view>已报名,去认证电客</view></view></view><view class="requirements_good"><view class="requirements_good_box"><view class="requirements_good_title">认证电客有什么优势</view><view class="requirements_good_icons"><image src mode></image></view><view class="requirements_good_text"><view class="requirements_good_text_item"><view class="biaodian"></view>接受高素质的电客培训,获得专业知识,打车赚钱基础</view><view class="requirements_good_text_item"><view class="biaodian"></view>更好的服务企业,绑定企业的成功率更高</view><view class="requirements_good_text_item"><view class="biaodian"></view>享受海量的平台企业资源,无需自己挖掘创业</view></view></view></view></view></view>
\ No newline at end of file
<view class="requirements"><view class="requirements_top"><view class="requirements_top_nav"><image src="../../static/images/left.png" mode="widthFix" data-event-opts="{{[['tap',[['linktoBack',['$event']]]]]}}" bindtap="__e"></image>电客中心</view></view><view class="requirements_content"><view class="requirements_content_img"><image src="../../static/images/requirements_bg.png"></image></view><block wx:if="{{status==1}}"><view class="requirements_box"><view class="requirements_box_message"><view class="requirements_box_message_item"><text class="lable">姓名</text><view class="placeholder">{{name}}</view><view class="hexian"></view></view><view class="requirements_box_message_item"><text class="lable">联系方式</text><view class="placeholder">{{phone}}</view><view class="hexian"></view></view></view><view class="requirements_box_message_btn"><view data-event-opts="{{[['tap',[['linktoBack',['$event']]]]]}}" bindtap="__e">已报名,去认证电客</view></view></view></block><block wx:else><view class="requirements_box"><view class="requirements_box_message"><view class="userInput">你的姓名</view><view class="requirements_box_message_item"><input type="text" placeholder="请输入您的姓名" data-event-opts="{{[['input',[['__set_model',['','name','$event',[]]]]]]}}" value="{{name}}" bindinput="__e"/><view class="hexian"></view></view><view class="userInput">你的联系方式</view><view class="requirements_box_message_item requirements_code"><input type="text" placeholder="请输入您的手机号码" data-event-opts="{{[['input',[['__set_model',['','phone','$event',[]]]]]]}}" value="{{phone}}" bindinput="__e"/><block wx:if="{{count==60}}"><view data-event-opts="{{[['tap',[['getcode',['$event']]]]]}}" class="input_code" bindtap="__e">获取验证码</view></block><block wx:else><view class="input_code">{{count+"S后重新获取"}}</view></block><view class="hexian"></view></view><view class="userInput">验证码</view><view class="requirements_box_message_item"><input type="text" placeholder="请输入验证码" data-event-opts="{{[['input',[['__set_model',['','code','$event',[]]]]]]}}" value="{{code}}" bindinput="__e"/><view class="hexian"></view></view></view><view class="requirements_box_message_btn"><view data-event-opts="{{[['tap',[['enroll',['$event']]]]]}}" bindtap="__e">立刻报名</view></view><view class="requirements_box_message_hint"><image src="../../static/images/gou.png" mode></image>成为认证电客需要参加平台电客课程培训,培训通过后即可获得电客资质证书,如有意向,请留下您的联系方式,方便平台联系您</view></view></block><view class="requirements_good"><view class="requirements_good_box"><view class="requirements_good_title">认证电客有什么优势</view><view class="requirements_good_icons"><view><image src="../../static/images/major.png" mode></image>专业培训</view><view><image src="../../static/images/success.png" mode></image>更高成功率</view><view><image src="../../static/images/platform.png" mode></image>平台资源</view></view><view class="requirements_good_text"><view class="requirements_good_text_item"><view class="biaodian"></view>接受高素质的电客培训,获得专业知识,打车赚钱基础</view><view class="requirements_good_text_item"><view class="biaodian"></view>更好的服务企业,绑定企业的成功率更高</view><view class="requirements_good_text_item"><view class="biaodian"></view>享受海量的平台企业资源,无需自己挖掘创业</view></view></view></view></view></view>
\ No newline at end of file
.requirements{position:relative;width:100%;height:100%;background:#f4f5f7}.requirements .requirements_top{position:relative;width:100%;height:400rpx;background:-webkit-gradient(linear,left top,left bottom,from(#1a8afa),to(#3caff6));background:-webkit-linear-gradient(top,#1a8afa,#3caff6);background:linear-gradient(180deg,#1a8afa,#3caff6);-webkit-border-radius:0 0 125rpx 125rpx;border-radius:0 0 125rpx 125rpx}.requirements .requirements_top .requirements_top_nav{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;position:absolute;left:32rpx;top:70rpx;font-size:32rpx;color:#fff;opacity:1}.requirements .requirements_top .requirements_top_nav image{margin-right:16rpx;width:20rpx;height:40rpx}.requirements .requirements_content{position:absolute;left:0;top:150rpx;width:100%}.requirements .requirements_content .requirements_content_img{padding:0 32rpx;width:100%;height:317rpx}.requirements .requirements_content .requirements_box{padding:0 32rpx;margin-top:32rpx;width:100%;background:#f5f5f5;-webkit-border-radius:5rpx;border-radius:5rpx;opacity:1}.requirements .requirements_content .requirements_box .requirements_box_message{padding:0 32rpx;background:#fff}.requirements .requirements_content .requirements_box .requirements_box_message .requirements_box_message_item{width:100%;position:relative;height:90rpx;line-height:90rpx}.requirements .requirements_content .requirements_box .requirements_box_message .requirements_box_message_item .hexian{width:100%;height:1px;background-color:#c6c9cc;transform:scaleY(.5);-webkit-transform:scaleY(.5);-moz-transform:scaleY(.5);-o-transform:scaleY(.5);-ms-transform:scaleY(.5);position:absolute;bottom:0}.requirements .requirements_content .requirements_box .requirements_box_message .requirements_box_message_item input{height:100%;position:absolute;right:0;text-align:right;top:0;outline:none;border:none;background:transparent;z-index:100;color:#333;font-size:34rpx}.requirements .requirements_content .requirements_box .requirements_box_message .requirements_box_message_item .lable{color:#333;font-size:34rpx;font-weight:500;height:68rpx}.requirements .requirements_content .requirements_box .requirements_box_message .requirements_box_message_item .placeholder2{color:#ccc;font-size:24rpx;text-align:right}.requirements .requirements_content .requirements_box .requirements_box_message .requirements_box_message_item .placeholder{color:#ccc;font-size:24rpx;text-align:right;position:absolute;width:100%;height:100%;top:0;left:0;background:transparent}.requirements .requirements_content .requirements_box .requirements_box_message .requirements_box_message_item .placeholder .code_block{display:inline-block}.requirements .requirements_content .requirements_box .requirements_box_message .requirements_box_message_item .placeholder .getcode{height:60rpx;font-size:24rpx;font-weight:500;text-align:center;color:#1989fa;border:4rpx solid #1989fa;-webkit-border-radius:10rpx;border-radius:10rpx;padding:10rpx;margin-left:32rpx;line-height:38rpx}.requirements .requirements_content .requirements_box .requirements_box_message_btn{padding:32rpx;background-color:#fff}.requirements .requirements_content .requirements_box .requirements_box_message_btn view{width:100%;height:90rpx;line-height:90rpx;text-align:center;font-size:30rpx;font-weight:700;color:#fff;background-image:-webkit-gradient(linear,left top,left bottom,from(#1a8afa),to(#3caff6));background-image:-webkit-linear-gradient(top,#1a8afa,#3caff6);background-image:linear-gradient(180deg,#1a8afa,#3caff6);-webkit-border-radius:8rpx;border-radius:8rpx}.requirements .requirements_content .requirements_good{margin-top:16rpx;padding:0 32rpx}.requirements .requirements_content .requirements_good .requirements_good_box{background-color:#fff;-webkit-border-radius:5rpx;border-radius:5rpx}.requirements .requirements_content .requirements_good .requirements_good_box .requirements_good_title{height:100rpx;line-height:100rpx;text-align:center;font-size:34rpx;font-weight:600;color:#ffb233}
\ No newline at end of file
.requirements{position:relative;width:100%;height:140vh;background:#f4f5f7}.requirements .requirements_top{position:relative;width:100%;height:400rpx;background:-webkit-gradient(linear,left top,left bottom,from(#1a8afa),to(#3caff6));background:-webkit-linear-gradient(top,#1a8afa,#3caff6);background:linear-gradient(180deg,#1a8afa,#3caff6);-webkit-border-radius:0 0 125rpx 125rpx;border-radius:0 0 125rpx 125rpx}.requirements .requirements_top .requirements_top_nav{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;position:absolute;left:32rpx;top:70rpx;font-size:32rpx;color:#fff;opacity:1}.requirements .requirements_top .requirements_top_nav image{margin-right:16rpx;width:20rpx;height:40rpx}.requirements .requirements_content{position:absolute;left:0;top:150rpx;width:100%}.requirements .requirements_content .requirements_content_img{padding:0 32rpx;width:100%;height:317rpx}.requirements .requirements_content .requirements_box{margin:32rpx auto;width:686rpx;height:auto;opacity:1;overflow:hidden;-webkit-border-radius:12rpx;border-radius:12rpx;-webkit-box-shadow:0rpx 2rpx 4rpx rgba(0,0,0,.16);box-shadow:0rpx 2rpx 4rpx rgba(0,0,0,.16);background-color:#fff}.requirements .requirements_content .requirements_box .requirements_box_message{padding:0 32rpx}.requirements .requirements_content .requirements_box .requirements_box_message .userInput{padding-top:32rpx;font-size:28rpx;color:#333;opacity:1}.requirements .requirements_content .requirements_box .requirements_box_message .requirements_box_message_item{position:relative;width:100%;position:relative;height:90rpx;line-height:90rpx}.requirements .requirements_content .requirements_box .requirements_box_message .requirements_box_message_item input{height:100%;text-align:left;outline:none;border:none;background:transparent;color:#999;font-size:24rpx}.requirements .requirements_content .requirements_box .requirements_box_message .requirements_box_message_item .input_code{position:absolute;right:0;bottom:10rpx;z-index:10;padding:0 20rpx;height:60rpx;text-align:center;line-height:60rpx;color:#2a92fa;font-size:22rpx;border:2rpx solid #2a92fa;-webkit-border-radius:10rpx;border-radius:10rpx}.requirements .requirements_content .requirements_box .requirements_box_message .requirements_box_message_item .lable{color:#333;font-size:34rpx;font-weight:500;height:68rpx}.requirements .requirements_content .requirements_box .requirements_box_message .requirements_box_message_item .placeholder{color:#ccc;font-size:24rpx;text-align:right;position:absolute;width:100%;height:100%;top:0;left:0;background:transparent}.requirements .requirements_content .requirements_box .requirements_box_message .requirements_box_message_item .hexian{width:100%;height:1px;background-color:#c6c9cc;transform:scaleY(.5);-webkit-transform:scaleY(.5);-moz-transform:scaleY(.5);-o-transform:scaleY(.5);-ms-transform:scaleY(.5);position:absolute;bottom:0}.requirements .requirements_content .requirements_box .requirements_box_message_btn{padding:32rpx;background-color:#fff}.requirements .requirements_content .requirements_box .requirements_box_message_btn view{width:100%;height:90rpx;line-height:90rpx;text-align:center;font-size:30rpx;font-weight:700;color:#fff;background-image:-webkit-gradient(linear,left top,left bottom,from(#1a8afa),to(#3caff6));background-image:-webkit-linear-gradient(top,#1a8afa,#3caff6);background-image:linear-gradient(180deg,#1a8afa,#3caff6);-webkit-border-radius:8rpx;border-radius:8rpx}.requirements .requirements_content .requirements_box .requirements_box_message_hint{padding:0 32rpx;padding-bottom:32rpx;color:#666;opacity:1}.requirements .requirements_content .requirements_box .requirements_box_message_hint image{margin-right:10rpx;width:24rpx;height:24rpx}.requirements .requirements_content .requirements_good{margin:32rpx auto;width:686rpx;overflow:hidden;-webkit-border-radius:12rpx;border-radius:12rpx;-webkit-box-shadow:0rpx 2rpx 4rpx rgba(0,0,0,.16);box-shadow:0rpx 2rpx 4rpx rgba(0,0,0,.16)}.requirements .requirements_content .requirements_good .requirements_good_box{background-color:#fff}.requirements .requirements_content .requirements_good .requirements_good_box .requirements_good_title{height:100rpx;line-height:100rpx;text-align:center;font-size:34rpx;font-weight:600;color:#ffb233}.requirements .requirements_content .requirements_good .requirements_good_box .requirements_good_icons{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-justify-content:space-around;justify-content:space-around;height:180rpx}.requirements .requirements_content .requirements_good .requirements_good_box .requirements_good_icons view{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-justify-content:space-around;justify-content:space-around;height:100%;font-size:32rpx;font-weight:700;color:#3caff6;opacity:1}.requirements .requirements_content .requirements_good .requirements_good_box .requirements_good_icons view image{width:100rpx;height:100rpx}.requirements .requirements_content .requirements_good .requirements_good_box .requirements_good_text{padding-bottom:32rpx}.requirements .requirements_content .requirements_good .requirements_good_box .requirements_good_text .requirements_good_text_item{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;align-items:flex-start;margin-bottom:8rpx;color:#333;opacity:1}.requirements .requirements_content .requirements_good .requirements_good_box .requirements_good_text .requirements_good_text_item .biaodian{margin:0 10rpx;margin-top:10rpx;width:24rpx;height:24rpx;background-color:#1a8afa;-webkit-border-radius:24rpx;border-radius:24rpx}
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/switchIdentity/switchIdentity"],{"06a2":function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var u=function(){var t=this,e=t.$createElement;t._self._c},a=[]},9088:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("86df"),u=a(n("9036"));function a(t){return t&&t.__esModule?t:{default:t}}var i={created:function(){this.type=t.getStorageSync("type"),1==this.type?this.userId=t.getStorageSync("user").enterpriseId:this.userId=t.getStorageSync("user").electricId},data:function(){return{type:null,userId:null}},methods:{switchIdentity:function(){var e=this;t.removeStorageSync("user"),t.removeStorageSync("type"),t.showLoading({title:"切换中"}),(0,r.get)(u.default.switchIdentit,{type:this.type,userId:this.userId}).then((function(n){if(n.data.registered){var r=1==e.type?2:1;t.setStorageSync("user",n.data.user),t.setStorageSync("type",r),t.reLaunch({url:"/pages/index/index"}),uin.hideLoading()}}))},linkBack:function(){t.navigateBack({delta:1})}}};e.default=i}).call(this,n("543d")["default"])},a141:function(t,e,n){},b2f0:function(t,e,n){"use strict";n.r(e);var r=n("9088"),u=n.n(r);for(var a in r)"default"!==a&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=u.a},e122:function(t,e,n){"use strict";var r=n("a141"),u=n.n(r);u.a},ec7a:function(t,e,n){"use strict";(function(t){n("78ef");r(n("66fd"));var e=r(n("fe1f"));function r(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},fe1f:function(t,e,n){"use strict";n.r(e);var r=n("06a2"),u=n("b2f0");for(var a in u)"default"!==a&&function(t){n.d(e,t,(function(){return u[t]}))}(a);n("e122");var i,c=n("f0c5"),o=Object(c["a"])(u["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],i);e["default"]=o.exports}},[["ec7a","common/runtime","common/vendor"]]]);
\ No newline at end of file
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/switchIdentity/switchIdentity"],{"8dcc":function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r}));var u=function(){var t=this,e=t.$createElement;t._self._c},a=[]},9088:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n("86df"),u=a(n("9036"));function a(t){return t&&t.__esModule?t:{default:t}}var c={created:function(){this.type=t.getStorageSync("type"),1==this.type?this.userId=t.getStorageSync("user").enterpriseId:this.userId=t.getStorageSync("user").electricId},data:function(){return{type:null,userId:null}},methods:{switchIdentity:function(){var e=this;t.showLoading({title:"切换中"}),(0,r.get)(u.default.switchIdentit,{type:this.type,userId:this.userId}).then((function(n){var r=1==e.type?2:1;t.setStorageSync("type",r),n.data.registered?(t.setStorageSync("user",n.data.user),t.reLaunch({url:"/pages/index/index"})):t.reLaunch({url:"/pages/register/register"}),t.hideLoading()}))},linkBack:function(){t.navigateBack({delta:1})}}};e.default=c}).call(this,n("543d")["default"])},a141:function(t,e,n){},b2f0:function(t,e,n){"use strict";n.r(e);var r=n("9088"),u=n.n(r);for(var a in r)"default"!==a&&function(t){n.d(e,t,(function(){return r[t]}))}(a);e["default"]=u.a},e122:function(t,e,n){"use strict";var r=n("a141"),u=n.n(r);u.a},ec7a:function(t,e,n){"use strict";(function(t){n("78ef");r(n("66fd"));var e=r(n("fe1f"));function r(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},fe1f:function(t,e,n){"use strict";n.r(e);var r=n("8dcc"),u=n("b2f0");for(var a in u)"default"!==a&&function(t){n.d(e,t,(function(){return u[t]}))}(a);n("e122");var c,i=n("f0c5"),s=Object(i["a"])(u["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],c);e["default"]=s.exports}},[["ec7a","common/runtime","common/vendor"]]]);
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论