Parcourir la source

项目初始化

zz il y a 1 semaine
commit
c5704f1aa0
100 fichiers modifiés avec 13703 ajouts et 0 suppressions
  1. 8 0
      .idea/.gitignore
  2. 8 0
      .idea/XLJK.iml
  3. 8 0
      .idea/modules.xml
  4. 19 0
      .idea/php.xml
  5. 6 0
      .idea/vcs.xml
  6. 2 0
      xinlijiankang-uniapp-main/.gitattributes
  7. 2 0
      xinlijiankang-uniapp-main/.gitignore
  8. 8 0
      xinlijiankang-uniapp-main/.idea/.gitignore
  9. 8 0
      xinlijiankang-uniapp-main/.idea/modules.xml
  10. 19 0
      xinlijiankang-uniapp-main/.idea/php.xml
  11. 4 0
      xinlijiankang-uniapp-main/.idea/vcs.xml
  12. 8 0
      xinlijiankang-uniapp-main/.idea/xinlijiankang-uniapp-main.iml
  13. 135 0
      xinlijiankang-uniapp-main/.manifest.json
  14. 28 0
      xinlijiankang-uniapp-main/App.vue
  15. 36 0
      xinlijiankang-uniapp-main/README.en.md
  16. 2 0
      xinlijiankang-uniapp-main/README.md
  17. 108 0
      xinlijiankang-uniapp-main/apis/http.js
  18. 5 0
      xinlijiankang-uniapp-main/apis/index.config.js
  19. 85 0
      xinlijiankang-uniapp-main/apis/request.js
  20. 28 0
      xinlijiankang-uniapp-main/common/aes.js
  21. 0 0
      xinlijiankang-uniapp-main/common/crypto-js.min.js
  22. 101 0
      xinlijiankang-uniapp-main/components/tabBar/tabBar.vue
  23. 20 0
      xinlijiankang-uniapp-main/index.html
  24. 34 0
      xinlijiankang-uniapp-main/main.js
  25. 140 0
      xinlijiankang-uniapp-main/manifest.json
  26. 505 0
      xinlijiankang-uniapp-main/pages.json
  27. 109 0
      xinlijiankang-uniapp-main/pages/index/SearchPage.vue
  28. 234 0
      xinlijiankang-uniapp-main/pages/index/about.vue
  29. 278 0
      xinlijiankang-uniapp-main/pages/index/apply.vue
  30. 180 0
      xinlijiankang-uniapp-main/pages/index/coupon.vue
  31. 309 0
      xinlijiankang-uniapp-main/pages/index/hd.vue
  32. 339 0
      xinlijiankang-uniapp-main/pages/index/hykt.vue
  33. 233 0
      xinlijiankang-uniapp-main/pages/index/hyktdis.vue
  34. 369 0
      xinlijiankang-uniapp-main/pages/index/index.vue
  35. 252 0
      xinlijiankang-uniapp-main/pages/index/invite.vue
  36. 147 0
      xinlijiankang-uniapp-main/pages/index/jiehuo-pl.vue
  37. 266 0
      xinlijiankang-uniapp-main/pages/index/jiehuo.vue
  38. 242 0
      xinlijiankang-uniapp-main/pages/index/kc.vue
  39. 140 0
      xinlijiankang-uniapp-main/pages/index/kcxq-t.vue
  40. 430 0
      xinlijiankang-uniapp-main/pages/index/kcxq-x.vue
  41. 41 0
      xinlijiankang-uniapp-main/pages/index/watchLive.vue
  42. 97 0
      xinlijiankang-uniapp-main/pages/index/wdjh-hf.vue
  43. 115 0
      xinlijiankang-uniapp-main/pages/index/wdjh.vue
  44. 98 0
      xinlijiankang-uniapp-main/pages/index/yhdl.vue
  45. 180 0
      xinlijiankang-uniapp-main/pages/index/ztsp.vue
  46. 237 0
      xinlijiankang-uniapp-main/pages/index/zxshi.vue
  47. 41 0
      xinlijiankang-uniapp-main/pages/index/zxxq.vue
  48. 60 0
      xinlijiankang-uniapp-main/pages/index/zyDetail.vue
  49. 163 0
      xinlijiankang-uniapp-main/pages/index/zylx.vue
  50. 172 0
      xinlijiankang-uniapp-main/pages/index/zyxq.vue
  51. 248 0
      xinlijiankang-uniapp-main/pages/lecturer/Live.nvue
  52. 63 0
      xinlijiankang-uniapp-main/pages/lecturer/cpfa.vue
  53. 88 0
      xinlijiankang-uniapp-main/pages/lecturer/kcdd-xq.vue
  54. 113 0
      xinlijiankang-uniapp-main/pages/lecturer/kcdd-xqb.vue
  55. 131 0
      xinlijiankang-uniapp-main/pages/lecturer/kcdd.vue
  56. 356 0
      xinlijiankang-uniapp-main/pages/lecturer/modifyInfo/modifyInfo.vue
  57. 632 0
      xinlijiankang-uniapp-main/pages/lecturer/my.vue
  58. 672 0
      xinlijiankang-uniapp-main/pages/lecturer/sckc.vue
  59. 78 0
      xinlijiankang-uniapp-main/pages/lecturer/wdcp.vue
  60. 91 0
      xinlijiankang-uniapp-main/pages/lecturer/wdgz.vue
  61. 144 0
      xinlijiankang-uniapp-main/pages/lecturer/wdhd.vue
  62. 137 0
      xinlijiankang-uniapp-main/pages/lecturer/wdkc-luxj.vue
  63. 101 0
      xinlijiankang-uniapp-main/pages/lecturer/wdkc-zhixj.vue
  64. 190 0
      xinlijiankang-uniapp-main/pages/lecturer/wdkc.vue
  65. 86 0
      xinlijiankang-uniapp-main/pages/lecturer/wdsc.vue
  66. 112 0
      xinlijiankang-uniapp-main/pages/lecturer/wdxuexi.vue
  67. 149 0
      xinlijiankang-uniapp-main/pages/lecturer/wdzx.vue
  68. 337 0
      xinlijiankang-uniapp-main/pages/login/appLogin.vue
  69. 275 0
      xinlijiankang-uniapp-main/pages/login/sigUp.vue
  70. 254 0
      xinlijiankang-uniapp-main/pages/login/updatePwd.vue
  71. 60 0
      xinlijiankang-uniapp-main/pages/user/cp-cg.vue
  72. 127 0
      xinlijiankang-uniapp-main/pages/user/cp-fa.vue
  73. 45 0
      xinlijiankang-uniapp-main/pages/user/cp-fk.vue
  74. 224 0
      xinlijiankang-uniapp-main/pages/user/cp-jg.vue
  75. 257 0
      xinlijiankang-uniapp-main/pages/user/cp-pay.vue
  76. 184 0
      xinlijiankang-uniapp-main/pages/user/cp-sc.vue
  77. 61 0
      xinlijiankang-uniapp-main/pages/user/cp.vue
  78. 22 0
      xinlijiankang-uniapp-main/pages/user/cpView.vue
  79. 63 0
      xinlijiankang-uniapp-main/pages/user/fkcg.vue
  80. 143 0
      xinlijiankang-uniapp-main/pages/user/kcxq-b.vue
  81. 100 0
      xinlijiankang-uniapp-main/pages/user/kcxq.vue
  82. 131 0
      xinlijiankang-uniapp-main/pages/user/khzx-xq.vue
  83. 199 0
      xinlijiankang-uniapp-main/pages/user/khzx.vue
  84. 171 0
      xinlijiankang-uniapp-main/pages/user/my.vue
  85. 183 0
      xinlijiankang-uniapp-main/pages/user/rmkc.vue
  86. 50 0
      xinlijiankang-uniapp-main/pages/user/us-cpfa.vue
  87. 175 0
      xinlijiankang-uniapp-main/pages/user/us-jiehuo.vue
  88. 65 0
      xinlijiankang-uniapp-main/pages/user/us-wdcp.vue
  89. 160 0
      xinlijiankang-uniapp-main/pages/user/us-wdgz.vue
  90. 244 0
      xinlijiankang-uniapp-main/pages/user/us-wdhd.vue
  91. 100 0
      xinlijiankang-uniapp-main/pages/user/us-wdsc.vue
  92. 90 0
      xinlijiankang-uniapp-main/pages/user/us-wdxuexi.vue
  93. 195 0
      xinlijiankang-uniapp-main/pages/user/wdhd-tc.vue
  94. 338 0
      xinlijiankang-uniapp-main/pages/user/wdhd-xq.vue
  95. BIN
      xinlijiankang-uniapp-main/static/dibu/boa1.png
  96. BIN
      xinlijiankang-uniapp-main/static/dibu/boa2.png
  97. BIN
      xinlijiankang-uniapp-main/static/dibu/boa3.png
  98. BIN
      xinlijiankang-uniapp-main/static/dibu/boa4.png
  99. BIN
      xinlijiankang-uniapp-main/static/dibu/bob1.png
  100. BIN
      xinlijiankang-uniapp-main/static/dibu/bob2.png

+ 8 - 0
.idea/.gitignore

@@ -0,0 +1,8 @@
+# 默认忽略的文件
+/shelf/
+/workspace.xml
+# 基于编辑器的 HTTP 客户端请求
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml

+ 8 - 0
.idea/XLJK.iml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="WEB_MODULE" version="4">
+  <component name="NewModuleRootManager">
+    <content url="file://$MODULE_DIR$" />
+    <orderEntry type="inheritedJdk" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>

+ 8 - 0
.idea/modules.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="ProjectModuleManager">
+    <modules>
+      <module fileurl="file://$PROJECT_DIR$/.idea/XLJK.iml" filepath="$PROJECT_DIR$/.idea/XLJK.iml" />
+    </modules>
+  </component>
+</project>

+ 19 - 0
.idea/php.xml

@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="MessDetectorOptionsConfiguration">
+    <option name="transferred" value="true" />
+  </component>
+  <component name="PHPCSFixerOptionsConfiguration">
+    <option name="transferred" value="true" />
+  </component>
+  <component name="PHPCodeSnifferOptionsConfiguration">
+    <option name="highlightLevel" value="WARNING" />
+    <option name="transferred" value="true" />
+  </component>
+  <component name="PhpStanOptionsConfiguration">
+    <option name="transferred" value="true" />
+  </component>
+  <component name="PsalmOptionsConfiguration">
+    <option name="transferred" value="true" />
+  </component>
+</project>

+ 6 - 0
.idea/vcs.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="VcsDirectoryMappings">
+    <mapping directory="" vcs="Git" />
+  </component>
+</project>

+ 2 - 0
xinlijiankang-uniapp-main/.gitattributes

@@ -0,0 +1,2 @@
+# Auto detect text files and perform LF normalization
+* text=auto

+ 2 - 0
xinlijiankang-uniapp-main/.gitignore

@@ -0,0 +1,2 @@
+/.hbuilderx
+/unpackage

+ 8 - 0
xinlijiankang-uniapp-main/.idea/.gitignore

@@ -0,0 +1,8 @@
+# 默认忽略的文件
+/shelf/
+/workspace.xml
+# 基于编辑器的 HTTP 客户端请求
+/httpRequests/
+# Datasource local storage ignored files
+/dataSources/
+/dataSources.local.xml

+ 8 - 0
xinlijiankang-uniapp-main/.idea/modules.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="ProjectModuleManager">
+    <modules>
+      <module fileurl="file://$PROJECT_DIR$/.idea/xinlijiankang-uniapp-main.iml" filepath="$PROJECT_DIR$/.idea/xinlijiankang-uniapp-main.iml" />
+    </modules>
+  </component>
+</project>

+ 19 - 0
xinlijiankang-uniapp-main/.idea/php.xml

@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="MessDetectorOptionsConfiguration">
+    <option name="transferred" value="true" />
+  </component>
+  <component name="PHPCSFixerOptionsConfiguration">
+    <option name="transferred" value="true" />
+  </component>
+  <component name="PHPCodeSnifferOptionsConfiguration">
+    <option name="highlightLevel" value="WARNING" />
+    <option name="transferred" value="true" />
+  </component>
+  <component name="PhpStanOptionsConfiguration">
+    <option name="transferred" value="true" />
+  </component>
+  <component name="PsalmOptionsConfiguration">
+    <option name="transferred" value="true" />
+  </component>
+</project>

+ 4 - 0
xinlijiankang-uniapp-main/.idea/vcs.xml

@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="VcsDirectoryMappings" defaultProject="true" />
+</project>

+ 8 - 0
xinlijiankang-uniapp-main/.idea/xinlijiankang-uniapp-main.iml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="WEB_MODULE" version="4">
+  <component name="NewModuleRootManager">
+    <content url="file://$MODULE_DIR$" />
+    <orderEntry type="inheritedJdk" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>

+ 135 - 0
xinlijiankang-uniapp-main/.manifest.json

@@ -0,0 +1,135 @@
+{
+    "name" : "心理咨询",
+    "appid" : "__UNI__CABEA5D",
+    "description" : "",
+    "versionName" : "1.0.0",
+    "versionCode" : "100",
+    "transformPx" : false,
+    /* 5+App特有相关 */
+    "app-plus" : {
+        "usingComponents" : true,
+        "nvueStyleCompiler" : "uni-app",
+        "compilerVersion" : 3,
+        "splashscreen" : {
+            "alwaysShowBeforeRender" : true,
+            "waiting" : true,
+            "autoclose" : true,
+            "delay" : 0
+        },
+        /* 模块配置 */
+        "modules" : {},
+        /* 应用发布信息 */
+        "distribute" : {
+            /* android打包配置 */
+            "android" : {
+                "permissions" : [
+                    "<uses-feature android:name=\"android.hardware.camera\"/>",
+                    "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
+                    "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
+                    "<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
+                    "<uses-permission android:name=\"android.permission.CAMERA\"/>",
+                    "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
+                    "<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
+                    "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
+                    "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
+                    "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
+                    "<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
+                    "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
+                    "<uses-permission android:name=\"android.permission.VIBRATE\"/>",
+                    "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
+                    "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
+                ]
+            },
+            /* ios打包配置 */
+            "ios" : {},
+            /* SDK配置 */
+            "sdkConfigs" : {
+                "maps" : {},
+                "oauth" : {},
+                "payment" : {
+                    "weixin" : {
+                        "__platform__" : [ "ios", "android" ],
+                        "appid" : "",
+                        "UniversalLinks" : ""
+                    }
+                },
+                "push" : {},
+                "share" : {
+                    "weixin" : {
+                        "appid" : "",
+                        "UniversalLinks" : ""
+                    }
+                },
+                "geolocation" : {},
+                "ad" : {}
+            },
+            "icons" : {
+                "android" : {
+                    "hdpi" : "unpackage/res/icons/72x72.png",
+                    "xhdpi" : "unpackage/res/icons/96x96.png",
+                    "xxhdpi" : "unpackage/res/icons/144x144.png",
+                    "xxxhdpi" : "unpackage/res/icons/192x192.png"
+                },
+                "ios" : {
+                    "appstore" : "unpackage/res/icons/1024x1024.png",
+                    "ipad" : {
+                        "app" : "unpackage/res/icons/76x76.png",
+                        "app@2x" : "unpackage/res/icons/152x152.png",
+                        "notification" : "unpackage/res/icons/20x20.png",
+                        "notification@2x" : "unpackage/res/icons/40x40.png",
+                        "proapp@2x" : "unpackage/res/icons/167x167.png",
+                        "settings" : "unpackage/res/icons/29x29.png",
+                        "settings@2x" : "unpackage/res/icons/58x58.png",
+                        "spotlight" : "unpackage/res/icons/40x40.png",
+                        "spotlight@2x" : "unpackage/res/icons/80x80.png"
+                    },
+                    "iphone" : {
+                        "app@2x" : "unpackage/res/icons/120x120.png",
+                        "app@3x" : "unpackage/res/icons/180x180.png",
+                        "notification@2x" : "unpackage/res/icons/40x40.png",
+                        "notification@3x" : "unpackage/res/icons/60x60.png",
+                        "settings@2x" : "unpackage/res/icons/58x58.png",
+                        "settings@3x" : "unpackage/res/icons/87x87.png",
+                        "spotlight@2x" : "unpackage/res/icons/80x80.png",
+                        "spotlight@3x" : "unpackage/res/icons/120x120.png"
+                    }
+                }
+            }
+        }
+    },
+    /* 快应用特有相关 */
+    "quickapp" : {},
+    /* 小程序特有相关 */
+    "mp-weixin" : {
+        "appid" : "wxfb03a1f6f60d6471",
+        "setting" : {
+            "urlCheck" : false,
+            "es6" : true
+        },
+        "usingComponents" : true,
+        "permission" : {
+            "scope.userLocation" : {
+                "desc" : "查找线下活动位置"
+            }
+        },
+        "plugins" : {
+            "live-player-plugin" : {
+                "version" : "1.3.0",
+                "provider" : "wx2b03c6e691cd7370"
+            }
+        }
+    },
+    "mp-alipay" : {
+        "usingComponents" : true
+    },
+    "mp-baidu" : {
+        "usingComponents" : true
+    },
+    "mp-toutiao" : {
+        "usingComponents" : true
+    },
+    "uniStatistics" : {
+        "enable" : false
+    },
+    "vueVersion" : "2"
+}

+ 28 - 0
xinlijiankang-uniapp-main/App.vue

@@ -0,0 +1,28 @@
+<script>
+	export default {
+		onLaunch: function() {
+			console.log('App Launch')
+		},
+		onShow: function() {
+			console.log('App Show')
+		},
+		onHide: function() {
+			console.log('App Hide')
+		}
+	}
+</script>
+
+<style>
+	/*每个页面公共css */
+	@import "uview/qun.css";
+	.border{
+		border: 1rpx solid red;
+	}
+	.inlbhhe{
+		justify-content: flex-start;
+	}
+</style>
+<style lang="scss">
+	/* 注意要写在第一行,同时给style标签加入lang="scss"属性 */
+	@import "uview/index.scss";
+</style>

+ 36 - 0
xinlijiankang-uniapp-main/README.en.md

@@ -0,0 +1,36 @@
+# 心理咨询-小程序
+
+#### Description
+{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
+
+#### Software Architecture
+Software architecture description
+
+#### Installation
+
+1.  xxxx
+2.  xxxx
+3.  xxxx
+
+#### Instructions
+
+1.  xxxx
+2.  xxxx
+3.  xxxx
+
+#### Contribution
+
+1.  Fork the repository
+2.  Create Feat_xxx branch
+3.  Commit your code
+4.  Create Pull Request
+
+
+#### Gitee Feature
+
+1.  You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
+2.  Gitee blog [blog.gitee.com](https://blog.gitee.com)
+3.  Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
+4.  The most valuable open source project [GVP](https://gitee.com/gvp)
+5.  The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
+6.  The most popular members  [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

+ 2 - 0
xinlijiankang-uniapp-main/README.md

@@ -0,0 +1,2 @@
+# xinlijiankang-uniapp
+ 心理健康咨询

+ 108 - 0
xinlijiankang-uniapp-main/apis/http.js

@@ -0,0 +1,108 @@
+function HTTP(obj, config) {
+
+	let defaultConfig = {
+		isRes: false,
+		loading: false
+	}
+
+	config = { ...defaultConfig,
+		...config
+	}
+
+
+	// 如果需要显示loading,mask防止点击穿透
+	config.loading && uni.showLoading({
+		title: '加载中',
+		mask: true
+	});
+
+	return new Promise((resolve, reject) => {
+
+		let options = {
+			url: "",
+			method: "GET",
+			data: {},
+			dataType: "json",
+			header: {
+				"content-type": "application/json",
+				"X-requested-With": "XMLHttpRequest"
+			},
+			success: (res) => {
+				console.log("HTTP请求结果:",res)
+				uni.hideLoading();
+				// 状态码为200
+				if (res.statusCode == 200) {
+					let data = res.data;
+					console.log(data)
+					resolve(data)
+				}else {
+					reject("HTTP:状态码异常!");
+				}
+			},
+			fail: (err) => {
+				console.log(err)
+				uni.hideLoading();
+				uni.showToast({
+					title: "网络异常,请稍后再试!",
+					icon: "none",
+				})
+				reject("网络异常,请稍后再试!");
+			},
+			complete: () => {}
+		}
+
+		options = { ...options,
+			...obj
+		};
+		
+		const OPENID = uni.getStorageSync("openId");
+		const token=uni.getStorageSync("token");
+		// const location=uni.getStorageSync("location");
+		// if(location){
+		// 	//所有接口带上当前位置信息
+		// 	options["data"]["latitude"] = location.latitude;
+		// 	options["data"]["longitude"] = location.longitude;
+		// 	options["data"]["pcitycode"] = location.pcitycode;
+		// }
+		// console.log("token==="+token);
+		if (OPENID) options["header"]["openId"] = OPENID;
+		if (token) options["header"]["token"] = token;
+		if (options.url && options.method) {
+			wx.request(options);
+		} else {
+			wx.showToast({
+				title: 'HTTP:缺失参数',
+				icon: "none",
+				duration: 2000
+			})
+		}
+	})
+
+}
+
+
+
+export default {
+	GET(url, data = {}, config) {
+		return HTTP({
+			url,
+			data,
+			method: "GET"
+		}, config);
+	},
+	POST(url, data = {}, config) {
+		return HTTP({
+			url,
+			data,
+			method: "POST"
+		}, config);
+	},
+
+	POSTformdata(url, data = {}, config) {
+		return HTTP({
+			url,
+			data,
+			method: "POST"
+		}, config);
+	}
+}

+ 5 - 0
xinlijiankang-uniapp-main/apis/index.config.js

@@ -0,0 +1,5 @@
+const CONFIG = {
+		assetsPath: "/static/img", // 静态资源路径
+		baseUrl: "https://ocr.lfwhzb.com",
+}
+export default CONFIG;

+ 85 - 0
xinlijiankang-uniapp-main/apis/request.js

@@ -0,0 +1,85 @@
+import http from "./http.js";
+import config from "./index.config.js";
+
+export const getcureList = (data) => http.POST(`${config.baseUrl}/api/cureList`, data);
+// 小程序登录
+export const getLogin = (data) => http.POST(`${config.baseUrl}/api/login`, data);
+// 获取个人信息
+export const getuserinfo = (data) => http.POST(`${config.baseUrl}/api/userInfo`, data);
+// 修改个人信息
+export const saveuserInfo = (data) => http.POST(`${config.baseUrl}/api/saveInfo`, data);
+/*
+* 切换身份
+* 参数:identity:0普通用户,1咨询师,2机构
+*/
+export const switchIdentity = (data) => http.POST(`${config.baseUrl}/api/switchIdentity`, data);
+/*
+* 机构审核
+* 参数:certificate (证书图片) nickname
+*/
+export const submitPushInstitutionReview = (data) => http.POST(`${config.baseUrl}/api/pushInstitutionReview`, data);
+/*
+* 咨询师审核
+* 参数:certificate (证书图片) user_id (机构id)
+*/
+export const submitPushReview = (data) => http.POST(`${config.baseUrl}/api/pushReview`, data);
+/*
+* 机构列表
+* 参数:page limit
+*/
+export const getInstitutionList = (data) => http.POST(`${config.baseUrl}/api/getInstitutionList`, data);
+/*
+* 关注
+* 参数:user_id
+*/
+export const getFocus = (data) => http.POST(`${config.baseUrl}/api/focus`, data);
+/*
+* 取消关注
+* 参数:user_id
+*/
+export const delFocus = (data) => http.POST(`${config.baseUrl}/api/delFocus`, data);
+// 获取价格
+export const getPrice = (data) => http.POST(`${config.baseUrl}/api/getPrice`, data);
+// 提交化验单
+export const submitReview = (data) => http.POST(`${config.baseUrl}/api/review`, data);
+// 评测记录
+export const getReviewLog = (data) => http.POST(`${config.baseUrl}/api/reviewLog`, data);
+// 评测支付
+export const reviewPay = (data) => http.POST(`${config.baseUrl}/api/pay`, data);
+// 评测结果 参数: log_id
+export const getResult = (data) => http.POST(`${config.baseUrl}/api/getResult`, data);
+
+// 最新课程
+export const getnewCourse = (data) => http.POST(`${config.baseUrl}/api/newCourse`, data);
+// 课程排行
+export const getCourseList = (data) => http.POST(`${config.baseUrl}/api/getCourseList`, data);
+// 猜你想学
+export const getGuessList = (data) => http.POST(`${config.baseUrl}/api/getGuessList`, data);
+// 课程筛选
+// ### 参数 one_label 1  tow_label 1 
+export const getCourseListByLabel = (data) => http.POST(`${config.baseUrl}/api/getCourseListByLabel`, data);
+// 课程章节列表
+// ### 参数 course_id
+export const getCourseChapter = (data) => http.POST(`${config.baseUrl}/api/getCourseChapter`, data);
+// 领取
+// ### 参数 course_id
+export const receive = (data) => http.POST(`${config.baseUrl}/api/receive`, data);
+// 课程分类标签
+export const labelList = (data) => http.POST(`${config.baseUrl}/api/labelList`, data);
+//问答列表
+export const problemList = (data) => http.POST(`${config.baseUrl}/api/problemList`, data);
+//评论列表
+// ### 参数 limit 0  page 1
+export const problemRecommend = (data) => http.POST(`${config.baseUrl}/api/problemRecommend`, data);
+//评论
+// ### 参数 problem_id 1  at_user_id 1
+export const recommend = (data) => http.POST(`${config.baseUrl}/api/recommend`, data);
+//有用
+// ### 参数 problem_id 1
+export const useful = (data) => http.POST(`${config.baseUrl}/api/useful`, data);
+//提问
+// ### 参数 title
+export const questioning = (data) => http.POST(`${config.baseUrl}/api/questioning`, data);
+//回答
+// ### 参数 answer  problem_id 1 
+export const reply = (data) => http.POST(`${config.baseUrl}/api/reply`, data);

Fichier diff supprimé car celui-ci est trop grand
+ 28 - 0
xinlijiankang-uniapp-main/common/aes.js


Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
xinlijiankang-uniapp-main/common/crypto-js.min.js


+ 101 - 0
xinlijiankang-uniapp-main/components/tabBar/tabBar.vue

@@ -0,0 +1,101 @@
+<template>
+	<view class="uni-tabbar">
+		<view v-for="(item, index) in list" :key="index" @click="onTabBarClick(item.current)"
+			:class="['uni-tabbar-item', { 'uni-tabbar-item-active': index === activeIndex }]">
+			<view class="uni-tabbar-item-icon">
+				<img :src="index === activeIndex ? item.selectedIconPath : item.iconPath" />
+			</view>
+			<view class="uni-tabbar-item-text">{{ item.text }}</view>
+		</view>
+	</view>
+</template>
+
+<script>
+	export default {
+		name: "tabBar",
+		props:{
+			activeIndex: Number, // 下标
+		},
+		data() {
+			return {
+				list: [{
+					current: 0,
+					"pagePath": "/pages/index/index",
+					"text": "首页",
+					"iconPath": "/static/dibu/boa1.png",
+					"selectedIconPath": "/static/dibu/bob1.png"
+				},
+				{
+					current: 1,
+					"pagePath": "/pages/lecturer/wdzx",
+					"text": "咨询",
+					"iconPath": "/static/dibu/boa2.png",
+					"selectedIconPath": "/static/dibu/bob2.png"
+				},
+				{
+					current: 2,
+					"pagePath": "/pages/index/jiehuo",
+					"text": "解惑",
+					"iconPath": "/static/dibu/boa3.png",
+					"selectedIconPath": "/static/dibu/bob3.png"
+				},
+				{
+					current: 3,
+					"pagePath": "/pages/lecturer/my",
+					"text": "我的",
+					"iconPath": "/static/dibu/boa4.png",
+					"selectedIconPath": "/static/dibu/bob4.png"
+				}]
+			};
+		},
+		methods:{
+			onTabBarClick(i){
+				this.$emit("change", i);
+				if(this.activeIndex != i){
+					uni.switchTab({
+						url: this.list[i].pagePath
+					})
+				}
+				
+			}
+		}
+	}
+</script>
+
+<style lang="less">
+/* 修改图标的大小和位置 */
+.uni-tabbar-item-icon {
+	position: relative;
+	img {
+		width: 48rpx; //图标宽度
+		height: 48rpx; //图标高度
+	}
+}
+/* 修改文字大小和颜色 */
+.uni-tabbar-item-text {
+  font-size: 12px; //文字大小
+  color: #999; //文字颜色
+}
+.uni-tabbar-item-active .uni-tabbar-item-text {
+  color: #374B6E; //选中状态下文字颜色
+}
+// 添加背景色和阴影
+.uni-tabbar {
+  position: fixed;
+  left: 0;
+  bottom: 0;
+  display: flex;
+  width: 100%;
+  height: 100rpx; //tabbar高度
+  background-color: #fff; //背景色
+  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1); //阴影
+  z-index: 100;
+}
+.uni-tabbar-item  {
+	flex: 1;
+	display: flex;
+	flex-direction: column;
+	align-items: center;
+	justify-content: center;
+}
+</style>

+ 20 - 0
xinlijiankang-uniapp-main/index.html

@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html lang="en">
+  <head>
+    <meta charset="UTF-8" />
+    <script>
+      var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
+        CSS.supports('top: constant(a)'))
+      document.write(
+        '<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
+        (coverSupport ? ', viewport-fit=cover' : '') + '" />')
+    </script>
+    <title></title>
+    <!--preload-links-->
+    <!--app-context-->
+  </head>
+  <body>
+    <div id="app"><!--app-html--></div>
+    <script type="module" src="/main.js"></script>
+  </body>
+</html>

+ 34 - 0
xinlijiankang-uniapp-main/main.js

@@ -0,0 +1,34 @@
+import App from './App'
+
+// #ifndef VUE3
+import Vue from 'vue'
+Vue.config.productionTip = false
+import http from './utils/http.js'
+import share from './utils/share.js'
+import * as $request from './apis/request.js'
+Vue.prototype.$get = http.get
+Vue.prototype.$post = http.post
+Vue.prototype.$put = http.put
+Vue.prototype.$delete = http.delete
+Vue.prototype.$request = $request;
+Vue.mixin(share)
+App.mpType = 'app'
+const app = new Vue({
+    ...App
+})
+app.$mount()
+// #endif
+
+// #ifdef VUE3
+import { createSSRApp } from 'vue'
+export function createApp() {
+  const app = createSSRApp(App)
+  return {
+    app
+  }
+}
+// #endif
+
+// main.js
+import uView from "uview";
+Vue.use(uView);

+ 140 - 0
xinlijiankang-uniapp-main/manifest.json

@@ -0,0 +1,140 @@
+{
+    "name" : "Leaf healthy",
+    "appid" : "__UNI__F8273C1",
+    "description" : "",
+    "versionName" : "1.0.0",
+    "versionCode" : "100",
+    "transformPx" : false,
+    /* 5+App特有相关 */
+    "app-plus" : {
+        "usingComponents" : true,
+        "nvueStyleCompiler" : "uni-app",
+        "compilerVersion" : 3,
+        "splashscreen" : {
+            "alwaysShowBeforeRender" : true,
+            "waiting" : true,
+            "autoclose" : true,
+            "delay" : 0
+        },
+        /* 模块配置 */
+        "modules" : {
+            "Payment" : {},
+            "VideoPlayer" : {},
+            "Share" : {}
+        },
+        /* 应用发布信息 */
+        "distribute" : {
+            /* android打包配置 */
+            "android" : {
+                "permissions" : [
+                    "<uses-feature android:name=\"android.hardware.camera\"/>",
+                    "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
+                    "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
+                    "<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
+                    "<uses-permission android:name=\"android.permission.CAMERA\"/>",
+                    "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
+                    "<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
+                    "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
+                    "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
+                    "<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
+                    "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
+                    "<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
+                    "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
+                    "<uses-permission android:name=\"android.permission.VIBRATE\"/>",
+                    "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
+                    "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
+                ]
+            },
+            /* ios打包配置 */
+            "ios" : {},
+            /* SDK配置 */
+            "sdkConfigs" : {
+                "maps" : {},
+                "oauth" : {},
+                "payment" : {
+                    "weixin" : {
+                        "__platform__" : [ "android" ],
+                        "appid" : "wx39f72c0178ec3ea4",
+                        "UniversalLinks" : ""
+                    }
+                },
+                "push" : {},
+                "share" : {
+                    "weixin" : {
+                        "appid" : "wx39f72c0178ec3ea4",
+                        "UniversalLinks" : ""
+                    }
+                },
+                "geolocation" : {},
+                "ad" : {}
+            },
+            "icons" : {
+                "android" : {
+                    "hdpi" : "unpackage/res/icons/72x72.png",
+                    "xhdpi" : "unpackage/res/icons/96x96.png",
+                    "xxhdpi" : "unpackage/res/icons/144x144.png",
+                    "xxxhdpi" : "unpackage/res/icons/192x192.png"
+                },
+                "ios" : {
+                    "appstore" : "unpackage/res/icons/1024x1024.png",
+                    "ipad" : {
+                        "app" : "unpackage/res/icons/76x76.png",
+                        "app@2x" : "unpackage/res/icons/152x152.png",
+                        "notification" : "unpackage/res/icons/20x20.png",
+                        "notification@2x" : "unpackage/res/icons/40x40.png",
+                        "proapp@2x" : "unpackage/res/icons/167x167.png",
+                        "settings" : "unpackage/res/icons/29x29.png",
+                        "settings@2x" : "unpackage/res/icons/58x58.png",
+                        "spotlight" : "unpackage/res/icons/40x40.png",
+                        "spotlight@2x" : "unpackage/res/icons/80x80.png"
+                    },
+                    "iphone" : {
+                        "app@2x" : "unpackage/res/icons/120x120.png",
+                        "app@3x" : "unpackage/res/icons/180x180.png",
+                        "notification@2x" : "unpackage/res/icons/40x40.png",
+                        "notification@3x" : "unpackage/res/icons/60x60.png",
+                        "settings@2x" : "unpackage/res/icons/58x58.png",
+                        "settings@3x" : "unpackage/res/icons/87x87.png",
+                        "spotlight@2x" : "unpackage/res/icons/80x80.png",
+                        "spotlight@3x" : "unpackage/res/icons/120x120.png"
+                    }
+                }
+            }
+        }
+    },
+    /* 快应用特有相关 */
+    "quickapp" : {},
+    /* 小程序特有相关 */
+    "mp-weixin" : {
+        "appid" : "wxfb03a1f6f60d6471",
+        "setting" : {
+            "urlCheck" : false,
+            "es6" : true
+        },
+        "usingComponents" : true,
+        "permission" : {
+            "scope.userLocation" : {
+                "desc" : "查找线下活动位置"
+            }
+        },
+        "plugins" : {
+            "live-player-plugin" : {
+                "version" : "1.3.0",
+                "provider" : "wx2b03c6e691cd7370"
+            }
+        }
+    },
+    "mp-alipay" : {
+        "usingComponents" : true
+    },
+    "mp-baidu" : {
+        "usingComponents" : true
+    },
+    "mp-toutiao" : {
+        "usingComponents" : true
+    },
+    "uniStatistics" : {
+        "enable" : false
+    },
+    "vueVersion" : "2"
+}

+ 505 - 0
xinlijiankang-uniapp-main/pages.json

@@ -0,0 +1,505 @@
+{
+	"easycom": {
+		"^u-(.*)": "@/uview/components/u-$1/u-$1.vue"
+	},
+	"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
+
+		{
+			"path": "pages/index/index",
+			"style": {
+				"navigationBarTitleText": "",
+				"navigationStyle": "custom" // 隐藏系统导航栏
+			}
+		}, 
+		{
+			"path": "pages/index/coupon",
+			"style": {
+				"navigationBarTitleText": "优惠券",
+				"navigationBarBackgroundColor": "#FFFFFF",
+				"navigationBarTextStyle": "black",
+				"navigationBarShadow": {
+					"colorType": "grey"
+				}
+			}
+		}, 
+		{
+			"path": "pages/index/invite",
+			"style": {
+				"navigationBarTitleText": "邀请码",
+				"navigationBarBackgroundColor": "#FFFFFF",
+				"navigationBarTextStyle": "black",
+				"navigationBarShadow": {
+					"colorType": "grey"
+				}
+			}
+		},
+		{
+			"path": "pages/index/yhdl",
+			"style": {
+				"navigationBarTitleText": "",
+				"navigationStyle": "custom"
+			}
+		},
+		{
+			"path": "pages/index/hykt",
+			"style": {
+				"navigationBarTitleText": "",
+				"navigationStyle": "custom"
+			}
+		},
+		{
+			"path": "pages/index/hyktdis",
+			"style": {
+				"navigationBarTitleText": "",
+				"navigationStyle": "custom"
+			}
+		},
+		{
+			"path": "pages/index/zylx",
+			"style": {
+				"navigationBarTitleText": "治愈练习",
+				"navigationStyle": "custom"
+			}
+		},
+		{
+			"path": "pages/index/zyxq",
+			"style": {
+				"navigationBarTitleText": "",
+				"navigationStyle": "custom" 
+			}
+		},
+		{
+			"path": "pages/index/zxshi",
+			"style": {
+				"navigationBarTitleText": "",
+				"navigationStyle": "custom"
+			}
+		},
+		{
+			"path": "pages/index/wdjh",
+			"style": {
+				"navigationBarTitleText": "我的解惑",
+				"navigationBarBackgroundColor": "#FFFFFF",
+				"navigationBarTextStyle": "black",
+				"navigationBarShadow": {
+					"colorType": "grey"
+				}
+			}
+		},
+		{
+			"path": "pages/index/jiehuo",
+			"style": {
+				"navigationBarTitleText": "",
+				"navigationStyle": "custom"
+			}
+		},
+		{
+			"path": "pages/index/jiehuo-pl",
+			"style": {
+				"navigationBarTitleText": "",
+				"navigationBarBackgroundColor": "#FFFFFF",
+				"navigationBarTextStyle": "black"
+			}
+		},
+		{
+			"path": "pages/index/hd",
+			"style": {
+				"navigationBarTitleText": "活动",
+				"navigationStyle": "custom" 
+			}
+		},
+		
+		{
+			"path": "pages/index/kc",
+			"style": {
+				"navigationBarTitleText": "",
+				"navigationStyle": "custom"
+			}
+		},
+		{
+			"path": "pages/index/kcxq-x",
+			"style": {
+				"navigationBarTitleText": "课程详情"
+			}
+		},
+		{
+			"path": "pages/index/kcxq-t",
+			"style": {
+				"navigationBarTitleText": "",
+				"navigationStyle": "custom"
+			}
+		},
+		{
+			"path": "pages/index/ztsp",
+			"style": {
+				"navigationBarTitleText": "",
+				"navigationStyle": "custom"
+			}
+		},
+		{
+			"path": "pages/lecturer/my",
+			"style": {
+				"navigationBarTitleText": "",
+				"navigationStyle": "custom"
+			}
+		},
+		{
+			"path": "pages/lecturer/wdgz",
+			"style": {
+				"navigationBarTitleText": "我的关注",
+				"navigationBarBackgroundColor": "#FFFFFF",
+				"navigationBarTextStyle": "black"
+
+			}
+		},
+		{
+			"path": "pages/lecturer/wdsc",
+			"style": {
+				"navigationBarTitleText": "我的收藏",
+				"navigationBarBackgroundColor": "#FFFFFF",
+				"navigationBarTextStyle": "black",
+				"navigationBarShadow": {
+					"colorType": "grey"
+				}
+			}
+		},
+		{
+			"path": "pages/lecturer/wdcp",
+			"style": {
+				"navigationBarTitleText": "我的测评",
+				"navigationBarBackgroundColor": "#FFFFFF",
+				"navigationBarTextStyle": "black",
+				"navigationBarShadow": {
+					"colorType": "grey"
+				}
+			}
+		},
+		{
+			"path": "pages/lecturer/cpfa",
+			"style": {
+				"navigationBarTitleText": "我的测评",
+				"navigationBarBackgroundColor": "#FFFFFF",
+				"navigationBarTextStyle": "black",
+				"navigationBarShadow": {
+					"colorType": "grey"
+				}
+			}
+		},
+		{
+			"path": "pages/lecturer/wdxuexi",
+			"style": {
+				"navigationBarTitleText": "我的学习",
+				"navigationBarBackgroundColor": "#FFFFFF",
+				"navigationBarTextStyle": "black",
+				"navigationBarShadow": {
+					"colorType": "grey"
+				}
+			}
+		},
+		{
+			"path": "pages/lecturer/wdzx",
+			"style": {
+				"navigationBarTitleText": "我的咨询",
+				"navigationBarBackgroundColor": "#FFFFFF",
+				"navigationBarTextStyle": "black"
+			}
+		},
+		{
+			"path": "pages/lecturer/wdhd",
+			"style": {
+				"navigationBarTitleText": "我的活动",
+				"navigationBarBackgroundColor": "#FFFFFF",
+				"navigationBarTextStyle": "black"
+			}
+		},
+		{
+			"path": "pages/lecturer/kcdd",
+			"style": {
+				"navigationBarTitleText": "课程订单",
+				"navigationBarBackgroundColor": "#FFFFFF",
+				"navigationBarTextStyle": "black"
+
+			}
+		},
+		{
+			"path": "pages/user/khzx",
+			"style": {
+				"navigationBarTitleText": "",
+				"navigationStyle": "custom"
+			}
+		},
+		{
+			"path": "pages/user/fkcg",
+			"style": {
+				"navigationBarTitleText": "付款成功",
+				"navigationBarBackgroundColor": "#FFFFFF",
+				"navigationBarTextStyle": "black",
+				"navigationBarShadow": {
+					"colorType": "grey"
+				},
+				"disableScroll": true
+			}
+		},
+		{
+			"path": "pages/user/cp",
+			"style": {
+				"navigationBarTitleText": "测评",
+				"navigationBarBackgroundColor": "#FFFFFF",
+				"navigationBarTextStyle": "black"
+			}
+		},
+		{
+			"path": "pages/user/cp-sc",
+			"style": {
+				"navigationBarTitleText": "测评",
+				"navigationBarBackgroundColor": "#FFFFFF",
+				"navigationBarTextStyle": "black",
+				"navigationBarShadow": {
+					"colorType": "grey"
+				},
+				"disableScroll": true
+			}
+		},
+		{
+			"path" : "pages/user/cp-pay",
+			"style": {
+				"navigationBarTitleText": "测评支付",
+				"navigationBarBackgroundColor": "#FFFFFF",
+				"navigationBarTextStyle": "black",
+				"navigationBarShadow": {
+					"colorType": "grey"
+				},
+				"disableScroll": true
+			}
+		},
+		{
+			"path": "pages/user/cp-cg",
+			"style": {
+				"navigationBarTitleText": "测评成功",
+				"navigationBarBackgroundColor": "#FFFFFF",
+				"navigationBarTextStyle": "black",
+				"navigationBarShadow": {
+					"colorType": "grey"
+				},
+				"disableScroll": true
+			}
+		},
+		{
+			"path": "pages/user/cp-jg",
+			"style": {
+				"navigationBarTitleText": "测评结果",
+				"navigationBarBackgroundColor": "#FFFFFF",
+				"navigationBarTextStyle": "black",
+				"navigationBarShadow": {
+					"colorType": "grey"
+				}
+			}
+		},
+		{
+			"path": "pages/user/cp-fk",
+			"style": {
+				"navigationBarTitleText": "付款成功",
+				"navigationBarBackgroundColor": "#FFFFFF",
+				"navigationBarTextStyle": "black",
+				"navigationBarShadow": {
+					"colorType": "grey"
+				},
+				"disableScroll": true 
+			}
+		},
+		{
+			"path": "pages/user/cp-fa",
+			"style": {
+				"navigationBarTitleText": "解决方案",
+				"navigationBarBackgroundColor": "#FFFFFF",
+				"navigationBarTextStyle": "black",
+				"navigationBarShadow": {
+					"colorType": "grey"
+				}
+				// "disableScroll": true //微信/百度/头条  
+			}
+		},
+		{
+			"path": "pages/user/kcxq-b",
+			"style": {
+				"navigationBarTitleText": "课程详情",
+				"navigationBarBackgroundColor": "#FFFFFF",
+				"navigationBarTextStyle": "black"
+			}
+		},
+		{
+			"path": "pages/user/wdhd-xq",
+			"style": {
+				"navigationBarTitleText": "活动详情页",
+				"navigationBarBackgroundColor": "#FFFFFF",
+				"navigationBarTextStyle": "black"
+			}
+		},
+		{
+			"path": "pages/user/wdhd-tc",
+			"style": {
+				"navigationBarTitleText": "退出活动",
+				"navigationBarBackgroundColor": "#FFFFFF",
+				"navigationBarTextStyle": "black",
+				"navigationBarShadow": {
+					"colorType": "grey"
+				},
+				"disableScroll": true //微信/百度/头条  
+			}
+		},
+		{
+			"path": "pages/lecturer/sckc",
+			"style": {
+				"navigationBarTitleText": "上传课程",
+				"navigationBarBackgroundColor": "#FFFFFF",
+				"navigationBarTextStyle": "black",
+				"navigationBarShadow": {
+					"colorType": "grey"
+				}
+			}
+		},
+		{
+			"path": "pages/lecturer/wdkc",
+			"style": {
+				"navigationBarTitleText": "我的课程",
+				"navigationBarBackgroundColor": "#FFFFFF",
+				"navigationBarTextStyle": "black"
+
+			}
+		},
+		{
+			"path": "pages/index/zxxq",
+			"style": {
+				"navigationBarTitleText": "资讯详情",
+				"enablePullDownRefresh": false
+			}
+
+		},
+		{
+			"path": "pages/login/appLogin",
+			"style": {
+				"navigationBarTitleText": "登录",
+				"enablePullDownRefresh": false,
+				"navigationStyle": "custom"
+			}
+
+		}, {
+			"path": "pages/login/updatePwd",
+			"style": {
+				"navigationBarTitleText": "", // 忘记密码
+				"enablePullDownRefresh": false,
+				"navigationBarBackgroundColor": "#ffffff"
+			}
+
+		}, {
+			"path": "pages/login/sigUp",
+			"style": {
+				"navigationBarTitleText": "", // 注册
+				"enablePullDownRefresh": false,
+				"navigationBarBackgroundColor": "#ffffff"
+
+			}
+
+		}, {
+			"path": "pages/index/SearchPage",
+			"style": {
+				"navigationBarTitleText": "搜索",
+				"enablePullDownRefresh": false
+			}
+
+		},
+		{
+			"path": "pages/index/apply",
+			"style": {
+				"navigationBarTitleText": "申请",
+				"enablePullDownRefresh": false
+			}
+
+		}, 
+		{
+			"path": "pages/index/watchLive",
+			"style": {
+				"navigationBarTitleText": "直播课程",
+				"enablePullDownRefresh": false
+			}
+
+		}, {
+			"path": "pages/lecturer/Live",
+			"style": {
+				"navigationBarTitleText": "直播",
+				"enablePullDownRefresh": false
+			}
+
+		},
+		{
+			"path": "pages/user/cpView",
+			"style": {
+				"navigationBarTitleText": "",
+				"enablePullDownRefresh": false
+			}
+
+		}
+	    ,{
+				"path" : "pages/index/zyDetail",
+				"style" :                                                                                    
+				{
+						"navigationBarTitleText": "详情",
+						"enablePullDownRefresh": false
+				}
+				
+		},
+		{
+			"path" : "pages/lecturer/modifyInfo/modifyInfo",
+			"style" : 
+			{
+				"navigationBarTitleText" : "修改信息"
+			}
+		}
+		
+    ],
+		"tabBar": {
+			"custom": true, // 使用自定义的tabbar
+			"color": "#000",
+			"selectedColor": "#374B6E",
+			"borderStyle": "black",
+			"backgroundColor": "#fff",
+			"height": "50px",
+			"fontSize": "12px",
+			"iconWidth": "24px",
+			"spacing": "3px",
+			"list": [
+				{
+					"pagePath": "pages/index/index",
+					"text": "首页",
+					"iconPath": "/static/dibu/boa1.png",
+					"selectedIconPath": "/static/dibu/bob1.png"
+				},
+				{
+					"pagePath": "pages/lecturer/wdzx",
+					"text": "咨询",
+					"iconPath": "/static/dibu/boa2.png",
+					"selectedIconPath": "/static/dibu/bob2.png"
+				},
+				{
+					"pagePath": "pages/index/jiehuo",
+					"text": "解惑",
+					"iconPath": "/static/dibu/boa3.png",
+					"selectedIconPath": "/static/dibu/bob3.png"
+				},
+				{
+					"pagePath": "pages/lecturer/my",
+					"text": "我的",
+					"iconPath": "/static/dibu/boa4.png",
+					"selectedIconPath": "/static/dibu/bob4.png"
+				}
+			]
+		},
+		
+	"globalStyle": {
+		"navigationBarTextStyle": "black",
+		"navigationBarTitleText": "uni-app",
+		"navigationBarBackgroundColor": "#F8F8F8",
+		"backgroundColor": "#F8F8F8"
+	}
+
+}

+ 109 - 0
xinlijiankang-uniapp-main/pages/index/SearchPage.vue

@@ -0,0 +1,109 @@
+<template>
+	<view class="">
+		
+		
+		<view class="rmkdwwer">
+			<view class="fzctob inbddwddre">
+				<image src="/static/index/ina1.png"
+					style="width: 40rpx;height: 40rpx;min-width: 40rpx;margin-right: 12rpx;"></image>
+				<input type="text" v-model="title" focus confirm-type="search" @confirm="getList" placeholder-style="color: #CCCCCC;font-size: 28rpx;"
+					placeholder="搜索你感兴趣的内容" />
+			</view>
+		</view>
+		
+			
+			
+				
+				<view class="zytlidde" style="padding: 0 30rpx;" @click="toDetail(item.id)" v-for="(item,index) in list" :key="index">
+					<view class="zytyyrimg" style="overflow: hidden;">
+                        <image :src="item.img" mode="aspectFill" style="width: 100%; height: 100%;"></image>
+                    </view>
+					<view class="zytyyopf">
+						<view class="zytyotxta"><text>{{item.title}}</text></view>
+						<view class="flztoa zytyotxtb">
+							<text>{{item.lecturer_name}}</text>
+							<image src="/static/zy/zyb3.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
+						</view>
+						<view class="flztoa">
+							<view class="fzctob zytyotxtc">
+								<text>{{item.sales}}人观看</text>
+							</view>
+							<!-- 分钟 -->
+							<text class="zytyotxtd">{{item.time}}</text>
+						</view>
+					</view>
+				</view>
+			
+			
+			
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				list: [],
+                info:null,
+                page:1,
+                num:20,
+                title:'',
+                total:0
+			}
+		},
+        onLoad(e) {
+            this.type_id = e.type_id || '-1'
+            // this.getList()
+        },
+        onReachBottom() {
+          if(this.list.length<this.total){
+              this.page++
+              this.getList()
+          }  
+        },
+        methods:{
+            getList(){
+                this.$post({
+                    data:{
+                        do:'CourseList',
+                        data:{
+                            page:this.page,
+                            num:this.num,
+                            title:this.title,
+                            user_id:uni.getStorageSync('id'),
+                            type_id:'-1',
+                        }
+                    }
+                }).then(res=>{
+                    console.log(res,'llllll')
+                    this.total = res.data.total
+                    if(res.data.data.length){
+                        this.list = this.page==1?res.data.data:[...this.list,...res.data.data]
+                    }else{
+                        this.total = 0
+                        this.list = []
+                    }
+                }).catch(()=>{
+                    this.total = 0
+                    this.list = []
+                })
+            },
+            toDetail(id){
+                uni.navigateTo({
+                    url: './kcxq-x?id=' + id
+                })
+            }
+        }
+
+
+	}
+</script>
+
+<style lang="scss" scoped>
+	 
+	 
+</style>

+ 234 - 0
xinlijiankang-uniapp-main/pages/index/about.vue

@@ -0,0 +1,234 @@
+<template>
+	<view>
+		<u-navbar :border-bottom="false" back-icon-size="35" title="关于我们" title-size="32" :background="background"
+			:back-text-style="hhyanm" title-color="#000000" back-icon-color="#000000"></u-navbar>
+
+		<view class="box" v-if="state == 0 || state == 3">
+			<view class="item-submit" v-if="state == 3">
+				<view>审核未通过, 请重新提交审核</view>
+			</view>
+			<view class="item">
+				<view class="item-text">联系我们</view>
+			</view>
+			<view class="item">
+				<view class="item-text">反馈意见</view>
+			</view>
+			<view class="item">
+				<view class="item-text">检查更新</view>
+				</view>
+			</view>
+			<view class="item">
+				<view class="item-text">清除缓存</view>
+			</view>
+			<view class="item">
+				<view class="item-text">性别</view>
+			</view>
+
+
+		</view>
+		<view v-if="state == 1">
+			<view class="item-submit">
+				目前正在审核请耐心等待
+			</view>
+		</view>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				title: '',
+				phone: '',
+				username: '',
+				password: '',
+				img: '',
+				content: '',
+				array: [{
+					name: '男'
+				}, {
+					name: '女'
+				}],
+				action: 'https://xlzx.vvv5g.com/app/index.php?i=2&c=entry&a=wxapp&m=yzd_edu&do=UploadImg', // 图片上传地址
+				index: 0,
+				state: 0,
+			}
+		},
+		onLoad() {
+			this.getMyIdentity();
+		},
+		methods: {
+			getMyIdentity: function(e) {
+				this.$post({
+					data: {
+				 	do: 'GetMyIdentity',
+						data: {
+							user_id: uni.getStorageSync('id'),
+						}
+					}
+				}).then(res => {
+					this.state = res.data.state;
+				})
+			},
+			// 选择图片上传
+			choodeImage() {
+				uni.chooseImage({
+					count: 1,
+					sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
+					sourceType: ['album'], //从相册选择
+					success: (res) => {
+						// this.img = res.tempFilePaths[0]
+						uni.showLoading({
+							title: '上传中...'
+						})
+						uni.uploadFile({
+							url: 'https://xlzx.vvv5g.com/app/index.php?i=2&c=entry&a=wxapp&m=yzd_edu&do=UploadImg', //仅为示例,非真实的接口地址
+							filePath: res.tempFilePaths[0],
+							name: 'upfile',
+							success: (uploadFileRes) => {
+								uni.hideLoading()
+								console.log(uploadFileRes, '111111111111111')
+								console.log(uploadFileRes);
+								this.img = uploadFileRes.data
+							}
+						});
+					}
+				})
+			},
+			bindPickerChange: function(e) {
+				console.log('picker发送选择改变,携带值为:' + e.detail.value)
+				this.index = e.detail.value
+			},
+			submit: function(e) {
+
+				if (!this.title) {
+					uni.showToast({
+				 	title: '请输入姓名',
+						icon: 'none'
+					})
+					return
+				}
+
+				if (!this.phone) {
+					uni.showToast({
+						title: '请输入手机号码',
+						icon: 'none'
+					})
+					return
+				}
+
+				if (!this.username) {
+					uni.showToast({
+						title: '请输入账号',
+						icon: 'none'
+					})
+					return
+				}
+
+				var pwdRegex = new RegExp('(?=.*[0-9])(?=.*[a-zA-Z]).{6,30}');
+				if (!pwdRegex.test(this.password)) {
+					uni.showToast({
+						title: "您的密码复杂度太低(密码中必须包含字母、数字),请及时修改密码!",
+						icon: 'none'
+					})
+					return
+				}
+
+				if (!this.img) {
+					uni.showToast({
+						title: '请上传您的资质',
+						icon: 'none'
+					})
+					return
+				}
+
+				this.$post({
+					data: {
+						do: 'LecturerSettled',
+						data: {
+							"title": this.title,
+							"phone": this.phone,
+							"username": this.username,
+							"password": this.password,
+							"img": this.img,
+							"content": '',
+							"sex": this.index + 1,
+							"user_id": uni.getStorageSync('id'),
+						}
+					}
+				}).then(res => {
+				 console.log(res, 'ssssssssssssssssssssss')
+					uni.showToast({
+						title: '添加成功',
+						mask: true
+					})
+					setTimeout(() => {
+						uni.navigateBack()
+					}, 1500)
+				})
+			}
+		}
+	}
+</script>
+
+<style>
+	.item {
+		display: flex;
+		padding: 27rpx 0;
+		border-bottom: 1px solid #f3f3f3;
+		align-items: center;
+	}
+
+	.box {
+		padding: 10rpx 30rpx;
+	}
+
+	.item-input {
+		padding-left: 10rpx;
+		width: 70%;
+	}
+
+	.item-text {
+		min-width: 115rpx;
+	}
+
+	.img {
+		width: 100%;
+		height: 320rpx;
+	}
+
+	.item-button {
+		width: 247rpx;
+		max-content: 80rpx;
+		text-align: center;
+		line-height: 80rpx;
+		background-color: #04ba8f;
+		color: #fff;
+		border-radius: 94rpx;
+		box-shadow: 0 6rpx 6rpx rgba(0, 0, 0, .05);
+		margin: 20rpx 0;
+	}
+
+	.item-submit {
+		display: flex;
+		justify-content: center;
+		align-items: center;
+	}
+
+	.item-u {
+		display: flex;
+		padding: 10rpx 0;
+		align-items: center;
+	}
+	
+	.choose-outer{
+	    width: 290rpx; 
+	    height: 198rpx; 
+	    border: 2px dotted #CCCCCC; 
+	    border-radius: 15rpx;
+	    display: flex;
+	    flex-direction: column;
+	    justify-content: center;
+	    align-items: center;
+	}
+</style>

+ 278 - 0
xinlijiankang-uniapp-main/pages/index/apply.vue

@@ -0,0 +1,278 @@
+<template>
+	<view>
+
+
+		<!-- <image class="img" src="https://xlzx.vvv5g.com/addons/yzd_edu//static/public/img/diy_default/lecture_in_img.png"></image> -->
+		<view class="box" v-if="state == 0 || state == 3">
+			<view class="item-submit" v-if="state == 3">
+				<view>审核未通过, 请重新提交审核</view>
+			</view>
+<!-- 			<view class="item">
+				<view class="item-text">姓名</view>
+				<view class="item-input"><input v-model="title" type="text" placeholder="请输入您的姓名"></view>
+			</view>
+			<view class="item">
+				<view class="item-text">手机号</view>
+				<view class="item-input"><input v-model="phone" type="text" placeholder="请输入您的手机号"></view>
+			</view>
+			<view class="item">
+				<view class="item-text">账号</view>
+				<view class="item-input"><input v-model="username" type="text" placeholder="请输入您的账号">
+				</view>
+			</view>
+			<view class="item">
+				<view class="item-text">密码</view>
+				<view class="item-input"><input v-model="password" type="password" placeholder="6-20个字母、数字、特殊字符"></view>
+			</view>
+			<view class="item">
+				<view class="item-text">性别</view>
+				<view class="item-input">
+					<picker style="line-height: 44rpx;" @change="bindPickerChange" :value="index" :range="array" range-key="name">
+						<view class="uni-input">{{array[index].name}}</view>
+					</picker>
+				</view>
+			</view> -->
+			<view class="item-u">
+				<view class="item-text">
+					<text>资质</text>
+				</view>
+				<view v-if="!img" class="choose-outer" @click="choodeImage">
+					<text class="up-label">+</text>
+					<text class="up-title">证书图片</text>
+				</view>
+				<image v-if="img" @click="choodeImage" :src="img" mode="aspectFill"
+					style="width: 294rpx; height: 198rpx; border-radius: 15rpx;"></image>
+			</view>
+			<view class="item">
+				<view class="item-text">请选择机构</view>
+				<view class="item-input">
+					<picker style="line-height: 44rpx;" @change="bindPickerChange" :value="index" :range="institutionList" range-key="nickname">
+						<view class="uni-input">{{institutionList[index].nickname}}</view>
+					</picker>
+				</view>
+			</view>
+			<view class="item-submit">
+				<view></view>
+			</view>
+			<view class="item-submit">
+				<view class="item-button" @click="submit">提交审核</view>
+			</view>
+
+		</view>
+		<view v-if="state == 1">
+			<view class="item-submit">
+				目前正在审核请耐心等待
+			</view>
+		</view>
+		<view v-if="state == 2">
+			<view class="item-submit">
+				审核已通过
+			</view>
+		</view>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				title: '',
+				phone: '',
+				username: '',
+				password: '',
+				img: '',
+				content: '',
+				array: [{
+					name: '男'
+				}, {
+					name: '女'
+				}],
+				action: '', // 图片上传地址
+				index: 0,
+				state: 0,
+				identity: 0, // 1 咨询师 2机构
+				page: 1,
+				limit: 999,
+				institutionList: [], // 机构列表
+			}
+		},
+		onLoad(option) {
+			// this.getInstitutionList();
+			this.identity = option.identity;
+			this.getInstitutionList();
+		},
+		methods: {
+			//获取机构列表
+			getInstitutionList(loading = true) {
+				this.$request.getInstitutionList({
+					page: this.page,
+					limit: this.limit
+				}).then( res =>{
+					console.log(res)
+					this.institutionList = res.data
+				}).catch( e=>{
+					console.log(e)
+				})
+			},
+			// 选择图片上传
+			choodeImage() {
+				uni.chooseImage({
+					count: 1,
+					sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
+					sourceType: ['album'], //从相册选择
+					success: (res) => {
+						// this.img = res.tempFilePaths[0]
+						uni.showLoading({
+							title: '上传中...'
+						})
+						uni.uploadFile({
+							url: 'https://ocr.lfwhzb.com/api/upload/image', //接口地址
+							filePath: res.tempFilePaths[0],
+							name: 'upfile',
+							success: (uploadFileRes) => {
+								uni.hideLoading()
+								console.log(uploadFileRes, '111111111111111')
+								console.log(uploadFileRes);
+								this.img = uploadFileRes.data
+							}
+						});
+					}
+				})
+			},
+			bindPickerChange: function(e) {
+				console.log('picker发送选择改变,携带值为:' + e.detail.value)
+				this.index = e.detail.value
+			},
+			submit: function(e) {
+
+				if (!this.title) {
+					uni.showToast({
+						title: '请输入姓名',
+						icon: 'none'
+					})
+					return
+				}
+
+				if (!this.phone) {
+					uni.showToast({
+						title: '请输入手机号码',
+						icon: 'none'
+					})
+					return
+				}
+
+				if (!this.username) {
+					uni.showToast({
+						title: '请输入账号',
+						icon: 'none'
+					})
+					return
+				}
+
+				var pwdRegex = new RegExp('(?=.*[0-9])(?=.*[a-zA-Z]).{6,30}');
+				if (!pwdRegex.test(this.password)) {
+					uni.showToast({
+						title: "您的密码复杂度太低(密码中必须包含字母、数字),请及时修改密码!",
+						icon: 'none'
+					})
+					return
+				}
+
+				if (!this.img) {
+					uni.showToast({
+						title: '请上传您的资质',
+						icon: 'none'
+					})
+					return
+				}
+
+				this.$post({
+					data: {
+						do: 'LecturerSettled',
+						data: {
+							"title": this.title,
+							"phone": this.phone,
+							"username": this.username,
+							"password": this.password,
+							"img": this.img,
+							"content": '',
+							"sex": this.index + 1,
+							"user_id": uni.getStorageSync('id'),
+						}
+					}
+				}).then(res => {
+					console.log(res, 'ssssssssssssssssssssss')
+					uni.showToast({
+						title: '添加成功',
+						mask: true
+					})
+					setTimeout(() => {
+						uni.navigateBack()
+					}, 1500)
+				})
+			}
+		}
+	}
+</script>
+
+<style>
+	.item {
+		display: flex;
+		padding: 27rpx 0;
+		border-bottom: 1px solid #f3f3f3;
+		align-items: center;
+	}
+
+	.box {
+		padding: 10rpx 30rpx;
+	}
+
+	.item-input {
+		padding-left: 10rpx;
+		width: 70%;
+	}
+
+	.item-text {
+		min-width: 115rpx;
+	}
+
+	.img {
+		width: 100%;
+		height: 320rpx;
+	}
+
+	.item-button {
+		width: 247rpx;
+		max-content: 80rpx;
+		text-align: center;
+		line-height: 80rpx;
+		background-color: #04ba8f;
+		color: #fff;
+		border-radius: 94rpx;
+		box-shadow: 0 6rpx 6rpx rgba(0, 0, 0, .05);
+		margin: 20rpx 0;
+	}
+
+	.item-submit {
+		display: flex;
+		justify-content: center;
+		align-items: center;
+	}
+
+	.item-u {
+		display: flex;
+		padding: 10rpx 0;
+		align-items: center;
+	}
+
+	.choose-outer {
+		width: 290rpx;
+		height: 198rpx;
+		border: 2px dotted #CCCCCC;
+		border-radius: 15rpx;
+		display: flex;
+		flex-direction: column;
+		justify-content: center;
+		align-items: center;
+	}
+</style>

+ 180 - 0
xinlijiankang-uniapp-main/pages/index/coupon.vue

@@ -0,0 +1,180 @@
+<template>
+	<view>
+		<view v-if="list.length > 0">
+			<view class="co-title"></view>
+			<view class="co-list">
+				<view :class="item.status == 1 ? 'co-status1 co-item':'co-status2 co-item'" v-for="(item,index) in list">
+					<view class="co-left">
+						<view class="co-title">{{item.title}}</view>
+						<view class="co-over">过期时间: {{item.over}}</view>
+					</view>
+					<view class="co-right">
+						<view class="co-price">{{item.price}}</view>
+						<view class="co-status">{{item.status_title}}</view>
+					</view>
+				</view>
+			</view>
+		</view>
+		<view class="nodata_box" v-if="list.length==0">
+			<image src="/static/user/no_data_img.png" mode="" style="width: 220rpx; height: 302rpx;"></image>
+			<text>暂无数据</text>
+		</view>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				list: {},
+				user_id: '',
+			}
+		},
+		onLoad() {
+			if (uni.getStorageSync('id')) {
+				this.getInfo();
+				this.show = true;
+			} else {
+				// #ifdef MP
+				this.mpLogin()
+				return
+				uni.showToast({
+					title: '请先登录'
+				})
+				// #endif
+			}
+		},
+		methods: {
+			getInfo() {
+				let that = this;
+				let user_id = uni.getStorageSync('id');
+				this.$post({
+					data: {
+						do: 'CouponList',
+						data: {
+							user_id: user_id,
+						}
+					}
+				}).then(res => {
+					that.list = res.data
+				})
+			},
+			// 小程序登录
+			mpLogin() {
+				let that = this;
+				uni.login({
+					provider: 'weixin',
+					success: (res) => {
+						console.log(res, 'rrrrrr')
+						const code = res.code
+						this.$post({
+							data: {
+								do: 'Login',
+								data: {
+									code
+								}
+							}
+						}).then(res => {
+							this.logininfo = res.data
+							uni.showModal({
+								title: '提示',
+								content: '是否进行头像和昵称授权',
+								success: (res) => {
+									if (res.confirm) {
+										this.getnickImage()
+									}
+								}
+							})
+						})
+					}
+				})
+			},
+			getnickImage() {
+				console.log(this.logininfo.id)
+				uni.getUserProfile({
+					desc: '用于昵称和头像的展示',
+					success: res => {
+						console.log(res, '++++')
+						console.log({
+							user_id: this.logininfo.id,
+							nickName: res.userInfo.nickName,
+							avatarUrl: res.userInfo.avatarUrl
+						})
+						this.$post({
+							data: {
+								do: 'UpdateUser',
+								data: {
+									user_id: this.logininfo.id,
+									nickName: res.userInfo.nickName,
+									avatarUrl: res.userInfo.avatarUrl
+								}
+							}
+						}).then(res => {
+							console.log(res, 'rrrrrrrrrr')
+							for (let i in this.logininfo) {
+								uni.setStorageSync(i, this.logininfo[i])
+							}
+							this.type == 0;
+							this.getuserinfo();
+						})
+						// this.nickName = res.userInfo.nickName
+						// this.avatarUrl = res.userInfo.avatarUrl
+						// this.country = res.userInfo.country
+						// this.province = res.userInfo.province
+						// this.city = res.userInfo.city
+						// this.gender = res.userInfo.gender
+						// uni.login({
+						// 	provider: 'weixin',
+						// 	success: (res) => {
+						// 		this.loginCode = res.code
+						// 		uni.hideLoading()
+						// 		this.popShow = true
+						// 	},
+						// })
+					},
+					fail: (err) => {
+						uni.hideLoading()
+					}
+				})
+			},
+		}
+	}
+</script>
+
+<style>
+	.nodata_box{
+			display: flex;
+			flex-direction: column;
+			justify-content: center;
+			align-items: center;
+			margin: 0 auto;
+			margin-top: 250rpx;
+		}
+	.co-left {
+		width: 85%;
+	}
+
+	.co-item {
+		display: flex;
+		margin: 20rpx;
+		padding: 35rpx;
+		border-radius: 30rpx;
+		align-items: center;
+	}
+
+	.co-title {
+		font-size: 50rpx;
+		margin: 0 0 20rpx;
+	}
+
+	.co-price {
+		font-size: 40rpx;
+	}
+	
+	.co-status1{
+		background-color: #ffdada;
+	}
+	.co-status2{
+		background-color: #f1f1f1;
+	}
+</style>

+ 309 - 0
xinlijiankang-uniapp-main/pages/index/hd.vue

@@ -0,0 +1,309 @@
+<template>
+	<view>
+		<u-navbar :is-back="false" :border-bottom="false" :background="background">
+			<view style="width: 100%;padding: 0 10rpx;">
+				<view class="flztoa inlbhhe ">
+					<navigator class="indihh" url="../index/index" open-type="redirect" hover-class="none">
+						<text>最新</text>
+					</navigator>
+<!-- 					<navigator class="indihh" url="../index/hykt" open-type="redirect" hover-class="none">
+						<text>会员</text>
+					</navigator> -->
+					<navigator class="indihh" url="../index/zylx" open-type="redirect" hover-class="none">
+						<text>治愈练习</text>
+					</navigator>
+					<view class="indihh">
+						<text style="font-size: 44rpx;color:  #374B6E;">活动</text>
+						<view style="width: 26rpx;height: 4rpx;background: #374B6E;border-radius: 4rpx;margin-top: 10rpx;"></view>
+					</view>
+				</view>
+			</view>
+		</u-navbar>
+		
+		<view class="hdxmjjr">
+			<view class="hddderimg" style="overflow: hidden;">
+				<!-- 图片预留 -->
+				<image :src="bannerImage" style="width: 100%; height: 100%;" mode="aspectFill"></image>
+			</view>
+			<view class="hdwdxinr">
+				<navigator  url="/pages/lecturer/wdhd"  hover-class="none">
+					<text style="font-size: 44rpx;color:  #374B6E;">我的活动</text>
+				</navigator>
+				<view class="hdmmner"></view>
+				<navigator  url="/pages/lecturer/wdkc"  hover-class="none">
+					<text style="font-size: 44rpx;color:  #374B6E;">我的课程</text>
+				</navigator>
+			</view>
+		</view>
+		<view class="inyyeddf" v-if="kclist.length">
+			<view class="indhuyr">
+				<view class="indjbrr"></view>
+				<text>热门课程</text>
+			</view>
+			<scroll-view class="hdceert" style="white-space: nowrap;" @scrolltolower="scrolltolowerkc" scroll-x>
+				<view class="hdhhyyr" v-for="(item,index) in kclist" :key="index" style="display: inline-block;">
+					
+				</view>
+			</scroll-view>
+		</view>
+		
+		<view class="inyyeddf" v-if="zblist.length">
+			<view class="indhuyr">
+				<view class="indjbrr"></view>
+				<text>直播课程</text>
+			</view>
+			<scroll-view class="hdceert" style="white-space: nowrap;" @scrolltolower="scrolltolowerzb" scroll-x>
+				<view class="hdhhyyr" v-for="(item,index) in zblist" :key="index" style="display: inline-block;">
+					
+				</view>
+			</scroll-view>
+		</view>
+		
+		<view class="inyyeddf" v-if="actlist.length">
+			<view class="indhuyr">
+				<view class="indjbrr"></view>
+				<text>线下活动</text>
+			</view>
+			<scroll-view class="hdceert" style="white-space: nowrap;" @scrolltolower="scrolltoloweract" scroll-x >
+				<view class="hdhhyyr" v-for="(item,index) in actlist" :key="index" @click="toDetail(item.id)" style="display: inline-block; overflow: hidden;">
+					<image :src="item.imglist[0]" mode="aspectFill" style="width: 100%; height: 100%;"></image>
+				</view>
+			</scroll-view>
+		</view>
+		
+		<view class="youjdje" @click="toAddcourse">
+			<image src="/static/index/inr2.png" style="width: 96rpx;height: 96rpx;min-width: 96rpx;" mode=""></image>
+		</view>
+		
+		<view style="height: 130rpx;"></view>
+		<view class="dibuboot">
+			<navigator class="dibubootlb" url="../index/index" open-type="redirect" hover-class="none">
+				<image src="/static/dibu/bob1.png" style="width: 48rpx;height: 48rpx;"></image>
+				<text style="color: #374B6E">首页</text>
+			</navigator>
+<!-- 			<navigator class="dibubootlb" url="../lecturer/wdzx" open-type="redirect" hover-class="none">
+				<image src="/static/dibu/boa2.png" style="width: 48rpx;height: 48rpx;"></image>
+				<text>咨询</text>
+			</navigator>
+			<navigator class="dibubootlb" url="../index/jiehuo" open-type="redirect" hover-class="none">
+				<image src="/static/dibu/boa3.png" style="width: 48rpx;height: 48rpx;"></image>
+				<text>解惑</text>
+			</navigator> -->
+			<navigator class="dibubootlb" url="../lecturer/my" open-type="redirect" hover-class="none">
+				<image src="/static/dibu/boa4.png" style="width: 48rpx;height: 48rpx;"></image>
+				<text>我的</text>
+			</navigator>
+		</view>
+
+
+
+
+
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				background: {
+					backgroundColor: '#ffffff',
+				},
+				bannerImage:'',   // 顶部图片
+				kclist:[],   // 热门课程
+				kcpage:1,    // 当前第几页课程
+				kctotal:0,    // 课程总条数
+				kc_id:0,			// 热门课程的id
+				
+				actlist:[],   // 活动列表 
+				actpage:1,    // 当前第几页活动
+				acttotal:0,		// 活动总条数
+				
+				zblist:[],			// 直播课程列表
+				zbpage:1,    	// 当前第几页直播课程
+				zbtotal:20,    // 直播课程总条数
+			}
+		},
+		onLoad() {
+			this.getCover()
+			this.getMyCourseOrder()
+			this.getAcList()
+			// 我的报名 留着备用
+			// this.$post({
+			// 	data:{
+			// 		do:'MyGoodOrder',
+			// 		data:{
+			// 			page:1,
+			// 			num:10,
+			// 			type:1,
+			// 			user_id:uni.getStorageSync('id'),
+			// 			pw:375
+			// 		}
+			// 	}
+				
+			// }).then(res=>{
+			// 	console.log(res,'+++++')
+			// 	console.log(JSON.parse(res.data.list[0].app_content))
+			// })
+		},
+		methods: {
+			
+			// 热门课程到底
+			scrolltolowerkc(){
+				if(this.kclist.length<this.kctotal){
+					this.zbpage++
+					this.getClassList(this.kc_id)
+				}
+			},
+			// 直播划到底
+			scrolltolowerzb(){
+				if(this.zblist.length<this.zbtotal){
+					this.zbpage++
+					// 调直播课程接口
+				}
+			},
+			// 活动划到底
+			scrolltoloweract(){
+				if(this.actlist.length < this.acttotal){
+					this.actpage++
+					this.getAcList()
+				}
+			},
+			// 获取课程分类
+			getMyCourseOrder(){
+				this.$post({
+					data:{
+						do:'CourseType',
+						data:{
+							user_id:uni.getStorageSync('id'),
+							type_id:0,
+							pw:375
+						}
+					}
+				}).then(res=>{
+					let id  = res.data.find(item=>item.title=='热门课程').id
+					this.kc_id = id
+					this.getClassList(id)
+				})
+			},
+			// 获取热门课程
+			getClassList(type_id){
+				this.$post({
+					data:{
+						do:'CourseList',
+						data:{
+							page:1,
+							num:10,
+							type_id,
+							user_id:uni.getStorageSync('id')
+						}
+					}
+				}).then(res=>{
+					this.kctotal = res.data.total
+					this.kclist = this.actpage==1?res.data.data:[...this.kclist,...res.data.data]
+				})
+			},
+			// 获取活动列表
+			getAcList(){
+				this.$post({
+					data:{
+						do:'GoodList',
+						data:{
+							page:this.actpage,
+							num:20,
+							type_id:1,
+						}
+					}
+				}).then(res=>{
+					console.log(res,'actlist')
+					this.acttotal = res.data.total
+					this.actlist = this.actpage==1?res.data.data:[...this.actlist,...res.data.data]
+				})
+			},
+			// 获取活动顶部图片
+			getCover(){
+				this.$post({
+					data:{
+						do:'HomeView',
+					}
+				}).then(res=>{
+					console.log(res,'cover')
+					this.bannerImage = res.data.type_4[0].img || ''
+				})
+			},
+			// 活动详情
+			toDetail(id){
+				uni.navigateTo({
+					url:'/pages/user/wdhd-xq?id='+id
+				})
+			},
+            // 去添加课程
+            toAddcourse(){
+                if(uni.getStorageSync('is_lecturer')!=1){
+                   uni.showToast({
+                       title:'您还不是讲师,暂不能添加课程',
+                       icon:'none'
+                   }) 
+                   return
+                }else{
+                    uni.navigateTo({
+                        url:"../lecturer/sckc"
+                    })
+                }
+            }
+			
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	.hdxmjjr{
+		margin: 30rpx 20rpx;
+	}
+	.hddderimg{
+		height: 364rpx;
+		background: #4D6E99;
+		box-shadow: 0rpx 8rpx 12rpx 2rpx rgba(15, 45, 209, 0.1607843137254902);
+		border-radius: 16rpx 16rpx 0rpx 0rpx;
+	}
+	.hdmmner{
+		width: 2rpx;
+		height: 60rpx;
+		background:#E4E4E4;
+	}
+	.hdwdxinr{
+		background: #FFFFFF;
+		box-shadow: 0rpx 0rpx 16rpx 2rpx rgba(0, 0, 0, 0.058823529411764705);
+		border-radius: 0rpx 0rpx 16rpx 16rpx;
+		display: flex;
+		justify-content: space-between;
+		align-items: center;
+		font-size: 36rpx;
+		font-weight: 400;
+		color: #374B6E;
+		line-height: 50rpx;
+		padding: 30rpx 96rpx;
+		font-family: PingFang SC-Bold, PingFang SC;
+	}
+	.hdhhyyr{
+		width: 266rpx;
+		min-width: 266rpx;
+		height: 180rpx;
+		background: #88BBDA;
+		border-radius: 16rpx 16rpx 16rpx 16rpx;
+		margin-right: 20rpx;
+	}
+	.hdceert{
+		display: flex;
+		justify-content: flex-start;
+		overflow-x: auto;
+		margin-top: 30rpx;
+	}
+	 
+	 
+	 
+</style>

+ 339 - 0
xinlijiankang-uniapp-main/pages/index/hykt.vue

@@ -0,0 +1,339 @@
+<template>
+	<view>
+		<view class="status_bar"></view>
+		<u-navbar :is-back="false" :border-bottom="false" :background="background">
+			<view style="width: 100%;padding: 0 10rpx;">
+				<view class="flztoa inlbhhe ">
+					<navigator class="indihh" url="/pages/index/index" open-type="redirect" hover-class="none">
+						<text>最新</text>
+					</navigator>
+					<view class="indihh">
+						<text style="font-size: 44rpx;color:  #374B6E;">会员</text>
+						<view
+							style="width: 26rpx;height: 4rpx;background: #374B6E;border-radius: 4rpx;margin-top: 10rpx;">
+						</view>
+					</view>
+					<navigator class="indihh" url="/pages/index/zylx" open-type="redirect" hover-class="none">
+						<text>治愈练习</text>
+					</navigator>
+					<navigator class="indihh" url="/pages/index/hd" open-type="redirect" hover-class="none">
+						<text>活动</text>
+					</navigator>
+				</view>
+			</view>
+		</u-navbar>
+		<view class="hyinnr" style="overflow: hidden;">
+			<image src="/static/my/my01.png"
+				style="width: 100%; height: 103%; position: absolute; left: 0; top: 0rpx; z-index: -1;" mode=""></image>
+			<view class="hyinnrks">
+				<view style="margin: 60rpx 40rpx 36rpx 40rpx;">
+					<image src="/static/my/my02.png" style="width: 227.14rpx;height: 56rpx;" mode=""></image>
+				</view>
+				<view class="hyintxt">
+					<text>开通会员尽享三大权益</text>
+				</view>
+				<view class="hyinrq">
+					<text>到期:{{info.vip.over_time}}</text>
+				</view>
+			</view>
+		</view>
+
+		<scroll-view scroll-x="true" class="card_list">
+			<view :class="card_checked == index ? 'card_a card_item':'card_item'" v-for="(item, index) in card_list"
+				@click="changeCard(index)">
+				<view class="card_dis_title" v-if="item.dis">{{item.dis.title}}</view>
+				<view class="card_dis_title" v-else>暂无折扣</view>
+				<view class="card_title">{{item.title}}</view>
+				<view class="card_price" v-if="item.dis"><text class="card_price_icon">¥</text>{{item.dis.price}}</view>
+				<view class="card_price" v-else><text class="card_price_icon">¥</text>{{item.price}}</view>
+				<view class="card_origin" v-if="item.dis"><text class="del_line">¥{{item.price}}</text>特惠</view>
+				<view class="card_origin" v-else><text class="del_line"></text>特惠</view>
+			</view>
+		</scroll-view>
+
+		<view class="myxmkstt">
+			<view class="myhbtui">
+				<view class="myshutt"></view>
+				<text>专属权益</text>
+			</view>
+
+			<view class="flztoa" style="margin: 0 66rpx; margin-top: 20rpx;">
+				<view class="myiodde">
+					<image src="/static/my/myb01.png" style="width: 80rpx;height: 80rpx;margin-bottom: 6rpx;" mode="">
+					</image>
+					<text>会员价</text>
+				</view>
+				<view class="myiodde">
+					<image src="/static/my/myb02.png" style="width: 80rpx;height: 80rpx;margin-bottom: 6rpx;" mode="">
+					</image>
+					<text>体检理疗</text>
+				</view>
+				<view class="myiodde">
+					<image src="/static/my/myb03.png" style="width: 80rpx;height: 80rpx;margin-bottom: 6rpx;" mode="">
+					</image>
+					<text>更多优惠</text>
+				</view>
+			</view>
+		</view>
+
+		<view class="myxmkstt">
+			<view class="myhbtui">
+				<view class="myshutt"></view>
+				<text>会员规则</text>
+			</view>
+
+			<view class="mytxtjs">
+				<rich-text :nodes="info.vip_set.agreement"></rich-text>
+			</view>
+		</view>
+		<view class="btn" @click="pay" v-if="is_vip == 0">
+			开通会员/¥{{card_list[card_checked].dis ? card_list[card_checked].dis.price : card_list[card_checked].price}}
+		</view>
+		<view style="height: 130rpx;"></view>
+		<view class="dibuboot">
+			<navigator class="dibubootlb" url="../index/index" open-type="redirect" hover-class="none">
+				<image src="/static/dibu/bob1.png" style="width: 48rpx;height: 48rpx;"></image>
+				<text style="color: #374B6E">首页</text>
+			</navigator>
+<!-- 			<navigator class="dibubootlb" url="../lecturer/wdzx" open-type="redirect" hover-class="none">
+				<image src="/static/dibu/boa2.png" style="width: 48rpx;height: 48rpx;"></image>
+				<text>咨询</text>
+			</navigator>
+			<navigator class="dibubootlb" url="../index/jiehuo" open-type="redirect" hover-class="none">
+				<image src="/static/dibu/boa3.png" style="width: 48rpx;height: 48rpx;"></image>
+				<text>解惑</text>
+			</navigator> -->
+			<navigator class="dibubootlb" url="../lecturer/my" open-type="redirect" hover-class="none">
+				<image src="/static/dibu/boa4.png" style="width: 48rpx;height: 48rpx;"></image>
+				<text>我的</text>
+			</navigator>
+		</view>
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				background: {
+					backgroundColor: '#ffffff',
+				},
+				info: {},
+				is_vip: 0,
+				deviceType: 'wxapp',
+				scrollTop: 0,
+				old: {
+					scrollTop: 0
+				},
+				card_list: [],
+				card_checked: 0,
+				card: {},
+
+			}
+		},
+		onLoad() {
+			// #ifdef APP-PLUS
+			this.deviceType = 'wxh5'
+			// #endif
+			// #ifdef MP-WEIXIN
+			this.deviceType = 'wxapp'
+			// #endif
+			this.getvipinfo();
+			this.is_vip = uni.getStorageSync('is_vip');
+
+		},
+		methods: {
+			changeCard(index) {
+				this.card_checked = index;
+				this.card = this.card_list[index];
+			},
+			getvipinfo() {
+				let user_id = uni.getStorageSync('id');
+
+
+				this.$post({
+					data: {
+						do: 'Vip',
+						data: {
+							user_id: user_id,
+							pw: '375'
+						}
+					}
+				}).then(res => {
+					
+					if (res.data.is_vip == 1) {
+						uni.setStorageSync('is_vip', 1);
+						this.is_vip = uni.getStorageSync('is_vip');
+					}
+					
+					this.info = res.data,
+					this.card_list = this.info.vip_card;
+					this.card = this.info.vip_card[0];
+				})
+			},
+			pay() {
+
+
+				let that = this;
+				console.log(that.card, 'accc');
+				let user_id = uni.getStorageSync('id');
+				that.$post({
+					data: {
+						do: 'VipOrder',
+						data: {
+							card_id: that.card.id,
+							cdkey: '',
+							user_id: user_id,
+							pw: '375',
+						},
+						deviceType: this.deviceType
+					}
+				}).then(res => {
+					that.wechatpay(res.data);
+				})
+			},
+			wechatpay(pay) {
+				var that = this
+				// #ifdef APP-PLUS
+				uni.requestPayment({
+					"provider": "wxpay",
+					orderInfo: pay.orderinfo, //微信、支付宝订单数据 【注意微信的订单信息,键值应该全部是小写,不能采用驼峰命名】
+					success: function(res) {
+						console.log('success:' + JSON.stringify(res));
+						uni.showToast({
+							title: '支付成功'
+						})
+						that.is_vip = 1;
+						uni.setStorageSync('is_vip', 1)
+						that.getvipinfo();
+					},
+					fail: function(err) {
+						console.log(pay.orderinfo, 'eeeeeeeeeeeeeeeee')
+						console.log('fail:' + JSON.stringify(err));
+						uni.showToast({
+							title: '支付失败',
+							icon: 'error'
+						})
+					}
+				});
+				// #endif
+
+
+				// #ifdef MP-WEIXIN
+				uni.requestPayment({
+					provider: 'wxpay',
+					timeStamp: pay.timeStamp,
+					nonceStr: pay.nonceStr,
+					package: pay.package,
+					signType: 'MD5',
+					paySign: pay.paySign,
+					success() {
+						uni.showToast({
+							title: '支付成功'
+						})
+						that.is_vip = 1;
+						uni.setStorageSync('is_vip', 1)
+						that.getvipinfo();
+					},
+					fail(res) {
+						console.log(res)
+						uni.showToast({
+							title: '支付失败',
+							icon: 'error'
+						})
+					}
+				})
+				// #endif
+
+			}
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	.status_bar {
+		height: var(--status-bar-height);
+		width: 100%;
+	}
+
+	.btn {
+		width: 524upx;
+		height: 100upx;
+		background: #F8DAB9;
+		font-size: 36upx;
+		display: flex;
+		align-items: center;
+		justify-content: center;
+		border-radius: 100upx;
+		margin: 50upx auto;
+	}
+
+	.card_list {
+		white-space: nowrap;
+		width: 100%;
+	}
+
+	.card_item {
+		width: 200rpx;
+		height: 260rpx;
+		border-radius: 20rpx;
+		margin: 0 10rpx;
+		display: inline-block;
+		border: 6rpx solid #f1f1f1;
+	}
+
+	.card_item:last-child {
+		margin-right: 42rpx;
+	}
+
+	.card_item:first-child {
+		margin-left: 42rpx;
+	}
+
+	.card_dis_title {
+		line-height: 50rpx;
+		height: 50rpx;
+		background-color: #ffcb7d;
+		text-align: center;
+		font-weight: 700;
+		border-radius: 15rpx 15rpx 0 0;
+		color: #fff;
+		width: 100%;
+	}
+
+	.card_title {
+		line-height: 50rpx;
+		height: 50rpx;
+		text-align: center;
+	}
+
+	.card_price {
+		line-height: 88rpx;
+		text-align: center;
+		height: 88rpx;
+		font-weight: 700;
+		font-size: 50rpx;
+	}
+
+	.card_price_icon {
+		font-size: 25rpx;
+		margin-right: 5rpx;
+	}
+
+	.card_origin {
+		text-align: center;
+	}
+
+	.del_line {
+		text-decoration: line-through;
+		margin-right: 5rpx;
+	}
+
+	.card_a {
+		border: 6rpx solid #ffcb7d;
+	}
+</style>

+ 233 - 0
xinlijiankang-uniapp-main/pages/index/hyktdis.vue

@@ -0,0 +1,233 @@
+<template>
+	<view>
+		<view class="status_bar"></view>
+		<u-navbar :is-back="false" :border-bottom="false" :background="background">
+			<view style="width: 100%;padding: 0 10rpx;">
+				<view class="flztoa inlbhhe ">
+					<navigator class="indihh" url="../index/index" open-type="redirect" hover-class="none">
+						<text>最新</text>
+					</navigator>
+					<view class="indihh">
+						<text style="font-size: 44rpx;color:  #374B6E;">会员</text>
+						<view
+							style="width: 26rpx;height: 4rpx;background: #374B6E;border-radius: 4rpx;margin-top: 10rpx;">
+						</view>
+					</view>
+					<navigator class="indihh" url="../index/zylx" open-type="redirect" hover-class="none">
+						<text>治愈练习</text>
+					</navigator>
+					<navigator class="indihh" url="../index/hd" open-type="redirect" hover-class="none">
+						<text>活动</text>
+					</navigator>
+				</view>
+			</view>
+		</u-navbar>
+
+		<view class="hyinnr" style="overflow: hidden;">
+            <image src="/static/my/my01.png" style="width: 100%; height: 103%; position: absolute; left: 0; top: 0rpx; z-index: -1;" mode=""></image>
+			<view class="hyinnrks">
+				<view style="margin: 60rpx 40rpx 36rpx 40rpx;">
+					<image src="/static/my/my02.png" style="width: 227.14rpx;height: 56rpx;" mode=""></image>
+				</view>
+				<view class="hyintxt">
+					<text>开通会员尽享三大权益</text>
+				</view>
+				<view class="hyinrq">
+					<text>到期:{{info.vip.over_time}}</text>
+				</view>
+			</view>
+		</view>
+
+		<view class="myxmkstt">
+			<view class="myhbtui">
+				<view class="myshutt"></view>
+				<text>专属权益</text>
+			</view>
+
+			<view class="flztoa" style="margin: 0 66rpx; margin-top: 20rpx;">
+				<view class="myiodde">
+					<image src="/static/my/myb01.png" style="width: 80rpx;height: 80rpx;margin-bottom: 6rpx;" mode="">
+					</image>
+					<text>会员价</text>
+				</view>
+				<view class="myiodde">
+					<image src="/static/my/myb02.png" style="width: 80rpx;height: 80rpx;margin-bottom: 6rpx;" mode="">
+					</image>
+					<text>体检理疗</text>
+				</view>
+				<view class="myiodde">
+					<image src="/static/my/myb03.png" style="width: 80rpx;height: 80rpx;margin-bottom: 6rpx;" mode="">
+					</image>
+					<text>更多优惠</text>
+				</view>
+			</view>
+		</view>
+
+		<view class="myxmkstt">
+			<view class="myhbtui">
+				<view class="myshutt"></view>
+				<text>会员规则</text>
+			</view>
+
+			<view class="mytxtjs">
+				<rich-text :nodes="info.vip_set.agreement"></rich-text>
+			</view>
+		</view>
+		<view class="btn" @click="pay" v-if="is_vip == 0">开通会员/¥{{info.vip_card[0].price}}</view>
+		<view style="height: 130rpx;"></view>
+		<view class="dibuboot">
+			<navigator class="dibubootlb" url="../index/index" open-type="redirect" hover-class="none">
+				<image src="/static/dibu/bob1.png" style="width: 48rpx;height: 48rpx;"></image>
+				<text style="color: #374B6E">首页</text>
+			</navigator>
+<!-- 			<navigator class="dibubootlb" url="../lecturer/wdzx" open-type="redirect" hover-class="none">
+				<image src="/static/dibu/boa2.png" style="width: 48rpx;height: 48rpx;"></image>
+				<text>咨询</text>
+			</navigator>
+			<navigator class="dibubootlb" url="../index/jiehuo" open-type="redirect" hover-class="none">
+				<image src="/static/dibu/boa3.png" style="width: 48rpx;height: 48rpx;"></image>
+				<text>解惑</text>
+			</navigator> -->
+			<navigator class="dibubootlb" url="../lecturer/my" open-type="redirect" hover-class="none">
+				<image src="/static/dibu/boa4.png" style="width: 48rpx;height: 48rpx;"></image>
+				<text>我的</text>
+			</navigator>
+		</view>
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				background: {
+					backgroundColor: '#ffffff',
+				},
+				info: {},
+				is_vip:0,
+				deviceType:'wxapp'
+			}
+		},
+		onLoad() {
+			// #ifdef APP-PLUS
+				this.deviceType = 'wxh5'
+			// #endif
+			// #ifdef MP-WEIXIN
+				this.deviceType = 'wxapp'
+			// #endif
+			this.getvipinfo();
+			this.is_vip = uni.getStorageSync('is_vip');
+			
+		},
+		methods: {
+			getvipinfo() {
+				let user_id = uni.getStorageSync('id');
+				this.$post({
+					data: {
+						do: 'Vip',
+						data: {
+							user_id: user_id,
+							pw: '375'
+						}
+					}
+				}).then(res => {
+					this.info = res.data
+				})
+			},
+			pay() {
+				let that = this;
+				let user_id = uni.getStorageSync('id');
+				that.$post({
+					data:{
+					do: 'VipOrder',
+					data: {
+						card_id: that.info.vip_card[0].id,
+						cdkey: '',
+						user_id: user_id,
+						pw: '375'
+					},
+					deviceType:this.deviceType
+				}
+				}).then(res => {
+					that.wechatpay(res.data);
+				})
+			},
+			wechatpay(pay){
+				var that = this
+				// #ifdef APP-PLUS
+						uni.requestPayment({
+								"provider": "wxpay", 
+								orderInfo: pay.orderinfo, //微信、支付宝订单数据 【注意微信的订单信息,键值应该全部是小写,不能采用驼峰命名】
+								success: function (res) {
+										console.log('success:' + JSON.stringify(res));
+										uni.showToast({
+											title: '支付成功'
+										})
+										that.is_vip = 1;
+										uni.setStorageSync('is_vip',1)
+										that.getvipinfo();
+								},
+								fail: function (err) {
+									console.log(pay.orderinfo,'eeeeeeeeeeeeeeeee')
+										console.log('fail:' + JSON.stringify(err));
+										uni.showToast({
+											title: '支付失败',
+											icon: 'error'
+										})
+								}
+						});
+				// #endif
+						
+				
+				// #ifdef MP-WEIXIN
+				uni.requestPayment({
+					provider: 'wxpay',
+					timeStamp: pay.timeStamp,
+					nonceStr: pay.nonceStr,
+					package: pay.package,
+					signType: 'MD5',
+					paySign: pay.paySign,
+					success() {
+						uni.showToast({
+							title: '支付成功'
+						})
+						that.is_vip = 1;
+						uni.setStorageSync('is_vip',1)
+						that.getvipinfo();
+					},
+					fail(res) {
+						console.log(res)
+						uni.showToast({
+							title: '支付失败',
+							icon: 'error'
+						})
+					}
+				})
+				// #endif
+			
+			}
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	.status_bar {
+		height: var(--status-bar-height);
+		width: 100%;
+	}
+	.btn {
+		width: 524upx;
+		height: 100upx;
+		background: #F8DAB9;
+		font-size: 36upx;
+		display: flex;
+		align-items: center;
+		justify-content: center;
+		border-radius: 100upx;
+		margin: 50upx auto;
+	}
+</style>

+ 369 - 0
xinlijiankang-uniapp-main/pages/index/index.vue

@@ -0,0 +1,369 @@
+<template>
+	<view class="page">
+		<u-navbar :is-back="false" :border-bottom="false" :background="background">
+			<view style="width: 100%;padding: 0 10rpx;">
+				<view class="flztoa inlbhhe ">
+					<view class="indihh">
+						<text style="font-size: 44rpx;color:  #374B6E;;">最新</text>
+						<view
+							style="width: 26rpx;height: 4rpx;background: #374B6E;border-radius: 4rpx;margin-top: 10rpx;">
+						</view>
+					</view>
+					<navigator class="indihh" url="/pages/index/hykt" open-type="redirect" hover-class="none">
+						<text>会员</text>
+					</navigator>
+					<navigator class="indihh" url="/pages/index/zylx" open-type="redirect" hover-class="none">
+						<text>治愈练习</text>
+					</navigator>
+					<navigator class="indihh" url="/pages/index/hd" open-type="redirect" hover-class="none">
+						<text>活动</text>
+					</navigator>
+				</view>
+			</view>
+		</u-navbar>
+		<navigator hover-class="none" class="inbddwwer" url="./SearchPage">
+			<view class="fzctob inbddwddre">
+				<image src="/static/index/ina1.png"
+					style="width: 40rpx;height: 40rpx;min-width: 40rpx;margin-right: 12rpx;"></image>
+				<input type="text" disabled value="" placeholder-style="color: #CCCCCC;font-size: 28rpx;"
+					placeholder="搜索你感兴趣的内容" />
+			</view>
+		</navigator>
+
+		<view class="flztoa" style="padding:30rpx 50rpx;">
+			<navigator class="incfh" url="../index/kc" hover-class="none">
+				<image src="/static/index/ibb5.png" style="width: 68rpx;height: 68rpx;"></image>
+				<text>课程</text>
+			</navigator>
+			<navigator class="incfh" url="../index/ztsp" hover-class="none">
+				<image src="/static/index/ibb6.png" style="width: 68rpx;height: 68rpx;"></image>
+				<text>主题视频</text>
+			</navigator>
+			<navigator class="incfh" url="../user/cp" hover-class="none">
+				<image src="/static/index/ibb7.png" style="width: 68rpx;height: 68rpx;"></image>
+				<text>测评</text>
+			</navigator>
+			<navigator class="incfh" url="../index/jiehuo" open-type="redirect" hover-class="none">
+				<image src="/static/index/ibb8.png" style="width: 68rpx;height: 68rpx;"></image>
+				<text>解惑</text>
+			</navigator>
+		</view>
+		<view class="pages-banner-box">
+			<view class="banner-box">
+				<image src="/static/index/index-bg.png" style="width: 100%;" mode="widthFix"></image>
+			</view>
+			<view class="banner-list">
+				<scroll-view scroll-y style="width: 100%;" type="custom" lower-threshold="20">
+				  <grid-view type="masonry" cross-axis-count="2">
+						<view class="scroll-item-box">
+							<view class="list-item">
+								<image src="/static/index/index-bg-1.png" mode="" style="width: 100%;height: 100%;" @click="goToUrl('/pages/user/cp')"></image>
+							</view>
+						</view>
+						<view class="scroll-item-box">
+							<view class="list-item">
+								<image src="/static/index/index-bg-2.png" mode="" style="width: 100%;height: 100%;"></image>
+							</view>
+						</view>
+						<view class="scroll-item-box">
+							<view class="list-item">
+								<image src="/static/index/index-bg-3.png" mode="" style="width: 100%;height: 100%;"></image>
+							</view>
+						</view>
+						<view class="scroll-item-box">
+							<view class="list-item">
+								<image src="/static/index/index-bg-4.png" mode="" style="width: 100%;height: 100%;"></image>
+							</view>
+						</view>
+						<view class="scroll-item-box">
+							<view class="list-item">
+								<image src="/static/index/index-bg-5.png" mode="" style="width: 100%;height: 100%;"></image>
+							</view>
+						</view>
+				  </grid-view>
+				</scroll-view>
+			</view>
+		</view>
+
+		<view class="inyyeddf">
+			<view class="indhuyr">
+				<view class="indjbrr"></view>
+				<text>最新资讯</text>
+			</view>
+			<view class="inyyelb">
+				<view class="inyyelbks" @click="toDetail(item.id)" v-for="(item,index) in ArticleList" :key="index">
+					<image class="indkkimg" :src="item.img" mode="aspectFill"></image>
+					<view class="fsxto">
+						<view class="indkktxta"><text>{{item.title}}</text></view>
+						<view class="indkktxtb u-line-1"><text>{{item.desc}}</text></view>
+						<view class="indkktxtc"><text>{{item.type_name}}</text></view>
+					</view>
+				</view>
+			</view>
+		</view>
+
+		<!-- <view class="inyyeddf">
+			<view class="indhuyr">
+				<view class="indjbrr"></view>
+				<text>资讯</text>
+			</view>
+
+			<view class="inyyshiy" style="overflow-x: scroll;">
+				<image class="inckkeer1" :src="`../../static/zy/zy0${index+1}.png`" mode="aspectFill" v-for="(item,index) in list"
+					:key="index" @click="godetails('4',item.to_id,item)"></image>
+			</view>
+		</view> -->
+
+		<view class="inyyeddf">
+			<view class="indhuyr">
+				<view class="indjbrr"></view>
+				<text>课程</text>
+			</view>
+
+			<view>
+				<view class="zytlidde" @click="goKcDetails(item)"
+					v-for="(item,index) in newCourseList" :key="index">
+					<view class="zytyyrimg" style="overflow: hidden;">
+						<image :src="item.cover" mode="aspectFill" style="width: 100%; height: 100%;"></image>
+					</view>
+					<view class="zytyyopf">
+						<view class="zytyotxta"><text>{{item.title}}</text></view>
+						
+						<view class="flztoa zytyotxtb">
+							<text>{{item.lecturer_name}}</text>
+						</view>
+						<view class="flztoa zytyotxtc" style="margin-top: 6rpx;">
+							<text>
+								<text style="padding-right: 10rpx;">折扣价格: {{item.current_price}}</text>
+								<text>原价格: {{item.original_price}}</text>
+							</text>
+							<image src="/static/zy/zyb3.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
+						</view>
+						<view class="flztoa">
+							<view class="fzctob zytyotxtc">
+								<text>{{item.play_count}}播放量 - 共{{item.chapter_num}}课时</text>
+								<!-- <image v-show="xqaxuye" @click="xqaxuye = false" src="/static/zy/zyb1.png" style="width: 36rpx;height: 36rpx;margin-left: 20rpx;" mode=""></image>
+								<image  v-show="!xqaxuye"  @click="xqaxuye = true" src="/static/zy/zyb2.png" style="width: 36rpx;height: 36rpx;margin-left: 20rpx;" mode=""></image> -->
+							</view>
+							<!-- 分钟 -->
+							<text class="zytyotxtd">{{item.time}}</text>
+						</view>
+					</view>
+				</view>
+				<view class="zyhxyyer"></view>
+			</view>
+			
+		</view>
+		<!-- <view class="inyyeddf">
+			<view class="indhuyr">
+				<view class="indjbrr"></view>
+				<text>讲师</text>
+			</view>
+			<view class="inyyshiy" style="overflow-x: scroll;">
+				<image class="inckkeer1" :src="item.img" mode="aspectFill" v-for="(item,index) in type_3"
+					:key="index" @click="godetails(item.to_type,item.to_id)"></image>
+			</view>
+		</view> -->
+
+
+		<view style="height: 130rpx;"></view>
+		<tabBar :active-index="activeIndex" @change="onTabBarChange"></tabBar>
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	
+	export default {
+		data() {
+			return {
+				background: {
+					backgroundColor: '#ffffff',
+				},
+				page: 1,
+				num: 10,
+				banner: [],
+				ArticleList: [], //最新咨询
+				type_1: [], //小视频
+				newCourseList: [], //课程
+				type_3: [], //讲师
+				sh: 0,
+				activeIndex: 0,
+			}
+		},
+		onLoad(res) {
+			// #ifdef MP
+				if(res.scene){
+					uni.setStorageSync('invite_id',res.scene);
+				}
+			// #endif
+			// this.getArticleList();
+			// this.getHomeView();
+			// this.getSh();
+
+		},
+		onShow() {
+			this.activeIndex = 0;
+			this.getcureList();
+			this.getnewCourse();
+		},
+		methods: {
+			goToUrl(u){
+				uni.navigateTo({
+					url: u
+				})
+			},
+			onTabBarChange(index) {
+				this.activeIndex = index;
+			},
+			getcureList(){
+				this.$request.getcureList({}).then(res => {
+					console.log(res)
+					this.list = res.data.splice(0,3);
+				}).catch(err => {
+					console.log(err)
+				})
+			},
+			// 获取资讯列表
+			getSh() {
+				this.$post({
+					data: {
+						do: 'Sh',
+						data: {
+
+						}
+					}
+				}).then(res => {
+					this.sh = res.data.sh;
+				}).catch(err => {
+					this.sh = 0;
+				})
+			},
+			// 获取资讯列表
+			getArticleList() {
+				this.$post({
+					data: {
+						do: 'articlelist',
+						data: {
+							page: this.page,
+							num: this.num,
+							type_id: 1
+						}
+					}
+				}).then(res => {
+					this.ArticleList = res.data.data
+				}).catch(err => {
+					this.ArticleList = []
+				})
+			},
+			// 获取小视频 课程 讲师展示
+			getHomeView() {
+				this.$post({
+					data: {
+						do: 'HomeView'
+					}
+				}).then(res => {
+					this.banner = res.data.banner
+					this.type_1 = res.data.type_1
+					this.type_2 = res.data.type_2
+					this.type_3 = res.data.type_3
+				})
+			},
+			// 获取课程
+			getnewCourse() {
+				let that = this;
+				that.$request.getnewCourse({}).then(res => {
+					this.newCourseList = res.data.splice(0,5);
+				}).catch(err => {
+					console.log(err)
+				})
+			},
+			godetails(type, id,item) {
+				if (type == '1') {
+					uni.navigateTo({
+						url: './kcxq-x?id=' + id
+					})
+				} else if (type == '2') {
+					uni.navigateTo({
+						url: './zxshi?id=' + id
+					})
+				} else if (type == '3') {
+					uni.navigateTo({
+						url: './hykt'
+					})
+				} else if (type == '4') {
+					uni.navigateTo({
+						url: './zyDetail?item=' + JSON.stringify(item)
+					})
+				}
+			},
+			// 资讯详情
+			toDetail(id) {
+				uni.navigateTo({
+					url: './zxxq?id=' + id
+				})
+			},
+			goKcDetails(id) {
+				let item = JSON.stringify(i);
+				uni.navigateTo({
+					url: './kcxq-x?item=' + item
+				})
+			},
+			tokc() {
+				// if(uni.getStorageSync('is_lecturer')==1){
+				uni.navigateTo({
+					url: "../index/rmkc"
+				})
+				// }else{
+				//     uni.navigateTo({
+				//         url:"../user/rmkc" 
+				//     })
+				// }
+			}
+
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+
+	.page{
+		background: #fff !important;
+	}
+	.pages-banner-box{
+		width: 100%;
+		padding: 0 30rpx;
+		box-sizing: border-box;
+	}
+	.banner-box{
+		width: 100%;
+		height: auto;
+		border-radius: 6px;
+	}
+	.banner-box image {
+		display: inline-block;
+	}
+	.banner-list{
+		margin-top: 10rpx;
+	}
+	.scroll-item-box {
+	  padding: 10rpx 10rpx 0 10rpx;
+	  box-sizing: border-box;
+	  border-radius: 6px;
+	  overflow: hidden;
+	}
+	.list-item{
+		background-color: #d9d9d9;
+		height: 120rpx;
+	}
+	.scroll-item-box:nth-of-type(1) .list-item{
+		height: 250rpx;
+	}
+	.incfh text{
+		margin: 0;
+	}
+
+</style>

+ 252 - 0
xinlijiankang-uniapp-main/pages/index/invite.vue

@@ -0,0 +1,252 @@
+<template>
+	<view>
+		<view style="margin: 0 0 30rpx 0;">
+			<img :src="info.share_img" alt="" style="width: 100%;">
+		</view>
+		<view class="in_box">
+			<view class="in_text">我的邀请码</view>
+			<input class="in_input" type="number" disabled="true" v-model="info.code" @click="copy">
+		</view>
+		<view class="in_box" v-if="info.state == 1">
+			<view class="in_text">我的邀请人</view>
+			<input class="in_input" type="text" disabled="true" v-model="info.invite" >
+		</view>
+		<view class="in_box" v-else>
+			<view class="in_text">输入邀请码</view>
+			<input class="in_input" type="number" v-model='user_id' style="width: 46%;">
+			<button style="height: 65rpx;line-height: 65rpx;font-size: 30rpx;    margin: 0 0 0 18rpx;
+    background-color: #4CAF50;
+    color: #fff;" @click="bind">绑定</button>
+		</view>
+		<view class="in_info">
+			<view style="margin: 20rpx 0;">活动规则: </view>
+			<view>1. 邀请人成功邀请到用户后会赠送课程优惠券</view>
+			<view>2. 被邀请用户可以免费获得体验会员</view>
+			<view>3. 每位用户限定绑定一次</view>
+			<view>4. 用户之间无法互相绑定</view>
+		</view>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				info: {},
+				user_id: '',
+			}
+		},
+		onLoad() {
+			if (uni.getStorageSync('id')) {
+				this.getInfo();
+				this.show = true;
+			} else {
+				// #ifdef MP
+				this.mpLogin()
+				return
+				uni.showToast({
+					title: '请先登录'
+				})
+				// #endif
+			}
+		},
+		methods: {
+			copy() {
+				uni.setClipboardData({
+					data: this.info.code,
+					success: function() {
+						uni.showToast({
+							title: '复制成功',
+							icon: 'none',
+						})
+					}
+				});
+			},
+			bind() {
+				let user_id = uni.getStorageSync('id');
+				let invite_id = this.user_id.substring(4);
+
+				if (!invite_id) {
+					uni.showToast({
+						title: '请输入邀请码',
+						icon: 'none',
+					})
+					return false;
+				}
+				if (user_id == invite_id) {
+					uni.showToast({
+						title: '无法绑定自己',
+						icon: 'none',
+					})
+					return false;
+				}
+
+				uni.showModal({
+					title: '提示',
+					content: '每个账号只能绑定一个邀请人, 您确定绑定么',
+					success: (res) => {
+						this.$post({
+							data: {
+								do: 'UserInvite',
+								data: {
+									invite_id: invite_id,
+									user_id: user_id,
+								}
+							}
+						}).then(res => {
+							if(res.data.status != 1){
+								uni.showToast({
+									title: '绑定失败',
+									icon: 'none',
+								})
+								return false;
+							}else{
+								uni.showToast({
+									title: '绑定成功',
+									icon: 'none',
+								})
+								
+								this.$post({
+									data: {
+										do: 'Vip',
+										data: {
+											user_id: user_id,
+										}
+									}
+								}).then(res3 => {
+									
+									if(res3.data.is_vip == 1){
+										uni.setStorageSync('is_vip',1);
+									}
+									
+								}).catch(err => {})
+								
+								this.getInfo();
+								return false;
+							}
+							
+						}).catch(err => {})
+					}
+				})
+			},
+			getInfo() {
+				let that = this;
+				let user_id = uni.getStorageSync('id');
+				this.$post({
+					data: {
+						do: 'GetShareInfo',
+						data: {
+							user_id: user_id,
+						}
+					}
+				}).then(res => {
+					that.info = res.data
+				})
+			},
+			// 小程序登录
+			mpLogin() {
+				let that = this;
+				uni.login({
+					provider: 'weixin',
+					success: (res) => {
+						console.log(res, 'rrrrrr')
+						const code = res.code
+						this.$post({
+							data: {
+								do: 'Login',
+								data: {
+									code
+								}
+							}
+						}).then(res => {
+							this.logininfo = res.data
+							uni.showModal({
+								title: '提示',
+								content: '是否进行头像和昵称授权',
+								success: (res) => {
+									if (res.confirm) {
+										this.getnickImage()
+									}
+								}
+							})
+						})
+					}
+				})
+			},
+			getnickImage() {
+				console.log(this.logininfo.id)
+				uni.getUserProfile({
+					desc: '用于昵称和头像的展示',
+					success: res => {
+						console.log(res, '++++')
+						console.log({
+							user_id: this.logininfo.id,
+							nickName: res.userInfo.nickName,
+							avatarUrl: res.userInfo.avatarUrl
+						})
+						this.$post({
+							data: {
+								do: 'UpdateUser',
+								data: {
+									user_id: this.logininfo.id,
+									nickName: res.userInfo.nickName,
+									avatarUrl: res.userInfo.avatarUrl
+								}
+							}
+						}).then(res => {
+							for (let i in this.logininfo) {
+								uni.setStorageSync(i, this.logininfo[i])
+							}
+							this.type == 0;
+							this.getInfo();
+						})
+						// this.nickName = res.userInfo.nickName
+						// this.avatarUrl = res.userInfo.avatarUrl
+						// this.country = res.userInfo.country
+						// this.province = res.userInfo.province
+						// this.city = res.userInfo.city
+						// this.gender = res.userInfo.gender
+						// uni.login({
+						// 	provider: 'weixin',
+						// 	success: (res) => {
+						// 		this.loginCode = res.code
+						// 		uni.hideLoading()
+						// 		this.popShow = true
+						// 	},
+						// })
+					},
+					fail: (err) => {
+						uni.hideLoading()
+					}
+				})
+			},
+		}
+	}
+</script>
+
+<style>
+	.in_input {
+		margin: 0 0 0 30rpx;
+		background-color: #f1f1f1;
+		height: 65rpx;
+		border-radius: 10rpx;
+		width: 64%;
+		padding: 0 15rpx;
+	}
+
+	.in_text {
+		margin: 0 0 0 29rpx;
+	}
+
+	.in_box {
+		display: flex;
+		height: 85rpx;
+		align-items: center;
+	}
+	.in_info{
+		margin: 20rpx;
+		padding: 10rpx;
+		border-radius: 20rpx;
+		background-color: #fff;
+	}
+</style>

+ 147 - 0
xinlijiankang-uniapp-main/pages/index/jiehuo-pl.vue

@@ -0,0 +1,147 @@
+<template>
+	<view class="">
+		<view class="flztoa jhbbre">
+			<view class="fzctob">
+				<image :src="info.avatarUrl"
+					style="width: 92rpx;min-width: 92rpx;height: 92rpx;border-radius: 200rpx;margin-right: 30rpx;"
+					mode=""></image>
+				<view class="">
+					<text>{{info.nickName}}</text>
+				</view>
+			</view>
+			<!-- <image src="/static/index/ind1.png" style="width: 116rpx;height: 48rpx;min-width: 116rpx;" mode=""></image> -->
+		</view>
+
+		<view class="jhwdmmt">
+			<view class="shidongt">
+				<view class="shibbert">
+					<view class="shikwer">
+						<text>{{info.content}}</text>
+						<!-- <text class="fyctoc" style="color: #374B6E;">展开</text> -->
+					</view>
+
+					<view class="flztoa" style="margin-top: 46rpx;">
+						<view class="fzctob" >
+               <image @click="like" :src="info.is_like == 1?'/static/index/w1.png':'/static/index/w2.png'" style="width: 48rpx;height: 48rpx;min-width: 48rpx;" mode=""></image>
+							<text class="shitxty">{{info.like_num}}</text>
+							<view style="margin-left: 40rpx;" @click="focus=true">
+								<image src="/static/index/w3.png" style="width: 48rpx;height: 48rpx;min-width: 48rpx;"
+									mode=""></image>
+							</view>
+						</view>
+						<view class="">
+							<text class="shitxtya">{{$u.timeFormat(info.create_time, 'yyyy:mm:dd  hh:MM:ss')}}</text>
+						</view>
+					</view>
+				</view>
+			</view>
+		</view>
+
+		<view class="jhwdmmt">
+			<view class="indhuyr">
+				<view class="indjbrr"></view>
+				<text>全部评论({{info.comment_num}})</text>
+			</view>
+			<view class="shidongt" v-for="(item,index) in info.comment" :key="index">
+				<view class="shibbert">
+					<view class="hfikwer">
+						<view class="hfuyerrt"><text>{{item.nickName}}</text></view>
+						<text>{{item.content}}</text>
+					</view>
+				</view>
+			</view>
+		</view>
+		<view class="flztoa hfddwevde">
+			<view class="hfddwerr">
+				<input type="text" :focus="focus" value="" placeholder-style="color:#333333;font-size: 28rpx;"
+					placeholder="您好!请问有什么可以帮助您的。" v-model="content" />
+			</view>
+			<view class="hfddwett" @click="addcomment">
+				<text>发送</text>
+			</view>
+		</view>
+
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				xqaxuye: false,
+				info: {},
+				user_id:'',
+				content:'',
+				focus:false
+			}
+		},
+		onLoad(e) {
+			this.getinfo(e.id, e.user_id)
+			this.user_id = e.user_id
+
+		},
+		methods: {
+			getinfo(id, user_id) {
+				this.$post({
+					data: {
+						do: 'QuestionIndex',
+						data: {
+							id: id,
+							user_id: user_id
+						}
+					}
+				}).then(res => {
+					this.info = res.message
+				})
+			},
+			//点赞
+			like(){
+				let that = this;
+				that.$post({
+					data: {
+						do: 'QuestionLike',
+						data: {
+							question_id: that.info.id,
+							user_id: that.user_id
+						}
+					}
+				}).then(res => {
+					that.getinfo(that.info.id,that.user_id);
+				})
+			},
+			//添加评论
+			addcomment(){
+				let that = this;
+				that.$post({
+					data: {
+						do: 'QuestionComment',
+						data: {
+							questions_id: that.info.id,
+							user_id: that.user_id,
+							content:that.content,
+							msg_id:0
+						}
+					}
+				}).then(res => {
+					that.getinfo(that.info.id,that.user_id);
+					that.content = '';
+				})
+			}
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	.jhbbre {
+		padding: 20rpx 24rpx;
+		background: #FFFFFF;
+		box-shadow: 0rpx 0rpx 20rpx 2rpx rgba(0, 0, 0, 0.10196078431372549);
+		font-size: 36rpx;
+		font-weight: 400;
+		color: #333333;
+	}
+</style>

+ 266 - 0
xinlijiankang-uniapp-main/pages/index/jiehuo.vue

@@ -0,0 +1,266 @@
+<template>
+	<view class="">
+		<u-navbar :is-back="false" :border-bottom="false" :background="background">
+			<view style="width: 100%;">
+				<view class="fzctob" style="padding: 0 30rpx;">
+					<image src="/static/index/inua.png"
+						style="width: 24rpx;height: 24rpx;min-width: 24rpx;margin-right: 10rpx;" mode=""></image>
+					<view class="jhuudd">
+						<text>北京市</text>
+					</view>
+				</view>
+			</view>
+		</u-navbar>
+
+		<view class="inbddwwer">
+			<view class="fzctob inbddwddre">
+				<image src="/static/index/ina1.png"
+					style="width: 40rpx;height: 40rpx;min-width: 40rpx;margin-right: 12rpx;"></image>
+				<input type="text" value="" placeholder-style="color: #CCCCCC;font-size: 28rpx;" placeholder="搜索你感兴趣的内容"
+					v-model="search" @confirm="getlist" />
+			</view>
+		</view>
+		<u-tabs :list="classifylist" :current="current" @change="change"></u-tabs>
+		<view class="">
+			<view class="fsxto jhkanuy" hover-class="none" v-for="(item,index) in list"
+				:key="index" @click="gopl(item.id)">
+				<view class="fzctob">
+					<view class="jhuuimg">
+						<image :src="item.avatarUrl"
+							style="width: 88rpx;height: 88rpx;min-width: 88rpx;border-radius: 200rpx;" mode=""></image>
+					</view>
+					<view class="fsxto" style="width: 100%;margin-left: 12rpx;">
+						<view class="flztoa">
+							<text class="jhtxty">{{item.nickName}}</text>
+							<text class="jhtxtya">{{$u.timeFormat(item.create_time, 'yyyy:mm:dd  hh:MM:ss')}}</text>
+						</view>
+						<view class="jhtxtyb">
+							<text>{{item.note}}</text>
+						</view>
+					</view>
+				</view>
+				<view class="jhtxtyc">
+					<text>{{item.content}}</text>
+				</view>
+				<view class="flztoa" style="margin-top: 30rpx;">
+					<view class="fzctob">
+						<image :src="item.is_like == 1?'/static/index/w1.png':'/static/index/w2.png'" style="width: 48rpx;height: 48rpx;min-width: 48rpx;" mode=""></image>
+						<text class="shitxty">{{item.like_num}}</text>
+						<view style="margin-left: 40rpx;">
+							<image src="/static/index/w3.png" style="width: 48rpx;height: 48rpx;min-width: 48rpx;"
+								mode=""></image>
+						</view>
+					</view>
+					<!-- 					<view class="">
+						<text class="shitxtya">2021.06.15</text>
+					</view> -->
+				</view>
+			</view>
+
+		</view>
+		<view class="youjdje" @click="show = true">
+			<image src="/static/index/inr2.png" style="width: 96rpx;height: 96rpx;min-width: 96rpx;" mode=""></image>
+		</view>
+
+		<view style="height: 120rpx;"></view>
+		<view class="dibuboot">
+			<navigator class="dibubootlb" url="../index/index" open-type="redirect" hover-class="none">
+				<image src="/static/dibu/boa1.png" style="width: 48rpx;height: 48rpx;"></image>
+				<text>首页</text>
+			</navigator>
+<!-- 			<navigator class="dibubootlb" url="../lecturer/wdzx" open-type="redirect" hover-class="none">
+				<image src="/static/dibu/boa2.png" style="width: 48rpx;height: 48rpx;"></image>
+				<text>咨询</text>
+			</navigator>
+			<navigator class="dibubootlb" url="../index/jiehuo" open-type="redirect" hover-class="none">
+				<image src="/static/dibu/bob3.png" style="width: 48rpx;height: 48rpx;"></image>
+				<text style="color: #374B6E">解惑</text>
+			</navigator> -->
+			<navigator class="dibubootlb" url="../lecturer/my" open-type="redirect" hover-class="none">
+				<image src="/static/dibu/boa4.png" style="width: 48rpx;height: 48rpx;"></image>
+				<text>我的</text>
+			</navigator>
+		</view>
+
+		<u-popup v-model="show" mode="bottom" border-radius="20">
+			<view class="title">发表解惑</view>
+			<view class="choicebox">
+				<view :class="item.id == type_id?'item-a':'item'" v-for="(item,index) in classifylist" :key="index"
+					@click="changeid(item.id)">{{item.name}}</view>
+			</view>
+			<textarea placeholder="请输入您的疑惑" v-model="content"></textarea>
+			<view class="btn" @click="publish">发布疑惑</view>
+		</u-popup>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				background: {
+					backgroundColor: '#ffffff',
+				},
+				hhyanm: {
+					color: '#FFFFFF',
+				},
+				search: '',
+				show: false,
+				classifylist: [],
+				current: 0,
+				list: [],
+				content: '', //用户输入的内容
+				user_id: '', //用户id
+				type_id: '' //选择的分类
+			}
+		},
+		onLoad() {
+			this.user_id = uni.getStorageSync('id');
+			this.getclassify();
+		},
+		methods: {
+			change(index) {
+				this.search = '';
+				this.current = index;
+				this.getlist();
+			},
+			changeid(id) {
+				this.type_id = id
+			},
+			// 获取资讯列表
+			getclassify() {
+				this.$post({
+					data: {
+						do: 'getQuestionType'
+					}
+				}).then(res => {
+					this.classifylist = res.data
+					this.type_id = res.data[0].id
+					this.getlist();
+				})
+			},
+			//获取解惑列表
+			getlist() {
+				let that = this;
+				this.$post({
+					data: {
+						do: 'SearchQuestionList',
+						data: {
+							search: that.search,
+							type_id: that.classifylist[that.current].id,
+							user_id: that.user_id
+						}
+					}
+				}).then(res => {
+					this.list = res.data
+				})
+			},
+			//发表疑惑
+			publish() {
+				let that = this;
+				uni.showModal({
+					title: '提示',
+					content: '确定发表吗?',
+					success: function(res) {
+						if (res.confirm) {
+							that.$post({
+								data: {
+									do: 'AskQuestion',
+									data: {
+										content: that.content,
+										user_id: that.user_id,
+										type_id: that.type_id
+									}
+								}
+							}).then(res => {
+								uni.showToast({
+									title: '发表成功'
+								})
+								that.content = '';
+								that.show = false
+								that.getlist();
+							})
+						}
+					}
+				});
+			},
+			gopl(id){
+				uni.navigateTo({
+					url:'./jiehuo-pl?id=' + id + '&user_id=' + this.user_id
+				})
+			}
+
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	page {
+		background: #FAFAFA;
+	}
+
+	.title {
+		width: 100%;
+		text-align: center;
+		font-size: 34upx;
+		color: #000000;
+		margin: 30upx auto;
+	}
+
+	.choicebox {
+		width: 690upx;
+		margin: 0 auto;
+		display: flex;
+		flex-wrap: wrap;
+
+		.item {
+			width: 160upx;
+			height: 65upx;
+			font-size: 28upx;
+			background: #F4F4F4;
+			display: flex;
+			align-items: center;
+			justify-content: center;
+			border-radius: 50upx;
+			margin-right: 10upx;
+			margin-bottom: 10upx;
+		}
+
+		.item-a {
+			width: 160upx;
+			height: 65upx;
+			font-size: 28upx;
+			background: #374B6E;
+			color: #ffffff;
+			display: flex;
+			align-items: center;
+			justify-content: center;
+			border-radius: 50upx;
+			margin-right: 10upx;
+			margin-bottom: 10upx;
+		}
+	}
+
+	textarea {
+		width: 690upx;
+		height: 500upx;
+		border-radius: 16upx 16upx 16upx 16upx;
+		border: 2upx solid #CCCCCC;
+		margin: 0 auto;
+		box-sizing: border-box;
+		padding: 30upx;
+		margin-top: 30upx;
+	}
+
+	.btn {
+		width: 462upx;
+		height: 96upx;
+		display: flex;
+		align-items: center;
+		justify-content: center;
+		background: #374B6E;
+		color: #ffffff;
+		border-radius: 50upx;
+		margin: 50upx auto;
+	}
+</style>

+ 242 - 0
xinlijiankang-uniapp-main/pages/index/kc.vue

@@ -0,0 +1,242 @@
+<template>
+	<view class="">
+		<u-navbar :border-bottom="false" back-icon-size="35" title="课程" title-size="32" :background="background"
+			:back-text-style="hhyanm" title-color="#000000" back-icon-color="#000000"></u-navbar>
+		<view class="rmkdwwer" @click="toSearch">
+			<view class="fzctob inbddwddre">
+				<image src="/static/index/ina1.png"
+					style="width: 40rpx;height: 40rpx;min-width: 40rpx;margin-right: 12rpx;"></image>
+				<input type="text" disabled value="" placeholder-style="color: #CCCCCC;font-size: 28rpx;"
+					placeholder="搜索你感兴趣的内容" />
+			</view>
+		</view>
+		<view class="zykkddr">
+			<!-- <view class="zykkddra">
+				<image src="/static/zy/zya1.png"
+					style="width: 750rpx;height: 410rpx;margin-top: -102rpx;margin-left: 132rpx;" mode=""></image>
+			</view> -->
+			<view class="zykkddrb">
+				<view style="margin: 0 24rpx;">
+					<u-swiper :list="list" interval="58000" height="364" border-radius="16"></u-swiper>
+				</view>
+			</view>
+		</view>
+		<!-- 分类 -->
+		<view class="nav-box bgfff">
+			<view class="grid-item" v-for="item in labelList" @click="goto(item.id,item.label)">
+				<!-- <image  mode="widthFix" class="nav" :src="item.icon"></image> -->
+				<image src="/static/index/ibb5.png" style="width: 68rpx;height: 68rpx;"></image>
+				<text class="text">{{ item.label }}</text>
+			</view >
+		</view>
+
+		<!-- 视频列表 -->
+		<view class="rmknuy">
+			<view class="zyhttry" style="padding: 20rpx 30rpx;">
+				<!-- <image v-if="identity >0" src="/static/index/kcr1.png" style="width: 200rpx;height: 56rpx" mode=""></image> -->
+				<!-- <image v-else src="/static/index/kcr2.png" style="width: 160rpx;height: 56rpx" mode=""></image> -->
+				<view class="rmknuy-title">大咖好课</view>
+			</view>
+			<view style="padding: 20rpx 30rpx;">
+				<view class="zytlidde" @click="toDetail(item)"
+					v-for="(item,index) in dkhkList" :key="index">
+					<view class="zytyyrimg" style="overflow: hidden;">
+						<image :src="item.cover" mode="aspectFill" style="width: 100%; height: 100%;"></image>
+					</view>
+					<view class="zytyyopf">
+						<view class="zytyotxta"><text>{{item.title}}</text></view>
+						
+						<view class="flztoa zytyotxtb">
+							<text>{{item.lecturer_name}}</text>
+						</view>
+						<view class="flztoa zytyotxtc" style="margin-top: 6rpx;">
+							<text>
+								<text style="padding-right: 10rpx;">折扣价格: {{item.current_price}}</text>
+								<text>原价格: {{item.original_price}}</text>
+							</text>
+							<image src="/static/zy/zyb3.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
+						</view>
+						<view class="flztoa">
+							<view class="fzctob zytyotxtc">
+								<text>{{item.play_count}}播放量 - 共{{item.chapter_num}}课时</text>
+								<!-- <image v-show="xqaxuye" @click="xqaxuye = false" src="/static/zy/zyb1.png" style="width: 36rpx;height: 36rpx;margin-left: 20rpx;" mode=""></image>
+								<image  v-show="!xqaxuye"  @click="xqaxuye = true" src="/static/zy/zyb2.png" style="width: 36rpx;height: 36rpx;margin-left: 20rpx;" mode=""></image> -->
+							</view>
+							<!-- 分钟 -->
+							<text class="zytyotxtd">{{item.time}}</text>
+						</view>
+					</view>
+				</view>
+				<view class="zyhxyyer"></view>
+			</view>
+		</view>
+		<view class="rmknuy">
+			<view class="zyhttry" style="padding: 20rpx 30rpx;">
+				<!-- <image v-if="identity >0" src="/static/index/kcr1.png" style="width: 200rpx;height: 56rpx" mode=""></image> -->
+				<!-- <image v-else src="/static/index/kcr2.png" style="width: 160rpx;height: 56rpx" mode=""></image> -->
+				<view class="rmknuy-title">免费试听</view>
+			</view>
+			<view style="padding: 20rpx 30rpx;">
+				<view class="zytlidde" @click="toDetail(item)"
+					v-for="(item,index) in mfstList" :key="index">
+					<view class="zytyyrimg" style="overflow: hidden;">
+						<image :src="item.cover" mode="aspectFill" style="width: 100%; height: 100%;"></image>
+					</view>
+					<view class="zytyyopf">
+						<view class="zytyotxta"><text>{{item.title}}</text></view>
+						<view class="flztoa zytyotxtb">
+							<text></text>
+							<image src="/static/zy/zyb3.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
+						</view>
+						<view class="flztoa">
+							<view class="fzctob zytyotxtc">
+								<text>{{item.play_count}}播放量</text>
+								<!-- <image v-show="xqaxuye" @click="xqaxuye = false" src="/static/zy/zyb1.png" style="width: 36rpx;height: 36rpx;margin-left: 20rpx;" mode=""></image>
+								<image  v-show="!xqaxuye"  @click="xqaxuye = true" src="/static/zy/zyb2.png" style="width: 36rpx;height: 36rpx;margin-left: 20rpx;" mode=""></image> -->
+							</view>
+							<!-- 分钟 -->
+							<text class="zytyotxtd">{{item.time}}</text>
+						</view>
+					</view>
+				</view>
+				<view class="zyhxyyer"></view>
+			</view>
+		</view>
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				xqaxuye: false,
+				xqaxuyea: true,
+				xqaxuyeb: true,
+				background: {
+					backgroundColor: '#ffffff',
+				},
+				hhyanm: {
+					color: '#FFFFFF',
+				},
+				timestamp: 86400,
+				list: [],
+				identity: 0, // 0普通用户 1 讲师
+				mfstList:[], // 免费试听
+				dkhkList:[], // 大咖好课
+				courseList: [
+					{
+						id:1,
+						cover:'',//封面
+						title:'标题',
+						original_price:0,
+						current_price:0,
+						pay_count:0,//领取数量
+						one_level_label:0,
+						tow_level_label:0,
+						type:0,//类型
+					},
+				],
+				curtab: 0 ,// 当前选中的分类index
+				labelList: [
+					{label:'分类一',icon:''},
+					{label:'分类二',icon:''},
+					{label:'分类三',icon:''},
+				]
+			}
+		},
+		onLoad() {
+			// 分类
+			// this.getLabelList();
+			this.getOne1Label();
+			this.getOne2Label();
+			this.identity = uni.getStorageSync('userinfo').identity || 0
+			
+		},
+		methods: {
+			toSearch() {
+				console.log(111)
+				let id = this.type == 1 ? 31 : 34
+				uni.navigateTo({
+					url: '/pages/index/SearchPage?type_id=' + id
+				})
+			},
+			changeTab(index) {
+				this.curtab = index
+			},
+			// 课程分类
+			getLabelList() {
+				this.$request.labelList({}).then(res => {
+					console.log(res)
+					this.labelList = res.data
+				}).catch(err => {
+					console.log(err)
+				})
+			},
+			// 课程筛选 免费
+			getOne1Label() {
+				this.$request.getCourseListByLabel({
+					one_label:1, // 1免费 2大咖
+				}).then(res => {
+					console.log(res)
+					this.mfstList = res.data;
+				}).catch(err => {
+					console.log(err)
+				})
+			},
+			//课程筛选  大咖
+			getOne2Label() {
+				this.$request.getCourseListByLabel({
+					 one_label:2, // 1免费 2大咖
+				}).then(res => {
+					console.log(res)
+					this.dkhkList = res.data;
+				}).catch(err => {
+					console.log(err)
+				})
+			},
+			toDetail(i) {
+				let item = JSON.stringify(i);
+				uni.navigateTo({
+					url: './kcxq-x?item=' + item
+				})
+			},
+			goto(id,t) {
+				uni.navigateTo({
+					url: '/pages/index/kcxq-t?id=' + id +'&title=' + t
+				})
+			},
+		}
+
+
+	}
+</script>
+
+<style lang="scss" scoped>
+	.rmknuy{
+		padding-bottom: 100rpx;
+	}
+	.rmknuy-title{
+		font-size: 40rpx;
+		font-weight: bold;
+	}
+	.nav{width: 80rpx;height: 80rpx !important;margin: 0 auto;}
+	.nav-box{
+		display: flex;
+		width: 100%;
+		flex-wrap: wrap; padding: 0 0 40rpx 0;margin-bottom: 15rpx;}
+	.grid-item{
+		width: 25%;
+		display: flex;
+		flex-direction: column;
+		align-items: center;
+		justify-content: center;
+		text-align: center;
+		margin-top: 20rpx;
+		}
+	.nav-box .text{margin-top: 8rpx;}
+	.bgfff{background-color: #fff;}
+</style>

+ 140 - 0
xinlijiankang-uniapp-main/pages/index/kcxq-t.vue

@@ -0,0 +1,140 @@
+<template>
+	<view class="">
+		<u-navbar :border-bottom="false" back-icon-size="35" :title="title" title-size="32" :background="background"
+			:back-text-style="hhyanm" title-color="#000000" back-icon-color="#000000"></u-navbar>
+		<!-- 视频列表 -->
+		<view class="rmknuy">
+			<view class="zyhttry" style="padding: 20rpx 30rpx;">
+				<view class="rmknuy-title">{{title}}</view>
+			</view>
+			<view style="padding: 20rpx 30rpx;">
+				<view class="zytlidde" @click="toDetail(item)"
+					v-for="(item,index) in dkhkList" :key="index">
+					<view class="zytyyrimg" style="overflow: hidden;">
+						<image :src="item.cover" mode="aspectFill" style="width: 100%; height: 100%;"></image>
+					</view>
+					<view class="zytyyopf">
+						<view class="zytyotxta"><text>{{item.title}}</text></view>
+						
+						<view class="flztoa zytyotxtb">
+							<text>{{item.lecturer_name}}</text>
+						</view>
+						<view class="flztoa zytyotxtc" style="margin-top: 6rpx;">
+							<text>
+								<text style="padding-right: 10rpx;">折扣价格: {{item.current_price}}</text>
+								<text>原价格: {{item.original_price}}</text>
+							</text>
+							<image src="/static/zy/zyb3.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
+						</view>
+						<view class="flztoa">
+							<view class="fzctob zytyotxtc">
+								<text>{{item.play_count}}播放量 - 共{{item.chapter_num}}课时</text>
+								<!-- <image v-show="xqaxuye" @click="xqaxuye = false" src="/static/zy/zyb1.png" style="width: 36rpx;height: 36rpx;margin-left: 20rpx;" mode=""></image>
+								<image  v-show="!xqaxuye"  @click="xqaxuye = true" src="/static/zy/zyb2.png" style="width: 36rpx;height: 36rpx;margin-left: 20rpx;" mode=""></image> -->
+							</view>
+							<!-- 分钟 -->
+							<text class="zytyotxtd">{{item.time}}</text>
+						</view>
+					</view>
+				</view>
+				<view class="zyhxyyer"></view>
+			</view>
+		</view>
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				xqaxuye: false,
+				xqaxuyea: true,
+				xqaxuyeb: true,
+				background: {
+					backgroundColor: '#ffffff',
+				},
+				hhyanm: {
+					color: '#FFFFFF',
+				},
+				timestamp: 86400,
+				list: [],
+				identity: 0, // 0普通用户 1 讲师
+				dkhkList:[],
+				courseList: [
+					{
+						id:1,
+						cover:'',//封面
+						title:'标题',
+						original_price:0,
+						current_price:0,
+						pay_count:0,//领取数量
+						one_level_label:0,
+						tow_level_label:0,
+						type:0,//类型
+					},
+				],
+				id: '',
+				title: ''
+			}
+		},
+		onLoad(option) {
+			this.id = option.id;
+			this.title = option.title;
+			this.getCourseListByLabel();
+			this.identity = uni.getStorageSync('userinfo').identity || 0
+			
+		},
+		methods: {
+			// 课程筛选 
+			getCourseListByLabel() {
+				let that = this;
+				this.$request.getCourseListByLabel({
+					tow_label:that.id, 
+				}).then(res => {
+					console.log(res)
+					this.dkhkList = res.data;
+				}).catch(err => {
+					console.log(err)
+				})
+			},
+			toDetail(i) {
+				let item = JSON.stringify(i);
+				uni.navigateTo({
+					url: './kcxq-x?item=' + item
+				})
+			},
+		}
+
+
+	}
+</script>
+
+<style lang="scss" scoped>
+	.rmknuy{
+		padding-bottom: 100rpx;
+	}
+	.rmknuy-title{
+		font-size: 40rpx;
+		font-weight: bold;
+	}
+	.nav{width: 80rpx;height: 80rpx !important;margin: 0 auto;}
+	.nav-box{
+		display: flex;
+		width: 100%;
+		flex-wrap: wrap; padding: 0 0 40rpx 0;margin-bottom: 15rpx;}
+	.grid-item{
+		width: 25%;
+		display: flex;
+		flex-direction: column;
+		align-items: center;
+		justify-content: center;
+		text-align: center;
+		margin-top: 20rpx;
+		}
+	.nav-box .text{margin-top: 8rpx;}
+	.bgfff{background-color: #fff;}
+</style>

+ 430 - 0
xinlijiankang-uniapp-main/pages/index/kcxq-x.vue

@@ -0,0 +1,430 @@
+<template>
+	<view class="">
+		<view class="ddxqship">
+			<view class="u-rela" style="width: 100%; height: 100%;" v-if="!videoShow" @click="playVideo">
+				<image :src="info.img" mode="aspectFill" style="width: 100%;height: 100%;"></image>
+				<u-icon name="play-right-fill" size="80" color="#fff" class="u-abso"
+					style="z-index: 9; left: 50%; top: 50%; transform: translate(-50%,-50%);"></u-icon>
+			</view>
+			<video v-if="videoShow" @timeupdate="timeupdate" :src="videoinfo.content" autoplay
+				style="width: 100%;height: 100%;"></video>
+		</view>
+		<view class="ddxqfayu">
+			<view class="indhuyr">
+				<view class="indjbrr"></view>
+				<text>课程详情</text>
+			</view>
+			<view style="margin-top: 30rpx;">
+				<view class="fzctob">
+					<view class="kcxquyr">
+						<text>课程名称</text>
+					</view>
+					<view class="kcxquyra">
+						<text>{{item.title}}</text>
+					</view>
+				</view>
+				<view style="border-top: 2rpx dashed #e8e8e8;width: 100%;margin: 22rpx 0;"></view>
+				<!-- <view class="fzctob">
+					<view class="kcxquyr">
+						<text>课程分类</text>
+					</view>
+					<view class="fzctob kcwwerrt">
+						<text v-for="(item,index) in info.type_title" :key="index">{{item}}</text>
+					</view>
+				</view> -->
+			</view>
+		</view>
+		<view class="ddxqfayu" v-for="(item1,index1) in catalog" :key="index1">
+			<view class="indhuyr">
+				<view class="indjbrr"></view>
+				<text>{{item1.title}}</text>
+			</view>
+			<view style="margin-top: 10rpx;">
+				<view class="fsxto kandyyr" v-for="(item2,index2) in item1.list" :key="index2" @click="changevideo(item2)">
+					<view class="flztoa">
+						<text>{{item2.title}}</text>
+						<image src="/static/zy/zyb3.png" style="width: 24px;height: 24px;" mode=""></image>
+					</view>
+					<view class="flztoa" style="margin-top: 4px;" v-if="item2.type == 1">
+						<text class="ooddte">{{item2.video_title}}</text>
+						<text class="ooddte">时长: {{item2.video_time}}</text>
+					</view>
+					<view class="flztoa" style="margin-top: 4px;" v-if="item2.type == 5"
+						@click="goWxLive(item2.url,item2)">
+						<text class="ooddte">{{item2.video_title}}</text>
+						<text class="ooddte">点击进入直播间</text>
+					</view>
+				</view>
+			</view>
+		</view>
+		<view class="" style="height: 200rpx;"></view>
+		<view class="kcquuer" v-if="!is_pay">
+			<!-- <view style="width: 100%;    width: 100%;text-align: center;line-height: 66rpx;color: #ff2424;"
+				v-if="coupon">
+				已使用优惠券 {{coupon.title}} 优惠 {{coupon.price}} 元
+			</view> -->
+			<view class="flztoa">
+				<view class="kqyyefh" @click="pay(0)">
+					<text>¥{{item.current_price}}/领取</text>
+				</view>
+				<!-- <navigator class="kqyyefha" v-if="is_vip == 0" url="../index/hykt">
+					<text>会员/¥{{info.vip_price}}</text>
+				</navigator> -->
+				<!-- <view style="text-decoration:line-through;" class="kqyyefh" v-if="is_vip == 1">
+					<text>普通/¥{{info.price}}</text>
+				</view>
+				<view class="kqyyefha" @click="pay(1)" v-if="is_vip == 1">
+					<text>会员/¥{{info.vip_price}}</text>
+				</view> -->
+			</view>
+		</view>
+
+		<!-- <view class="kcquuer" v-if="!is_buy">
+			<view style="width: 100%;    width: 100%;text-align: center;line-height: 66rpx;color: #ff2424;"
+				v-if="coupon">已使用优惠券 {{coupon.title}} 优惠 {{coupon.price}} 元</view>
+			<view class="flztoa">
+				<view class="kqyyefh" @click="pay(0)" v-if="is_vip == 0">
+					<text>普通/¥{{info.price}}</text>
+				</view>
+				<navigator class="kqyyefha" v-if="is_vip == 0" url="../index/hykt">
+					<text>会员/¥{{info.vip_price}}</text>
+				</navigator>
+				<view style="text-decoration:line-through;" class="kqyyefh" v-if="is_vip == 1">
+					<text>普通/¥{{info.price}}</text>
+				</view>
+				<view class="kqyyefha" @click="pay(1)" v-if="is_vip == 1">
+					<text>会员/¥{{info.vip_price}}</text>
+				</view>
+			</view>
+		</view> -->
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				xqaxuye: false,
+				info: {},
+				videoinfo: {},
+				catalog: [],
+				is_pay: 0, //0需要购买  1不需要购买
+				is_vip: '',
+				videoShow: false,
+				roomId: 0,
+				customParams: {},
+				seconds: 0,
+				id: 0, // 课程id
+				deviceType: 'wxapp',
+				coupon: false,
+				coupon_id:0,
+				item:null
+			}
+		},
+		onLoad(e) {
+			// #ifdef APP-PLUS
+			this.deviceType = 'wxh5'
+			// #endif
+			// #ifdef MP-WEIXIN
+			this.deviceType = 'wxapp'
+			// #endif
+			let item = JSON.parse(e.item);
+			this.id = item.id;
+			// 课程章节列表
+			this.getCourseChapter(item.id);
+			this.item = item;
+			this.is_pay = item.is_pay;
+			this.is_vip = uni.getStorageSync('is_vip');
+
+		},
+		// 页面卸载 提交视频播放进度
+		onUnload() {
+			if (this.seconds != 0) {
+				this.$post({
+					data: {
+						do: 'ChangeRecordHistory',
+						data: {
+							user_id: uni.getStorageSync('id'),
+							course_id: this.id,
+							catalog_id: this.videoinfo.catalog_id,
+							chapter_id: this.videoinfo.id,
+							chapter_time: this.formatSeconds(this.seconds)
+						}
+					}
+				})
+			}
+		},
+		methods: {
+			getMyCoupon() {
+
+			},
+			timeupdate(e) {
+				let time = e.detail.currentTime
+				this.seconds = time
+			},
+			// 秒数处理为时分秒
+			formatSeconds(value) {
+				//  秒
+				let second = parseInt(value)
+				//  分
+				let minute = 0
+				//  小时
+				let hour = 0
+				//  天
+				//  let day = 0
+				//  如果秒数大于60,将秒数转换成整数
+				if (second >= 60) {
+					//  获取分钟,除以60取整数,得到整数分钟
+					minute = parseInt(second / 60)
+					//  获取秒数,秒数取佘,得到整数秒数
+					second = parseInt(second % 60)
+					//  如果分钟大于60,将分钟转换成小时
+					if (minute > 60) {
+						//  获取小时,获取分钟除以60,得到整数小时
+						hour = parseInt(minute / 60)
+						//  获取小时后取佘的分,获取分钟除以60取佘的分
+			 		minute = parseInt(minute % 60)
+						//  如果小时大于24,将小时转换成天
+						//  if (hour > 23) {
+						//    //  获取天数,获取小时除以24,得到整天数
+						//    day = parseInt(hour / 24)
+						//    //  获取天数后取余的小时,获取小时除以24取余的小时
+						//    hour = parseInt(hour % 24)
+						//  }
+					}
+				}
+				let h = parseInt(hour) > 9 ? parseInt(hour) : '0' + parseInt(hour)
+				let m = parseInt(minute) > 9 ? parseInt(minute) : '0' + parseInt(minute)
+				let s = parseInt(second) > 9 ? parseInt(second) : '0' + parseInt(second)
+				let result = '' + s;
+				if (minute > 0) {
+					result = '' + m + ':' + result
+				}
+				if (hour > 0) {
+					result = '' + h + ':' + result
+				}
+				//  if (day > 0) {
+				//    result = '' + parseInt(day) + '天' + result
+			 //  }
+
+
+				result = result.includes(':') ? result : '00:' + result
+				console.log('result:', result)
+				return result
+			},
+			goWxLive(id, item2) {
+				// #ifdef MP-WEIXIN
+				console.log(id);
+				let roomId = [id];
+				let customParams = encodeURIComponent(JSON.stringify({
+					path: 'pages/index/index',
+					pid: 1
+				})) // 开发者在直播间页面路径上携带自定义参数(如示例中的path和pid参数),后续可以在分享卡片链接和跳转至商详页时获取,详见【获取自定义参数】、【直播间到商详页面携带参数】章节(上限600个字符,超过部分会被截断)
+				this.roomId = roomId;
+				this.customParams = customParams;
+				uni.navigateTo({
+					url: 'plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=' + roomId +
+						'&custom_params=' + customParams
+				})
+				// #endif
+				// #ifdef APP-PLUS
+				console.log(item2)
+				uni.navigateTo({
+					url: '/pages/index/watchLive?id=' + item2.id
+				})
+				// #endif
+			},
+			playVideo() {
+				// if (!this.is_buy) {
+				// 	uni.showModal({
+				// 		title: '此课程未购买'
+				// 	})
+				// 	return
+				// }
+				this.videoShow = true
+			},
+			changevideo(info) {
+				if (this.is_buy) {
+					this.videoinfo = info
+				} else {
+					uni.showModal({
+						title: '此课程未购买'
+					})
+				}
+			},
+			getCourseChapter() {
+				let that = this;
+				that.$request.getCourseChapter({course_id: that.id}).then(res => {
+					console.log(res)
+					if(res.code == 0){
+						this.videoinfo = res.data[0];
+					}else{
+						wx.showToast({
+							title: res.message,
+							icon: 'none'
+						})
+					}
+					// that.labelList = res.data
+				}).catch(err => {
+					console.log(err)
+				})
+				
+				return
+				let user_id = uni.getStorageSync('id');
+			// 	this.$post({
+			// 		data: {
+			// 			do: 'CourseInfo',
+			// 			data: {
+			// 				user_id: user_id,
+			// 				id: id,
+			// 				pw: '375'
+			// 			}
+			// 		}
+			// 	}).then(res => {
+
+
+			// 		let user_id = uni.getStorageSync('id')
+			// 		this.$post({
+			// 			data: {
+			// 				do: 'GetMyCoupon',
+			// 				data: {
+			// 					user_id: user_id,
+			// 				}
+			// 			}
+			// 		}).then(res1 => {
+			// 			this.coupon = res1.data.coupon;
+			// 			this.info = res.data;
+			// 			console.log(this.info);
+			// 			//有优惠券可以优惠
+			// 			if(this.coupon){
+			// 				this.info.origin_vip_price = this.info.vip_price;
+			// 				this.info.origin_price = this.info.price;
+							
+			// 				this.info.vip_price = this.info.vip_price - this.coupon.price;
+			// 				this.info.price = this.info.price - this.coupon.price;
+						
+			// 				if(this.info.vip_price <= 0){
+			// 					this.info.vip_price = 0.01;
+			// 				}
+							
+			// 				if(this.info.price <= 0){
+			// 					this.info.price = 0.01;
+			// 				}
+			// 				this.coupon_id = this.coupon.id
+			// 			}
+			// 			this.catalog = res.data.catalog;
+			// 			this.is_buy = res.data.is_buy;
+			// 			if (res.data.is_buy) {
+			// 				this.videoinfo = res.data.catalog[0].list[0];
+			// 			} else {
+			// 				this.videoinfo = '';
+			// 				uni.showModal({
+			// 					title: '此课程未购买'
+			// 				})
+			// 			}
+			// 		})
+
+
+			// 	})
+			
+			},
+			pay(indexs) {
+				let that = this;
+				that.$request.receive({course_id: that.id}).then(res => {
+					console.log(res)
+					if(res.code == 0){
+						if(that.data.item.current_price <= 0){
+							wx.showToast({
+								title: '领取成功',
+							})
+							that.getCourseChapter();
+						}else{
+							that.wechatpay(res.data);
+						}
+						
+					}else{
+						wx.showToast({
+							title: res.message,
+							icon: 'none'
+						})
+					}
+				}).catch(err => {
+					console.log(err)
+				})
+			},
+			wechatpay(pay) {
+				console.log(pay)
+				var that = this
+				// #ifdef APP-PLUS
+				uni.requestPayment({
+					provider: 'wxpay',
+					orderInfo: pay.orderinfo,
+					success() {
+						uni.showToast({
+							title: '支付成功'
+						})
+						that.getCourseChapter();
+					},
+					fail(res) {
+						console.log(res)
+						uni.showToast({
+							title: '支付失败',
+							icon: 'error'
+						})
+					}
+				})
+				// #endif
+				// #ifdef MP-WEIXIN
+				uni.requestPayment({
+					provider: 'wxpay',
+					timeStamp: pay.timeStamp,
+					nonceStr: pay.nonceStr,
+					package: pay.package,
+					signType: 'MD5',
+					paySign: pay.paySign,
+					success() {
+						uni.showToast({
+							title: '支付成功'
+						})
+						that.getCourseChapter();
+					},
+					fail(res) {
+						console.log(res)
+						uni.showToast({
+							title: '支付失败',
+							icon: 'error'
+						})
+					}
+				})
+				// #endif
+
+			}
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	.flztoa{
+		justify-content: center;
+	}
+	.kandyyr {
+		font-size: 14px;
+		font-family: PingFang SC-常规体, PingFang SC;
+		font-weight: normal;
+		color: #333333;
+
+		margin-top: 20px;
+	}
+
+	.ooddte {
+		font-size: 12px;
+		font-family: PingFang SC-常规体, PingFang SC;
+		font-weight: normal;
+		color: #999999;
+		line-height: 17px;
+	}
+</style>

+ 41 - 0
xinlijiankang-uniapp-main/pages/index/watchLive.vue

@@ -0,0 +1,41 @@
+<template>
+	<view>
+		<video :src="src" class="live-video"></video>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				src:'',
+				id:0
+			}
+		},
+		onLoad(e) {
+			this.id = e.id
+			this.getInfo()
+		},
+		methods: {
+			getInfo(){
+				this.$post({
+					data:{
+						do:'LiveInfo',
+						data:{
+							user_id:uni.getStorageSync('id'),
+							chapter_id:this.id
+						}
+					}
+				}).then(res=>{
+					this.src = res.data.live.ll_url
+				})
+			}
+		}
+	}
+</script>
+
+<style>
+.live-video{
+	width: 100%;
+}
+</style>

+ 97 - 0
xinlijiankang-uniapp-main/pages/index/wdjh-hf.vue

@@ -0,0 +1,97 @@
+<template>
+	<view class="ayuu">
+		<view class="jhwdmmt">
+			<view class="shidongt">
+				<view class="shibbert">
+					<view class="shikwer">
+						<text>发布的动态发布的动态发布的动态发布的动态布的动 发布的动态发布的动态发布的动态发布的动态布的动 发布的动态发布的动态发布的动态……</text>
+						<text class="fyctoc" style="color: #374B6E;">展开</text>
+					</view>
+					 
+				<view class="flztoa" style="margin-top: 46rpx;">
+					<view class="fzctob">
+						<image src="/static/index/w1.png" style="width: 48rpx;height: 48rpx;min-width: 48rpx;" mode=""></image>
+						<text class="shitxty">29</text>
+						
+						<view style="margin-left: 40rpx;">
+							<image src="/static/index/w3.png" style="width: 48rpx;height: 48rpx;min-width: 48rpx;" mode=""></image>
+						</view>
+					</view>
+					<view class="">
+						<text class="shitxtya">2021.06.15</text>
+					</view>
+				</view>
+				</view>
+			</view>
+		</view>
+		
+		<view class="jhwdmmt">
+			<view class="indhuyr">
+				<view class="indjbrr"></view>
+				<text>全部评论</text>
+			</view>
+			<view class="shidongt">
+				<view class="shibbert">
+					<view class="hfikwer">
+						<view class="hfuyerrt"><text>姓名</text></view>
+						<text>发布的动态发布的动态发布的动态发布的动态布的动 发布的动态发布的动态发布的动态发布的动态布的动 发布的动态发布的动态发布的动态……</text>
+					</view>
+				</view>
+			</view>
+			
+			<view class="shidongt">
+				<view class="shibbert">
+					<view class="hfikwer">
+						<view class="hfuyerrt"><text>我回复了某某某</text></view>
+						<text>发布的动态发布的动态发布的动态发布的动态布的动 发布的动态发布的动态发布的动态发布的动态布的动 发布的动态发布的动态发布的动态……</text>
+					</view>
+				</view>
+			</view>
+		</view>
+		
+		
+		<view class="flztoa hfddwevde">
+			<view class="hfddwerr">
+				<input type="text" value="" placeholder-style="color:#333333;font-size: 28rpx;"
+					placeholder="您好!请问有什么可以帮助您的。" />
+			</view>
+			<view class="hfddwett">
+				<text>发送</text>
+			</view>
+		</view>
+		
+		
+
+
+
+			 
+		 
+
+
+
+
+
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				xqaxuye: false,
+			}
+		},
+
+
+	}
+</script>
+
+<style lang="scss" scoped>
+ 
+ 
+
+</style>

+ 115 - 0
xinlijiankang-uniapp-main/pages/index/wdjh.vue

@@ -0,0 +1,115 @@
+<template>
+	<view class="ayuu">
+		<view class="">
+			<view class="fsxto jhkanuy" hover-class="none" v-for="(item,index) in list"
+				:key="index" @click="gopl(item.id)">
+				<view class="fzctob">
+					<view class="jhuuimg">
+						<image :src="item.avatarUrl"
+							style="width: 88rpx;height: 88rpx;min-width: 88rpx;border-radius: 200rpx;" mode=""></image>
+					</view>
+					<view class="fsxto" style="width: 100%;margin-left: 12rpx;">
+						<view class="flztoa">
+							<text class="jhtxty">{{item.nickName}}</text>
+							<text class="jhtxtya">{{$u.timeFormat(item.create_time, 'yyyy:mm:dd  hh:MM:ss')}}</text>
+						</view>
+						<view class="jhtxtyb">
+							<text>{{item.note}}</text>
+						</view>
+					</view>
+				</view>
+				<view class="jhtxtyc">
+					<text>{{item.content}}</text>
+				</view>
+				<view class="flztoa" style="margin-top: 30rpx;">
+					<view class="fzctob">
+						<image :src="item.is_like == 1?'/static/index/w1.png':'/static/index/w2.png'" style="width: 48rpx;height: 48rpx;min-width: 48rpx;" mode=""></image>
+						<text class="shitxty">{{item.like_num}}</text>
+
+						<view style="margin-left: 40rpx;">
+							<image src="/static/index/w3.png" style="width: 48rpx;height: 48rpx;min-width: 48rpx;"
+								mode=""></image>
+						</view>
+					</view>
+					<!-- 					<view class="">
+						<text class="shitxtya">2021.06.15</text>
+					</view> -->
+				</view>
+			</view>
+
+		</view>
+		
+		<view style="height: 120rpx;"></view>
+		<view class="dibuboot">
+			<navigator class="dibubootlb" url="../index/index" open-type="redirect" hover-class="none">
+				<image src="/static/dibu/boa1.png" style="width: 48rpx;height: 48rpx;"></image>
+				<text>首页</text>
+			</navigator>
+			<!-- <navigator class="dibubootlb" url="../lecturer/wdzx" open-type="redirect" hover-class="none">
+				<image src="/static/dibu/boa2.png" style="width: 48rpx;height: 48rpx;"></image>
+				<text>咨询</text>
+			</navigator>
+			<navigator class="dibubootlb" url="../index/jiehuo" open-type="redirect" hover-class="none">
+				<image src="/static/dibu/boa3.png" style="width: 48rpx;height: 48rpx;"></image>
+				<text>解惑</text>
+			</navigator> -->
+			<navigator class="dibubootlb" url="../lecturer/my" open-type="redirect" hover-class="none">
+				<image src="/static/dibu/bob4.png" style="width: 48rpx;height: 48rpx;"></image>
+				<text style="color: #374B6E">我的</text>
+			</navigator>
+		</view>
+
+
+
+
+
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				xqaxuye: false,
+				list:[]
+			}
+		},
+		onLoad() {
+			this.user_id = uni.getStorageSync('id');
+			this.getlist();
+			
+		},
+		methods:{
+			//获取解惑列表
+			   getlist() {
+			    let user_id = uni.getStorageSync('id');
+			    this.$post({
+			     data: {
+			      do: 'AskQuestionList',
+			      data: {
+			       user_id:user_id
+			      }
+			     }
+			    }).then(res => {
+			     this.list = res.message
+			    })
+			   },
+			   gopl(id){
+			   	uni.navigateTo({
+			   		url:'./jiehuo-pl?id=' + id + '&user_id=' + this.user_id
+			   	})
+			   }
+		}
+
+
+	}
+</script>
+
+<style lang="scss" scoped>
+ 
+
+</style>

+ 98 - 0
xinlijiankang-uniapp-main/pages/index/yhdl.vue

@@ -0,0 +1,98 @@
+<template>
+	<view class="">
+		<u-navbar :border-bottom="false" back-icon-size="35" title-size="32" :background="background"
+			:back-text-style="hhyanm" title-color="#374B6E" back-icon-color="#374B6E"></u-navbar>
+		<view style="margin-top: -80rpx;">
+			<image src="/static/index/uying.png" style="width: 750rpx;height: 1624rpx;" mode=""></image>
+		</view>
+		<view class="fzddrew dltoor">
+			<view class="dlyhr" hover-class="none" @click="gomy(0)">
+				<text>我是用户</text>
+			</view>
+			<view class="dlyzxs" hover-class="none" v-if="identity == 1" @click="gomy(1)">
+				<text>我是咨询师</text>
+			</view>
+			<view class="dlyzxs" hover-class="none" v-if="identity != 1" @click="toApply(1)">
+				<text>申请成为咨询师</text>
+			</view>
+			<view class="dlyzxs" hover-class="none" v-if="identity == 2" @click="gomy(2)">
+				<text>我是机构</text>
+			</view>
+			<view class="dlyzxs" hover-class="none" v-if="identity != 2" @click="toApply(2)">
+				<text>申请机构</text>
+			</view>
+		</view>
+	</view>
+</template>
+<style>
+	page {
+		background: #374B6E;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				background: {
+					backgroundColor: '#374B6E',
+				},
+				hhyanm: {
+					color: '#374B6E',
+				},
+				userinfo: null,
+				is_lecturer:false,
+				identity: 0,
+			}
+		},
+		onLoad() {
+			console.log(uni.getStorageSync('is_lecturer'));
+			if(uni.getStorageSync('is_lecturer')==0){
+				this.is_lecturer = false
+			}else{
+				this.is_lecturer = true
+			}
+			this.getuserinfo();
+		},
+		methods:{
+			//获取用户信息
+			getuserinfo(loading = true) {
+				let id = uni.getStorageSync('id');
+				this.$request.getuserinfo({
+					id
+				}).then( res =>{
+					console.log(res)
+					this.userinfo = res.data;
+					this.identity = res.data.identity;
+				}).catch( e=>{
+					console.log(e)
+				})
+			},
+			getMyIdentity: function(e) {
+				this.$post({
+					data: {
+				 	do: 'GetMyIdentity',
+						data: {
+							user_id: uni.getStorageSync('id'),
+						}
+					}
+				}).then(res => {
+					this.state = res.data.state;
+				})
+			},
+			gomy(type){
+				uni.setStorageSync('type',type);
+				uni.navigateBack();
+			},
+			toApply(n){
+				uni.navigateTo({
+				    url:'/pages/index/apply?identity=' + n
+				})
+			}
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+
+
+</style>

+ 180 - 0
xinlijiankang-uniapp-main/pages/index/ztsp.vue

@@ -0,0 +1,180 @@
+<template>
+	<view class="">
+		<u-navbar :border-bottom="false" back-icon-size="35" title="主题课程" title-size="32" :background="background"
+			:back-text-style="hhyanm" title-color="#FFFFFF" back-icon-color="#FFFFFF"></u-navbar>
+
+		<view class="zykkddr">
+			<view class="zykkddra">
+				<image src="/static/zy/zya1.png" style="width: 750rpx;height: 410rpx;margin-top: -102rpx;margin-left: 132rpx;" mode=""></image>
+			</view>
+			<view class="zykkddrb">
+				<view style="margin: 0 24rpx;">
+					<u-swiper :list="list" interval="58000" height="364" border-radius="16"></u-swiper>
+				</view>
+			</view>
+		</view>
+		
+		<view class="rmkdwwer" @click="toSearch">
+			<view class="fzctob inbddwddre">
+				<image src="/static/index/ina1.png"
+					style="width: 40rpx;height: 40rpx;min-width: 40rpx;margin-right: 12rpx;"></image>
+				<input type="text" disabled value="" placeholder-style="color: #CCCCCC;font-size: 28rpx;"
+					placeholder="搜索你感兴趣的内容" />
+			</view>
+		</view>
+		
+		<view class="ztryeddf">
+			<view class="indhuyr">
+				<view class="indjbrr"></view>
+				<text>热门推荐</text>
+			</view>
+			
+			<view class="inyyshiy">
+				<view class="ztmddy"  @click="toDetail(item.id,item.to_type)" style="overflow: hidden;" v-for="(item,index) in hotlist" :key="index">
+                    <image :src="item.img" style="width: 100%; height: 100%;" mode="aspectFill"></image>
+                </view>
+				
+			</view>
+		</view>
+		
+		<view class="ztdknuy">
+			<view class="indhuyr">
+				<view class="indjbrr"></view>
+				<text>最新课程</text>
+			</view>
+			
+			<view>
+				
+				<view class="zytlidde" @click="toDetail(item.id,1)" v-for="(item,index) in clist" :key="index">
+					<view class="zytyyrimg" style="overflow: hidden;">
+                        <image :src="item.img" mode="aspectFill" style="width: 100%; height: 100%;"></image>
+                    </view>
+					<view class="zytyyopf">
+						<view class="zytyotxta"><text>{{item.title}}</text></view>
+						<view class="flztoa zytyotxtb">
+							<text>{{item.lecturer_name}}</text>
+							<image src="/static/zy/zyb3.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
+						</view>
+						<view class="flztoa">
+							<view class="fzctob zytyotxtc">
+								<text>{{item.sales}}人观看</text>
+								<!-- <image v-show="xqaxuye" @click="xqaxuye = false" src="/static/zy/zyb1.png" style="width: 36rpx;height: 36rpx;margin-left: 20rpx;" mode=""></image>
+								<image  v-show="!xqaxuye"  @click="xqaxuye = true" src="/static/zy/zyb2.png" style="width: 36rpx;height: 36rpx;margin-left: 20rpx;" mode=""></image> -->
+							</view>
+                            <!-- 分钟 -->
+							<text class="zytyotxtd">{{item.time}}</text>
+						</view>
+					</view>
+				</view>
+				<view class="zyhxyyer"></view>
+			</view>
+			
+			
+		</view>
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				xqaxuye:false,
+				xqaxuyea:true,
+				xqaxuyeb:true,
+				background: {
+					backgroundColor: '#486A92',
+				},
+				hhyanm: {
+					color: '#FFFFFF',
+				},
+				timestamp: 86400,
+				list: [],
+                hotlist:[]   ,// 热门推荐
+                clist:[]
+
+			}
+		},
+        onLoad() {
+            this.getInfo()
+            this.getHot()
+        },
+        methods:{
+            getInfo(){
+                this.$post({
+                    data:{
+                        do:'CourseType',
+                        data:{
+                            user_id:uni.getStorageSync('id'),
+                            type_id:30,
+                            pw:35
+                        }
+                    }
+                }).then(res=>{
+                    console.log(res,'iiiiiiiiiii')
+                    this.list = res.data[0].img
+                    this.clist = res.data[0].list
+                })
+            },
+            toSearch(){
+                console.log(111)
+                uni.navigateTo({
+                    url:'/pages/index/SearchPage?type_id=30'
+                })
+            },
+            // 获取热门推荐
+            getHot(){
+                this.$post({
+                    data:{
+                        do:'HomeView',
+                    }
+                }).then(res=>{
+                    console.log(res,'hhhhhhhhh')
+                    this.hotlist = res.data.type_5
+                })
+            },
+            toDetail(id,type){
+                if (type == 1) {
+                	uni.navigateTo({
+                		url: './kcxq-x?id=' + id
+                	})
+                } else if (type == 2) {
+                	uni.navigateTo({
+                		url: './zxshi?id=' + id
+                	})
+                }
+            }
+        }
+
+	}
+</script>
+
+<style lang="scss" scoped>
+	 .ztdknuy {
+	     background: #FFFFFF;
+	     border-radius: 16rpx 16rpx 16rpx 16rpx;
+	    box-shadow: 0rpx 0rpx 16rpx 2rpx rgba(0, 0, 0, 0.058823529411764705);
+	     padding: 30rpx 23rpx;
+	     padding-bottom: 200rpx;
+		 margin: 0  24rpx;
+		 margin-top: 30rpx;
+ 
+	 }
+	 .ztmddy {
+	     width: 214rpx;
+	     height:176rpx;
+	     background:#374B6E;
+	     border-radius: 16rpx 16rpx 16rpx 16rpx;
+	 }
+	 .ztryeddf {
+	     background: #FFFFFF;
+	     border-radius: 16rpx 16rpx 16rpx 16rpx;
+	     padding: 32rpx 20rpx;
+		 margin: 0 24rpx;
+	     margin-top: 10rpx;
+	 }
+	 
+</style>

+ 237 - 0
xinlijiankang-uniapp-main/pages/index/zxshi.vue

@@ -0,0 +1,237 @@
+<template>
+	<view class="">
+		<u-navbar :border-bottom="false" back-icon-size="35"  title-size="32" :background="background"
+			:back-text-style="hhyanm" title-color="#ffffff" back-icon-color="#ffffff"></u-navbar>
+
+		<view class="fzctob mywoddt" style="padding-bottom:30rpx;">
+			<image :src="jsinfo.img"
+				style="width: 152rpx;height: 152rpx;border-radius:160rpx;min-width:152rpx;margin-right: 24rpx;" mode="">
+			</image>
+			<view class="flztoa" style="width: 100%;">
+				<view class="fsxto">
+					<text class="letxtfy">{{jsinfo.title}}</text>
+					<view class="fzctob letxtfya">
+						<text v-for="item in jsinfo.tag">{{item}}</text>
+					</view>
+				</view>
+			</view>
+		</view>
+		
+		<view class="flztoa shiddwe">
+			<view class="flztoa shiufh">
+				<view class="fzddrew">
+					<text>{{question_num}}</text>
+					<text class="shiufhtx">获赞</text>
+				</view>
+				<view class="fzddrew">
+					<text>{{lecturer_follow}}</text>
+					<text class="shiufhtx">粉丝</text>
+				</view>
+			</view>
+			<view style="width: 120upx;height: 65upx;color: #ffffff;display: flex;align-items: center;justify-content: center;background: #F54E43;border-radius: 50upx;" @click="guanzhu(jsinfo.id)">
+				{{jsinfo.is_follow == 0?'关注':'已关注'}}
+			</view>
+		</view>
+		
+		<view class="shiwdmmt">
+			<view class="indhuyr">
+				<view class="indjbrr"></view>
+				<text>动态</text>
+			</view>
+			
+			<view class="shidongt" v-for="(item,index) in question" :key="index">
+				<view class="shibbert">
+					<text>{{item.content}}</text>
+				<view class="flztoa" style="margin-top: 46rpx;">
+					<view class="fzctob">
+						<image  @click="like(item.id)" :src="item.is_like == 1?'/static/index/w1.png':'/static/index/w2.png'" style="width: 48rpx;height: 48rpx;min-width: 48rpx;" mode=""></image>
+						<text class="shitxty">{{item.like_num}}</text>
+						<view style="margin-left: 40rpx;" @click="toDetail(item.id)">
+							<image src="/static/index/w3.png" style="width: 48rpx;height: 48rpx;min-width: 48rpx;" mode=""></image>
+						</view>
+					</view>
+					<view class="">
+						<text class="shitxtya">{{$u.timeFormat(item.create_time, 'yyyy:mm:dd  hh:MM:ss')}}</text>
+					</view>
+				</view>
+				</view>
+			</view>
+		</view>
+		<view class="fzjtod shitoob" v-if="type == 1">
+			<view class="shitoobtxt" style="margin-bottom: 20rpx;" @click="pay">
+				<text>找他倾诉/¥{{jsinfo.price}}</text>
+			</view>
+		</view>
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				type:1,
+				xqaxuye:false,
+				background: {
+					backgroundColor: '#374B6E',
+				},
+				hhyanm: {
+					color: '#FFFFFF',
+				},
+				jsinfo:{},
+				question:[],
+				question_num:0,
+				lecturer_follow:0,
+				id:'',//讲师id
+				user_id:'',//当前用户id
+				deviceType:'wxapp'
+				
+			}
+		},
+		onLoad(e) {
+			// #ifdef APP-PLUS
+				this.deviceType = 'wxh5'
+			// #endif
+			// #ifdef MP-WEIXIN
+				this.deviceType = 'wxapp'
+			// #endif
+			this.id = e.id;
+			this.user_id = uni.getStorageSync('id');
+			this.getinfo(this.user_id,this.id);
+			if(e.type){
+				this.type = e.type
+			}
+			
+		},
+		methods:{
+			toDetail(id){
+				uni.navigateTo({
+					url:'./jiehuo-pl?id=' + id + '&user_id=' + uni.getStorageSync('id')
+				})
+			},
+			//获取讲师详情信息
+			getinfo(user_id,id) {
+				this.$post({
+					data: {
+						do: 'LecturerIndex',
+						data:{
+							user_id:user_id,
+							id:id
+						}
+					}
+				}).then(res => {
+					this.jsinfo = res.data.lecturer
+					this.question = res.data.question
+					this.question_num = res.data.question_num
+					this.lecturer_follow = res.data.lecturer_follow
+				})
+			},
+			//点赞
+			like(id){
+				let that = this;
+				console.log(id,that.user_id)
+				that.$post({
+					data: {
+						do: 'QuestionLike',
+						data: {
+							question_id: id,
+							user_id: that.user_id
+						}
+					}
+				}).then(res => {
+					that.getinfo(this.user_id,this.id);
+				})
+			},
+			//关注
+			guanzhu(id){
+				let that = this;
+				that.$post({
+					data: {
+						do: 'LecturerFollow',
+						data: {
+							id: id,
+							user_id: that.user_id
+						}
+					}
+				}).then(res => {
+					that.getinfo(this.user_id,this.id);
+				})
+			},
+			//找他倾诉
+			pay(){
+				let that = this;
+				that.$post({
+					data: {
+						do: 'Course',
+						data: {
+							vip_pay: '0',
+							course_id:that.jsinfo.id,
+							user_id: that.user_id,
+							good_type:'2',
+							pw:'375',
+							cdkey:'',
+							is_luck:'',
+							luck_id:''
+						},
+						deviceType:this.deviceType
+					}
+				}).then(res => {
+					that.wechatpay(res.data);
+					
+				})
+			},
+			wechatpay(pay){
+				var that = this
+				// #ifdef APP-PLUS
+				uni.requestPayment({
+					provider: 'wxpay',
+					orderInfo:pay.orderinfo,
+					success() {
+						uni.showToast({
+							title: '支付成功'
+						})
+					},
+					fail(res) {
+						console.log(res)
+						uni.showToast({
+							title: '支付失败',
+							icon: 'error'
+						})
+					}
+				})
+				// #endif
+				// #ifdef MP-WEIXIN
+				uni.requestPayment({
+					provider: 'wxpay',
+					timeStamp: pay.timeStamp,
+					nonceStr: pay.nonceStr,
+					package: pay.package,
+					signType: 'MD5',
+					paySign: pay.paySign,
+					success() {
+						uni.showToast({
+							title: '支付成功'
+						})
+					},
+					fail(res) {
+						console.log(res)
+						uni.showToast({
+							title: '支付失败',
+							icon: 'error'
+						})
+					}
+				})
+				// #endif
+			
+			}
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	 
+
+</style>

+ 41 - 0
xinlijiankang-uniapp-main/pages/index/zxxq.vue

@@ -0,0 +1,41 @@
+<template>
+    <view>
+        <u-parse :html="content"></u-parse>
+    </view>
+</template>
+
+<script>
+    export default {
+        data() {
+            return {
+               id:0 ,
+               content:''
+            }
+        },
+        onLoad(e) {
+            this.id = e.id
+            this.getDetail()
+        },
+        methods: {
+            getDetail(){
+                this.$post({
+                    data:{
+                        do:'ArticleInfo',
+                        data:{
+                            id:this.id,
+                            user_id:uni.getStorageSync('id'),
+                            pw:375
+                        }
+                    }
+                }).then(res=>{
+                    console.log(res)
+                    this.content = res.data.article.content
+                })
+            }
+        }
+    }
+</script>
+
+<style>
+
+</style>

+ 60 - 0
xinlijiankang-uniapp-main/pages/index/zyDetail.vue

@@ -0,0 +1,60 @@
+<template>
+	<view class="content-box">
+		<view class="title-box">{{ item.title }}</view>
+		<image :src="item.cover" mode="widthFix" class="detail-image"></image>
+		<view class="desc-box">{{ item.desc }}</view>
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				item:null,
+				background: {
+					backgroundColor: '#486A92',
+				},
+				hhyanm: {
+					color: '#FFFFFF',
+				},
+				imglist:[],
+				type_name: '详情'
+			}
+		},
+		onLoad(e) {
+			this.item = JSON.parse(e.item);
+			console.log(this.item)
+			
+		},
+		onReachBottom() {},
+		methods: {
+			 
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	.content-box{
+		width: 100%;
+		padding: 30rpx;
+		box-sizing: border-box;
+	}
+	.title-box{
+		font-size: 32rpx;
+		font-weight: bold;
+		padding-bottom: 20rpx;
+	}
+	.detail-image{
+		width: 100%;
+	}
+	.desc-box{
+		font-size: 28rpx;
+		padding-top: 20rpx;
+		box-sizing: border-box;
+	}
+	
+</style>

+ 163 - 0
xinlijiankang-uniapp-main/pages/index/zylx.vue

@@ -0,0 +1,163 @@
+<template>
+	<view>
+		<u-navbar :is-back="false" :border-bottom="false" :background="background">
+			<view style="width: 100%;padding: 0 10rpx;">
+				<view class="flztoa inlbhhe ">
+					<navigator class="indihh" url="../index/index" open-type="redirect" hover-class="none">
+						<text>最新</text>
+					</navigator>
+					<!-- <navigator class="indihh" url="../index/hykt" open-type="redirect" hover-class="none">
+						<text>会员</text>
+					</navigator> -->
+					<view class="indihh" style="width: 40%;">
+						<text style="font-size: 44rpx;color:  #374B6E;">治愈练习</text>
+						<view
+							style="width: 26rpx;height: 4rpx;background: #374B6E;border-radius: 4rpx;margin-top: 10rpx;">
+						</view>
+					</view>
+					<!-- <navigator class="indihh" url="../index/hd" open-type="redirect" hover-class="none">
+						<text>活动</text>
+					</navigator> -->
+				</view>
+			</view>
+		</u-navbar>
+
+		<view class="zyjjvko">
+			<view class="zyddwwe" v-for="(item,index) in list" :key="index">
+				<navigator class="zygdihh" :style="'background: url(../../static/zy/zy0' + (index+1) + '.png) center center no-repeat;'"
+					:url="'../index/zyDetail?item=' + JSON.stringify(item)" hover-class="none">
+					<view class="zywenzi">
+						<text>{{item.title}}</text>
+						<text class="zywenzib">{{item.desc}}</text>
+					</view>
+				</navigator>
+			</view>
+		</view>
+		<view style="height: 120rpx;"></view>
+		<view style="height: 130rpx;"></view>
+		<view class="dibuboot">
+			<navigator class="dibubootlb" url="../index/index" open-type="redirect" hover-class="none">
+				<image src="/static/dibu/bob1.png" style="width: 48rpx;height: 48rpx;"></image>
+				<text style="color: #374B6E">首页</text>
+			</navigator>
+			<!-- 			<navigator class="dibubootlb" url="../lecturer/wdzx" open-type="redirect" hover-class="none">
+				<image src="/static/dibu/boa2.png" style="width: 48rpx;height: 48rpx;"></image>
+				<text>咨询</text>
+			</navigator>
+			<navigator class="dibubootlb" url="../index/jiehuo" open-type="redirect" hover-class="none">
+				<image src="/static/dibu/boa3.png" style="width: 48rpx;height: 48rpx;"></image>
+				<text>解惑</text>
+			</navigator> -->
+			<navigator class="dibubootlb" url="../lecturer/my" open-type="redirect" hover-class="none">
+				<image src="/static/dibu/boa4.png" style="width: 48rpx;height: 48rpx;"></image>
+				<text>我的</text>
+			</navigator>
+		</view>
+
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				background: {
+					backgroundColor: '#ffffff',
+				},
+				list:[{},{}]
+			}
+		},
+		onLoad() {
+			// this.getclassifyList();
+			this.getcureList();
+		},
+		methods: {
+			getcureList(){
+				let user_id = uni.getStorageSync('id');
+				this.$request.getcureList({}).then(res => {
+					console.log(res)
+					this.list = res.data.splice(0,6);
+					
+				}).catch(err => {
+					console.log(err)
+				})
+			},
+			// 获取分类列表
+			getclassifyList() {
+				let user_id = uni.getStorageSync('id');
+				this.$post({
+					data: {
+						do: 'TypeList',
+						// data: {
+						// 	user_id: user_id,
+						// 	type_id: 14,
+						// 	pw: '375'
+						// }
+					}
+				}).then(res => {
+					this.list = res.data
+
+				})
+			},
+
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	.zyjjvko {
+		display: flex;
+		flex-wrap: wrap;
+		padding: 0 10rpx;
+		margin-top: 30rpx;
+	}
+
+	.zyddwwe {
+		width: 50%;
+		display: flex;
+		justify-content: center;
+		align-items: center;
+		margin-top: 20rpx;
+	}
+
+	.zygdihh {
+		background-size: 100%;
+		width: 342rpx;
+		height: 290rpx;
+		border-radius: 16rpx 16rpx 16rpx 16rpx;
+		display: flex;
+		flex-direction: column;
+	}
+
+	.zygdihhb {
+		background-size: 100%;
+		width: 702rpx;
+		height: 290rpx;
+		border-radius: 16rpx 16rpx 16rpx 16rpx;
+		display: flex;
+		flex-direction: column;
+	}
+
+	.zywenzi {
+		display: flex;
+		flex-direction: column;
+		padding: 40rpx 30rpx;
+		font-size: 32rpx;
+		font-family: PingFang SC-Bold, PingFang SC;
+		font-weight: bold;
+		color: #FFFFFF;
+		line-height: 44rpx;
+	}
+
+	.zywenzib {
+		font-size: 28rpx;
+		font-family: PingFang SC-Regular, PingFang SC;
+		font-weight: 400;
+		color: #FFFFFF;
+		line-height: 40rpx;
+	}
+</style>

+ 172 - 0
xinlijiankang-uniapp-main/pages/index/zyxq.vue

@@ -0,0 +1,172 @@
+<template>
+	<view class="">
+		<u-navbar :border-bottom="false" back-icon-size="35" :title="type_name" title-size="32" :background="background"
+			:back-text-style="hhyanm" title-color="#FFFFFF" back-icon-color="#FFFFFF"></u-navbar>
+
+		<view class="zykkddr">
+			<view class="zykkddra">
+				<image src="/static/zy/zya1.png"
+					style="width: 750rpx;height: 410rpx;margin-top: -102rpx;margin-left: 132rpx;" mode=""></image>
+			</view>
+			<view class="zykkddrb">
+				<view style="margin: 0 24rpx;">
+					<u-swiper :list="imglist" interval="58000" height="364" border-radius="16"></u-swiper>
+				</view>
+			</view>
+		</view>
+		<view class="zynnuy">
+			<view class="zyhttry">
+				<view class="zyjjdew"></view>
+				<text>更多视频</text>
+			</view> 
+			<view class="">
+				<!-- <block v-for="(item,index) in list" :key="index">
+					
+				</block> -->
+				<view class="zytlidde" @click="toDetail(item)">
+					<image class="zytyyrimg" :src="item.cover" mode=""></image>
+					<view class="zytyyopf">
+						<view class="zytyotxta"><text>{{item.title}}</text></view>
+						<view class="flztoa zytyotxtb">
+							<text>{{item.desc}}</text>
+							<image src="/static/zy/zyb3.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
+						</view>
+						<!-- <view class="flztoa">
+							<view class="fzctob zytyotxtc">
+								<text>{{item.sales}}人观看</text>
+								<image :src="item.is_collect == 1?'/static/zy/zyb1.png':'/static/zy/zyb2.png'" style="width: 40rpx;height: 40rpx;margin-left: 20rpx;" @click="shocuang(item.id)"></image>
+							</view>
+							<text class="zytyotxtd">{{item.time}}分钟</text>
+						</view> -->
+					</view>
+				</view>
+				<view class="zyhxyyer"></view>
+				
+			</view>
+		</view>
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				item:null,
+				background: {
+					backgroundColor: '#486A92',
+				},
+				hhyanm: {
+					color: '#FFFFFF',
+				},
+				timestamp: 86400,
+				type_id: '',
+				user_id: '',
+				page: 1,
+				num: 20,
+				list: [],
+				imglist:[],
+				total: 0,
+				type_name: '视频'
+			}
+		},
+		onLoad(e) {
+			this.item = JSON.parse(e.item);
+			let imgs = [];
+			imgs.push(this.item.cover);
+			this.imglist = imgs;
+			// this.user_id = uni.getStorageSync('id');
+			// this.getlist();
+			// this.getimg();
+		},
+		onReachBottom() {
+			if (this.list.length < this.total) {
+				this.page = this.page + 1
+				this.getlist();
+			} else {
+				uni.showToast({
+					title: '没有更多数据了',
+					icon: 'none'
+				})
+			}
+		},
+		methods: {
+			getlist() {
+				let that = this;
+				let data = {
+					page: that.page,
+					num: that.num,
+					type_id: that.type_id,
+					user_id: that.user_id,
+					title: ''
+				}
+				console.log(data)
+				this.$post({
+					data: {
+						do: 'CourseList',
+						data: {
+							page: that.page,
+							num: that.num,
+							type_id: that.type_id,
+							user_id: that.user_id,
+							title: ''
+						}
+					}
+				}).then(res => {
+					that.list = [...that.list, ...res.data.data]
+					that.total = Number(res.data.total)
+					that.type_name = res.data.type_name
+				})
+			},
+			shocuang(id){
+				let that = this;
+				this.$post({
+					data: {
+						do: 'CourseAttribute',
+						data: {
+							id: id,
+							user_id: that.user_id,
+							pw:'375'
+						}
+					}
+				}).then(res => {
+					that.page = 1;
+					that.list = [];
+					that.getlist();
+				})
+			},
+			// 获取分类列表
+			getimg() {
+				let user_id = uni.getStorageSync('id');
+				this.$post({
+					data: {
+						do: 'CourseType',
+						data: {
+							user_id: user_id,
+							type_id: this.type_id,
+							pw: '375'
+						}
+					}
+				}).then(res => {
+					this.imglist = res.data[0].img
+			
+				})
+			},
+			// 去详情
+			toDetail(i){
+				uni.navigateTo({
+					url:'/pages/index/kcxq-x?item='+ JSON.stringify(this.item)
+				})
+			}
+			
+			
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+
+</style>

+ 248 - 0
xinlijiankang-uniapp-main/pages/lecturer/Live.nvue

@@ -0,0 +1,248 @@
+<template>
+    <view>
+        <!-- <view class="account-form">
+            <view class="uni-form-item">
+                <view class="uni-input-wrapper">
+                    <view class="uni-label uni-label-must">直播间标题</view>
+                    <input class="uni-input" placeholder="请输入直播间标题" :value="form.liveroomTitle" @input="changeInput($event,'liveroomTitle')"/>
+                </view>
+            </view>
+        </view> -->
+				<button type="primary" class="cu-btn" v-if="!startState" @click="saveForm">开始直播</button>
+				<button type="primary" class="cu-btn" v-if="startState" @click="downcast">关闭直播</button>
+				<button type="primary" class="cu-btn" @click="switchCamera">切换摄像头</button>
+        <live-pusher
+            id="livePusher"
+            ref="livePusher"
+            :style="pusherCalss"
+            class="livePusher"
+            :url="tl_url"
+            mode="FHD"
+            :muted="false"
+            :enable-camera="true"
+            :auto-focus="true"
+            :beauty="1"
+            whiteness="2"
+            aspect="9:16"
+            @statechange="statechange"
+            @netstatus="netstatus"
+            @error="error"
+        ></live-pusher>
+				
+       <!-- // 官方给的一些按钮,具体调用在下面 -->
+       <!-- <button class="btn" @click="start">开始推流</button>
+        <button class="btn" @click="pause">暂停推流</button>
+        <button class="btn" @click="resume">resume</button>
+        <button class="btn" @click="stop">停止推流</button>
+        <button class="btn" @click="snapshot">快照</button>
+        <button class="btn" @click="startPreview">开启摄像头预览</button>
+        <button class="btn" @click="stopPreview">关闭摄像头预览</button>
+        <button class="btn" @click="switchCamera">切换摄像头</button> -->
+    </view>
+</template>
+ 
+<script>
+	import http from '@/utils/http.js'
+export default {
+    data() {
+        return {
+            // 视频宽高
+            pusherCalss: {
+                width: '200px',
+                height: '300px'
+            },
+            // form本人测试请求的参数,不发请求可以不加
+            form: {
+                liveroomTitle: null, // 标题
+                equipmentType: 1 // 设备类型(1.手机 2.电脑)
+            },
+            // 控制开启,关闭直播按钮的显示
+            startState: false,// 直播状态(false 关闭)
+						chapter_id:0,
+						tl_url:''
+        };
+    },
+    onReady() {
+        // 注意:需要在onReady中 或 onLoad 延时
+        this.context = uni.createLivePusherContext('livePusher', this);
+    },
+    onLoad(e) {
+				this.chapter_id = e.chapter_id
+				this.getInfo()
+        // 获取可视区域高度,减去固定高度
+        this.pusherCalss.width = uni.getSystemInfoSync().windowWidth;
+        this.pusherCalss.height = uni.getSystemInfoSync().windowHeight;
+    },
+    mounted() {
+        // 一进页面,先调用摄像头,保证摄像头是打开状态,不加也可以,手动开启,参考上面官方给出的那些按钮
+        // this.startPreview();
+    },
+    methods: {
+			getInfo(){
+				http.post({
+					data:{
+						do:'LiveInfo',
+						data:{
+							user_id:uni.getStorageSync('id'),
+							chapter_id:this.chapter_id
+						}
+					}
+				}).then(res=>{
+					// 
+					this.tl_url = res.data.live.complete_url
+					// console.log(res.data.live.tl_url,'++++++')
+				})
+			},
+        // 下面的这些方法,可以参考官网,具体查看每个方法的意义
+        statechange(e) {
+            console.log('statechange:' + JSON.stringify(e));
+        },
+        netstatus(e) {
+            console.log('netstatus:' + JSON.stringify(e));
+        },
+        error(e) {
+            console.log('error:' + JSON.stringify(e));
+        },
+        start: function() {
+            this.context.start({
+                success: a => {
+                    this.startState = true;
+                    console.log('livePusher.start:' + JSON.stringify(a));
+                },
+								fail:err=>{
+									console.log(err,'失败了,失败了')
+								}
+            });
+        },
+        close: function() {
+            this.context.close({
+                success: a => {
+                    console.log('livePusher.close:' + JSON.stringify(a));
+                }
+            });
+        },
+        snapshot: function() {
+            this.context.snapshot({
+                success: e => {
+                    console.log(JSON.stringify(e));
+                }
+            });
+        },
+        resume: function() {
+            this.context.resume({
+                success: a => {
+                    console.log('livePusher.resume:' + JSON.stringify(a));
+                }
+            });
+        },
+        pause: function() {
+            this.context.pause({
+                success: a => {
+                    console.log('livePusher.pause:' + JSON.stringify(a));
+                }
+            });
+        },
+        stop: function() {
+            this.context.stop({
+                success: a => {
+                    this.startState = false;
+                    console.log(JSON.stringify(a));
+                }
+            });
+        },
+        switchCamera: function() {
+            this.context.switchCamera({
+                success: a => {
+                    console.log('livePusher.switchCamera:' + JSON.stringify(a));
+                }
+            });
+        },
+        startPreview: function() {
+            this.context.startPreview({
+                success: a => {
+                    console.log('livePusher.startPreview:' + JSON.stringify(a));
+                }
+            });
+        },
+        stopPreview: function() {
+            this.context.stopPreview({
+                success: a => {
+                    console.log('livePusher.stopPreview:' + JSON.stringify(a));
+                }
+            });
+        },
+        // 输入框改变(没有接口可以忽略,这里就是发送请求时起一个直播间的名字)
+        changeInput: function(e, name) {
+            this.form[name] = e.detail.value;
+        },
+        // 开始直播
+        saveForm() {
+				uni.showModal({
+					title:'提示',
+					content:'确定要开始直播吗?',
+					success: (res) => {
+						if(res.confirm){
+							this.start()
+						}
+					}
+				})
+            // if(this.form.liveroomTitle == null || this.form.liveroomTitle == ""){
+            //     return;
+            // }
+            // // 这里是我自己的测试请求,因为需要和vue数据同步,做一个开播关播的数据交互,大家如果用不到的话可以直接调用 this.start();
+            // getApp().$util.requestUrl(`/test/live/createLiveRecord?anchorId=2&liveroomTitle=${this.form.liveroomTitle}&equipmentType=${this.form.equipmentType}`).then(res => {
+            //     console.log(res)
+            //     if (res.status == 200) {
+            //         this.start();
+            //     }
+            // });
+        },
+        // 关闭直播
+        downcast(){
+					uni.showModal({
+						title:'提示',
+						content:'确定要关闭直播吗?',
+						success: (res) => {
+							if(res.confirm){
+								this.stopPreview()
+								this.stop();
+								uni.showToast({
+									title:'直播已关闭',
+									mask:true
+								})
+								setTimeout(()=>{
+									uni.navigateBack()
+								},1500)
+							}
+						}
+					})
+					
+            // 同样,用不到接口只简单测试,调用this.stop();
+            // vue的工具类等调用是this.$util;
+            // uniapp使用getApp().$util
+            // getApp().$util.requestUrl(`/test/live/downcast?anchorId=2`).then(res => {
+            //     console.log(res)
+            //     if (res.status == 200) {
+            //         this.stop();
+            //     }
+            // });
+        }
+    }
+};
+</script>
+<style>
+	.toLive{
+		height: 45rpx;
+		display: flex;
+		justify-content: center;
+		align-items: center;
+		color: #405375;
+		padding: 10rpx 20rpx;
+		border: 1rpx solid #405375;
+		border-radius: 25rpx;
+	}
+	.f-btns{
+		width: 750rpx;
+		height: 150rpx;
+	}
+</style>

+ 63 - 0
xinlijiankang-uniapp-main/pages/lecturer/cpfa.vue

@@ -0,0 +1,63 @@
+<template>
+	<view class="ayuu">
+		<view class="cpfapryu">
+			<view class="indhuyr">
+				<view class="indjbrr"></view>
+				<text>测评结果</text>
+			</view>
+			<view class="cpfapryukan">
+				<text v-for="(item,index) in list" :key="index" style="display: block;">
+					{{item}}
+				</text>
+			</view>  
+		</view>
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+                id:0,
+                list:[]
+			}
+		},
+        onLoad(e) {
+            this.id = e.id
+            console.log(this.id)
+            this.getDetail()
+        },
+        methods:{
+            getDetail(){
+                this.$post({
+                    data:{
+                        do:'GetExamination',
+                        data:{
+                            id:this.id
+                        }
+                    }
+                }).then(res=>{
+                    console.log(res)
+                    // let arr = []
+                    // res.data.map(item=>{
+                    //     arr.push(item[1])
+                    // })
+                    this.list = res.data
+                })
+            }
+        }
+
+
+	}
+</script>
+
+<style lang="scss" scoped>
+ 
+ 
+	 
+	 
+</style>

+ 88 - 0
xinlijiankang-uniapp-main/pages/lecturer/kcdd-xq.vue

@@ -0,0 +1,88 @@
+<template>
+	<view class="">
+			<view class="ddxqship">
+				<!-- 视频板块预留 -->
+			</view>
+			
+	 
+		<view class="ddxqfayu">
+			<view class="indhuyr">
+				<view class="indjbrr"></view>
+				<text>课程详情</text>
+			</view>
+			
+			<view style="margin-top: 30rpx;">
+				<view class="fzctob">
+					<view class="kcxquyr">
+						<text>课程名称</text>
+					</view>
+					<view class="kcxquyra">
+						<text>焦虑课程焦虑课程焦虑课程焦虑</text>
+					</view>
+				</view>
+				<view style="border-top: 2rpx dashed #e8e8e8;width: 100%;margin: 22rpx 0;"></view>
+				
+				<view class="fzctob">
+					<view class="kcxquyr">
+						<text>课程分类</text>
+					</view>
+					<view class="fzctob kcwwerrt">
+						<text>心里咨询</text>
+						<text>心里咨询</text>
+						<text>心里咨询</text>
+					</view>
+				</view>
+				<view style="border-top: 2rpx dashed #e8e8e8;width: 100%;margin: 22rpx 0;"></view>
+				
+				<view class="fzctob">
+					<view class="kcxquyr">
+						<text>直播时间</text>
+					</view>
+					<view class="kcxquyra">
+						<text>2022.02.22 22:00~22:00</text>
+					</view>
+				</view>
+				<view style="border-top: 2rpx dashed #e8e8e8;width: 100%;margin: 22rpx 0;"></view>
+				
+				<view class="fzctob">
+					<view class="kcxquyr">
+						<text>金额</text>
+					</view>
+					<view class="fzctob">
+						<text class="wdjga">¥</text>
+						<text class="wdjgb">00</text>
+						<text class="wdjgc">.00</text>
+						<text class="scjga">原价¥199</text>
+					</view>
+				</view>
+			</view>
+
+		</view>
+		 
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+
+			}
+		},
+
+
+	}
+</script>
+
+<style lang="scss" scoped>
+	
+	 
+ 
+ 
+	 
+	 
+</style>

+ 113 - 0
xinlijiankang-uniapp-main/pages/lecturer/kcdd-xqb.vue

@@ -0,0 +1,113 @@
+<template>
+	<view class="">
+			<view class="ddxqship">
+				<!-- 视频板块预留 -->
+			</view>
+		<view class="ddxqfayu">
+			<view class="indhuyr">
+				<view class="indjbrr"></view>
+				<text>视频套餐</text>
+			</view>
+			
+			<view style="margin-top: 30rpx;">
+				 <view class="fzctob">
+				 	<view class="sckjert">
+				 		<!-- 图片预留 -->
+				 	</view>
+				 	<view class="fsxto" style="width: 100%;margin-left: 24rpx;">
+				 		<view class="cphrry"><text>焦虑课程焦虑课程焦虑课程焦虑</text></view>
+				 		<view class="cptxtyra"><text>课程讲师或其他信息</text></view>
+				 		<view class="fzctob">
+				 			<text class="wdjga">¥</text>
+				 			<text class="wdjgb">00</text>
+				 			<text class="wdjgc">.00</text>
+				 			<text class="scjga">原价¥199</text>
+							<image v-show="xqaxuye" @click="xqaxuye = false" src="/static/zy/zyb1.png" style="width: 36rpx;height: 36rpx;margin-left: 20rpx;margin-top: 6rpx;" mode=""></image>
+							<image  v-show="!xqaxuye"  @click="xqaxuye = true" src="/static/zy/zyb2.png" style="width: 36rpx;height: 36rpx;margin-left: 20rpx;margin-top: 6rpx;" mode=""></image>
+				 		</view>
+				 	</view>
+				 </view>
+			</view>
+			
+			
+			 
+		</view>
+	 
+		<view class="ddxqfayu">
+			<view class="indhuyr">
+				<view class="indjbrr"></view>
+				<text>课程详情</text>
+			</view>
+			
+			<view style="margin-top: 30rpx;">
+				<view class="fzctob">
+					<view class="kcxquyr">
+						<text>课程名称</text>
+					</view>
+					<view class="kcxquyra">
+						<text>焦虑课程焦虑课程焦虑课程焦虑</text>
+					</view>
+				</view>
+				<view style="border-top: 2rpx dashed #e8e8e8;width: 100%;margin: 22rpx 0;"></view>
+				
+				<view class="fzctob">
+					<view class="kcxquyr">
+						<text>课程分类</text>
+					</view>
+					<view class="fzctob kcwwerrt">
+						<text>心里咨询</text>
+						<text>心里咨询</text>
+						<text>心里咨询</text>
+					</view>
+				</view>
+				<view style="border-top: 2rpx dashed #e8e8e8;width: 100%;margin: 22rpx 0;"></view>
+				
+				<view class="fzctob">
+					<view class="kcxquyr">
+						<text>金额</text>
+					</view>
+					<view class="fzctob">
+						<text class="wdjga">¥</text>
+						<text class="wdjgb">00</text>
+						<text class="wdjgc">.00</text>
+						<text class="scjga">原价¥199</text>
+					</view>
+				</view>
+			</view>
+			
+			
+			
+			 
+		</view>
+		 
+
+		 
+		
+		 
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				xqaxuye:false,
+			}
+		},
+
+
+	}
+</script>
+
+<style lang="scss" scoped>
+	
+	 
+ 
+ 
+	 
+	 
+</style>

+ 131 - 0
xinlijiankang-uniapp-main/pages/lecturer/kcdd.vue

@@ -0,0 +1,131 @@
+<template>
+	<view class="">
+		 <view class="zxkjyr" style="padding: 0  42rpx;padding-top: 12rpx;">
+			 
+		 	<view :class="['zxkjyra',Inv==0?'zxkjyrff':'']" @click="Inv=0">
+		 		<text>直播课程</text>
+		 		<view class="zxkjxh"></view>
+		 	</view>
+			
+			<view :class="['zxkjyra',Inv==1?'zxkjyrff':'']" @click="Inv=1">
+				<text>录制课程</text>
+				<view class="zxkjxh"></view>
+			</view>
+			
+		 	<view :class="['zxkjyra',Inv==2?'zxkjyrff':'']" @click="Inv=2">
+		 		<text>失效课程</text>
+		 		<view class="zxkjxh"></view>
+		 	</view>
+			
+		 </view>
+		 
+		<view class=" ">
+			<view style="margin-top: 30rpx;">
+				<view class="fsxto sclixmy" v-for="(item,index) in list" :key="index">
+					<view class="fzctob">
+						<view class="sckjert" style="overflow: hidden;">
+                            <image :src="item.img" mode="aspectFill" style="width: 100%; height: 100%;"></image>
+						</view>
+						<view class="fsxto" style="width: 100%;margin-left: 24rpx;">
+							<view class="cphrry"><text>{{item.title}}</text></view>
+							<view class="cptxtyra" style="margin-bottom: 10rpx;"><text>{{item.lecturer_name}}</text></view>
+							<view class="fzctob kcwwerrt">
+								<text>{{item.type_title}}</text>
+							</view>
+						</view>
+					</view>
+					<view style="border-top: 2rpx dashed #e8e8e8;width: 107%;margin-left: -24rpx;margin-top: 22rpx;"></view>
+					<view class="flztoa" style="margin-top: 26rpx;">
+						<view class="fzctob">
+							<text class="wdjga">¥</text>
+							<text class="wdjgb">{{item.price}}</text>
+							<!-- <text class="wdjgc">.00</text> -->
+							<!-- <text class="scjga">原价¥{{item.line_price}}</text> -->
+						</view>
+                        <!-- url="../lecturer/kcdd-xq" -->
+						<view class="kcdrry" hover-class="none" @click="toDetail(item.course_id)">
+							<image v-if="Inv!=2" src="/static/lecturer/kca1.png" style="width: 136rpx;min-width: 136rpx;height: 50rpx;" mode=""></image>
+                            <image v-if="Inv==2" src="/static/lecturer/kca2.png" style="width: 136rpx;min-width: 136rpx;height: 50rpx;" mode=""></image>
+						</view>
+					</view>
+				</view>
+			</view>
+ 
+		</view>
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				Inv: 0,
+                list:[],
+                course:[],
+                fail_live:[],
+                live:[],
+                lecturer_name:''
+			}
+		},
+        watch:{
+            Inv(val){
+                if(val==0){
+                    this.list = this.live
+                } else if(val==1){
+                    this.list = this.course
+                } else if(val==2){
+                    this.list = this.fail_live
+                }
+            }
+        },
+        onLoad() {
+            this.getList()
+        },
+		methods: {
+            // 获取列表
+            getList(){
+                this.$post({
+                    data:{
+                        do:'MyOrderList',
+                        data:{
+                            user_id:uni.getStorageSync('id'),
+                        }
+                    }
+                }).then(res=>{
+                    console.log(res,'pppppppppppp')
+                    this.course = res.data.course
+                    this.fail_live = res.data.fail_live
+                    this.live = res.data.live
+                    this.lecturer_name = res.data.lecturer_name
+                    if(this.Inv==0){
+                        this.list = this.live
+                    } else if(this.Inv==1){
+                        this.list = this.course
+                    } else if(this.Inv==2){
+                        this.list = this.fail_live
+                    }
+                }) 
+            },
+            // 观看课程
+            toDetail(id){
+                if(this.Inv!=2){
+                    uni.navigateTo({
+                        url:'/pages/index/kcxq-x?id='+id
+                    })
+                }
+            }
+		}
+
+
+	}
+</script>
+
+<style lang="scss" scoped>
+	  
+	 
+	 
+</style>

+ 356 - 0
xinlijiankang-uniapp-main/pages/lecturer/modifyInfo/modifyInfo.vue

@@ -0,0 +1,356 @@
+<template>
+	<view class="container">
+		<view class="ui-all">
+			<form @submit="getUserProfile">
+				
+				<view class="avatar">
+					<button open-type="chooseAvatar" @chooseavatar="onChooseAvatar" class="getInfo">
+						<view class="imgAvatar">
+							<view class="iavatar" :style="'background: url('+avater+') no-repeat center/cover #eeeeee;'"></view>
+						</view>
+						<text class="avatarUrl-text">设置头像</text>
+					</button>
+					<button open-type="chooseAvatar" @chooseavatar="onChooseAvatar" class="getInfo-btn-box">授权获取头像</button>
+				</view>
+				<view class="ui-list" style="flex-direction: column;align-items: flex-start;">
+					<view style="display: flex;align-items: center;width: 100%;">
+						<text class="ui-list-text">昵称</text>
+						<input type="nickname" placeholder="点击使用微信昵称" v-model="nickname" name="nickName" placeholder-class="place" class="ui-list-input" @input = "bindnickName">
+							<!-- <button class="ui-list-btn-box">使用微信昵称</button> -->
+						</input>
+					</view>
+					<view style="font-size: 24rpx;color: #ff0000;">*点击使用微信昵称</view>
+				</view>
+				
+				<button class="save" type="primary" formType="submit" hover-class="hoverClass">确认</button>
+			</form>
+		</view>
+
+	</view>
+</template>
+
+<script>
+	import { base_url } from '../../../apis/index.config.js'
+	export default {
+
+		data() {
+			return {
+				member_id:'',
+				memberInfo:'',
+				value: '请填写',
+				url: '',
+				nickname: '',
+				avater: '',
+			}
+
+		},
+		onShow() {
+			this.member_id = uni.getStorageSync('member_id');
+			this.memberInfo = uni.getStorageSync('memberInfo');
+			// 获取用户信息
+			this.getMemberInfo();
+		},
+		methods: {
+			bindnickName(e) {
+				this.nickname = e.detail.value;
+			},
+			//获取用户信息
+			getMemberInfo(loading = true) {
+				let that = this;
+				let id = uni.getStorageSync('id');
+				this.$request.getuserinfo({
+					id
+				}).then( res =>{
+					console.log(res)
+					that.avater = res.data.avater;
+					that.nickname = res.data.nickname == '微信用户'?'':res.data.nickname;
+				}).catch( e=>{
+					console.log(e)
+				})
+			},
+			// avatarChoose() {
+			// 	let that = this;
+			// 	uni.chooseImage({
+			// 		count: 1,
+			// 		sizeType: ['original', 'compressed'],
+			// 		sourceType: ['album', 'camera'],
+			// 		success(res) {
+			// 			that.imgUpload(res.tempFilePaths);
+			// 			const tempFilePaths = res.tempFilePaths;
+			// 		}
+			// 	});
+			// },
+			// 获取头像
+			onChooseAvatar(e) {
+				let that = this;
+				console.log(e)
+				const {
+					avatarUrl
+				} = e.detail
+				that.avater = avatarUrl;
+				
+			},
+
+			getphonenumber(e) {
+				if (e.detail.iv) {
+					console.log(e) //传后台解密换取手机号
+					uni.showToast({
+						title: '已授权',
+						icon: 'none',
+						duration: 2000
+					})
+				}
+			},
+			getUserProfile(e) {
+				let that = this;
+				let p = {
+					nickname: e.detail.value.nickName,
+					avater: that.avater?that.avater:'',
+				}
+				if(!p.avater){
+					uni.showToast({
+						title: '请先设置头像',
+						icon: 'none'
+					})
+					return
+				}
+				if(!p.nickname){
+					uni.showToast({
+						title: '昵称不能为空',
+						icon: 'none'
+					})
+					return
+				}
+				that.updata(p);
+			},
+			async updata(datas) {
+				//传后台
+				let that = this;
+				await that.$request.saveuserInfo(datas).then( res =>{
+					uni.showToast({
+						title: '修改成功!',
+						icon:'success'
+					})
+					setTimeout(() => {
+						uni.navigateBack({
+							delta: 1,
+						})
+					}, 1500);
+				}).catch( e=>{
+					console.log(e)
+				})
+			},
+			imgUpload(file) {
+				let that = this;
+				uni.uploadFile({
+					header: {
+						Authorization: uni.getStorageSync('token')
+					},
+					url: 'https://ocr.lfwhzb.com/api/upload/image', //需传后台图片上传接口
+					filePath: file[0],
+					name: 'file',
+					formData: {
+						type: 'user_headimg'
+					},
+					success: function(res) {
+						var data = JSON.parse(res.data);
+						data = data.data;
+						that.avater = that.url + data.img;
+
+						that.headimg = that.url + data.img;
+
+
+					},
+					fail: function(error) {
+						console.log(error);
+					}
+				});
+			},
+
+		},
+		onLoad() {}
+
+	}
+</script>
+
+<style lang="less">
+	page{
+		background-color: #fff;
+	}
+	.container {
+		display: block;
+	}
+
+	.ui-all {
+		padding: 20rpx;
+
+		.avatar {
+			width: 100%;
+			text-align: left;
+			padding: 20rpx 0;
+			border-bottom: solid 1px #f2f2f2;
+			position: relative;
+			display: flex;
+			align-items: center;
+			justify-content: space-between;
+			.getInfo {
+				line-height: 1;
+				background: #fff;
+				display: flex;
+				align-items: center;
+				border: none;
+				margin: 0;
+				padding: 0;
+			}
+
+			.getInfo::after {
+				border: none;
+			}
+
+			.imgAvatar {
+				width: 120rpx;
+				height: 120rpx;
+				border-radius: 50%;
+				display: inline-block;
+				vertical-align: middle;
+				overflow: hidden;
+
+				.iavatar {
+					width: 100%;
+					height: 100%;
+					display: block;
+				}
+			}
+
+			.avatarUrl-text {
+				display: inline-block;
+				vertical-align: middle;
+				color: #8e8e93;
+				font-size: 28rpx;
+				margin-left: 30rpx;
+			}
+
+			// &:after {
+			// 	content: ' ';
+			// 	width: 20rpx;
+			// 	height: 20rpx;
+			// 	border-top: solid 1px #030303;
+			// 	border-right: solid 1px #030303;
+			// 	transform: rotate(45deg);
+			// 	-ms-transform: rotate(45deg);
+			// 	/* IE 9 */
+			// 	-moz-transform: rotate(45deg);
+			// 	/* Firefox */
+			// 	-webkit-transform: rotate(45deg);
+			// 	/* Safari 和 Chrome */
+			// 	-o-transform: rotate(45deg);
+			// 	position: absolute;
+			// 	top: 85rpx;
+			// 	right: 0;
+			// }
+			.getInfo-btn-box{
+				width: auto;
+				font-size: 26rpx;
+				padding: 10rpx 30rpx;
+				color: #fff;
+				background-color: #1684FC;
+				border-radius: 6px;
+				margin: 0;
+				line-height: 1.5;
+			}
+		}
+
+		.ui-list {
+			width: 100%;
+			text-align: left;
+			padding: 20rpx 0;
+			border-bottom: solid 1px #f2f2f2;
+			position: relative;
+			display: flex;
+			align-items: center;
+			margin-top: 40rpx;
+			button{
+				line-height: 1.5;
+				margin: 0;
+				font-size: 26rpx;
+				padding: 10rpx 30rpx;
+				margin-left: 10rpx;
+			}
+			button.ui-list-btn-box{
+				color: #fff;
+				background-color: #1684FC;
+			}
+			.ui-list-text {
+				color: #4a4a4a;
+				font-size: 28rpx;
+				display: inline-block;
+				vertical-align: middle;
+				width: auto;
+				text-align: center;
+				padding-right: 20rpx;
+			}
+
+			.ui-list-input {
+				color: #030303;
+				font-size: 28rpx;
+				display: inline-block;
+				vertical-align: middle;
+				flex: 1;
+				padding: 10rpx 20rpx;
+				background: #f2f2f2;
+				
+			}
+			.picker-box {
+				width: 90%;
+				color: #030303;
+				font-size: 28rpx;
+				display: inline-block;
+				vertical-align: middle;
+			}
+
+			// textarea {
+			// 	color: #030303;
+			// 	font-size: 30rpx;
+			// 	vertical-align: middle;
+			// 	height: 150rpx;
+			// 	width: 100%;
+			// 	margin-top: 50rpx;
+			// }
+
+			.place {
+				color: #999999;
+				font-size: 28rpx;
+			}
+		}
+
+		.right:after {
+			content: ' ';
+			width: 20rpx;
+			height: 20rpx;
+			border-top: solid 1px #030303;
+			border-right: solid 1px #030303;
+			transform: rotate(45deg);
+			-ms-transform: rotate(45deg);
+			/* IE 9 */
+			-moz-transform: rotate(45deg);
+			/* Firefox */
+			-webkit-transform: rotate(45deg);
+			/* Safari 和 Chrome */
+			-o-transform: rotate(45deg);
+			position: absolute;
+			top: 26rpx;
+			right: 0;
+		}
+
+		.save {
+			background: #1684FC;
+			border: none;
+			color: #ffffff;
+			margin-top: 40rpx;
+			font-size: 28rpx;
+		}
+	}
+	.hoverClass{
+		opacity: 0.8;
+	}
+</style>

+ 632 - 0
xinlijiankang-uniapp-main/pages/lecturer/my.vue

@@ -0,0 +1,632 @@
+<template>
+	<view class="yywegg">
+		<u-navbar :is-back="false" :border-bottom="false" :background="background">
+			<view style="width: 100%;">
+			</view>
+		</u-navbar>
+
+		<view class="">
+			<view class="fzctob mywoddt">
+				<!-- @click.stop="getnickImage" -->
+				<image :src="userinfo ? userinfo.avater : '/static/lecturer/le01.png'"
+					style="width: 152rpx;height: 152rpx;border-radius:160rpx;min-width:152rpx;margin-right: 24rpx;"
+					mode=""></image>
+				<view class="flztoa" style="width: 100%;">
+					<view class="fsxto">
+						<view class="letxtfy nickName-text">
+							<span v-if="!userinfo" @click="login">请登录</span>
+							<span v-else>{{ userinfo.nickname}}</span>
+							<image src="/static/lecturer/bianji.png" mode="widthFix" class="title-icon-bianji" @click="goToModifyInfo"></image>
+						</view>
+						<!-- <text class="letxtfy">美丽的蝴蝶</text> -->
+						<input @blur="inputBlur" v-if="userinfo && type == 0" type="text" style="width: 400rpx;"
+							placeholder="请输入签名" placeholder-style="color: #fff;" v-model="userinfo.desc">
+						<image @click="upLabel" v-if="userinfo && type == '1' && userinfo.lecturer.tag.length==0"
+							src="/static/my/add_label.png" style="width: 40rpx; height: 40rpx; border-radius: 50%;">
+						</image>
+						<view class="fzctob letxtfya" v-if="userinfo != '' && type == '1'" @click="upLabel">
+							<text v-if="index<2" v-for="(item,index) in userinfo.lecturer.tag"
+								:key="index">{{item}}</text>
+						</view>
+					</view>
+					<view class="fzddrew letxtfyb" v-if="userinfo != ''" @click="changetype">
+						<image src="/static/lecturer/le02.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
+						<text>切换身份</text>
+					</view>
+				</view>
+			</view>
+
+			<view class="flztoa lebkty">
+				<navigator class="fzddrew" style="width: 25%;" url="../lecturer/wdgz" hover-class="none">
+					<text>{{userinfo.focus?userinfo.focus:'0'}}</text>
+					<text class="leshurt">关注</text>
+				</navigator>
+				<view class="leshuxd"></view>
+				<navigator class="fzddrew" style="width: 25%;" url="../lecturer/wdsc" hover-class="none">
+					<text>{{userinfo.fans?userinfo.fans:'0'}}</text>
+					<text class="leshurt">粉丝</text>
+				</navigator>
+			</view>
+		</view>
+
+		<view class="leybbaw" @click="clickUrllist">
+			<!-- <navigator class="flztoa lelbyyr" url="../lecturer/wdcp" hover-class="none">
+				<text>我的测评</text>
+				<image src="/static/lecturer/le03.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
+			</navigator>
+			<view class="lehettnn"></view> -->
+			<navigator class="flztoa lelbyyr" url="../lecturer/wdsc" hover-class="none">
+				<text>我的收藏</text>
+				<image src="/static/lecturer/le03.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
+			</navigator>
+			<view class="lehettnn"></view>
+			<navigator class="flztoa lelbyyr" url="../lecturer/wdhd" hover-class="none">
+				<text>我的活动</text>
+				<image src="/static/lecturer/le03.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
+			</navigator>
+			<view class="lehettnn"></view>
+			<navigator class="flztoa lelbyyr" url="../lecturer/wdkc" hover-class="none" v-show="type==1">
+				<text>我的课程</text>
+				<image src="/static/lecturer/le03.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
+			</navigator>
+			<view class="lehettnn" v-show="is_lecturer==1"></view>
+			<navigator class="flztoa lelbyyr" url="../lecturer/kcdd" hover-class="none">
+				<text>课程订单</text>
+				<image src="/static/lecturer/le03.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
+			</navigator>
+			<view class="lehettnn"></view>
+			
+			
+			<navigator class="flztoa lelbyyr" url="../lecturer/wdxuexi" hover-class="none">
+				<text>我的学习</text>
+				<image src="/static/lecturer/le03.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
+			</navigator>
+			<view class="lehettnn"></view>
+
+<!-- 			<navigator class="flztoa lelbyyr" url="../lecturer/wdzx" hover-class="none">
+				<text>我的答疑</text>
+				<image src="/static/lecturer/le03.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
+			</navigator>
+			<view class="lehettnn"></view> -->
+
+<!-- 			<navigator class="flztoa lelbyyr" url="../index/wdjh" hover-class="none">
+				<text>我的解惑</text>
+				<image src="/static/lecturer/le03.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
+			</navigator>
+			<view class="lehettnn"></view> -->
+
+
+			<!-- 
+
+			
+			<navigator class="flztoa lelbyyr" url="../index/coupon" hover-class="none">
+				<text>课程优惠券</text>
+				<image src="/static/lecturer/le03.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
+			</navigator> -->
+
+		</view>
+
+		<!-- <view class="leybbaw">
+			<view class="flztoa lelbyyr" @click="showCode">
+				<text>邀请</text>
+				<image src="/static/lecturer/le03.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
+			</view>
+		</view>
+
+		<view class="leybbaw">
+			<navigator class="flztoa lelbyyr" url="../index/invite">
+				<text>邀请码</text>
+				<image src="/static/lecturer/le03.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
+			</navigator>
+		</view> -->
+		<u-popup v-model="show" mode="center">
+			<view class="wdcjeer" v-if="userinfo">
+				<view class="wddvbh">
+					<image :src="userinfo.avatarUrl" class="wddimg" mode=""></image>
+					<text class="wddvbhtxt">{{userinfo.nickName}}</text>
+					<view class="fzctob kcwwerrt" v-if="type==1" style="margin-top: 10rpx;">
+						<text v-for="(item,index) in userinfo.lecturer.tag" :key="index">{{item}}</text>
+					</view>
+					<text v-else style="color: #333333; font-size: 32rpx;">{{userinfo.note}}</text>
+				</view>
+				<view class="" style="height: 170rpx;"></view>
+				<view class="wddbwwt">
+					<view class="wdbhgt">
+						<image :src="code" style="width: 318rpx;height: 318rpx;" mode=""></image>
+					</view>
+					<text class="wdbhddn">分享二维码</text>
+				</view>
+				<view class="wddvbhyu">
+					<image src="/static/my/myq1.png" @click="saveImage" style="width: 128rpx;height: 128rpx;" mode="">
+					</image>
+					<image src="/static/my/myq2.png" @click="shareWechat" style="width: 128rpx;height: 128rpx;" mode="">
+					</image>
+					<image src="/static/my/myq3.png" @click="shareFriend" style="width: 128rpx;height: 128rpx;" mode="">
+					</image>
+				</view>
+			</view>
+		</u-popup>
+		<view style="height: 120rpx;"></view>
+		<tabBar :active-index="activeIndex" @change="onTabBarChange"></tabBar>
+		<!-- 绘制海报插件 -->
+		<!-- :isCanvasToTempFilePath="canvasto"  @success="path = $event" -->
+		<l-painter v-if="userinfo && code" ref="painter" isCanvasToTempFilePath @success="path = $event"
+			custom-style="position: fixed; left: 200%;"
+			css="width: 750rpx; padding-bottom: 40rpx; background: rgba(0,170,255,0); padding-top: 113rpx;">
+			<l-painter-view
+				css="width: 702rpx;  text-align: center; box-sizing: border-box; margin-left: 24rpx; padding: 30rpx; padding-bottom: 80rpx; border-radius: 16rpx; background: white;">
+				<l-painter-image :src="userinfo.avatarUrl"
+					css="box-sizing: border-box; display: block; margin: auto; margin-top: -120rpx; width: 200rpx;height: 200rpx; border-radius: 50%; box-shadow: 0rpx 0rpx 20rpx 2rpx rgba(0, 0, 0, 0.1607843137254902); border: 4rpx solid #FFFFFF;">
+				</l-painter-image>
+				<l-painter-text :text="userinfo.nickName"
+					css="box-sizing: border-box; color: #333333; font-size: 50rpx;"></l-painter-text>
+				<l-painter-text v-if="type==0" :text="userinfo.note"
+					css="display: block; box-sizing: border-box; color: #333333; font-size: 22rpx;"></l-painter-text>
+				<l-painter-view v-else>
+					<l-painter-text v-for="(item,index) in userinfo.lecturer.tag" :key="index" :text="item"
+						css="margin-top: 10rpx; margin-right: 20rpx; border-radius: 38rpx; background: #F4F4F4; color: #999999; padding: 2rpx 20rpx; display: inline-block; font-size: 20rpx;">
+					</l-painter-text>
+				</l-painter-view>
+				<l-painter-view
+					css="margin: auto; text-align: center; margin-top: 90rpx; width: 372rpx; height: 372rpx; background-image: url(/static/my/myr1.png) top center no-repeat">
+					<l-painter-image :src="code"
+						css="width: 318rpx; box-sizing: border-box; margin-top: 24rpx; height: 318rpx;">
+					</l-painter-image>
+				</l-painter-view>
+
+			</l-painter-view>
+
+		</l-painter>
+		<!-- <image v-show="path" :src="path" mode="widthFix" style="width: 100%;"></image> -->
+
+
+		<u-popup v-model="labelshow" mode="bottom" :closeable="false" :border-radius="20"
+			:safe-area-inset-bottom="true">
+			<view class="" style="padding: 50rpx;30rpx">
+				<view class="flztoa" style="margin-bottom: 40rpx;">
+					<text @click="labelshow = false;" style="color: #999999;">取消</text>
+					<text style="font-size: 36rpx;font-weight: bold;">选择标签</text>
+					<text @click="ensureLabel">确定</text>
+				</view>
+
+				<!-- <view class="tanckku">
+								<uni-data-checkbox :multiple="true" mode="tag" v-model="radioa" :localdata="sex"
+									selectedColor="#374B6E !important" style="margin-top: 24rpx;"></uni-data-checkbox>
+						</view> -->
+				<scroll-view scroll-y style="height: 500rpx;">
+					<view class="label-outer">
+						<view :class="item.toggle?'label-act':'class-label'" @click="changeLabel(index)"
+							v-for="(item,index) in labellist" :key="index">{{item.title}}</view>
+					</view>
+				</scroll-view>
+
+			</view>
+		</u-popup>
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				show: false,
+				labelshow: false,
+				background: {
+					backgroundColor: '#95bf7f',
+				},
+				type: '', //0普通用户 1讲师
+				userinfo: '', //全部用户信息
+				path: '', // 海报生成的图片路径
+				is_lecturer: 0,
+				type: 0, // 展示当前身份    0 普通 1 讲师
+				code: '',
+				logininfo: '', // 登录成功后返回的info
+				labellist: [],
+				is_login: true,
+				activeIndex: 3,
+			}
+		},
+		onLoad() {
+			// uni.showLoading({
+			//     title: '绘制中...',
+			// })
+			// this.getuserinfo(false);
+			// uni.setStorageSync('id',4)
+			// 
+			let invite_id = uni.getStorageSync('invite_id');
+			let user_id = uni.getStorageSync('id');
+
+		},
+		watch: {
+			path(val) {
+				if (val != '') {
+					uni.hideLoading()
+				}
+			}
+		},
+		onShow() {
+			this.activeIndex = 3;
+			this.is_lecturer = uni.getStorageSync('is_lecturer')
+			// if(uni.getStorageSync('id')){
+			//     this.canvasto = true
+			// }
+			console.log('onshow')
+			if (uni.getStorageSync('id')) {
+				this.getuserinfo(false);
+				this.type = uni.getStorageSync('type')
+			} else {
+				this.userinfo == '';
+			}
+		},
+		methods: {
+			onTabBarChange(index) {
+				this.activeIndex = index;
+			},
+			// 点击修改
+			goToModifyInfo(){
+				uni.navigateTo({
+					url: '/pages/lecturer/modifyInfo/modifyInfo',
+				})
+			},
+			
+			// 确定修改标签
+			ensureLabel() {
+				let toggleArr = this.labellist.filter(item => item.toggle)
+				let tagsarr = []
+				toggleArr.map(item => {
+					tagsarr.push(item.title)
+				})
+				this.$post({
+					data: {
+						do: 'LecturerTagUpdate',
+						data: {
+							tags: tagsarr.join(','),
+							id: uni.getStorageSync('id')
+						}
+					}
+				}).then(res => {
+					this.labelshow = false
+					uni.showToast({
+						icon: 'none',
+						title: res.message,
+						mask: true
+					})
+					setTimeout(() => {
+						this.getuserinfo()
+					}, 1500)
+					console.log(res, '++++')
+				})
+			},
+			// 改变标签选择状态
+			changeLabel(index) {
+				let length = this.labellist.filter(item => item.toggle).length
+				if (length >= 2 && !this.labellist[index].toggle) {
+					return
+				}
+				this.labellist[index].toggle = !this.labellist[index].toggle
+			},
+			// 讲师标签
+			upLabel() {
+				this.$post({
+					data: {
+						do: 'LecturerTag',
+						data: {
+							page: 1
+						}
+					}
+				}).then(res => {
+					console.log(res, '+++')
+					let labellist = []
+					// this.userinfo.lecturer.tag
+					res.data.map(item => {
+						labellist.push({
+							title: item,
+							toggle: this.userinfo.lecturer.tag.includes(item) ? true : false
+							// toggle:false
+						})
+					})
+					this.labellist = labellist
+					this.labelshow = true
+				})
+			},
+			// 更新
+			inputBlur() {
+				let id = uni.getStorageSync('id');
+				this.$request.saveuserInfo({
+					desc: this.userinfo.desc
+				}).then( res =>{
+					console.log(res)
+					
+				}).catch( e=>{
+					console.log(e)
+				})
+			},
+			getnickImage() {
+				console.log(this.logininfo.id)
+				uni.getUserProfile({
+					desc: '用于昵称和头像的展示',
+					success: res => {
+						console.log(res, '++++')
+						console.log({
+							user_id: this.logininfo.id,
+							nickName: res.userInfo.nickName,
+							avatarUrl: res.userInfo.avatarUrl
+						})
+						this.$post({
+							data: {
+								do: 'UpdateUser',
+								data: {
+									user_id: this.logininfo.id,
+									nickName: res.userInfo.nickName,
+									avatarUrl: res.userInfo.avatarUrl
+								}
+							}
+						}).then(res => {
+							console.log(res, 'rrrrrrrrrr')
+							for (let i in this.logininfo) {
+								uni.setStorageSync(i, this.logininfo[i])
+							}
+							this.type == 0;
+							this.getuserinfo();
+						})
+						// this.nickName = res.userInfo.nickName
+						// this.avatarUrl = res.userInfo.avatarUrl
+						// this.country = res.userInfo.country
+						// this.province = res.userInfo.province
+						// this.city = res.userInfo.city
+						// this.gender = res.userInfo.gender
+						// uni.login({
+						// 	provider: 'weixin',
+						// 	success: (res) => {
+						// 		this.loginCode = res.code
+						// 		uni.hideLoading()
+						// 		this.popShow = true
+						// 	},
+						// })
+					},
+					fail: (err) => {
+						uni.hideLoading()
+					}
+				})
+			},
+			showCode() {
+				if (uni.getStorageSync('id')) {
+					this.show = true
+				} else {
+					// #ifdef MP
+					this.mpLogin()
+					return
+					// #endif
+				}
+			},
+			// 获取二维码
+			getCode() {
+				this.$post({
+					data: {
+						do: 'GetUserQr',
+						data: {
+							user_id: uni.getStorageSync('id')
+						}
+					},
+					loading: false
+				}).then(res => {
+					console.log(res, 'cccccccccccc')
+					this.code = res.data.url
+				})
+			},
+			login() {
+				if(!this.is_login){
+					return
+				}
+				this.is_login = false;
+				this.mpLogin();
+				// if (!uni.getStorageSync('id')) {
+				// 	// #ifdef MP
+				// 	this.mpLogin()
+				// 	// #endif
+				// 	// #ifndef MP
+				// 	uni.navigateTo({
+				// 		url: '/pages/login/appLogin'
+				// 	})
+				// 	// #endif
+				// }
+			},
+			// 小程序登录
+			mpLogin() {
+				let that = this;
+				uni.login({
+					provider: 'weixin',
+					success: (res) => {
+						console.log(res, 'rrrrrr')
+						const code = res.code;
+						that.getLogin(code);
+					}
+				})
+			},
+			getLogin(c){
+				let that = this;
+				uni.showLoading({
+					title: "登录中..."
+				})
+				that.$request.getLogin({code:c}).then(res => {
+					uni.hideLoading();
+					console.log(res)
+					if(res.code == 0){
+						that.logininfo = res.data;
+						that.userinfo = res.data;
+						uni.setStorageSync('userinfo',res.data);
+						uni.setStorageSync('id',res.data.id);
+						uni.setStorageSync("token",res.data.token);
+						that.is_login = true;
+					}else{
+						uni.showToast({
+							title: res.message,
+							icon: 'none'
+						})
+					}
+					// uni.showModal({
+					// 	title: '提示',
+					// 	content: '是否进行头像和昵称授权',
+					// 	success: (res) => {
+					// 		if (res.confirm) {
+					// 			this.getnickImage()
+					// 		}
+					// 	}
+					// })
+				}).catch(e =>{
+					uni.hideLoading();
+					console.log(e)
+					that.is_login = true;
+				})
+			},
+			//获取用户信息
+			getuserinfo(loading = true) {
+				let id = uni.getStorageSync('id');
+				this.$request.getuserinfo({
+					id
+				}).then( res =>{
+					console.log(res)
+					this.userinfo = res.data
+				}).catch( e=>{
+					console.log(e)
+				})
+			},
+			changetype() {
+				uni.navigateTo({
+					url: '../index/yhdl',
+					// success: () => {
+					// 	setTimeout(() => {
+					// 		this.userinfo = '' // 切换身份 重新绘制海报使用
+					// 	}, 500)
+					// }
+				})
+			},
+			// 保存海报
+			saveImage() {
+				if (this.path) {
+					uni.saveImageToPhotosAlbum({
+						filePath: this.path,
+						success: function() {
+							uni.showToast({
+								title: '保存成功'
+							})
+						}
+					});
+				} else {
+					uni.showToast({
+						title: '海报绘制失败,请截图分享',
+						icon: 'none'
+					})
+				}
+			},
+			// 分享给好友
+			shareWechat() {
+				// #ifdef MP
+				uni.showShareImageMenu({
+					path: this.path
+				})
+				// #endif
+				// #ifdef APP-PLUS
+				uni.share({
+					provider: "weixin",
+					scene: "WXSceneSession", // WXSceneSession 微信聊天界面   WXSceneTimeline 朋友圈
+					type: 2,
+					imageUrl: this.path,
+					success: function(res) {
+						console.log("success:" + JSON.stringify(res));
+					},
+					fail: function(err) {
+						console.log("fail:" + JSON.stringify(err));
+					}
+				});
+				// #endif
+			},
+			// 分享朋友圈
+			shareFriend() {
+				// #ifdef MP
+				uni.showToast({
+					title: '请将海报保存到手机,自行分享。',
+					icon: 'none'
+				})
+				// #endif
+				// #ifdef APP-PLUS
+				uni.share({
+					provider: "weixin",
+					scene: "WXSceneTimeline", // WXSceneSession 微信聊天界面   WXSceneTimeline 朋友圈
+					type: 2,
+					imageUrl: this.path,
+					success: function(res) {
+						console.log("success:" + JSON.stringify(res));
+					},
+					fail: function(err) {
+						console.log("fail:" + JSON.stringify(err));
+					}
+				});
+				// #endif
+			},
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+
+	.nickName-text{
+		display: flex;
+		align-items: center;
+	}
+	.title-icon-bianji{
+		width: 32rpx;
+		height: 36rpx;
+		margin-left: 16rpx;
+	}
+
+</style>
+<style>
+	.label-outer {
+		display: flex;
+		flex-wrap: wrap;
+		align-content: flex-start;
+	}
+
+	.label-outer>view {
+		margin-right: 30rpx;
+		margin-bottom: 30rpx;
+	}
+
+	.label-outer>view:nth-of-type(3n+3) {
+		margin-right: 0rpx;
+	}
+
+	.class-label {
+		width: 192rpx;
+		height: 72rpx;
+		background: #F4F4F4;
+		border-radius: 36rpx 36rpx 36rpx 36rpx;
+		opacity: 1;
+		display: flex;
+		justify-content: center;
+		align-items: center;
+		font-size: 28rpx;
+		color: #999999;
+		overflow: hidden;
+	}
+
+	.label-act {
+		width: 192rpx;
+		height: 72rpx;
+		background: #374B6E;
+		border-radius: 36rpx;
+		font-size: 28rpx;
+		color: #FFFFFF;
+		display: flex;
+		justify-content: center;
+		align-items: center;
+		font-size: 28rpx;
+		color: #ffffff;
+		overflow: hidden;
+	}
+</style>

+ 672 - 0
xinlijiankang-uniapp-main/pages/lecturer/sckc.vue

@@ -0,0 +1,672 @@
+<template>
+	<view class="ayuu">
+		<view class="hdtgyyqb">
+			<view class="flztoa scuuerm">
+				<view :class="['sczhbry',Inv==0?'sctyxer':'']" @click="Inv=0">
+					<text>直播课程</text>
+					<view class="scmmtui"></view>
+				</view>
+				<view :class="['sczhbry',Inv==1?'sctyxer':'']" @click="Inv=1">
+					<text>录制课程</text>
+					<view class="scmmtui"></view>
+				</view>
+			</view>
+			<view class="scmbberr"></view>
+
+
+			<view v-show="Inv == 0">
+				<view class="flztoa hdtcuur">
+					<view class="fzctob">
+						<view class="hdtcuutxt"><text>课程名称</text></view>
+						<view class="hdtcuutxta"><input type="text" value=""
+								placeholder-style="color: #999999;font-size: 28rpx;" placeholder="请输入姓名" /></view>
+					</view>
+				</view>
+				<view class="scjhrw"></view>
+
+				<view class="flztoa hdtcuur">
+					<view class="fzctob">
+						<view class="hdtcuutxt"><text>课程时间</text></view>
+						<view class="hdtcuutxta"  @click="showa = true"><text>请选择课程时间</text></view>
+					</view>
+					<image  @click="showa = true" src="/static/user/hdr1.png" style="width: 48rpx;min-width: 48rpx;height: 48rpx;" mode="">
+					</image>
+				</view>
+				<view class="scjhrw"></view>
+
+				<view class="flztoa hdtcuur">
+					<view class="fzctob">
+						<view class="hdtcuutxt"><text>课程分类</text></view>
+						<view class="hdtcuutxta"><text>请选择课程分类</text></view>
+					</view>
+					<image src="/static/user/hdr1.png" style="width: 48rpx;min-width: 48rpx;height: 48rpx;" mode="">
+					</image>
+				</view>
+				<view class="scjhrw"></view>
+
+				<view class="flztoa hdtcuur">
+					<view class="fzctob">
+						<view class="hdtcuutxt"><text>金额</text></view>
+						<view class="hdtcuutxta"><input type="text" value=""
+								placeholder-style="color: #999999;font-size: 28rpx;" placeholder="请输入金额" /></view>
+					</view>
+
+				</view>
+				<view class="scjhrw"></view>
+
+				<view class="sczbfmty">
+					<text>直播封面</text>
+				</view>
+				<view class="fzddrew cpsahngc">
+					<u-upload :action="action" :file-list="fileList" :max-count="1" width="642" height="392"
+						upload-text="上传直播封面">
+					</u-upload>
+				</view>
+
+			</view>
+
+			<view v-show="Inv == 1">
+				<view class="flztoa hdtcuur">
+					<view class="fzctob">
+						<view class="hdtcuutxt"><text>课程名称</text></view>
+						<view class="hdtcuutxta">
+                            <input type="text" v-model.trim="title" placeholder-style="color: #999999;font-size: 28rpx;" placeholder="请输入课程名称" />
+                        </view>
+					</view>
+				</view>
+				<view class="scjhrw"></view>
+
+				<view class="flztoa hdtcuur" @click="show = true">
+					<view class="fzctob">
+						<view class="hdtcuutxt"><text>课程分类</text></view>
+						<view class="hdtcuutxta"><text>{{classStr || '请选择课程分类'}}</text></view>
+					</view>
+					<image src="/static/user/hdr1.png" style="width: 48rpx;min-width: 48rpx;height: 48rpx;" mode=""></image>
+				</view>
+				<view class="scjhrw"></view>
+
+				<view class="flztoa hdtcuur">
+					<view class="fzctob">
+						<view class="hdtcuutxt"><text>金额</text></view>
+						<view class="hdtcuutxta"><input type="digit" v-model.trim="price" placeholder-style="color: #999999;font-size: 28rpx;" placeholder="请输入金额" /></view>
+					</view>
+
+				</view>
+				<view class="scjhrw"></view>
+				<view class="flztoa">
+					<view class="fsxto">
+						<view class="sczbfmty">
+							<text>课程封面</text>
+						</view>
+						<view class="fzddrew cpsahngc">
+							<!-- <u-upload :action="action" :file-list="fileList" :max-count="1" width="294rpx"
+								height="198rpx" upload-text="上传课程封面" name="upfile" @on-success="upSuccess">
+							</u-upload> -->
+                            <view v-if="!img" class="choose-outer" @click="choodeImage">
+                                <text class="up-label">+</text>
+                                <text class="up-title">上传课程封面</text>
+                            </view>
+                            <image v-if="img"  @click="choodeImage" :src="img" mode="aspectFill" style="width: 294rpx; height: 198rpx; border-radius: 15rpx;"></image>   
+						</view>
+					</view>
+					<view class="fsxto">
+						<view class="sczbfmty">
+							<text>上传视频</text>
+						</view>
+						<view class="fzddrew cpsahngc">
+                                <!-- <u-upload :action="action"  @click.stop="" :file-list="fileList" :max-count="1" width="294rpx"
+                                	height="198rpx" upload-text="上传课程视频">
+                                </u-upload> -->
+                                <view v-if="!one_video_url" class="choose-outer" @click="chooseVideo">
+                                    <text class="up-label">+</text>
+                                    <text class="up-title">上传视频课程</text>
+                                </view> 
+                                <video v-if="one_video_url"  :src="one_video_url" style="width: 294rpx; height: 198rpx; border-radius: 15rpx;"></video>
+						</view>
+					</view>
+				</view>
+			</view>
+		</view>
+
+		<view v-show="Inv == 1">
+			<view class="hdtgyyqb" v-for="(item,index) in chapter" :key="index">
+				<view class="flztoa hdtcuur">
+					<view class="fzctob">
+						<view class="hdtcuutxt"><text>章节</text></view>
+						<view class="hdtcuutxta"><input type="text" v-model.trim="item.catalog_title" placeholder-style="color: #999999;font-size: 28rpx;" placeholder="请输入章节名称" /></view>
+					</view>
+				</view>
+				<view class="scjhrw"></view>
+
+				<view class="flztoa hdtcuur">
+					<view class="fzctob">
+						<view class="hdtcuutxt"><text>课程名称</text></view>
+						<view class="hdtcuutxta"><input type="text" v-model.trim="item.title"
+								placeholder-style="color: #999999;font-size: 28rpx;" placeholder="请输入课程名称" /></view>
+					</view>
+				</view>
+				<view class="scjhrw"></view>
+				<view class="fzctob">
+					<view class="fsxto">
+						<view class="sczbfmty">
+							<text>上传视频</text>
+						</view>
+						<view class="fzddrew cpsahngc">
+							<!-- <u-upload :action="action"  @click.stop="" :file-list="fileList" :max-count="1" width="294rpx"
+								height="198rpx" upload-text="上传课程视频">
+							</u-upload> -->
+							<view v-if="!item.video_url" class="choose-outer" @click="choosezjVideo(index)">
+							    <text class="up-label">+</text>
+							    <text class="up-title">上传视频课程</text>
+							</view> 
+							<video v-if="item.video_url"  :src="item.video_url" style="width: 294rpx; height: 198rpx; border-radius: 15rpx;"></video>
+						</view>
+					</view>
+                    
+
+				</view>
+
+			</view>
+		</view>
+
+		<view v-show="Inv == 1">
+			<view class="hdtgyyqb" @click="addzj">
+				<view class="fzddrew" style="padding: 30rpx 0;">
+					<u-icon name="plus" size="36"></u-icon>
+					<text style="margin-top: 20rpx;">添加章节</text>
+				</view>
+			</view>
+		</view>
+
+
+		<view class="fzddrew scjjhrt">
+			<view class="fzddrew fkdibr" @click="subCourse">
+				<text>上传课程</text>
+			</view>
+		</view>
+        
+        
+        
+
+
+
+		<u-popup v-model="show" mode="bottom" :closeable="false" :border-radius="20" :safe-area-inset-bottom="true">
+			<view class="" style="padding: 50rpx;30rpx">
+				<view class="flztoa" style="margin-bottom: 40rpx;">
+					<text  @click="show = false;" style="color: #999999;">取消</text>
+					<text style="font-size: 36rpx;font-weight: bold;">选择标签</text>
+					<text  @click="ensureLabel">确定</text>
+				</view>
+				
+				<!-- <view class="tanckku">
+						<uni-data-checkbox :multiple="true" mode="tag" v-model="radioa" :localdata="sex"
+							selectedColor="#374B6E !important" style="margin-top: 24rpx;"></uni-data-checkbox>
+				</view> -->
+				<scroll-view scroll-y style="height: 500rpx;">
+					<view class="label-outer">
+						<view :class="index == curlabel?'label-act':'class-label'" @click="changeLabel(index)" v-for="(item,index) in labellist" :key="index">{{item.title}}</view>
+					</view>	
+				</scroll-view>
+				
+			</view>
+		</u-popup>
+		
+		<u-popup v-model="showa" mode="bottom" :closeable="false" :border-radius="20" :safe-area-inset-bottom="true">
+			<view class="">
+				<view class="flztoa" style="padding: 50rpx 30rpx;" >
+					<text  @click="showa = false;" style="color: #999999;">取消</text>
+					<text style="font-size: 36rpx;font-weight: bold;">选择时间</text>
+					<text  @click="showa = false;">确定</text>
+				</view>
+				<view class="" style="background: #E4E4E4;width: 100%;height: 1rpx;"></view>
+				<view class="flztoa yebbfrt">
+					<view class="yeuddw" style="color: #FF0000;"><text>1月</text></view>
+					<view class="yeuddw"><text>2月</text></view>
+					<view class="yeuddw"><text>3月</text></view>
+					<view class="yeuddw"><text>4月</text></view>
+				</view>
+				
+				<view class="fzctob">
+					<view class="fsxto rixdbyy">
+						<view class="rixdrt"><text>18日</text></view>
+						<view class="rixdrt"><text>19日</text></view>
+						<view class="rixdrt" style="color: #FF0000;"><text>今天20日</text></view>
+						<view class="rixdrt"><text>明天21日</text></view>
+						<view class="rixdrt"><text>22日</text></view>
+						<view class="rixdrt"><text>23日</text></view>
+						<view class="rixdrt"><text>24日</text></view>
+					</view>
+					
+					<view class="fsxto sjbbaq">
+						<view class="flztoa rixdrt" style="color: #FF0000;">
+							<text>18日</text>
+							<image src="/static/lecturer/yyddw01.png" style="width: 32rpx;height: 32rpx;" mode=""></image>
+							</view>
+						<view class="rixdrt"><text>19日</text></view>
+						<view class="rixdrt"><text>今天20日</text></view>
+						<view class="rixdrt"><text>明天21日</text></view>
+						<view class="rixdrt"><text>22日</text></view>
+						<view class="rixdrt"><text>23日</text></view>
+						<view class="rixdrt"><text>24日</text></view>
+					</view>
+				</view>
+				 
+				
+			</view>
+		</u-popup>
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA ;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				Inv: 1,
+				show: false,
+				showa: false,
+				timestamp: 86400,
+				sex: [{
+					text: '心里咨询',
+					value: '1',
+				}, {
+					text: '心里咨询',
+					value: '2',
+				}, {
+					text: '心里咨询',
+					value: '3',
+				}, {
+					text: '心里咨询',
+					value: '4',
+				}],
+				labellist:[],
+                curlabel:'-1',  // 当前选中分类标签的index
+				classStr:'',   // 分类str
+				action:'https://xlzx.vvv5g.com/app/index.php?i=2&c=entry&a=wxapp&m=yzd_edu&do=UploadImg',   // 图片上传地址
+                title:'' , // 录播视频标题
+                price:'',  // 录播视频价格
+                img:'',   // 录播课程图片
+                one_video_url:'',   // 最上面的录播视频
+                one_video_time:'',  // 最上面的录播视频时长
+                one_video_title:'',     // 最上面视频的名称
+                chapter:[
+                    {
+                        "catalog_title":"",
+                        "title":"",
+                        "video_url":"",
+                        "video_title":"",
+                        "video_time":""
+                    }
+                ]
+			}
+		},
+		onLoad() {
+            // console.log(this.formatSeconds(61.253))
+			this.getClassType()
+		},
+		methods: {
+            // 选择图片上传
+            choodeImage(){
+               uni.chooseImage({
+                   count:1,
+                   sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
+                    sourceType: ['album'], //从相册选择
+                    success: (res)=> {
+                        // this.img = res.tempFilePaths[0]
+                        uni.showLoading({title:'上传中...'})
+                        uni.uploadFile({
+                        	url: 'https://xlzx.vvv5g.com/app/index.php?i=2&c=entry&a=wxapp&m=yzd_edu&do=UploadImg', //仅为示例,非真实的接口地址
+                        	filePath: res.tempFilePaths[0],
+                        	name: 'upfile',
+                        	success: (uploadFileRes) => {
+                                uni.hideLoading()
+                        		console.log(uploadFileRes, '111111111111111')
+                                this.img = uploadFileRes.data
+                        	}
+                        });
+                    }
+               })
+            },
+            // 选择章节视频
+            choosezjVideo(index){
+                uni.chooseVideo({
+                	sourceType: ['camera', 'album'],
+                	success: res=> {
+                		console.log(res)
+                        this.chapter[index].video_time = this.formatSeconds(res.duration)
+                        // this.chapter[index].video_url = res.tempFilePath
+                        // this.chapter[index].video_title = res.tempFilePath.substring(res.tempFilePath.lastIndexOf("/")+1)
+                        // return
+                        uni.showLoading({title:'上传中...'})
+                		uni.uploadFile({
+                			url: 'https://xlzx.vvv5g.com/app/index.php?i=2&c=entry&a=wxapp&m=yzd_edu&do=UploadFile', //仅为示例,非真实的接口地址
+                			filePath: res.tempFilePath,
+                			name: 'upfile',
+                			success: (uploadFileRes) => {
+                                uni.hideLoading()
+                				console.log(uploadFileRes, '111111111111111')
+                                this.chapter[index].video_url = uploadFileRes.data
+                                this.chapter[index].video_title = uploadFileRes.data.substring(uploadFileRes.data.lastIndexOf("/")+1)
+                                console.log(this.chapter)
+                			}
+                		});
+                	}
+                });
+            },
+			changeTab(Inv) {
+				that.navIdx = Inv;
+
+			},
+            // 更改选择的分类标签
+			changeLabel(index){
+				this.curlabel = index
+                this.classStr = this.labellist[this.curlabel].title
+			},
+            // 确定
+			ensureLabel(){
+				this.show = false
+				// let choosedArr = this.labellist.filter(item=>item.toggle)
+				// let classArr = []
+				// choosedArr.map(item=>{
+				// 	classArr.push(item.title)
+				// })
+			},
+			upSuccess(e){
+				console.log(e,'+++++++++')
+			},
+			// 获取课程分类
+			getClassType(){
+				this.$post({
+					data:{
+						do:'CourseType',
+						data:{
+							user_id:uni.getStorageSync('id'),
+							type_id:0,
+							pw:375
+						}
+					}
+				}).then(res=>{
+					console.log(res,'课程分类')
+					this.labellist = res.data
+					
+				})
+			},
+			// 选择视频
+			chooseVideo(){
+				uni.chooseVideo({
+					sourceType: ['camera', 'album'],
+					success: res=> {
+						console.log(res)
+                        this.one_video_time = this.formatSeconds(res.duration)
+                        uni.showLoading({title:'上传中...'})
+						uni.uploadFile({
+							url: 'https://xlzx.vvv5g.com/app/index.php?i=2&c=entry&a=wxapp&m=yzd_edu&do=UploadFile', //仅为示例,非真实的接口地址
+							filePath: res.tempFilePath,
+							name: 'upfile',
+							success: (uploadFileRes) => {
+                                uni.hideLoading()
+								console.log(uploadFileRes, '111111111111111')
+                                this.one_video_url = uploadFileRes.data
+                                this.one_video_title = uploadFileRes.data.substring(uploadFileRes.data.lastIndexOf("/")+1)
+							}
+						});
+					}
+				});
+			},
+            // 添加章节
+            addzj(){
+                this.chapter.push({
+                    "catalog_title":"",
+                    "title":"",
+                    "video_url":"",
+                    "video_title":"",
+                    "video_time":""
+                })
+            },
+            // 提交课程
+            subCourse(){
+                if(this.Inv==1){
+                    if(!this.title){
+                        uni.showToast({
+                            title:'请输入课题名称',
+                            icon:'none'
+                        })
+                        return
+                    }
+                    if(this.curlabel<0){
+                        uni.showToast({
+                            title:'请选择课程分类',
+                            icon:'none'
+                        })
+                        return
+                    }
+                    if(this.price!=0 && this.price==''){
+                        uni.showToast({
+                            title:'请输入课程价格',
+                            icon:'none'
+                        })
+                        return
+                    }
+                    if(!this.img){
+                        uni.showToast({
+                            title:'请上传课程封面',
+                            icon:'none'
+                        })
+                        return
+                    }
+                    if(!this.one_video_url){
+                        uni.showToast({
+                            title:'请上传课程视频',
+                            icon:'none'
+                        })
+                        return
+                    }
+                    let flag = this.chapter.every(item=>item.catalog_title!=''&&item.title!=''&&item.video_url!='')
+                    if(!flag){
+                        uni.showToast({
+                            title:'请完善章节信息',
+                            icon:'none'
+                        })
+                        return
+                    }
+                    this.$post({
+                        data:{
+                            do:'CourseOption',
+                            data:{
+                                "group_state":0,
+                                "group_img":"",
+                                "lecturer_id":uni.getStorageSync('id'),
+                                "update_state":1,
+                                "state":1,
+                                "type":1,
+                                "course_id":"",
+                                "term":1,
+                                "term_day":"",
+                                title:this.title,
+                                img:this.img,
+                                type_id:this.labellist[this.curlabel].id,
+                                price:this.price,
+                                user_id:uni.getStorageSync('id'),
+                                one_video:{
+                                    video_url:this.one_video_url,
+                                    video_title:this.one_video_title,
+                                    video_time:this.one_video_time
+                                },
+                                chapter:this.chapter
+                            }
+                        }
+                    }).then(res=>{
+                        console.log(res,'ssssssssssssssssssssss')
+                        uni.showToast({
+                            title:'添加成功',
+                            mask:true
+                        })
+                        setTimeout(()=>{
+                            uni.navigateBack()
+                        },1500)
+                    })
+                }
+                
+            },
+            
+            
+            // 秒数处理为时分秒
+            formatSeconds(value) {
+              //  秒
+              let second = parseInt(value)
+              //  分
+              let minute = 0
+              //  小时
+              let hour = 0
+              //  天
+              //  let day = 0
+              //  如果秒数大于60,将秒数转换成整数
+              if (second >= 60) {
+                //  获取分钟,除以60取整数,得到整数分钟
+                minute = parseInt(second / 60)
+                //  获取秒数,秒数取佘,得到整数秒数
+                second = parseInt(second % 60)
+                //  如果分钟大于60,将分钟转换成小时
+                if (minute > 60) {
+                  //  获取小时,获取分钟除以60,得到整数小时
+                  hour = parseInt(minute / 60)
+                  //  获取小时后取佘的分,获取分钟除以60取佘的分
+                  minute = parseInt(minute % 60)
+                  //  如果小时大于24,将小时转换成天
+                  //  if (hour > 23) {
+                  //    //  获取天数,获取小时除以24,得到整天数
+                  //    day = parseInt(hour / 24)
+                  //    //  获取天数后取余的小时,获取小时除以24取余的小时
+                  //    hour = parseInt(hour % 24)
+                  //  }
+                }
+              }
+                let h = parseInt(hour)>9?parseInt(hour):'0'+parseInt(hour)
+                let m = parseInt(minute)>9?parseInt(minute):'0'+parseInt(minute)
+                let s = parseInt(second)>9?parseInt(second):'0'+parseInt(second)
+                let result = '' + s;
+                  if (minute > 0) {
+                    result = '' + m + ':' + result
+                  }
+                  if (hour > 0) {
+                    result = '' + h + ':' + result
+                  }
+                  //  if (day > 0) {
+                  //    result = '' + parseInt(day) + '天' + result
+                  //  }
+              
+              
+              result = result.includes(':')?result:'00:'+result
+              console.log('result:', result)
+              return result
+            }
+		}
+
+
+	}
+</script>
+
+<style lang="scss" scoped>
+	.yebbfrt{
+		padding: 34rpx 60rpx;
+	}
+	.yeuddw{
+		font-size: 22rpx;
+		font-family: PingFang SC-常规体, PingFang SC;
+		font-weight: normal;
+		color: #000000;
+		line-height: 30rpx;
+	}
+	.rixdbyy {
+		width: 218rpx;
+		min-width: 218rpx;
+		background: #F6F6F6;
+		padding: 50rpx 30rpx;
+	}
+	.rixdrt{
+		height: 30rpx;
+		font-size: 22rpx;
+		font-family: PingFang SC-常规体, PingFang SC;
+		font-weight: normal;
+		color: #000000;
+		line-height: 30rpx;
+		margin-bottom: 76rpx;
+	}
+	.sjbbaq{
+		width: 100%;
+		padding: 50rpx 32rpx;
+	}
+	
+	.label-outer{
+		display: flex;
+		flex-wrap: wrap;
+		align-content: flex-start;
+	}
+	
+	.label-outer>view{
+		margin-right: 30rpx;
+		margin-bottom: 30rpx;
+	}
+
+	.label-outer>view:nth-of-type(3n+3){
+		margin-right: 0rpx;
+	}
+	.class-label{
+		width: 192rpx;
+		height: 72rpx;
+		background: #F4F4F4;
+		border-radius: 36rpx 36rpx 36rpx 36rpx;
+		opacity: 1;
+		display: flex;
+		justify-content: center;
+		align-items: center;
+		font-size: 28rpx;
+		color: #999999;
+		overflow: hidden;
+	}
+	.label-act{
+		width: 192rpx;
+		height: 72rpx;
+		background: #374B6E;
+		border-radius: 36rpx;
+		font-size: 28rpx;
+		color: #FFFFFF;
+		display: flex;
+		justify-content: center;
+		align-items: center;
+		font-size: 28rpx;
+		color: #ffffff;
+		overflow: hidden;
+	}
+    
+    
+    .choose-outer{
+        width: 290rpx; 
+        height: 198rpx; 
+        border: 2px dotted #CCCCCC; 
+        border-radius: 15rpx;
+        display: flex;
+        flex-direction: column;
+        justify-content: center;
+        align-items: center;
+    }
+    .up-label{
+        display: flex;
+        justify-content: center;
+        align-items: center;
+        font-size: 50rpx;
+        width: 60rpx;
+        height: 60rpx;
+        background: #E4E4E4;
+        color: #FFFFFF;
+        border-radius: 15rpx;
+    }
+    .up-title{  
+        font-size: 28rpx;
+        color: #999999;
+        margin-top: 20rpx;
+    }
+</style>

+ 78 - 0
xinlijiankang-uniapp-main/pages/lecturer/wdcp.vue

@@ -0,0 +1,78 @@
+<template>
+	<view>
+		<view class="" v-for="(item,index) in list" :key="index">
+			<view  class="fzctob sclixmy" @click="todetail(item.id,item.state,item.data)" >
+				<view class="sckjert" style="overflow: hidden;">
+					<image :src="item.imglist" style="width: 100%; height: 100%;" mode="aspectFill"></image>
+				</view>
+				<view class="fsxto" style="width: 100%;margin-left: 24rpx;">
+					<view class="cphrry"><text>{{item.title}}</text></view>
+					<view class="cptxtyra"><text>下单时间:{{item.create_time | date('yyyy-mm-dd  hh:MM')}}</text></view>
+					<view class="flztoa">
+						 <text class="cpkkry">数量: 1</text>
+						 <text class="cpkkrya">总价¥{{item.price}}</text>
+					</view>
+				</view>
+			</view>
+		</view> 
+	</view>
+</template>
+<script>
+	export default {
+		data() {
+			return {
+				background: {
+					backgroundColor: '#ffffff',
+				},
+				hhyanm: {
+					color: '#FFFFFF',
+				},
+                list:[]
+			}
+		},
+        onLoad() {
+            this.getList()
+        },
+        methods:{
+            getList(){
+                this.$post({
+                    data:{
+                        do:'MyExamination',
+                        data:{
+                            user_id:uni.getStorageSync('id')
+                        }
+                    }
+                }).then(res=>{
+										res.data.map(item=>{
+											item.data = JSON.parse(item.data)
+											item.result = JSON.parse(item.result)
+										})
+                    this.list = res.data
+										console.log(this.list)
+                })
+            },
+            todetail(id,state,list){
+							if(state==1){
+								uni.navigateTo({
+								    url:'/pages/user/cp-jg?id='+id+'&state='+state+'&list='+encodeURIComponent(JSON.stringify(list))
+								})
+							}else{
+								uni.navigateTo({
+								    url:'/pages/user/cp-fa?id='+id
+								})
+							}
+                
+            }
+        }
+
+
+	}
+</script>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<style lang="scss" scoped>
+ 
+</style>

+ 91 - 0
xinlijiankang-uniapp-main/pages/lecturer/wdgz.vue

@@ -0,0 +1,91 @@
+<template>
+	<view class="">
+		<view class="inbddwwer">
+			<view class="fzctob inbddwddre">
+				<image src="/static/index/ina1.png"
+					style="width: 40rpx;height: 40rpx;min-width: 40rpx;margin-right: 12rpx;"></image>
+				<input type="text" value="" placeholder-style="color: #CCCCCC;font-size: 28rpx;"
+					placeholder="搜索你感兴趣的内容" v-model="search" @confirm="searchList" />
+			</view>
+		</view>
+		<view style="margin-top: 30rpx;">
+			<view class="fzctob wdlbgt" v-for="(item1,index1) in list" :key="index1">
+				<image :src="item1.img"
+					style="width: 148rpx;height: 148rpx;min-width: 148rpx;border-radius:160rpx;" mode=""></image>
+				<view class="flztoa wdkkjruy">
+					<view class="fsxto">
+						<text class="wdtxtut">{{item1.title}}</text>
+						<view class="fzctob wdtxtuta">
+							<text v-for="(item2,index2) in item2.tag" :key="index1">{{item}}</text>
+						</view>
+						<view class="fzctob wdtxtutb">
+							<image src="/static/lecturer/lea2.png" style="width: 32rpx;height: 32rpx;min-width: 32rpx;"
+								mode=""></image>
+							<text>{{item1.city}}</text>
+						</view>
+					</view>
+					<view class="fzddrew">
+						<image src="/static/lecturer/lea1.png" style="width:56rpx;height: 56rpx;min-width: 56rpx;"
+							mode=""></image>
+						<view class="fzctob" style="height: 40rpx;margin-top: 20rpx;">
+							<text class="wdjga">¥</text>
+							<text class="wdjgb">{{item1.price}}</text>
+						</view>
+					</view>
+				</view>
+			</view>
+		</view>
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				page: 1,
+				num: 20,
+				list:[],
+				search:''
+
+			}
+		},
+		onLoad() {
+			this.getlist();
+
+		},
+		methods: {
+			//获取关注列表
+			getlist() {
+				let that = this;
+				let user_id = uni.getStorageSync('id');
+				this.$post({
+					data: {
+						do: 'LecturerFollowList',
+						data: {
+							page: that.page,
+							num: that.num,
+							user_id: user_id,
+							search:that.search
+						}
+					}
+				}).then(res => {
+					this.list = res.data
+				})
+			},
+			searchList(){
+				this.page = 1
+				this.list = []
+				this.getlist()
+			}
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+
+
+</style>

+ 144 - 0
xinlijiankang-uniapp-main/pages/lecturer/wdhd.vue

@@ -0,0 +1,144 @@
+<template>
+	<view class="">
+		 <view class="zxkjyr" style="padding: 0  42rpx;padding-top: 12rpx;">
+			 
+		 	<view :class="['zxkjyra',Inv==0?'zxkjyrff':'']" @click="Inv=0">
+		 		<text>进行中</text>
+		 		<view class="zxkjxh"></view>
+		 	</view>
+			
+			<view :class="['zxkjyra',Inv==1?'zxkjyrff':'']" @click="Inv=1">
+				<text>未开始</text>
+				<view class="zxkjxh"></view>
+			</view>
+			
+		 	<view :class="['zxkjyra',Inv==2?'zxkjyrff':'']" @click="Inv=2">
+		 		<text>已结束</text>
+		 		<view class="zxkjxh"></view>
+		 	</view>
+			
+		 </view>
+		 
+			<view style="margin-top: 30rpx;">
+				<view class="fsxto sclixmy" v-for="(item,index) in list" :key="index">
+					<view class="fzctob">
+						<view class="sckjert" style="overflow: hidden;">
+							<image style="width: 100%; height: 100%;" :src="item.good_data.img" mode="aspectFill"></image>
+						</view>
+						<view class="fsxto" style="width: 100%;margin-left: 24rpx;">
+							<view class="cphrry"><text>{{item.good_data.title}}</text></view>
+							<view class="cptxtyra"><text>课程讲师</text></view>
+							<view class="flztoa">
+								 <text class="cpkkry">数量: {{item.people.length}}</text>
+								 <text class="cpkkrya">总价¥{{item.reality_price}}</text>
+							</view>
+						</view>
+					</view>
+					<view style="border-top: 2rpx dashed #e8e8e8;width: 107%;margin-left: -24rpx;margin-top: 22rpx;"></view>
+					<view class="flztoa" style="margin-top: 26rpx;">
+						<view class="hdtyyr">
+							<text>下单时间:{{item.time1}}</text>
+						</view>
+						<view class="hdtyyra" v-show="Inv==0">
+							<text>进行中</text>
+						</view>
+                        <view class="fyctoc" v-show="Inv==1" @click="toRefund(item.id,item.reality_price)">
+                        	<view class="hdtyyra">
+                        		<text>去请假</text>
+                        	</view>
+                        	<view class="hdtyyra">
+                        		<text>去退出</text>
+                        	</view>
+                        </view>
+                        <view class="hdtyyra" v-show="Inv==2">
+                        	<text>已结束</text>
+                        </view>
+					</view>
+				</view>
+			</view>		 
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				Inv: 0,
+                page:1,
+                num:20,
+                type:2,
+                total:0,
+                list:[]
+			}
+		},
+        onLoad() {
+          this.getList()  
+        },
+        watch:{
+            Inv(val){
+                switch(val/1){
+                    case 0:
+                        this.type = 3
+                    break;
+                    case 1:
+                        this.type = 2
+                    break;
+                    case 2:
+                        this.type = 4
+                    break;
+                }
+                this.page = 1
+                this.getList()
+            }
+        },
+        onReachBottom() {
+          if(this.list.length<this.total){
+              this.page++
+              this.getList()
+          }  
+        },
+		methods: {
+            // 获取参加列表
+            getList(){
+                this.$post({
+                    data:{
+                        do:'MyGoodOrder',
+                        data:{
+                            page:this.page,
+                            num:this.num,
+                            type:this.type,   // 类型:2=未开始3=进行中4=结束
+                            // type:1,   // 类型:2=未开始3=进行中4=结束
+                            user_id:uni.getStorageSync('id'),
+                            pw:375,
+                        }
+                    }
+                }).then(res=>{
+                    this.total = res.data.total
+                    if(res.data.list.length){
+                        this.list = this.page==1?res.data.list:[...this.list,...res.data.list]
+                    }else{
+                        this.list = []
+                    }
+                }).catch(()=>{
+                    this.list = []
+                })
+            },
+            // 退出 退款
+            toRefund(order_id,price){
+                // 订单id  僵尸id  金额
+                uni.navigateTo({
+                    url:'/pages/user/wdhd-tc?order_id=' + order_id +'&price=' + price
+                })
+            }
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+ 
+	 
+</style>

+ 137 - 0
xinlijiankang-uniapp-main/pages/lecturer/wdkc-luxj.vue

@@ -0,0 +1,137 @@
+<template>
+	<view class="ayuu">
+		<view class="hdtgyyqb">
+			 
+				<view class="flztoa hdtcuur">
+					<view class="fzctob">
+						<view class="hdtcuutxt"><text>课程名称</text></view>
+						<view class="hdtcuutxta"><input type="text" value="" placeholder-style="color: #999999;font-size: 28rpx;"
+						placeholder="请输入姓名" /></view>
+					</view>
+				</view>
+				<view class="scjhrw"></view>
+				
+				<view class="flztoa hdtcuur">
+					<view class="fzctob">
+						<view class="hdtcuutxt"><text>课程分类</text></view>
+						<view class="hdtcuutxta"><text>请选择课程分类</text></view>
+					</view>
+					<image src="/static/user/hdr1.png" style="width: 48rpx;min-width: 48rpx;height: 48rpx;" mode="">
+					</image>
+				</view>
+				<view class="scjhrw"></view>
+				
+				<view class="flztoa hdtcuur">
+					<view class="fzctob">
+						<view class="hdtcuutxt"><text>金额</text></view>
+						<view class="hdtcuutxta"><input type="text" value="" placeholder-style="color: #999999;font-size: 28rpx;"
+					placeholder="请输入金额" /></view>
+					</view>
+					 
+				</view>
+				<view class="scjhrw"></view>
+				<view class="flztoa">
+					<view class="fsxto">
+						<view class="sczbfmty">
+							<text>课程封面</text>
+						</view>
+						<view class="fzddrew cpsahngc">
+							 
+							<view class="" style="width: 294rpx;height: 198rpx;background: #D8D8D8;border-radius: 16rpx 16rpx 16rpx 16rpx;">
+								
+							</view>
+						</view>
+					</view>
+					<view class="fsxto">
+						<view class="sczbfmty"> 
+							<text>上传视频</text>
+						</view> 
+						<view class="fzddrew cpsahngc">
+							<view class="" style="width: 294rpx;height: 198rpx;background: #D8D8D8;border-radius: 16rpx 16rpx 16rpx 16rpx;">
+								
+							</view>
+						</view>   
+					</view>
+				</view>
+		</view>
+		
+		<view class="hdtgyyqb">
+			<view class="flztoa hdtcuur">
+				<view class="fzctob">
+					<view class="hdtcuutxt"><text>章节</text></view>
+					<view class="hdtcuutxta"><text>第一章</text></view>
+				</view>
+			</view>
+			<view class="scjhrw"></view>
+			
+			<view class="flztoa hdtcuur">
+				<view class="fzctob">
+					<view class="hdtcuutxt"><text>课程名称</text></view>
+					<view class="hdtcuutxta"><text>请输入课程名称</text> </view>
+				</view>
+			</view>
+			<view class="scjhrw"></view>
+			<view class="fzctob">
+				<view class="fsxto">
+					<view class="sczbfmty">
+						<text>上传视频</text>
+					</view>
+					<view class="fzddrew cpsahngc">
+						<view class="" style="width: 294rpx;height: 198rpx;background: #D8D8D8;border-radius: 16rpx 16rpx 16rpx 16rpx;">
+							
+						</view>
+					</view>
+				</view>
+		 
+			</view>
+		
+		</view>
+		
+		<view class="hdtgyyqb">
+			<view class="fzddrew" style="padding: 30rpx 0;">
+				<u-icon name="plus" size="36"></u-icon>
+				<text style="margin-top: 20rpx;">添加章节</text>
+			</view>
+		
+		</view>
+		
+		
+		
+ 
+		<view class="fzddrew scjjhrt">
+			<navigator class="fzddrew wdkcxjr" url="../lecturer/my" hover-class="none">
+				<text>上传课程</text>
+			</navigator>
+		</view>
+		 
+
+
+
+
+
+
+
+
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+
+			}
+		},
+ 
+
+
+	}
+</script>
+
+<style lang="scss" scoped>
+	 
+</style>

+ 101 - 0
xinlijiankang-uniapp-main/pages/lecturer/wdkc-zhixj.vue

@@ -0,0 +1,101 @@
+<template>
+	<view class="ayuu">
+
+		<view class="hdtgyyqb">
+
+			<view class="flztoa hdtcuur">
+				<view class="fzctob">
+					<view class="hdtcuutxt"><text>课程名称</text></view>
+					<view class="hdtcuutxta"><text>焦虑课程焦虑课程焦虑课程焦虑</text></view>
+				</view>
+			</view>
+			<view class="scjhrw"></view>
+
+			<view class="flztoa hdtcuur">
+				<view class="fzctob">
+					<view class="hdtcuutxt"><text>课程时间</text></view>
+					<view class="hdtcuutxta"><text>2022.02.22 22:00~22:00</text></view>
+				</view>
+				<image src="/static/user/hdr1.png" style="width: 48rpx;min-width: 48rpx;height: 48rpx;" mode="">
+				</image>
+			</view>
+			<view class="scjhrw"></view>
+
+			<view class="flztoa hdtcuur">
+				<view class="fzctob">
+					<view class="hdtcuutxt"><text>课程分类</text></view>
+					<view class="hdtcuutxta">
+						<view class="fzctob kcwwerrt">
+							<text>心里咨询</text>
+							<text>心里咨询</text>
+							<text>心里咨询</text>
+						</view>
+					</view>
+				</view>
+				<image src="/static/user/hdr1.png" style="width: 48rpx;min-width: 48rpx;height: 48rpx;" mode="">
+				</image>
+			</view>
+			<view class="scjhrw"></view>
+
+			<view class="flztoa hdtcuur">
+				<view class="fzctob">
+					<view class="hdtcuutxt"><text>金额</text></view>
+					<view class="hdtcuutxta"><text>¥00.00</text></view>
+				</view>
+
+			</view>
+			<view class="scjhrw"></view>
+
+			<view class="sczbfmty">
+				<text>直播封面</text>
+			</view>
+			<view class="fzddrew cpsahngc">
+				<view class="" style="width:642rpx;height: 392rpx;background: #D8D8D8; border-radius: 16rpx 16rpx 16rpx 16rpx;">
+					
+				</view>
+				 
+			</view>
+
+
+
+
+		</view>
+
+
+		<view class="fzddrew scjjhrt">
+			<navigator class="fzddrew wdkcxjr" url="../lecturer/my" hover-class="none">
+				<text>下架课程</text>
+			</navigator>
+		</view>
+
+
+
+
+
+
+
+
+
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+
+			}
+		},
+
+
+
+	}
+</script>
+
+<style lang="scss" scoped>
+
+</style>

+ 190 - 0
xinlijiankang-uniapp-main/pages/lecturer/wdkc.vue

@@ -0,0 +1,190 @@
+<template>
+	<view class="">
+		 <view class="zxkjyr" style="padding: 0  42rpx;padding-top: 12rpx;">
+			 
+		 	<view :class="['zxkjyra',Inv==0?'zxkjyrff':'']" @click="Inv=0">
+		 		<text>直播课程</text>
+		 		<view class="zxkjxh"></view>
+		 	</view>
+			
+			<view :class="['zxkjyra',Inv==1?'zxkjyrff':'']" @click="Inv=1">
+				<text>录制课程</text>
+				<view class="zxkjxh"></view>
+			</view>
+			
+		 	<view :class="['zxkjyra',Inv==2?'zxkjyrff':'']" @click="Inv=2">
+		 		<text>下架课程</text>
+		 		<view class="zxkjxh"></view>
+		 	</view>
+			
+		 </view>
+		 
+		<view class=" ">
+			<view style="margin-top: 30rpx;">
+				<view class="fsxto sclixmy" v-for="(item,index) in list" :key="index">
+					<view class="fzctob">
+						<view class="sckjert" style="overflow: hidden;">
+							<image :src="item.img" mode="aspectFill" style="width: 100%; height: 100%;"></image>
+						</view>
+						<view class="fsxto" style="width: 100%;margin-left: 24rpx;">
+							<view class="cphrry"><text>{{item.title}}</text></view>
+                            <!--  -->
+							<view class="cptxtyra" style="margin-bottom: 10rpx;"><text>{{item.type_title}}</text></view>
+							<view class="fzctob kcwwerrt">
+								<text>{{lecturer_name}}</text>
+							</view>
+						</view>
+					</view>
+					<view style="border-top: 2rpx dashed #e8e8e8;width: 107%;margin-left: -24rpx;margin-top: 22rpx;"></view>
+					<view class="flztoa" style="margin-top: 26rpx;">
+						<view class="fzctob">
+							<text class="wdjga">¥</text>
+							<text class="wdjgb">{{item.price}}</text>
+							<!-- <text class="wdjgc">.00</text> -->
+							<!-- <text class="scjga">原价¥{{item.line_price}}</text> -->
+						</view>
+						<!-- <navigator class="kcdrry" url="../lecturer/wdkc-zhixj" hover-class="none">
+							<image src="/static/lecturer/wdkca1.png" style="width: 136rpx;min-width: 136rpx;height: 50rpx;" mode=""></image>
+						</navigator> -->
+						<!-- #ifdef APP-PLUS -->
+						<view class="toLive" @click="toLive(item)" v-if="Inv==0">
+							去直播
+						</view>
+						<!-- #endif -->
+							
+							            <view class="kcdrry" @click="unshelfCourse(item.id)">
+								<image v-if="Inv!=2" src="/static/lecturer/wdkca1.png" style="width: 136rpx;min-width: 136rpx;height: 50rpx;" mode=""></image>
+							                <image v-if="Inv==2" src="/static/lecturer/wdkca2.png" style="width: 136rpx;min-width: 136rpx;height: 50rpx;" mode=""></image>
+							</view>
+						
+					</view>
+				</view>
+				
+			</view>
+ 
+		</view>
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+ 
+				Inv: 0,
+                list:[],
+                course:[],
+                fail_live:[],
+                live:[],
+                lecturer_name:''
+			}
+		},
+        onLoad() {
+            this.getList()
+        },
+        watch:{
+            Inv(val){
+                if(val==0){
+                    this.list = this.live
+                } else if(val==1){
+                    this.list = this.course
+                } else if(val==2){
+                    this.list = this.fail_live
+                }
+            }
+        },
+		methods: {
+            // 课程列表
+            getList(){
+                this.$post({
+                    data:{
+                        do:'MyCourseList',
+                        data:{
+                            user_id:uni.getStorageSync('id')
+                        }
+                    }
+                }).then(res=>{
+                    console.log(res,'rrrrrrrrrrrrr')
+                    this.course = res.data.course
+                    this.fail_live = res.data.fail_live
+                    this.live = res.data.live
+                    this.lecturer_name = res.data.lecturer_name
+                    if(this.Inv==0){
+                        this.list = this.live
+                    } else if(this.Inv==1){
+                        this.list = this.course
+                    } else if(this.Inv==2){
+                        this.list = this.fail_live
+                    }
+                })
+            },
+						// 去直播
+						toLive(item){
+							uni.navigateTo({
+								url:'/pages/lecturer/Live?chapter_id='+item.chapter_id
+							})
+						},
+            // 上下架课程
+            unshelfCourse(id){
+               uni.showModal({
+                   title:'提示',
+                   content:this.Inv==2?'确定要上架该课程吗?':'确定要下架该课程吗?',
+                   success: (res) => {
+                       if(res.confirm){
+                           console.log({
+                                  do:'TakeDown',
+                                  data:{
+                                       user_id:uni.getStorageSync('id'),
+                                       id,
+                                       state:this.Inv==2?1:0
+                                  }
+                              })
+                          this.$post({
+                              data:{
+                                  do:'TakeDown',
+                                  data:{
+                                       user_id:uni.getStorageSync('id'),
+                                       id,
+                                       state:this.Inv==2?1:0
+                                  }
+                              }
+                          }).then(res=>{
+                              uni.showToast({
+                                  title:this.Inv==2?'上架成功':'下架成功',
+                                  icon:'none',
+                                  mask:true
+                              })
+                              setTimeout(()=>{
+                                  this.getList()
+                              },1500)
+                              console.log(res)
+                          }) 
+                       }
+                   }
+               })
+            }
+		
+		}
+
+
+	}
+</script>
+
+<style lang="scss" scoped>
+	  .toLive{
+			height: 45rpx;
+			display: flex;
+			justify-content: center;
+			align-items: center;
+			color: #405375;
+			padding: 10rpx 20rpx;
+			border: 1rpx solid #405375;
+			border-radius: 25rpx;
+		}
+	 
+	 
+</style>

+ 86 - 0
xinlijiankang-uniapp-main/pages/lecturer/wdsc.vue

@@ -0,0 +1,86 @@
+<template>
+	<view class="ayuu">
+		<view class="">
+			<view class="fzctob sclixmy" v-for="(item,index) in list" :key="index" @click="todetail(item.id)">
+				<view class="sckjert">
+					<image :src="item.img" mode="" style="width: 100%; height: 100%;border-radius: 10upx;"></image>
+				</view>
+				<view class="fsxto" style="width: 100%;margin-left: 24rpx;">
+					<view class="sctxtyuu"><text>{{item.title}}</text></view>
+					<view class="sctxtyuua"><text>{{item.l_title}}</text></view>
+					<view class="fzctob">
+						<text class="wdjga">¥</text>
+						<text class="wdjgb">{{item.price}}</text>
+						<text class="scjga">原价¥{{item.line_price}}</text>
+					</view>
+				</view>
+			</view>
+		</view>
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				page: 1,
+				num: 20,
+				total: 0,
+				list: [],
+				user_id: ''
+
+			}
+		},
+		onReachBottom() {
+			if (this.list.length < this.total) {
+				this.page = this.page + 1
+				this.getlist();
+			} else {
+				uni.showToast({
+					title: '没有更多数据了',
+					icon: 'none'
+				})
+			}
+		},
+		onLoad() {
+			this.user_id = uni.getStorageSync('id')
+			this.getlist();
+
+		},
+		methods: {
+			getlist() {
+				let that = this;
+				this.$post({
+					data: {
+						do: 'MyCollection',
+						data: {
+							type: '2',
+							page: that.page,
+							num: that.num,
+							user_id: that.user_id,
+							pw: '375'
+						}
+					}
+				}).then(res => {
+					that.list = [...that.list, ...res.data.data]
+					that.total = Number(res.data.total)
+				})
+			},
+			todetail(id){
+				uni.navigateTo({
+					url:'/pages/index/kcxq-x?id='+id
+				})
+			}
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+
+
+
+</style>

+ 112 - 0
xinlijiankang-uniapp-main/pages/lecturer/wdxuexi.vue

@@ -0,0 +1,112 @@
+<template>
+	<view class="ayuu">
+ 
+		<view class="xuehhbfr">
+			<view class="indhuyr">
+				<view class="indjbrr"></view>
+				<text>今天</text>
+			</view>
+			<view>
+				<view v-if="today.length==0" style="text-align: center; width: 100%;">暂无数据</view>
+				<view v-for="(item,index) in today" :key="index" class="fzctob xiekkt">
+					<view class="sckjert" style="overflow: hidden;">
+						<image :src="item.img" mode="aspectFill" style="width: 100%; height: 100%;"></image>
+					</view>
+					<view class="fsxto" style="width: 100%;margin-left: 24rpx;">
+						<view class="cphrry"><text>{{item.title}}</text></view>
+						<view class="cptxtyra" style="margin-top: 4rpx;margin-bottom: 0;"><text>观看至{{item.catalog_title}}</text></view>
+					</view>
+				</view>
+				
+			</view>
+		</view>
+		
+		<view class="xuehhbfr">
+			<view class="indhuyr">
+				<view class="indjbrr"></view>
+				<text>昨天</text>
+			</view>
+			<view>
+				<view v-if="yesterday.length==0" style="text-align: center; width: 100%;">暂无数据</view>
+				<view v-for="(item,index) in yesterday" :key="index" class="fzctob xiekkt">
+					<view class="sckjert" style="overflow: hidden;">
+						<image :src="item.img" mode="aspectFill" style="width: 100%; height: 100%;"></image>
+					</view>
+					<view class="fsxto" style="width: 100%;margin-left: 24rpx;">
+						<view class="cphrry"><text>{{item.title}}</text></view>
+						<view class="cptxtyra" style="margin-top: 4rpx;margin-bottom: 0;"><text>观看至{{item.catalog_title}}</text></view>
+					</view>
+				</view>
+				
+			</view>
+		</view>
+		
+		<view class="xuehhbfr">
+			<view class="indhuyr">
+				<view class="indjbrr"></view>
+				<text>更早</text>
+			</view>
+			<view>
+				<view v-if="earlier.length==0" style="text-align: center; width: 100%;">暂无数据</view>
+				<view v-for="(item,index) in earlier" :key="index" class="fzctob xiekkt">
+					<view class="sckjert" style="overflow: hidden;">
+						<image :src="item.img" mode="aspectFill" style="width: 100%; height: 100%;"></image>
+					</view>
+					<view class="fsxto" style="width: 100%;margin-left: 24rpx;">
+						<view class="cphrry"><text>{{item.title}}</text></view>
+						<view class="cptxtyra" style="margin-top: 4rpx;margin-bottom: 0;"><text>观看至{{item.catalog_title}}</text></view>
+					</view>
+				</view>
+			</view>
+		</view>
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+                page:1,
+                num:20,
+                total:0,
+                today:[],
+                yesterday:[],
+                earlier:[],
+			}
+		},
+        onLoad() {
+          this.getlist()  
+        },
+        methods:{
+            getlist(){
+                this.$post({
+                    data:{
+                        do:'MyCourse',
+                        data:{
+                            user_id:uni.getStorageSync('id'),
+                        }
+                    }
+                }).then(res=>{
+                    console.log(res)
+                    this.today = res.data.today
+                    this.yesterday = res.data.yesterday
+                    this.earlier = res.data.earlier
+                })
+            }
+        }
+
+
+	}
+</script>
+
+<style lang="scss" scoped>
+	 
+ 
+ 
+	 
+	 
+</style>

+ 149 - 0
xinlijiankang-uniapp-main/pages/lecturer/wdzx.vue

@@ -0,0 +1,149 @@
+<template>
+	<view class="">
+		<view class="zxkjyr">
+			<view :class="['zxkjyra',Inv==0?'zxkjyrff':'']" @click="changeInv(0)">
+				<text>咨询中</text>
+				<view class="zxkjxh"></view>
+			</view>
+			<view :class="['zxkjyra',Inv==1?'zxkjyrff':'']" @click="changeInv(1)">
+				<text>已结束</text>
+				<view class="zxkjxh"></view>
+			</view>
+		</view>
+			<view style="margin-top: 30rpx;">
+				<view class="nodata_box" v-if="list.length==0">
+					<image src="/static/user/no_data_img.png" mode="" style="width: 220rpx; height: 302rpx;"></image>
+					<text>暂无数据</text>
+				</view>
+				<navigator class="fzctob wdlbgt" :url="'../index/zxshi?id=' + item1.course_data.lecturer_id + '&type=0'" hover-class="none" v-for="(item1,index1) in list" :key="index1">
+					<image :src="item1.course_data.img"
+						style="width: 148rpx;height: 148rpx;min-width: 148rpx;border-radius:160rpx;" mode=""></image>
+					<view class="flztoa wdkkjruy">
+						<view class="fsxto">
+							<text class="wdtxtut">{{item1.course_data.title}}</text>
+							<view class="wdtxtut"> 电话:{{item1.lecturer_data.phone}}</view>
+							<view class="fzctob wdtxtuta">
+								<text v-for="(item2,index2) in item1.lecturer_data.tag" :key="index2">{{item2}}</text>
+							</view>
+							<view class="fzctob wdtxtutb" @click.stop="lookaddress(item1.lecturer_data.lotx,item1.lecturer_data.loty,item1.lecturer_data.address)">
+								<image src="/static/lecturer/lea2.png"
+									style="width: 32rpx;height: 32rpx;min-width: 32rpx;" mode=""></image>
+								<text>{{item1.course_data.city}}</text>
+							</view>
+						</view>
+						<view class="fzddrew">
+							<view class="fzctob" style="height: 40rpx;margin-top: 76rpx;">
+								<text class="wdjga">¥</text>
+								<text class="wdjgb">{{item1.reality_price}}</text>
+							</view>
+						</view>
+					</view>
+				</navigator>
+			</view>
+		<view style="height: 120rpx;"></view>
+		<view class="dibuboot">
+			<navigator class="dibubootlb" url="../index/index" open-type="redirect" hover-class="none">
+				<image src="/static/dibu/boa1.png" style="width: 48rpx;height: 48rpx;"></image>
+				<text>首页</text>
+			</navigator>
+<!-- 			<navigator class="dibubootlb" url="../lecturer/wdzx" open-type="redirect" hover-class="none">
+				<image src="/static/dibu/bob2.png" style="width: 48rpx;height: 48rpx;"></image>
+				<text style="color: #374B6E">咨询</text>
+			</navigator>
+			<navigator class="dibubootlb" url="../index/jiehuo" open-type="redirect" hover-class="none">
+				<image src="/static/dibu/boa3.png" style="width: 48rpx;height: 48rpx;"></image>
+				<text>解惑</text>
+			</navigator> -->
+			<navigator class="dibubootlb" url="../lecturer/my" open-type="redirect" hover-class="none">
+				<image src="/static/dibu/boa4.png" style="width: 48rpx;height: 48rpx;"></image>
+				<text>我的</text>
+			</navigator>
+		</view>
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				Inv: 0,
+				page: 1,
+				num: 20,
+				list: [],
+				total: 0,
+				user_id: '',
+
+			}
+		},
+		onLoad() {
+			this.user_id = uni.getStorageSync('id');
+			this.getlist();
+		},
+		onReachBottom() {
+			if (this.list.length < this.total) {
+				this.page = this.page + 1
+				this.getlist();
+			} else {
+				uni.showToast({
+					title: '没有更多数据了',
+					icon: 'none'
+				})
+			}
+		},
+		methods: {
+			changeInv(indexs) {
+				let that = this;
+				that.Inv = indexs;
+				that.list = [];
+				that.page = 1;
+				that.getlist();
+			},
+			getlist() {
+				let that = this;
+				this.$post({
+					data: {
+						do: 'MyCourseOrder',
+						data: {
+							page: that.page,
+							num: that.num,
+							good_type: '2',
+							user_id: that.user_id,
+							type: that.Inv == 0 ? '2' : '3'
+						}
+					}
+				}).then(res => {
+					that.list = [...that.list,...res.data.list]
+					that.total = res.data.total
+				})
+			},
+			lookaddress(latitude,longitude,name){
+				// latitude: 39.947309,   	// 纬度示例
+				// longitude: 116.390965,		// 经度示例
+					uni.openLocation({
+						latitude:latitude/1,   	// 纬度
+						longitude:longitude/1,		// 经度
+						name,
+						success: res=> {
+							console.log(res,'success');
+						}
+					});
+			}
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	.nodata_box{
+			display: flex;
+			flex-direction: column;
+			justify-content: center;
+			align-items: center;
+			margin: 0 auto;
+			margin-top: 250rpx;
+		}
+
+</style>

+ 337 - 0
xinlijiankang-uniapp-main/pages/login/appLogin.vue

@@ -0,0 +1,337 @@
+<template>
+	<view class="page">
+		<view class="title">
+			登录
+		</view>
+		<view class="tab">
+			<view :class="[tab === 0 ?'active' :'', 'item']" @click="tab = 0">
+				密码登录
+			</view>
+			<view :class="[tab === 1 ?'active' :'', 'item']" @click="tab = 1">
+				验证码登录
+			</view>
+		</view>
+
+		<view class="input-box">
+			<input type="number" maxlength="11" class="input" v-model="phone" placeholder="请输入手机号码">
+		</view>
+		<view class="input-box" v-if='tab === 0'>
+			<input type="password" v-model="password" class="input" placeholder="请输入登录密码">
+		</view>
+		<view class="input-box" v-if='tab === 1'>
+			<input type="text" v-model="code" style="width: 400rpx;" class="input" placeholder="请输入验证码">
+			<view class="vcode" @click="getVcode" v-if="countdown <= 0">
+				获取验证码
+			</view>
+			<view class="vcode" v-else>
+				{{countdown}}
+			</view>
+		</view>
+
+		<view class="submit" @click="login">
+			登录
+		</view>
+
+		<view class="b-btn">
+			<navigator url="./updatePwd">
+				<view class="l">
+					忘记密码?
+				</view>
+			</navigator>
+			<navigator url="./sigUp">
+				<view class="r">
+					快速注册
+				</view>
+			</navigator>
+		</view>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				tab: 0,
+				password: '',
+				phone: '',
+				code: '',
+				key: '',
+				countdown:0
+			}
+		},
+		methods: {
+			login() {
+				let tip = ''
+				if (!this.phone) {
+					tip = '请输入手机号码'
+				} else if (!this.password && this.tab === 0) {
+					tip = '请输入登录密码'
+				} else if (!this.code && this.tab === 1) {
+					tip = '请输入验证码'
+				}
+				if (tip) {
+					uni.showToast({
+						title: tip,
+						icon: "none"
+					})
+					return
+				}
+				this.$post({
+					data:{
+						do:'AppLogin',
+						data:{
+							phone:this.phone,
+							password:this.tab == 0?this.password:'',
+							code:this.tab == 0?'':this.code
+						}
+					}
+				}).then(res=>{
+					console.log(res,'++++++++')
+					for(let i in res.data){
+						uni.setStorageSync(i,res.data[i])
+					}
+					uni.showToast({
+						title:res.message,
+						mask:true
+					})
+					
+					this.$post({
+						data: {
+							do: 'Vip',
+							data: {
+								user_id: user_id,
+								pw: '375'
+							}
+						}
+					}).then(res => {
+						
+						if (res.data.is_vip == 1) {
+							uni.setStorageSync('is_vip', 1);
+						}
+					})
+					
+					setTimeout(()=>{
+						uni.reLaunch({
+							url:'/pages/index/index'
+						})
+					},1500)
+				})
+				return
+				
+				let t = this
+
+				if (this.tab === 0) {
+					t.$req({
+						url: "authorizations",
+						method: "POST",
+						data: {
+							username: this.phone,
+							password: this.pwd
+						}
+					}).then(res => {
+						console.log(res);
+						if (!!res.code) {
+							if (res.code === 40001) {
+								uni.navigateTo({
+									url: '../../pages/login/login'
+								})
+							} else if (res.code === 40002) {
+								uni.showToast({
+									title: res.message,
+									icon: "none",
+									duration: 5000
+								})
+							}
+						} else {
+
+							console.log(res.access_token);
+							uni.setStorageSync("token", res.access_token)
+							uni.switchTab({
+								url: '../../pages/index/index'
+							})
+						}
+					})
+				}else{
+					t.$req({
+						url: "authorizations/sms",
+						method: "POST",
+						data: {
+							username:this.phone,
+							verification_key:this.key,
+							verification_code:this.vcode,
+						}
+					}).then(res => {
+						console.log(res);
+						if (!!res.code) {
+							if (res.code === 40001) {
+								uni.navigateTo({
+									url: '../../pages/login/login'
+								})
+							} else if (res.code === 40002) {
+								uni.showToast({
+									title: res.message,
+									icon: "none",
+									duration: 5000
+								})
+							}
+						} else {
+							uni.setStorageSync("token", res.access_token)
+							uni.switchTab({
+								url: '../../pages/index/index',
+								fail(e) {
+									console.log(e)
+								}
+							})
+						}
+					})
+				}
+			},
+			getVcode() {
+				if (!this.phone) {
+					uni.showToast({
+						title: '请输入手机号',
+						icon: "none",
+					})
+					return
+				} 
+				this.$post({
+					data:{
+						do:'GetPhoneCode',
+						data:{
+							phone:this.phone
+						}
+					}
+				}).then(res=>{
+					console.log(res,'++++++++')
+					if(res.errno==2004){
+						uni.showToast({
+							title: '短信已发送',
+							icon: "none",
+							duration: 5000
+						})
+						this.key = res.key;
+						if (this.countdown <= 0) {
+							this.countdown = 60
+							let timer = setInterval(() => {
+								this.countdown--;
+								if (this.countdown < 1) {
+									clearInterval(timer);
+									this.countdown = 0
+								}
+							}, 1000)
+						}
+					}
+				})
+			}
+		}
+	}
+</script>
+
+<style lang="less" scoped>
+	.page {
+		padding: 0 32rpx;
+		width: 100vw;
+		box-sizing: border-box;
+	}
+
+	.vcode {
+		width: 180rpx;
+		height: 70rpx;
+		border-radius: 4rpx;
+		border: 2rpx solid #57BD37;
+		text-align: center;
+		line-height: 70rpx;
+		font-size: 32rpx;
+		color: #57BD37;
+		position: absolute;
+		right: 0;
+		bottom: 14rpx;
+	}
+
+	.title {
+		width: 104rpx;
+		height: 72rpx;
+		font-size: 52rpx;
+		font-family: PingFang SC-Bold, PingFang SC;
+		font-weight: bold;
+		color: #333333;
+		padding-top: 20vh;
+		margin-bottom: 104rpx;
+	}
+
+	.tab {
+		display: flex;
+		align-items: center;
+		margin-bottom: 114rpx;
+
+		.item {
+			height: 50rpx;
+			margin-right: 86rpx;
+			font-size: 36rpx;
+			font-family: PingFang SC-Medium, PingFang SC;
+			font-weight: 500;
+			color: #333333;
+
+			&.active {
+				color: #57BD37;
+				position: relative;
+
+				&:after {
+					display: block;
+					position: absolute;
+					content: '';
+					left: 50%;
+					transform: translateX(-50%);
+					width: 56rpx;
+					height: 6rpx;
+					background-color: #57BD37;
+					bottom: -10rpx;
+				}
+			}
+		}
+	}
+
+	.input-box {
+		padding-bottom: 26rpx;
+		border-bottom: 2rpx solid #E4E4E4;
+		height: 42rpx;
+		font-size: 30rpx;
+		font-family: PingFang SC-Regular, PingFang SC;
+		font-weight: 400;
+		margin-bottom: 88rpx;
+		width: 100%;
+		position: relative;
+	}
+
+	.submit {
+		width: 100%;
+		height: 88rpx;
+		background: linear-gradient(180deg, #6AD449 0%, #4EB32F 100%);
+		border-radius: 40rpx;
+		display: flex;
+		align-items: center;
+		justify-content: center;
+		font-size: 36rpx;
+		font-family: PingFang SC-Medium, PingFang SC;
+		font-weight: 500;
+		color: #FFFFFF;
+		margin-bottom: 40rpx;
+		margin-top: 150rpx;
+	}
+
+	.b-btn {
+		display: flex;
+		width: 100%;
+		justify-content: space-between;
+		height: 44rpx;
+		font-size: 32rpx;
+		font-family: PingFang SC-Medium, PingFang SC;
+		font-weight: 500;
+		color: #666666;
+		line-height: 44rpx;
+
+		.r {
+			color: #57BD37;
+		}
+	}
+</style>

+ 275 - 0
xinlijiankang-uniapp-main/pages/login/sigUp.vue

@@ -0,0 +1,275 @@
+<template>
+	<view class="page">
+		<!-- <cus-head title='' bg='#fff' back></cus-head> -->
+		<view class="title">
+			注册
+		</view>
+
+		<view class="input-box">
+			<input type="number" maxlength="11" class="input" v-model="phone" placeholder="请输入手机号码">
+		</view>
+
+		<view class="input-box">
+			<input type="text" v-model="code" class="input" style="width: 400rpx;" placeholder="请输入验证码">
+			<view class="vcode" @click="getVcode" v-if="countdown <= 0">
+				获取验证码
+			</view>
+			<view class="vcode" v-else>
+				{{countdown}}
+			</view>
+		</view>
+
+		<view class="input-box">
+			<!-- 八位以上大小字母、数字、符号组合 -->
+			<input type="password" class="input" v-model="password" placeholder="请输入密码">
+		</view>
+
+		<view class="input-box">
+			<!-- 再次输入,八位以上大小字母、数字、符号组合 -->
+			<input type="password" class="input" v-model="pwd2" placeholder="请确认密码">
+		</view>
+
+		<view class="xieyi">
+			<view class="radio" @click="checked = !checked">
+				<radio class="radio" :checked="checked" color="#6AD449" />
+			</view>
+			我已阅读并同意 <text class="c">《用户协议》</text>和<text class="c">《隐私政策》</text>
+		</view>
+		<view class="submit" @click="login">
+			注册
+		</view>
+
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				password: '',
+				pwd2: '',
+				phone: '',
+				code: '',
+				checked: false,
+				key:'',
+				countdown:0
+			}
+		},
+		onLoad() {
+			
+		},
+		methods: {
+			login() {
+				let tip = ''
+				if (!this.phone) {
+					tip = '请输入手机号码'
+				} else if (!this.code) {
+					tip = '请输入验证码'
+				} else if (!this.password) {
+					tip = '请输入密码'
+				} else if (!this.pwd2) {
+					tip = '请正常输入密码'
+				} else if (!this.checked) {
+					tip = '请同意用户协议和隐私政策'
+				}
+				if (tip) {
+					uni.showToast({
+						title: tip,
+						icon: "none"
+					})
+					return
+				}
+				this.$post({
+					data:{
+						do:'SigUp',
+						data:{
+							phone:this.phone,
+							password:this.password,
+							code:this.code
+						}
+					}
+				}).then(res=>{
+					console.log(res,'++++++++++++')
+					for(let i in res.data){
+						uni.setStorageSync(i,res.data[i])
+					}
+					uni.showToast({
+						title:'注册成功',
+						mask:true
+					})
+					setTimeout(()=>{
+						uni.reLaunch({
+							url:'/pages/index/index'
+						})
+					},1500)
+				}).catch(err=>{
+					console.log(err)
+				})
+			},
+			getVcode() {
+				if (!this.phone) {
+					uni.showToast({
+						title: '请输入手机号',
+						icon: "none",
+					})
+					return
+				} 
+				this.$post({
+					data:{
+						do:'GetPhoneCode',
+						data:{
+							phone:this.phone
+						}
+					}
+				}).then(res=>{
+					console.log(res,'++++++++')
+					if(res.errno==2004){
+						uni.showToast({
+							title: '短信已发送',
+							icon: "none",
+							duration: 5000
+						})
+						this.key = res.key;
+						if (this.countdown <= 0) {
+							this.countdown = 60
+							let timer = setInterval(() => {
+								this.countdown--;
+								if (this.countdown < 1) {
+									clearInterval(timer);
+									this.countdown = 0
+								}
+							}, 1000)
+						}
+					}
+				})
+			}
+		}
+	}
+</script>
+
+<style lang="less" scoped>
+	.page {
+		padding: 0 32rpx;
+		width: 100vw;
+		box-sizing: border-box;
+	}
+
+	.vcode {
+		width: 180rpx;
+		height: 70rpx;
+		border-radius: 4rpx;
+		border: 2rpx solid #57BD37;
+		text-align: center;
+		line-height: 70rpx;
+		font-size: 32rpx;
+		color: #57BD37;
+		position: absolute;
+		right: 0;
+		bottom: 14rpx;
+	}
+
+	.title {
+		width: 104rpx;
+		height: 72rpx;
+		font-size: 52rpx;
+		font-family: PingFang SC-Bold, PingFang SC;
+		font-weight: bold;
+		color: #333333;
+		padding-top: 54rpx;
+		margin-bottom: 74rpx;
+	}
+
+	.tab {
+		display: flex;
+		align-items: center;
+		margin-bottom: 114rpx;
+
+		.item {
+			height: 50rpx;
+			margin-right: 86rpx;
+			font-size: 36rpx;
+			font-family: PingFang SC-Medium, PingFang SC;
+			font-weight: 500;
+			color: #333333;
+
+			&.active {
+				color: #57BD37;
+				position: relative;
+
+				&:after {
+					display: block;
+					position: absolute;
+					content: '';
+					left: 50%;
+					transform: translateX(-50%);
+					width: 56rpx;
+					height: 6rpx;
+					background-color: #57BD37;
+					bottom: -10rpx;
+				}
+			}
+		}
+	}
+
+	.input-box {
+		padding-bottom: 26rpx;
+		border-bottom: 2rpx solid #E4E4E4;
+		height: 42rpx;
+		font-size: 30rpx;
+		font-family: PingFang SC-Regular, PingFang SC;
+		font-weight: 400;
+		margin-bottom: 88rpx;
+		width: 100%;
+		position: relative;
+	}
+
+	.submit {
+		width: 100%;
+		height: 88rpx;
+		background: linear-gradient(180deg, #6AD449 0%, #4EB32F 100%);
+		border-radius: 40rpx;
+		display: flex;
+		align-items: center;
+		justify-content: center;
+		font-size: 36rpx;
+		font-family: PingFang SC-Medium, PingFang SC;
+		font-weight: 500;
+		color: #FFFFFF;
+		margin-top: 56rpx;
+	}
+
+	.b-btn {
+		display: flex;
+		width: 100%;
+		justify-content: space-between;
+		height: 44rpx;
+		font-size: 32rpx;
+		font-family: PingFang SC-Medium, PingFang SC;
+		font-weight: 500;
+		color: #666666;
+		line-height: 44rpx;
+
+		.r {
+			color: #57BD37;
+		}
+	}
+
+	.radio {
+		width: 30rpx;
+		height: 30rpx;
+		display: inline-block;
+		margin-right: 16rpx;
+	}
+
+	.xieyi {
+		height: 40rpx;
+		font-size: 28rpx;
+		font-family: PingFang SC-Regular, PingFang SC;
+		font-weight: 400;
+		color: #333333;
+
+		.c {
+			color: #57BD37;
+		}
+	}
+</style>

+ 254 - 0
xinlijiankang-uniapp-main/pages/login/updatePwd.vue

@@ -0,0 +1,254 @@
+<template>
+	<view class="page">
+		<!-- <cus-head title='' bg='#fff' back></cus-head> -->
+		<view class="title">
+			修改密码
+		</view>
+
+		<view class="input-box">
+			<input type="number" maxlength="11" class="input" v-model="phone" placeholder="请输入手机号码">
+		</view>
+
+		<view class="input-box">
+			<input type="text" v-model="code" class="input" style="width: 400rpx;"  placeholder="请输入验证码">
+			<view class="vcode" @click="getVcode" v-if="countdown <= 0">
+				获取验证码
+			</view>
+			<view class="vcode" v-else>
+				{{countdown}}
+			</view>
+		</view>
+
+		<view class="input-box">
+			<input type="password" class="input" v-model="password" placeholder="输入新密码">
+		</view>
+
+		<view class="input-box">
+			<input type="password" class="input" v-model="pwd2" placeholder="再次输入新密码">
+		</view>
+
+		<view class="submit" @click="login">
+			确认
+		</view>
+
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				password: '',
+				pwd2: '',
+				phone: '',
+				code: '',
+				checked: false,
+				key: '',
+				countdown: 0
+			}
+		},
+		methods: {
+			login() {
+				let tip = ''
+				if (!this.phone) {
+					tip = '请输入手机号码'
+				} else if (!this.code) {
+					tip = '请输入验证码'
+				} else if (!this.password) {
+					tip = '请输入密码'
+				} else if (!this.pwd2) {
+					tip = '请正常输入密码'
+				}
+				if (tip) {
+					uni.showToast({
+						title: tip,
+						icon: "none"
+					})
+					return
+				}
+				this.$post({
+					data:{
+						do:'UpdatePwd',
+						data:{
+							phone:this.phone,
+							password:this.password,
+							code:this.code
+						}
+					}
+				}).then(res=>{
+					console.log(res,'+++')
+					uni.showToast({
+						title:'重置成功',
+						mask:true
+					})
+					setTimeout(()=>{
+						uni.navigateBack()
+					},1500)
+				})
+			},
+			getVcode() {
+				if (!this.phone) {
+					uni.showToast({
+						title: '请输入手机号',
+						icon: "none",
+					})
+					return
+				} 
+				this.$post({
+					data:{
+						do:'GetPhoneCode',
+						data:{
+							phone:this.phone
+						}
+					}
+				}).then(res=>{
+					console.log(res,'++++++++')
+					if(res.errno==2004){
+						uni.showToast({
+							title: '短信已发送',
+							icon: "none",
+							duration: 5000
+						})
+						this.key = res.key;
+						if (this.countdown <= 0) {
+							this.countdown = 60
+							let timer = setInterval(() => {
+								this.countdown--;
+								if (this.countdown < 1) {
+									clearInterval(timer);
+									this.countdown = 0
+								}
+							}, 1000)
+						}
+					}
+				})
+			}
+		}
+	}
+</script>
+
+<style lang="less" scoped>
+	.page {
+		padding: 0 32rpx;
+		width: 100vw;
+		box-sizing: border-box;
+	}
+
+	.vcode {
+		width: 180rpx;
+		height: 70rpx;
+		border-radius: 4rpx;
+		border: 2rpx solid #57BD37;
+		text-align: center;
+		line-height: 70rpx;
+		font-size: 32rpx;
+		color: #57BD37;
+		position: absolute;
+		right: 0;
+		bottom: 14rpx;
+	}
+
+	.title {
+		height: 72rpx;
+		font-size: 52rpx;
+		font-family: PingFang SC-Bold, PingFang SC;
+		font-weight: bold;
+		color: #333333;
+		padding-top: 54rpx;
+		margin-bottom: 74rpx;
+	}
+
+	.tab {
+		display: flex;
+		align-items: center;
+		margin-bottom: 114rpx;
+
+		.item {
+			height: 50rpx;
+			margin-right: 86rpx;
+			font-size: 36rpx;
+			font-family: PingFang SC-Medium, PingFang SC;
+			font-weight: 500;
+			color: #333333;
+
+			&.active {
+				color: #57BD37;
+				position: relative;
+
+				&:after {
+					display: block;
+					position: absolute;
+					content: '';
+					left: 50%;
+					transform: translateX(-50%);
+					width: 56rpx;
+					height: 6rpx;
+					background-color: #57BD37;
+					bottom: -10rpx;
+				}
+			}
+		}
+	}
+
+	.input-box {
+		padding-bottom: 26rpx;
+		border-bottom: 2rpx solid #E4E4E4;
+		height: 42rpx;
+		font-size: 30rpx;
+		font-family: PingFang SC-Regular, PingFang SC;
+		font-weight: 400;
+		margin-bottom: 88rpx;
+		width: 100%;
+		position: relative;
+	}
+
+	.submit {
+		width: 100%;
+		height: 88rpx;
+		background: linear-gradient(180deg, #6AD449 0%, #4EB32F 100%);
+		border-radius: 40rpx;
+		display: flex;
+		align-items: center;
+		justify-content: center;
+		font-size: 36rpx;
+		font-family: PingFang SC-Medium, PingFang SC;
+		font-weight: 500;
+		color: #FFFFFF;
+		margin-top: 142rpx;
+	}
+
+	.b-btn {
+		display: flex;
+		width: 100%;
+		justify-content: space-between;
+		height: 44rpx;
+		font-size: 32rpx;
+		font-family: PingFang SC-Medium, PingFang SC;
+		font-weight: 500;
+		color: #666666;
+		line-height: 44rpx;
+
+		.r {
+			color: #57BD37;
+		}
+	}
+
+	.radio {
+		width: 30rpx;
+		height: 30rpx;
+		display: inline-block;
+		margin-right: 16rpx;
+	}
+
+	.xieyi {
+		height: 40rpx;
+		font-size: 28rpx;
+		font-family: PingFang SC-Regular, PingFang SC;
+		font-weight: 400;
+		color: #333333;
+
+		.c {
+			color: #57BD37;
+		}
+	}
+</style>

+ 60 - 0
xinlijiankang-uniapp-main/pages/user/cp-cg.vue

@@ -0,0 +1,60 @@
+<template>
+	<view class="ayuu">
+		 
+			
+			<view class="fzddrew" style="margin-top: 320rpx;">
+				<image src="/static/user/fk1.png" style="width: 320rpx;height: 300rpx;margin-bottom: 40rpx;" mode=""></image>
+				
+				<view class="fktxtr">
+					<text>恭喜您</text>
+				</view>
+				<view class="fktxtr">
+					<text>本次测评成功</text>
+				</view>
+			</view>
+			
+ 
+			<view class="fzddrew fknbee">
+				<view class="fzddrew fkdibr" style="background:#95bf7f;" @click="lookResult">
+					<text>立即查看</text>
+				</view>
+			</view>
+			 
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				id:0,
+				list:''
+			}
+		},
+		onLoad(e) {
+			this.id = e.id
+		},
+		
+		methods:{
+			lookResult(){
+				uni.navigateTo({
+					url:'/pages/user/cp-jg?id='+this.id
+				})
+			}
+		}
+
+
+	}
+</script>
+
+<style lang="scss" scoped>
+	 
+ 
+ 
+	 
+	 
+</style>

+ 127 - 0
xinlijiankang-uniapp-main/pages/user/cp-fa.vue

@@ -0,0 +1,127 @@
+<template>
+	<view class="ayuu">
+
+
+
+		<view class="cpfapryu">
+			<view class="indhuyr">
+				<view class="indjbrr"></view>
+				<text>解决方案</text>
+			</view>
+			<view style="padding: 10rpx;">
+				<view class="res-title">专家解决意见</view>
+				<view class='res-content' v-if="content">{{content}}</view>
+				<view class='res-none' v-else>专家暂时还未给出意见</view>
+			</view>
+			<view class="cpfapryukan">
+				<view class="f-item" v-for="(item,index) in result" :key="index">
+					<text>{{item.name}}</text>
+					<view class="items" v-for="(items,indexs) in item.value" :key="indexs">
+						<text>{{items.name}}</text>
+						<text>{{items.res}}</text>
+					</view>
+				</view>
+
+			</view>
+
+
+		</view>
+
+
+
+
+
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				id: 0,
+				result: [],
+				content: '',
+			}
+		},
+		onLoad(e) {
+			this.id = e.id || 0
+			this.getInfo()
+		},
+		methods: {
+			getInfo() {
+				this.$post({
+					data: {
+						do: 'GetExamination',
+						data: {
+							id: this.id,
+							pay_type: uni.getStorageSync('') // 支付类型1=普通用户,2=会员用户
+						}
+					}
+				}).then(res => {
+					this.result = res.data.res;
+					this.content = res.data.content;
+
+				})
+			}
+		}
+
+
+	}
+</script>
+<style>
+	.f-item {
+		display: flex;
+		flex-direction: column;
+		justify-content: flex-start;
+		margin-bottom: 30rpx;
+	}
+
+	.items {
+		display: flex;
+		width: 100%;
+		border: 1rpx solid #ebebeb;
+		margin-top: 20rpx;
+	}
+
+	.items>text {
+		padding: 10rpx 0;
+		width: 50%;
+		text-align: center;
+	}
+
+	.res-title {
+		font-size: 28rpx;
+		margin: 20rpx 0;
+
+	}
+
+	.res-content {
+		font-size: 27rpx;
+		color: #000;
+		padding: 30rpx 10rpx;
+		border-radius: 10rpx;
+		font-weight: bold;
+		font-weight: bold;
+		border: 1px dotted #d6d6d6;
+	}
+
+	.res-none {
+		font-size: 27rpx;
+		background-color: #d6d6d6e6;
+		color: #fff;
+		padding: 45rpx 0;
+		border-radius: 10rpx;
+		font-weight: bold;
+		text-align: center;
+	}
+</style>
+<style lang="scss" scoped>
+
+
+
+
+</style>

+ 45 - 0
xinlijiankang-uniapp-main/pages/user/cp-fk.vue

@@ -0,0 +1,45 @@
+<template>
+	<view class="ayuu">
+			<view class="fzddrew" style="margin-top: 320rpx;">
+				<image src="/static/user/fk1.png" style="width: 320rpx;height: 300rpx;margin-bottom: 40rpx;" mode=""></image>
+				
+				<view class="fktxtr">
+					<text>恭喜您</text>
+				</view>
+				<view class="fktxtr">
+					<text>付费成功</text>
+				</view>
+			</view>
+			
+ 
+			<view class="fzddrew fknbee" >
+				<navigator class="fzddrew fkdibr" url="../user/cp-fa" hover-class="none">
+					<text>立即查看</text>
+				</navigator>
+			</view>
+		 
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				order_id: '',
+			}
+		},
+		onLoad(option) {
+			this.order_id = option.order_id
+		},
+
+
+	}
+</script>
+
+<style lang="scss" scoped>
+
+</style>

+ 224 - 0
xinlijiankang-uniapp-main/pages/user/cp-jg.vue

@@ -0,0 +1,224 @@
+<template>
+	<view class="ayuu">
+		<view class="cpfapryu">
+			<view class="indhuyr">
+				<view class="indjbrr"></view>
+				<text>测评结果</text>
+			</view>
+			<view class="">
+				
+			</view>
+			<!-- <text  v-if="state==1">支付后查看测评结果</text> -->
+			<!-- <view class="cpjgtxt">
+				<view class="mytitles">
+					<text>项目</text>
+					<text>值</text>
+					<text>范围</text>
+				</view>
+				<view class="myc">
+					<view class="mycv" v-for="(item,index) in list" :key="index">
+						<text>{{item.name}}</text>
+						<text>{{item.key}}</text>
+						<text>{{item.value}}</text>
+					</view>
+				</view>
+			</view> -->
+		</view>
+		
+		
+		<view class="">
+			<!-- url="../user/cp-fk" -->
+			<!-- <view class="cpjgkan"  hover-class="none" @click="pay(1)">
+				<text>解决方案 普通/{{price}}¥</text>
+			</view>
+			
+			<view class="cpjgkanb" hover-class="none" @click="pay(2)">
+				<text>解决方案 会员/{{vip_price}}¥</text>
+			</view> -->
+		</view>
+		 
+
+		 
+		
+		 
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				id:0,
+				state:1,      // 1 待支付 2 已支付
+				price:0,			// 普通价格
+				vip_price:0,    // vip价格
+				result:[],
+				pay_res:'',
+				list:[],
+				deviceType:'wxapp',
+				resultText: '',
+			}
+		},
+		onLoad(e) {
+			// #ifdef APP-PLUS
+				this.deviceType = 'wxh5'
+			// #endif
+			// #ifdef MP-WEIXIN
+				this.deviceType = 'wxapp'
+			// #endif
+			this.id = e.id
+			this.state = e.state || 1
+			this.list = JSON.parse(decodeURIComponent(e.list)) || []
+			// this.getExaminationInfo()
+		},
+		methods:{
+			
+			
+			getResult(){
+				let that = this;
+				that.$request.getResult({
+					log_id: that.id
+				}).then( res =>{
+					console.log(res)
+					if(res.code == 0){
+						this.resultText = res.data;
+					}else{
+						uni.showToast({
+							title: res.message,
+							icon: "none",
+						})
+					}
+				}).catch( e =>{
+					console.log(e)
+				})
+			},
+			// 获取报告内容 获取价格
+			getExaminationInfo(){
+				this.$post({
+					data:{
+						do:'ExaminationInfo'
+					}
+				}).then(res=>{
+					console.log(res,'bbbbbbbbb')
+					this.price = res.data.price
+					this.vip_price = res.data.vip_price
+				})
+			},
+			pay(pay_type){
+				if(pay_type==2 && uni.getStorageSync('is_vip')==0){
+					uni.showToast({
+						title:'您还不是会员',
+						icon:'none'
+					})
+					return
+				}
+				this.$post({
+					data:{
+						do:'GetExamination',
+						data:{
+							id:this.id,
+							pay_type           // 支付类型1=普通用户,2=会员用户
+						},
+						deviceType:this.deviceType
+					}
+				}).then(res=>{
+					console.log(res,'kkkkkkkk')
+					// this.state = res.data.state
+					// this.result = res.data.data
+					// this.pay_res = res.data.pay_res
+					// #ifdef APP-PLUS
+					uni.requestPayment({
+						provider: 'wxpay',
+						orderInfo:res.data.pay_res.orderinfo,
+						success:()=> {
+							// uni.showToast({
+							// 	title: '支付成功'
+							// })
+							// setTimeout(()=>{
+							// 	this.state = res.data.state
+							// 	this.result = res.data.data
+							// },1500)
+							uni.navigateTo({
+								url:'/pages/user/fkcg?id='+this.id
+							})
+						},
+						fail:(err)=> {
+							console.log(err)
+							uni.showToast({
+								title: '支付失败',
+								icon: 'error'
+							})
+						}
+					})
+					// #endif
+					// #ifdef MP-WEIXIN
+					uni.requestPayment({
+						provider: 'wxpay',
+						...res.data.pay_res,
+						success:()=> {
+							// uni.showToast({
+							// 	title: '支付成功'
+							// })
+							// setTimeout(()=>{
+							// 	this.state = res.data.state
+							// 	this.result = res.data.data
+							// },1500)
+							uni.navigateTo({
+								url:'/pages/user/fkcg?id='+this.id
+							})
+						},
+						fail:(err)=> {
+							console.log(err)
+							uni.showToast({
+								title: '支付失败',
+								icon: 'error'
+							})
+						}
+					})
+					// #endif
+					
+					
+					
+				})
+			}
+		}
+
+
+	}
+</script>
+
+<style>
+	.mytitles{
+		display: flex;
+		align-items: center;
+		border: 1rpx solid #ebebeb;
+	}
+	.mytitles>text{
+		width: 33.33%;
+		text-align: center;
+		padding: 10rpx 0;
+	}
+	.myc{
+		
+	}
+	.mycv{
+		display: flex;
+		align-items: center;
+		border: 1rpx solid #ebebeb;
+	}
+	.mycv>text{
+		width: 33.33%;
+		text-align: center;
+		padding: 10rpx 0;
+	}
+</style>
+<style lang="scss" scoped>
+	 
+ 
+	 
+	 
+</style>

+ 257 - 0
xinlijiankang-uniapp-main/pages/user/cp-pay.vue

@@ -0,0 +1,257 @@
+<template>
+	<view class="pages-box">
+		<view class="topup-listbtn-box">
+			
+		  <view class="topup-listbtn-items" v-for="(item,index) in resultList" :key="index">    
+		    <view :class="selected == item.id ? 'select_class' :'' " @click="select_items(item.id,item.price)">
+					<view class="">{{item.title}}</view>
+					<view class="" style="margin-top: 10rpx;">({{item.desc}})</view>
+					<view class="" style="margin-top: 10rpx;">
+						¥<span style="font-size: 36rpx;font-weight: bold;">{{item.price}}</span>
+					</view>
+					<view class="" style="margin-top: 10rpx;"><span style="text-decoration:line-through;">¥{{item.original_price}}</span></view>
+				</view>
+		  </view>
+
+		</view>
+		
+		<view class="zf-fs-box">
+			<text>支付方式:</text>
+			<text>微信</text>
+		</view>
+		<view class="pages-btn" hover-class="hover-btn" @click="submitReview">确认协议并支付¥{{pay_text}}</view>
+		<view class="checkbox-view">
+		  <checkbox-group @change="bindChange">
+		    <label class="checkbox">
+		      <checkbox value="1" :checked="checked"/>
+		      <text>开通前请阅读</text>
+		    </label>
+		  </checkbox-group>
+		  <text class="lable-text" @click="openPrivacyContract">《服务协议》</text>
+		</view>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				selected: 1,
+				pay_text: '',
+				sel_info: null,
+				checked: true,
+				tempFilePaths: '',
+				resultList: [],
+				order_id: ''
+			}
+		},
+		created() {
+		},
+		onLoad(option) {
+			this.tempFilePaths = option.tempFilePaths;
+			this.getPrice();
+		},
+		methods: {
+			select_items(n,t){
+				this.selected = n;
+				this.pay_text = t;
+			},
+			getPrice(){
+				let that = this;
+				that.$request.getPrice({}).then( res =>{
+					console.log(res)
+					if(res.code == 0){
+						let resultList = res.data.result;
+						let selected = that.selected;
+						resultList.forEach( ele =>{
+							if(ele.id == selected){
+								that.pay_text = ele.price;
+								that.sel_info = ele;
+							}
+						})
+						that.resultList = resultList;
+					}else{
+						uni.showToast({
+							title: res.message,
+							icon: "none",
+						})
+					}
+				}).catch( e =>{
+					console.log(e)
+				})
+			},
+			submitReview(){
+				let that = this;
+				let tempFilePaths = JSON.parse(that.tempFilePaths).tempFilePath;
+				console.log(tempFilePaths)
+				wx.uploadFile({
+				  url: 'https://ocr.lfwhzb.com/api/review',
+				  filePath: tempFilePaths,
+				  name: 'file',
+					header: {
+						token: uni.getStorageSync('token')
+					},
+				  formData: { pay_id: that.selected },
+				  success(res) {
+						let data = JSON.parse(res.data);
+						if(data.code == 0){
+							that.order_id = data.data.order_id;
+							that.reviewPay(data.data.order_id);
+						}else{
+							uni.showToast({
+								title: data.message,
+								icon:"none"
+							})
+						}
+				  },
+				  fail(err) {
+				    console.log('上传失败:', err);
+				  }
+				});
+				
+				// that.$request.submitReview({
+				// 	file: that.file,
+				// 	pay_id: that.selected,
+				// }).then( res =>{
+				// 	console.log(res)
+				// 	if(res.code == 0){
+				// 		that.order_id = res.data.order_id;
+				// 		that.reviewPay(res.data.order_id);
+				// 	}else{
+				// 		uni.showToast({
+				// 			title: res.message,
+				// 			icon: "none",
+				// 		})
+				// 	}
+				// }).catch( e =>{
+				// 	console.log(e)
+				// })
+			},
+			// 支付
+			reviewPay(o){
+				let that = this;
+				that.$request.reviewPay({
+					order_id: o,
+				}).then( res =>{
+					console.log(res)
+					if(res.code == 0){
+						let data = res.data;
+						uni.requestPayment({
+							"appId": data.appId,  // 微信开放平台 - 应用 - AppId,注意和微信小程序、公众号 AppId 可能不一致
+							"nonceStr": data.nonceStr, // 随机字符串
+							"package": data.package,        // 固定值
+							"timeStamp": data.timeStamp,        // 时间戳(单位:秒)
+							"signType": data.signType, //签名类型
+							"paySign": data.paySign ,// 签名,这里用的 MD5/RSA 签名
+							success(res) {
+								uni.showToast({
+									title: '支付成功',
+									icon: 'success'
+								})
+								setTimeout(() =>{
+									uni.navigateTo({
+										url:'../user/cp-cg'
+									})
+								},1000)
+							},
+							fail(e) {
+								console.log(e)
+								uni.showToast({
+									title: '支付报错',
+									icon: 'none'
+								})
+							}
+						})
+						
+					}else{
+						uni.showToast({
+							title: res.message,
+							icon: "none",
+						})
+					}
+				}).catch( e =>{
+					console.log(e)
+					uni.showToast({
+						title: e,
+						icon: 'none'
+					})
+				})
+			}
+		}
+	}
+</script>
+
+<style scoped>
+	.pages-box{
+		padding: 40rpx;
+		box-sizing: border-box;
+	}
+	.topup-listbtn-box{
+		padding: 10rpx 20rpx;
+		box-sizing: border-box;
+		display: flex;
+		flex-wrap: wrap;
+		align-items: center;
+	}
+	.topup-listbtn-box>view.topup-listbtn-items{
+		width: 50%;
+		padding: 15rpx;
+		font-size: 28rpx;
+		box-sizing: border-box;
+	}
+	.topup-listbtn-items>view{
+		text-align: center;
+	  height: auto;
+	  border-radius: 8px;
+	  font-size: 28rpx;
+		padding: 20rpx 0;
+	  box-shadow: 0 0 20rpx 2rpx #00000020;
+	}
+	.topup-listbtn-items>.select_class{
+	  background: #95bf7f;
+	  color: #fff;
+	}
+	.zf-fs-box{
+		width: 462rpx;
+		margin: 0 auto;
+		margin-top: 160rpx;
+		padding: 20rpx 30rpx 10rpx 0;
+		box-sizing: border-box;
+		display: flex;
+		align-items: center;
+		justify-content: space-between;
+	}
+	.pages-btn{
+	  width: 480rpx;
+	  height: 74rpx;
+	  line-height: 74rpx;
+	  text-align: center;
+	  background: #95bf7f;
+	  color: #fff;
+	  border-radius: 20px;
+	  margin: 10rpx auto;
+		box-shadow: 0 0 20rpx 2rpx #00000020;
+	}
+	.hover-btn{
+	  opacity: 0.8;
+	}
+	.checkbox-view{
+		width: 480rpx;
+		margin: 0 auto;
+	  margin-top: 20rpx;
+	  font-size: 30rpx;
+	  color: #333;
+	  display: flex;
+	  align-items: center;
+	}
+	.checkbox{
+	  display: flex;
+	  align-items: center;
+	}
+	.lable-text{
+	  color: blue;
+	}
+	.checkbox checkbox{
+	  transform: scale(0.7);
+	}
+</style>

+ 184 - 0
xinlijiankang-uniapp-main/pages/user/cp-sc.vue

@@ -0,0 +1,184 @@
+<template>
+	<view class="ayuu">
+		<view class="cpsahnty">
+			<view class="cpsahtxt">
+				<text>
+					上传体检报告
+				</text>
+			</view>
+			<view class="fzddrew cpsahngc" @click="getimg">
+				<image :src="img?img:'../../static/user/cp-sc.png'" mode="widthFix"></image>
+			</view>
+		</view>
+		<view class="list-box">
+			<view class="list-title">
+				<view class="" style="font-weight: bold;">我已上传的测评报告:</view>
+				<view class=""></view>
+			</view>
+			<view class="table-box">
+				<uni-table border stripe emptyText="暂无更多数据" >
+					<!-- 表头行 -->
+					<uni-tr>
+						<uni-th align="center">体检报告名称</uni-th>
+						<uni-th align="center">测评结果</uni-th>
+					</uni-tr>
+					<!-- 表格数据行 -->
+					<uni-tr v-for="(item,index) in reviewLogList" :key="index">
+						<uni-td>报告{{index + 1}}</uni-td>
+						<!-- <uni-td>
+							<view class="td-view">
+								<view class="">测评排队中</view>
+								<view class="">[前方等待8人,还需1天]</view>
+							</view>
+						</uni-td> -->
+						<uni-td>
+							<view class="td-view" style="color: #ff0000;" @click="goTojg(item.id)">查看测评结果</view>
+						</uni-td>
+					</uni-tr>
+					
+				</uni-table>
+				
+			</view>
+			</view>
+			<view style="height: 120rpx;"></view>
+		<view class="fzddrew fknbee">
+			<view class="fzddrew fkdibr" style="background: #95bf7f;" @click="subInfo">
+				<text>立即上传</text>
+			</view>
+		</view>
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				img: '',
+				reviewLogList: [],
+				tempFilePaths: null
+			}
+		},
+		onLoad() {
+			this.user_id = uni.getStorageSync('id');
+			this.vip_pay = uni.getStorageSync('is_vip');
+			this.getReviewLog();
+		},
+		methods: {
+			goTojg(id){
+				uni.navigateTo({
+					url: '/pages/user/cp-jg?id=' + id
+				})
+			},
+			getReviewLog(){
+				let that = this;
+				that.$request.getReviewLog({}).then( res =>{
+					console.log(res)
+					if(res.code == 0){
+						this.reviewLogList = res.data;
+					}else{
+						uni.showToast({
+							title: res.message,
+							icon: "none",
+						})
+						if(res.message == '请先登录'){
+							uni.setStorageSync('userinfo',null);
+							uni.setStorageSync('id','');
+							uni.setStorageSync("token",'');
+							setTimeout( () =>{
+								uni.reLaunch({
+									url:'/pages/lecturer/my'
+								})
+							},2000)
+						}
+					}
+				}).catch( e =>{
+					console.log(e)
+				})
+			},
+			getimg() {
+				let that = this;
+				// chooseImage
+				
+				// 用户已经同意小程序使用相册
+				  uni.chooseMedia({
+						count: 1,
+						sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
+						sourceType: ['album'], //从相册选择
+						success: (res) => {
+							console.log(res)
+							let tempFiles = res.tempFiles;
+							that.img = tempFiles[0].tempFilePath;
+							that.tempFilePaths = tempFiles[0];
+						},
+						fail:(res) => {
+							console.log(res)
+						},
+					})
+				
+				
+			},
+			// 提交信息
+			subInfo(){
+				let that = this;
+				if(!that.img){
+					uni.showToast({
+						title:'请选择体检报告',
+						icon:'none'
+					})
+					return
+				}
+				uni.showLoading({
+					title:'加载中...',
+					mask:true
+				})
+				setTimeout( () =>{
+					uni.hideLoading();
+					uni.navigateTo({
+						url:'../user/cp-pay?tempFilePaths='+ JSON.stringify(that.tempFilePaths)
+					})
+				},2000)
+		
+			}
+
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	.ayuu{
+		height: 100vh;
+		overflow-y: auto;
+	}
+	.list-box{
+		width: 100%;
+		height: auto;
+		margin-top: 20rpx;
+		padding: 10rpx 20rpx;
+		box-sizing: border-box;
+	}
+	.list-title{
+		font-size: 28rpx;
+		display: flex;
+		align-items: center;
+		justify-content: space-between;
+		
+	}
+	.table-box{
+		margin-top: 10rpx;
+		padding: 20rpx 0;
+		box-sizing: border-box;
+		background: #fff;
+	}
+	.table-box /deep/ .uni-table-th{
+		padding: 12rpx 10rpx;
+		color: #000;
+	}
+	.td-view{
+		text-align: center;
+	}
+
+</style>

+ 61 - 0
xinlijiankang-uniapp-main/pages/user/cp.vue

@@ -0,0 +1,61 @@
+<template>
+	<view class="ayuu">
+		<image src="../../static/user/cp-bg.png" mode="widthFix" style="width: 100%;"></image>
+		<view style="text-align: center;line-height: 100upx;font-size: 36upx;font-weight: bold;">测评介绍</view>
+		<view class="" style="font-size: 30rpx;padding: 30rpx 30rpx 180rpx 30rpx;box-sizing: border-box;">
+			<view>“你好!这里是心报告,通过解读体检报告,让你更加了解自己的身体状况及心理状态。”</view>
+			<view>1.请勿遮挡真实年龄和性别,以保证结果的准确性</view>
+			<view>2.请上传一个月内的体检报告</view>
+			<view>3.体检报告须包含血常规及生化全项*</view>
+			<view>(血常规*:红细胞(RBC),血红蛋白(Hb),白细胞(WBC)、白细胞分类计数、红细胞比容(HCT)、血小板(PL)、中性粒细胞、嗜酸性粒细胞、嗜碱性粒细胞、淋巴细胞、单核细胞生化全项*:乳酸脱氢酶、谷草转氨酶、谷丙转氨酶、γ-谷氨酰转肽酶、肌酸激酶 、肌酸激酶同工酶 、α-羟基丁酸脱氢酶、淀粉酶 、碱性磷酸酶、总胆红素、直接胆红素、间接胆红素、总胆汁酸、总蛋白、白蛋白、球蛋白、白球比例、尿素氮、肌酐、尿素氮/肌酐、尿酸、血清总胆固醇 、甘油三脂、高密度脂蛋白、低密度脂蛋白、钠、钾 、氯、二氧化碳 、钙 、镁、磷 、渗透压、血糖)</view>
+		</view>
+		<!-- <image :src="img2" mode="widthFix" style="width: 100%;"></image> -->
+		<view class="fzjtod shitoob">
+			<navigator class="shitoobtxt" url="../user/cp-sc" hover-class="none">
+				<text>立即测试</text>
+			</navigator>
+		</view>
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				background: {
+					backgroundColor: '#ffffff',
+				},
+				hhyanm: {
+					color: '#FFFFFF',
+				},
+				img1: '',
+				img2: ''
+			}
+		},
+		onLoad() {
+			this.getimg();
+		},
+		methods: {
+			getimg() {
+				
+			},
+
+		}
+
+
+	}
+</script>
+
+<style lang="scss" scoped>
+	.ceyuldr {
+		height: 420rpx;
+		background: #95bf7f;
+	}
+	.shitoobtxt{
+		background: #95bf7f;
+	}
+</style>

+ 22 - 0
xinlijiankang-uniapp-main/pages/user/cpView.vue

@@ -0,0 +1,22 @@
+<template>
+	<view>
+		<web-view src="https://ocr.lfwhzb.com"></web-view>
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				
+			}
+		},
+		methods: {
+			
+		}
+	}
+</script>
+
+<style>
+
+</style>

+ 63 - 0
xinlijiankang-uniapp-main/pages/user/fkcg.vue

@@ -0,0 +1,63 @@
+<template>
+	<view class="ayuu">
+			<view class="fzddrew" style="margin-top: 320rpx;">
+				<image src="/static/user/fk1.png" style="width: 320rpx;height: 300rpx;margin-bottom: 40rpx;" mode=""></image>
+				
+				<view class="fktxtr">
+					<text>恭喜您</text>
+				</view>
+				<view class="fktxtr">
+					<text>付费成功</text>
+				</view>
+			</view>
+			
+ 
+			<view class="fzddrew fknbee" >
+				<view class="fzddrew fkdibr"  @click="toLook">
+					<text>立即查看</text>
+				</view>
+			</view>
+			 
+			
+	 
+		 
+		 
+
+		 
+		
+		 
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				id:0
+			}
+		},
+		onLoad(e) {
+			this.id = e.id || 0
+		},
+		methods:{
+			toLook(){
+				uni.navigateTo({
+					url:'/pages/user/cp-fa?id='+this.id
+				})
+			}
+		}
+
+	}
+</script>
+
+<style lang="scss" scoped>
+	 
+ 
+ 
+	 
+	 
+</style>

+ 143 - 0
xinlijiankang-uniapp-main/pages/user/kcxq-b.vue

@@ -0,0 +1,143 @@
+<template>
+	<view class="">
+			<view class="ddxqship">
+				<!-- 视频板块预留 -->
+			</view>
+		<view class="ddxqfayu">
+			<view class="indhuyr">
+				<view class="indjbrr"></view>
+				<text>视频套餐</text>
+			</view>
+			
+			<view>
+				 <view class="fzctob" style="margin-top: 30rpx;">
+				 	<view class="sckjert">
+				 		<!-- 图片预留 -->
+				 	</view>
+				 	<view class="fsxto" style="width: 100%;margin-left: 24rpx;">
+				 		<view class="cphrry"><text>焦虑课程焦虑课程焦虑课程焦虑</text></view>
+				 		<view class="cptxtyra"><text>课程讲师或其他信息</text></view>
+				 		<view class="fzctob">
+				 			<text class="wdjga">¥</text>
+				 			<text class="wdjgb">00</text>
+				 			<text class="wdjgc">.00</text>
+				 			<text class="scjga">原价¥199</text>
+							<image v-show="xqaxuye" @click="xqaxuye = false" src="/static/zy/zyb1.png" style="width: 36rpx;height: 36rpx;margin-left: 20rpx;margin-top: 6rpx;" mode=""></image>
+							<image  v-show="!xqaxuye"  @click="xqaxuye = true" src="/static/zy/zyb2.png" style="width: 36rpx;height: 36rpx;margin-left: 20rpx;margin-top: 6rpx;" mode=""></image>
+				 		</view>
+				 	</view>
+				 </view>
+				 
+				 <view class="fzctob" style="margin-top: 30rpx;">
+				 	<view class="sckjert">
+				 		<!-- 图片预留 -->
+				 	</view>
+				 	<view class="fsxto" style="width: 100%;margin-left: 24rpx;">
+				 		<view class="cphrry"><text>焦虑课程焦虑课程焦虑课程焦虑</text></view>
+				 		<view class="cptxtyra"><text>课程讲师或其他信息</text></view>
+				 		<view class="fzctob">
+				 			<text class="wdjga">¥</text>
+				 			<text class="wdjgb">00</text>
+				 			<text class="wdjgc">.00</text>
+				 			<text class="scjga">原价¥199</text>
+				 							<image v-show="xqaxuye" @click="xqaxuye = false" src="/static/zy/zyb1.png" style="width: 36rpx;height: 36rpx;margin-left: 20rpx;margin-top: 6rpx;" mode=""></image>
+				 							<image  v-show="!xqaxuye"  @click="xqaxuye = true" src="/static/zy/zyb2.png" style="width: 36rpx;height: 36rpx;margin-left: 20rpx;margin-top: 6rpx;" mode=""></image>
+				 		</view>
+				 	</view>
+				 </view>
+				 
+				 
+			</view>
+			
+			
+			 
+		</view>
+	 
+		<view class="ddxqfayu">
+			<view class="indhuyr">
+				<view class="indjbrr"></view>
+				<text>课程详情</text>
+			</view>
+			
+			<view style="margin-top: 30rpx;">
+				<view class="fzctob">
+					<view class="kcxquyr">
+						<text>课程名称</text>
+					</view>
+					<view class="kcxquyra">
+						<text>焦虑课程焦虑课程焦虑课程焦虑</text>
+					</view>
+				</view>
+				<view style="border-top: 2rpx dashed #e8e8e8;width: 100%;margin: 22rpx 0;"></view>
+				
+				<view class="fzctob">
+					<view class="kcxquyr">
+						<text>课程分类</text>
+					</view>
+					<view class="fzctob kcwwerrt">
+						<text>心里咨询</text>
+						<text>心里咨询</text>
+						<text>心里咨询</text>
+					</view>
+				</view>
+				<view style="border-top: 2rpx dashed #e8e8e8;width: 100%;margin: 22rpx 0;"></view>
+				
+				<view class="fzctob">
+					<view class="kcxquyr">
+						<text>金额</text>
+					</view>
+					<view class="fzctob">
+						<text class="wdjga">¥</text>
+						<text class="wdjgb">00</text>
+						<text class="wdjgc">.00</text>
+						<text class="scjga">原价¥199</text>
+					</view>
+				</view>
+			</view>
+			
+			
+			 
+		</view>
+		<view class="" style="height: 200rpx;"></view>
+		<view class="flztoa kcquuer">
+			<view class="kqyyefh">
+				<text>普通/697¥</text>
+			</view>
+			<view class="kqyyefha">
+				<text>会员/399¥</text>
+			</view>
+		</view>
+		 
+
+		 
+		
+		 
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				xqaxuye:false,
+  
+
+			}
+		},
+
+
+	}
+</script>
+
+<style lang="scss" scoped>
+	
+	 
+ 
+ 
+	 
+	 
+</style>

+ 100 - 0
xinlijiankang-uniapp-main/pages/user/kcxq.vue

@@ -0,0 +1,100 @@
+<template>
+	<view class="">
+			<view class="ddxqship">
+				<!-- 视频板块预留 -->
+			</view>
+			
+	 
+		<view class="ddxqfayu">
+			<view class="indhuyr">
+				<view class="indjbrr"></view>
+				<text>课程详情</text>
+			</view>
+			
+			<view style="margin-top: 30rpx;">
+				<view class="fzctob">
+					<view class="kcxquyr">
+						<text>课程名称</text>
+					</view>
+					<view class="kcxquyra">
+						<text>焦虑课程焦虑课程焦虑课程焦虑</text>
+					</view>
+				</view>
+				<view style="border-top: 2rpx dashed #e8e8e8;width: 100%;margin: 22rpx 0;"></view>
+				
+				<view class="fzctob">
+					<view class="kcxquyr">
+						<text>课程分类</text>
+					</view>
+					<view class="fzctob kcwwerrt">
+						<text>心里咨询</text>
+						<text>心里咨询</text>
+						<text>心里咨询</text>
+					</view>
+				</view>
+				<view style="border-top: 2rpx dashed #e8e8e8;width: 100%;margin: 22rpx 0;"></view>
+				
+				<view class="fzctob">
+					<view class="kcxquyr">
+						<text>直播时间</text>
+					</view>
+					<view class="kcxquyra">
+						<text>2022.02.22 22:00~22:00</text>
+					</view>
+				</view>
+				<view style="border-top: 2rpx dashed #e8e8e8;width: 100%;margin: 22rpx 0;"></view>
+				
+				<view class="fzctob">
+					<view class="kcxquyr">
+						<text>金额</text>
+					</view>
+					<view class="fzctob">
+						<text class="wdjga">¥</text>
+						<text class="wdjgb">00</text>
+						<text class="wdjgc">.00</text>
+						<text class="scjga">原价¥199</text>
+					</view>
+				</view>
+			</view>
+		</view>
+		
+		<view class="flztoa kcquuer">
+			<view class="kqyyefh">
+				<text>普通/697¥</text>
+			</view>
+			<view class="kqyyefha">
+				<text>会员/399¥</text>
+			</view>
+		</view>
+		 
+
+		 
+		
+		 
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+
+			}
+		},
+
+
+	}
+</script>
+
+<style lang="scss" scoped>
+	 
+	 
+ 
+ 
+	 
+	 
+</style>

+ 131 - 0
xinlijiankang-uniapp-main/pages/user/khzx-xq.vue

@@ -0,0 +1,131 @@
+<template>
+	<view class="">
+		<u-navbar :border-bottom="false" back-icon-size="35"  title-size="32" :background="background"
+			:back-text-style="hhyanm" title-color="#ffffff" back-icon-color="#ffffff"></u-navbar>
+
+		<view class="fzctob mywoddt" style="padding-bottom:30rpx;">
+			<image src="/static/lecturer/le01.png"
+				style="width: 152rpx;height: 152rpx;border-radius:160rpx;min-width:152rpx;margin-right: 24rpx;" mode="">
+			</image>
+			<view class="flztoa" style="width: 100%;">
+				<view class="fsxto">
+					<text class="letxtfy">一只小雯子</text>
+					<view class="fzctob letxtfya">
+						<text>专业咨询师</text>
+						<text>专业咨询师</text>
+					</view>
+				</view>
+
+			</view>
+		</view>
+		
+		<view class="flztoa shiddwe">
+			<view class="flztoa shiufh">
+				<view class="fzddrew">
+					<text>100</text>
+					<text class="shiufhtx">获赞</text>
+				</view>
+				<view class="fzddrew">
+					<text>100</text>
+					<text class="shiufhtx">获赞</text>
+				</view>
+			</view>
+			<view class="">
+				<image src="/static/index/ind1.png"  style="width: 116rpx;height: 48rpx;min-width: 116rpx;" mode=""></image>
+			</view>
+		</view>
+		
+		<view class="shiwdmmt">
+			<view class="indhuyr">
+				<view class="indjbrr"></view>
+				<text>动态</text>
+			</view>
+			
+			<navigator class="shidongt" url="../index/jiehuo-pl" hover-class="none">
+				<view class="shibbert">
+					<text>发布的动态发布的动态发布的动态发布的动态布的动 发布的动态发布的动态发布的动态发布的动态布的动 发布的动态发布的动态发布的动态……</text>
+				<view class="flztoa" style="margin-top: 46rpx;">
+					<view class="fzctob">
+						<image v-show="xqaxuye" @click="xqaxuye = false" src="/static/index/w1.png" style="width: 48rpx;height: 48rpx;min-width: 48rpx;" mode=""></image>
+						<image v-show="!xqaxuye"  @click="xqaxuye = true" src="/static/index/w2.png" style="width: 48rpx;height: 48rpx;min-width: 48rpx;" mode=""></image>
+						<text class="shitxty">29</text>
+						
+						<view style="margin-left: 40rpx;">
+							<image src="/static/index/w3.png" style="width: 48rpx;height: 48rpx;min-width: 48rpx;" mode=""></image>
+						</view>
+					</view>
+					<view class="">
+						<text class="shitxtya">2021.06.15</text>
+					</view>
+				</view>
+				</view>
+			</navigator>
+			
+			<navigator class="shidongt" url="../index/jiehuo-pl" hover-class="none">
+				<view class="shibbert">
+					<text>发布的动态发布的动态发布的动态发布的动态布的动 发布的动态发布的动态发布的动态发布的动态布的动 发布的动态发布的动态发布的动态……</text>
+				<view class="flztoa" style="margin-top: 46rpx;">
+					<view class="fzctob">
+						<image v-show="xqaxuye" @click="xqaxuye = false" src="/static/index/w1.png" style="width: 48rpx;height: 48rpx;min-width: 48rpx;" mode=""></image>
+						<image v-show="!xqaxuye"  @click="xqaxuye = true" src="/static/index/w2.png" style="width: 48rpx;height: 48rpx;min-width: 48rpx;" mode=""></image>
+						<text class="shitxty">29</text>
+						
+						<view style="margin-left: 40rpx;">
+							<image src="/static/index/w3.png" style="width: 48rpx;height: 48rpx;min-width: 48rpx;" mode=""></image>
+						</view>
+					</view>
+					<view class="">
+						<text class="shitxtya">2021.06.15</text>
+					</view>
+				</view>
+				</view>
+			</navigator>
+			
+			 
+		</view>
+		
+		
+		<view class="fzjtod shitoob">
+			 
+			<navigator class="shitoobtxt" url="../user/fkcg" hover-class="none">
+				<text>找他倾诉/697¥</text>
+			</navigator>
+		</view>
+		
+
+
+
+
+
+
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				xqaxuye:false,
+				background: {
+					backgroundColor: '#374B6E',
+				},
+				hhyanm: {
+					color: '#FFFFFF',
+				},
+
+
+			}
+		},
+
+
+	}
+</script>
+
+<style lang="scss" scoped>
+	 
+
+</style>

+ 199 - 0
xinlijiankang-uniapp-main/pages/user/khzx.vue

@@ -0,0 +1,199 @@
+<template>
+	<view class="">
+		<u-navbar :is-back="false" :border-bottom="false"  :background="background">
+			<view style="width: 100%;"> 
+			<view class="fzctob" style="padding: 0 30rpx;">
+				<image src="/static/index/inua.png" style="width: 24rpx;height: 24rpx;min-width: 24rpx;margin-right: 10rpx;" mode=""></image>
+				<view class="jhuudd">
+					<text>北京市</text>
+				</view>
+			</view>
+			</view>
+		</u-navbar>
+		
+		<view class="inbddwwer">
+			<view class="fzctob inbddwddre">
+				<image src="/static/index/ina1.png"
+					style="width: 40rpx;height: 40rpx;min-width: 40rpx;margin-right: 12rpx;"></image>
+				<input type="text" value="" placeholder-style="color: #CCCCCC;font-size: 28rpx;"
+					placeholder="搜索你感兴趣的内容" />
+			</view>
+		</view>
+		<view style="margin-top: 30rpx;">
+		 
+			<navigator class="fzctob wdlbgt" url="../user/khzx-xq" hover-class="none">
+				<image src="/static/lecturer/le01.png" style="width: 148rpx;height: 148rpx;min-width: 148rpx;border-radius:160rpx;" mode=""></image>
+				<view class="flztoa wdkkjruy">
+					<view class="fsxto">
+						<text class="wdtxtut">讲师</text>
+						<view class="fzctob wdtxtuta">
+							<text>讲师标签</text>
+							<text>讲师标签</text>
+							<text>讲师标签</text>
+						</view>
+						<view class="fzctob wdtxtutb">
+							<image src="/static/lecturer/lea2.png" style="width: 32rpx;height: 32rpx;min-width: 32rpx;" mode=""></image>
+							<text>北京市 昌平区 </text>
+						</view>
+					</view>
+					
+					<view class="fzddrew">
+						<image src="/static/lecturer/lea1.png" style="width:56rpx;height: 56rpx;min-width: 56rpx;" mode=""></image>
+						<view class="fzctob" style="height: 40rpx;margin-top: 20rpx;">
+							<text class="wdjga">¥</text>
+							<text class="wdjgb">00</text>
+							<text class="wdjgc">.00</text>
+						</view>
+					</view>
+					 
+				</view>
+			</navigator>
+			
+			<navigator class="fzctob wdlbgt" url="../user/khzx-xq" hover-class="none">
+				<image src="/static/lecturer/le01.png" style="width: 148rpx;height: 148rpx;min-width: 148rpx;border-radius:160rpx;" mode=""></image>
+				<view class="flztoa wdkkjruy">
+					<view class="fsxto">
+						<text class="wdtxtut">讲师</text>
+						<view class="fzctob wdtxtuta">
+							<text>讲师标签</text>
+							<text>讲师标签</text>
+							<text>讲师标签</text>
+						</view>
+						<view class="fzctob wdtxtutb">
+							<image src="/static/lecturer/lea2.png" style="width: 32rpx;height: 32rpx;min-width: 32rpx;" mode=""></image>
+							<text>北京市 昌平区 </text>
+						</view>
+					</view>
+					
+					<view class="fzddrew">
+						<image src="/static/lecturer/lea1.png" style="width:56rpx;height: 56rpx;min-width: 56rpx;" mode=""></image>
+						<view class="fzctob" style="height: 40rpx;margin-top: 20rpx;">
+							<text class="wdjga">¥</text>
+							<text class="wdjgb">00</text>
+							<text class="wdjgc">.00</text>
+						</view>
+					</view>
+					 
+				</view>
+			</navigator>
+			
+			<navigator class="fzctob wdlbgt" url="../user/khzx-xq" hover-class="none">
+				<image src="/static/lecturer/le01.png" style="width: 148rpx;height: 148rpx;min-width: 148rpx;border-radius:160rpx;" mode=""></image>
+				<view class="flztoa wdkkjruy">
+					<view class="fsxto">
+						<text class="wdtxtut">讲师</text>
+						<view class="fzctob wdtxtuta">
+							<text>讲师标签</text>
+							<text>讲师标签</text>
+							<text>讲师标签</text>
+						</view>
+						<view class="fzctob wdtxtutb">
+							<image src="/static/lecturer/lea2.png" style="width: 32rpx;height: 32rpx;min-width: 32rpx;" mode=""></image>
+							<text>北京市 昌平区 </text>
+						</view>
+					</view>
+					
+					<view class="fzddrew">
+						<image src="/static/lecturer/lea1.png" style="width:56rpx;height: 56rpx;min-width: 56rpx;" mode=""></image>
+						<view class="fzctob" style="height: 40rpx;margin-top: 20rpx;">
+							<text class="wdjga">¥</text>
+							<text class="wdjgb">00</text>
+							<text class="wdjgc">.00</text>
+						</view>
+					</view>
+					 
+				</view>
+			</navigator>
+			
+			<navigator class="fzctob wdlbgt" url="../user/khzx-xq" hover-class="none">
+				<image src="/static/lecturer/le01.png" style="width: 148rpx;height: 148rpx;min-width: 148rpx;border-radius:160rpx;" mode=""></image>
+				<view class="flztoa wdkkjruy">
+					<view class="fsxto">
+						<text class="wdtxtut">讲师</text>
+						<view class="fzctob wdtxtuta">
+							<text>讲师标签</text>
+							<text>讲师标签</text>
+							<text>讲师标签</text>
+						</view>
+						<view class="fzctob wdtxtutb">
+							<image src="/static/lecturer/lea2.png" style="width: 32rpx;height: 32rpx;min-width: 32rpx;" mode=""></image>
+							<text>北京市 昌平区 </text>
+						</view>
+					</view>
+					
+					<view class="fzddrew">
+						<image src="/static/lecturer/lea1.png" style="width:56rpx;height: 56rpx;min-width: 56rpx;" mode=""></image>
+						<view class="fzctob" style="height: 40rpx;margin-top: 20rpx;">
+							<text class="wdjga">¥</text>
+							<text class="wdjgb">00</text>
+							<text class="wdjgc">.00</text>
+						</view>
+					</view>
+					 
+				</view>
+			</navigator>
+			
+			
+			
+			
+			
+			
+		</view>
+	 
+
+		 <view style="height: 120rpx;"></view>
+		 <view class="dibuboot">
+		 	<navigator class="dibubootlb" url="../index/index" open-type="redirect" hover-class="none">
+		 		<image src="/static/dibu/boa1.png" style="width: 48rpx;height: 48rpx;"></image>
+		 		<text>首页</text>
+		 	</navigator>
+<!-- 		 	<navigator class="dibubootlb" url="../user/khzx" open-type="redirect" hover-class="none">
+		 		<image src="/static/dibu/bob2.png" style="width: 48rpx;height: 48rpx;"></image>
+		 		<text style="color: #374B6E">咨询</text>
+		 	</navigator>
+		 	<navigator class="dibubootlb" url="../user/us-jiehuo" open-type="redirect" hover-class="none">
+		 		<image src="/static/dibu/boa3.png" style="width: 48rpx;height: 48rpx;"></image>
+		 		<text>解惑</text>
+		 	</navigator> -->
+		 	<navigator class="dibubootlb" url="../user/my" open-type="redirect" hover-class="none">
+		 		<image src="/static/dibu/boa4.png" style="width: 48rpx;height: 48rpx;"></image>
+		 		<text>我的</text>
+		 	</navigator>
+		 </view>
+		
+		 
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				background: {
+					backgroundColor: '#ffffff',
+				},
+				hhyanm: {
+					color: '#FFFFFF',
+				},
+ 
+
+			}
+		},
+
+
+	}
+</script>
+
+<style lang="scss" scoped>
+	
+	 
+	
+ 
+ 
+	 
+	 
+</style>

+ 171 - 0
xinlijiankang-uniapp-main/pages/user/my.vue

@@ -0,0 +1,171 @@
+<template>
+	<view class="yywegg">
+		<u-navbar :is-back="false" :border-bottom="false" :background="background">
+			<view style="width: 100%;"> 
+			</view>
+		</u-navbar>
+		
+		<view class="">
+			
+			<view class="fzctob mywoddt" >
+				<image src="/static/lecturer/le01.png" style="width: 152rpx;height: 152rpx;border-radius:160rpx;min-width:152rpx;margin-right: 24rpx;"  mode=""></image>
+				<view class="flztoa" style="width: 100%;">
+					<view class="fsxto">
+						<text class="letxtfy">一只小雯子</text>
+						<text class="myddrttx">我的签名</text>
+					</view>
+					<view class="fzddrew letxtfyb">
+						<image src="/static/lecturer/le02.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
+						<text>切换身份</text>
+					</view>
+				</view>
+			</view>
+			
+			<!-- <view class="flztoa lebkty">
+				<navigator class="fzddrew" style="width: 25%;"  url="../user/us-wdgz"  hover-class="none">
+					<text>100</text>
+					<text class="leshurt">关注</text>
+				</navigator>
+				<view class="leshuxd"></view>
+				<navigator class="fzddrew" style="width: 25%;"  url="../user/us-wdsc"  hover-class="none">
+					<text>100</text>
+					<text class="leshurt">收藏</text>
+				</navigator>
+			</view> -->
+			
+		</view>
+		
+		<view class="leybbaw">
+			<navigator class="flztoa lelbyyr" url="../user/us-wdcp"  hover-class="none">
+				<text>我的测评</text>
+				<image src="/static/lecturer/le03.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
+			</navigator>
+			<view class="lehettnn"></view>
+			
+			<navigator class="flztoa lelbyyr" url="../user/us-wdxuexi"  hover-class="none">
+				<text>我的学习</text>
+				<image src="/static/lecturer/le03.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
+			</navigator>
+			<view class="lehettnn"></view>
+			
+			<!-- <navigator class="flztoa lelbyyr" url="../user/us-wdxuexi"  hover-class="none">
+				<text>我的咨询</text>
+				<image src="/static/lecturer/le03.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
+			</navigator>
+			<view class="lehettnn"></view>
+			
+			<navigator class="flztoa lelbyyr" url="../index/wdjh"  hover-class="none">
+				<text>我的解惑</text>
+				<image src="/static/lecturer/le03.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
+			</navigator>
+			<view class="lehettnn"></view> -->
+			
+			<!-- <navigator class="flztoa lelbyyr" url="../user/us-wdhd"  hover-class="none">
+				<text>我的活动</text>
+				<image src="/static/lecturer/le03.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
+			</navigator> -->
+			<view class="lehettnn"></view>
+			<!-- 
+			<navigator class="flztoa lelbyyr" url="../user/us-kcdd"  hover-class="none">
+				<text>课程订单</text>
+				<image src="/static/lecturer/le03.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
+			</navigator>
+		</view> -->
+		
+		<!-- <view class="leybbaw">
+			<view class="flztoa lelbyyr" @click="show = true" >
+				<text>邀请</text>
+				<image src="/static/lecturer/le03.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
+			</view>
+		</view>
+		 -->
+		<u-popup v-model="show" mode="center">
+			<view class="wdcjeer">
+				<view class="wddvbh">
+					<image src="/static/lecturer/le01.png" class="wddimg" mode=""></image>
+					<text class="wddvbhtxt">铁蛋的修仙之路</text>
+					<view class="fzctob kcwwerrt" style="margin-top: 10rpx;">
+						<text>心里咨询</text>
+						<text>心里咨询</text>
+						<text>心里咨询</text>
+					</view>
+				</view>
+				<view class="" style="height: 170rpx;"></view>
+		
+				<view class="wddbwwt">
+					<view class="wdbhgt">
+						<image src="/static/lecturer/le01.png" style="width: 318rpx;height: 318rpx;" mode=""></image>
+		
+					</view>
+		
+					<text class="wdbhddn">分享二维码</text>
+				</view>
+		
+				<view class="wddvbhyu">
+					<image src="/static/my/myq1.png" style="width: 128rpx;height: 128rpx;" mode=""></image>
+					<image src="/static/my/myq2.png" style="width: 128rpx;height: 128rpx;" mode=""></image>
+					<image src="/static/my/myq3.png" style="width: 128rpx;height: 128rpx;" mode=""></image>
+				</view>
+			</view>
+		
+		</u-popup>
+		
+		
+		<view style="height: 120rpx;"></view>
+		<view class="dibuboot">
+			<navigator class="dibubootlb" url="../index/index" open-type="redirect" hover-class="none">
+				<image src="/static/dibu/boa1.png" style="width: 48rpx;height: 48rpx;"></image>
+				<text>首页</text>
+			</navigator>
+<!-- 			<navigator class="dibubootlb" url="../user/khzx" open-type="redirect" hover-class="none">
+				<image src="/static/dibu/boa2.png" style="width: 48rpx;height: 48rpx;"></image>
+				<text>咨询</text>
+			</navigator>
+			<navigator class="dibubootlb" url="../user/us-jiehuo" open-type="redirect" hover-class="none">
+				<image src="/static/dibu/boa3.png" style="width: 48rpx;height: 48rpx;"></image>
+				<text>解惑</text>
+			</navigator> -->
+			<navigator class="dibubootlb" url="../user/my" open-type="redirect" hover-class="none">
+				<image src="/static/dibu/bob4.png" style="width: 48rpx;height: 48rpx;"></image>
+				<text style="color: #374B6E">我的</text>
+			</navigator>
+		</view>
+		
+		 
+
+		 
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				show: false,
+				background: {
+					backgroundColor: '#374B6E',
+				},
+
+			}
+		},
+
+
+	}
+</script>
+
+<style lang="scss" scoped>
+	.myddrttx{
+		font-size: 28rpx;
+		font-weight: 400;
+		color: #FAFAFA;
+		line-height: 40rpx;
+	}
+	
+	  
+	
+	 
+</style>

+ 183 - 0
xinlijiankang-uniapp-main/pages/user/rmkc.vue

@@ -0,0 +1,183 @@
+<template>
+	<view class="">
+		<u-navbar :border-bottom="false" back-icon-size="35" title="热门课程" title-size="32" :background="background"
+			:back-text-style="hhyanm" title-color="#FFFFFF" back-icon-color="#FFFFFF"></u-navbar>
+
+		<view class="zykkddr">
+			<view class="zykkddra">
+				<image src="/static/zy/zya1.png" style="width: 750rpx;height: 410rpx;margin-top: -102rpx;margin-left: 132rpx;" mode=""></image>
+			</view>
+			<view class="zykkddrb">
+				<view style="margin: 0 24rpx;">
+					<u-swiper :list="list" interval="58000" height="364" border-radius="16"></u-swiper>
+				</view>
+			</view>
+		</view>
+		
+		<view class="rmkdwwer">
+			<view class="fzctob inbddwddre">
+				<image src="/static/index/ina1.png"
+					style="width: 40rpx;height: 40rpx;min-width: 40rpx;margin-right: 12rpx;"></image>
+				<input type="text" value="" placeholder-style="color: #CCCCCC;font-size: 28rpx;"
+					placeholder="搜索你感兴趣的内容" />
+			</view>
+		</view>
+		
+		<view class="rmknuy">
+			<view class="zyhttry" style="padding: 20rpx 30rpx;">
+				<view class="zyjjdew"></view>
+				<text>热门课程</text>
+			</view>
+			<view class="rmkhdurr">
+				<view class="jhdurryt">
+					<text>分类</text>
+				</view>
+				<view class="jhdurryt">
+					<text>强化分类</text>
+				</view>
+				<view class="jhdurryt">
+					<text>强化分类</text>
+				</view>
+				<view class="jhdurryt">
+					<text>强化分类</text>
+				</view>
+				<view class="jhdurryt">
+					<text>强化分类</text>
+				</view>
+				<view class="jhdurryt">
+					<text>强化分类</text>
+				</view>
+			</view>
+			
+			<view style="padding: 20rpx 30rpx;">
+				
+				<view class="zytlidde">
+					<view class="zytyyrimg"></view>
+					<view class="zytyyopf">
+						<view class="zytyotxta"><text>视频名称视频名称</text></view>
+						<view class="flztoa zytyotxtb">
+							<text>小丸子</text>
+							<image src="/static/zy/zyb3.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
+						</view>
+						<view class="flztoa">
+							<view class="fzctob zytyotxtc">
+								<text>3982人观看</text>
+								<image v-show="xqaxuye" @click="xqaxuye = false" src="/static/zy/zyb1.png" style="width: 36rpx;height: 36rpx;margin-left: 20rpx;" mode=""></image>
+								<image  v-show="!xqaxuye"  @click="xqaxuye = true" src="/static/zy/zyb2.png" style="width: 36rpx;height: 36rpx;margin-left: 20rpx;" mode=""></image>
+							</view>
+							<text class="zytyotxtd">08:40分钟</text>
+						</view>
+					</view>
+				</view>
+				
+				<view class="zyhxyyer"></view>
+				<view class="zytlidde">
+					<view class="zytyyrimg"></view>
+					<view class="zytyyopf">
+						<view class="zytyotxta"><text>视频名称视频名称</text></view>
+						<view class="flztoa zytyotxtb">
+							<text>小丸子</text>
+							<image src="/static/zy/zyb3.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
+						</view>
+						<view class="flztoa">
+							<view class="fzctob zytyotxtc">
+								<text>3982人观看</text>
+								<image v-show="xqaxuye" @click="xqaxuye = false" src="/static/zy/zyb1.png" style="width: 36rpx;height: 36rpx;margin-left: 20rpx;" mode=""></image>
+								<image  v-show="!xqaxuye"  @click="xqaxuye = true" src="/static/zy/zyb2.png" style="width: 36rpx;height: 36rpx;margin-left: 20rpx;" mode=""></image>
+							</view>
+							<text class="zytyotxtd">08:40分钟</text>
+						</view>
+					</view>
+				</view>
+				
+				<view class="zyhxyyer"></view>
+				<view class="zytlidde">
+					<view class="zytyyrimg"></view>
+					<view class="zytyyopf">
+						<view class="zytyotxta"><text>视频名称视频名称</text></view>
+						<view class="flztoa zytyotxtb">
+							<text>小丸子</text>
+							<image src="/static/zy/zyb3.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
+						</view>
+						<view class="flztoa">
+							<view class="fzctob zytyotxtc">
+								<text>3982人观看</text>
+								<image v-show="xqaxuyea" @click="xqaxuyea = false" src="/static/zy/zyb1.png" style="width: 36rpx;height: 36rpx;margin-left: 20rpx;" mode=""></image>
+								<image  v-show="!xqaxuyea"  @click="xqaxuyea = true" src="/static/zy/zyb2.png" style="width: 36rpx;height: 36rpx;margin-left: 20rpx;" mode=""></image>
+							</view>
+							<text class="zytyotxtd">08:40分钟</text>
+						</view>
+					</view>
+				</view>
+				
+				<view class="zyhxyyer"></view>
+				<view class="zytlidde">
+					<view class="zytyyrimg"></view>
+					<view class="zytyyopf">
+						<view class="zytyotxta"><text>视频名称视频名称</text></view>
+						<view class="flztoa zytyotxtb">
+							<text>小丸子</text>
+							<image src="/static/zy/zyb3.png" style="width: 48rpx;height: 48rpx;" mode=""></image>
+						</view>
+						<view class="flztoa">
+							<view class="fzctob zytyotxtc">
+								<text>3982人观看</text>
+								<image v-show="xqaxuyeb" @click="xqaxuyeb = false" src="/static/zy/zyb1.png" style="width: 36rpx;height: 36rpx;margin-left: 20rpx;" mode=""></image>
+								<image  v-show="!xqaxuyeb"  @click="xqaxuyeb = true" src="/static/zy/zyb2.png" style="width: 36rpx;height: 36rpx;margin-left: 20rpx;" mode=""></image>
+							</view>
+							<text class="zytyotxtd">08:40分钟</text>
+						</view>
+					</view>
+				</view>
+				
+				<view class="zyhxyyer"></view>
+			</view>
+			
+			
+		</view>
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				xqaxuye:false,
+				xqaxuyea:true,
+				xqaxuyeb:true,
+				background: {
+					backgroundColor: '#486A92',
+				},
+				hhyanm: {
+					color: '#FFFFFF',
+				},
+				timestamp: 86400,
+				list: [{
+						image: '/static/gaoduwe.png',
+						title: '测试'
+					},
+					{
+						image: '/static/gaoduwe.png',
+						title: '测试'
+					},
+					{
+						image: '/static/gaoduwe.png',
+						title: '测试'
+					}
+				],
+
+			}
+		},
+
+
+	}
+</script>
+
+<style lang="scss" scoped>
+	 
+	 
+</style>

+ 50 - 0
xinlijiankang-uniapp-main/pages/user/us-cpfa.vue

@@ -0,0 +1,50 @@
+<template>
+	<view class="ayuu">
+ 
+		<view class="cpfapryu">
+			<view class="indhuyr">
+				<view class="indjbrr"></view>
+				<text>课程</text>
+			</view>
+			
+			<view class="cpfapryukan">
+				<text>
+					需要补充某某每日多少,如何服用;某某某
+					某。。。。
+				</text>
+			</view>
+			
+			 
+		</view>
+		 
+
+		 
+		
+		 
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+ 
+ 
+
+			}
+		},
+
+
+	}
+</script>
+
+<style lang="scss" scoped>
+ 
+ 
+	 
+	 
+</style>

+ 175 - 0
xinlijiankang-uniapp-main/pages/user/us-jiehuo.vue

@@ -0,0 +1,175 @@
+<template>
+	<view class="">
+		<u-navbar :is-back="false" :border-bottom="false"  :background="background">
+			<view style="width: 100%;"> 
+			<view class="fzctob" style="padding: 0 30rpx;">
+				<image src="/static/index/inua.png" style="width: 24rpx;height: 24rpx;min-width: 24rpx;margin-right: 10rpx;" mode=""></image>
+				<view class="jhuudd">
+					<text>北京市</text>
+				</view>
+			</view>
+			</view>
+		</u-navbar>
+		
+		<view class="inbddwwer">
+			<view class="fzctob inbddwddre">
+				<image src="/static/index/ina1.png"
+					style="width: 40rpx;height: 40rpx;min-width: 40rpx;margin-right: 12rpx;"></image>
+				<input type="text" value="" placeholder-style="color: #CCCCCC;font-size: 28rpx;"
+					placeholder="搜索你感兴趣的内容" />
+			</view>
+		</view>
+		
+		<view class="jhdurr">
+			<view class="jhdurryt">
+				<text>分类</text>
+			</view>
+			<view class="jhdurryt">
+				<text>咨询分类</text>
+			</view>
+			<view class="jhdurryt">
+				<text>咨询分类</text>
+			</view>
+			<view class="jhdurryt">
+				<text>咨询分类</text>
+			</view>
+			<view class="jhdurryt">
+				<text>咨询分类</text>
+			</view>
+			<view class="jhdurryt">
+				<text>咨询分类</text>
+			</view>
+		</view>
+			
+	 
+		<view class="">
+			 
+			<navigator class="fsxto jhkanuy" url="../index/jiehuo-pl"  hover-class="none">
+				<view class="fzctob">
+					<view class="jhuuimg">
+						<image src="/static/lecturer/le01.png" style="width: 88rpx;height: 88rpx;min-width: 88rpx;border-radius: 200rpx;" mode=""></image>
+					</view>
+					<view class="fsxto" style="width: 100%;margin-left: 12rpx;">
+						<view class="flztoa">
+							<text class="jhtxty">一只小雯子</text>
+							<text class="jhtxtya">1小时前</text>
+						</view>
+						<view class="jhtxtyb">
+							<text>个人签名</text>
+						</view>
+					</view>
+				</view>
+				<view class="jhtxtyc">
+					<text>每天上班,业余时间做做运动,累了拍拍视频,做一切自己喜 欢的事情~</text>
+				</view>
+				<view class="flztoa" style="margin-top: 30rpx;">
+					<view class="fzctob">
+						<image v-show="xqaxuye" @click="xqaxuye = false" src="/static/index/w1.png" style="width: 48rpx;height: 48rpx;min-width: 48rpx;" mode=""></image>
+						<image v-show="!xqaxuye" @click="xqaxuye = true" src="/static/index/w2.png" style="width: 48rpx;height: 48rpx;min-width: 48rpx;" mode=""></image>
+						<text class="shitxty">29</text>
+			
+						<view style="margin-left: 40rpx;">
+							<image src="/static/index/w3.png" style="width: 48rpx;height: 48rpx;min-width: 48rpx;" mode=""></image>
+						</view>
+					</view>
+					<view class="">
+						<text class="shitxtya">2021.06.15</text>
+			 	</view>
+				</view>
+			</navigator>
+			
+			<navigator class="fsxto jhkanuy" url="../index/jiehuo-pl"  hover-class="none">
+				<view class="fzctob">
+					<view class="jhuuimg">
+						<image src="/static/lecturer/le01.png" style="width: 88rpx;height: 88rpx;min-width: 88rpx;border-radius: 200rpx;" mode=""></image>
+					</view>
+					<view class="fsxto" style="width: 100%;margin-left: 12rpx;">
+						<view class="flztoa">
+							<text class="jhtxty">一只小雯子</text>
+							<text class="jhtxtya">1小时前</text>
+						</view>
+						<view class="jhtxtyb">
+							<text>个人签名</text>
+						</view>
+					</view>
+				</view>
+				<view class="jhtxtyc">
+					<text>每天上班,业余时间做做运动,累了拍拍视频,做一切自己喜 欢的事情~</text>
+				</view>
+				<view class="flztoa" style="margin-top: 30rpx;">
+					<view class="fzctob">
+						<image v-show="xqaxuye" @click="xqaxuye = false" src="/static/index/w1.png" style="width: 48rpx;height: 48rpx;min-width: 48rpx;" mode=""></image>
+						<image v-show="!xqaxuye" @click="xqaxuye = true" src="/static/index/w2.png" style="width: 48rpx;height: 48rpx;min-width: 48rpx;" mode=""></image>
+						<text class="shitxty">29</text>
+			
+						<view style="margin-left: 40rpx;">
+							<image src="/static/index/w3.png" style="width: 48rpx;height: 48rpx;min-width: 48rpx;" mode=""></image>
+						</view>
+					</view>
+					<view class="">
+						<text class="shitxtya">2021.06.15</text>
+			 	</view>
+				</view>
+			</navigator>
+			 
+		</view>
+		 <view class="youjdje">
+		 	<image src="/static/index/inr2.png" style="width: 96rpx;height: 96rpx;min-width: 96rpx;" mode=""></image>
+		 </view>
+
+		 <view style="height: 120rpx;"></view>
+		 <view class="dibuboot">
+		 	<navigator class="dibubootlb" url="../index/index" open-type="redirect" hover-class="none">
+		 		<image src="/static/dibu/boa1.png" style="width: 48rpx;height: 48rpx;"></image>
+		 		<text>首页</text>
+		 	</navigator>
+<!-- 		 	<navigator class="dibubootlb" url="../user/khzx" open-type="redirect" hover-class="none">
+		 		<image src="/static/dibu/boa2.png" style="width: 48rpx;height: 48rpx;"></image>
+		 		<text>咨询</text>
+		 	</navigator>
+		 	<navigator class="dibubootlb" url="../user/us-jiehuo" open-type="redirect" hover-class="none">
+		 		<image src="/static/dibu/bob3.png" style="width: 48rpx;height: 48rpx;"></image>
+		 		<text style="color: #374B6E">解惑</text>
+		 	</navigator> -->
+		 	<navigator class="dibubootlb" url="../user/my" open-type="redirect" hover-class="none">
+		 		<image src="/static/dibu/boa4.png" style="width: 48rpx;height: 48rpx;"></image>
+		 		<text>我的</text>
+		 	</navigator>
+		 </view>
+		
+		 
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				background: {
+					backgroundColor: '#ffffff',
+				},
+				hhyanm: {
+					color: '#FFFFFF',
+				},
+ 
+
+			}
+		},
+
+
+	}
+</script>
+
+<style lang="scss" scoped>
+	
+	 
+	
+ 
+ 
+	 
+	 
+</style>

+ 65 - 0
xinlijiankang-uniapp-main/pages/user/us-wdcp.vue

@@ -0,0 +1,65 @@
+<template>
+	<view class="ayuu">
+ 
+		<view class="">
+			<navigator class="fzctob sclixmy" url="../user/us-cpfa" hover-class="none">
+				<view class="sckjert">
+					<!-- 图片预留 -->
+				</view>
+				<view class="fsxto" style="width: 100%;margin-left: 24rpx;">
+					<view class="cphrry"><text>焦虑课程焦虑课程焦虑课程焦虑</text></view>
+					<view class="cptxtyra"><text>下单时间:2018-01-13 19:0</text></view>
+					<view class="flztoa">
+						 <text class="cpkkry">数量: 1</text>
+						 <text class="cpkkrya">总价¥200.00</text>
+					</view>
+				</view>
+			</navigator>
+			
+			<navigator class="fzctob sclixmy" url="../user/us-cpfa" hover-class="none">
+				<view class="sckjert">
+					<!-- 图片预留 -->
+				</view>
+				<view class="fsxto" style="width: 100%;margin-left: 24rpx;">
+					<view class="cphrry"><text>焦虑课程焦虑课程焦虑课程焦虑</text></view>
+					<view class="cptxtyra"><text>下单时间:2018-01-13 19:0</text></view>
+					<view class="flztoa">
+						 <text class="cpkkry">数量: 1</text>
+						 <text class="cpkkrya">总价¥200.00</text>
+					</view>
+				</view>
+			</navigator>
+			
+			 
+			
+		</view>
+		
+		 
+
+		 
+		
+		 
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+ 
+ 
+
+			}
+		},
+
+
+	}
+</script>
+
+<style lang="scss" scoped>
+ 
+</style>

+ 160 - 0
xinlijiankang-uniapp-main/pages/user/us-wdgz.vue

@@ -0,0 +1,160 @@
+<template>
+	<view class="">
+		<view class="inbddwwer">
+			<view class="fzctob inbddwddre">
+				<image src="/static/index/ina1.png"
+					style="width: 40rpx;height: 40rpx;min-width: 40rpx;margin-right: 12rpx;"></image>
+				<input type="text" value="" placeholder-style="color: #CCCCCC;font-size: 28rpx;"
+					placeholder="搜索你感兴趣的内容" />
+			</view>
+		</view>
+		
+		<view style="margin-top: 30rpx;">
+			
+			<view class="fzctob wdlbgt">
+				<image src="/static/lecturer/le01.png" style="width: 148rpx;height: 148rpx;min-width: 148rpx;border-radius:160rpx;" mode=""></image>
+				<view class="flztoa wdkkjruy">
+					<view class="fsxto">
+						<text class="wdtxtut">讲师</text>
+						<view class="fzctob wdtxtuta">
+							<text>讲师标签</text>
+							<text>讲师标签</text>
+							<text>讲师标签</text>
+						</view>
+						<view class="fzctob wdtxtutb">
+							<image src="/static/lecturer/lea2.png" style="width: 32rpx;height: 32rpx;min-width: 32rpx;" mode=""></image>
+							<text>北京市 昌平区 </text>
+						</view>
+					</view>
+					
+					<view class="fzddrew">
+						<image src="/static/lecturer/lea1.png" style="width:56rpx;height: 56rpx;min-width: 56rpx;" mode=""></image>
+						<view class="fzctob" style="height: 40rpx;margin-top: 20rpx;">
+							<text class="wdjga">¥</text>
+							<text class="wdjgb">00</text>
+							<text class="wdjgc">.00</text>
+						</view>
+					</view>
+					 
+				</view>
+			</view>
+			
+			<view class="fzctob wdlbgt">
+				<image src="/static/lecturer/le01.png" style="width: 148rpx;height: 148rpx;min-width: 148rpx;border-radius:160rpx;" mode=""></image>
+				<view class="flztoa wdkkjruy">
+					<view class="fsxto">
+						<text class="wdtxtut">讲师</text>
+						<view class="fzctob wdtxtuta">
+							<text>讲师标签</text>
+							<text>讲师标签</text>
+							<text>讲师标签</text>
+						</view>
+						<view class="fzctob wdtxtutb">
+							<image src="/static/lecturer/lea2.png" style="width: 32rpx;height: 32rpx;min-width: 32rpx;" mode=""></image>
+							<text>北京市 昌平区 </text>
+						</view>
+					</view>
+					
+					<view class="fzddrew">
+						<image src="/static/lecturer/lea1.png" style="width:56rpx;height: 56rpx;min-width: 56rpx;" mode=""></image>
+						<view class="fzctob" style="height: 40rpx;margin-top: 20rpx;">
+							<text class="wdjga">¥</text>
+							<text class="wdjgb">00</text>
+							<text class="wdjgc">.00</text>
+						</view>
+					</view>
+					 
+				</view>
+			</view>
+			
+			<view class="fzctob wdlbgt">
+				<image src="/static/lecturer/le01.png" style="width: 148rpx;height: 148rpx;min-width: 148rpx;border-radius:160rpx;" mode=""></image>
+				<view class="flztoa wdkkjruy">
+					<view class="fsxto">
+						<text class="wdtxtut">讲师</text>
+						<view class="fzctob wdtxtuta">
+							<text>讲师标签</text>
+							<text>讲师标签</text>
+							<text>讲师标签</text>
+						</view>
+						<view class="fzctob wdtxtutb">
+							<image src="/static/lecturer/lea2.png" style="width: 32rpx;height: 32rpx;min-width: 32rpx;" mode=""></image>
+							<text>北京市 昌平区 </text>
+						</view>
+					</view>
+					
+					<view class="fzddrew">
+						<image src="/static/lecturer/lea1.png" style="width:56rpx;height: 56rpx;min-width: 56rpx;" mode=""></image>
+						<view class="fzctob" style="height: 40rpx;margin-top: 20rpx;">
+							<text class="wdjga">¥</text>
+							<text class="wdjgb">00</text>
+							<text class="wdjgc">.00</text>
+						</view>
+					</view>
+					 
+				</view>
+			</view>
+			
+			<view class="fzctob wdlbgt">
+				<image src="/static/lecturer/le01.png" style="width: 148rpx;height: 148rpx;min-width: 148rpx;border-radius:160rpx;" mode=""></image>
+				<view class="flztoa wdkkjruy">
+					<view class="fsxto">
+						<text class="wdtxtut">讲师</text>
+						<view class="fzctob wdtxtuta">
+							<text>讲师标签</text>
+							<text>讲师标签</text>
+							<text>讲师标签</text>
+						</view>
+						<view class="fzctob wdtxtutb">
+							<image src="/static/lecturer/lea2.png" style="width: 32rpx;height: 32rpx;min-width: 32rpx;" mode=""></image>
+							<text>北京市 昌平区 </text>
+						</view>
+					</view>
+					
+					<view class="fzddrew">
+						<image src="/static/lecturer/lea1.png" style="width:56rpx;height: 56rpx;min-width: 56rpx;" mode=""></image>
+						<view class="fzctob" style="height: 40rpx;margin-top: 20rpx;">
+							<text class="wdjga">¥</text>
+							<text class="wdjgb">00</text>
+							<text class="wdjgc">.00</text>
+						</view>
+					</view>
+					 
+				</view>
+			</view>
+			
+			
+			
+			
+			
+			
+		</view>
+
+		 
+		
+		 
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+ 
+ 
+
+			}
+		},
+
+
+	}
+</script>
+
+<style lang="scss" scoped>
+	 
+	 
+</style>

+ 244 - 0
xinlijiankang-uniapp-main/pages/user/us-wdhd.vue

@@ -0,0 +1,244 @@
+<template>
+	<view class="">
+			
+		 <view class="zxkjyr" style="padding: 0  42rpx;padding-top: 12rpx;">
+			 
+		 	<view :class="['zxkjyra',Inv==0?'zxkjyrff':'']" @click="Inv=0">
+		 		<text>进行中</text>
+		 		<view class="zxkjxh"></view>
+		 	</view>
+			
+			<view :class="['zxkjyra',Inv==1?'zxkjyrff':'']" @click="Inv=1">
+				<text>未开始</text>
+				<view class="zxkjxh"></view>
+			</view>
+			
+		 	<view :class="['zxkjyra',Inv==2?'zxkjyrff':'']" @click="Inv=2">
+		 		<text>已结束</text>
+		 		<view class="zxkjxh"></view>
+		 	</view>
+			
+		 </view>
+		 
+		<view class=" " v-show="Inv == 0">
+			<view style="margin-top: 30rpx;">
+				<view class="fsxto sclixmy">
+					<navigator class="fzctob"  url="../user/wdhd-xq"  hover-class="none">
+						<view class="sckjert">
+							<!-- 图片预留 -->
+						</view>
+						<view class="fsxto" style="width: 100%;margin-left: 24rpx;">
+							<view class="cphrry"><text>焦虑课程焦虑课程焦虑课程焦虑</text></view>
+							<view class="cptxtyra"><text>课程讲师</text></view>
+							<view class="flztoa">
+								 <text class="cpkkry">数量: 1</text>
+								 <text class="cpkkrya">总价¥200.00</text>
+							</view>
+						</view>
+					</navigator>
+					<view style="border-top: 2rpx dashed #e8e8e8;width: 107%;margin-left: -24rpx;margin-top: 22rpx;"></view>
+					<view class="flztoa" style="margin-top: 26rpx;">
+						<view class="hdtyyr">
+							<text>下单时间:2018-01-13 19:0</text>
+						</view>
+						<view class="hdtyyra">
+							<text>进行中</text>
+						</view>
+					</view>
+				</view>
+				
+				<view class="fsxto sclixmy">
+					<navigator class="fzctob"  url="../user/wdhd-xq"  hover-class="none">
+						<view class="sckjert">
+							<!-- 图片预留 -->
+						</view>
+						<view class="fsxto" style="width: 100%;margin-left: 24rpx;">
+							<view class="cphrry"><text>焦虑课程焦虑课程焦虑课程焦虑</text></view>
+							<view class="cptxtyra"><text>课程讲师</text></view>
+							<view class="flztoa">
+								 <text class="cpkkry">数量: 1</text>
+								 <text class="cpkkrya">总价¥200.00</text>
+							</view>
+						</view>
+					</navigator>
+					<view style="border-top: 2rpx dashed #e8e8e8;width: 107%;margin-left: -24rpx;margin-top: 22rpx;"></view>
+					<view class="flztoa" style="margin-top: 26rpx;">
+						<view class="hdtyyr">
+							<text>下单时间:2018-01-13 19:0</text>
+						</view>
+						<view class="hdtyyra">
+							<text>进行中</text>
+						</view>
+					</view>
+				</view>
+			</view>
+ 
+		</view>
+		
+		<view class=" " v-show="Inv == 1">
+			<view style="margin-top: 30rpx;">
+				<view class="fsxto sclixmy">
+					<navigator class="fzctob"  url="../user/wdhd-xq"  hover-class="none">
+						<view class="sckjert">
+							<!-- 图片预留 -->
+						</view>
+						<view class="fsxto" style="width: 100%;margin-left: 24rpx;">
+							<view class="cphrry"><text>焦虑课程焦虑课程焦虑课程焦虑</text></view>
+							<view class="cptxtyra"><text>课程讲师</text></view>
+							<view class="flztoa">
+								 <text class="cpkkry">数量: 1</text>
+								 <text class="cpkkrya">总价¥200.00</text>
+							</view>
+						</view>
+					</navigator>
+					<view style="border-top: 2rpx dashed #e8e8e8;width: 107%;margin-left: -24rpx;margin-top: 22rpx;"></view>
+					<view class="flztoa" style="margin-top: 26rpx;">
+						<view class="hdtyyr">
+							<text>下单时间:2018-01-13 19:0</text>
+						</view>
+						<view class="fyctoc">
+							<navigator class="hdtyyra" url="../user/wdhd-tc"  hover-class="none">
+								<text>去请假</text>
+							</navigator>
+							<navigator class="hdtyyra" url="../user/wdhd-tc"  hover-class="none">
+								<text>去退出</text>
+							</navigator>
+						</view>
+					</view>
+				</view>
+				
+				<view class="fsxto sclixmy">
+					<navigator class="fzctob"  url="../user/wdhd-xq"  hover-class="none">
+						<view class="sckjert">
+							<!-- 图片预留 -->
+						</view>
+						<view class="fsxto" style="width: 100%;margin-left: 24rpx;">
+							<view class="cphrry"><text>焦虑课程焦虑课程焦虑课程焦虑</text></view>
+							<view class="cptxtyra"><text>课程讲师</text></view>
+							<view class="flztoa">
+								 <text class="cpkkry">数量: 1</text>
+								 <text class="cpkkrya">总价¥200.00</text>
+							</view>
+						</view>
+					</navigator>
+					<view style="border-top: 2rpx dashed #e8e8e8;width: 107%;margin-left: -24rpx;margin-top: 22rpx;"></view>
+					<view class="flztoa" style="margin-top: 26rpx;">
+						<view class="hdtyyr">
+							<text>下单时间:2018-01-13 19:0</text>
+						</view>
+						<view class="fyctoc">
+							<navigator class="hdtyyra" url="../user/wdhd-tc"  hover-class="none">
+								<text>去请假</text>
+							</navigator>
+							<navigator class="hdtyyra" url="../user/wdhd-tc"  hover-class="none">
+								<text>去退出</text>
+							</navigator>
+						</view>
+						 
+					</view>
+				</view>
+			</view>
+		 
+		</view>
+		
+		<view class=" " v-show="Inv == 2">
+			<view style="margin-top: 30rpx;">
+				<view class="fsxto sclixmy">
+					
+					<navigator class="fzctob"  url="../user/wdhd-xq"  hover-class="none">
+						<view class="sckjert">
+							<!-- 图片预留 -->
+						</view>
+						<view class="fsxto" style="width: 100%;margin-left: 24rpx;">
+							<view class="cphrry"><text>焦虑课程焦虑课程焦虑课程焦虑</text></view>
+							<view class="cptxtyra"><text>课程讲师</text></view>
+							<view class="flztoa">
+								 <text class="cpkkry">数量: 1</text>
+								 <text class="cpkkrya">总价¥200.00</text>
+							</view>
+						</view>
+					</navigator>
+					
+					<view style="border-top: 2rpx dashed #e8e8e8;width: 107%;margin-left: -24rpx;margin-top: 22rpx;"></view>
+					<view class="flztoa" style="margin-top: 26rpx;">
+						<view class="hdtyyr">
+							<text>下单时间:2018-01-13 19:0</text>
+						</view>
+						<view class="hdtyyra">
+							<text>已结束</text>
+						</view>
+					</view>
+				</view>
+				
+				<view class="fsxto sclixmy">
+					
+					<navigator class="fzctob"  url="../user/wdhd-xq"  hover-class="none">
+						<view class="sckjert">
+							<!-- 图片预留 -->
+						</view>
+						<view class="fsxto" style="width: 100%;margin-left: 24rpx;">
+							<view class="cphrry"><text>焦虑课程焦虑课程焦虑课程焦虑</text></view>
+							<view class="cptxtyra"><text>课程讲师</text></view>
+							<view class="flztoa">
+								 <text class="cpkkry">数量: 1</text>
+								 <text class="cpkkrya">总价¥200.00</text>
+							</view>
+						</view>
+					</navigator>
+					
+					<view style="border-top: 2rpx dashed #e8e8e8;width: 107%;margin-left: -24rpx;margin-top: 22rpx;"></view>
+					<view class="flztoa" style="margin-top: 26rpx;">
+						<view class="hdtyyr">
+							<text>下单时间:2018-01-13 19:0</text>
+						</view>
+						<view class="hdtyyra">
+							<text>已结束</text>
+						</view>
+					</view>
+				</view>
+			</view>
+		 
+		</view>
+		
+ 
+		 
+		
+		 
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				background: {
+					backgroundColor: '#ffffff',
+				},
+				hhyanm: {
+					color: '#FFFFFF',
+				},
+				Inv: 0
+ 
+
+			}
+		},
+		methods: {
+			changeTab(Inv) {
+				that.navIdx = Inv;
+		
+			},
+
+		}
+
+
+	}
+</script>
+
+<style lang="scss" scoped>
+ 
+	 
+</style>

+ 100 - 0
xinlijiankang-uniapp-main/pages/user/us-wdsc.vue

@@ -0,0 +1,100 @@
+<template>
+	<view class="ayuu">	
+		<view class="">
+			<view class="fzctob sclixmy">
+				<view class="sckjert">
+					<!-- 图片预留 -->
+				</view>
+				<view class="fsxto" style="width: 100%;margin-left: 24rpx;">
+					<view class="sctxtyuu"><text>焦虑课程焦虑课程焦虑课程焦虑</text></view>
+					<view class="sctxtyuua"><text>课程讲师或其他信息</text></view>
+					<view class="fzctob">
+						<text class="wdjga">¥</text>
+						<text class="wdjgb">00</text>
+						<text class="wdjgc">.00</text>
+						<text class="scjga">原价¥199</text>
+					</view>
+				</view>
+			</view>
+			
+			<view class="fzctob sclixmy">
+				<view class="sckjert">
+					<!-- 图片预留 -->
+				</view>
+				<view class="fsxto" style="width: 100%;margin-left: 24rpx;">
+					<view class="sctxtyuu"><text>焦虑课程焦虑课程焦虑课程焦虑</text></view>
+					<view class="sctxtyuua"><text>课程讲师或其他信息</text></view>
+					<view class="fzctob">
+						<text class="wdjga">¥</text>
+						<text class="wdjgb">00</text>
+						<text class="wdjgc">.00</text>
+						<text class="scjga">原价¥199</text>
+					</view>
+				</view>
+			</view>
+			
+			<view class="fzctob sclixmy">
+				<view class="sckjert">
+					<!-- 图片预留 -->
+				</view>
+				<view class="fsxto" style="width: 100%;margin-left: 24rpx;">
+					<view class="sctxtyuu"><text>焦虑课程焦虑课程焦虑课程焦虑</text></view>
+					<view class="sctxtyuua"><text>课程讲师或其他信息</text></view>
+					<view class="fzctob">
+						<text class="wdjga">¥</text>
+						<text class="wdjgb">00</text>
+						<text class="wdjgc">.00</text>
+						<text class="scjga">原价¥199</text>
+					</view>
+				</view>
+			</view>
+			
+			<view class="fzctob sclixmy">
+				<view class="sckjert">
+					<!-- 图片预留 -->
+				</view>
+				<view class="fsxto" style="width: 100%;margin-left: 24rpx;">
+					<view class="sctxtyuu"><text>焦虑课程焦虑课程焦虑课程焦虑</text></view>
+					<view class="sctxtyuua"><text>课程讲师或其他信息</text></view>
+					<view class="fzctob">
+						<text class="wdjga">¥</text>
+						<text class="wdjgb">00</text>
+						<text class="wdjgc">.00</text>
+						<text class="scjga">原价¥199</text>
+					</view>
+				</view>
+			</view>
+			
+		</view>
+		
+		 
+
+		 
+		
+		 
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+ 
+ 
+
+			}
+		},
+
+
+	}
+</script>
+
+<style lang="scss" scoped>
+	 
+	 
+	 
+</style>

+ 90 - 0
xinlijiankang-uniapp-main/pages/user/us-wdxuexi.vue

@@ -0,0 +1,90 @@
+<template>
+	<view class="ayuu">
+ 
+		<view class="xuehhbfr">
+			<view class="indhuyr">
+				<view class="indjbrr"></view>
+				<text>今天</text>
+			</view>
+			<view>
+				<navigator class="fzctob xiekkt" url="../lecturer/cpfa" hover-class="none">
+					<view class="sckjert">
+						<!-- 图片预留 -->
+					</view>
+					<view class="fsxto" style="width: 100%;margin-left: 24rpx;">
+						<view class="cphrry"><text>焦虑课程焦虑课程焦虑课程焦虑</text></view>
+						<view class="cptxtyra" style="margin-top: 4rpx;margin-bottom: 0;"><text>观看至50%</text></view>
+					</view>
+				</navigator>
+				
+			</view>
+		</view>
+		
+		<view class="xuehhbfr">
+			<view class="indhuyr">
+				<view class="indjbrr"></view>
+				<text>昨天</text>
+			</view>
+			<view>
+				<navigator class="fzctob xiekkt" url="../lecturer/cpfa" hover-class="none">
+					<view class="sckjert">
+						<!-- 图片预留 -->
+					</view>
+					<view class="fsxto" style="width: 100%;margin-left: 24rpx;">
+						<view class="cphrry"><text>焦虑课程焦虑课程焦虑课程焦虑</text></view>
+						<view class="cptxtyra" style="margin-top: 4rpx;margin-bottom: 0;"><text>观看至50%</text></view>
+					</view>
+				</navigator>
+				
+			</view>
+		</view>
+		
+		<view class="xuehhbfr">
+			<view class="indhuyr">
+				<view class="indjbrr"></view>
+				<text>更早</text>
+			</view>
+			<view>
+				<navigator class="fzctob xiekkt" url="../lecturer/cpfa" hover-class="none">
+					<view class="sckjert">
+						<!-- 图片预留 -->
+					</view>
+					<view class="fsxto" style="width: 100%;margin-left: 24rpx;">
+						<view class="cphrry"><text>焦虑课程焦虑课程焦虑课程焦虑</text></view>
+						<view class="cptxtyra" style="margin-top: 4rpx;margin-bottom: 0;"><text>观看至50%</text></view>
+					</view>
+				</navigator>
+				
+			</view>
+		</view>
+		 
+
+		 
+		
+		 
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+ 
+			}
+		},
+
+
+	}
+</script>
+
+<style lang="scss" scoped>
+	 
+ 
+ 
+	 
+	 
+</style>

+ 195 - 0
xinlijiankang-uniapp-main/pages/user/wdhd-tc.vue

@@ -0,0 +1,195 @@
+<template>
+	<view class="ayuu">
+ 
+		<view class="hdtgyyqb">
+
+			<view class="flztoa hdtcuur"  @click="chooseType">
+                <view class="fzctob">
+                    <view class="hdtcuutxt"><text>申请退出</text></view>
+                    <view class=""><text>{{type==1?'我要退出退款':'我要请假'}}</text></view>
+                </view>
+				<image src="/static/user/hdr1.png" style="width: 48rpx;min-width: 48rpx;height: 48rpx;" mode=""></image>
+			</view>
+			
+			<view class="flztoa hdtcuur" @click="chooseliyou">
+				<view class="fzctob">
+					<view class="hdtcuutxt"><text>申请原因</text></view>
+					<view class="hdtcuutxta"><text>{{liyou[curliyou]}}</text></view>
+				</view>
+				<image src="/static/user/hdr1.png" style="width: 48rpx;min-width: 48rpx;height: 48rpx;" mode=""></image>
+			</view>
+		</view>
+		
+		<view class="flztoa hdtcjr">
+			<view class="fsxto">
+				<view class="hdtcjra"><text>申请金额</text></view>
+				<view class="hdtcjrb"><text>¥{{price}}</text></view>
+			</view>
+			 
+			<!-- <view class="hdtcjrc"><text>修改金额</text></view> -->
+			 
+		</view>
+		
+		<view class="hdtcjr">
+			<view class="hdtcjra"><text>申请说明</text></view>
+			 
+			 <view class="hdtcwenh">
+				<textarea v-model="content" placeholder-style="color:#999999;font-size: 28rpx;" placeholder="请详细填写申请说明"/>
+			 </view>
+			 
+		</view>
+		
+		<view class="fzctob hdtcjr">
+			<view class="hdtcjra" style="width: 160rpx;"><text>联系电话</text></view>
+			<view class="hdtcjra">
+                <input type="number" v-model="phone" maxlength="11" placeholder="请输入联系电话">
+            </view>
+		</view>
+		
+		<view class="fzddrew fknbee" >
+			<view class="fzddrew fkdibr" @click="Refund">
+				<text>提交申请</text>
+			</view>
+		</view>
+        <!-- 弹窗  -->
+        <u-popup v-model="show" mode="bottom" :mask-close-able="false" safe-area-inset-bottom border-radius="20" >
+            <view v-if="picIndex==0">
+                <view class="t-title">请选择申请类型</view>
+                <view :class="type==1?'apply-item-act':'apply-item'" @click="type=1">
+                    我要退出退款
+                </view>
+                <view :class="type==2?'apply-item-act':'apply-item'" @click="type=2">
+                    我要请假
+                </view>
+            </view>
+            <view v-if="picIndex==1">
+                <view class="t-title">请选择申请原因</view>
+                <view v-for="(item,index) in liyou" :key="index" @click="curliyou = index" :class="index==curliyou?'apply-item-act':'apply-item'">
+                    {{item}}
+                </view>
+            </view>
+            <view class="fzddrew fkdibr" @click="show=false" style="margin: auto; margin-top: 300rpx;">
+            	<text>确定</text>
+            </view>
+        </u-popup>
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+                show:false,
+                type:1,    // 退款类型:1=退出退款 2=我要请假
+                liyou:[],
+                picIndex:0,
+                curliyou:0,
+                order_id:0,    // 活动订单id
+                price:0,       // 订单价格
+                content:'',
+                phone:''
+			}
+		},
+        onLoad(e) {
+            this.order_id = e.order_id
+            this.price = e.price
+            this.getliyou()
+        },
+        methods:{
+            // 退款类型
+            chooseType(){
+               this.picIndex = 0
+               this.show = true
+            },
+            // 退款理由
+            chooseliyou(){
+                this.picIndex = 1
+                this.show = true
+            },
+            // 获取理由
+            getliyou(){
+                this.$post({
+                    data:{
+                        do:'RefundInfo'
+                    }
+                }).then(res=>{
+                    console.log(res)
+                    this.liyou = res.data
+                })
+            },
+            // 请假 退出
+            Refund(){
+                if(!this.content){
+                    return uni.showToast({
+                        title:'请输入退款说明',
+                        icon:'none'
+                    })
+                }
+                if(!this.phone){
+                    return uni.showToast({
+                        title:'请输入联系电话',
+                        icon:'none'
+                    })
+                }
+                this.$post({
+                    data:{
+                        do:'Refund',
+                        data:{
+                            order_id:this.order_id,
+                            type:this.type,
+                            reason:this.liyou[this.curliyou],
+                            user_id:uni.getStorageSync('id'),
+                            content:this.content,
+                            phone:this.phone,
+                            price:this.price
+                        }
+                    }
+                }).then(res=>{
+                    uni.showToast({
+                        title:res.message || '申请成功',
+                        icon:'none'
+                    })
+                    setTimeout(()=>{
+                        uni.navigateBack()
+                    },1500)
+                })
+            }
+        }
+
+
+	}
+</script>
+<style scoped>
+    .t-title{
+        padding: 30rpx 0;
+        font-size: 28rpx;
+        color: #373737;
+        text-align: center;
+    }
+    .apply-item{
+        padding: 20rpx 22rpx;
+        border-top: 2rpx solid #F4F4F4;
+        font-size: 28rpx;
+        color: #333333;
+    }
+    .apply-item-act{
+        padding: 20rpx 22rpx;
+        border-top: 2rpx solid #F4F4F4;
+        font-size: 28rpx;
+        color: #EE3437;
+    }
+    .apply-item:last-of-type{
+        border-bottom: 2rpx solid #F4F4F4;
+    }
+    .apply-item-act:last-of-type{
+        border-bottom: 2rpx solid #F4F4F4;
+    }
+    
+</style>
+<style lang="scss" scoped>
+	 
+</style>

+ 338 - 0
xinlijiankang-uniapp-main/pages/user/wdhd-xq.vue

@@ -0,0 +1,338 @@
+<template>
+	<view class="ayuu" v-if="info">
+		<view class="hduuyr">
+			<!-- 图片预留 -->
+			<image :src="info.imglist[0]" mode="aspectFill" class="w-1 h-1"></image>
+		</view>
+
+		<view class="hdxqmmfr" style="position: relative;">
+			<view class="flztoa hdlixmr">
+				<text>{{info.title}}</text>
+			</view>
+			<view class="hdxiahuax"></view>
+			 <!-- @click="show = true" -->
+			<view class="flztoa hdlixmr" @click="openLoaction">
+				<text>{{info.city+info.address}}</text>
+				<image src="/static/user/hda1.png" style="width: 48rpx;min-width: 48rpx;height: 48rpx;" mode=""></image>
+			</view>
+			<view class="hdxiahuax"></view>
+
+			<view class="flztoa hdlixmr">
+				<text>{{$u.timeFormat(info.date, 'yyyy-mm-dd hh:MM')}}</text>
+			</view>
+			<view class="hdxiahuax"></view>
+
+			<view class="flztoa hdlixmr">
+				<view class="fzctob">
+					<text class="wdjga">¥</text>
+				<!-- 	<text class="wdjgb">00</text>
+					<text class="wdjgc">.00</text> -->
+					<text class="wdjgb">{{info.price.split('.')[0]}}</text>
+					<text class="wdjgc">.{{info.price.split('.')[1]}}</text>
+				</view>
+			</view>
+			<view class="hdxiahuax"></view>
+
+			<view class="" style="padding: 20rpx 24rpx;">
+				<view class="indhuyr">
+					<view class="indjbrr"></view>
+					<text>活动详情</text>
+				</view>
+
+				<view class="hdxqtxtye">
+					<rich-text :nodes="info.content"></rich-text>
+				</view>
+
+			</view>
+
+		</view>
+
+		<view class="fzddrew fknbee">
+			<view class="fzddrew fkdibr" @click="showa = true">
+				<text>立刻报名</text>
+			</view>
+		</view>
+
+		<u-popup v-model="show" mode="bottom" border-radius="20" :safe-area-inset-bottom="true">
+			<view class="dituopa1 fzddrew">
+				<view class="dituopa2">
+					<text>腾讯地图</text>
+				</view>
+				<view style="background: #F4F4F4;width: 100%;height: 2rpx;"></view>
+				<view class="dituopa2">
+					<text>百度地图</text>
+				</view>
+			</view>
+		</u-popup>
+
+		<u-popup v-model="showa" mode="bottom" border-radius="20" :safe-area-inset-bottom="true">
+			<view class="baominga1">
+				<view class="fzjtod baominga2">
+					<text>立刻报名</text>
+				</view>
+				<view style="background: #F4F4F4;width: 100%;height: 2rpx;"></view>
+			
+				<scroll-view style="max-height: 400rpx;" scroll-y>
+					<view v-for="(item,index) in plist" :key="index">
+						<view class="flztoa baominga3">
+							<view class="">
+								<text>姓名</text>
+							</view>
+							<view class="fyctoc" style="text-align: right;color: #999999;">
+								<input type="text" v-model="item.name" placeholder-style="color: #999999;font-size: 28rpx; text-align: right;"
+								placeholder="请输入姓名" />
+							</view>
+						</view>
+						<view style="background: #F4F4F4;width: 100%;height: 2rpx;"></view>
+						<view class="flztoa baominga3">
+							<view class="">
+								<text>电话</text>
+							</view>
+							<view class="fyctoc" style="text-align: right;color: #999999;">
+								<input type="number" v-model="item.phone" placeholder-style="color: #999999; font-size: 28rpx; text-align: right;"
+								placeholder="请输入电话" />
+							</view>
+						</view>
+						<view style="background: #F4F4F4;width: 100%;height: 2rpx;"></view>
+					</view>
+				</scroll-view>
+				<view class="flztoa baominga3">
+					<view class="">
+						<text>数量</text>
+					</view>
+					<view class="fyctoc" style="text-align: right;color: #999999;">
+						 <view class="fyctoc">
+							<image @click="lessItem" src="/static/user/bma1.png" style="width: 32rpx;height: 32rpx;" mode=""></image>
+							<view  style="margin: 0 20rpx;">{{plist.length}}</view>
+							<image  @click="addItem"  src="/static/user/bma2.png" style="width: 32rpx;height: 32rpx;" mode=""></image>
+						 </view>
+					</view>
+				</view>
+				<view style="background: #F4F4F4;width: 100%;height: 2rpx;"></view>
+				<view class="flztoa baominga3">
+					<view class="">
+						<text>金额</text>
+					</view>
+					<view class="fzctob">
+						<text class="wdjga">¥</text>
+						<text class="wdjgb">{{account.split('.')[0]}}</text>
+						<text class="wdjgc">.{{account.split('.')[1]}}</text>
+					</view>
+				</view>
+				<view class="fzjtod" style="margin-top: 420rpx;">
+					<!-- <navigator class="fzddrew fkdibr" url="../lecturer/my" hover-class="none">
+						<text>提交订单</text>
+					</navigator> -->
+					<view class="fzddrew fkdibr" @click="subInfo">
+						<text>提交订单</text>
+					</view>
+				</view>
+				 
+			</view>
+		</u-popup>
+
+
+
+
+
+
+
+
+
+	</view>
+</template>
+<style>
+	page {
+		background: #FAFAFA;
+	}
+</style>
+<script>
+	export default {
+		data() {
+			return {
+				show: false,
+				showa: false,
+				showc: 1,
+				id:0,   // 活动id
+				info:null,
+				plist:[
+					{
+						name:'',
+						phone:''
+					}
+				],   // 报名人数组
+				deviceType:'wxapp'
+			}
+		},
+		onLoad(e) {
+			// #ifdef APP-PLUS
+				this.deviceType = 'wxh5'
+			// #endif
+			// #ifdef MP-WEIXIN
+				this.deviceType = 'wxapp'
+			// #endif
+			this.id = e.id || 0
+			this.getDetail()
+		},
+		computed:{
+			account(){
+				if(this.info){
+					return (this.info.price*this.plist.length).toFixed(2)
+				}else{
+					return 0
+				}
+			}
+		},
+		methods:{
+			openLoaction(){
+				uni.openLocation({
+					latitude: this.info.lotx/1,   	// 纬度
+					longitude:  this.info.loty/1,		// 经度
+					name:this.info.address,
+					success: res=> {
+						console.log(res,'success');
+					}
+				});
+			},
+			// 加一条
+			addItem(){
+				console.log('+++++')
+				this.plist.push({
+					name:'',
+					phone:''
+				})
+			},
+			// 减一条
+			lessItem(){
+				if(this.plist.length>1){
+					this.plist.pop()
+				}
+			},
+			getDetail(){
+				this.$post({
+					data:{
+						do:'GoodInfo',
+						data:{
+							id:this.id,
+							user_id:uni.getStorageSync('id'),
+							pw:375
+						}
+					}
+				}).then(res=>{
+					this.info = res.data
+				})
+			},
+			// 提交报名信息
+			subInfo(){
+				let flag = this.plist.every(item=>item.name&&item.phone)
+				if(!flag){
+					uni.showToast({
+						title:'请完善报名人员信息',
+						icon:'none'
+					})
+					return
+				}
+				this.$post({
+					data:{
+						do:'Good',
+						data:{
+							good_id:this.id,
+							is_luck:"",
+							luck_id:"",
+							user_id:uni.getStorageSync('id'),
+							pw:"375",
+							app_content:this.plist
+						},
+						deviceType:this.deviceType
+					}
+				}).then(res=>{
+					let pay = res.data
+					// #ifdef APP-PLUS
+					uni.requestPayment({
+						provider: 'wxpay',
+						orderInfo: pay.orderinfo, //微信、支付宝订单数据 【注意微信的订单信息,键值应该全部是小写,不能采用驼峰命名】
+						success() {
+							uni.showToast({
+								title: '支付成功'
+							})
+							setTimeout(()=>{
+								uni.navigateTo({
+									url:'/pages/lecturer/wdhd'
+								})
+							},1500)
+						},
+						fail(res) {
+							console.log(res)
+							uni.showToast({
+								title: '支付失败',
+								icon: 'error'
+							})
+						}
+					})
+					// #endif
+					// #ifdef MP-WEIXIN
+					uni.requestPayment({
+						provider: 'wxpay',
+						timeStamp: pay.timeStamp,
+						nonceStr: pay.nonceStr,
+						package: pay.package,
+						signType: 'MD5',
+						paySign: pay.paySign,
+						success() {
+							uni.showToast({
+								title: '支付成功'
+							})
+							setTimeout(()=>{
+								uni.navigateTo({
+									url:'/pages/lecturer/wdhd'
+								})
+							},1500)
+						},
+						fail(res) {
+							console.log(res)
+							uni.showToast({
+								title: '支付失败',
+								icon: 'error'
+							})
+						}
+					})
+					// #endif
+					
+				})
+			}
+		}
+
+
+	}
+</script>
+
+<style lang="scss" scoped>
+	.dituopa2 {
+		font-size: 28rpx;
+		font-family: PingFang SC-Medium, PingFang SC;
+		font-weight: 500;
+		color: #333333;
+		padding: 20rpx 0;
+	}
+
+	.baominga2 {
+		font-size: 14px;
+		font-family: Alibaba PuHuiTi-Medium, Alibaba PuHuiTi;
+		font-weight: 500;
+		color: #373737;
+		padding: 30rpx 0;
+	}
+	.baominga3{
+		padding: 20rpx  22rpx;
+		font-size: 14px;
+		font-family: PingFang SC-Medium, PingFang SC;
+		font-weight: 500;
+		color: #333333;
+	}
+	.w-1{
+		width: 100%;
+	}
+	.h-1{
+		height: 100%;
+	}
+</style>

BIN
xinlijiankang-uniapp-main/static/dibu/boa1.png


BIN
xinlijiankang-uniapp-main/static/dibu/boa2.png


BIN
xinlijiankang-uniapp-main/static/dibu/boa3.png


BIN
xinlijiankang-uniapp-main/static/dibu/boa4.png


BIN
xinlijiankang-uniapp-main/static/dibu/bob1.png


BIN
xinlijiankang-uniapp-main/static/dibu/bob2.png


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff