فهرست منبع

修改富文本

zs 1 سال پیش
والد
کامیت
534e97768c
28فایلهای تغییر یافته به همراه3196 افزوده شده و 1145 حذف شده
  1. 64 49
      common/css/iconfont.css
  2. BIN
      common/css/iconfont.ttf
  3. 8 2
      config.js
  4. 7 0
      pages.json
  5. 511 0
      pagesMy/science/index.vue
  6. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/common/main.js.map
  7. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/common/runtime.js.map
  8. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map
  9. 1 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesMy/science/detail.js.map
  10. 1 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesMy/science/index.js.map
  11. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesScience/science/index.js.map
  12. 1 0
      unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.js.map
  13. 1 0
      unpackage/dist/dev/mp-weixin/app.json
  14. 1098 1086
      unpackage/dist/dev/mp-weixin/common/main.wxss
  15. 2 2
      unpackage/dist/dev/mp-weixin/common/runtime.js
  16. 13 2
      unpackage/dist/dev/mp-weixin/common/vendor.js
  17. 1 0
      unpackage/dist/dev/mp-weixin/pagesMy/science/detail.js
  18. 4 0
      unpackage/dist/dev/mp-weixin/pagesMy/science/detail.json
  19. 1 0
      unpackage/dist/dev/mp-weixin/pagesMy/science/detail.wxml
  20. 34 0
      unpackage/dist/dev/mp-weixin/pagesMy/science/detail.wxss
  21. 634 0
      unpackage/dist/dev/mp-weixin/pagesMy/science/index.js
  22. 13 0
      unpackage/dist/dev/mp-weixin/pagesMy/science/index.json
  23. 1 0
      unpackage/dist/dev/mp-weixin/pagesMy/science/index.wxml
  24. 129 0
      unpackage/dist/dev/mp-weixin/pagesMy/science/index.wxss
  25. 499 0
      unpackage/dist/dev/mp-weixin/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.js
  26. 6 0
      unpackage/dist/dev/mp-weixin/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.json
  27. 1 0
      unpackage/dist/dev/mp-weixin/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.wxml
  28. 162 0
      unpackage/dist/dev/mp-weixin/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.wxss

+ 64 - 49
common/css/iconfont.css

@@ -1,49 +1,64 @@
-@font-face {
-  font-family: "iconfont"; 
-  	src: url('@/common/css/iconfont.ttf') format('truetype');
-}
-
-.iconfont {
-  font-family: "iconfont" !important;
-  font-size: 16px;
-  font-style: normal;
-  -webkit-font-smoothing: antialiased;
-  -moz-osx-font-smoothing: grayscale;
-}
-
-.icon-youbofang:before {
-  content: "\e638";
-}
-
-.icon-zuobofang:before {
-  content: "\e63a";
-}
-
-.icon-shanchu:before {
-  content: "\e68a";
-}
-
-.icon-weixin:before {
-  content: "\e73b";
-}
-
-.icon-dayuhao:before {
-  content: "\e625";
-}
-
-.icon-yonghu:before {
-  content: "\e614";
-}
-
-.icon-erweima:before {
-  content: "\1017b";
-}
-
-.icon-shezhi:before {
-  content: "\1017c";
-}
-
-.icon-gengduo:before {
-  content: "\e719";
-}
-
+@font-face {
+	font-family: "iconfont";
+	src: url('@/common/css/iconfont.ttf') format('truetype');
+}
+
+.iconfont {
+	font-family: "iconfont" !important;
+	font-size: 16px;
+	font-style: normal;
+	-webkit-font-smoothing: antialiased;
+	-moz-osx-font-smoothing: grayscale;
+}
+
+.icon-lishijilu_huaban:before {
+	content: "\e617";
+}
+
+.icon-jibenxinxi:before {
+	content: "\e659";
+}
+
+.icon-qunzu:before {
+	content: "\e649";
+}
+
+.icon-yiliao:before {
+	content: "\e6ee";
+}
+
+.icon-youbofang:before {
+	content: "\e638";
+}
+
+.icon-zuobofang:before {
+	content: "\e63a";
+}
+
+.icon-shanchu:before {
+	content: "\e68a";
+}
+
+.icon-weixin:before {
+	content: "\e73b";
+}
+
+.icon-dayuhao:before {
+	content: "\e625";
+}
+
+.icon-yonghu:before {
+	content: "\e614";
+}
+
+.icon-erweima:before {
+	content: "\1017b";
+}
+
+.icon-shezhi:before {
+	content: "\1017c";
+}
+
+.icon-gengduo:before {
+	content: "\e719";
+}

BIN
common/css/iconfont.ttf


+ 8 - 2
config.js

@@ -16,7 +16,7 @@ export default {
 	system: system,
 	share: {},
 	menuList: [{
-			icon: "icon-yonghuxinxi",
+			icon: "icon-jibenxinxi",
 			title: "基本信息",
 			route: "pagesMy/basic/index",
 			role: ['Doctor', 'Nurse', 'Patient']
@@ -28,7 +28,13 @@ export default {
 			role: ['Doctor', 'Nurse']
 		},
 		{
-			icon: "icon-Detailsoftheproblem",
+			icon: "icon-yiliao",
+			title: "医疗科普",
+			route: "pagesMy/science/index",
+			role: ['Doctor', 'Nurse']
+		},
+		{
+			icon: "icon-lishijilu_huaban",
 			title: "答复记录",
 			route: "pagesMy/answer/index",
 			role: ['Doctor', 'Nurse', 'Patient']

+ 7 - 0
pages.json

@@ -104,6 +104,13 @@
 						"navigationBarTitleText": "用户详情"
 					}
 				},
+				{
+					"path": "science/index",
+					"style": {
+						"navigationBarTitleText": "医疗科普",
+						"enablePullDownRefresh": true
+					}
+				},
 				{
 					"path": "answer/index",
 					"style": {

+ 511 - 0
pagesMy/science/index.vue

@@ -0,0 +1,511 @@
+<template>
+	<!-- 禁止滚动穿透 -->
+	<page-meta :page-style="'overflow:'+(show?'hidden':'visible')"></page-meta>
+	<view class="main">
+		<view class="one">
+			<view class="one_1">
+				<input type="text" v-model="searchInfo.title" @input="toInput" placeholder="搜索标题">
+			</view>
+			<view class="one_2">
+				<button size="mini" class="button" type="primary" @click="toAdd">添加</button>
+			</view>
+		</view>
+		<view class="two">
+			<scroll-view scroll-y="true" class="scroll-view" @scrolltolower="toPage" @scroll="toScroll">
+				<view class="list-scroll-view">
+					<view class="list" v-for="(item, index) in list" :key="index">
+						<view class="name">{{item.title||'暂无标题'}}</view>
+						<view class="other textOver">
+							来源:{{item.origin||'暂无'}}
+						</view>
+						<view class="other textOver">
+							创建时间:{{item.create_time||'暂无'}}
+						</view>
+						<view class="other textOver">
+							是否启用:{{item.is_use == '0' ? '是' : '否'}}
+						</view>
+						<view class="button">
+							<button class="warning" size="mini" type="warn" @tap.stop="toEdit(item)">修改</button>
+							<button class="danger" size="mini" type="warn" @tap.stop="toDel(item)">删除</button>
+						</view>
+					</view>
+				</view>
+				<view class="is_bottom" v-if="is_bottom">
+					<text>{{config.bottom_title||'到底了!'}}</text>
+				</view>
+			</scroll-view>
+		</view>
+		<!-- 修改/添加信息 -->
+		<uni-popup ref="popup" background-color="#fff" type="center" :is-mask-click="false" @change="change">
+			<view class="popup">
+				<view class="close">
+					<text>信息管理</text>
+					<uni-icons @tap="toClose" type="close" size="20"></uni-icons>
+				</view>
+				<view class="info">
+					<scroll-view class="scroll-view" scroll-y="true">
+						<view class="list-scroll-view">
+							<view class="info_1">
+								<uni-forms ref="valiForm" :rules="rules" :modelValue="form" label-width="85">
+									<uni-forms-item label="标题" required name="title">
+										<uni-easyinput v-model="form.title" placeholder="请输入标题" />
+									</uni-forms-item>
+									<uni-forms-item label="来源" required name="origin">
+										<uni-easyinput v-model="form.origin" placeholder="请输入来源" />
+									</uni-forms-item>
+									<uni-forms-item label="封面图片" required name="img_url">
+										<upload class='upload' :list="form.img_url" name="img_url" :count="1"
+											@uplSuc="uplSuc" @uplDel="uplDel">
+										</upload>
+									</uni-forms-item>
+									<uni-forms-item label="内容" required name="content">
+										<editor style="width: 100%; padding: 10upx;" id="editor"
+											:placeholder="placeholder" @input="editorChange" @ready="onEditorReady">
+										</editor>
+									</uni-forms-item>
+									<uni-forms-item label="是否启用" name="is_use">
+										<uni-data-select v-model="form.is_use" :localdata="is_useList"
+											@change="is_usechange">
+										</uni-data-select>
+									</uni-forms-item>
+								</uni-forms>
+								<button class="button" size="mini" type="primary"
+									@click="submit('valiForm')">保存</button>
+							</view>
+						</view>
+					</scroll-view>
+				</view>
+			</view>
+		</uni-popup>
+	</view>
+</template>
+
+<script>
+	import upload from '../../components/upload/index.vue';
+	export default {
+		components: {
+			upload
+		},
+		data() {
+			return {
+				user: {},
+				config: {},
+				searchInfo: {},
+				list: [],
+				total: 0,
+				skip: 0,
+				limit: 10,
+				page: 0,
+				form: {
+					img_url: []
+				},
+				// 校验规则
+				rules: {
+					title: {
+						rules: [{
+							required: true,
+							errorMessage: '标题不能为空'
+						}]
+					},
+					origin: {
+						rules: [{
+							required: true,
+							errorMessage: '来源不能为空'
+						}]
+					},
+					img_url: {
+						rules: [{
+							required: true,
+							errorMessage: '请上传封面图片'
+						}]
+					},
+				},
+				is_useList: [{
+						text: '是',
+						value: '0'
+					},
+					{
+						text: '否',
+						value: '1'
+					}
+				],
+				placeholder: '请输入内容',
+				content: '',
+				// 数据是否触底
+				is_bottom: false,
+				scrollTop: 0,
+				// 禁止滚动穿透
+				show: false
+			}
+		},
+		onShow: async function() {
+			const that = this;
+			that.clearPage();
+			await that.searchToken();
+			await that.searchConfig();
+			await that.search();
+		},
+		onPullDownRefresh: async function() {
+			const that = this;
+			that.clearPage();
+			await that.search();
+			uni.stopPullDownRefresh();
+		},
+		methods: {
+			// 禁止滚动穿透
+			change(e) {
+				const that = this;
+				that.show = e.show
+			},
+			searchToken() {
+				const that = this;
+				try {
+					const res = uni.getStorageSync('token');
+					if (res) {
+						const user = that.$jwt(res);
+						that.$set(that, `user`, user);
+					}
+				} catch (e) {}
+			},
+			searchConfig() {
+				const that = this;
+				try {
+					const res = uni.getStorageSync('config');
+					if (res) that.$set(that, `config`, res);
+				} catch (e) {}
+			},
+			async search() {
+				const that = this;
+				let user = that.user;
+				let info = {
+					skip: that.skip,
+					limit: that.limit,
+				}
+				if (that.user.role == 'Doctor') info.doctor = that.user._id
+				else info.doctor = that.user.doctor
+				const res = await that.$api(`/article`, 'GET', {
+					...info,
+					...that.searchInfo
+				})
+				if (res.errcode == '0') {
+					let list = [...that.list, ...res.data];
+					that.$set(that, `list`, list)
+					that.$set(that, `total`, res.total)
+				} else {
+					uni.showToast({
+						title: res.errmsg,
+					});
+				}
+			},
+			// 输入框
+			toInput(e) {
+				const that = this;
+				if (that.searchInfo.title) that.$set(that.searchInfo, `title`, e.detail.value)
+				else that.$set(that, `searchInfo`, {})
+				that.clearPage();
+				that.search();
+			},
+			// 是否使用
+			is_usechange(is_use) {
+				const that = this;
+				that.$set(that.form, `is_use`, is_use);
+			},
+			// 富文本
+			onEditorReady() {
+				const that = this
+				uni.createSelectorQuery().select('#editor').context((res) => {
+					that.editorCtx = res.context
+					that.editorCtx.setContents({
+						html: that.form.content || '',
+						success: (res) => {
+							// console.log(res)
+						},
+						fail: (res) => {
+							// console.log(res)
+						},
+					})
+				}).exec()
+			},
+			editorChange: function(e) {
+				const that = this
+				that.$set(that, `content`, e.detail.html || '')
+			},
+			// 图片上传
+			uplSuc(e) {
+				const that = this;
+				that.$set(that.form, `${e.name}`, [...that.form[e.name], e.data]);
+			},
+			// 图片删除
+			uplDel(e) {
+				const that = this;
+				let data = that.form[e.name];
+				let arr = data.filter((i, index) => index != e.data.index);
+				that.$set(that.form, `${e.name}`, arr)
+			},
+			// 添加
+			toAdd() {
+				const that = this;
+				that.$refs.popup.open()
+			},
+			// 修改
+			async toEdit(item) {
+				const that = this;
+				const res = await that.$api(`/article/${item._id}`, 'GET', {})
+				if (res.errcode == '0') {
+					that.$set(that, `form`, res.data)
+					that.onEditorReady()
+					that.$refs.popup.open()
+				} else {
+					uni.showToast({
+						title: res.errmsg,
+						icon: 'none'
+					});
+				}
+			},
+			// 保存
+			submit(ref) {
+				const that = this;
+				const form = that.form;
+				that.$refs[ref].validate().then(async data => {
+					let res;
+					if (that.user.role == 'Doctor') data.doctor = that.user._id
+					else data.doctor = that.user.doctor
+					data.content = that.content
+					if (form._id) res = await that.$api(`/article/${form._id}`, 'POST', data)
+					else res = await that.$api(`/article`, 'POST', data)
+					if (res.errcode == '0') {
+						uni.showToast({
+							title: '维护信息成功',
+							icon: 'none'
+						})
+						that.toClose();
+						that.clearPage();
+						that.search();
+					} else {
+						uni.showToast({
+							title: res.errmsg,
+							icon: 'none'
+						});
+					}
+				})
+			},
+			// 删除
+			async toDel(item) {
+				const that = this;
+				uni.showModal({
+					title: '提示',
+					content: '您确定删除该数据吗?',
+					success: async function(res) {
+						if (res.confirm) {
+							const res = await that.$api(`/article/${item._id||item.id}`, 'DELETE', {})
+							if (res.errcode == 0) {
+								that.clearPage();
+								that.search();
+							} else {
+								uni.showToast({
+									title: res.errmsg,
+									icon: 'none'
+								})
+							}
+						}
+					}
+				});
+			},
+			// 关闭弹框
+			toClose() {
+				const that = this;
+				that.$set(that, `form`, {})
+				that.onEditorReady()
+				that.$refs.popup.close();
+			},
+			// 分页
+			toPage(e) {
+				const that = this;
+				let list = that.list;
+				let limit = that.limit;
+				if (that.total > list.length) {
+					uni.showLoading({
+						title: '加载中',
+						mask: true
+					})
+					let page = that.page + 1;
+					that.$set(that, `page`, page)
+					let skip = page * limit;
+					that.$set(that, `skip`, skip)
+					that.search();
+					uni.hideLoading();
+				} else that.$set(that, `is_bottom`, true)
+			},
+			toScroll(e) {
+				const that = this;
+				let up = that.scrollTop;
+				that.$set(that, `scrollTop`, e.detail.scrollTop);
+				let num = Math.sign(up - e.detail.scrollTop);
+				if (num == 1) that.$set(that, `is_bottom`, false);
+			},
+			// 清空列表
+			clearPage() {
+				const that = this;
+				that.$set(that, `list`, [])
+				that.$set(that, `skip`, 0)
+				that.$set(that, `limit`, 10)
+				that.$set(that, `page`, 0)
+			}
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	.main {
+		display: flex;
+		flex-direction: column;
+		width: 100vw;
+		height: 100vh;
+
+		.one {
+			display: flex;
+			justify-content: center;
+			align-items: center;
+			padding: 2vw;
+
+			.one_1 {
+				padding: 0 2vw;
+				width: 75vw;
+
+				input {
+					padding: 2vw;
+					background-color: var(--f1Color);
+					font-size: var(--font14Size);
+					border-radius: 5px;
+				}
+			}
+
+			.one_2 {
+				padding: 2vw 0;
+
+				.button {
+					background-color: var(--f3CColor);
+					color: var(--mainColor);
+				}
+			}
+		}
+
+		.two {
+			position: relative;
+			flex-grow: 1;
+			background-color: var(--f9Color);
+
+			.list:first-child {
+				margin: 2vw;
+			}
+
+			.list {
+				background-color: var(--mainColor);
+				border: 1px solid var(--f5Color);
+				padding: 2vw;
+				margin: 0 2vw 2vw 2vw;
+				border-radius: 5px;
+
+				.name {
+					font-size: var(--font14Size);
+					font-weight: bold;
+					padding: 2vw 0;
+				}
+
+				.other {
+					font-size: var(--font12Size);
+					color: var(--f85Color);
+				}
+
+
+				.button {
+					margin: 2vw 0 0 0;
+					text-align: center;
+
+					.warning {
+						background: var(--f3CColor);
+					}
+
+					.danger {
+						background: var(--fF0Color);
+					}
+
+					button {
+						margin: 0 1vw 0 0;
+					}
+				}
+			}
+		}
+
+		.uni-popup {
+			z-index: 9999 !important;
+		}
+
+		.popup {
+			display: flex;
+			flex-direction: column;
+			width: 90vw;
+			background-color: var(--f9Color);
+
+			.close {
+				display: flex;
+				justify-content: space-between;
+				padding: 2vw;
+
+				text:first-child {
+					font-size: var(--font16Size);
+					font-weight: bold;
+				}
+			}
+
+			.info {
+				position: relative;
+				height: 40vh;
+
+				.info_1 {
+					display: flex;
+					flex-direction: column;
+					padding: 2vw;
+
+					#editor {
+						width: 100%;
+						height: 100px;
+						border: 1px solid #F0F0F0;
+					}
+
+					.button {
+						margin: 2vw 0 0 0;
+						background-color: var(--f3CColor);
+						color: var(--mainColor);
+						font-size: var(--font14Size);
+					}
+				}
+			}
+		}
+	}
+
+	.scroll-view {
+		position: absolute;
+		top: 0;
+		left: 0;
+		right: 0;
+		bottom: 0;
+
+		.list-scroll-view {
+			display: flex;
+			flex-direction: column;
+		}
+	}
+
+	.is_bottom {
+		width: 100%;
+		text-align: center;
+
+		text {
+			padding: 2vw 0;
+			display: inline-block;
+			color: var(--f85Color);
+			font-size: var(--font14Size);
+		}
+	}
+</style>

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/common/main.js.map


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/common/runtime.js.map


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pagesMy/science/detail.js.map


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pagesMy/science/index.js.map


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pagesScience/science/index.js.map


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.js.map


+ 1 - 0
unpackage/dist/dev/mp-weixin/app.json

@@ -28,6 +28,7 @@
         "group/index",
         "person/index",
         "person/detail",
+        "science/index",
         "answer/index"
       ]
     }

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1098 - 1086
unpackage/dist/dev/mp-weixin/common/main.wxss


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 2 - 2
unpackage/dist/dev/mp-weixin/common/runtime.js


+ 13 - 2
unpackage/dist/dev/mp-weixin/common/vendor.js

@@ -7822,6 +7822,12 @@ var _default = {
       "style": {
         "navigationBarTitleText": "用户详情"
       }
+    }, {
+      "path": "science/index",
+      "style": {
+        "navigationBarTitleText": "医疗科普",
+        "enablePullDownRefresh": true
+      }
     }, {
       "path": "answer/index",
       "style": {
@@ -20031,7 +20037,7 @@ var _default = {
   system: system,
   share: {},
   menuList: [{
-    icon: "icon-yonghuxinxi",
+    icon: "icon-jibenxinxi",
     title: "基本信息",
     route: "pagesMy/basic/index",
     role: ['Doctor', 'Nurse', 'Patient']
@@ -20041,7 +20047,12 @@ var _default = {
     route: "pagesMy/group/index",
     role: ['Doctor', 'Nurse']
   }, {
-    icon: "icon-Detailsoftheproblem",
+    icon: "icon-yiliao",
+    title: "医疗科普",
+    route: "pagesMy/science/index",
+    role: ['Doctor', 'Nurse']
+  }, {
+    icon: "icon-lishijilu_huaban",
     title: "答复记录",
     route: "pagesMy/answer/index",
     role: ['Doctor', 'Nurse', 'Patient']

+ 1 - 0
unpackage/dist/dev/mp-weixin/pagesMy/science/detail.js

@@ -0,0 +1 @@
+Component({})

+ 4 - 0
unpackage/dist/dev/mp-weixin/pagesMy/science/detail.json

@@ -0,0 +1,4 @@
+{
+  "navigationBarTitleText": "医疗科普详情",
+  "usingComponents": {}
+}

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1 - 0
unpackage/dist/dev/mp-weixin/pagesMy/science/detail.wxml


+ 34 - 0
unpackage/dist/dev/mp-weixin/pagesMy/science/detail.wxss

@@ -0,0 +1,34 @@
+@charset "UTF-8";
+/* 水平间距 */
+/* 水平间距 */
+.main .one.data-v-4f31c16e {
+  display: flex;
+  justify-content: center;
+  padding: 2vw;
+}
+.main .one .image.data-v-4f31c16e {
+  width: 25vw;
+  height: 25vw;
+  border-radius: 5px;
+}
+.main .two.data-v-4f31c16e {
+  padding: 2vw;
+}
+.main .two .two_1.data-v-4f31c16e {
+  display: flex;
+  justify-content: space-between;
+  padding: 4vw;
+  border-bottom: 1px solid var(--f9Color);
+  font-size: var(--font14Size);
+  color: var(--f69Color);
+}
+.main .two .two_1 .right.data-v-4f31c16e {
+  text-align: right;
+  width: 60vw;
+}
+.main .two .two_1 .right .image.data-v-4f31c16e {
+  width: 20vw;
+  height: 20vw;
+  border-radius: 5px;
+}
+

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 634 - 0
unpackage/dist/dev/mp-weixin/pagesMy/science/index.js


+ 13 - 0
unpackage/dist/dev/mp-weixin/pagesMy/science/index.json

@@ -0,0 +1,13 @@
+{
+  "navigationBarTitleText": "医疗科普",
+  "enablePullDownRefresh": true,
+  "usingComponents": {
+    "uni-popup": "/uni_modules/uni-popup/components/uni-popup/uni-popup",
+    "uni-icons": "/uni_modules/uni-icons/components/uni-icons/uni-icons",
+    "uni-forms": "/uni_modules/uni-forms/components/uni-forms/uni-forms",
+    "uni-forms-item": "/uni_modules/uni-forms/components/uni-forms-item/uni-forms-item",
+    "uni-easyinput": "/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput",
+    "uni-data-select": "/uni_modules/uni-data-select/components/uni-data-select/uni-data-select",
+    "upload": "/components/upload/index"
+  }
+}

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1 - 0
unpackage/dist/dev/mp-weixin/pagesMy/science/index.wxml


+ 129 - 0
unpackage/dist/dev/mp-weixin/pagesMy/science/index.wxss

@@ -0,0 +1,129 @@
+@charset "UTF-8";
+/* 水平间距 */
+/* 水平间距 */
+.main.data-v-7df0218a {
+  display: flex;
+  flex-direction: column;
+  width: 100vw;
+  height: 100vh;
+}
+.main .one.data-v-7df0218a {
+  display: flex;
+  justify-content: center;
+  align-items: center;
+  padding: 2vw;
+}
+.main .one .one_1.data-v-7df0218a {
+  padding: 0 2vw;
+  width: 75vw;
+}
+.main .one .one_1 input.data-v-7df0218a {
+  padding: 2vw;
+  background-color: var(--f1Color);
+  font-size: var(--font14Size);
+  border-radius: 5px;
+}
+.main .one .one_2.data-v-7df0218a {
+  padding: 2vw 0;
+}
+.main .one .one_2 .button.data-v-7df0218a {
+  background-color: var(--f3CColor);
+  color: var(--mainColor);
+}
+.main .two.data-v-7df0218a {
+  position: relative;
+  flex-grow: 1;
+  background-color: var(--f9Color);
+}
+.main .two .list.data-v-7df0218a:first-child {
+  margin: 2vw;
+}
+.main .two .list.data-v-7df0218a {
+  background-color: var(--mainColor);
+  border: 1px solid var(--f5Color);
+  padding: 2vw;
+  margin: 0 2vw 2vw 2vw;
+  border-radius: 5px;
+}
+.main .two .list .name.data-v-7df0218a {
+  font-size: var(--font14Size);
+  font-weight: bold;
+  padding: 2vw 0;
+}
+.main .two .list .other.data-v-7df0218a {
+  font-size: var(--font12Size);
+  color: var(--f85Color);
+}
+.main .two .list .button.data-v-7df0218a {
+  margin: 2vw 0 0 0;
+  text-align: center;
+}
+.main .two .list .button .warning.data-v-7df0218a {
+  background: var(--f3CColor);
+}
+.main .two .list .button .danger.data-v-7df0218a {
+  background: var(--fF0Color);
+}
+.main .two .list .button button.data-v-7df0218a {
+  margin: 0 1vw 0 0;
+}
+.main .uni-popup.data-v-7df0218a {
+  z-index: 9999 !important;
+}
+.main .popup.data-v-7df0218a {
+  display: flex;
+  flex-direction: column;
+  width: 90vw;
+  background-color: var(--f9Color);
+}
+.main .popup .close.data-v-7df0218a {
+  display: flex;
+  justify-content: space-between;
+  padding: 2vw;
+}
+.main .popup .close text.data-v-7df0218a:first-child {
+  font-size: var(--font16Size);
+  font-weight: bold;
+}
+.main .popup .info.data-v-7df0218a {
+  position: relative;
+  height: 40vh;
+}
+.main .popup .info .info_1.data-v-7df0218a {
+  display: flex;
+  flex-direction: column;
+  padding: 2vw;
+}
+.main .popup .info .info_1 #editor.data-v-7df0218a {
+  width: 100%;
+  height: 100px;
+  border: 1px solid #F0F0F0;
+}
+.main .popup .info .info_1 .button.data-v-7df0218a {
+  margin: 2vw 0 0 0;
+  background-color: var(--f3CColor);
+  color: var(--mainColor);
+  font-size: var(--font14Size);
+}
+.scroll-view.data-v-7df0218a {
+  position: absolute;
+  top: 0;
+  left: 0;
+  right: 0;
+  bottom: 0;
+}
+.scroll-view .list-scroll-view.data-v-7df0218a {
+  display: flex;
+  flex-direction: column;
+}
+.is_bottom.data-v-7df0218a {
+  width: 100%;
+  text-align: center;
+}
+.is_bottom text.data-v-7df0218a {
+  padding: 2vw 0;
+  display: inline-block;
+  color: var(--f85Color);
+  font-size: var(--font14Size);
+}
+

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 499 - 0
unpackage/dist/dev/mp-weixin/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.js


+ 6 - 0
unpackage/dist/dev/mp-weixin/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.json

@@ -0,0 +1,6 @@
+{
+  "usingComponents": {
+    "uni-icons": "/uni_modules/uni-icons/components/uni-icons/uni-icons"
+  },
+  "component": true
+}

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1 - 0
unpackage/dist/dev/mp-weixin/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.wxml


+ 162 - 0
unpackage/dist/dev/mp-weixin/uni_modules/uni-data-select/components/uni-data-select/uni-data-select.wxss

@@ -0,0 +1,162 @@
+@charset "UTF-8";
+/* 水平间距 */
+/* 水平间距 */
+@media screen and (max-width: 500px) {
+.hide-on-phone {
+    display: none;
+}
+}
+.uni-stat__select {
+  display: flex;
+  align-items: center;
+  width: 100%;
+  flex: 1;
+  box-sizing: border-box;
+}
+.uni-stat-box {
+  width: 100%;
+  flex: 1;
+}
+.uni-stat__actived {
+  width: 100%;
+  flex: 1;
+}
+.uni-label-text {
+  font-size: 14px;
+  font-weight: bold;
+  color: #6a6a6a;
+  margin: auto 0;
+  margin-right: 5px;
+}
+.uni-select {
+  font-size: 14px;
+  border: 1px solid #e5e5e5;
+  box-sizing: border-box;
+  border-radius: 4px;
+  padding: 0 5px;
+  padding-left: 10px;
+  position: relative;
+  display: flex;
+  -webkit-user-select: none;
+          user-select: none;
+  flex-direction: row;
+  align-items: center;
+  border-bottom: solid 1px #e5e5e5;
+  width: 100%;
+  flex: 1;
+  height: 35px;
+}
+.uni-select--disabled {
+  background-color: #f5f7fa;
+  cursor: not-allowed;
+}
+.uni-select__label {
+  font-size: 16px;
+  height: 35px;
+  padding-right: 10px;
+  color: #909399;
+}
+.uni-select__input-box {
+  height: 35px;
+  position: relative;
+  display: flex;
+  flex: 1;
+  flex-direction: row;
+  align-items: center;
+}
+.uni-select__input {
+  flex: 1;
+  font-size: 14px;
+  height: 22px;
+  line-height: 22px;
+}
+.uni-select__input-plac {
+  font-size: 14px;
+  color: #909399;
+}
+.uni-select__selector {
+  box-sizing: border-box;
+  position: absolute;
+  top: calc(100% + 12px);
+  left: 0;
+  width: 100%;
+  background-color: #FFFFFF;
+  border: 1px solid #EBEEF5;
+  border-radius: 6px;
+  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
+  z-index: 3;
+  padding: 4px 0;
+}
+.uni-select__selector-scroll {
+  max-height: 200px;
+  box-sizing: border-box;
+}
+.uni-select__selector-empty,
+.uni-select__selector-item {
+  display: flex;
+  cursor: pointer;
+  line-height: 35px;
+  font-size: 14px;
+  text-align: center;
+  /* border-bottom: solid 1px $uni-border-3; */
+  padding: 0px 10px;
+}
+.uni-select__selector-item:hover {
+  background-color: #f9f9f9;
+}
+.uni-select__selector-empty:last-child,
+.uni-select__selector-item:last-child {
+  border-bottom: none;
+}
+.uni-select__selector__disabled {
+  opacity: 0.4;
+  cursor: default;
+}
+/* picker 弹出层通用的指示小三角 */
+.uni-popper__arrow,
+.uni-popper__arrow::after {
+  position: absolute;
+  display: block;
+  width: 0;
+  height: 0;
+  border-color: transparent;
+  border-style: solid;
+  border-width: 6px;
+}
+.uni-popper__arrow {
+  -webkit-filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.03));
+          filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.03));
+  top: -6px;
+  left: 10%;
+  margin-right: 3px;
+  border-top-width: 0;
+  border-bottom-color: #EBEEF5;
+}
+.uni-popper__arrow::after {
+  content: " ";
+  top: 1px;
+  margin-left: -6px;
+  border-top-width: 0;
+  border-bottom-color: #fff;
+}
+.uni-select__input-text {
+  width: 100%;
+  color: #3a3a3a;
+  white-space: nowrap;
+  text-overflow: ellipsis;
+  -o-text-overflow: ellipsis;
+  overflow: hidden;
+}
+.uni-select__input-placeholder {
+  color: #6a6a6a;
+  font-size: 12px;
+}
+.uni-select--mask {
+  position: fixed;
+  top: 0;
+  bottom: 0;
+  right: 0;
+  left: 0;
+  z-index: 2;
+}
+