|
@ -14,12 +14,12 @@ |
|
|
</div> |
|
|
</div> |
|
|
<view class="userinfo-item" @click="changeValue('nickname')"> |
|
|
<view class="userinfo-item" @click="changeValue('nickname')"> |
|
|
<span>姓名</span> |
|
|
<span>姓名</span> |
|
|
<view v-if="info.nickname">{{info.nickname}}</view> |
|
|
<view class="text-overflow" v-if="info.nickname">{{info.nickname}}</view> |
|
|
<view v-else class="empty-value" >请填写</view> |
|
|
<view v-else class="empty-value" >请填写</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="userinfo-item" @click="selectSex"> |
|
|
<view class="userinfo-item" @click="selectSex"> |
|
|
<span>性别</span> |
|
|
<span>性别</span> |
|
|
<view v-if="info.genderStr">{{info.genderStr}}</view> |
|
|
<view class="text-overflow" v-if="info.genderStr">{{info.genderStr}}</view> |
|
|
<view v-else class="empty-value" >请选择</view> |
|
|
<view v-else class="empty-value" >请选择</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="userinfo-item" @click="changeValue('mobile')"> |
|
|
<view class="userinfo-item" @click="changeValue('mobile')"> |
|
@ -31,44 +31,44 @@ |
|
|
<view class="info-title" style="margin-top: 46rpx;">·工作相关</view> |
|
|
<view class="info-title" style="margin-top: 46rpx;">·工作相关</view> |
|
|
<view class="userinfo-item" @click="selectRank"> |
|
|
<view class="userinfo-item" @click="selectRank"> |
|
|
<span>导游等级</span> |
|
|
<span>导游等级</span> |
|
|
<view v-if="info.rankStr">{{info.rankStr}}</view> |
|
|
<view v-if="info.group_idStr">{{info.group_idStr}}</view> |
|
|
<view v-else class="empty-value">请选择</view> |
|
|
<view v-else class="empty-value">请选择</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="userinfo-item"> |
|
|
<view class="userinfo-item" @click="changeValue('certificate_number')"> |
|
|
<span>导游证号</span> |
|
|
<span>导游证号</span> |
|
|
<view v-if="info.rankStr">{{info.rankStr}}</view> |
|
|
<view class="text-overflow" v-if="info.certificate_number">{{info.certificate_number}}</view> |
|
|
<view v-else class="empty-value">请填写</view> |
|
|
<view v-else class="empty-value">请填写</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="userinfo-item"> |
|
|
<view class="userinfo-item" @click="changeValue('duration')"> |
|
|
<span>工作年限</span> |
|
|
<span>工作年限</span> |
|
|
<view v-if="info.rankStr">{{info.rankStr}}</view> |
|
|
<view class="text-overflow" v-if="info.duration">{{info.duration}}</view> |
|
|
<view v-else class="empty-value">请填写</view> |
|
|
<view v-else class="empty-value">请填写</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="userinfo-item"> |
|
|
<view class="userinfo-item" @click="changeValue('lingo_ids')"> |
|
|
<span>语言能力</span> |
|
|
<span>语言能力</span> |
|
|
<view v-if="info.rankStr">{{info.rankStr}}</view> |
|
|
<view class="text-overflow" v-if="info.lingo_idsStr">{{info.lingo_idsStr}}</view> |
|
|
<view v-else class="empty-value">请选择</view> |
|
|
<view v-else class="empty-value">请选择</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="userinfo-item"> |
|
|
<view class="userinfo-item" @click="changeValue('scenic_ids')"> |
|
|
<span>擅长景区</span> |
|
|
<span>擅长景区</span> |
|
|
<view v-if="info.rankStr">{{info.rankStr}}</view> |
|
|
<view class="text-overflow" v-if="info.scenic_idsStr">{{info.scenic_idsStr}}</view> |
|
|
<view v-else class="empty-value">请选择</view> |
|
|
<view v-else class="empty-value">请选择</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="userinfo-item"> |
|
|
<view class="userinfo-item" @click="changeValue('bio')"> |
|
|
<span>个性签名</span> |
|
|
<span>个性签名</span> |
|
|
<view v-if="info.rankStr">{{info.rankStr}}</view> |
|
|
<view class="text-overflowRows" v-if="info.bio">{{info.bio}}</view> |
|
|
<view v-else class="empty-value">请填写</view> |
|
|
<view v-else class="empty-value">请填写</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="userinfo-item"> |
|
|
<view class="userinfo-item"> |
|
|
<span>核心亮点</span> |
|
|
<span>核心亮点</span> |
|
|
<view v-if="info.rankStr">{{info.rankStr}}</view> |
|
|
<view class="text-overflow" v-if="info.bio">{{info.bio}}</view> |
|
|
<view v-else class="empty-value">请填写</view> |
|
|
<view v-else class="empty-value">请填写</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="info-title" style="margin-top: 46rpx;">·讲解视频</view> |
|
|
<view class="info-title" style="margin-top: 46rpx;">·讲解视频</view> |
|
|
<view class="userinfo-item" @click="selectRank"> |
|
|
<view class="userinfo-item" @click="selectRank"> |
|
|
<span>讲解视频</span> |
|
|
<span>讲解视频</span> |
|
|
<view v-if="info.rankStr">{{info.rankStr}}</view> |
|
|
<view class="text-overflow" v-if="info.rankStr">{{info.rankStr}}</view> |
|
|
<view v-else class="empty-value">请选择</view> |
|
|
<view v-else class="empty-value">请选择</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
@ -85,17 +85,21 @@ |
|
|
|
|
|
|
|
|
return { |
|
|
return { |
|
|
info: { |
|
|
info: { |
|
|
nickname: '', |
|
|
nickname: '',mobile:'',avatar: '', |
|
|
avatar: '',gender: null, genderStr: '',mobile:'',rank: null,rankStr: '', |
|
|
gender: null, genderStr: '', |
|
|
guideNo: '', workYear: '', languague: null, languagueStr:'', |
|
|
group_id: null,group_idStr: '', |
|
|
scenicSpot: null, scenicSpotStr: '', sign: '', highlights: '' |
|
|
certificate_number: '',duration:'', |
|
|
|
|
|
lingo_ids: null, lingo_idsStr:'', |
|
|
|
|
|
scenic_ids: null, scenic_idsStr:'', |
|
|
|
|
|
bio:'' |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
groupIds: [], // 导游等级 |
|
|
|
|
|
lingoIds: [],// 语言列表 |
|
|
|
|
|
scenicIds: [], // 景区列表 |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
|
uni.request({url:'/api/api/Merchants/get_graphic'}) |
|
|
|
|
|
// this.Post({}, '/api/Merchants/get_graphic').then(res => {}) |
|
|
|
|
|
uni.$on("updateInfo",this.updateInfo) |
|
|
uni.$on("updateInfo",this.updateInfo) |
|
|
}, |
|
|
}, |
|
|
beforeUnmount () { |
|
|
beforeUnmount () { |
|
@ -106,9 +110,30 @@ |
|
|
console.log('触发off') |
|
|
console.log('触发off') |
|
|
uni.$off("updateInfo",this.updateInfo) |
|
|
uni.$off("updateInfo",this.updateInfo) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
onLoad () { |
|
|
|
|
|
this.Post({}, '/api/Merchants/get_graphic').then(res => {}) |
|
|
|
|
|
|
|
|
|
|
|
this.initSelect() |
|
|
|
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
initSelect () { |
|
|
|
|
|
// 获取导游等级 |
|
|
|
|
|
this.Post({}, '/api/guide/getGuideGroupList').then(res => { |
|
|
|
|
|
this.groupIds = res.data |
|
|
|
|
|
}) |
|
|
|
|
|
// 获取导游语言列表 |
|
|
|
|
|
this.Post({},'/api/guide/getGuideLingoList').then(res =>{ |
|
|
|
|
|
this.lingoIds = res.data |
|
|
|
|
|
this.$store.commit('changeLingoIds', res.data) |
|
|
|
|
|
}) |
|
|
|
|
|
// 获取景区列表 |
|
|
|
|
|
this.Post({},'/api/guide/getGuideScenicList').then(res =>{ |
|
|
|
|
|
this.scenicIds = res |
|
|
|
|
|
this.$store.commit('changeScenicIds', res.data) |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
// 上传头像 |
|
|
// 上传头像 |
|
|
uploadAvator () { |
|
|
uploadAvator () { |
|
|
let _this = this |
|
|
let _this = this |
|
@ -141,14 +166,14 @@ |
|
|
}, |
|
|
}, |
|
|
selectRank () { |
|
|
selectRank () { |
|
|
let _this = this |
|
|
let _this = this |
|
|
let itemList = ['初级导游','中级导游','高级导游','大师级导游'] |
|
|
let itemList = this.lingoIds.map(v=>v.name) |
|
|
let valueList = ['1','2','3','4'] |
|
|
let valueList = this.lingoIds.map(v=>v.id) |
|
|
uni.showActionSheet({ |
|
|
uni.showActionSheet({ |
|
|
itemList: itemList, |
|
|
itemList: itemList, |
|
|
success: function (res) { |
|
|
success: function (res) { |
|
|
let index = res.tapIndex; |
|
|
let index = res.tapIndex; |
|
|
_this.info.rankStr = itemList[index] |
|
|
_this.info.group_idStr = itemList[index] |
|
|
_this.info.rank = valueList[index] |
|
|
_this.info.group_id = valueList[index] |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
fail: function (res) { |
|
|
fail: function (res) { |
|
@ -380,6 +405,7 @@ |
|
|
font-size: 31rpx; |
|
|
font-size: 31rpx; |
|
|
flex-shrink: 0; |
|
|
flex-shrink: 0; |
|
|
color: #000; |
|
|
color: #000; |
|
|
|
|
|
width: 200rpx; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.userinfo-item i { |
|
|
.userinfo-item i { |
|
|