diff --git a/App.vue b/App.vue
index e228c5e..3b81961 100644
--- a/App.vue
+++ b/App.vue
@@ -26,4 +26,10 @@
wx-button:after{
border: none;
}
+.ellipsis-two-lines {
+ display: -webkit-box;
+ -webkit-box-orient: vertical;
+ -webkit-line-clamp: 2;
+ overflow: hidden;
+}
\ No newline at end of file
diff --git a/api/api.js b/api/api.js
index 1406270..7167786 100644
--- a/api/api.js
+++ b/api/api.js
@@ -1,4 +1,6 @@
import {request} from '@/utils/request.js'
+const loadingTime = 500;
+const showLog = false;
const api = {
wxLogin(data) {
return request('/login/wechat_mobile_login', data, 'post', true);
@@ -22,142 +24,89 @@ const api = {
getQuestionPage(data) { //获取问题列表-分页
return request('/question/page', data, 'post', true, 'application/json');
},
- getQuestionDetail(id,data) { //获取问题详情
- return request('/question/'+id, data, 'get', false);
- },
- collect(data) {
- return request('/collection/question', data, 'post', false, 'application/json');
- },
- cancelCollect(data) {
- return request('/collection/question/cancel', data, 'put', false, 'application/json');
- },
- getHotList() { //获取问题详情
- return request('/question/hot', {}, 'get', true);
- },
- getQuestionStatus(id) { //获取问题解锁状态
- return request('/question/unlock/status/' + id, {}, 'get', true);
- },
- getQuestionCoupon(data) { //获取患者可使用优惠卷-单项
- return request('/coupon/usable/question', data, 'get', true);
- },
- getVipCoupon(data) { //获取会员可使用优惠卷-单项
- return request('/coupon/usable/member', data, 'get', true);
- },
- getVipPrice() { //获取会员配置数据
- return request('/member', {}, 'get', false);
- },
- getRecentList() {
- return request('/order/member/recent/list', {}, 'get', false);
- },
- getUserInfo() {
- return request('/user', {}, 'get', true);
- },
- getUnnotifyCoupon() { //获取还未弹窗的优惠卷
- return request('/coupon/unnotified', {}, 'get', false);
- },
- getLeast() { //获取最少立减金额
- return request('/member/least', {}, 'get', false);
- },
- getItemList(data) { //获取单项订单列表-分页
- return request('/order/single/page', data, 'get', true);
- },
- getVipList(data) { //获取会员订单列表-分页
- return request('/order/member/page', data, 'get', true);
- },
- createItemOrder(data) { //创建单项订单
- return request('/order/single', data, 'post', true);
- },
- createVipOrder(data) { //创建会员订单
- return request('/order/member', data, 'post', true);
- },
- cancelItemOrder(id) {
- return request('/order/single/cancel/' + id, {}, 'put', false);
- },
- getItemPayData(data, id) {
- return request('/order/single/pay/' + id, data, 'get', true);
-
- },
- getWxConfig(url, data) {
- return request(url, data, 'get', false);
- },
- getCollectList(data) { //获取用户收藏题目列表-分页
- return request('/collection/question', data, 'get', true);
- },
- getFuliList(data) { //获取用户收藏题目列表-分页
- return request('/coupon', data, 'get', true);
- },
- addClickCount(id) { //增加问题点击次数(点击进入详情页的人次
- return request('/question/click/' + id, {}, 'put', false);
- },
- addSubmitCount(id) { //增加问题提交次数(提交个人信息进行了算算的人次)
- return request('/question/click/submit/' + id, {}, 'put', false);
- },
- checkUser(data) { //检测用户数据绑定状态
- return request('/user/check', data, 'GET', false);
- },
- getBasic(data) {
- return request('/user/info', data, 'GET', true);
- },
- updateBasic(data) {
- return request('/user', data, 'PUT', true,'application/json');
- },
- getCase(data) {
- return request('/user/case', data, 'GET', true);
- },
- updateCase(data) {
- return request('/user/case', data, 'PUT', true,'application/json');
- },
- getArea(data) {
- return request('/area/list', data, 'GET', false);
- },
- getDiseaseList(data) {
- return request('/disease/list', data, 'GET', false);
- },
- getNation(data) {
- return request('/nation/list', data, 'GET', false);
- },
- getOssSign(data) {
- return request('/sign/oss', data, 'GET', false);
- },
- ossUpload(url,data){
- return request(url,data,'post',false,'multipart/form-data')
- },
- checkItemPaySatus(id) {
- return request('/order/single/pay/status/'+id, {}, 'GET', false);
- },
- checkVipPaySatus(id) {
- return request('/order/member/pay/status/'+id, {}, 'GET', false);
- },
- saveAnswer(data,id){//保存单项答案
- return request('/order/single/answer/'+id, data, 'post', false);
- },
- getAnswer(id){//获取单项答案
- return request('/order/single/answer/'+id, {}, 'get', false);
- },
- getSearchRecommend(){//搜索推荐
- return request('/class/recommend/list', {}, 'get', false);
- },
- changeCoupon(){
- return request('/coupon/unnotified', {}, 'put', false);
- },
- delVipOrder(id){
- return request('/order/member/'+id, {}, 'DELETE', false);
- },
- delItemOrder(id){
- return request('/order/single/'+id, {}, 'DELETE', false);
- },
- shareSign(data){
- return request('https://dev-app.igandan.com/app/manager/getSignature4bing', data, 'get', false);
- },
- getLikeList(){//搜索推荐
- return request('question/like', {}, 'get', false);
- },
- getData(){
- return request('https://www.fastmock.site/mock/32012a46e9f66a6180214eef5edc79ac/mydata/promote', {}, 'get', false);
-
+ queryList(data) {
+ const listCount = 24;
+ return _queryList(data, listCount);
}
+
};
+function _queryList(data, listCount, showNews = false ,random = false, showChat = false) {
+ if (!data.pageNo || !data.pageSize) {
+ return _callQueryResult([]);
+ }
+ let pageNo = parseInt(data.pageNo);
+ let pageSize = parseInt(data.pageSize);
+ let type = data.type || 0;
+ if (pageNo < 0 || pageSize <= 0) {
+ return _callQueryResult([]);
+ }
+ if (showLog) {
+ console.log('%c\n----------请求开始--------', 'color:green;');
+ console.info(`请求参数:【pageNo:${pageNo},pageSize:${pageSize}】`)
+ console.log('%c----------请求结束--------\n', 'color:green;');
+ }
+ uni.showLoading({
+ title: '加载中...'
+ })
+ if (pageNo == 0) {
+ pageNo = 1;
+ }
+ var totalPagingList = [];
+ for (let i = 0; i < listCount; i++) {
+ if (!showChat) {
+ const item = {
+ 'title': (i + 1).toString(),
+ 'detail': '测试信息' + type
+ };
+ if (showNews) {
+ item.detail = getNews(random);
+ }
+ totalPagingList.push(item);
+ } else {
+ const item = {
+ 'name': '哆啦A梦',
+ 'icon': '/static/duola.jpg',
+ 'content': getNews(true),
+ 'isMe': false
+ };
+ totalPagingList.push(item);
+ }
+ }
+ let pageNoIndex = (pageNo - 1) * pageSize;
+ if (pageNoIndex + pageSize <= totalPagingList.length) {
+ return _callQueryResult(totalPagingList.splice(pageNoIndex, pageSize));
+ } else if (pageNoIndex < totalPagingList.length) {
+ return _callQueryResult(totalPagingList.splice(pageNoIndex, totalPagingList.length - pageNoIndex));
+ } else {
+ return _callQueryResult([]);
+ }
+ }
+
+function _callQueryResult(arg) {
+ return new Promise((resolve, reject) => {
+ setTimeout(() => {
+ uni.hideLoading();
+ if (showLog) {
+ console.log('%c\n----------响应开始--------', 'color:#0113fa;');
+ // #ifdef H5
+ console.table(arg);
+ // #endif
+
+ // #ifndef H5
+ console.log(arg);
+ // #endif
+ console.log('%c----------响应结束--------\n', 'color:#0113fa;');
+ }
+ resolve({
+ data: {
+ list: arg
+ }
+ });
+ }, loadingTime)
+ })
+ }
+
export default api
\ No newline at end of file
diff --git a/components/dNav/dNav.vue b/components/dNav/dNav.vue
new file mode 100644
index 0000000..900b7b6
--- /dev/null
+++ b/components/dNav/dNav.vue
@@ -0,0 +1,73 @@
+
+
+
+
+ logo
+ 肝胆相照临床病例库
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/components/list/list.vue b/components/list/list.vue
deleted file mode 100644
index fb66f93..0000000
--- a/components/list/list.vue
+++ /dev/null
@@ -1,59 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/components/navBar/navBar.vue b/components/navBar/navBar.vue
new file mode 100644
index 0000000..404f929
--- /dev/null
+++ b/components/navBar/navBar.vue
@@ -0,0 +1,93 @@
+
+
+
+
+ logo
+ 肝胆相照临床病例库
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/main.js b/main.js
index 0089a35..3861bf2 100644
--- a/main.js
+++ b/main.js
@@ -33,5 +33,3 @@ export function createApp() {
}
}
// #endif
-console.log(1111)
-console.log(process.env.NODE_ENV)
\ No newline at end of file
diff --git a/pages.json b/pages.json
index 9660a7b..1e3b0ef 100644
--- a/pages.json
+++ b/pages.json
@@ -11,20 +11,34 @@
},
"pages": [
//pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
-
+ {
+ "path": "pages/detail/detail",
+ "style": {
+ "navigationBarTitleText": "详情",
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/search/search",
+ "style": {
+ "navigationBarTitleText": "uni-app",
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/index/index",
+ "style": {
+ "navigationBarTitleText": "uni-app",
+ "navigationStyle": "custom"
+ }
+ },
{
"path": "pages/login/login",
"style": {
"navigationBarTitleText": "登录"
}
},
- {
- "path": "pages/index/index",
- "style": {
- "navigationBarTitleText": "uni-app",
- "enablePullDownRefresh":false
- }
- },
+
{
"path": "pages/case/case",
"style": {
diff --git a/pages/case/case.vue b/pages/case/case.vue
index ed157a2..614d59d 100644
--- a/pages/case/case.vue
+++ b/pages/case/case.vue
@@ -1,34 +1,27 @@
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/pages/detail/detail.vue b/pages/detail/detail.vue
new file mode 100644
index 0000000..8db1ca8
--- /dev/null
+++ b/pages/detail/detail.vue
@@ -0,0 +1,613 @@
+
+
+
+
+
+ 肝胆相照临床病例库肝胆相照临床病例库肝胆相照临床病例库
+
+
+
+ 陈医生 · 北京某三甲医院
+
+
+
+
+
+ 1
+
+
+
+ 1
+
+
+
+
+ 1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 发送
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{index}}
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 47d0a13..56eeef1 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -1,89 +1,267 @@
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ 123
+ 文章
+
+
+ 123
+ 视频
+
+
+ 123
+ 阅读量
+
+
+
+
+
+
+ 视频病例库
+
+
+
+ 疾病病例库
+
+
+
+
+
+ 医院病例库
+
+
+
+ 医生病例库
+
+
+
+
+
+ 最新上线
+
+ 查看更多
+
+
+
+
+
+
+
+ 肝胆相照临床病例库肝胆相照临床病例库
+ 端重排 | 陈煜 | 工商局
+
+
+
+
+
+ 肝胆相照临床病例库肝胆相照临床病例库
+ 端重排 | 陈煜 | 工商局
+
+
+
+
+
+
+
+ 最多阅读
+
+ 查看更多
+
+
+
+
+
+
+
+ 肝胆相照临床病例库肝胆相照临床病例库
+ 端重排 | 陈煜 | 工商局
+
+
+
+
+
+ 肝胆相照临床病例库肝胆相照临床病例库
+ 端重排 | 陈煜 | 工商局
+
+
+
+
+
+
+ 医院病例库推荐
+
+ 查看更多
+
+
+
+
+ 首都医科大学附属北京佑安医院
+ 首都医科大学附属北京佑安医院
+
+
+
+
+ 医生病例库推荐
+
+ 查看更多
+
+
+
+
+ 首都医科大学附属北京佑安医院
+ 首都医科大学附属北京佑安医院
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/register/register.vue b/pages/register/register.vue
index 54d5599..5618083 100644
--- a/pages/register/register.vue
+++ b/pages/register/register.vue
@@ -139,10 +139,11 @@ const start = () => {
};
onLoad(() => {
const { envVersion } = uni.getAccountInfoSync().miniProgram;
+ console.log(envVersion)
if (envVersion == "release") {
src.value = "https://wx.igandan.com/hcp/toRegister";
} else {
- src.value = "https://dev-wx.igandan.com/hcp/toRegister";
+ src.value = "https://dev-wx.igandan.com/hcp/toRegister?fromType=weChat";
}
});
diff --git a/pages/search/search.vue b/pages/search/search.vue
new file mode 100644
index 0000000..a5db41a
--- /dev/null
+++ b/pages/search/search.vue
@@ -0,0 +1,168 @@
+
+
+
+
+
+
+ 检索到XX篇文章
+ 检索到X个视频
+ 检索词:陈煜
+
+
+
+
+
+
+
+
+ {{ item.title }}
+
+ 陈煜
+
+
+
+
+
+ 1
+
+
+
+ 1
+
+
+
+
+ 1
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages_case/agree/agree.vue b/pages_case/agree/agree.vue
new file mode 100644
index 0000000..88ebad9
--- /dev/null
+++ b/pages_case/agree/agree.vue
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
diff --git a/static/chat.png b/static/chat.png
new file mode 100644
index 0000000..a542d2f
Binary files /dev/null and b/static/chat.png differ
diff --git a/static/collect.png b/static/collect.png
new file mode 100644
index 0000000..2815fe4
Binary files /dev/null and b/static/collect.png differ
diff --git a/static/headImg.png b/static/headImg.png
new file mode 100644
index 0000000..34528c5
Binary files /dev/null and b/static/headImg.png differ
diff --git a/static/shang.png b/static/shang.png
new file mode 100644
index 0000000..0930d2a
Binary files /dev/null and b/static/shang.png differ
diff --git a/static/ss.png b/static/ss.png
new file mode 100644
index 0000000..5b6b05d
Binary files /dev/null and b/static/ss.png differ
diff --git a/static/uploadImg.png b/static/uploadImg.png
new file mode 100644
index 0000000..2a3441f
Binary files /dev/null and b/static/uploadImg.png differ