diff --git a/components/sl-filter/filter-view.vue b/components/sl-filter/filter-view.vue deleted file mode 100644 index 0ca41f1..0000000 --- a/components/sl-filter/filter-view.vue +++ /dev/null @@ -1,475 +0,0 @@ - - - - - diff --git a/components/sl-filter/iconfont/iconfont.css b/components/sl-filter/iconfont/iconfont.css deleted file mode 100644 index a1b4344..0000000 --- a/components/sl-filter/iconfont/iconfont.css +++ /dev/null @@ -1,20 +0,0 @@ -@font-face { - font-family: 'sl-font'; - src: url('data:font/truetype;charset=utf-8;base64,AAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzI8kEgOAAABfAAAAFZjbWFwZO3RAgAAAeAAAAGGZ2x5Zh0ZI/EAAANwAAAAyGhlYWQVZkUXAAAA4AAAADZoaGVhB94DhAAAALwAAAAkaG10eAwAAAAAAAHUAAAADGxvY2EAMgBkAAADaAAAAAhtYXhwAREAKAAAARgAAAAgbmFtZT5U/n0AAAQ4AAACbXBvc3TohGjqAAAGqAAAADMAAQAAA4D/gABcBAAAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAMAAQAAAAEAANxW6kVfDzz1AAsEAAAAAADZJADbAAAAANkkANsAAAAABAACZAAAAAgAAgAAAAAAAAABAAAAAwAcAAQAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKAB4ALAABREZMVAAIAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAAAAQQAAZAABQAIAokCzAAAAI8CiQLMAAAB6wAyAQgAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABA5hrmHAOA/4AAXAOAAIAAAAABAAAAAAAABAAAAAQAAAAEAAAAAAAABQAAAAMAAAAsAAAABAAAAV4AAQAAAAAAWAADAAEAAAAsAAMACgAAAV4ABAAsAAAABgAEAAEAAuYa5hz//wAA5hrmHP//AAAAAAABAAYABgAAAAEAAgAAAQYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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nMnR0ZiBmcm9tIEZvbnRlbGxvIHByb2plY3QuaHR0cDovL2ZvbnRlbGxvLmNvbQAKAEMAcgBlAGEAdABlAGQAIABiAHkAIABpAGMAbwBuAGYAbwBuAHQACgBpAGMAbwBuAGYAbwBuAHQAUgBlAGcAdQBsAGEAcgBpAGMAbwBuAGYAbwBuAHQAaQBjAG8AbgBmAG8AbgB0AFYAZQByAHMAaQBvAG4AIAAxAC4AMABpAGMAbwBuAGYAbwBuAHQARwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABzAHYAZwAyAHQAdABmACAAZgByAG8AbQAgAEYAbwBuAHQAZQBsAGwAbwAgAHAAcgBvAGoAZQBjAHQALgBoAHQAdABwADoALwAvAGYAbwBuAHQAZQBsAGwAbwAuAGMAbwBtAAAAAAIAAAAAAAAACgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwECAQMBBAAEZG93bgJ1cAAAAA==') format('truetype'); -} - -.sl-font { - font-family: "sl-font" !important; - font-size: 16px; - font-style: normal; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.sl-down:before { - content: "\e61a"; -} - -.sl-up:before { - content: "\e61c"; -} diff --git a/components/sl-filter/popup-layer.vue b/components/sl-filter/popup-layer.vue deleted file mode 100644 index 63c5f1b..0000000 --- a/components/sl-filter/popup-layer.vue +++ /dev/null @@ -1,122 +0,0 @@ - - - - - diff --git a/components/sl-filter/sl-filter.vue b/components/sl-filter/sl-filter.vue deleted file mode 100644 index f44ac47..0000000 --- a/components/sl-filter/sl-filter.vue +++ /dev/null @@ -1,301 +0,0 @@ - - - - - diff --git a/libs/util.js b/libs/util.js index 516bcca..b6f73c3 100644 --- a/libs/util.js +++ b/libs/util.js @@ -1,3 +1,10 @@ +const files = [ + 'https://huoran.oss-cn-shenzhen.aliyuncs.com/20220530/docx/1531155187057057792.docx', + 'https://huoran.oss-cn-shenzhen.aliyuncs.com/20220530/docx/1531156166884220928.docx', + 'https://huoran.oss-cn-shenzhen.aliyuncs.com/20220601/docx/1531930503312596992.docx', // 人工智能 + 'https://huoran.oss-cn-shenzhen.aliyuncs.com/20220601/docx/1531930756791164928.docx', // 大数据 + 'https://huoran.oss-cn-shenzhen.aliyuncs.com/20220601/docx/1531929864150999040.docx', // 金融科技 +] export default { // 路由跳转 to(url) { @@ -55,5 +62,39 @@ export default { // 获取商务经理名称 getBmName(val) { return uni.getStorageSync('team').partnerClassificationName + }, + // 预览文档 + openFile(id) { + uni.showLoading({ + title: '加载中', + mask: true + }) + // 下载文件资源到本地 + uni.downloadFile({ + url: files[id], + success: function(res) { + console.log('downloadFile ==> ',res) + uni.hideLoading(); + uni.showLoading({ + title: '正在打开', + mask: true + }) + // 新开页面打开文档,支持格式:doc, xls, ppt, pdf, docx, xlsx, pptx。 + uni.openDocument({ + filePath: res.tempFilePath, + fileType: 'docx', // 文件类型,指定文件类型打开文件,有效值 doc, xls, ppt, pdf, docx, xlsx, pptx + showMenu: true, // 允许出现分享功能 + success: res => { + uni.hideLoading() + }, + fail: openError => { + uni.hideLoading() + } + }) + }, + fail: function(err) { + uni.hideLoading() + } + }) } } \ No newline at end of file diff --git a/pages.json b/pages.json index 09e1e20..a1fe601 100644 --- a/pages.json +++ b/pages.json @@ -8,14 +8,6 @@ "enablePullDownRefresh": false } }, - { - "path" : "pages/invite/invite", - "style" : - { - "navigationBarTitleText": "加入团队", - "enablePullDownRefresh": false - } - }, { "path" : "pages/index/index", "style" : @@ -144,14 +136,6 @@ "enablePullDownRefresh": false } }, - { - "path" : "pages/detail/detail", - "style" : - { - "navigationBarTitleText": "详情", - "enablePullDownRefresh": false - } - }, { "path" : "pages/editCourse/editCourse", "style" : @@ -189,7 +173,7 @@ "current": 0, //当前激活的模式(list 的索引项) "list": [{ "name": "test", //模式名称 - "path": "pages/clients/clients" //启动页面,必选 + "path": "pages/login/login" //启动页面,必选 }] }, "globalStyle": { diff --git a/pages/clients/clients.vue b/pages/clients/clients.vue index 8550f1a..e526fca 100644 --- a/pages/clients/clients.vue +++ b/pages/clients/clients.vue @@ -48,7 +48,6 @@ - - diff --git a/pages/index/index.vue b/pages/index/index.vue index f47bbb1..61b29db 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -117,20 +117,19 @@ } }, onShow() { - this.getAuth() + this.getInfo() }, methods: { // 初始化权限 initRole() { if (!uni.getStorageSync('auth').includes('首页')) { this.per = false - } else { - this.getInfo() } }, // 查询当前角色权限 getAuth() { uni.getStorageSync('token') && getUserRolesPermissionMenu({ + teamId: this.teamId, platformId: 4 }).then(({ permissionMenu }) => { const auth = [] @@ -162,6 +161,7 @@ uni.setStorageSync('team', data[0]) } this.list = data + this.getAuth() }).catch(e => {}) }, // 团队选择回调 @@ -169,6 +169,7 @@ const { teamId } = this const e = this.list.find(e => e.teamId == teamId) uni.setStorageSync('team', e) + this.getAuth() }, // 提示暂未开放 toPanel(i) { diff --git a/pages/invite/invite.vue b/pages/invite/invite.vue deleted file mode 100644 index 11e3904..0000000 --- a/pages/invite/invite.vue +++ /dev/null @@ -1,170 +0,0 @@ - - - - - diff --git a/pages/login/login.vue b/pages/login/login.vue index be96c60..35e4cf6 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -108,6 +108,7 @@ this.$util.errMsg('请先阅读勾选协议!') } }, + // 绑定手机号 onGetPhoneNumber(e){ if (this.submiting) return false const { encryptedData, iv } = e.detail @@ -135,7 +136,7 @@ }) }, toAgreement(id) { - this.$util.to('../detail/detail?id=' + id) + this.$util.openFile(id) }, // 跳转到首页 toIndex() { diff --git a/pages/ordered/ordered.vue b/pages/ordered/ordered.vue index cb273f8..2e39cc4 100644 --- a/pages/ordered/ordered.vue +++ b/pages/ordered/ordered.vue @@ -38,7 +38,6 @@