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-25 13:38:55 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5cfbbbcf74c3e9e89ecfadb061260005f3378945
5cfbbbcf
1 parent
8f65e5f8
✨ feat: 主办方管理细节调整
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
46 deletions
src/pages/my/index.vue
src/pages/projectManage/index.vue
src/pages/my/index.vue
View file @
5cfbbbc
<!--
* @Date: 2022-09-21 14:51:44
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-10-
08 16:04:59
* @LastEditTime: 2022-10-
24 18:07:28
* @FilePath: /swx/src/pages/my/index.vue
* @Description:
文件描述
* @Description:
我的页面
-->
<template>
<view class="my-page">
...
...
@@ -12,10 +12,10 @@
<van-row>
<van-col span="18">
<view style="position: relative;">
<
AtAvatar circle size="large" image='https://jdc.jd.com/img/200' style="display: inline-block;"></AtAvatar
>
<
van-image :round="true" width="4rem" height="4rem" :src="avatar" /
>
<view style="display: inline-block; position: absolute; top: 30%; left: 30%;">
<text style="font-size: 1.15rem;">
微信昵称
</text>
<
van-icon :name="icon_vip" size="1rem" color="" class="vip-icon" /
>
<text style="font-size: 1.15rem;">
{{ nickname }}
</text>
<
!-- <van-icon :name="icon_vip" size="1rem" color="" class="vip-icon" /> --
>
</view>
</view>
</van-col>
...
...
@@ -68,9 +68,9 @@
<script setup>
import { ref } from "vue";
import icon_vip from '@/images/icon/vip@2x.png'
//
import icon_vip from '@/images/icon/vip@2x.png'
import Taro from '@tarojs/taro'
import { AtAvatar } from 'taro-ui-vue3'
//
import { AtAvatar } from 'taro-ui-vue3'
import "taro-ui-vue3/dist/style/components/avatar.scss"
import icon_join from '@/images/icon/canjia@2x.png'
import icon_create from '@/images/icon/chuangjian@2x.png'
...
...
@@ -79,26 +79,6 @@ import icon_company from '@/images/icon/zhubanfang@2x.png'
import navbar from '@/components/navbar.vue'
import activityCard from '@/components/activity-card.vue'
const activity_list = ref([{
title: '智慧没有烦恼',
address: '上海市杨浦区军工路100号A座05室',
}, {
title: '万人共乘浪漫热气球',
address: '',
}, {
title: '八段锦',
address: '',
}, {
title: '智慧没有烦恼',
address: '上海市杨浦区军工路100号A座05室',
}, {
title: '万人共乘浪漫热气球',
address: '',
}, {
title: '八段锦',
address: '',
}]);
// 参加的活动
const joinActivity = () => {
Taro.navigateTo({
...
...
@@ -127,8 +107,28 @@ const myProject = () => {
<script>
import "./index.less";
import { $ } from '@tarojs/extend'
import mixin from '@/utils/mixin';
import { infoUserAPI } from '@/api/User/index';
export default {
name: "myPage",
mixins: [mixin.init],
data () {
return {
nickname: '',
avatar: '',
activity_list: [],
}
},
async onShow () {
// 获取用户信息和列表
const { code, data } = await infoUserAPI({ is_activity: 1 });
if (code) {
this.activity_list = data.activity_list;
this.nickname = data.user.nickname;
this.avatar = data.user.avatar ? data.user.avatar : 'https://jdc.jd.com/img/200';
}
},
};
</script>
...
...
src/pages/projectManage/index.vue
View file @
5cfbbbc
<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-10-2
4 16:56:16
* @LastEditTime: 2022-10-2
5 13:36:09
* @FilePath: /swx/src/pages/projectManage/index.vue
* @Description: 主办方管理页面
-->
...
...
@@ -47,6 +47,7 @@
</van-col>
</van-row>
</view>
<view style="height: 7rem;"></view>
</view>
</view>
<bottom-button @on-submit="onSubmit">新建主办方</bottom-button>
...
...
@@ -66,7 +67,7 @@ const create_list = ref([]);
const join_list = ref([]);
onMounted(async () => {
const { code, data } = await hostListAPI();
const { code, data } = await hostListAPI(
{ is_join: 1 }
);
if (code) {
create_list.value = data.my_hosts;
join_list.value = data.join_hosts;
...
...
@@ -81,7 +82,7 @@ const onSubmit = () => {
const onManage = (item) => {
Taro.navigateTo({
url: '../userManage/index?id=' + item.id + '&name=' + decodeURIComponent(item.name)
url: '../userManage/index?
host_
id=' + item.id + '&name=' + decodeURIComponent(item.name)
})
}
const onDelete = (item) => {
...
...
@@ -113,7 +114,6 @@ const onDelete = (item) => {
<script>
import "./index.less";
// import request from '../../utils/request';
import mixin from '@/utils/mixin';
export default {
...
...
@@ -121,24 +121,9 @@ export default {
mixins: [mixin.init],
data () {
return {
// create_list: [],
// join_list: [],
}
},
onShow() {
// 保存主办方信息
// request.get('/srv/?a=host_list')
// .then(res => {
// if (res.data.code) {
// this.create_list = res.data.data.my_hosts;
// this.join_list = res.data.data.join_hosts;
// } else {
// console.warn(res.data.msg);
// }
// })
// .catch(err => {
// console.error(err);
// });
},
};
</script>
...
...
Please
register
or
login
to post a comment