Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
swx_weapp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2022-10-28 13:58:27 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
51fb9e342dc7b00d2dbdfa8ff08f862888c6f169
51fb9e34
1 parent
9ccf9e98
🐞 fix: 主办方管理传参修复
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
22 deletions
src/pages/userManage/index.vue
src/pages/userManage/index.vue
View file @
51fb9e3
<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-10-2
5 13:13
:28
* @LastEditTime: 2022-10-2
8 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
})
}
...
...
Please
register
or
login
to post a comment