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

xin

...@@ -74,10 +74,6 @@ ...@@ -74,10 +74,6 @@
</view> </view>
</view> </view>
<view class="recommend_item" v-for="(item, index) in recommendedPackageList" :key="index"> <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">
<view class="item_content_top" @click="linktoGroupInfo(item.id)"> <view class="item_content_top" @click="linktoGroupInfo(item.id)">
<view class="img"> <view class="img">
...@@ -483,20 +479,6 @@ ...@@ -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) { linktoGroupInfo(id) {
console.log(id) console.log(id)
......
...@@ -110,6 +110,8 @@ ...@@ -110,6 +110,8 @@
console.log(this.status) console.log(this.status)
this.phone = this.user.phone this.phone = this.user.phone
this.name = this.user.certificationName this.name = this.user.certificationName
this.electricId = uni.getStorageSync('user').electricId
this.getUesrInfo()
}, },
data() { data() {
return { return {
...@@ -121,6 +123,7 @@ ...@@ -121,6 +123,7 @@
code: '', // 验证码 code: '', // 验证码
securityCode: '', // 返回的验证码 securityCode: '', // 返回的验证码
timeId: '', timeId: '',
isAuthenticate: 0 // 认证状态
} }
}, },
methods: { methods: {
...@@ -136,6 +139,19 @@ ...@@ -136,6 +139,19 @@
url: '/pages/authentication/authentication' 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倒计时 // 60s倒计时
countSixty() { countSixty() {
let that = this let that = this
...@@ -177,6 +193,13 @@ ...@@ -177,6 +193,13 @@
}, },
enroll() { enroll() {
let that = this let that = this
if (that.isAuthenticate != 2) {
uni.showToast({
title: '请先完成实名认证',
icon: 'none'
})
return false
}
if (this.status == 1) { if (this.status == 1) {
return false return false
} }
...@@ -420,7 +443,7 @@ ...@@ -420,7 +443,7 @@
box-shadow: 0rpx 2rpx 4rpx rgba(0, 0, 0, 0.16); box-shadow: 0rpx 2rpx 4rpx rgba(0, 0, 0, 0.16);
.requirements_good_box { .requirements_good_box {
padding:0 32rpx; padding: 0 32rpx;
background-color: #fff; background-color: #fff;
.requirements_good_title { .requirements_good_title {
...@@ -473,7 +496,7 @@ ...@@ -473,7 +496,7 @@
width: 20rpx; width: 20rpx;
height: 20rpx; height: 20rpx;
background-color: #1989fa; background-color: #1989fa;
border-radius:50%; border-radius: 50%;
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论