hookehuyr

🐞 fix: 主办方管理传参修复

<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-10-25 13:13:28
* @LastEditTime: 2022-10-28 13:57:28
* @FilePath: /swx/src/pages/userManage/index.vue
* @Description: 单个主办方管理页面
-->
......@@ -14,12 +14,12 @@
<view style="position: relative;">
<AtAvatar circle size="large" :image='icon_p' style="display: inline-block;"></AtAvatar>
<view style="display: inline-block; position: absolute; top: 30%; left: 28%;">
<text style="font-size: 1.05rem;">{{ $query.name }}</text>
<text style="font-size: 1.05rem;">{{ name }}</text>
</view>
</view>
</van-col>
<van-col span="6">
<view @tap="editInfo($query.id)" style="background-color: #DABE73; color: white; padding: 0.5rem 0; border-radius: 1rem; text-align: center; font-size: 0.85rem;margin-top: 1rem;">编辑主办方</view>
<view @tap="editInfo" style="background-color: #DABE73; color: white; padding: 0.5rem 0; border-radius: 1rem; text-align: center; font-size: 0.85rem;margin-top: 1rem;">编辑主办方</view>
</van-col>
</van-row>
</view>
......@@ -109,13 +109,13 @@ import icon_user from '@/images/icon/yonghu@2x.png'
import Dialog from '@vant/weapp/dist/dialog/dialog';
import Toast from '@/components/vant-weapp/toast/toast';
let instance = Taro.getCurrentInstance();
const $query = ref('');
onMounted(async () => {
// 获取页面参数
$query.value = instance.router.params;
})
// let instance = Taro.getCurrentInstance();
// const $query = ref('');
// onMounted(async () => {
// // 获取页面参数
// $query.value = instance.router.params;
// })
const name = getCurrentPageParam().name;
const onPhoneClick = (number) => {
Taro.makePhoneCall({
phoneNumber: number
......@@ -128,21 +128,21 @@ const goToUserInfo = () => {
})
}
const goToAddUser = () => {
Taro.navigateTo({
url: '../userAdd/index?host_id=' + getCurrentPageParam().host_id
})
}
// const goToAddUser = () => {
// Taro.navigateTo({
// url: '../userAdd/index?host_id=' + getCurrentPageParam().host_id
// })
// }
const goToSearchUser = () => {
Taro.navigateTo({
url: '../userSearch/index?host_id=' + getCurrentPageParam().host_id
})
}
// const goToSearchUser = () => {
// Taro.navigateTo({
// url: '../userSearch/index?host_id=' + getCurrentPageParam().host_id
// })
// }
const editInfo = (id) => {
const editInfo = () => {
Taro.navigateTo({
url: '../editProject/index?id=' + id
url: '../editProject/index?id=' + getCurrentPageParam().host_id
})
}
......