diff --git a/api/jn/news.js b/api/jn/news.js index 3f90927..30b6455 100644 --- a/api/jn/news.js +++ b/api/jn/news.js @@ -42,3 +42,36 @@ export function delNews(id) { method: 'delete' }) } + +// 根据商家id清空该商家所有的消息 +export function deleteShopId(id) { + return request({ + url: '/jn/news/deleteShopId/' + id, + method: 'get' + }) +} + +// 根据商家id查询该商家所有的消息 +export function shopIdlist(params) { + return request({ + url: '/jn/news/shopIdlist', + method: 'get', + params + }) +} + +// 某条商家端消息进行已读 +export function getInfoShop(id) { + return request({ + url: '/jn/news/getInfoShop/' + id, + method: 'get' + }) +} + +// 根据商家id查询未读消息个数 +export function isLookCount(id) { + return request({ + url: '/jn/news/isLookCount/' + id, + method: 'get' + }) +} \ No newline at end of file diff --git a/config.js b/config.js index d13bd61..b1318ce 100644 --- a/config.js +++ b/config.js @@ -4,6 +4,7 @@ module.exports = { TEST_LOGIN:"https://t-jn-development-manager.jsszkd.com/login", // ?clientId= // baseUrl: "https://t-jn-bjh-admin-server.jsszkd.com", baseUrl: "https://bjh.jndz.cn/bjh-admin-server", + // baseUrl: "http://192.168.0.108:9037", // 应用信息 appInfo: { diff --git a/subEnterprise/msg/index.vue b/subEnterprise/msg/index.vue index 81778cc..b8525c5 100644 --- a/subEnterprise/msg/index.vue +++ b/subEnterprise/msg/index.vue @@ -15,13 +15,13 @@ :clearabled="true" class="view-global" bgColor="#fff" - @search="onSearch" - @clear="onClear" + @change="ListMsg" > @@ -29,7 +29,7 @@ @@ -77,68 +77,70 @@ 19:18 --> + @@ -161,7 +163,11 @@ export default { display: flex; align-items: center; justify-content: center; - + .u-badge { + width: 10px; + height: 10px; + left: 0px; + } image { height: 44rpx; width: 44rpx; diff --git a/subEnterprise/threeGuarantees/index.vue b/subEnterprise/threeGuarantees/index.vue index b649cd7..cb2bc2a 100644 --- a/subEnterprise/threeGuarantees/index.vue +++ b/subEnterprise/threeGuarantees/index.vue @@ -85,12 +85,12 @@ const { query } = launchOptions; - console.log(query, "query"); - console.log(Object.keys(query).length, "query.lengh"); + // console.log(query, "query"); + // console.log(Object.keys(query).length, "query.lengh"); if (Object.keys(query).length != 0) { // 3红 4黄 5绿 sbLevel shopName jnshop(query.storeId).then((item) => { - console.log(item); + // console.log(item); if (item.code == 200 && item.data) { this.titleObj.sbLevel = item.data.sbLevel this.titleObj.shopName = item.data.shopName @@ -109,7 +109,7 @@ }, getList() { listraterule(this.queryParams).then((res) => { - console.log(res); + // console.log(res); if (res.rows.length != 0) { this.levelList = res.rows;