diff --git a/littleApp_child/app.json b/littleApp_child/app.json
index f988178..344a099 100644
--- a/littleApp_child/app.json
+++ b/littleApp_child/app.json
@@ -1,5 +1,7 @@
{
"pages": [
+ "pages/mySaved/mySaved",
+ "pages/feedback/feedback",
"pages/home/home",
diff --git a/littleApp_child/pages/feedback/feedback.js b/littleApp_child/pages/feedback/feedback.js
new file mode 100644
index 0000000..544085e
--- /dev/null
+++ b/littleApp_child/pages/feedback/feedback.js
@@ -0,0 +1,120 @@
+//hospitalList.js 医院列表 联系医院
+
+// 网络请求工具类
+var networkUtil = require('../../utils/network_util.js')
+var api = require('../../utils/apiFile.js')
+
+// 页码
+var page = 0
+// 地理位置信息
+var latitude = 0
+var longitude = 0
+// 是否有更多
+var hasMore = true
+
+Page({
+ data: {
+ list: [
+ {
+ checked: false, id: 1, title: "title1", introduction: "introductionintroductionintroductionintroductionintroductionintroductionintroduction", isLike: 1, likeCount:2,image:{
+ medium:"https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=4131634322,487666839&fm=26&gp=0.jpg"
+
+ } },
+ {
+ checked: false, id: 2, title: "title2", introduction: "introduction", isLike: 1, likeCount: 2, image: {
+ medium: "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=4131634322,487666839&fm=26&gp=0.jpg"
+
+ } },
+ {
+ checked: false, id: 3, title: "title1", introduction: "introduction", isLike: 1, likeCount: 2, image: {
+ medium: "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=4131634322,487666839&fm=26&gp=0.jpg"
+
+ } },
+ {
+ checked: false, id: 4, title: "title2", introduction: "introduction", isLike: 1, likeCount: 2, image: {
+ medium: "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=4131634322,487666839&fm=26&gp=0.jpg"
+
+ } },
+
+ {
+ checked: false, id: 5, title: "title1", introduction: "introduction", isLike: 1, likeCount: 2, image: {
+ medium: "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=4131634322,487666839&fm=26&gp=0.jpg"
+
+ } },
+ {
+ checked: false, id: 6, title: "title2", introduction: "introduction", isLike: 1, likeCount: 2, image: {
+ medium: "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=4131634322,487666839&fm=26&gp=0.jpg"
+
+ } },
+ {
+ checked: false, id: 7, title: "title1", introduction: "introduction", isLike: 1, likeCount: 2, image: {
+ medium: "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=4131634322,487666839&fm=26&gp=0.jpg"
+
+ } },
+ {
+ checked: false, id: 8, title: "title2", introduction: "introduction", isLike: 1, likeCount: 2, image: {
+ medium: "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=4131634322,487666839&fm=26&gp=0.jpg"
+
+ } },
+
+ ],
+ isShowCheckbox: false,
+ },
+ /*---------生命周期--------*/
+ onLoad: function () {
+
+
+ },
+ checkboxChange: function (e) {
+ console.log(e)
+ if (this.data.isShowCheckbox){
+ var self = this
+ var id = e.target.dataset.id
+ var checked = e.target.dataset.checked ? false : true
+ console.log(this.data.list)
+ for (var i = 0; i < this.data.list.length; i++) {
+ if (id == this.data.list[i].id) {
+ this.data.list[i].checked = checked
+ }
+ }
+ // console.log(this.data.list)
+ this.setData({
+ list: this.data.list
+ })
+ }
+
+ },
+ showChoose: function (e) {
+ var self = this
+ var isShowCheckbox = !self.data.isShowCheckbox
+
+ self.setData({
+ isShowCheckbox: isShowCheckbox
+ })
+ },
+ chooseAll: function (e) {
+ var list = this.data.list
+ for (var i = 0; i < list.length; i++) {
+ list[i].checked = true
+ }
+ this.setData({
+ list: list
+ })
+ },
+ cancle: function (e) {
+ var self = this
+ var list = this.data.list
+ for (var i = 0; i < list.length; i++) {
+ list[i].checked = false
+ }
+ var isShowCheckbox = !self.data.isShowCheckbox
+
+ self.setData({
+ isShowCheckbox: isShowCheckbox,
+ list: list
+ })
+ },
+ deleteAll: function (e) {
+
+ }
+})
diff --git a/littleApp_child/pages/feedback/feedback.json b/littleApp_child/pages/feedback/feedback.json
new file mode 100644
index 0000000..4247a49
--- /dev/null
+++ b/littleApp_child/pages/feedback/feedback.json
@@ -0,0 +1,6 @@
+{
+ "navigationBarBackgroundColor": "#48C17B",
+ "navigationBarTitleText": "用户反馈",
+ "navigationBarTextStyle": "white",
+ "backgroundColor": "#d8dbd4"
+}
\ No newline at end of file
diff --git a/littleApp_child/pages/feedback/feedback.wxml b/littleApp_child/pages/feedback/feedback.wxml
new file mode 100644
index 0000000..315b8e0
--- /dev/null
+++ b/littleApp_child/pages/feedback/feedback.wxml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/littleApp_child/pages/feedback/feedback.wxss b/littleApp_child/pages/feedback/feedback.wxss
new file mode 100644
index 0000000..7cba6c9
--- /dev/null
+++ b/littleApp_child/pages/feedback/feedback.wxss
@@ -0,0 +1,30 @@
+.main {
+ background: white;
+ height: 100%;
+}
+
+.content {
+ width: 100%;
+ left: 10px;
+ right: 10px;
+ background: #fff;
+ border: 1px solid #e6e6e6;
+ border-radius: 4px;
+ padding: 10px;
+ font-size: 14px;
+ color: #888;
+ margin-top: 10px;
+ height: 120px;
+}
+
+.delete_bt2 {
+ background: #48c17b;
+ border-radius: 100px;
+ position: fixed;
+ color: white;
+ font-size: 14px;
+ bottom: 20px;
+ left: 10px;
+ right: 10px;
+ height: 36px;
+}
diff --git a/littleApp_child/pages/mySaved/mySaved.js b/littleApp_child/pages/mySaved/mySaved.js
new file mode 100644
index 0000000..544085e
--- /dev/null
+++ b/littleApp_child/pages/mySaved/mySaved.js
@@ -0,0 +1,120 @@
+//hospitalList.js 医院列表 联系医院
+
+// 网络请求工具类
+var networkUtil = require('../../utils/network_util.js')
+var api = require('../../utils/apiFile.js')
+
+// 页码
+var page = 0
+// 地理位置信息
+var latitude = 0
+var longitude = 0
+// 是否有更多
+var hasMore = true
+
+Page({
+ data: {
+ list: [
+ {
+ checked: false, id: 1, title: "title1", introduction: "introductionintroductionintroductionintroductionintroductionintroductionintroduction", isLike: 1, likeCount:2,image:{
+ medium:"https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=4131634322,487666839&fm=26&gp=0.jpg"
+
+ } },
+ {
+ checked: false, id: 2, title: "title2", introduction: "introduction", isLike: 1, likeCount: 2, image: {
+ medium: "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=4131634322,487666839&fm=26&gp=0.jpg"
+
+ } },
+ {
+ checked: false, id: 3, title: "title1", introduction: "introduction", isLike: 1, likeCount: 2, image: {
+ medium: "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=4131634322,487666839&fm=26&gp=0.jpg"
+
+ } },
+ {
+ checked: false, id: 4, title: "title2", introduction: "introduction", isLike: 1, likeCount: 2, image: {
+ medium: "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=4131634322,487666839&fm=26&gp=0.jpg"
+
+ } },
+
+ {
+ checked: false, id: 5, title: "title1", introduction: "introduction", isLike: 1, likeCount: 2, image: {
+ medium: "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=4131634322,487666839&fm=26&gp=0.jpg"
+
+ } },
+ {
+ checked: false, id: 6, title: "title2", introduction: "introduction", isLike: 1, likeCount: 2, image: {
+ medium: "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=4131634322,487666839&fm=26&gp=0.jpg"
+
+ } },
+ {
+ checked: false, id: 7, title: "title1", introduction: "introduction", isLike: 1, likeCount: 2, image: {
+ medium: "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=4131634322,487666839&fm=26&gp=0.jpg"
+
+ } },
+ {
+ checked: false, id: 8, title: "title2", introduction: "introduction", isLike: 1, likeCount: 2, image: {
+ medium: "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=4131634322,487666839&fm=26&gp=0.jpg"
+
+ } },
+
+ ],
+ isShowCheckbox: false,
+ },
+ /*---------生命周期--------*/
+ onLoad: function () {
+
+
+ },
+ checkboxChange: function (e) {
+ console.log(e)
+ if (this.data.isShowCheckbox){
+ var self = this
+ var id = e.target.dataset.id
+ var checked = e.target.dataset.checked ? false : true
+ console.log(this.data.list)
+ for (var i = 0; i < this.data.list.length; i++) {
+ if (id == this.data.list[i].id) {
+ this.data.list[i].checked = checked
+ }
+ }
+ // console.log(this.data.list)
+ this.setData({
+ list: this.data.list
+ })
+ }
+
+ },
+ showChoose: function (e) {
+ var self = this
+ var isShowCheckbox = !self.data.isShowCheckbox
+
+ self.setData({
+ isShowCheckbox: isShowCheckbox
+ })
+ },
+ chooseAll: function (e) {
+ var list = this.data.list
+ for (var i = 0; i < list.length; i++) {
+ list[i].checked = true
+ }
+ this.setData({
+ list: list
+ })
+ },
+ cancle: function (e) {
+ var self = this
+ var list = this.data.list
+ for (var i = 0; i < list.length; i++) {
+ list[i].checked = false
+ }
+ var isShowCheckbox = !self.data.isShowCheckbox
+
+ self.setData({
+ isShowCheckbox: isShowCheckbox,
+ list: list
+ })
+ },
+ deleteAll: function (e) {
+
+ }
+})
diff --git a/littleApp_child/pages/mySaved/mySaved.json b/littleApp_child/pages/mySaved/mySaved.json
new file mode 100644
index 0000000..d548fd9
--- /dev/null
+++ b/littleApp_child/pages/mySaved/mySaved.json
@@ -0,0 +1,7 @@
+{
+ "navigationBarBackgroundColor": "#48C17B",
+ "navigationBarTitleText": "我的收藏",
+ "navigationBarTextStyle": "white",
+ "backgroundColor": "#d8dbd4",
+ "enablePullDownRefresh": true
+}
\ No newline at end of file
diff --git a/littleApp_child/pages/mySaved/mySaved.wxml b/littleApp_child/pages/mySaved/mySaved.wxml
new file mode 100644
index 0000000..9ef22a0
--- /dev/null
+++ b/littleApp_child/pages/mySaved/mySaved.wxml
@@ -0,0 +1,49 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{item.title}}
+ {{item.introduction}}
+
+
+
+
+ {{item.likeCount}}
+
+
+
+ {{item.likeCount}}
+
+
+ 新生儿
+ 健康宝宝
+
+
+
+
+
+
+
+
+
+
+
+ 加载更多...
+
+
+
+
+
+ 全选
+ 取消
+ 删除
+
+
+
\ No newline at end of file
diff --git a/littleApp_child/pages/mySaved/mySaved.wxss b/littleApp_child/pages/mySaved/mySaved.wxss
new file mode 100644
index 0000000..4278f87
--- /dev/null
+++ b/littleApp_child/pages/mySaved/mySaved.wxss
@@ -0,0 +1,157 @@
+.main {
+ background: white;
+ height: 100%;
+ width: 100%;
+}
+
+.check_image {
+ width: 20px;
+ height: 20px;
+ margin-left: 10px;
+ transform: translateY(-55px);
+}
+
+.content_item {
+ width: 100%;
+ height: 90px;
+ right: 75px;
+ margin-left: 10px;
+ position: flex;
+}
+
+.content_title {
+ font-family: PingFangSC-Regular;
+ font-size: 14px;
+ padding-top: 7px;
+ color: #222;
+ display: -webkit-box;
+ -webkit-box-orient: vertical;
+ -webkit-line-clamp: 1;
+ overflow: hidden;
+}
+
+.content_content {
+ height: 36px;
+ font-family: PingFangSC-Regular;
+ font-size: 12px;
+ color: #888;
+ line-height: 18px;
+ display: -webkit-box;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ word-break: break-all;
+ -webkit-box-orient: vertical;
+ -webkit-line-clamp: 2;
+}
+
+.content_image {
+ width: 50px;
+ transform: translateY(-75px);
+ float: right;
+ margin-right: 15px;
+ height: 50px;
+ position: absolute;
+ right: 0px;
+}
+
+.zarparent_box {
+ display: flex;
+}
+
+.zar_box {
+ display: flex;
+ margin-left: -5px;
+ width: 50px;
+}
+
+.zar_img {
+ width: 25px;
+ height: 25px;
+}
+
+.save_img {
+ width: 25px;
+ height: 25px;
+}
+
+.content_zar {
+ font-family: PingFangSC-Regular;
+ font-size: 10px;
+ margin-left: 3px;
+ margin-top: 5px;
+ color: #c6c6c6;
+}
+
+.tags_view{
+ display:flex;
+ float: right;
+ position: absolute;
+ right: 20px;
+}
+.tags1 {
+ background: #f2fdf7;
+ border-radius: 2px;
+ font-size: 12px;
+ margin-left: 10px;
+ color: #58a478;
+ margin-top: 5px;
+}
+
+/*item 分割线*/
+
+.home__list-item__bottom {
+ height: 1px;
+ background: #e2e2e2;
+ margin-top: 5px;
+ margin-bottom: 5px;
+ left: 15px;
+ right: 15px;
+}
+
+.list_scroll {
+ height: 100vh;
+ /* background: rebeccapurple */
+}
+
+.bottom_view {
+ position: fixed;
+ display: flex;
+ bottom: 20px;
+ left: 10px;
+ right: 10px;
+ height: 36px;
+}
+
+.chooseAll {
+ background: #eaeaea;
+ border: 1px solid #e6e6e6;
+ border-radius: 100px;
+ font-size: 14px;
+ color: #888;
+ margin-right: 10px;
+ text-align: center;
+ line-height: 36px;
+ width: 30%;
+}
+
+.delete_bt {
+ background: #48c17b;
+ border-radius: 100px;
+ color: white;
+ font-size: 14px;
+ width: 30%;
+ line-height: 36px;
+ text-align: center;
+}
+
+.delete_bt2 {
+ background: #48c17b;
+ border-radius: 100px;
+ position: fixed;
+ color: white;
+ font-size: 14px;
+ bottom: 20px;
+ left: 10px;
+ right: 10px;
+ height: 36px;
+}
diff --git a/littleApp_child/source/save_not.png b/littleApp_child/source/save_not.png
new file mode 100644
index 0000000000000000000000000000000000000000..7d80433d91cd3b1c7e25e6237620921bc34d1e28
GIT binary patch
literal 1284
zcmV+f1^fDmP)}>F=M+
zz~Id6%Py%hrk%9f_4fA0@%=G+i^XR^8_D$NRvjzt3AnGXuWEdJ{0EHc2sQ@T#`gC1U#w27
zbXQl`O7u=4{XM>j{|5Rv7v>Ep~T=wLP7Q_=Uhx$)A_(BfY6ub18adTEIe{gWH
zf*3nxPx}dH_pffgJORs)XX8#BWgu7Z@_NV3S+V@#;o&z~4i6~?vEI$+#~0vuJboRA
zI}As!F@5XvIW0uSGSk)nw&`0ln$O<%Ceo$==%+Y)o;pD`xXh9>8!}&jd@{g3J~=u0
zEjn6eNAdSGe)XnyExs}=YdNZ^sd)iX0V){45dyB3teArBqwEQ7Xn{RlRaLd#3#{V!
z1}x>~=H?u0Oj)=_wiUZJY|eul<4nD=3?AjOFnpqymQl{T@K}GXPhA
z$jZ<;K>NOIs3!otngsj-?YsEibWR=xknA3$)yJvUd2e-f^#+!X`G}b@<13^F;%n*}
zG0;1N-pg8I>K9T<0&E5X&^G9O)G%N!GtDHf{b$J;&@u*eoVpyD0B++n_&~B^%A5dJ
zU^bFICcgyO0)UNB<7}odU(GuD7SbO>_6%PZr-}h;+RPbXIb@AC0_qs#66!5L>OrIb
zFw$()7+Kd}0wt9>1uP`}{r&f4G8w(L9yXAj4|Lpu}^h;{y9I()^ZWpjTjwr!^
ueX6CU