|
|
@ -5,19 +5,19 @@ |
|
|
|
<view class="content"> |
|
|
|
<view class="search-box"> |
|
|
|
<view class="search-box-r"> |
|
|
|
<uv-search placeholder="搜索感兴趣的活动" v-model="keyword" shape="square" :showAction="false" color="#fff" placeholderColor="#BDABAC" :clearabled="false" searchIconColor="#fff" searchIconSize="50rpx" bgColor="#4A2A2B" height="63rpx"></uv-search> |
|
|
|
<uv-search placeholder="搜索感兴趣的活动" v-model="params.title" shape="square" :showAction="false" color="#fff" placeholderColor="#BDABAC" :clearabled="false" searchIconColor="#fff" searchIconSize="50rpx" bgColor="#4A2A2B" height="63rpx"></uv-search> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="user-box"> |
|
|
|
<uv-avatar src="https://via.placeholder.com/200x200.png/2878ff" size="98rpx" shape="circle"></uv-avatar> |
|
|
|
<view class="user-box" @click="toInfo"> |
|
|
|
<uv-avatar :src="userInfo.headImage" size="98rpx" shape="circle"></uv-avatar> |
|
|
|
<view class="user-msg"> |
|
|
|
<view class="user-msg-top"> |
|
|
|
<view>点击授权登录</view> |
|
|
|
<view class="level-box">普通用户</view> |
|
|
|
<view> {{token ? userInfo.nickName : '请点击登录'}}</view> |
|
|
|
<!-- <view class="level-box">普通用户</view> --> |
|
|
|
</view> |
|
|
|
<view class="id-box"> |
|
|
|
<text>ID:000001</text> |
|
|
|
<text class="copy-text">复制</text> |
|
|
|
<text>{{token ? userInfo.id : ''}}</text> |
|
|
|
<text class="copy-text" @click="copy" v-if="token">复制</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -50,7 +50,7 @@ |
|
|
|
<script> |
|
|
|
import tabber from '@/components/base/tabbar.vue' |
|
|
|
import zhaomuItem from '@/components/zhaomu/zhaomu-item.vue' |
|
|
|
import { mapState } from 'vuex' |
|
|
|
import { mapState,mapGetters } from 'vuex' |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
tabber, |
|
|
@ -58,15 +58,23 @@ |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
params:{ |
|
|
|
title:'', |
|
|
|
pageNo:1, |
|
|
|
pageSize:10 |
|
|
|
}, |
|
|
|
bgColor:'transparent', |
|
|
|
list: [ |
|
|
|
'https://cdn.uviewui.com/uview/swiper/swiper3.png', |
|
|
|
] |
|
|
|
}; |
|
|
|
}, |
|
|
|
computed : { |
|
|
|
computed: { |
|
|
|
...mapState(['token']), |
|
|
|
...mapGetters(["userInfo"]), |
|
|
|
}, |
|
|
|
onLoad({leftClick}) { |
|
|
|
onLoad() { |
|
|
|
this.getList() |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
|
|
|
@ -79,10 +87,39 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
methods:{ |
|
|
|
getList() { |
|
|
|
this.$api('recruitPageList',this.params,res=>{ |
|
|
|
if(res.code == 200) { |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
toRenzheng() { |
|
|
|
uni.navigateTo({ |
|
|
|
url:'/pages_zlx/zlx-form' |
|
|
|
}) |
|
|
|
}, |
|
|
|
toInfo() { |
|
|
|
if(!this.token) { |
|
|
|
uni.navigateTo({ |
|
|
|
url:'/pages_login/wxLogin' |
|
|
|
}) |
|
|
|
}else{ |
|
|
|
uni.navigateTo({ |
|
|
|
url:'/pages_my/user-info' |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
copy() { |
|
|
|
uni.setClipboardData({ |
|
|
|
data:this.userInfo.id, |
|
|
|
success: () => { |
|
|
|
uni.showToast({ |
|
|
|
title:'复制成功', |
|
|
|
icon:'none' |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -101,6 +138,7 @@ |
|
|
|
width: 100%; |
|
|
|
height: 534rpx; |
|
|
|
position: absolute; |
|
|
|
z-index: -1; |
|
|
|
} |
|
|
|
.content { |
|
|
|
padding: 0 30rpx; |
|
|
|