Kaynağa Gözat

修改首页

zs 1 yıl önce
ebeveyn
işleme
49febd9747
53 değiştirilmiş dosya ile 12704 ekleme ve 12337 silme
  1. 8 2
      pages.json
  2. 59 13
      pages/home/index.vue
  3. 1 0
      pages/science/index.vue
  4. 34 0
      pagesHome/friend/index.vue
  5. 34 0
      pagesHome/group/index.vue
  6. 0 22
      pagesHome/index/index.vue
  7. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/common/main.js.map
  8. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map
  9. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/components/upload/index.js.map
  10. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/home/index.js.map
  11. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/index.js.map
  12. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/login/index.js.map
  13. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/my/index.js.map
  14. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pages/science/index.js.map
  15. 1 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/friend/index.js.map
  16. 1 0
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/group/index.js.map
  17. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/index/index.js.map
  18. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/other/agree.js.map
  19. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesMy/answer/index.js.map
  20. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesMy/basic/index.js.map
  21. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesMy/group/index.js.map
  22. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/pagesScience/science/index.js.map
  23. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-collapse/components/uni-collapse-item/uni-collapse-item.js.map
  24. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-collapse/components/uni-collapse/uni-collapse.js.map
  25. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-icons/components/uni-icons/uni-icons.js.map
  26. 1 1
      unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-list/components/uni-list-chat/uni-list-chat.js.map
  27. 1 0
      unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-list/components/uni-list/uni-list.js.map
  28. 2 1
      unpackage/dist/dev/mp-weixin/app.json
  29. 11784 11862
      unpackage/dist/dev/mp-weixin/common/vendor.js
  30. 15 15
      unpackage/dist/dev/mp-weixin/components/upload/index.js
  31. 36 11
      unpackage/dist/dev/mp-weixin/pages/home/index.js
  32. 1 1
      unpackage/dist/dev/mp-weixin/pages/home/index.wxml
  33. 14 0
      unpackage/dist/dev/mp-weixin/pages/home/index.wxss
  34. 1 0
      unpackage/dist/dev/mp-weixin/pages/science/index.js
  35. 240 0
      unpackage/dist/dev/mp-weixin/pagesHome/friend/index.js
  36. 4 0
      unpackage/dist/dev/mp-weixin/pagesHome/friend/index.json
  37. 1 0
      unpackage/dist/dev/mp-weixin/pagesHome/friend/index.wxml
  38. 1 1
      unpackage/dist/dev/mp-weixin/pagesHome/index/index.wxss
  39. 79 29
      unpackage/dist/dev/mp-weixin/pagesHome/index/index.js
  40. 4 0
      unpackage/dist/dev/mp-weixin/pagesHome/group/index.json
  41. 1 0
      unpackage/dist/dev/mp-weixin/pagesHome/group/index.wxml
  42. 7 0
      unpackage/dist/dev/mp-weixin/pagesHome/group/index.wxss
  43. 0 4
      unpackage/dist/dev/mp-weixin/pagesHome/index/index.json
  44. 0 1
      unpackage/dist/dev/mp-weixin/pagesHome/index/index.wxml
  45. 108 108
      unpackage/dist/dev/mp-weixin/pagesHome/other/agree.js
  46. 16 16
      unpackage/dist/dev/mp-weixin/pagesMy/answer/index.js
  47. 17 17
      unpackage/dist/dev/mp-weixin/pagesMy/basic/index.js
  48. 16 16
      unpackage/dist/dev/mp-weixin/pagesMy/group/index.js
  49. 141 141
      unpackage/dist/dev/mp-weixin/pagesScience/science/index.js
  50. 15 15
      unpackage/dist/dev/mp-weixin/uni_modules/uni-collapse/components/uni-collapse-item/uni-collapse-item.js
  51. 14 14
      unpackage/dist/dev/mp-weixin/uni_modules/uni-collapse/components/uni-collapse/uni-collapse.js
  52. 15 15
      unpackage/dist/dev/mp-weixin/uni_modules/uni-icons/components/uni-icons/uni-icons.js
  53. 15 15
      unpackage/dist/dev/mp-weixin/uni_modules/uni-list/components/uni-list-chat/uni-list-chat.js

+ 8 - 2
pages.json

@@ -45,9 +45,15 @@
 			"root": "pagesHome",
 			"root": "pagesHome",
 			"pages": [ //分包
 			"pages": [ //分包
 				{
 				{
-					"path": "index/index",
+					"path": "group/index",
+					"style": {
+						"navigationBarTitleText": "群组"
+					}
+				},
+				{
+					"path": "friend/index",
 					"style": {
 					"style": {
-						"navigationBarTitleText": "test"
+						"navigationBarTitleText": "好友"
 					}
 					}
 				},
 				},
 				{
 				{

+ 59 - 13
pages/home/index.vue

@@ -12,25 +12,28 @@
 			<uni-collapse>
 			<uni-collapse>
 				<uni-collapse-item title="群组" :thumb="config.group_url[0].url">
 				<uni-collapse-item title="群组" :thumb="config.group_url[0].url">
 					<view class="content">
 					<view class="content">
-						<view class="list" v-for="(item, index) in groupList" :key="index" @tap="toInfo(item)">
-							<uni-list-chat :title="item.name" :avatar="item.doctor.icon[0].url||config.logo_url[0].url"
-								:time="item.doctor.name"></uni-list-chat>
+						<view class="two_1">
+							<input type="text" v-model="searchInfo.name" @input="toInput" placeholder="搜索">
 						</view>
 						</view>
-						<view class="is_bottom" v-if="is_bottom">
-							<text>{{config.bottom_title||'到底了!'}}</text>
+						<view class="list" v-for="(item, index) in groupList" :key="index">
+							<uni-list-chat :title="item.name" :avatar="item.doctor.icon[0].url||config.logo_url[0].url"
+								:time="item.doctor.name" link="navigateTo" @click="toInfo(item,'group')">
+							</uni-list-chat>
 						</view>
 						</view>
 					</view>
 					</view>
 				</uni-collapse-item>
 				</uni-collapse-item>
 				<uni-collapse-item title="好友" :thumb="config.friend_url[0].url">
 				<uni-collapse-item title="好友" :thumb="config.friend_url[0].url">
 					<view class="content">
 					<view class="content">
-						<view class="list" v-for="(item, index) in friendList" :key="index" @tap="toInfo(item)">
+						<view class="two_1">
+							<input type="text" v-model="searchInfo.name" @input="toInput" placeholder="搜索">
+						</view>
+						<view class="list" v-for="(item, index) in friendList" :key="index"
+							@tap="toInfo(item,'friend')">
 							<uni-list-chat title="uni-app"
 							<uni-list-chat title="uni-app"
 								avatar="https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/unicloudlogo.png"
 								avatar="https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/unicloudlogo.png"
-								note="您收到一条新的消息" time="2020-02-02 20:20" badge-positon="left"
-								badge-text="99"></uni-list-chat>
-						</view>
-						<view class="is_bottom" v-if="is_bottom">
-							<text>{{config.bottom_title||'到底了!'}}</text>
+								note="您收到一条新的消息" time="2020-02-02 20:20" badge-positon="left" badge-text="99"
+								link="navigateTo" @click="toInfo(item,'friend')">
+							</uni-list-chat>
 						</view>
 						</view>
 					</view>
 					</view>
 				</uni-collapse-item>
 				</uni-collapse-item>
@@ -45,6 +48,7 @@
 			return {
 			return {
 				user: {},
 				user: {},
 				config: {},
 				config: {},
+				searchInfo: {},
 				// 广告
 				// 广告
 				advertList: [],
 				advertList: [],
 				// 群组
 				// 群组
@@ -109,9 +113,13 @@
 						title: res.errmsg,
 						title: res.errmsg,
 					});
 					});
 				}
 				}
+				let info = {
+					// doctor: that.user._id,
+				}
 				// 群组
 				// 群组
 				res = await that.$api(`/group`, 'GET', {
 				res = await that.$api(`/group`, 'GET', {
-					// doctor: that.user._id
+					...info,
+					...that.searchInfo
 				})
 				})
 				if (res.errcode == '0') {
 				if (res.errcode == '0') {
 					that.$set(that, `groupList`, res.data)
 					that.$set(that, `groupList`, res.data)
@@ -121,7 +129,25 @@
 					});
 					});
 				}
 				}
 				// 好友
 				// 好友
-
+			},
+			// 输入框
+			toInput(e) {
+				const that = this;
+				if (that.searchInfo.name) that.$set(that.searchInfo, `name`, e.detail.value)
+				else that.$set(that, `searchInfo`, {})
+				that.search();
+			},
+			// 详情
+			toInfo(item, type) {
+				if (type == 'group') {
+					uni.navigateTo({
+						url: `/pagesHome/group/index?id=${item.id||item._id}&title=${item.name}`
+					})
+				} else {
+					uni.navigateTo({
+						url: `/pagesHome/friend/index?id=${item.id||item._id}&title=${item.name}`
+					})
+				}
 			},
 			},
 		}
 		}
 	}
 	}
@@ -143,5 +169,25 @@
 				}
 				}
 			}
 			}
 		}
 		}
+
+		.two {
+			.content {
+				.two_1 {
+					display: flex;
+					justify-content: center;
+					align-items: center;
+					padding: 2vw;
+					background-color: var(--f3CColor);
+
+					input {
+						width: 100%;
+						padding: 2vw;
+						background-color: var(--mainColor);
+						font-size: var(--font14Size);
+						border-radius: 5px;
+					}
+				}
+			}
+		}
 	}
 	}
 </style>
 </style>

+ 1 - 0
pages/science/index.vue

@@ -41,6 +41,7 @@
 			return {
 			return {
 				config: {},
 				config: {},
 				user: {},
 				user: {},
+				searchInfo: {},
 				list: [],
 				list: [],
 				total: 0,
 				total: 0,
 				skip: 0,
 				skip: 0,

+ 34 - 0
pagesHome/friend/index.vue

@@ -0,0 +1,34 @@
+<template>
+	<view class="main">
+		好友
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				id: ''
+			}
+		},
+		onLoad: async function(e) {
+			const that = this;
+			that.$set(that, `id`, e && e.id || '');
+			uni.setNavigationBarTitle({
+				title: e && e.title || '好友'
+			});
+		},
+		onShow: async function(e) {
+			const that = this;
+		},
+		methods: {
+
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	.main {
+		padding: 2vw;
+	}
+</style>

+ 34 - 0
pagesHome/group/index.vue

@@ -0,0 +1,34 @@
+<template>
+	<view class="main">
+		群组
+	</view>
+</template>
+
+<script>
+	export default {
+		data() {
+			return {
+				id: ''
+			}
+		},
+		onLoad: async function(e) {
+			const that = this;
+			that.$set(that, `id`, e && e.id || '');
+			uni.setNavigationBarTitle({
+				title: e && e.title || '群组'
+			});
+		},
+		onShow: async function(e) {
+			const that = this;
+		},
+		methods: {
+
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	.main {
+		padding: 2vw;
+	}
+</style>

+ 0 - 22
pagesHome/index/index.vue

@@ -1,22 +0,0 @@
-<template>
-	<view class="main">
-		首页
-	</view>
-</template>
-
-<script>
-	export default {
-		data() {
-			return {}
-		},
-		methods: {
-
-		}
-	}
-</script>
-
-<style lang="scss" scoped>
-	.main {
-		padding: 2vw;
-	}
-</style>

Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/common/main.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/components/upload/index.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/home/index.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/index.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/login/index.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/my/index.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pages/science/index.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/friend/index.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/group/index.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/index/index.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pagesHome/other/agree.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pagesMy/answer/index.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pagesMy/basic/index.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pagesMy/group/index.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/pagesScience/science/index.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-collapse/components/uni-collapse-item/uni-collapse-item.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-collapse/components/uni-collapse/uni-collapse.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-icons/components/uni-icons/uni-icons.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-list/components/uni-list-chat/uni-list-chat.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 0
unpackage/dist/dev/.sourcemap/mp-weixin/uni_modules/uni-list/components/uni-list/uni-list.js.map


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

@@ -10,7 +10,8 @@
     {
     {
       "root": "pagesHome",
       "root": "pagesHome",
       "pages": [
       "pages": [
-        "index/index",
+        "group/index",
+        "friend/index",
         "other/agree"
         "other/agree"
       ]
       ]
     },
     },

Dosya farkı çok büyük olduğundan ihmal edildi
+ 11784 - 11862
unpackage/dist/dev/mp-weixin/common/vendor.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 15 - 15
unpackage/dist/dev/mp-weixin/components/upload/index.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 36 - 11
unpackage/dist/dev/mp-weixin/pages/home/index.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
unpackage/dist/dev/mp-weixin/pages/home/index.wxml


+ 14 - 0
unpackage/dist/dev/mp-weixin/pages/home/index.wxss

@@ -11,4 +11,18 @@
   width: 100%;
   width: 100%;
   height: 100%;
   height: 100%;
 }
 }
+.main .two .content .two_1.data-v-71e217db {
+  display: flex;
+  justify-content: center;
+  align-items: center;
+  padding: 2vw;
+  background-color: var(--f3CColor);
+}
+.main .two .content .two_1 input.data-v-71e217db {
+  width: 100%;
+  padding: 2vw;
+  background-color: var(--mainColor);
+  font-size: var(--font14Size);
+  border-radius: 5px;
+}
 
 

+ 1 - 0
unpackage/dist/dev/mp-weixin/pages/science/index.js

@@ -208,6 +208,7 @@ var _default = {
     return {
     return {
       config: {},
       config: {},
       user: {},
       user: {},
+      searchInfo: {},
       list: [],
       list: [],
       total: 0,
       total: 0,
       skip: 0,
       skip: 0,

Dosya farkı çok büyük olduğundan ihmal edildi
+ 240 - 0
unpackage/dist/dev/mp-weixin/pagesHome/friend/index.js


+ 4 - 0
unpackage/dist/dev/mp-weixin/pagesHome/friend/index.json

@@ -0,0 +1,4 @@
+{
+  "navigationBarTitleText": "好友",
+  "usingComponents": {}
+}

+ 1 - 0
unpackage/dist/dev/mp-weixin/pagesHome/friend/index.wxml

@@ -0,0 +1 @@
+<view class="main data-v-ce92db0a">好友</view>

+ 1 - 1
unpackage/dist/dev/mp-weixin/pagesHome/index/index.wxss

@@ -1,7 +1,7 @@
 @charset "UTF-8";
 @charset "UTF-8";
 /* 水平间距 */
 /* 水平间距 */
 /* 水平间距 */
 /* 水平间距 */
-.main.data-v-0b9312eb {
+.main.data-v-ce92db0a {
   padding: 2vw;
   padding: 2vw;
 }
 }
 
 

Dosya farkı çok büyük olduğundan ihmal edildi
+ 79 - 29
unpackage/dist/dev/mp-weixin/pagesHome/index/index.js


+ 4 - 0
unpackage/dist/dev/mp-weixin/pagesHome/group/index.json

@@ -0,0 +1,4 @@
+{
+  "navigationBarTitleText": "群组",
+  "usingComponents": {}
+}

+ 1 - 0
unpackage/dist/dev/mp-weixin/pagesHome/group/index.wxml

@@ -0,0 +1 @@
+<view class="main data-v-1a2d2750">群组</view>

+ 7 - 0
unpackage/dist/dev/mp-weixin/pagesHome/group/index.wxss

@@ -0,0 +1,7 @@
+@charset "UTF-8";
+/* 水平间距 */
+/* 水平间距 */
+.main.data-v-1a2d2750 {
+  padding: 2vw;
+}
+

+ 0 - 4
unpackage/dist/dev/mp-weixin/pagesHome/index/index.json

@@ -1,4 +0,0 @@
-{
-  "navigationBarTitleText": "test",
-  "usingComponents": {}
-}

+ 0 - 1
unpackage/dist/dev/mp-weixin/pagesHome/index/index.wxml

@@ -1 +0,0 @@
-<view class="main data-v-0b9312eb">首页</view>

Dosya farkı çok büyük olduğundan ihmal edildi
+ 108 - 108
unpackage/dist/dev/mp-weixin/pagesHome/other/agree.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 16 - 16
unpackage/dist/dev/mp-weixin/pagesMy/answer/index.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 17 - 17
unpackage/dist/dev/mp-weixin/pagesMy/basic/index.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 16 - 16
unpackage/dist/dev/mp-weixin/pagesMy/group/index.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 141 - 141
unpackage/dist/dev/mp-weixin/pagesScience/science/index.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 15 - 15
unpackage/dist/dev/mp-weixin/uni_modules/uni-collapse/components/uni-collapse-item/uni-collapse-item.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 14 - 14
unpackage/dist/dev/mp-weixin/uni_modules/uni-collapse/components/uni-collapse/uni-collapse.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 15 - 15
unpackage/dist/dev/mp-weixin/uni_modules/uni-icons/components/uni-icons/uni-icons.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 15 - 15
unpackage/dist/dev/mp-weixin/uni_modules/uni-list/components/uni-list-chat/uni-list-chat.js