diff --git a/api/model/center.js b/api/model/center.js index 692f3b6..36ef105 100644 --- a/api/model/center.js +++ b/api/model/center.js @@ -16,6 +16,14 @@ const api = { method: 'GET', auth: true, }, + /** + * 获取新闻动态详情的接口 + */ + getNewsById: { + url: '/all_login/getNewsById', + method: 'GET', + auth: true, + }, } export default api \ No newline at end of file diff --git a/api/model/sharing.js b/api/model/sharing.js index c3f326b..59ad432 100644 --- a/api/model/sharing.js +++ b/api/model/sharing.js @@ -7,6 +7,16 @@ const api = { method: 'GET', auth: true, }, + /** + * 删除分享记录 + */ + deleteLog: { + url: '/fen/deleteLog', + method: 'POST', + auth: true, + limit : 500, + showLoading : true, + }, /** * 增加或者修改个人分享 */ diff --git a/config.js b/config.js index 6ccb044..c322bec 100644 --- a/config.js +++ b/config.js @@ -8,7 +8,7 @@ import uvUI from '@/uni_modules/uv-ui-tools' Vue.use(uvUI); // 当前环境 -const type = 'prod' +const type = 'dev' // 环境配置 diff --git a/pages/index/center.vue b/pages/index/center.vue index 44923f9..1e7f5b5 100644 --- a/pages/index/center.vue +++ b/pages/index/center.vue @@ -113,9 +113,9 @@ @@ -193,10 +193,9 @@ return str.replace(/<.*?>/g, '') }, - goToNewsDetail(id, index) { - // todo: check + goToNewsDetail(id) { uni.navigateTo({ - url: `/pages_order/mine/news?id=${id}&index=${index}` + url: `/pages_order/mine/news?id=${id}` }) }, } diff --git a/pages/index/record.vue b/pages/index/record.vue index 89a0ebc..97547de 100644 --- a/pages/index/record.vue +++ b/pages/index/record.vue @@ -28,7 +28,7 @@ >