|
@@ -149,8 +149,8 @@ import 'moment/dist/locale/zh-cn'
|
|
|
moment.locale('zh-cn')
|
|
|
|
|
|
import {apiReportDetail,apiRddpShareImg,apiReportPPtImgs} from '@/api/hzyb/report'
|
|
|
-import {apiApplyPermission} from '@/api/hzyb/user'
|
|
|
-import {Popup,Image as VanImage,PullRefresh} from 'vant'
|
|
|
+import {apiApplyPermission,apiUserInfo} from '@/api/hzyb/user'
|
|
|
+import {Popup,Image as VanImage,PullRefresh,Dialog} from 'vant'
|
|
|
import AudioBox from './components/AudioBox.vue'
|
|
|
import SharePoster from '../components/SharePoster.vue'
|
|
|
import _ from 'lodash';
|
|
@@ -160,6 +160,7 @@ export default {
|
|
|
[Popup.name]:Popup,
|
|
|
[VanImage.name]:VanImage,
|
|
|
[PullRefresh.name]:PullRefresh,
|
|
|
+ [Dialog.name]:Dialog,
|
|
|
AudioBox,
|
|
|
SharePoster,
|
|
|
LeaveMessage
|
|
@@ -202,6 +203,8 @@ export default {
|
|
|
fromPage: '', // message定位到留言板
|
|
|
|
|
|
hasPPt:false,//是否有ppt
|
|
|
+
|
|
|
+ userInfo:null,
|
|
|
}
|
|
|
},
|
|
|
beforeCreate(){
|
|
@@ -214,6 +217,7 @@ export default {
|
|
|
this.reportId=this.$route.query.reportId
|
|
|
this.fromPage = this.$route.query.fromPage || ''
|
|
|
this.getDetail()
|
|
|
+ this.getUserInfo()
|
|
|
},
|
|
|
mounted(){
|
|
|
$(document).on('click', '.rich-content img',function(event) {
|
|
@@ -234,6 +238,13 @@ export default {
|
|
|
window.removeEventListener('scroll',this.loadMoreHandle)
|
|
|
},
|
|
|
methods: {
|
|
|
+ async getUserInfo(){
|
|
|
+ const res=await apiUserInfo()
|
|
|
+ if(res.code===200){
|
|
|
+ this.userInfo=res.data
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
// 页面滚动
|
|
|
// handelPageScroll(){
|
|
|
// const top=document.documentElement.scrollTop||document.body.scrollTop
|
|
@@ -466,6 +477,18 @@ export default {
|
|
|
|
|
|
//点击申请
|
|
|
async handleGoApply(){
|
|
|
+ if(this.userInfo.is_bind===0){
|
|
|
+ Dialog.confirm({
|
|
|
+ title:'温馨提示',
|
|
|
+ message:'为了优化您的用户体验,\n 请登录后查看更多信息!',
|
|
|
+ confirmButtonText:'去登录',
|
|
|
+ confirmButtonColor:'#E6B77D',
|
|
|
+ cancelButtonColor:'#666'
|
|
|
+ }).then(res=>{
|
|
|
+ wx.miniProgram.reLaunch({url:'/pages/login'})
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
if(this.info.permission_check.type=='apply'){
|
|
|
if(this.info.permission_check.customer_info.has_apply){// 已经申请过
|
|
|
this.pupData.show=true
|