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

xin

......@@ -74,10 +74,6 @@
</view>
</view>
<view class="recommend_item" v-for="(item, index) in recommendedPackageList" :key="index">
<view class="item_title" @click="linktoCompanyInfo(item.userId)">
<text>{{item.ename}}</text>
<image src="../../static/images/right.png" mode="scaleToFill"></image>
</view>
<view class="item_content">
<view class="item_content_top" @click="linktoGroupInfo(item.id)">
<view class="img">
......@@ -483,20 +479,6 @@
})
}
},
//跳往售电公司详情
linktoCompanyInfo(id) {
console.log(id)
let user = uni.getStorageSync('user')
if (!user) {
uni.navigateTo({
url: '../login/login'
})
} else {
uni.navigateTo({
url: '/pagesA/electriCompany/electriCompanyDetail?userId=' + id
})
}
},
// 跳往拼团套餐详情
linktoGroupInfo(id) {
console.log(id)
......
......@@ -110,6 +110,8 @@
console.log(this.status)
this.phone = this.user.phone
this.name = this.user.certificationName
this.electricId = uni.getStorageSync('user').electricId
this.getUesrInfo()
},
data() {
return {
......@@ -121,6 +123,7 @@
code: '', // 验证码
securityCode: '', // 返回的验证码
timeId: '',
isAuthenticate: 0 // 认证状态
}
},
methods: {
......@@ -136,6 +139,19 @@
url: '/pages/authentication/authentication'
})
},
// 获取电客信息
getUesrInfo() {
get(api.getUserInformation, {
type: 2,
userId: this.electricId
}).then(res => {
// console.log(res)
if (res.code == 200) {
this.isAuthenticate = res.data.isAuthenticate
//isAuthenticate 认证状态(0:未认证;1:认证失败;2:已认证;3:待审核)
}
})
},
// 60s倒计时
countSixty() {
let that = this
......@@ -177,6 +193,13 @@
},
enroll() {
let that = this
if (that.isAuthenticate != 2) {
uni.showToast({
title: '请先完成实名认证',
icon: 'none'
})
return false
}
if (this.status == 1) {
return false
}
......@@ -420,7 +443,7 @@
box-shadow: 0rpx 2rpx 4rpx rgba(0, 0, 0, 0.16);
.requirements_good_box {
padding:0 32rpx;
padding: 0 32rpx;
background-color: #fff;
.requirements_good_title {
......@@ -473,7 +496,7 @@
width: 20rpx;
height: 20rpx;
background-color: #1989fa;
border-radius:50%;
border-radius: 50%;
}
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论