commit 29038849228d71e187e40df95adfd8da83c04fc1
Author: zoujiandong <10130823232@qq.com>
Date: Thu Aug 14 17:02:24 2025 +0800
first commit
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..fcf83a6
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,34 @@
+# Logs
+logs
+*.log
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+pnpm-debug.log*
+lerna-debug.log*
+
+yarn.lock
+
+node_modules
+uni_modules
+unpackage
+dist
+dist-ssr
+*.local
+
+# Editor directories and files
+.vscode/*
+!.vscode/extensions.json
+.idea
+.DS_Store
+*.suo
+*.ntvs*
+*.njsproj
+*.sln
+*.sw?
+
+# node_modules
+node_modules
+package-lock.json
+package-lock.json
+components.d.ts
diff --git a/App.vue b/App.vue
new file mode 100644
index 0000000..6f1caaf
--- /dev/null
+++ b/App.vue
@@ -0,0 +1,53 @@
+
+
+
diff --git a/api/api.js b/api/api.js
new file mode 100644
index 0000000..0d558ce
--- /dev/null
+++ b/api/api.js
@@ -0,0 +1,27 @@
+import {request} from '@/utils/request.js'
+const api = {
+ wxLogin(data) {
+ return request('/login/wechat/mobile', data, 'post', true);
+ },
+ mobileLogin(data) {
+ return request('/login/mobile', data, 'post', true);
+ },
+ getCode(data) {
+ return request('/code/phone', data, 'post', true);
+ },
+
+ // 视频相关API
+ getVideoList(data) {
+ return request('/video/list', data, 'get', true);
+ },
+ getVideoDetail(data) {
+ return request('/video/detail', data, 'get', true);
+ },
+ getBannerVideo(data) {
+ return request('/video/banner', data, 'get', true);
+ },
+
+}
+
+
+export default api
\ No newline at end of file
diff --git a/compoents/tabBar/tabBar.vue b/compoents/tabBar/tabBar.vue
new file mode 100644
index 0000000..b027f00
--- /dev/null
+++ b/compoents/tabBar/tabBar.vue
@@ -0,0 +1,367 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.text }}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/echart.html b/echart.html
new file mode 100644
index 0000000..03a4b70
--- /dev/null
+++ b/echart.html
@@ -0,0 +1,246 @@
+
+
+
+
+
+ 地图下钻
+
+
+
+
+
+
+
+
+
+
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..c3ff205
--- /dev/null
+++ b/index.html
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/main.js b/main.js
new file mode 100644
index 0000000..5ada26f
--- /dev/null
+++ b/main.js
@@ -0,0 +1,34 @@
+import App from './App'
+import uviewPlus, { setConfig } from 'uview-plus'
+// #ifndef VUE3
+import Vue from 'vue'
+import './uni.promisify.adaptor'
+Vue.config.productionTip = false
+App.mpType = 'app'
+const app = new Vue({
+ ...App
+})
+app.$mount()
+// #endif
+// #ifdef VUE3
+import { createSSRApp } from 'vue'
+export function createApp() {
+ const app = createSSRApp(App)
+
+ app.use(uviewPlus, async() => {
+ return {
+ options: {
+ // 修改$u.config对象的属性
+ config: {
+ // 修改默认单位为rpx,相当于执行 uni.$u.config.unit = 'rpx'
+ unit: 'rpx'
+ }
+ }
+ }
+ })
+
+ return {
+ app
+ }
+}
+// #endif
diff --git a/manifest.json b/manifest.json
new file mode 100644
index 0000000..41063a0
--- /dev/null
+++ b/manifest.json
@@ -0,0 +1,66 @@
+{
+ "name" : "uniapp",
+ "appid" : "__UNI__34144D0",
+ "description" : "",
+ "versionName" : "1.0.0",
+ "versionCode" : "100",
+ "transformPx" : false,
+ "app-plus" : {
+ /* 5+App特有相关 */
+ "usingComponents" : true,
+ "nvueCompiler" : "uni-app",
+ "nvueStyleCompiler" : "uni-app",
+ "splashscreen" : {
+ "alwaysShowBeforeRender" : true,
+ "waiting" : true,
+ "autoclose" : true,
+ "delay" : 0
+ },
+ "modules" : {
+ "OAuth" : {}
+ },
+ /* 模块配置 */
+ "distribute" : {
+ /* 应用发布信息 */
+ "android" : {
+ /* android打包配置 */
+ "permissions" : [
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ ""
+ ]
+ },
+ "ios" : {},
+ /* ios打包配置 */
+ "sdkConfigs" : {
+ "oauth" : {
+ "univerify" : {}
+ }
+ }
+ }
+ },
+ /* SDK配置 */
+ "quickapp" : {},
+ /* 快应用特有相关 */
+ "mp-weixin" : {
+ /* 小程序特有相关 */
+ "appid" : "wx061c1f4e16a5f20f",
+ "setting" : {
+ "urlCheck" : false
+ },
+ "usingComponents" : true
+ },
+ "vueVersion" : "3"
+}
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..5a9e5f5
--- /dev/null
+++ b/package.json
@@ -0,0 +1,17 @@
+{
+ "name": "uniapp",
+ "version": "1.0.0",
+ "main": "main.js",
+ "scripts": {
+ "dev": "cross-env NODE_ENV=development uniapp-cli build --watch",
+ "test": "cross-env NODE_ENV=test uniapp-cli build",
+ "prod": "cross-env NODE_ENV=production uniapp-cli build"
+ },
+ "keywords": [],
+ "author": "",
+ "license": "ISC",
+ "description": "",
+ "dependencies": {
+ "uview-plus": "^3.4.73"
+ }
+}
diff --git a/pages.json b/pages.json
new file mode 100644
index 0000000..4c982f7
--- /dev/null
+++ b/pages.json
@@ -0,0 +1,158 @@
+{
+ "easycom": {
+ "autoscan": true,
+ // 注意一定要放在custom里,否则无效,https://ask.dcloud.net.cn/question/131175
+ "custom": {
+ "^u--(.*)": "@/node_modules/uview-plus/components/u-$1/u-$1.vue",
+ "^up-(.*)": "@/node_modules/uview-plus/components/u-$1/u-$1.vue",
+ "^u-([^-].*)": "@/node_modules/uview-plus/components/u-$1/u-$1.vue"
+
+ }
+ },
+ "pages": [{
+ "path": "pages/index/index",
+ "style": {
+ "navigationBarTitleText": "",
+ "navigationStyle": "custom",
+ "app": {
+ "bounce": "none"
+ }
+ }
+ },
+ {
+ "path": "pages/patientClass/patientClass",
+ "style": {
+ "navigationStyle": "custom",
+ "navigationBarTitleText": "uni-app分页",
+ "app": {
+ "bounce": "none"
+ }
+ }
+ },
+ {
+ "path": "pages/live/live",
+ "style": {
+ "navigationStyle": "custom",
+ "navigationBarTitleText": "uni-app分页",
+ "app": {
+ "bounce": "none"
+ }
+ }
+ },
+ {
+ "path": "pages/education/education",
+ "style": {
+ "navigationStyle": "custom",
+ "navigationBarTitleText": "uni-app分页",
+ "app": {
+ "bounce": "none"
+ }
+ }
+ },
+ {
+ "path": "pages/my/my",
+ "style": {
+ "navigationStyle": "custom",
+ "navigationBarTitleText": "uni-app分页",
+ "app": {
+ "bounce": "none"
+ }
+ }
+ }
+ ],
+ "subPackages": [{
+ "root": "pages_app",
+ "pages": [
+ {
+ "path": "search/search",
+ "style": {
+ "navigationStyle": "custom",
+ "navigationBarTitleText": "uni-app分页",
+ "app": {
+ "bounce": "none"
+ }
+ }
+ },
+ {
+ "path": "login/login",
+ "style": {
+ "navigationStyle": "custom",
+ "navigationBarTitleText": "uni-app分页",
+ "app": {
+ "bounce": "none"
+ }
+ }
+ },
+ {
+ "path": "video/video",
+ "style": {
+ "navigationStyle": "custom",
+ "navigationBarTitleText": "uni-app分页",
+ "app": {
+ "bounce": "none"
+ }
+ }
+ },
+ {
+ "path": "zhinan/zhinan",
+ "style": {
+ "navigationStyle": "custom",
+ "navigationBarTitleText": "uni-app分页",
+ "app": {
+ "bounce": "none"
+ }
+ }
+ },
+ {
+ "path": "qikan/qikan",
+ "style": {
+ "navigationStyle": "custom",
+ "navigationBarTitleText": "uni-app分页",
+ "app": {
+ "bounce": "none"
+ }
+ }
+ },
+ {
+ "path": "smsLogin/smsLogin",
+ "style": {
+ "navigationStyle": "custom",
+ "navigationBarTitleText": "uni-app分页",
+ "app": {
+ "bounce": "none"
+ }
+ }
+ },
+ {
+ "path": "pwdLogin/pwdLogin",
+ "style": {
+ "navigationStyle": "custom",
+ "navigationBarTitleText": "uni-app分页",
+ "app": {
+ "bounce": "none"
+ }
+ }
+ }
+
+ ]
+ }],
+ "globalStyle": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "uni-app",
+ "navigationBarBackgroundColor": "#F8F8F8",
+ "backgroundColor": "#F8F8F8",
+ "app-plus": {
+ "background": "#efeff4"
+ }
+ },
+ "condition" : { //模式配置,仅开发期间生效
+ "current": 0, //当前激活的模式(list 的索引项)
+ "list": [
+ {
+ "name": "", //模式名称
+ "path": "pages_app/login/login", //启动页面,必选
+ "query": "" //启动参数,在页面的onLoad函数里面得到
+ }
+ ]
+ }
+}
diff --git a/pages/education/education.vue b/pages/education/education.vue
new file mode 100644
index 0000000..c36f4bf
--- /dev/null
+++ b/pages/education/education.vue
@@ -0,0 +1,287 @@
+
+
+
+
+
+
+
+
+
+ 肝胆精品课
+ 肝胆精品课,筑梦·医路成长
+
+
+
+
+
+
+
+
+
+
+ 肝胆视频
+ 数千集精彩报告等您来看
+
+
+
+
+
+
+
+
+
+
+ 肝胆课件
+ 国内专业优质肝胆课件共享平台
+
+
+
+
+
+
+
+
+
+
+ 病例讨论
+ 互帮互助,病例共讨
+
+
+
+
+
+
+
+
+
+
+ 病例荟萃
+ 一线专家临床总结
+
+
+
+
+
+
+
+
+
+
+ 现代肝病学院
+ 一期一关注,绝对收获满满
+
+
+
+
+
+
+
+
+
+
+ 新手教程
+ 手把手助您用好专家工作室
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/index/index.vue b/pages/index/index.vue
new file mode 100644
index 0000000..d21f897
--- /dev/null
+++ b/pages/index/index.vue
@@ -0,0 +1,1461 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.title }}
+ {{ item.subtitle }}
+
+
+
+ 🌴
+
+
+ 🏖️
+ 🏐
+
+
+ 👨⚕️
+ 📚
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.text }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 8月6日
+
+
+
+
+ {{ item.content }}
+
+
+
+
+
+
+
+
+
+
+
+ 专题E站
+
+
+
+
+
+ {{ item.title }}
+ {{ item.desc }}
+
+
+ {{ item.icon }}
+ ›
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.title }}
+ {{ item.status }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.content }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ tab.name }}
+
+
+
+ 更多
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.title }}
+
+
+
+ 查看
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 今天是我们相识的第211天
+ 本周共签到2次
+ 已经连续签到2天
+ 连续签到获取更多积分
+
+ 我是新闻内容
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/live/live.vue b/pages/live/live.vue
new file mode 100644
index 0000000..1a2595f
--- /dev/null
+++ b/pages/live/live.vue
@@ -0,0 +1,807 @@
+
+
+
+
+
+
+ 会议时间
+
+
+
+
+ 会议地点
+
+
+
+
+ 会议回放
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.date }}
+
+
+
+
+ {{ item.title }}
+
+
+
+
+
+ 预告
+
+
+
+
+
+
+ {{ item.time }}
+
+
+
+ {{ item.location }}
+
+
+
+
+
+
+
+
+
+
+ 加载中...
+
+
+ 上拉加载更多
+
+
+ 没有更多数据了
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 过往会议
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/my/my.vue b/pages/my/my.vue
new file mode 100644
index 0000000..5c404eb
--- /dev/null
+++ b/pages/my/my.vue
@@ -0,0 +1,632 @@
+
+
+
+
+
+
+
+
+
+ 邹建东
+
+
+
+
+
+ 5
+ 随访患者数
+
+
+ 0
+ 公益咨询数
+
+
+ 0
+ 患者送花数
+
+
+
+ 签到
+
+
+
+
+
+
+ 随访服务
+
+
+
+ 患者审核
+
+
+
+ 患者分组
+
+
+
+ 群发消息
+
+
+
+ 随访二维码
+
+
+
+ 出诊计划
+
+
+
+
+
+
+
+ 学习进步
+
+
+
+ 我的视频
+
+
+
+ 我的课程
+
+
+
+ 我的下载
+
+
+
+ 我的收藏
+
+
+
+
+
+
+ 账户明细
+
+
+
+ 我的账户
+
+
+
+ 我的积分
+
+
+
+ 我的福利
+
+
+
+ 我的鲜花
+
+
+
+ 课件明细
+
+
+
+ 课程明细
+
+
+
+ 送心意
+
+
+
+
+
+
+ 常用操作
+
+
+
+ 微信解绑
+
+
+
+ 更换手机号
+
+
+
+ 通知已开
+
+
+
+ V4.1.4
+
+
+
+
+
+
+
+
+
+
+
+ 福利卡兑换
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 发票管理
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 常用银行卡
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 设置与帮助
+
+
+
+
+
+
+
+
+
+
+
+
+ 2024
+ 年度总结
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/patientClass/patientClass.vue b/pages/patientClass/patientClass.vue
new file mode 100644
index 0000000..6cf2213
--- /dev/null
+++ b/pages/patientClass/patientClass.vue
@@ -0,0 +1,561 @@
+
+
+
+
+
+
+
+
+
+
+ 患教文库
+
+
+ 患教视频
+
+
+ 常见问题
+
+
+
+
+
+
+
+ 搜索
+
+
+
+ 最新
+
+
+
+
+ 筛选
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ article.title }}
+
+ 今日
+ {{ article.date }}
+
+
+
+ {{ article.views }}
+
+
+
+ {{ article.likes }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages_app/login/login.vue b/pages_app/login/login.vue
new file mode 100644
index 0000000..b988f2c
--- /dev/null
+++ b/pages_app/login/login.vue
@@ -0,0 +1,607 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 专家端
+
+
+
+
+
+ 176****8628
+
+
+
+
+ 本机号码一键登录
+
+
+
+
+ 短信验证码登录
+
+
+
+
+
+
+
+ 微信登录
+
+
+
+
+
+
+ 短信验证码登录
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 我已阅读并同意
+ 《中国移动认证服务条款》
+ 和
+ 《肝胆相照隐私政策》
+ 、
+ 《肝胆相照用户服务协议》
+ 并使用本机号码登录并注册
+
+
+
+
+
+
+
+
+
+
diff --git a/pages_app/news/news.vue b/pages_app/news/news.vue
new file mode 100644
index 0000000..3989597
--- /dev/null
+++ b/pages_app/news/news.vue
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages_app/pwdLogin/pwdLogin.vue b/pages_app/pwdLogin/pwdLogin.vue
new file mode 100644
index 0000000..967287f
--- /dev/null
+++ b/pages_app/pwdLogin/pwdLogin.vue
@@ -0,0 +1,487 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 专家端
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 登录
+
+
+ 短信验证码登录
+
+
+
+
+
+
+
+
+
+
+ 微信登录
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 我已阅读并同意
+ 《中国移动认证服务条款》
+ 和
+ 《肝胆相照隐私政策》
+ 、
+ 《肝胆相照用户服务协议》
+ 并使用本机号码登录并注册
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages_app/qikan/qikan.vue b/pages_app/qikan/qikan.vue
new file mode 100644
index 0000000..db087c1
--- /dev/null
+++ b/pages_app/qikan/qikan.vue
@@ -0,0 +1,694 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 代查文献
+
+
+
+
+
+ 英文文献
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 接收邮箱
+ *
+
+
+
+
+
+
+
+
+
+
+ 文献{{ index + 1 }}
+
+
+
+
+
+
+
+ 文献名称
+ *
+
+
+
+
+
+
+
+
+
+ 作者
+
+
+
+
+
+
+
+
+
+ 期刊名称
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 添加代查文献
+
+
+
+
+
+ 还可添加{{ 5 - literatureList.length }}篇
+
+
+
+
+
+
+
+
+
+
+ 注意
+ 每次至多提交5篇文献代查
+ 每篇文献代查消耗50肝胆积分,代查成功后扣除
+ 不支持模糊代查,请尽可能详细提供所需文献信息
+
+
+
+
+
+
+
+
+
+
+
+ 英文文献功能正在开发中...
+
+
+
+
+
+
+
+ 诊疗指南
+
+
+ 期刊杂志
+
+
+ 常用工具
+
+
+
+
+
+
+
+
diff --git a/pages_app/search/search.vue b/pages_app/search/search.vue
new file mode 100644
index 0000000..2dd3c30
--- /dev/null
+++ b/pages_app/search/search.vue
@@ -0,0 +1,357 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
diff --git a/pages_app/smsLogin/smsLogin.vue b/pages_app/smsLogin/smsLogin.vue
new file mode 100644
index 0000000..f542595
--- /dev/null
+++ b/pages_app/smsLogin/smsLogin.vue
@@ -0,0 +1,593 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 专家端
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ countdownText }}
+
+
+
+
+
+
+
+ 登录
+
+
+ 账号密码登录
+
+
+
+
+
+
+
+
+
+
+ 微信登录
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 我已阅读并同意
+ 《中国移动认证服务条款》
+ 和
+ 《肝胆相照隐私政策》
+ 、
+ 《肝胆相照用户服务协议》
+ 并使用本机号码登录并注册
+
+
+
+
+
+
+
+
+
+
diff --git a/pages_app/video/video.vue b/pages_app/video/video.vue
new file mode 100644
index 0000000..bd1402b
--- /dev/null
+++ b/pages_app/video/video.vue
@@ -0,0 +1,468 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{bannerVideo.title}}
+
+
+
+
+
+
+
+ 全部视频
+
+
+
+ 最新
+
+
+
+ 筛选
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{video.title}}
+
+ {{video.author}}
+
+
+ {{video.viewCount}}
+
+
+
+
+
+
+
+
+
+
+
+
+ 暂无视频内容
+
+
+
+
+
+
+
+
diff --git a/pages_app/zhinan/zhinan.vue b/pages_app/zhinan/zhinan.vue
new file mode 100644
index 0000000..756a613
--- /dev/null
+++ b/pages_app/zhinan/zhinan.vue
@@ -0,0 +1,393 @@
+
+
+
+
+
+
+
+
+
+
+ 搜索
+
+
+
+
+ 筛选
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.title }}
+ (共{{ item.count }}份)
+
+
+
+
+
+
+
+ 诊疗指南
+
+
+ 期刊杂志
+
+
+ 常用工具
+
+
+
+
+
+
+
+
diff --git a/static/all_video.png b/static/all_video.png
new file mode 100644
index 0000000..0e27072
Binary files /dev/null and b/static/all_video.png differ
diff --git a/static/bibglijiaoliu.png b/static/bibglijiaoliu.png
new file mode 100644
index 0000000..86db248
Binary files /dev/null and b/static/bibglijiaoliu.png differ
diff --git a/static/big_background_my.png b/static/big_background_my.png
new file mode 100644
index 0000000..55a6d3f
Binary files /dev/null and b/static/big_background_my.png differ
diff --git a/static/big_home.png b/static/big_home.png
new file mode 100644
index 0000000..26e18c2
Binary files /dev/null and b/static/big_home.png differ
diff --git a/static/big_home_d.png b/static/big_home_d.png
new file mode 100644
index 0000000..8dbf4a7
Binary files /dev/null and b/static/big_home_d.png differ
diff --git a/static/big_my.png b/static/big_my.png
new file mode 100644
index 0000000..93d779a
Binary files /dev/null and b/static/big_my.png differ
diff --git a/static/big_my_d.png b/static/big_my_d.png
new file mode 100644
index 0000000..6fbecba
Binary files /dev/null and b/static/big_my_d.png differ
diff --git a/static/bo_bg.png b/static/bo_bg.png
new file mode 100644
index 0000000..e8a141c
Binary files /dev/null and b/static/bo_bg.png differ
diff --git a/static/bofang.png b/static/bofang.png
new file mode 100644
index 0000000..bb4cc29
Binary files /dev/null and b/static/bofang.png differ
diff --git a/static/cb_down.png b/static/cb_down.png
new file mode 100644
index 0000000..ed71ff2
Binary files /dev/null and b/static/cb_down.png differ
diff --git a/static/cb_screen_no.png b/static/cb_screen_no.png
new file mode 100644
index 0000000..9f3c5fd
Binary files /dev/null and b/static/cb_screen_no.png differ
diff --git a/static/cb_screen_yes.png b/static/cb_screen_yes.png
new file mode 100644
index 0000000..b3090ef
Binary files /dev/null and b/static/cb_screen_yes.png differ
diff --git a/static/cb_up.png b/static/cb_up.png
new file mode 100644
index 0000000..35a3a5c
Binary files /dev/null and b/static/cb_up.png differ
diff --git a/static/classroom.png b/static/classroom.png
new file mode 100644
index 0000000..19fe6ca
Binary files /dev/null and b/static/classroom.png differ
diff --git a/static/classroomOn.png b/static/classroomOn.png
new file mode 100644
index 0000000..afff293
Binary files /dev/null and b/static/classroomOn.png differ
diff --git a/static/course_no.png b/static/course_no.png
new file mode 100644
index 0000000..6a8da3a
Binary files /dev/null and b/static/course_no.png differ
diff --git a/static/course_yes.png b/static/course_yes.png
new file mode 100644
index 0000000..9cc8e59
Binary files /dev/null and b/static/course_yes.png differ
diff --git a/static/customicons.css b/static/customicons.css
new file mode 100644
index 0000000..14ed5fa
--- /dev/null
+++ b/static/customicons.css
@@ -0,0 +1,20 @@
+@font-face {
+ font-family: "customicons"; /* Project id 2878519 */
+ src:url('/static/customicons.ttf') format('truetype');
+}
+
+.customicons {
+ font-family: "customicons" !important;
+}
+
+.youxi:before {
+ content: "\e60e";
+}
+
+.wenjian:before {
+ content: "\e60f";
+}
+
+.zhuanfa:before {
+ content: "\e610";
+}
diff --git a/static/customicons.ttf b/static/customicons.ttf
new file mode 100644
index 0000000..a3c8ab9
Binary files /dev/null and b/static/customicons.ttf differ
diff --git a/static/cyhhk.png b/static/cyhhk.png
new file mode 100644
index 0000000..6618cf8
Binary files /dev/null and b/static/cyhhk.png differ
diff --git a/static/czjh.png b/static/czjh.png
new file mode 100644
index 0000000..de799c0
Binary files /dev/null and b/static/czjh.png differ
diff --git a/static/delete_paper.png b/static/delete_paper.png
new file mode 100644
index 0000000..13d2b1b
Binary files /dev/null and b/static/delete_paper.png differ
diff --git a/static/download.png b/static/download.png
new file mode 100644
index 0000000..5b905b2
Binary files /dev/null and b/static/download.png differ
diff --git a/static/education.png b/static/education.png
new file mode 100644
index 0000000..9a77a1a
Binary files /dev/null and b/static/education.png differ
diff --git a/static/educationOn.png b/static/educationOn.png
new file mode 100644
index 0000000..7c3ebf7
Binary files /dev/null and b/static/educationOn.png differ
diff --git a/static/email_bg.png b/static/email_bg.png
new file mode 100644
index 0000000..c74d775
Binary files /dev/null and b/static/email_bg.png differ
diff --git a/static/eye_close.png b/static/eye_close.png
new file mode 100644
index 0000000..3e9ac96
Binary files /dev/null and b/static/eye_close.png differ
diff --git a/static/eye_open.png b/static/eye_open.png
new file mode 100644
index 0000000..ae5aa59
Binary files /dev/null and b/static/eye_open.png differ
diff --git a/static/fpgl.png b/static/fpgl.png
new file mode 100644
index 0000000..341825e
Binary files /dev/null and b/static/fpgl.png differ
diff --git a/static/fulicard.png b/static/fulicard.png
new file mode 100644
index 0000000..7ace625
Binary files /dev/null and b/static/fulicard.png differ
diff --git a/static/fxxbb.png b/static/fxxbb.png
new file mode 100644
index 0000000..08a11de
Binary files /dev/null and b/static/fxxbb.png differ
diff --git a/static/ganbingxueyuan.png b/static/ganbingxueyuan.png
new file mode 100644
index 0000000..8ffcf4d
Binary files /dev/null and b/static/ganbingxueyuan.png differ
diff --git a/static/gandankejian.png b/static/gandankejian.png
new file mode 100644
index 0000000..98ee37a
Binary files /dev/null and b/static/gandankejian.png differ
diff --git a/static/gandanshipin.png b/static/gandanshipin.png
new file mode 100644
index 0000000..934e1ef
Binary files /dev/null and b/static/gandanshipin.png differ
diff --git a/static/ghsjh.png b/static/ghsjh.png
new file mode 100644
index 0000000..3529c3f
Binary files /dev/null and b/static/ghsjh.png differ
diff --git a/static/home_more.png b/static/home_more.png
new file mode 100644
index 0000000..f4994ce
Binary files /dev/null and b/static/home_more.png differ
diff --git a/static/home_no_qiandao_icon.png b/static/home_no_qiandao_icon.png
new file mode 100644
index 0000000..8388c76
Binary files /dev/null and b/static/home_no_qiandao_icon.png differ
diff --git a/static/home_nor.png b/static/home_nor.png
new file mode 100644
index 0000000..73baafd
Binary files /dev/null and b/static/home_nor.png differ
diff --git a/static/home_qiandao_icon.png b/static/home_qiandao_icon.png
new file mode 100644
index 0000000..cc02287
Binary files /dev/null and b/static/home_qiandao_icon.png differ
diff --git a/static/home_sel.png b/static/home_sel.png
new file mode 100644
index 0000000..240ff16
Binary files /dev/null and b/static/home_sel.png differ
diff --git a/static/hzfz.png b/static/hzfz.png
new file mode 100644
index 0000000..0872613
Binary files /dev/null and b/static/hzfz.png differ
diff --git a/static/hzsh.png b/static/hzsh.png
new file mode 100644
index 0000000..a9d77c4
Binary files /dev/null and b/static/hzsh.png differ
diff --git a/static/icon_home_my_library.png b/static/icon_home_my_library.png
new file mode 100644
index 0000000..5cb571f
Binary files /dev/null and b/static/icon_home_my_library.png differ
diff --git a/static/icon_home_my_patient.png b/static/icon_home_my_patient.png
new file mode 100644
index 0000000..e52a5e8
Binary files /dev/null and b/static/icon_home_my_patient.png differ
diff --git a/static/icon_home_my_public.png b/static/icon_home_my_public.png
new file mode 100644
index 0000000..02e5304
Binary files /dev/null and b/static/icon_home_my_public.png differ
diff --git a/static/icon_home_video.png b/static/icon_home_video.png
new file mode 100644
index 0000000..838f6d7
Binary files /dev/null and b/static/icon_home_video.png differ
diff --git a/static/icon_login_logo.png b/static/icon_login_logo.png
new file mode 100644
index 0000000..0f5f466
Binary files /dev/null and b/static/icon_login_logo.png differ
diff --git a/static/item_department_no.png b/static/item_department_no.png
new file mode 100644
index 0000000..1542f39
Binary files /dev/null and b/static/item_department_no.png differ
diff --git a/static/item_department_yes.png b/static/item_department_yes.png
new file mode 100644
index 0000000..b175d8f
Binary files /dev/null and b/static/item_department_yes.png differ
diff --git a/static/item_doctor_no.png b/static/item_doctor_no.png
new file mode 100644
index 0000000..2edac28
Binary files /dev/null and b/static/item_doctor_no.png differ
diff --git a/static/item_doctor_yes.png b/static/item_doctor_yes.png
new file mode 100644
index 0000000..900dbfe
Binary files /dev/null and b/static/item_doctor_yes.png differ
diff --git a/static/item_drug_no.png b/static/item_drug_no.png
new file mode 100644
index 0000000..1841c4a
Binary files /dev/null and b/static/item_drug_no.png differ
diff --git a/static/item_drug_pass.png b/static/item_drug_pass.png
new file mode 100644
index 0000000..ad48e6f
Binary files /dev/null and b/static/item_drug_pass.png differ
diff --git a/static/item_hospital_no.png b/static/item_hospital_no.png
new file mode 100644
index 0000000..72ebf85
Binary files /dev/null and b/static/item_hospital_no.png differ
diff --git a/static/item_hospital_yes.png b/static/item_hospital_yes.png
new file mode 100644
index 0000000..07add14
Binary files /dev/null and b/static/item_hospital_yes.png differ
diff --git a/static/item_mall_no.png b/static/item_mall_no.png
new file mode 100644
index 0000000..6eade6f
Binary files /dev/null and b/static/item_mall_no.png differ
diff --git a/static/item_mall_yes.png b/static/item_mall_yes.png
new file mode 100644
index 0000000..3cd440c
Binary files /dev/null and b/static/item_mall_yes.png differ
diff --git a/static/item_news_no.png b/static/item_news_no.png
new file mode 100644
index 0000000..7c73fad
Binary files /dev/null and b/static/item_news_no.png differ
diff --git a/static/item_news_pass.png b/static/item_news_pass.png
new file mode 100644
index 0000000..ec9ee20
Binary files /dev/null and b/static/item_news_pass.png differ
diff --git a/static/item_patient_no.png b/static/item_patient_no.png
new file mode 100644
index 0000000..41d58b1
Binary files /dev/null and b/static/item_patient_no.png differ
diff --git a/static/item_patient_yes.png b/static/item_patient_yes.png
new file mode 100644
index 0000000..4ab77e5
Binary files /dev/null and b/static/item_patient_yes.png differ
diff --git a/static/item_science_no.png b/static/item_science_no.png
new file mode 100644
index 0000000..89a46f8
Binary files /dev/null and b/static/item_science_no.png differ
diff --git a/static/item_science_pass.png b/static/item_science_pass.png
new file mode 100644
index 0000000..f7e75d8
Binary files /dev/null and b/static/item_science_pass.png differ
diff --git a/static/item_video_no.png b/static/item_video_no.png
new file mode 100644
index 0000000..2c42f07
Binary files /dev/null and b/static/item_video_no.png differ
diff --git a/static/item_video_pass.png b/static/item_video_pass.png
new file mode 100644
index 0000000..575ca69
Binary files /dev/null and b/static/item_video_pass.png differ
diff --git a/static/item_wf_no.png b/static/item_wf_no.png
new file mode 100644
index 0000000..5c5e1d5
Binary files /dev/null and b/static/item_wf_no.png differ
diff --git a/static/item_wf_pass.png b/static/item_wf_pass.png
new file mode 100644
index 0000000..7ca8c54
Binary files /dev/null and b/static/item_wf_pass.png differ
diff --git a/static/jing_sign.png b/static/jing_sign.png
new file mode 100644
index 0000000..e544498
Binary files /dev/null and b/static/jing_sign.png differ
diff --git a/static/jingdian_bingli.png b/static/jingdian_bingli.png
new file mode 100644
index 0000000..ea1f3d9
Binary files /dev/null and b/static/jingdian_bingli.png differ
diff --git a/static/jingdianbingli.png b/static/jingdianbingli.png
new file mode 100644
index 0000000..f1ab8f5
Binary files /dev/null and b/static/jingdianbingli.png differ
diff --git a/static/jingpin_no.png b/static/jingpin_no.png
new file mode 100644
index 0000000..621ba08
Binary files /dev/null and b/static/jingpin_no.png differ
diff --git a/static/jingpin_yes.png b/static/jingpin_yes.png
new file mode 100644
index 0000000..2950377
Binary files /dev/null and b/static/jingpin_yes.png differ
diff --git a/static/jingpingke.png b/static/jingpingke.png
new file mode 100644
index 0000000..f7bf2fa
Binary files /dev/null and b/static/jingpingke.png differ
diff --git a/static/jingpinkecheng.png b/static/jingpinkecheng.png
new file mode 100644
index 0000000..bd3a983
Binary files /dev/null and b/static/jingpinkecheng.png differ
diff --git a/static/kcmx.png b/static/kcmx.png
new file mode 100644
index 0000000..58b4e24
Binary files /dev/null and b/static/kcmx.png differ
diff --git a/static/keyanxiangmu.png b/static/keyanxiangmu.png
new file mode 100644
index 0000000..23015b1
Binary files /dev/null and b/static/keyanxiangmu.png differ
diff --git a/static/kjmx.png b/static/kjmx.png
new file mode 100644
index 0000000..4eb07aa
Binary files /dev/null and b/static/kjmx.png differ
diff --git a/static/lczhaomu.png b/static/lczhaomu.png
new file mode 100644
index 0000000..8e934bc
Binary files /dev/null and b/static/lczhaomu.png differ
diff --git a/static/linchuangzhaomu.png b/static/linchuangzhaomu.png
new file mode 100644
index 0000000..e6bcaa7
Binary files /dev/null and b/static/linchuangzhaomu.png differ
diff --git a/static/live.png b/static/live.png
new file mode 100644
index 0000000..5e4aeba
Binary files /dev/null and b/static/live.png differ
diff --git a/static/liveOn.png b/static/liveOn.png
new file mode 100644
index 0000000..c943540
Binary files /dev/null and b/static/liveOn.png differ
diff --git a/static/livebg.png b/static/livebg.png
new file mode 100644
index 0000000..146488f
Binary files /dev/null and b/static/livebg.png differ
diff --git a/static/login_new_select.png b/static/login_new_select.png
new file mode 100644
index 0000000..b996722
Binary files /dev/null and b/static/login_new_select.png differ
diff --git a/static/login_new_unselect.png b/static/login_new_unselect.png
new file mode 100644
index 0000000..19bbb25
Binary files /dev/null and b/static/login_new_unselect.png differ
diff --git a/static/lunbo_bg.png b/static/lunbo_bg.png
new file mode 100644
index 0000000..103066f
Binary files /dev/null and b/static/lunbo_bg.png differ
diff --git a/static/more_bg.png b/static/more_bg.png
new file mode 100644
index 0000000..61c5511
Binary files /dev/null and b/static/more_bg.png differ
diff --git a/static/my.png b/static/my.png
new file mode 100644
index 0000000..fbab082
Binary files /dev/null and b/static/my.png differ
diff --git a/static/myOn.png b/static/myOn.png
new file mode 100644
index 0000000..e9f3154
Binary files /dev/null and b/static/myOn.png differ
diff --git a/static/pap_bg.png b/static/pap_bg.png
new file mode 100644
index 0000000..bead2c2
Binary files /dev/null and b/static/pap_bg.png differ
diff --git a/static/paper_bg.png b/static/paper_bg.png
new file mode 100644
index 0000000..60a10e9
Binary files /dev/null and b/static/paper_bg.png differ
diff --git a/static/paper_question.png b/static/paper_question.png
new file mode 100644
index 0000000..8492612
Binary files /dev/null and b/static/paper_question.png differ
diff --git a/static/paper_submit.png b/static/paper_submit.png
new file mode 100644
index 0000000..bd14af6
Binary files /dev/null and b/static/paper_submit.png differ
diff --git a/static/patient_video.png b/static/patient_video.png
new file mode 100644
index 0000000..a2eff9d
Binary files /dev/null and b/static/patient_video.png differ
diff --git a/static/patient_video_no.png b/static/patient_video_no.png
new file mode 100644
index 0000000..3bf73b4
Binary files /dev/null and b/static/patient_video_no.png differ
diff --git a/static/patient_video_yes.png b/static/patient_video_yes.png
new file mode 100644
index 0000000..2c23ed0
Binary files /dev/null and b/static/patient_video_yes.png differ
diff --git a/static/phone.png b/static/phone.png
new file mode 100644
index 0000000..37d95eb
Binary files /dev/null and b/static/phone.png differ
diff --git a/static/play_long.png b/static/play_long.png
new file mode 100644
index 0000000..9a69b46
Binary files /dev/null and b/static/play_long.png differ
diff --git a/static/point_down.png b/static/point_down.png
new file mode 100644
index 0000000..54fe4c2
Binary files /dev/null and b/static/point_down.png differ
diff --git a/static/pwd.png b/static/pwd.png
new file mode 100644
index 0000000..4da5353
Binary files /dev/null and b/static/pwd.png differ
diff --git a/static/qd1_bg.9.png b/static/qd1_bg.9.png
new file mode 100644
index 0000000..e27ff5f
Binary files /dev/null and b/static/qd1_bg.9.png differ
diff --git a/static/qd_bg.9.png b/static/qd_bg.9.png
new file mode 100644
index 0000000..8557487
Binary files /dev/null and b/static/qd_bg.9.png differ
diff --git a/static/qfxz.png b/static/qfxz.png
new file mode 100644
index 0000000..e73a43c
Binary files /dev/null and b/static/qfxz.png differ
diff --git a/static/route.png b/static/route.png
new file mode 100644
index 0000000..133ee64
Binary files /dev/null and b/static/route.png differ
diff --git a/static/select_video.png b/static/select_video.png
new file mode 100644
index 0000000..80c925f
Binary files /dev/null and b/static/select_video.png differ
diff --git a/static/setting.png b/static/setting.png
new file mode 100644
index 0000000..d98624e
Binary files /dev/null and b/static/setting.png differ
diff --git a/static/sfewm.png b/static/sfewm.png
new file mode 100644
index 0000000..34ecaae
Binary files /dev/null and b/static/sfewm.png differ
diff --git a/static/sheng_bg.png b/static/sheng_bg.png
new file mode 100644
index 0000000..a1f3f25
Binary files /dev/null and b/static/sheng_bg.png differ
diff --git a/static/sign_day_true.png b/static/sign_day_true.png
new file mode 100644
index 0000000..c8c36ed
Binary files /dev/null and b/static/sign_day_true.png differ
diff --git a/static/sign_in_bng_big.png b/static/sign_in_bng_big.png
new file mode 100644
index 0000000..c6aed54
Binary files /dev/null and b/static/sign_in_bng_big.png differ
diff --git a/static/sms.png b/static/sms.png
new file mode 100644
index 0000000..567b1ec
Binary files /dev/null and b/static/sms.png differ
diff --git a/static/sxy.png b/static/sxy.png
new file mode 100644
index 0000000..5f0f6f8
Binary files /dev/null and b/static/sxy.png differ
diff --git a/static/triangle_green_theme.png b/static/triangle_green_theme.png
new file mode 100644
index 0000000..d5186b8
Binary files /dev/null and b/static/triangle_green_theme.png differ
diff --git a/static/triangle_green_theme_big.png b/static/triangle_green_theme_big.png
new file mode 100644
index 0000000..5f0f281
Binary files /dev/null and b/static/triangle_green_theme_big.png differ
diff --git a/static/triangle_normal.png b/static/triangle_normal.png
new file mode 100644
index 0000000..b4019bd
Binary files /dev/null and b/static/triangle_normal.png differ
diff --git a/static/triangle_normal_big.png b/static/triangle_normal_big.png
new file mode 100644
index 0000000..185f1b3
Binary files /dev/null and b/static/triangle_normal_big.png differ
diff --git a/static/video_all.png b/static/video_all.png
new file mode 100644
index 0000000..d6cb6c0
Binary files /dev/null and b/static/video_all.png differ
diff --git a/static/video_select.png b/static/video_select.png
new file mode 100644
index 0000000..6718850
Binary files /dev/null and b/static/video_select.png differ
diff --git a/static/wdfl.png b/static/wdfl.png
new file mode 100644
index 0000000..e0349fb
Binary files /dev/null and b/static/wdfl.png differ
diff --git a/static/wdjf.png b/static/wdjf.png
new file mode 100644
index 0000000..7e90626
Binary files /dev/null and b/static/wdjf.png differ
diff --git a/static/wdkc.png b/static/wdkc.png
new file mode 100644
index 0000000..4544653
Binary files /dev/null and b/static/wdkc.png differ
diff --git a/static/wdsc.png b/static/wdsc.png
new file mode 100644
index 0000000..43f2442
Binary files /dev/null and b/static/wdsc.png differ
diff --git a/static/wdsp.png b/static/wdsp.png
new file mode 100644
index 0000000..650e39e
Binary files /dev/null and b/static/wdsp.png differ
diff --git a/static/wdxh.png b/static/wdxh.png
new file mode 100644
index 0000000..fd5c796
Binary files /dev/null and b/static/wdxh.png differ
diff --git a/static/wdxz.png b/static/wdxz.png
new file mode 100644
index 0000000..1e58d19
Binary files /dev/null and b/static/wdxz.png differ
diff --git a/static/wdzh.png b/static/wdzh.png
new file mode 100644
index 0000000..b119bd2
Binary files /dev/null and b/static/wdzh.png differ
diff --git a/static/weixin_login.png b/static/weixin_login.png
new file mode 100644
index 0000000..c59c44e
Binary files /dev/null and b/static/weixin_login.png differ
diff --git a/static/wxjb.png b/static/wxjb.png
new file mode 100644
index 0000000..641ee8c
Binary files /dev/null and b/static/wxjb.png differ
diff --git a/static/xinshoujiaocheng.png b/static/xinshoujiaocheng.png
new file mode 100644
index 0000000..7c91745
Binary files /dev/null and b/static/xinshoujiaocheng.png differ
diff --git a/static/xxtx.png b/static/xxtx.png
new file mode 100644
index 0000000..36a935c
Binary files /dev/null and b/static/xxtx.png differ
diff --git a/uni.scss b/uni.scss
new file mode 100644
index 0000000..7225e5d
--- /dev/null
+++ b/uni.scss
@@ -0,0 +1,2 @@
+@import 'uview-plus/theme.scss';
+@import '@/uni_modules/uni-scss/variables.scss';
diff --git a/utils/auth.js b/utils/auth.js
new file mode 100644
index 0000000..05bcdb9
--- /dev/null
+++ b/utils/auth.js
@@ -0,0 +1,22 @@
+function auth(){ //鉴权
+ return new Promise((resolve,reject)=>{
+ uni.login({
+ provider: 'weixin', //使用微信登录
+ onlyAuthorize: true, //不弹出授权页面,直接进入微信登录流程
+ success(res){
+ if(res.errMsg=="login:ok"){
+ resolve(res.code)
+ }else{
+ uni.showToast({
+ title:res.errMsg,
+ icon:'error'
+ })
+ }
+ },
+ fail(err){
+ reject(err)
+ }
+ })
+ })
+ }
+ export default auth
\ No newline at end of file
diff --git a/utils/config.js b/utils/config.js
new file mode 100644
index 0000000..d3239b7
--- /dev/null
+++ b/utils/config.js
@@ -0,0 +1,16 @@
+let BASE_URL=''
+if(process.env.UNI_PLATFORM =="h5"){
+ if (window.location.href.indexOf('//casedata.igandan.com')>-1){
+ BASE_URL='https://prod-casedata.igandan.com/api'
+ }else{
+ BASE_URL='https://dev-casedata.igandan.com/api'
+ }
+}else{
+ const { envVersion } = uni.getAccountInfoSync().miniProgram;
+ if (envVersion == "release") {
+ BASE_URL='https://prod-casedata.igandan.com/api'
+ }else{
+ BASE_URL='https://dev-casedata.igandan.com/api'
+ }
+}
+export default BASE_URL
\ No newline at end of file
diff --git a/utils/cookie.js b/utils/cookie.js
new file mode 100644
index 0000000..cb7f960
--- /dev/null
+++ b/utils/cookie.js
@@ -0,0 +1,33 @@
+
+const cookie = {
+ //写cookies
+ setCookie: function(name, value) {
+ //let days = 0.5;
+ let exp = new Date();
+ exp.setTime(exp.getTime() + 15*60*1000)
+
+ // exp.setTime(exp.getTime() + days*24*60*60*1000)
+ document.cookie = name + '=' + escape (value) + ';expires=' + exp.toGMTString()
+ },
+ //读取cookies
+ readCookie: function (name) {
+ let arr = null
+ let reg = new RegExp('(^| )'+name+'=([^;]*)(;|$)')
+ if (document.cookie && (arr = document.cookie.match(reg))) {
+ return unescape(arr[2])
+ } else {
+ return null;
+ }
+ },
+ //删除cookies
+ delCookie: function (name) {
+ let cval = this.readCookie(name);
+ var domain = '.igandan.com';
+ if (cval!=null) {
+ document.cookie = name + '=;expires=' + (new Date(0)).toGMTString()+";path=/;domain="+domain
+ }
+ }
+ }
+
+ export default cookie
+
\ No newline at end of file
diff --git a/utils/navTo.js b/utils/navTo.js
new file mode 100644
index 0000000..ce47508
--- /dev/null
+++ b/utils/navTo.js
@@ -0,0 +1,46 @@
+import pageUrl from './pageUrl'
+
+function navTo(obj) {
+ let token = '';
+ if(process.env.UNI_PLATFORM =="h5"){
+ if(window.location.href.indexOf('//casedata.igandan.com')>-1){
+ token = uni.getStorageSync('AUTH_TOKEN_App');
+ }else{
+ token = uni.getStorageSync('DEV_AUTH_TOKEN_App');
+ }
+ }else{
+ const { envVersion } = uni.getAccountInfoSync().miniProgram;
+ if (envVersion == "release") {
+ token = uni.getStorageSync('AUTH_TOKEN_App');
+ }else{
+ token = uni.getStorageSync('DEV_AUTH_TOKEN_App');
+ }
+ }
+ if (!token) {
+ // let page_url = pageUrl();
+ // uni.setStorageSync('redirectUrl', page_url);
+ uni.navigateTo({
+ url: '/pages_app/login/login'
+ });
+ } else {
+ if(process.env.UNI_PLATFORM =="h5"){
+ uni.navigateTo(obj)
+ }else if(process.env.UNI_PLATFORM =="mp-weixin"){
+ const pages = getCurrentPages();
+ let len = pages.length;
+ console.log(len)
+ if (len >=10) {
+ uni.redirectTo(obj)
+ } else {
+ uni.navigateTo(obj)
+
+ }
+ }else{
+ uni.navigateTo(obj)
+ }
+ }
+
+
+}
+
+export default navTo
\ No newline at end of file
diff --git a/utils/pageUrl.js b/utils/pageUrl.js
new file mode 100644
index 0000000..1127538
--- /dev/null
+++ b/utils/pageUrl.js
@@ -0,0 +1,19 @@
+function pageUrl(){
+ // 获取当前页面的实例
+ const pages = getCurrentPages();
+ const currentPage = pages[pages.length - 1];
+
+ // 获取页面的完整URL
+ const url = currentPage.route; // 页面路径
+ const options = currentPage.options; // 如果有查询参数,将会在这里
+
+ // 拼接URL
+ let fullUrl = url + '?';
+ for (let key in options) {
+ fullUrl += `${key}=${options[key]}&`;
+ }
+ fullUrl = fullUrl.substring(0, fullUrl.length - 1); // 移除最后一个"&"
+
+ return fullUrl
+}
+export default pageUrl
\ No newline at end of file
diff --git a/utils/request.js b/utils/request.js
new file mode 100644
index 0000000..455fea1
--- /dev/null
+++ b/utils/request.js
@@ -0,0 +1,100 @@
+/**
+ * @Method Description
+ * @Author: zjd@
+ * @Description: 数据请求整合 处理
+ * @BASE_URL server
+ * @param {a===Object||file} 传给后台参数Method 请求方法 url 所请求的接口路径
+ * @return Promise对象 所有数据信息
+ * @createTime: 2024-7-22 15:05:06
+ */
+import BASE_URL from "./config.js";
+//import host from "@/utils/host";
+//import {msg} from "./util.js"
+//const BASE_URL=host+"/api"
+export const request = (url, data = {}, method = 'post', loading = false, contentType =
+ 'application/x-www-form-urlencoded') => {
+ if (loading) {
+ uni.showLoading({
+ title: '加载中',
+ mask: true
+ })
+
+ };
+ let token = '';
+ if (process.env.UNI_PLATFORM == "h5") {
+ if (window.location.href.indexOf('//App.igandan.com') > -1) {
+ token = uni.getStorageSync('AUTH_TOKEN_App');
+ } else {
+ token = uni.getStorageSync('DEV_AUTH_TOKEN_App');
+ }
+ } else if(process.env.UNI_PLATFORM == "mp-weixin") {
+ const {
+ envVersion
+ } = uni.getAccountInfoSync().miniProgram;
+ if (envVersion == "release") {
+ token = uni.getStorageSync('AUTH_TOKEN_App');
+ } else {
+ token = uni.getStorageSync('DEV_AUTH_TOKEN_App');
+ }
+ }
+ let header = {
+ 'content-type': contentType,
+ 'Authorization': 'Bearer ' + token
+ }
+ return new Promise(function(e, n) {
+ let timestamp = Date.now();
+ uni.request({
+ data,
+ url: url.indexOf('http') != -1 ? url : encodeURI(BASE_URL + url + "?timestamp=" +
+ timestamp),
+ method: method,
+ sslVerify: false,
+ header: url.indexOf('/manager/getSignature4bing') == -1 ? header : {},
+ timeout: 10000,
+ success: async (res) => {
+ var Authorization_token = res.header.Authorization;
+ if (Authorization_token) {
+ if (process.env.NODE_ENV === 'development') {
+ uni.setStorageSync('DEV_AUTH_TOKEN_App', Authorization_token);
+ } else {
+ uni.setStorageSync('AUTH_TOKEN_App', Authorization_token);
+ }
+
+ }
+ if (loading) {
+ uni.hideLoading();
+ };
+ if (res.data.code == 200){
+ e(res)
+ }else if (res.data.code == 401 || res.data.code == 403 || res.data.code ==
+ 405 || res.data.code == 406) {
+
+ uni.redirectTo({
+ url: '/pages_app/login/login'
+ });
+
+
+ } else if (res.data.code == 500) {
+
+ uni.showToast({
+ title: res.data.message,
+ icon: 'none',
+
+ })
+ n(res)
+ } else {
+ uni.showToast({
+ title: res.data.message,
+ icon: 'none',
+ });
+ n(res)
+
+
+ }
+ },
+ fail: function(err) {
+ "request:fail " === err.errMsg && msg("请求数据失败!"), n(err.data);
+ }
+ });
+ });
+}
\ No newline at end of file
diff --git a/utils/throttle.js b/utils/throttle.js
new file mode 100644
index 0000000..7ad983d
--- /dev/null
+++ b/utils/throttle.js
@@ -0,0 +1,14 @@
+ const throttle=function(fn,wait=1500){
+ var flag = true;
+ var timer = null;
+ return function(){
+ if(flag) {
+ fn.apply(this,arguments);
+ flag = false;
+ timer = setTimeout(() => {
+ flag = true
+ },wait)
+ }
+ }
+}
+export default throttle
\ No newline at end of file