diff --git a/api/http.js b/api/http.js index 6c3da63..fdf74ea 100644 --- a/api/http.js +++ b/api/http.js @@ -35,6 +35,7 @@ function http(uri, data, callback, method = 'GET', showLoading, title) { if(res.statusCode == 401 || res.data.message == '操作失败,token非法无效!' || res.data.message == '操作失败,用户不存在!'){ + uni.removeStorageSync('token') store.commit('logout') console.error('登录过期'); utils.toLogin() diff --git a/api/model/center.js b/api/model/center.js index 36ef105..822b787 100644 --- a/api/model/center.js +++ b/api/model/center.js @@ -6,7 +6,6 @@ const api = { getNotice: { url: '/all_login/getNotice', method: 'GET', - auth: true, }, /** * 获取动态列表 @@ -14,7 +13,6 @@ const api = { getNews: { url: '/all_login/getNews', method: 'GET', - auth: true, }, /** * 获取新闻动态详情的接口 @@ -22,7 +20,6 @@ const api = { getNewsById: { url: '/all_login/getNewsById', method: 'GET', - auth: true, }, } diff --git a/api/model/sharing.js b/api/model/sharing.js index 0fa3d07..4210882 100644 --- a/api/model/sharing.js +++ b/api/model/sharing.js @@ -1,11 +1,10 @@ const api = { - /** - * 获取个人分享记录详情 - */ + /** + * 获取个人分享记录详情 + */ getShareInfo: { url: '/fen/getShareInfo', method: 'GET', - auth: true, debounce: 500, }, /** @@ -14,130 +13,130 @@ const api = { addLogShareInfo: { url: '/fen/addLog', method: 'POST', - auth: true, - limit : 500, - showLoading : true, + limit: 500, + showLoading: true, }, - /** - * 删除分享记录 - */ + /** + * 删除分享记录 + */ deleteLog: { url: '/fen/deleteLog', method: 'POST', - auth: true, - limit : 500, - showLoading : true, + auth: true, + limit: 500, + showLoading: true, }, - /** - * 增加或者修改个人分享 - */ + /** + * 增加或者修改个人分享 + */ saveOrUpdateShare: { url: '/fen/saveOrUpdateShare', method: 'POST', - auth: true, - limit : 500, - showLoading : true, + auth: true, + limit: 500, + showLoading: true, }, - /** - * 获取视频分享记录详情 - */ + /** + * 获取视频分享记录详情 + */ getVideoShareInfo: { url: '/fen/getVideoShareInfo', method: 'GET', - auth: true, debounce: 500, }, - /** - * 增加或者修改视频分享 - */ + /** + * 增加或者修改视频分享 + */ saveOrUpdateVideoShare: { url: '/fen/saveOrUpdateVideoShare', method: 'POST', - auth: true, - limit : 500, - showLoading : true, + auth: true, + limit: 500, + showLoading: true, }, - /** - * 获取群分享记录详情 - */ + /** + * 获取群分享记录详情 + */ getGroupShareInfo: { url: '/fen/getGroupShareInfo', method: 'GET', - auth: true, debounce: 500, }, - /** - * 增加或者修改群分享 - */ + /** + * 增加或者修改群分享 + */ saveOrUpdateGroupShare: { url: '/fen/saveOrUpdateGroupShare', method: 'POST', - auth: true, - limit : 500, - showLoading : true, + auth: true, + limit: 500, + showLoading: true, }, - /** - * 获取文章分享记录详情 - */ + /** + * 获取文章分享记录详情 + */ getArticleShareInfo: { url: '/fen/getArticleShareInfo', method: 'GET', - auth: true, debounce: 500, }, - /** - * 增加或者修改文章分享 - */ + /** + * 增加或者修改文章分享 + */ saveOrUpdateArticleShare: { url: '/fen/saveOrUpdateArticleShare', method: 'POST', - auth: true, - limit : 500, - showLoading : true, + auth: true, + limit: 500, + showLoading: true, }, - /** - * 获取分享记录列表带分页 - */ + /** + * 获取分享记录列表带分页 + */ getSharePage: { url: '/fen/getSharePage', method: 'GET', auth: true, }, - /** - * 校验个人转发是否达标 - */ + /** + * 校验个人转发是否达标 + */ checkShare: { url: '/fen/checkShare', method: 'POST', - auth: true, - showLoading : true, + showLoading: true, }, - /** - * 校验视频转发是否达标 - */ + /** + * 校验视频转发是否达标 + */ checkVideoShare: { url: '/fen/checkVideoShare', method: 'POST', - auth: true, - showLoading : true, + showLoading: true, }, - /** - * 校验群转发是否达标 - */ + /** + * 校验群转发是否达标 + */ checkGroupShare: { url: '/fen/checkGroupShare', method: 'POST', - auth: true, - showLoading : true, + showLoading: true, }, - /** - * 校验文章转发是否达标 - */ + /** + * 校验文章转发是否达标 + */ checkArticleShare: { url: '/fen/checkArticleShare', method: 'POST', - auth: true, - showLoading : true, + showLoading: true, + }, + /** + * 查询当前用户分享审核通过的记录条数 + */ + queryShareCount: { + url: '/fen/queryShareCount', + method: 'GET', + showLoading: true, }, } diff --git a/common.scss b/common.scss index afe1319..463cc5f 100644 --- a/common.scss +++ b/common.scss @@ -29,6 +29,7 @@ justify-content: center !important; align-items: center !important; font-size: 26rpx; + line-height: unset; } .share::after{ border: none; diff --git a/components/base/tabbar.vue b/components/base/tabbar.vue index babc973..27f9e6f 100644 --- a/components/base/tabbar.vue +++ b/components/base/tabbar.vue @@ -80,7 +80,7 @@ flex-direction: row; height: 120rpx; padding-bottom: env(safe-area-inset-bottom); - z-index: 999999; + z-index: 999; bottom: 0; left: 0; color: #CCCCCC; diff --git a/components/center/popupActivate.vue b/components/center/popupActivate.vue index 4fb4ca4..62954c2 100644 --- a/components/center/popupActivate.vue +++ b/components/center/popupActivate.vue @@ -1,121 +1,111 @@ \ No newline at end of file diff --git a/components/home/popupAuditMsg.vue b/components/home/popupAuditMsg.vue index 7d308c2..df1929b 100644 --- a/components/home/popupAuditMsg.vue +++ b/components/home/popupAuditMsg.vue @@ -1,94 +1,90 @@ \ No newline at end of file diff --git a/config.js b/config.js index a3639fc..e42e0c6 100644 --- a/config.js +++ b/config.js @@ -8,13 +8,16 @@ import uvUI from '@/uni_modules/uv-ui-tools' Vue.use(uvUI); // 当前环境 -const type = 'prod' +const type = 'dev' // 环境配置 const config = { dev : { - baseUrl : 'http://h5.xzaiyp.top/fission-star-api', + baseUrl : 'http://h5.xzaiyp.top/lbx-api', + }, + test : { + baseUrl : 'https://fission-star-api.hhlm1688.com/lbx-api', }, prod : { baseUrl : 'https://www.liebianxing.site/lbx-api', diff --git a/manifest.json b/manifest.json index cbdf96a..5e57a89 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name" : "unapp模板", - "appid" : "__UNI__A010721", + "appid" : "__UNI__197A38F", "description" : "", "versionName" : "1.0.0", "versionCode" : "100", diff --git a/mixins/list.js b/mixins/list.js index 23bb70e..8f6a63d 100644 --- a/mixins/list.js +++ b/mixins/list.js @@ -46,6 +46,11 @@ export default { * @returns {Promise} 返回Promise对象 */ getData(queryParams){ + + if(this.authApi && !uni.getStorageSync('token')){ + return + } + return new Promise((success, error) => { if(!this.mixinsListApi){ return console.error('mixinsListApi 缺失'); diff --git a/pages/index/center.vue b/pages/index/center.vue index a878b45..23f4dbb 100644 --- a/pages/index/center.vue +++ b/pages/index/center.vue @@ -4,27 +4,28 @@ - - + + - - {{ userInfo.nickName }} + + {{ userInfo.nickName || '未登录' }} - + ID: {{ userInfo.intentionCode }} - + - - + 普通会员 + + 点击登录 + @@ -39,7 +40,8 @@ 代理商权益 - 将于{{ userInfo.endTime ? $dayjs(userInfo.endTime).format('YYYY年M月D日') : '-'}}到期 + 将于{{ userInfo.endTime ? + $dayjs(userInfo.endTime).format('YYYY年M月D日') : '-'}}到期 @@ -68,18 +70,42 @@ 激活码 - - - + + + + + + + + 联系客服 - - - + + + + - 我的团队 + 隐私政策 + + @@ -88,16 +114,10 @@ - + padding: '6rpx 0', + }"> @@ -110,43 +130,44 @@ - + {{ item.title || '' }} {{ getDesc(item.details) }} - + - + + + @@ -234,9 +274,7 @@ margin-bottom: 12rpx; } - .tags { - - } + .tags {} } .setting { @@ -245,7 +283,7 @@ top: 37rpx; } } - + .tag { display: inline-block; padding: 6rpx 21rpx; @@ -276,10 +314,26 @@ width: calc(100vw - 69rpx*2); left: 69rpx; bottom: 64rpx; - justify-content: space-between; + + .tool{ + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; + } + + .tool-icon-bg { + width: 90rpx; + height: 90rpx; + background-color: #001B3C; + border-radius: 15rpx; + display: flex; + justify-content: center; + align-items: center; + } } - + .activate { position: absolute; @@ -289,7 +343,7 @@ right: 37rpx; &-tips { - flex: 1; + flex: 1; color: #976224; font-size: 28rpx; } @@ -327,6 +381,7 @@ .notice { padding: 22rpx 21rpx; display: flex; + &-icon { width: 49rpx; height: 49rpx; @@ -391,5 +446,4 @@ width: 149rpx; height: 158rpx; } - \ No newline at end of file diff --git a/pages/index/index.vue b/pages/index/index.vue index de90eb9..44f6886 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -5,45 +5,40 @@ - + - - - + + - + - + \ No newline at end of file diff --git a/pages/index/record.vue b/pages/index/record.vue index fde38f6..a4cb3d0 100644 --- a/pages/index/record.vue +++ b/pages/index/record.vue @@ -1,287 +1,327 @@ diff --git a/pages_order/auth/wxLogin.vue b/pages_order/auth/wxLogin.vue index 6769d47..4792c56 100644 --- a/pages_order/auth/wxLogin.vue +++ b/pages_order/auth/wxLogin.vue @@ -17,7 +17,7 @@ class="btn" @click="wxLogin" > - 微信登录 + 授权登录