From 4deb31794c7a7277117a8854a4c00ed31c398efd Mon Sep 17 00:00:00 2001 From: Vinjor Date: Fri, 25 Apr 2025 14:33:03 +0800 Subject: [PATCH] 1 --- api/system/config.js | 39 ++-- config.js | 4 +- pages/components/my-notice-item-tg.vue | 12 +- pages/components/my-notice-item.vue | 4 +- pages/components/notice-index.vue | 183 +++++++++++++++--- pages/components/notice-item.vue | 27 ++- pages/mine/member/member-index.vue | 4 +- pages/mine/mine-index.vue | 75 ++++++- pages/mine/set/black-list.vue | 4 +- pages/notice/detail.vue | 8 +- static/index/bg.png | Bin 0 -> 26487 bytes static/index/gift.png | Bin 0 -> 2481 bytes static/platform/bzhan.png | Bin 3063 -> 2275 bytes static/platform/douyin.png | Bin 2784 -> 2092 bytes static/platform/guangguang.png | Bin 3731 -> 3679 bytes static/platform/kuaishou.png | Bin 2814 -> 2210 bytes static/platform/quanbu.png | Bin 1709 -> 1108 bytes static/platform/shipinhao.png | Bin 2837 -> 2244 bytes static/platform/weibo.png | Bin 3252 -> 2603 bytes static/platform/xiaohongshu.png | Bin 2658 -> 1969 bytes .../uni-search-bar/uni-search-bar.vue | 9 +- utils/constant.js | 2 + 22 files changed, 290 insertions(+), 81 deletions(-) create mode 100644 static/index/bg.png create mode 100644 static/index/gift.png diff --git a/api/system/config.js b/api/system/config.js index fb5c06c..cb4553d 100644 --- a/api/system/config.js +++ b/api/system/config.js @@ -3,26 +3,35 @@ import request from '@/utils/request' // 查询站点配置 export function getSiteConfig(params) { - return request({ - url: '/base/config/getConfigByCode', - method: 'get', - params:params - }) + return request({ + url: '/base/config/getConfigByCode', + method: 'get', + params: params + }) } // 根据code查分类值列表 export function getCatgByCode(params) { - return request({ - url: '/base/category/listByCode', - method: 'get', - params:params - }) + return request({ + url: '/base/category/listByCode', + method: 'get', + params: params + }) } // 根据code查分类值列表 export function uniListByParentCode(params) { - return request({ - url: '/base/category/uniListByParentCode', - method: 'get', - params:params - }) + return request({ + url: '/base/category/uniListByParentCode', + method: 'get', + params: params + }) } + +// 根据code查分类值列表 +export function getByCodeInfo(params) { + return request({ + url: '/base/category/getByCodeInfo', + method: 'get', + params: params + }) +} \ No newline at end of file diff --git a/config.js b/config.js index 1727f9b..7f026d3 100644 --- a/config.js +++ b/config.js @@ -1,8 +1,8 @@ // 应用全局配置 module.exports = { - //baseUrl: 'https://notice.lighting-it.cn', // baseUrl: 'https://www.ddtg.site/noticeApi', - baseUrl: 'http://192.168.1.4:8099', + // baseUrl: 'https://www.ddtg.site/noticeApi', + baseUrl: 'http://192.168.1.17:8099', // 应用信息 appInfo: { // 应用名称 diff --git a/pages/components/my-notice-item-tg.vue b/pages/components/my-notice-item-tg.vue index aded025..c0e2d20 100644 --- a/pages/components/my-notice-item-tg.vue +++ b/pages/components/my-notice-item-tg.vue @@ -16,7 +16,7 @@ 重启 查看详情 发类似 - 评价(demo) + 评价(demo) @@ -46,9 +46,9 @@ publish(item) { this.$tab.navigateTo('/pages/notice/public-notice?sameId=' + item.id) }, - evaluate(){ - this.$tab.navigateTo('/pages/mine/set/evaluate') - }, + evaluate() { + this.$tab.navigateTo('/pages/mine/set/evaluate') + }, updateStatus(status, id) { let data = { publishTakeDown: status, @@ -85,7 +85,7 @@ .my-notice-item-box-tg { width: 100%; border-radius: 20rpx; - padding: 30rpx 20rpx; + padding: 10rpx 20rpx 20rpx 20rpx; background-color: white; display: flex; flex-direction: column; @@ -154,4 +154,4 @@ } } } - + \ No newline at end of file diff --git a/pages/components/my-notice-item.vue b/pages/components/my-notice-item.vue index a71fd0a..9fee8ff 100644 --- a/pages/components/my-notice-item.vue +++ b/pages/components/my-notice-item.vue @@ -105,7 +105,7 @@ .my-notice-item-box { width: 100%; border-radius: 20rpx; - padding: 30rpx 20rpx; + padding: 10rpx 20rpx 20rpx 20rpx; background-color: white; display: flex; flex-direction: column; @@ -175,4 +175,4 @@ } } } - + \ No newline at end of file diff --git a/pages/components/notice-index.vue b/pages/components/notice-index.vue index 42aa324..08490d2 100644 --- a/pages/components/notice-index.vue +++ b/pages/components/notice-index.vue @@ -2,19 +2,20 @@ - - - - - - - + 通告 + + + + + + + - - 通告 + @@ -57,7 +58,7 @@ - + + + + + + + + 随手转发上传通告赚零花 + 每条轻松赚{{point || ''}}积分 + + + 去转发 + - { + if (res.code == 200 && null != res.data) { + this.point = res.data.content + } + }).catch((e) => { + uni.showToast({ + icon: 'error', + duration: 2000, + title: e + }); + }) + + }, /** * 初始化数据 * @param {Object} code @@ -373,6 +411,17 @@ this.menuIndex = index this.onRefresherrefresh() }, + /** + * 鉴权 + */ + async checkRights() { + let res = await hasRights(rightsCode.searchNotice) + if (!res) { + this.canSearch = false + } else { + this.canSearch = true + } + }, /** * 搜索 */ @@ -381,7 +430,6 @@ if (!await this.checkIfHasRights(rightsCode.searchNotice)) { return } - this.showSearch = true }, /** * 鉴权通用方法 @@ -518,7 +566,7 @@ display: flex; flex-direction: column; align-items: center; - justify-content: center; + justify-content: start; position: relative; .dl-title { @@ -526,7 +574,7 @@ display: flex; position: relative; z-index: 10; - padding: 25rpx 10rpx 0 15rpx; + padding: 25rpx 10rpx 10rpx 15rpx; border-bottom: 1px solid #F4F4F4; @@ -537,24 +585,45 @@ justify-content: left; position: relative; - .dl-image { - width: 40rpx; - height: 40rpx; + .left-search-box { + display: flex; + align-items: self-start; + justify-content: center; + position: relative; + + .dl-image { + width: 40rpx; + height: 40rpx; + } + + .dl-vip { + position: absolute; + height: 20rpx; + width: 50rpx; + top: 0rpx; + right: -10px; + } } - .dl-vip { + .dl-zhezhao { + background: transparent; + z-index: 99; position: absolute; - height: 20rpx; - top: -10rpx; - right: -20px; + width: 100%; + height: 100%; } + } .right-text { - transition: 1s; + width: 140rpx; + display: flex; + align-items: center; + justify-content: center; .dl-text { - font-size: 32rpx; + color: #FC1F3E; + font-size: 40rpx; line-height: 78rpx; font-weight: bold; } @@ -576,7 +645,6 @@ .dl-menu { font-size: 30rpx; - margin: 0 20rpx; padding-bottom: 10rpx; text-align: center; } @@ -669,8 +737,69 @@ } } + .dl-public-box { + display: flex; + align-items: center; + border-radius: 35rpx; + justify-content: center; + height: 130rpx; + width: 100%; + background: url('/static/index/bg.png'); + background-size: 100% 100%; + background-position: center; + /* 图片居中显示 */ + background-repeat: no-repeat; + /* 不重复背景图片 */ + + .dl-left { + width: 135rpx; + display: flex; + padding-left: 30rpx; + align-items: center; + font-size: 30rpx; + color: #623109; + justify-content: left; + + .dl-icon { + width: 80rpx; + height: 80rpx; + + } + } + + .dl-center { + flex: 1; + flex-direction: column; + display: flex; + align-items: self-start; + justify-content: center; + font-size: 27rpx; + color: #363636; + font-weight: bold; + + text { + color: #FC1F3E; + } + } + + .dl-right { + width: 200rpx; + display: flex; + align-items: center; + justify-content: center; + + .dl-opt-dom { + font-size: 27rpx; + background-color: #FC1F3E; + border-radius: 30rpx; + color: white; + padding: 10rpx 30rpx; + } + } + } + .dl-item-box { - height: calc(100vh - var(--status-bar-height) - var(--window-bottom) - 505rpx); + height: calc(100vh - var(--status-bar-height) - var(--window-bottom) - 555rpx); isplay: flex; flex-direction: column; } diff --git a/pages/components/notice-item.vue b/pages/components/notice-item.vue index 59b62e1..9a81648 100644 --- a/pages/components/notice-item.vue +++ b/pages/components/notice-item.vue @@ -1,8 +1,10 @@