hookehuyr

新增单个主办方管理页面API联调

...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 * @Author: hookehuyr hookehuyr@gmail.com 2 * @Author: hookehuyr hookehuyr@gmail.com
3 * @Date: 2022-05-27 15:57:59 3 * @Date: 2022-05-27 15:57:59
4 * @LastEditors: hookehuyr hookehuyr@gmail.com 4 * @LastEditors: hookehuyr hookehuyr@gmail.com
5 - * @LastEditTime: 2022-10-09 14:37:45 5 + * @LastEditTime: 2022-10-10 11:01:04
6 * @FilePath: /swx/src/app.config.js 6 * @FilePath: /swx/src/app.config.js
7 * @Description: 7 * @Description:
8 */ 8 */
...@@ -41,6 +41,7 @@ export default { ...@@ -41,6 +41,7 @@ export default {
41 'pages/userManage/index', 41 'pages/userManage/index',
42 'pages/userAdd/index', 42 'pages/userAdd/index',
43 'pages/userSearch/index', 43 'pages/userSearch/index',
44 + 'pages/editProject/index',
44 ], 45 ],
45 subpackages: [ // 配置在tabBar中的页面不能分包写到subpackages中去 46 subpackages: [ // 配置在tabBar中的页面不能分包写到subpackages中去
46 { 47 {
......
1 /* 1 /*
2 * @Date: 2022-10-08 11:04:11 2 * @Date: 2022-10-08 11:04:11
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2022-10-08 14:04:54 4 + * @LastEditTime: 2022-10-10 14:02:17
5 - * @FilePath: /swx/src/pages/myFollowUser/index.config.js 5 + * @FilePath: /swx/src/pages/userManage/index.config.js
6 * @Description: 文件描述 6 * @Description: 文件描述
7 */ 7 */
8 export default { 8 export default {
9 - navigationBarTitleText: '陪伴的用户', 9 + navigationBarTitleText: '主办方管理',
10 usingComponents: { 10 usingComponents: {
11 }, 11 },
12 } 12 }
......
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-09 15:18:22 4 + * @LastEditTime: 2022-10-10 14:33:47
5 * @FilePath: /swx/src/pages/userManage/index.vue 5 * @FilePath: /swx/src/pages/userManage/index.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -12,15 +12,14 @@ ...@@ -12,15 +12,14 @@
12 <van-row> 12 <van-row>
13 <van-col span="18"> 13 <van-col span="18">
14 <view style="position: relative;"> 14 <view style="position: relative;">
15 - <AtAvatar circle size="large" image='https://jdc.jd.com/img/200' 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;">周三读书会(主办方)</text> 17 + <text style="font-size: 1.05rem;">{{ $query.name }}</text>
18 - <van-icon :name="icon_vip" size="1rem" color="" class="vip-icon" />
19 </view> 18 </view>
20 </view> 19 </view>
21 </van-col> 20 </van-col>
22 <van-col span="6"> 21 <van-col span="6">
23 - <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> 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>
24 </van-col> 23 </van-col>
25 </van-row> 24 </van-row>
26 </view> 25 </view>
...@@ -80,8 +79,9 @@ ...@@ -80,8 +79,9 @@
80 </template> 79 </template>
81 80
82 <script setup> 81 <script setup>
83 -import { ref } from "vue"; 82 +import { ref, onMounted } from "vue";
84 import icon_vip from '@/images/icon/vip@2x.png' 83 import icon_vip from '@/images/icon/vip@2x.png'
84 +import icon_p from '@/images/icon/zhubanfang@2x.png'
85 import Taro from '@tarojs/taro' 85 import Taro from '@tarojs/taro'
86 import { AtAvatar } from 'taro-ui-vue3' 86 import { AtAvatar } from 'taro-ui-vue3'
87 import "taro-ui-vue3/dist/style/components/avatar.scss" 87 import "taro-ui-vue3/dist/style/components/avatar.scss"
...@@ -90,6 +90,13 @@ import icon_add from '@/images/icon/chengyuan@2x.png' ...@@ -90,6 +90,13 @@ import icon_add from '@/images/icon/chengyuan@2x.png'
90 import icon_user from '@/images/icon/yonghu@2x.png' 90 import icon_user from '@/images/icon/yonghu@2x.png'
91 import Dialog from '@vant/weapp/dist/dialog/dialog'; 91 import Dialog from '@vant/weapp/dist/dialog/dialog';
92 92
93 +let instance = Taro.getCurrentInstance();
94 +const $query = ref('');
95 +onMounted(() => {
96 + // 获取页面参数
97 + $query.value = instance.router.params;
98 +})
99 +
93 const activityList = ref([{ 100 const activityList = ref([{
94 avatar: 'https://img.yzcdn.cn/vant/cat.jpeg', 101 avatar: 'https://img.yzcdn.cn/vant/cat.jpeg',
95 name: '净妙', 102 name: '净妙',
...@@ -187,6 +194,12 @@ const goToSearchUser = () => { ...@@ -187,6 +194,12 @@ const goToSearchUser = () => {
187 }) 194 })
188 } 195 }
189 196
197 +const editInfo = (id) => {
198 + Taro.navigateTo({
199 + url: '../editProject/index?id=' + id
200 + })
201 +}
202 +
190 const addUser = () => { 203 const addUser = () => {
191 Dialog.confirm({ 204 Dialog.confirm({
192 title: '温馨提示', 205 title: '温馨提示',
......