diff --git a/api/moment.js b/api/moment.js new file mode 100644 index 0000000..fe0c312 --- /dev/null +++ b/api/moment.js @@ -0,0 +1,56 @@ +/** + * Copyright © 2020-present LiuDanYang. All rights Reserved. + */ +import { mGet, mPost } from "./request" +const app = getApp() +const urls = ['https://api-client-ztb-dev.qniao.cn', 'https://api-client-ztb-test.qniao.cn', 'https://api-client-ztb.qniao.cn'] + +const mconfig = { + baseUrl: urls[app.evn] +} +// *******************************************************************账户业务*********************************************************** +// /article/save/Article 发文章 +const postMoment = (params) => mPost(`/information-center/article/save/Article`, params, mconfig) +// /article/update/Article/{id} 编辑文章 +const updateMoment = (id, params) => mPost(`/information-center/article/update/Article/${id}`, params, mconfig) +// /article/get/Article-list/文章列表 +const getPreferList = (params) => mGet(`/information-center/article/get/Article-list/`, params, mconfig) +// /article/get/Article-view-list 浏览文章历史列表 +const getViewedList = (params) => mGet(`/information-center/article/get/Article-view-list`, params, mconfig) +// /article/delete/Article删除文章 +const deleteMoment = (params) => mPost(`/information-center/article/delete/Article`, params, mconfig) +// /article/get/my-Article-list 我的文章列表 +const getMyList = (params) => mGet(`/information-center/article/get/my-Article-list`, params, mconfig) +// /article/get/Article-detail/{id} 文章详情 +const getMomentDetail = (id) => mGet(`/information-center/article/get/Article-detail/${id}`, null, mconfig) +// /article-reply/get/my-reply-list 我的评论列表 +const getReplyList = (params) => mGet(`/information-center/article-reply/get/my-reply-list`, params, mconfig) +// /article-reply/get/reply-list/in/{articleId} 帖子评论列表 +const getCommentList = (id, params) => mGet(`/information-center/article-reply/get/reply-list/in/${id}`, params, mconfig) +// /article-reply/like-or-cancel/article 点赞文章 +const likeMoment = (params) => mPost(`/information-center/article-reply/like-or-cancel/article`, params, mconfig) +// /article-reply/like-or-cancel/reply 点赞评论 +const likeComment = (params) => mPost(`/information-center/article-reply/like-or-cancel/reply`, params, mconfig) +// /article-reply/reply 评论 +const commentMoment = (params) => mPost(`/information-center/article-reply/reply`, params, mconfig) +const getCategoryPrice = (params) => mGet(`/information-center/getPaperCategoryPrice/new`, params, mconfig) +const getCategoryList = (params) => mGet(`/information-center/paper-index-category`, params, mconfig) + + +export { + mconfig, + getPreferList, + postMoment, + updateMoment, + getViewedList, + deleteMoment, + getMyList, + getMomentDetail, + getReplyList, + getCommentList, + likeMoment, + likeComment, + commentMoment, + getCategoryPrice, + getCategoryList +} \ No newline at end of file diff --git a/api/saas.js b/api/saas.js index c054e62..fd7dd99 100644 --- a/api/saas.js +++ b/api/saas.js @@ -50,7 +50,7 @@ const readMessage = (params) => mPost(`/message-center/message/read`, params, sc const getChanelList = (params) => mGet(`/ztb-factory/factorydeliverychannel/get/self-factory-delivery-channel-list`, params, sconfig) const saveChanel = (params) => mPost(`/ztb-factory/factorydeliverychannel/save/factory-delivery-channel`, params, sconfig) const getCardList = (params) => mGet(`/ztb-factory/get/self-factory/card-list`, params, sconfig) -const getAllFactoryList = () => mGet(`/recycle-service/get/all-paper-mill`, null, sconfig) + const getPoundList = () => mGet(`/ztb-factory/get/self-factory-weight-note-list`, null, sconfig) const getPoundInfo = (id) => mGet(`/ztb-factory/get/weight-note-detail/${id}`, null, sconfig) const repeatPound = (params) => mPost(`/ztb-factory/renew/second-weight`, params, sconfig) @@ -95,7 +95,6 @@ export { bindCustomer, registeCustomer, getPaperList, - getAllFactoryList, repeatOrder, getStatisticsInfo, getCustomerOrderList, diff --git a/api/user.js b/api/user.js index 5327115..8e6cf97 100644 --- a/api/user.js +++ b/api/user.js @@ -5,6 +5,7 @@ import { mGet, mPost } from "./request" import { sconfig } from "./saas" import { pconfig } from "./payment" import { zconfig } from "./ztb" +import { mconfig } from "./moment" const util = require('../utils/util') const storage = require('../utils/storage') const app = getApp() @@ -179,15 +180,32 @@ function phoneWechat(form) { return promise } +function initToken(token){ + sconfig.header = { 'Authorization': 'QNT ' + token } + pconfig.header = { 'Authorization': 'QNT ' + token } + zconfig.header = { 'Authorization': 'QNT ' + token } + mconfig.header = { 'Authorization': 'QNT ' + token } +} + +function headerFactoryId(factoryId){ + sconfig.header.X_FactoryId = factoryId + pconfig.header.X_FactoryId = factoryId + zconfig.header.X_FactoryId = factoryId + mconfig.header.X_FactoryId = factoryId +} + function finalizeToken(){ config.header = null sconfig.header = null pconfig.header = null zconfig.header = null + mconfig.header = null } export { config, + initToken, + headerFactoryId, finalizeToken, wechatApplet, updateUserInfo, diff --git a/app.js b/app.js index 93a202a..11324b5 100644 --- a/app.js +++ b/app.js @@ -1,8 +1,8 @@ //app.js App({ - evn: 0, // 0: 开发版本;1:测试版本;2:生产版本 + evn: 2, // 0: 开发版本;1:测试版本;2:生产版本 tmplIds: [''], - version: 162, + version: '1.4.1', xAppId: '503258978847953926', userInfo: null, //----------------------------------------------globalData-------------------------------------- diff --git a/app.json b/app.json index cbcd171..95ba4df 100644 --- a/app.json +++ b/app.json @@ -2,6 +2,7 @@ "pages":[ "pages/login/index", "pages/index/index", + "pages/home/user-info/index", "pages/home/employee/index", "pages/home/employee-info/index", "pages/home/customer-list/index", @@ -26,9 +27,10 @@ "pages/storage/order-list/index", "pages/storage/order-info/index", "pages/storage/order-settlement/index", - "pages/agent/factory-list/index", + "pages/agent/agent-list/index", "pages/agent/factory-detail/index", "pages/agent/order-list/index", + "pages/agent/focus-list/index", "pages/agent/order-detail/index", "pages/agent/appointment/index", "pages/settlement/index/index", diff --git a/assets/image/icon-none.png b/assets/image/icon-none.png new file mode 100644 index 0000000..cf61c71 Binary files /dev/null and b/assets/image/icon-none.png differ diff --git a/colorui/main.wxss b/colorui/main.wxss index 772d5e0..4958536 100644 --- a/colorui/main.wxss +++ b/colorui/main.wxss @@ -1285,6 +1285,7 @@ swiper.round-dot .wx-swiper-dot.wx-swiper-dot-active { font-size: 44rpx; } + .text-sl { font-size: 80rpx; } @@ -1398,6 +1399,7 @@ swiper.round-dot .wx-swiper-dot.wx-swiper-dot-active { } .list-empty { + margin-top: 10rpx; display: flex; flex-direction: column; align-items: center; diff --git a/components/refresh-view/index.wxml b/components/refresh-view/index.wxml index a5229fb..9068d74 100644 --- a/components/refresh-view/index.wxml +++ b/components/refresh-view/index.wxml @@ -11,10 +11,8 @@ -