diff --git a/README.md b/README.md index b3c8702..9d84c55 100644 --- a/README.md +++ b/README.md @@ -14,3 +14,7 @@ unaipp多端im+会议+积分商城 ```https://ext.dcloud.net.cn/plugin?id=3935``` ```https://z-paging.zxlee.cn/start/use.html#%E5%BB%B6%E8%BF%9F%E5%8A%A0%E8%BD%BD%E5%88%97%E8%A1%A8%E7%A4%BA%E4%BE%8B``` + +### TUILiveKit 文档地址 + +```https://trtc.io/zh/document/60034?platform=ios&product=live``` \ No newline at end of file diff --git a/components/cb-file-picker/cb-file-picker.vue b/components/cb-file-picker/cb-file-picker.vue index a052557..f6869e8 100644 --- a/components/cb-file-picker/cb-file-picker.vue +++ b/components/cb-file-picker/cb-file-picker.vue @@ -52,15 +52,28 @@ return styles }) + /** 上传 */ + const uploadFile = async file => { + const url = await uploadSingleFile(file, { + url: '/api/common/admin/upload/up/single' + }) + imageValue.value.push(url) + } + const onSelect = async e => { + e.tempFiles.forEach(v => { + uploadFile(v.path) + }) + + return const upData = e.tempFiles.map(v => v.path)[0] imageValue.value = await uploadSingleFile(upData, { url: '/api/common/admin/upload/up/single' }) } - const onDelete = () => { - imageValue.value = '' + const onDelete = e => { + imageValue.value.splice(e.index, 1) } diff --git a/pages.json b/pages.json index e36a8c2..7387c73 100644 --- a/pages.json +++ b/pages.json @@ -1,269 +1,276 @@ { - "pages": [ - //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages - { - "path": "pages/index/index", - "style": { - "navigationBarTitleText": "首页" - } - }, - { - "path": "pages/login/login", - "style": { - "navigationBarTitleText": "登录", - "navigationStyle": "custom" - } - }, - { - "path": "pages/login/phone-register/phone-register", - "style": { - "navigationBarTitleText": "手机注册", - "navigationStyle": "custom" - } - }, - { - "path": "pages/login/email-register/email-register", - "style": { - "navigationBarTitleText": "邮箱注册", - "navigationStyle": "custom" - } - }, - { - "path": "pages/login/forgot-password/forgot-password", - "style": { - "navigationBarTitleText": "忘记密码", - "navigationStyle": "custom" - } - }, - { - "path": "pages/news-list/news-list", - "style": { - "navigationBarTitleText": "消息" - } - }, - { - "path": "pages/contacts/contacts", - "style": { - "navigationBarTitleText": "通讯录" - } - }, - { - "path": "pages/discover/discover", - "style": { - "navigationBarTitleText": "发现" - } - }, - { - "path": "pages/my-index/my-index", - "style": { - "navigationBarTitleText": "我的", - "backgroundColor": "#f7f7f7" - } - }, - { - "path": "pages/my-index/personal-center/index", - "style": { - "navigationBarTitleText": "个人中心", - "navigationBarBackgroundColor": "#ffffff" - } - }, - { - "path": "pages/my-index/wallet/index", - "style": { - "navigationBarTitleText": "钱包", - "navigationBarBackgroundColor": "#ffffff" - } - }, - { - "path": "pages/my-index/wallet/edit-password", - "style": { - "navigationBarTitleText": "修改钱包密码", - "navigationStyle": "custom" - } - }, - { - "path": "pages/my-index/wallet/bank-card/index", - "style": { - "navigationBarTitleText": "提现卡", - "navigationBarBackgroundColor": "#ffffff" - } - }, - { - "path": "pages/my-index/wallet/real-id", - "style": { - "navigationBarTitleText": "实名认证", - "navigationBarBackgroundColor": "#ffffff" - } - }, - { - "path": "pages/my-index/my-team", - "style": { - "navigationBarTitleText": "我的团队", - "navigationBarBackgroundColor": "#ffffff" - } - }, - { - "path": "pages/my-index/collection/index", - "style": { - "navigationBarTitleText": "收藏", - "navigationBarBackgroundColor": "#ffffff" - } - }, - { - "path": "pages/my-index/meeting-record/index", - "style": { - "navigationBarTitleText": "会议记录", - "navigationBarBackgroundColor": "#ffffff" - } - }, - { - "path": "pages/my-index/meeting-record/details", - "style": { - "navigationBarTitleText": "会议详情", - "navigationBarBackgroundColor": "#ffffff" - } - }, - { - "path": "pages/my-index/customer-service/index", - "style": { - "navigationBarTitleText": "客服" - } - }, - { - "path": "pages/my-index/set-up/index", - "style": { - "navigationBarTitleText": "设置", - "navigationBarBackgroundColor": "#ffffff" - } - }, - { - "path": "pages/my-index/wallet/bank-card/card-details", - "style": { - "navigationBarTitleText": "卡信息增删改查", - "navigationStyle": "custom" - } - }, - { - "path": "pages/mall/list", - "style": { - "navigationBarTitleText": "商城" - } - }, - { - "path": "pages/mall/detail", - "style": { - "navigationBarTitleText": "商品详情", - "navigationStyle": "custom" - } - }, - { - "path": "pages/mall/comment", - "style": { - "navigationBarTitleText": "评价" - } - }, - { - "path": "pages/mall/confirm-order", - "style": { - "navigationBarTitleText": "确认订单" - } - }, - { - "path": "pages/address/index", - "style": { - "navigationBarTitleText": "我的地址", - "navigationStyle": "custom" - } - }, - { - "path": "pages/address/add", - "style": { - "navigationBarTitleText": "添加地址" - } - }, - { - "path": "pages/address/edit", - "style": { - "navigationBarTitleText": "修改地址" - } - }, - { - "path": "pages/shop-together/index", - "style": { - "navigationBarTitleText": "我的拼团" - } - }, - { - "path": "pages/shop-together/detail", - "style": { - "navigationBarTitleText": "拼团记录" - } - }, - { - "path": "pages/discover/ranking-list", - "style": { - "navigationBarTitleText": "排行榜", - "navigationStyle": "custom" - } - }, - { - "path": "pages/discover/punch", - "style": { - "navigationBarTitleText": "签到", - "navigationStyle": "custom" - } - }, - { - "path": "pages/discover/dynamic/dynamic", - "style": { - "navigationBarTitleText": "朋友圈", - "navigationStyle": "custom" - } - }, - { - "path": "pages/discover/company", - "style": { - "navigationBarTitleText": "公司介绍" - } - } - ], - "globalStyle": { - "navigationBarTextStyle": "black", - "navigationBarTitleText": "uni-app", - "navigationBarBackgroundColor": "#F8F8F8", - "backgroundColor": "#F8F8F8" - }, - "uniIdRouter": {}, - "tabBar": { - "color": "#333333", - "selectedColor": "#00D993", - "borderStyle": "black", - "backgroundColor": "#ffffff", - "list": [ - { - "pagePath": "pages/news-list/news-list", - "iconPath": "static/images/tabBar/news.png", - "selectedIconPath": "static/images/tabBar/newsHL.png", - "text": "消息" - }, - { - "pagePath": "pages/contacts/contacts", - "iconPath": "static/images/tabBar/contacts.png", - "selectedIconPath": "static/images/tabBar/contactsHL.png", - "text": "通讯录" - }, - { - "pagePath": "pages/discover/discover", - "iconPath": "static/images/tabBar/discover.png", - "selectedIconPath": "static/images/tabBar/discoverHL.png", - "text": "发现" - }, - { - "pagePath": "pages/my-index/my-index", - "iconPath": "static/images/tabBar/my.png", - "selectedIconPath": "static/images/tabBar/myHL.png", - "text": "我的" - } - ] - } -} \ No newline at end of file + "pages": [ + //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages + { + "path": "pages/index/index", + "style": { + "navigationBarTitleText": "首页" + } + }, + { + "path": "pages/login/login", + "style": { + "navigationBarTitleText": "登录", + "navigationStyle": "custom" + } + }, + { + "path": "pages/login/phone-register/phone-register", + "style": { + "navigationBarTitleText": "手机注册", + "navigationStyle": "custom" + } + }, + { + "path": "pages/login/email-register/email-register", + "style": { + "navigationBarTitleText": "邮箱注册", + "navigationStyle": "custom" + } + }, + { + "path": "pages/login/forgot-password/forgot-password", + "style": { + "navigationBarTitleText": "忘记密码", + "navigationStyle": "custom" + } + }, + { + "path": "pages/news-list/news-list", + "style": { + "navigationBarTitleText": "消息" + } + }, + { + "path": "pages/contacts/contacts", + "style": { + "navigationBarTitleText": "通讯录" + } + }, + { + "path": "pages/discover/discover", + "style": { + "navigationBarTitleText": "发现" + } + }, + { + "path": "pages/my-index/my-index", + "style": { + "navigationBarTitleText": "我的", + "backgroundColor": "#f7f7f7" + } + }, + { + "path": "pages/my-index/personal-center/index", + "style": { + "navigationBarTitleText": "个人中心", + "navigationBarBackgroundColor": "#ffffff" + } + }, + { + "path": "pages/my-index/wallet/index", + "style": { + "navigationBarTitleText": "钱包", + "navigationBarBackgroundColor": "#ffffff" + } + }, + { + "path": "pages/my-index/wallet/edit-password", + "style": { + "navigationBarTitleText": "修改钱包密码", + "navigationStyle": "custom" + } + }, + { + "path": "pages/my-index/wallet/bank-card/index", + "style": { + "navigationBarTitleText": "提现卡", + "navigationBarBackgroundColor": "#ffffff" + } + }, + { + "path": "pages/my-index/wallet/real-id", + "style": { + "navigationBarTitleText": "实名认证", + "navigationBarBackgroundColor": "#ffffff" + } + }, + { + "path": "pages/my-index/my-team", + "style": { + "navigationBarTitleText": "我的团队", + "navigationBarBackgroundColor": "#ffffff" + } + }, + { + "path": "pages/my-index/collection/index", + "style": { + "navigationBarTitleText": "收藏", + "navigationBarBackgroundColor": "#ffffff" + } + }, + { + "path": "pages/my-index/meeting-record/index", + "style": { + "navigationBarTitleText": "会议记录", + "navigationBarBackgroundColor": "#ffffff" + } + }, + { + "path": "pages/my-index/meeting-record/details", + "style": { + "navigationBarTitleText": "会议详情", + "navigationBarBackgroundColor": "#ffffff" + } + }, + { + "path": "pages/my-index/customer-service/index", + "style": { + "navigationBarTitleText": "客服" + } + }, + { + "path": "pages/my-index/set-up/index", + "style": { + "navigationBarTitleText": "设置", + "navigationBarBackgroundColor": "#ffffff" + } + }, + { + "path": "pages/my-index/wallet/bank-card/card-details", + "style": { + "navigationBarTitleText": "卡信息增删改查", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/list", + "style": { + "navigationBarTitleText": "商城" + } + }, + { + "path": "pages/mall/detail", + "style": { + "navigationBarTitleText": "商品详情", + "navigationStyle": "custom" + } + }, + { + "path": "pages/mall/comment", + "style": { + "navigationBarTitleText": "评价" + } + }, + { + "path": "pages/mall/confirm-order", + "style": { + "navigationBarTitleText": "确认订单" + } + }, + { + "path": "pages/address/index", + "style": { + "navigationBarTitleText": "我的地址", + "navigationStyle": "custom" + } + }, + { + "path": "pages/address/add", + "style": { + "navigationBarTitleText": "添加地址" + } + }, + { + "path": "pages/address/edit", + "style": { + "navigationBarTitleText": "修改地址" + } + }, + { + "path": "pages/shop-together/index", + "style": { + "navigationBarTitleText": "我的拼团" + } + }, + { + "path": "pages/shop-together/detail", + "style": { + "navigationBarTitleText": "拼团记录" + } + }, + { + "path": "pages/discover/ranking-list", + "style": { + "navigationBarTitleText": "排行榜", + "navigationStyle": "custom" + } + }, + { + "path": "pages/discover/punch", + "style": { + "navigationBarTitleText": "签到", + "navigationStyle": "custom" + } + }, + { + "path": "pages/discover/dynamic/dynamic", + "style": { + "navigationBarTitleText": "朋友圈", + "navigationStyle": "custom" + } + }, + { + "path": "pages/discover/dynamic/release", + "style": { + "navigationBarTitleText": "发布朋友圈", + "navigationStyle": "custom" + } + }, + { + "path": "pages/discover/company", + "style": { + "navigationBarTitleText": "公司介绍" + } + } + ], + "globalStyle": { + "navigationBarTextStyle": "black", + "navigationBarTitleText": "uni-app", + "navigationBarBackgroundColor": "#F8F8F8", + "backgroundColor": "#F8F8F8" + }, + "uniIdRouter": {}, + "tabBar": { + "color": "#333333", + "selectedColor": "#00D993", + "borderStyle": "black", + "backgroundColor": "#ffffff", + "list": [ + { + "pagePath": "pages/news-list/news-list", + "iconPath": "static/images/tabBar/news.png", + "selectedIconPath": "static/images/tabBar/newsHL.png", + "text": "消息" + }, + { + "pagePath": "pages/contacts/contacts", + "iconPath": "static/images/tabBar/contacts.png", + "selectedIconPath": "static/images/tabBar/contactsHL.png", + "text": "通讯录" + }, + { + "pagePath": "pages/discover/discover", + "iconPath": "static/images/tabBar/discover.png", + "selectedIconPath": "static/images/tabBar/discoverHL.png", + "text": "发现" + }, + { + "pagePath": "pages/my-index/my-index", + "iconPath": "static/images/tabBar/my.png", + "selectedIconPath": "static/images/tabBar/myHL.png", + "text": "我的" + } + ] + } +} diff --git a/pages/discover/dynamic/dynamic.vue b/pages/discover/dynamic/dynamic.vue index 5f74b8d..a956841 100644 --- a/pages/discover/dynamic/dynamic.vue +++ b/pages/discover/dynamic/dynamic.vue @@ -1,6 +1,7 @@ + + + + diff --git a/pages/discover/punch.vue b/pages/discover/punch.vue index f0a3c99..d3a53f7 100644 --- a/pages/discover/punch.vue +++ b/pages/discover/punch.vue @@ -1,6 +1,8 @@