合并分支 'lihongjuan' 到 'master'
Lihongjuan 查看合并请求 !10
正在显示
10 个修改的文件
包含
408 行增加
和
133 行删除
@@ -22,17 +22,23 @@ var app = new Vue({ | @@ -22,17 +22,23 @@ var app = new Vue({ | ||
22 | code: '' | 22 | code: '' |
23 | }, | 23 | }, |
24 | created: function () { | 24 | created: function () { |
25 | - apiready = function () { | 25 | + // apiready = function () { |
26 | // app.broth_info=$("#date2").val(); | 26 | // app.broth_info=$("#date2").val(); |
27 | - console.log(app.broth_info) | ||
28 | - app.broth_info=localStorage.getItem("birth") | ||
29 | - app.rid = api.pageParam.rid; | ||
30 | - app.date_type = api.pageParam.date_type; | ||
31 | - app.type_name = api.pageParam.type_name; | ||
32 | - app.type_home = api.pageParam.type_home; | ||
33 | - app.type_id = api.pageParam.type_id; | ||
34 | - app.getOrg(); | ||
35 | - switch (app.type_id) { | 27 | + console.log(this.broth_info) |
28 | + this.broth_info=localStorage.getItem("birth") | ||
29 | + // this.rid = api.pageParam.rid; | ||
30 | + // this.date_type = api.pageParam.date_type; | ||
31 | + // this.type_name = api.pageParam.type_name; | ||
32 | + // this.type_home = api.pageParam.type_home; | ||
33 | + // this.type_id = api.pageParam.type_id; | ||
34 | + this.rid=localStorage.getItem("rid"); | ||
35 | + this.date_type=localStorage.getItem("date_type"); | ||
36 | + this.type_name=localStorage.getItem("type_name"); | ||
37 | + this.type_home=localStorage.getItem("type_home"); | ||
38 | + this.type_id=localStorage.getItem("type_id"); | ||
39 | + this.getOrg(); | ||
40 | + this.getIllness(); | ||
41 | + switch (this.type_id) { | ||
36 | case 1: | 42 | case 1: |
37 | app.getIllness(); | 43 | app.getIllness(); |
38 | break; | 44 | break; |
@@ -46,7 +52,7 @@ var app = new Vue({ | @@ -46,7 +52,7 @@ var app = new Vue({ | ||
46 | return false; | 52 | return false; |
47 | } | 53 | } |
48 | 54 | ||
49 | - } | 55 | + // } |
50 | }, | 56 | }, |
51 | methods: { | 57 | methods: { |
52 | // 选择日期 | 58 | // 选择日期 |
@@ -73,6 +79,7 @@ var app = new Vue({ | @@ -73,6 +79,7 @@ var app = new Vue({ | ||
73 | // // }, | 79 | // // }, |
74 | // 上传照片 | 80 | // 上传照片 |
75 | choose_pic: function (type) { | 81 | choose_pic: function (type) { |
82 | + var app=this; | ||
76 | app.popupVisible = false; | 83 | app.popupVisible = false; |
77 | api.getPicture({ | 84 | api.getPicture({ |
78 | sourceType: type, | 85 | sourceType: type, |
@@ -115,12 +122,14 @@ var app = new Vue({ | @@ -115,12 +122,14 @@ var app = new Vue({ | ||
115 | }, | 122 | }, |
116 | // 获取疾病类型 | 123 | // 获取疾病类型 |
117 | getIllness: function () { | 124 | getIllness: function () { |
125 | + | ||
126 | + var app=this; | ||
118 | var heder = { | 127 | var heder = { |
119 | "XX-Device-Type": getDevice(), | 128 | "XX-Device-Type": getDevice(), |
120 | 'XX-Token': getToken() | 129 | 'XX-Token': getToken() |
121 | }; | 130 | }; |
122 | getRequest('post', 'user/index/getIllness', null, heder).then(function (res) { | 131 | getRequest('post', 'user/index/getIllness', null, heder).then(function (res) { |
123 | - console.log(res) | 132 | + console.log(res) |
124 | if (res.data.code == 1) { | 133 | if (res.data.code == 1) { |
125 | for (var i in res.data.data) { | 134 | for (var i in res.data.data) { |
126 | app.Illness_list.push({ | 135 | app.Illness_list.push({ |
@@ -134,6 +143,7 @@ var app = new Vue({ | @@ -134,6 +143,7 @@ var app = new Vue({ | ||
134 | }, | 143 | }, |
135 | // 获取体检名称 | 144 | // 获取体检名称 |
136 | getPExam: function () { | 145 | getPExam: function () { |
146 | + var app=this; | ||
137 | var heder = { | 147 | var heder = { |
138 | "XX-Device-Type": getDevice(), | 148 | "XX-Device-Type": getDevice(), |
139 | 'XX-Token': getToken() | 149 | 'XX-Token': getToken() |
@@ -152,6 +162,7 @@ var app = new Vue({ | @@ -152,6 +162,7 @@ var app = new Vue({ | ||
152 | }, | 162 | }, |
153 | // 获取 | 163 | // 获取 |
154 | getCheckReport: function () { | 164 | getCheckReport: function () { |
165 | + var app=this; | ||
155 | var header = { | 166 | var header = { |
156 | "XX-Device-Type": getDevice(), | 167 | "XX-Device-Type": getDevice(), |
157 | 'XX-Token': getToken() | 168 | 'XX-Token': getToken() |
@@ -170,27 +181,41 @@ var app = new Vue({ | @@ -170,27 +181,41 @@ var app = new Vue({ | ||
170 | }, | 181 | }, |
171 | // 获取机构名称 | 182 | // 获取机构名称 |
172 | getOrg: function () { | 183 | getOrg: function () { |
184 | + | ||
185 | + var app=this; | ||
173 | var heder = { | 186 | var heder = { |
174 | "XX-Device-Type": getDevice(), | 187 | "XX-Device-Type": getDevice(), |
175 | 'XX-Token': getToken() | 188 | 'XX-Token': getToken() |
176 | }; | 189 | }; |
177 | getRequest('post', 'user/index/getOrg', null, heder).then(function (res) { | 190 | getRequest('post', 'user/index/getOrg', null, heder).then(function (res) { |
178 | - | 191 | + // console.log(res); |
192 | + if (res.data.code == 1) { | ||
193 | + for (var i in res.data.data) { | ||
194 | + app. org_list.push({ | ||
195 | + value: res.data.data[i].id, | ||
196 | + label: res.data.data[i].name | ||
197 | + }) | ||
198 | + } | ||
199 | + loadEnd() | ||
200 | + } | ||
179 | }) | 201 | }) |
180 | }, | 202 | }, |
181 | // 选择类别 | 203 | // 选择类别 |
182 | 204 | ||
183 | choose_item: function () { | 205 | choose_item: function () { |
206 | + var app=this; | ||
184 | weui.picker(app.Illness_list, { | 207 | weui.picker(app.Illness_list, { |
185 | onChange: function (result) { | 208 | onChange: function (result) { |
186 | }, | 209 | }, |
187 | onConfirm: function (result) { | 210 | onConfirm: function (result) { |
211 | + | ||
188 | app.choose_type_name = result[0].label | 212 | app.choose_type_name = result[0].label |
189 | } | 213 | } |
190 | }) | 214 | }) |
191 | }, | 215 | }, |
192 | // 选择机构名称 | 216 | // 选择机构名称 |
193 | choose_home: function () { | 217 | choose_home: function () { |
218 | + var app=this; | ||
194 | weui.picker(app.org_list, { | 219 | weui.picker(app.org_list, { |
195 | onChange: function (result) { | 220 | onChange: function (result) { |
196 | }, | 221 | }, |
@@ -201,6 +226,7 @@ var app = new Vue({ | @@ -201,6 +226,7 @@ var app = new Vue({ | ||
201 | }, | 226 | }, |
202 | // 打开二维码 | 227 | // 打开二维码 |
203 | openQrc: function () { | 228 | openQrc: function () { |
229 | + var app=this; | ||
204 | var FNScanner = api.require('FNScanner'); | 230 | var FNScanner = api.require('FNScanner'); |
205 | FNScanner.open({ | 231 | FNScanner.open({ |
206 | autorotation: true | 232 | autorotation: true |
@@ -224,6 +250,7 @@ var app = new Vue({ | @@ -224,6 +250,7 @@ var app = new Vue({ | ||
224 | }, | 250 | }, |
225 | // 保存报告 | 251 | // 保存报告 |
226 | save_info: function () { | 252 | save_info: function () { |
253 | + var app=this; | ||
227 | app.broth_info=$("#date2").val(); | 254 | app.broth_info=$("#date2").val(); |
228 | localStorage.setItem("birth",app.broth_info); | 255 | localStorage.setItem("birth",app.broth_info); |
229 | console.log(localStorage) | 256 | console.log(localStorage) |
@@ -17,81 +17,84 @@ var app = new Vue({ | @@ -17,81 +17,84 @@ var app = new Vue({ | ||
17 | rid: '' | 17 | rid: '' |
18 | }, | 18 | }, |
19 | created: function () { | 19 | created: function () { |
20 | - apiready = function () { | ||
21 | - app.rid = api.pageParam.rid; | ||
22 | - app.getPressure(); | 20 | + // apiready = function () { |
21 | + // app.rid = api.pageParam.rid; | ||
22 | + this.rid=localStorage.getItem("rid"); | ||
23 | + console.log(this.rid) | ||
24 | + this.getPressure(); | ||
23 | for (var i = 0; i < 300; i++) { | 25 | for (var i = 0; i < 300; i++) { |
24 | - app.high_list.push({ | 26 | + this.high_list.push({ |
25 | "label": i, | 27 | "label": i, |
26 | "value": i, | 28 | "value": i, |
27 | }) | 29 | }) |
28 | } | 30 | } |
29 | - } | 31 | + // } |
30 | }, | 32 | }, |
31 | methods: { | 33 | methods: { |
32 | // 日期选择 | 34 | // 日期选择 |
33 | 35 | ||
34 | - dateSelect: function () { | ||
35 | - // if (api.systemType == 'ios') { | ||
36 | - // api.openPicker({ | ||
37 | - // type: 'date_time', | ||
38 | - // date: new Date(), | ||
39 | - // maxDate: getTimeDetil(0), | ||
40 | - // title: '测量时间' | ||
41 | - // }, function (ret, err) { | ||
42 | - // if (ret) { | ||
43 | - // app.year = ret.year; | ||
44 | - // app.month = ret.month; | ||
45 | - // app.day = ret.day; | ||
46 | - // app.hour = ret.hour; | ||
47 | - // app.minute = ret.minute; | ||
48 | - // app.date_info = app.year + '-' + add0(app.month) + '-' + add0(app.day) + ' ' + add0(app.hour) + ':' + add0(app.minute); | ||
49 | - // if (checkDate(app.date_info, 2)) { | ||
50 | - // return app.date_info | ||
51 | - // } else { | ||
52 | - // toastMsg('请选择正确的测量时间'); | ||
53 | - // return app.date_info = '' | ||
54 | - // } | ||
55 | - // } else { | ||
56 | - // console.log(err) | ||
57 | - // } | ||
58 | - // }); | ||
59 | - // } | ||
60 | - // else { | ||
61 | - // api.openPicker({ | ||
62 | - // type: 'date', | ||
63 | - // title: '测量时间', | ||
64 | - // }, function (ret, err) { | ||
65 | - // if (ret) { | ||
66 | - // app.year = ret.year; | ||
67 | - // app.month = ret.month; | ||
68 | - // app.day = ret.day; | ||
69 | - // api.openPicker({ | ||
70 | - // type: 'time', | ||
71 | - // title: '测量时间' | ||
72 | - // }, function (rets, errs) { | ||
73 | - // if (rets) { | ||
74 | - // app.hour = rets.hour; | ||
75 | - // app.minute = rets.minute; | ||
76 | - // app.date_info = app.year + '-' + add0(app.month) + '-' + add0(app.day) + ' ' + add0(app.hour) + ':' + add0(app.minute); | ||
77 | - // if (checkDate(app.date_info, 2)) { | ||
78 | - // return app.date_info | ||
79 | - // } else { | ||
80 | - // toastMsg('请选择正确的测量时间'); | ||
81 | - // return app.date_info = '' | ||
82 | - // } | ||
83 | - // } else { | ||
84 | - // console.log(errs) | ||
85 | - // } | ||
86 | - // }); | ||
87 | - // } else { | ||
88 | - // console.log(err) | ||
89 | - // } | ||
90 | - // }); | ||
91 | - // } | ||
92 | - }, | 36 | + // dateSelect: function () { |
37 | + // // if (api.systemType == 'ios') { | ||
38 | + // // api.openPicker({ | ||
39 | + // // type: 'date_time', | ||
40 | + // // date: new Date(), | ||
41 | + // // maxDate: getTimeDetil(0), | ||
42 | + // // title: '测量时间' | ||
43 | + // // }, function (ret, err) { | ||
44 | + // // if (ret) { | ||
45 | + // // app.year = ret.year; | ||
46 | + // // app.month = ret.month; | ||
47 | + // // app.day = ret.day; | ||
48 | + // // app.hour = ret.hour; | ||
49 | + // // app.minute = ret.minute; | ||
50 | + // // app.date_info = app.year + '-' + add0(app.month) + '-' + add0(app.day) + ' ' + add0(app.hour) + ':' + add0(app.minute); | ||
51 | + // // if (checkDate(app.date_info, 2)) { | ||
52 | + // // return app.date_info | ||
53 | + // // } else { | ||
54 | + // // toastMsg('请选择正确的测量时间'); | ||
55 | + // // return app.date_info = '' | ||
56 | + // // } | ||
57 | + // // } else { | ||
58 | + // // console.log(err) | ||
59 | + // // } | ||
60 | + // // }); | ||
61 | + // // } | ||
62 | + // // else { | ||
63 | + // // api.openPicker({ | ||
64 | + // // type: 'date', | ||
65 | + // // title: '测量时间', | ||
66 | + // // }, function (ret, err) { | ||
67 | + // // if (ret) { | ||
68 | + // // app.year = ret.year; | ||
69 | + // // app.month = ret.month; | ||
70 | + // // app.day = ret.day; | ||
71 | + // // api.openPicker({ | ||
72 | + // // type: 'time', | ||
73 | + // // title: '测量时间' | ||
74 | + // // }, function (rets, errs) { | ||
75 | + // // if (rets) { | ||
76 | + // // app.hour = rets.hour; | ||
77 | + // // app.minute = rets.minute; | ||
78 | + // // app.date_info = app.year + '-' + add0(app.month) + '-' + add0(app.day) + ' ' + add0(app.hour) + ':' + add0(app.minute); | ||
79 | + // // if (checkDate(app.date_info, 2)) { | ||
80 | + // // return app.date_info | ||
81 | + // // } else { | ||
82 | + // // toastMsg('请选择正确的测量时间'); | ||
83 | + // // return app.date_info = '' | ||
84 | + // // } | ||
85 | + // // } else { | ||
86 | + // // console.log(errs) | ||
87 | + // // } | ||
88 | + // // }); | ||
89 | + // // } else { | ||
90 | + // // console.log(err) | ||
91 | + // // } | ||
92 | + // // }); | ||
93 | + // // } | ||
94 | + // }, | ||
93 | // 选择高压 | 95 | // 选择高压 |
94 | choose_high: function () { | 96 | choose_high: function () { |
97 | + var app=this; | ||
95 | weui.picker(app.high_list, { | 98 | weui.picker(app.high_list, { |
96 | onChange: function (result) { | 99 | onChange: function (result) { |
97 | 100 | ||
@@ -104,6 +107,7 @@ var app = new Vue({ | @@ -104,6 +107,7 @@ var app = new Vue({ | ||
104 | }, | 107 | }, |
105 | // 选择低压 | 108 | // 选择低压 |
106 | choose_low: function () { | 109 | choose_low: function () { |
110 | + var app=this; | ||
107 | weui.picker(app.high_list, { | 111 | weui.picker(app.high_list, { |
108 | onChange: function (result) { | 112 | onChange: function (result) { |
109 | 113 | ||
@@ -115,6 +119,7 @@ var app = new Vue({ | @@ -115,6 +119,7 @@ var app = new Vue({ | ||
115 | }, | 119 | }, |
116 | // 保存数据 | 120 | // 保存数据 |
117 | save_data: function () { | 121 | save_data: function () { |
122 | + var app=this; | ||
118 | app.default_date=$("#test04").val(); | 123 | app.default_date=$("#test04").val(); |
119 | 124 | ||
120 | if (app.default_date == '') { | 125 | if (app.default_date == '') { |
@@ -141,6 +146,7 @@ var app = new Vue({ | @@ -141,6 +146,7 @@ var app = new Vue({ | ||
141 | rate: app.heart_num | 146 | rate: app.heart_num |
142 | }; | 147 | }; |
143 | getRequest('post', 'user/index/setBoolData', post, header).then(function (res) { | 148 | getRequest('post', 'user/index/setBoolData', post, header).then(function (res) { |
149 | + | ||
144 | // alert(JSON.stringify(res)) | 150 | // alert(JSON.stringify(res)) |
145 | if (res.data.code == 1) { | 151 | if (res.data.code == 1) { |
146 | toastMsg('记录成功!'); | 152 | toastMsg('记录成功!'); |
@@ -157,17 +163,19 @@ var app = new Vue({ | @@ -157,17 +163,19 @@ var app = new Vue({ | ||
157 | } | 163 | } |
158 | }, | 164 | }, |
159 | getPressure: function () { | 165 | getPressure: function () { |
160 | - | 166 | + var app=this; |
167 | + var rid=localStorage.getItem("rid") | ||
161 | 168 | ||
162 | var header = { | 169 | var header = { |
163 | "XX-Device-Type": getDevice(), | 170 | "XX-Device-Type": getDevice(), |
164 | 'XX-Token': getToken() | 171 | 'XX-Token': getToken() |
165 | }; | 172 | }; |
166 | var post = { | 173 | var post = { |
167 | - rid: api.pageParam.rid, | 174 | + rid: rid, |
168 | type: 2 | 175 | type: 2 |
169 | }; | 176 | }; |
170 | getRequest('post', 'user/index/getLastBoolData', post, header).then(function (res) { | 177 | getRequest('post', 'user/index/getLastBoolData', post, header).then(function (res) { |
178 | + console.log(res.data.data.high) | ||
171 | // alert(JSON.stringify(res)) | 179 | // alert(JSON.stringify(res)) |
172 | if (res.data.code == 1) { | 180 | if (res.data.code == 1) { |
173 | app.date_info = res.data.data.time; | 181 | app.date_info = res.data.data.time; |
@@ -16,8 +16,17 @@ function openWin(data) { | @@ -16,8 +16,17 @@ function openWin(data) { | ||
16 | } | 16 | } |
17 | 17 | ||
18 | function openView(fmName, fmUrl, winTitle, winName, winUrl, fmParams, winParams) { | 18 | function openView(fmName, fmUrl, winTitle, winName, winUrl, fmParams, winParams) { |
19 | + if(fmParams){ | ||
20 | + for (var item in fmParams) { | ||
21 | + console.log(item) | ||
22 | + console.log(fmParams[item]) | ||
23 | + localStorage.setItem(item,fmParams[item]) | ||
24 | + } | ||
25 | + } | ||
19 | if(winParams){ | 26 | if(winParams){ |
20 | for (var item in winParams) { | 27 | for (var item in winParams) { |
28 | + console.log(item) | ||
29 | + console.log(winParams[item]) | ||
21 | localStorage.setItem(item,winParams[item]) | 30 | localStorage.setItem(item,winParams[item]) |
22 | } | 31 | } |
23 | } | 32 | } |
@@ -360,7 +369,7 @@ function getRequest(type, url, params, header) { | @@ -360,7 +369,7 @@ function getRequest(type, url, params, header) { | ||
360 | }, 2000); | 369 | }, 2000); |
361 | // openView('login_index', 'login/login_index', '登录', 'login_index', false, false, false) | 370 | // openView('login_index', 'login/login_index', '登录', 'login_index', false, false, false) |
362 | } else { | 371 | } else { |
363 | - resolve(res) | 372 | + resolve(res) |
364 | } | 373 | } |
365 | loadEnd(); | 374 | loadEnd(); |
366 | // resolve(res) | 375 | // resolve(res) |
@@ -123,15 +123,19 @@ | @@ -123,15 +123,19 @@ | ||
123 | status3: '' | 123 | status3: '' |
124 | }, | 124 | }, |
125 | created: function () { | 125 | created: function () { |
126 | - apiready = function () { | ||
127 | - app.type_id = api.pageParam.id; | ||
128 | - app.rid = api.pageParam.rid; | ||
129 | - app.typeInfo(); | ||
130 | - } | 126 | + // var app=this; |
127 | + // apiready = function () { | ||
128 | + // app.type_id = api.pageParam.id; | ||
129 | + // app.rid = api.pageParam.rid; | ||
130 | + this.type_id=localStorage.getItem("id"); | ||
131 | + this.rid=localStorage.getItem("rid") | ||
132 | + this.typeInfo(); | ||
133 | + // } | ||
131 | }, | 134 | }, |
132 | methods: { | 135 | methods: { |
133 | // 获取选择数据 | 136 | // 获取选择数据 |
134 | typeInfo: function () { | 137 | typeInfo: function () { |
138 | + var app=this; | ||
135 | var post = { | 139 | var post = { |
136 | type_id: app.type_id | 140 | type_id: app.type_id |
137 | }; | 141 | }; |
@@ -171,6 +175,7 @@ | @@ -171,6 +175,7 @@ | ||
171 | }, | 175 | }, |
172 | // 多选 | 176 | // 多选 |
173 | choose_more: function (select, index) { | 177 | choose_more: function (select, index) { |
178 | + var app=this; | ||
174 | Array.prototype.indexOf = function (val) { | 179 | Array.prototype.indexOf = function (val) { |
175 | for (var i = 0; i < this.length; i++) { | 180 | for (var i = 0; i < this.length; i++) { |
176 | if (this[i] == val) return i; | 181 | if (this[i] == val) return i; |
@@ -195,7 +200,8 @@ | @@ -195,7 +200,8 @@ | ||
195 | , | 200 | , |
196 | // 第一道单选 | 201 | // 第一道单选 |
197 | chooseAnswer: function (index) { | 202 | chooseAnswer: function (index) { |
198 | - for (let m in app.answer_one) { | 203 | + var app=this; |
204 | + for (var m in app.answer_one) { | ||
199 | app.answer_one[m].select = 0 | 205 | app.answer_one[m].select = 0 |
200 | } | 206 | } |
201 | var ind = app.answer_one[index].select; | 207 | var ind = app.answer_one[index].select; |
@@ -210,6 +216,7 @@ | @@ -210,6 +216,7 @@ | ||
210 | , | 216 | , |
211 | // 第二道单选 | 217 | // 第二道单选 |
212 | chooseAnswer2: function (index) { | 218 | chooseAnswer2: function (index) { |
219 | + var app=this; | ||
213 | for (var n in app.answer_thr) { | 220 | for (var n in app.answer_thr) { |
214 | app.answer_thr[n].select = 0 | 221 | app.answer_thr[n].select = 0 |
215 | } | 222 | } |
@@ -224,6 +231,7 @@ | @@ -224,6 +231,7 @@ | ||
224 | , | 231 | , |
225 | // 保存选择结果 | 232 | // 保存选择结果 |
226 | save_info: function () { | 233 | save_info: function () { |
234 | + var app=this; | ||
227 | 235 | ||
228 | toastMsg('正在保存') | 236 | toastMsg('正在保存') |
229 | // api.showProgress({ | 237 | // api.showProgress({ |
@@ -113,7 +113,7 @@ | @@ -113,7 +113,7 @@ | ||
113 | <img :src="head_img?head_img:'../../assets/image/default_img.png'" alt=""> | 113 | <img :src="head_img?head_img:'../../assets/image/default_img.png'" alt=""> |
114 | </span> | 114 | </span> |
115 | <span class="iconfont icon-xiangyou"></span> | 115 | <span class="iconfont icon-xiangyou"></span> |
116 | - <input type="file" @change="takePhotos" accept="image/jpeg,image/x-png,image/gif" id="" value="" class="img_input"> | 116 | + <input type="file" @change="takePhotos($event)" accept="image/jpeg,image/x-png,image/gif" id="" value="" class="img_input"> |
117 | </div> | 117 | </div> |
118 | <mt-popup v-model="popupVisible_head_img" position="bottom"> | 118 | <mt-popup v-model="popupVisible_head_img" position="bottom"> |
119 | <ul class="moreoul"> | 119 | <ul class="moreoul"> |
@@ -238,6 +238,7 @@ | @@ -238,6 +238,7 @@ | ||
238 | <script> | 238 | <script> |
239 | new FastClick(document.body); | 239 | new FastClick(document.body); |
240 | </script> | 240 | </script> |
241 | +<script type="text/javascript" src="../../assets/js/jquery-1.10.1.min.js"></script> | ||
241 | <script type="text/javascript" src="../../assets/js/axios.min.js"></script> | 242 | <script type="text/javascript" src="../../assets/js/axios.min.js"></script> |
242 | <script type="text/javascript" src="../../assets/icon/iconfont.js"></script> | 243 | <script type="text/javascript" src="../../assets/icon/iconfont.js"></script> |
243 | <script type="text/javascript" src="../../assets/js/datePicker.js"></script> | 244 | <script type="text/javascript" src="../../assets/js/datePicker.js"></script> |
@@ -353,9 +354,9 @@ | @@ -353,9 +354,9 @@ | ||
353 | }) | 354 | }) |
354 | }, | 355 | }, |
355 | // 选择头像 | 356 | // 选择头像 |
356 | - takePhotos: function () { | 357 | + takePhotos: function (e) { |
357 | var app = this; | 358 | var app = this; |
358 | - var file = e.target.files[0];e | 359 | + var file = e.target.files[0]; |
359 | var imgSize=file.size/1024; | 360 | var imgSize=file.size/1024; |
360 | if(imgSize>200){ | 361 | if(imgSize>200){ |
361 | alert('请上传大小不要超过200KB的图片') | 362 | alert('请上传大小不要超过200KB的图片') |
@@ -779,4 +780,4 @@ | @@ -779,4 +780,4 @@ | ||
779 | }, | 780 | }, |
780 | } | 781 | } |
781 | }) | 782 | }) |
782 | -</script> | ||
783 | +</script> |
@@ -488,19 +488,19 @@ | @@ -488,19 +488,19 @@ | ||
488 | openData: function () { | 488 | openData: function () { |
489 | var app = this; | 489 | var app = this; |
490 | app.img_active = false; | 490 | app.img_active = false; |
491 | - api.sendEvent({ | ||
492 | - name: 'hidelist', | ||
493 | - extra: { | ||
494 | - img_active:app.img_active | ||
495 | - } | ||
496 | - }); | ||
497 | - openView('my_healthData', 'my/my_healthData', '健康数据', 'my_healthData', false, {rid: app.rid}) | 491 | + // api.sendEvent({ |
492 | + // name: 'hidelist', | ||
493 | + // extra: { | ||
494 | + // img_active:app.img_active | ||
495 | + // } | ||
496 | + // }); | ||
497 | + openView('my_healthData', '../my/my_healthData', '健康数据', 'my_healthData', false, {rid: app.rid}) | ||
498 | }, | 498 | }, |
499 | // 健康史 | 499 | // 健康史 |
500 | openHistory: function () { | 500 | openHistory: function () { |
501 | var app = this; | 501 | var app = this; |
502 | app.img_active = false; | 502 | app.img_active = false; |
503 | - openView('my_history', 'my/my_history', '健康史', 'my_history', false, {rid: app.rid}); | 503 | + openView('my_history', '../my/my_history', '健康史', 'my_history', false, {rid: app.rid}); |
504 | }, | 504 | }, |
505 | // 亲友档案 | 505 | // 亲友档案 |
506 | openFriend: function () { | 506 | openFriend: function () { |
@@ -95,34 +95,41 @@ | @@ -95,34 +95,41 @@ | ||
95 | rid: '' | 95 | rid: '' |
96 | }, | 96 | }, |
97 | created: function () { | 97 | created: function () { |
98 | - apiready = function () { | ||
99 | - app.rid = api.pageParam.rid; | 98 | + |
99 | + // apiready = function () { | ||
100 | + // var app = this; | ||
101 | + // app.rid = api.pageParam.rid; | ||
102 | + this.rid = localStorage.getItem('rid'); | ||
103 | + | ||
100 | // alert(app.rid); | 104 | // alert(app.rid); |
101 | - app.healthData(); | ||
102 | - api.addEventListener({ | ||
103 | - name: 'sugar' | ||
104 | - }, function (ret, err) { | ||
105 | - app.healthData(); | ||
106 | - }); | ||
107 | - api.addEventListener({ | ||
108 | - name: 'pressure' | ||
109 | - }, function (ret, err) { | ||
110 | - app.healthData(); | ||
111 | - }); | ||
112 | - } | 105 | + this.healthData(); |
106 | + // api.addEventListener({ | ||
107 | + // name: 'sugar' | ||
108 | + // }, function (ret, err) { | ||
109 | + // app.healthData(); | ||
110 | + // }); | ||
111 | + // api.addEventListener({ | ||
112 | + // name: 'pressure' | ||
113 | + // }, function (ret, err) { | ||
114 | + // app.healthData(); | ||
115 | + // }); | ||
116 | + // } | ||
113 | }, | 117 | }, |
114 | methods: { | 118 | methods: { |
115 | // 记录血压 | 119 | // 记录血压 |
116 | openPress: function () { | 120 | openPress: function () { |
117 | - openView('my_pressure', 'my/my_pressure', '手动血压记录', 'my_pressure', false, {rid: app.rid}) | 121 | + var app = this; |
122 | + openView('my_pressure', '../my/my_pressure', '手动血压记录', 'my_pressure', false, {rid: app.rid}) | ||
118 | }, | 123 | }, |
119 | // 记录血糖 | 124 | // 记录血糖 |
120 | openSugar: function () { | 125 | openSugar: function () { |
121 | - openView('my_sugar', 'my/my_sugar', '记血糖', 'my_sugar', false, {rid: app.rid}) | 126 | + var app = this; |
127 | + openView('my_sugar', '../my/my_sugar', '记血糖', 'my_sugar', false, {rid: app.rid}) | ||
122 | }, | 128 | }, |
123 | // 增加报告 | 129 | // 增加报告 |
124 | open_des: function (name, date_type, type_name, type_home, type_id) { | 130 | open_des: function (name, date_type, type_name, type_home, type_id) { |
125 | - openView('my_report', 'my/my_report', name, 'my_report', false, { | 131 | + var app = this; |
132 | + openView('my_report', '../my/my_report', name, 'my_report', false, { | ||
126 | date_type: date_type, | 133 | date_type: date_type, |
127 | type_name: type_name, | 134 | type_name: type_name, |
128 | type_home: type_home, | 135 | type_home: type_home, |
@@ -132,6 +139,7 @@ | @@ -132,6 +139,7 @@ | ||
132 | }, | 139 | }, |
133 | // 获取血糖,血压 | 140 | // 获取血糖,血压 |
134 | healthData: function () { | 141 | healthData: function () { |
142 | + var app = this; | ||
135 | var post = { | 143 | var post = { |
136 | rid: app.rid | 144 | rid: app.rid |
137 | }; | 145 | }; |
@@ -141,6 +149,7 @@ | @@ -141,6 +149,7 @@ | ||
141 | }; | 149 | }; |
142 | getRequest('post', 'user/index/healthData', post, header).then(function (res) { | 150 | getRequest('post', 'user/index/healthData', post, header).then(function (res) { |
143 | loadEnd(); | 151 | loadEnd(); |
152 | + console.log(res) | ||
144 | if (res.data.code == 1) { | 153 | if (res.data.code == 1) { |
145 | app.sugar_data = res.data.data.suger.data ? res.data.data.suger.data : 0; | 154 | app.sugar_data = res.data.data.suger.data ? res.data.data.suger.data : 0; |
146 | app.puser_data = res.data.data.puser.data ? res.data.data.puser.data : 0/0; | 155 | app.puser_data = res.data.data.puser.data ? res.data.data.puser.data : 0/0; |
@@ -134,8 +134,9 @@ | @@ -134,8 +134,9 @@ | ||
134 | methods: { | 134 | methods: { |
135 | // 打开详情 | 135 | // 打开详情 |
136 | openHome: function (name, index) { | 136 | openHome: function (name, index) { |
137 | + | ||
137 | var app = this; | 138 | var app = this; |
138 | - openView('history_detail', 'my/history_detail', name, 'history_detail', false, { | 139 | + openView('history_detail', '../my/history_detail', name, 'history_detail', false, { |
139 | rid: app.rid, | 140 | rid: app.rid, |
140 | id: index | 141 | id: index |
141 | }) | 142 | }) |
@@ -163,4 +164,4 @@ | @@ -163,4 +164,4 @@ | ||
163 | } | 164 | } |
164 | } | 165 | } |
165 | }) | 166 | }) |
166 | -</script> | ||
167 | +</script> |
@@ -55,6 +55,9 @@ | @@ -55,6 +55,9 @@ | ||
55 | 55 | ||
56 | .data_box { | 56 | .data_box { |
57 | background-color: #fff; | 57 | background-color: #fff; |
58 | + /*display:flex;*/ | ||
59 | + /*justify-content:space-between;*/ | ||
60 | + /*align-items: center;*/ | ||
58 | } | 61 | } |
59 | 62 | ||
60 | .icon-xiangyou { | 63 | .icon-xiangyou { |
@@ -64,23 +67,27 @@ | @@ -64,23 +67,27 @@ | ||
64 | #jedate{ | 67 | #jedate{ |
65 | left:0.5rem | 68 | left:0.5rem |
66 | } | 69 | } |
67 | - | 70 | + #chosetime{ |
71 | + outline:none; | ||
72 | + /*!*height:0.68rem;*!*/ | ||
73 | + border:none; | ||
74 | + } | ||
68 | </style> | 75 | </style> |
69 | </head> | 76 | </head> |
70 | <body> | 77 | <body> |
71 | <div id="loadStart"></div> | 78 | <div id="loadStart"></div> |
72 | <div id="app"> | 79 | <div id="app"> |
73 | <div class="data_box"> | 80 | <div class="data_box"> |
74 | - <div class="data_item" @click="dateSelect"><span>测量时间</span> | 81 | + <div class="data_item"><span>测量时间</span> |
75 | <!--<div class="data_item_right"><span>{{date_info?date_info:default_date}}</span>--> | 82 | <!--<div class="data_item_right"><span>{{date_info?date_info:default_date}}</span>--> |
76 | <!--<!–<span class="iconfont icon-xiangyou"></span>–>--> | 83 | <!--<!–<span class="iconfont icon-xiangyou"></span>–>--> |
77 | <!--</div>--> | 84 | <!--</div>--> |
78 | <div class="data_item_right"> | 85 | <div class="data_item_right"> |
79 | - | ||
80 | - <div class="date_box"> | ||
81 | - <div class="jeinpbox" style="width:95%"><input type="text" class="jeinput" id="test04" v-model="default_date" placeholder="请选择测量时间" style="width:96%;outline:none;border:none" readonly></div> | ||
82 | - <!--<div class="iconfont icon-xiangyou" ></div>--> | 86 | + <div class="date_box" > |
87 | + <!--<div class="jeinpbox" style="width:95%"><input type="text" class="jeinput" id="test04" v-model="default_date" placeholder="请选择测量时间" style="width:96%;outline:none;border:none" readonly></div>--> | ||
88 | + <input type="datetime-local" id="chosetime" placeholder="请选择测量时间"> | ||
83 | </div> | 89 | </div> |
90 | + <p class="iconfont icon-xiangyou"></p> | ||
84 | </div> | 91 | </div> |
85 | </div> | 92 | </div> |
86 | <div class="data_item" @click="choose_high"> | 93 | <div class="data_item" @click="choose_high"> |
@@ -125,12 +132,204 @@ | @@ -125,12 +132,204 @@ | ||
125 | <script type="text/javascript" src="../../assets/js/index.js"></script> | 132 | <script type="text/javascript" src="../../assets/js/index.js"></script> |
126 | <script type="text/javascript" src="../../assets/js/datePicker.js"></script> | 133 | <script type="text/javascript" src="../../assets/js/datePicker.js"></script> |
127 | <script type="text/javascript" src="../../assets/js/jquery-1.10.1.min.js"></script> | 134 | <script type="text/javascript" src="../../assets/js/jquery-1.10.1.min.js"></script> |
128 | -<script type="text/javascript" src="../../assets/js/mypressure.js"></script> | 135 | +<!--<script type="text/javascript" src="../../assets/js/mypressure.js"></script>--> |
129 | 136 | ||
130 | <script type="text/javascript" src="../../assets/js/jedate.js"></script> | 137 | <script type="text/javascript" src="../../assets/js/jedate.js"></script> |
131 | -<script type="text/javascript" src="../../assets/js/demo.js"></script> | 138 | +<!--<script type="text/javascript" src="../../assets/js/demo.js"></script>--> |
132 | 139 | ||
133 | 140 | ||
134 | <script> | 141 | <script> |
142 | + var app = new Vue({ | ||
143 | + el: '#app', | ||
144 | + data: { | ||
145 | + year: '', | ||
146 | + month: '', | ||
147 | + day: '', | ||
148 | + hour: '', | ||
149 | + minute: '', | ||
150 | + date_info: '', | ||
151 | + default_date: '', | ||
152 | + popupVisible: false, | ||
153 | + high_list: [], | ||
154 | + low_list: [], | ||
155 | + high: '请选择高压(mmHg)', | ||
156 | + low: '请选择低压(mmHg)', | ||
157 | + heart_num: '', | ||
158 | + rid: '' | ||
159 | + }, | ||
160 | + created: function () { | ||
161 | + // apiready = function () { | ||
162 | + // app.rid = api.pageParam.rid; | ||
163 | + this.rid=localStorage.getItem("rid"); | ||
164 | + console.log(this.rid) | ||
165 | + this.getPressure(); | ||
166 | + for (var i = 0; i < 300; i++) { | ||
167 | + this.high_list.push({ | ||
168 | + "label": i, | ||
169 | + "value": i, | ||
170 | + }) | ||
171 | + } | ||
172 | + // } | ||
173 | + }, | ||
174 | + methods: { | ||
175 | + // 日期选择 | ||
176 | + | ||
177 | + // dateSelect: function () { | ||
178 | + // // if (api.systemType == 'ios') { | ||
179 | + // // api.openPicker({ | ||
180 | + // // type: 'date_time', | ||
181 | + // // date: new Date(), | ||
182 | + // // maxDate: getTimeDetil(0), | ||
183 | + // // title: '测量时间' | ||
184 | + // // }, function (ret, err) { | ||
185 | + // // if (ret) { | ||
186 | + // // app.year = ret.year; | ||
187 | + // // app.month = ret.month; | ||
188 | + // // app.day = ret.day; | ||
189 | + // // app.hour = ret.hour; | ||
190 | + // // app.minute = ret.minute; | ||
191 | + // // app.date_info = app.year + '-' + add0(app.month) + '-' + add0(app.day) + ' ' + add0(app.hour) + ':' + add0(app.minute); | ||
192 | + // // if (checkDate(app.date_info, 2)) { | ||
193 | + // // return app.date_info | ||
194 | + // // } else { | ||
195 | + // // toastMsg('请选择正确的测量时间'); | ||
196 | + // // return app.date_info = '' | ||
197 | + // // } | ||
198 | + // // } else { | ||
199 | + // // console.log(err) | ||
200 | + // // } | ||
201 | + // // }); | ||
202 | + // // } | ||
203 | + // // else { | ||
204 | + // // api.openPicker({ | ||
205 | + // // type: 'date', | ||
206 | + // // title: '测量时间', | ||
207 | + // // }, function (ret, err) { | ||
208 | + // // if (ret) { | ||
209 | + // // app.year = ret.year; | ||
210 | + // // app.month = ret.month; | ||
211 | + // // app.day = ret.day; | ||
212 | + // // api.openPicker({ | ||
213 | + // // type: 'time', | ||
214 | + // // title: '测量时间' | ||
215 | + // // }, function (rets, errs) { | ||
216 | + // // if (rets) { | ||
217 | + // // app.hour = rets.hour; | ||
218 | + // // app.minute = rets.minute; | ||
219 | + // // app.date_info = app.year + '-' + add0(app.month) + '-' + add0(app.day) + ' ' + add0(app.hour) + ':' + add0(app.minute); | ||
220 | + // // if (checkDate(app.date_info, 2)) { | ||
221 | + // // return app.date_info | ||
222 | + // // } else { | ||
223 | + // // toastMsg('请选择正确的测量时间'); | ||
224 | + // // return app.date_info = '' | ||
225 | + // // } | ||
226 | + // // } else { | ||
227 | + // // console.log(errs) | ||
228 | + // // } | ||
229 | + // // }); | ||
230 | + // // } else { | ||
231 | + // // console.log(err) | ||
232 | + // // } | ||
233 | + // // }); | ||
234 | + // // } | ||
235 | + // }, | ||
236 | + // 选择高压 | ||
237 | + choose_high: function () { | ||
238 | + var app=this; | ||
239 | + weui.picker(app.high_list, { | ||
240 | + onChange: function (result) { | ||
241 | + | ||
242 | + }, | ||
243 | + onConfirm: function (result) { | ||
244 | + app.high = result[0].label; | ||
245 | + } | ||
246 | + }); | ||
247 | + | ||
248 | + }, | ||
249 | + // 选择低压 | ||
250 | + choose_low: function () { | ||
251 | + var app=this; | ||
252 | + weui.picker(app.high_list, { | ||
253 | + onChange: function (result) { | ||
254 | + | ||
255 | + }, | ||
256 | + onConfirm: function (result) { | ||
257 | + app.low = result[0].label; | ||
258 | + } | ||
259 | + }); | ||
260 | + }, | ||
261 | + // 保存数据 | ||
262 | + save_data: function () { | ||
263 | + var app=this; | ||
264 | + app.default_date=$("#test04").val(); | ||
265 | + | ||
266 | + if (app.default_date == '') { | ||
267 | + toastMsg('请选择测量时间') | ||
268 | + } | ||
269 | + else if (app.high == '请选择高压(mmHg)') { | ||
270 | + toastMsg('请选择高压数据') | ||
271 | + } | ||
272 | + else if (app.low == '请选择低压(mmHg)') { | ||
273 | + toastMsg('请选择低压') | ||
274 | + } else if (app.heart_num == '') { | ||
275 | + toastMsg('请输入心率') | ||
276 | + } | ||
277 | + else { | ||
278 | + var header = { | ||
279 | + "XX-Device-Type": getDevice(), | ||
280 | + 'XX-Token': getToken() | ||
281 | + }; | ||
282 | + var post = { | ||
283 | + rid: app.rid, | ||
284 | + time: app.date_info, | ||
285 | + data: app.high + '/' + app.low, | ||
286 | + type: 2, | ||
287 | + rate: app.heart_num | ||
288 | + }; | ||
289 | + getRequest('post', 'user/index/setBoolData', post, header).then(function (res) { | ||
290 | + | ||
291 | + // alert(JSON.stringify(res)) | ||
292 | + if (res.data.code == 1) { | ||
293 | + toastMsg('记录成功!'); | ||
294 | + setTimeout(function () { | ||
295 | + api.sendEvent({ | ||
296 | + name: 'pressure', | ||
297 | + }); | ||
298 | + api.closeWin() | ||
299 | + }, 1000); | ||
300 | + } else { | ||
301 | + toastMsg(res.msg) | ||
302 | + } | ||
303 | + }) | ||
304 | + } | ||
305 | + }, | ||
306 | + getPressure: function () { | ||
307 | + var app=this; | ||
308 | + var rid=localStorage.getItem("rid") | ||
309 | + | ||
310 | + var header = { | ||
311 | + "XX-Device-Type": getDevice(), | ||
312 | + 'XX-Token': getToken() | ||
313 | + }; | ||
314 | + var post = { | ||
315 | + rid: rid, | ||
316 | + type: 2 | ||
317 | + }; | ||
318 | + getRequest('post', 'user/index/getLastBoolData', post, header).then(function (res) { | ||
319 | + console.log(res.data.data.high) | ||
320 | + // alert(JSON.stringify(res)) | ||
321 | + if (res.data.code == 1) { | ||
322 | + app.date_info = res.data.data.time; | ||
323 | + app.high = res.data.data.high; | ||
324 | + app.low = res.data.data.low; | ||
325 | + app.heart_num = res.data.data.rate; | ||
326 | + } else { | ||
327 | + toastMsg(res.data.msg) | ||
328 | + } | ||
329 | + loadEnd() | ||
330 | + }) | ||
331 | + } | ||
332 | + } | ||
333 | + }) | ||
135 | 334 | ||
136 | </script> | 335 | </script> |
@@ -54,6 +54,7 @@ | @@ -54,6 +54,7 @@ | ||
54 | .date_box { | 54 | .date_box { |
55 | position:relative; | 55 | position:relative; |
56 | width:7.5rem; | 56 | width:7.5rem; |
57 | + | ||
57 | display: flex; | 58 | display: flex; |
58 | align-items: center; | 59 | align-items: center; |
59 | justify-content: space-between; | 60 | justify-content: space-between; |
@@ -102,6 +103,11 @@ | @@ -102,6 +103,11 @@ | ||
102 | background: #fff url("../../assets/image/loading.gif") center center no-repeat; | 103 | background: #fff url("../../assets/image/loading.gif") center center no-repeat; |
103 | background-size: 12%; | 104 | background-size: 12%; |
104 | } | 105 | } |
106 | + #chosetime{ | ||
107 | + outline:none; | ||
108 | + height:0.68rem; | ||
109 | + border:none; | ||
110 | + } | ||
105 | </style> | 111 | </style> |
106 | </head> | 112 | </head> |
107 | 113 | ||
@@ -133,8 +139,9 @@ | @@ -133,8 +139,9 @@ | ||
133 | <div class="jeitem "> | 139 | <div class="jeitem "> |
134 | <div class="jelabel ">请选择测量时间</div> | 140 | <div class="jelabel ">请选择测量时间</div> |
135 | <div class="date_box"> | 141 | <div class="date_box"> |
136 | - <div class="jeinpbox" style="width:95%"><input type="text" class="jeinput" id="test04" placeholder="请选择测量时间" style="width:96%" readonly></div> | 142 | + <!--<div class="jeinpbox" style="width:95%"><input type="text" class="jeinput" id="test04" placeholder="请选择测量时间" style="width:96%" readonly></div>--> |
137 | <!--<div class="iconfont icon-xiangyou" ></div>--> | 143 | <!--<div class="iconfont icon-xiangyou" ></div>--> |
144 | + <input type="datetime-local" id="chosetime" placeholder="请选择测量时间"> | ||
138 | </div> | 145 | </div> |
139 | </div> | 146 | </div> |
140 | 147 | ||
@@ -155,16 +162,17 @@ | @@ -155,16 +162,17 @@ | ||
155 | <script type="text/javascript" src="../../assets/js/axios.min.js"></script> | 162 | <script type="text/javascript" src="../../assets/js/axios.min.js"></script> |
156 | <script type="text/javascript" src="../../assets/icon/iconfont.js"></script> | 163 | <script type="text/javascript" src="../../assets/icon/iconfont.js"></script> |
157 | <script type="text/javascript" src="../../assets/js/jedate.js"></script> | 164 | <script type="text/javascript" src="../../assets/js/jedate.js"></script> |
158 | -<script type="text/javascript" src="../../assets/js/demo.js"></script> | 165 | +<!--<script type="text/javascript" src="../../assets/js/demo.js"></script>--> |
159 | <script type="text/javascript" src="../../assets/js/weui.min.js"></script> | 166 | <script type="text/javascript" src="../../assets/js/weui.min.js"></script> |
160 | <script type="text/javascript"> | 167 | <script type="text/javascript"> |
161 | $(function () { | 168 | $(function () { |
162 | - apiready = function () { | 169 | + // apiready = function () { |
163 | $(document).ready(function () { | 170 | $(document).ready(function () { |
164 | 171 | ||
165 | var type=1 | 172 | var type=1 |
166 | $(".knob").knob(); | 173 | $(".knob").knob(); |
167 | loadEnd(); | 174 | loadEnd(); |
175 | + var rid=localStorage.getItem("rid") | ||
168 | 176 | ||
169 | function getSugar() { | 177 | function getSugar() { |
170 | var header = { | 178 | var header = { |
@@ -172,7 +180,7 @@ | @@ -172,7 +180,7 @@ | ||
172 | 'XX-Token': getToken() | 180 | 'XX-Token': getToken() |
173 | }; | 181 | }; |
174 | var post = { | 182 | var post = { |
175 | - rid: api.pageParam.rid, | 183 | + rid: rid, |
176 | type: 1 | 184 | type: 1 |
177 | }; | 185 | }; |
178 | getRequest('post', 'user/index/getLastBoolData', post, header).then(function (res) { | 186 | getRequest('post', 'user/index/getLastBoolData', post, header).then(function (res) { |
@@ -261,17 +269,22 @@ | @@ -261,17 +269,22 @@ | ||
261 | 269 | ||
262 | }); | 270 | }); |
263 | 271 | ||
264 | - | ||
265 | $('.save_btn').click(function () { | 272 | $('.save_btn').click(function () { |
273 | + var rid=localStorage.getItem("rid") | ||
266 | var value = $('.knob').val(); | 274 | var value = $('.knob').val(); |
267 | 275 | ||
268 | - var date = $('#test04').val(); | 276 | + var date = $('#chosetime').val(); |
277 | + | ||
278 | + date=date.split("T"); | ||
279 | + date=date[0]+" " +date[1]; | ||
280 | + | ||
281 | + | ||
269 | 282 | ||
270 | // type = $('.sugar_type').attr('data-type'); | 283 | // type = $('.sugar_type').attr('data-type'); |
271 | type = $('.spanactive').attr('data-id') | 284 | type = $('.spanactive').attr('data-id') |
272 | // console.log(type) | 285 | // console.log(type) |
273 | var post = { | 286 | var post = { |
274 | - rid: api.pageParam.rid, | 287 | + rid: rid, |
275 | time_type: type, | 288 | time_type: type, |
276 | time: date, | 289 | time: date, |
277 | data: value, | 290 | data: value, |
@@ -308,6 +321,6 @@ | @@ -308,6 +321,6 @@ | ||
308 | 321 | ||
309 | 322 | ||
310 | }) | 323 | }) |
311 | - } | 324 | + // } |
312 | }); | 325 | }); |
313 | </script> | 326 | </script> |
-
请 注册 或 登录 后发表评论