Browse Source

refactor(market): 修改线索页面跳转逻辑

- 在 add_clues.vue 和 index.vue 中,将 openViewMyMessage 方法中的 user_id 更改为 hair_staff_id
- 更新跳转页面 URL,从 my_message 改为 im_chat_info
master
liutong 12 months ago
parent
commit
360c056fe7
  1. 2
      pages/market/clue/add_clues.vue
  2. 2
      pages/market/clue/index.vue
  3. 8
      pages/market/my/info.vue

2
pages/market/clue/add_clues.vue

@ -774,7 +774,7 @@ export default {
openViewMyMessage(item) { openViewMyMessage(item) {
let hair_staff_id = item.hair_staff_id let hair_staff_id = item.hair_staff_id
uni.navigateTo({ uni.navigateTo({
url: `pages/common/im_chat_info?hair_staff_id=${hair_staff_id}` url: `/pages/common/im_chat_info?hair_staff_id=${hair_staff_id}`
}) })
}, },

2
pages/market/clue/index.vue

@ -314,7 +314,7 @@ export default {
openViewMyMessage(item) { openViewMyMessage(item) {
let hair_staff_id = item.hair_staff_id let hair_staff_id = item.hair_staff_id
uni.navigateTo({ uni.navigateTo({
url: `pages/common/im_chat_info?hair_staff_id=${hair_staff_id}` url: `/pages/common/im_chat_info?hair_staff_id=${hair_staff_id}`
}) })
}, },

8
pages/market/my/info.vue

@ -184,9 +184,17 @@ export default {
async init(){ async init(){
// this.getBirthday() // this.getBirthday()
this.setDateYear()
await this.getUserInfo() await this.getUserInfo()
}, },
//
setDateYear() {
let currentYear = new Date().getFullYear();
this.minDate = String(currentYear - 100);
this.maxDate = String(currentYear + 1);
},
// //
async getUserInfo(){ async getUserInfo(){
let res = await marketApi.member({}) let res = await marketApi.member({})

Loading…
Cancel
Save