Showing
1 changed file
with
22 additions
and
22 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-09-19 14:11:06 | 2 | * @Date: 2022-09-19 14:11:06 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2022-10-25 13:13:28 | 4 | + * @LastEditTime: 2022-10-28 13:57:28 |
| 5 | * @FilePath: /swx/src/pages/userManage/index.vue | 5 | * @FilePath: /swx/src/pages/userManage/index.vue |
| 6 | * @Description: 单个主办方管理页面 | 6 | * @Description: 单个主办方管理页面 |
| 7 | --> | 7 | --> |
| ... | @@ -14,12 +14,12 @@ | ... | @@ -14,12 +14,12 @@ |
| 14 | <view style="position: relative;"> | 14 | <view style="position: relative;"> |
| 15 | <AtAvatar circle size="large" :image='icon_p' style="display: inline-block;"></AtAvatar> | 15 | <AtAvatar circle size="large" :image='icon_p' style="display: inline-block;"></AtAvatar> |
| 16 | <view style="display: inline-block; position: absolute; top: 30%; left: 28%;"> | 16 | <view style="display: inline-block; position: absolute; top: 30%; left: 28%;"> |
| 17 | - <text style="font-size: 1.05rem;">{{ $query.name }}</text> | 17 | + <text style="font-size: 1.05rem;">{{ name }}</text> |
| 18 | </view> | 18 | </view> |
| 19 | </view> | 19 | </view> |
| 20 | </van-col> | 20 | </van-col> |
| 21 | <van-col span="6"> | 21 | <van-col span="6"> |
| 22 | - <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> | 22 | + <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> |
| 23 | </van-col> | 23 | </van-col> |
| 24 | </van-row> | 24 | </van-row> |
| 25 | </view> | 25 | </view> |
| ... | @@ -109,13 +109,13 @@ import icon_user from '@/images/icon/yonghu@2x.png' | ... | @@ -109,13 +109,13 @@ import icon_user from '@/images/icon/yonghu@2x.png' |
| 109 | import Dialog from '@vant/weapp/dist/dialog/dialog'; | 109 | import Dialog from '@vant/weapp/dist/dialog/dialog'; |
| 110 | import Toast from '@/components/vant-weapp/toast/toast'; | 110 | import Toast from '@/components/vant-weapp/toast/toast'; |
| 111 | 111 | ||
| 112 | -let instance = Taro.getCurrentInstance(); | 112 | +// let instance = Taro.getCurrentInstance(); |
| 113 | -const $query = ref(''); | 113 | +// const $query = ref(''); |
| 114 | -onMounted(async () => { | 114 | +// onMounted(async () => { |
| 115 | - // 获取页面参数 | 115 | +// // 获取页面参数 |
| 116 | - $query.value = instance.router.params; | 116 | +// $query.value = instance.router.params; |
| 117 | -}) | 117 | +// }) |
| 118 | - | 118 | +const name = getCurrentPageParam().name; |
| 119 | const onPhoneClick = (number) => { | 119 | const onPhoneClick = (number) => { |
| 120 | Taro.makePhoneCall({ | 120 | Taro.makePhoneCall({ |
| 121 | phoneNumber: number | 121 | phoneNumber: number |
| ... | @@ -128,21 +128,21 @@ const goToUserInfo = () => { | ... | @@ -128,21 +128,21 @@ const goToUserInfo = () => { |
| 128 | }) | 128 | }) |
| 129 | } | 129 | } |
| 130 | 130 | ||
| 131 | -const goToAddUser = () => { | 131 | +// const goToAddUser = () => { |
| 132 | - Taro.navigateTo({ | 132 | +// Taro.navigateTo({ |
| 133 | - url: '../userAdd/index?host_id=' + getCurrentPageParam().host_id | 133 | +// url: '../userAdd/index?host_id=' + getCurrentPageParam().host_id |
| 134 | - }) | 134 | +// }) |
| 135 | -} | 135 | +// } |
| 136 | 136 | ||
| 137 | -const goToSearchUser = () => { | 137 | +// const goToSearchUser = () => { |
| 138 | - Taro.navigateTo({ | 138 | +// Taro.navigateTo({ |
| 139 | - url: '../userSearch/index?host_id=' + getCurrentPageParam().host_id | 139 | +// url: '../userSearch/index?host_id=' + getCurrentPageParam().host_id |
| 140 | - }) | 140 | +// }) |
| 141 | -} | 141 | +// } |
| 142 | 142 | ||
| 143 | -const editInfo = (id) => { | 143 | +const editInfo = () => { |
| 144 | Taro.navigateTo({ | 144 | Taro.navigateTo({ |
| 145 | - url: '../editProject/index?id=' + id | 145 | + url: '../editProject/index?id=' + getCurrentPageParam().host_id |
| 146 | }) | 146 | }) |
| 147 | } | 147 | } |
| 148 | 148 | ... | ... |
-
Please register or login to post a comment