合并分支 'Branch_zhu' 到 'master'
页面串联 查看合并请求 !8
正在显示
8 个修改的文件
包含
145 行增加
和
138 行删除
@@ -243,10 +243,6 @@ footer { | @@ -243,10 +243,6 @@ footer { | ||
243 | overflow: hidden; | 243 | overflow: hidden; |
244 | } | 244 | } |
245 | 245 | ||
246 | -.swiper-container { | ||
247 | - overflow: hidden; | ||
248 | -} | ||
249 | - | ||
250 | .swiper_title { | 246 | .swiper_title { |
251 | display: flex; | 247 | display: flex; |
252 | align-items: center; | 248 | align-items: center; |
@@ -281,17 +277,17 @@ footer { | @@ -281,17 +277,17 @@ footer { | ||
281 | } | 277 | } |
282 | 278 | ||
283 | .swiper_item { | 279 | .swiper_item { |
284 | - /*display: flex;*/ | ||
285 | - /*align-items: center;*/ | ||
286 | - /*justify-content: space-between;*/ | ||
287 | - /*font-size: 14px;*/ | ||
288 | - /*color: #424242;*/ | ||
289 | - /*padding: 14px 12px 14px 0;*/ | 280 | + display: flex; |
281 | + align-items: center; | ||
282 | + justify-content: space-between; | ||
283 | + font-size: 14px; | ||
284 | + color: #424242; | ||
285 | + padding: 0 7px; | ||
290 | /*margin: 0 7px;*/ | 286 | /*margin: 0 7px;*/ |
291 | border-top: 1px solid #ececec; | 287 | border-top: 1px solid #ececec; |
292 | box-sizing: border-box; | 288 | box-sizing: border-box; |
293 | background-color: #fff; | 289 | background-color: #fff; |
294 | - /*width: 100%;*/ | 290 | + width: 100%; |
295 | } | 291 | } |
296 | 292 | ||
297 | .swiper_item_img { | 293 | .swiper_item_img { |
@@ -7,11 +7,12 @@ var mobileReg = /^1(3[0-9]|4[57]|5[0-35-9]|7[0135678]|8[0-9])\d{8}$/; //手机 | @@ -7,11 +7,12 @@ var mobileReg = /^1(3[0-9]|4[57]|5[0-35-9]|7[0135678]|8[0-9])\d{8}$/; //手机 | ||
7 | var id_card = /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;//身份证正则 | 7 | var id_card = /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;//身份证正则 |
8 | 8 | ||
9 | 9 | ||
10 | -function openWin(winName, url) { | ||
11 | - api.openWin({ | ||
12 | - name: winName, | ||
13 | - url: url | ||
14 | - }); | 10 | +function openWin(data) { |
11 | + | ||
12 | + for(var item in data.pageParam){ | ||
13 | + localStorage.setItem(item,data.pageParam[item]) | ||
14 | + } | ||
15 | + window.location.href = data.url | ||
15 | } | 16 | } |
16 | 17 | ||
17 | function openView(fmName, fmUrl, winTitle, winName, winUrl, fmParams, winParams) { | 18 | function openView(fmName, fmUrl, winTitle, winName, winUrl, fmParams, winParams) { |
@@ -86,13 +86,13 @@ | @@ -86,13 +86,13 @@ | ||
86 | <div id="loadStart"></div> | 86 | <div id="loadStart"></div> |
87 | 87 | ||
88 | <div id="app" v-cloak> | 88 | <div id="app" v-cloak> |
89 | - <header id="header"> | ||
90 | - <div class="index_header"> | ||
91 | - <div class="close_left" onclick="closeWindow()"><span class="iconfont icon-fanhui"></span></div> | ||
92 | - <span>{{post_title}}</span> | ||
93 | - <span class="iconfont icon-fenxiang-tianchong" ></span> | ||
94 | - </div> | ||
95 | - </header> | 89 | + <!--<header id="header">--> |
90 | + <!--<div class="index_header">--> | ||
91 | + <!--<div class="close_left" onclick="closeWindow()"><span class="iconfont icon-fanhui"></span></div>--> | ||
92 | + <!--<span>{{post_title}}</span>--> | ||
93 | + <!--<span class="iconfont icon-fenxiang-tianchong" ></span>--> | ||
94 | + <!--</div>--> | ||
95 | + <!--</header>--> | ||
96 | <div class="warp"> | 96 | <div class="warp"> |
97 | <div class="nurse_banner" :style="{backgroundImage:'url(' + banner + ')'}"> | 97 | <div class="nurse_banner" :style="{backgroundImage:'url(' + banner + ')'}"> |
98 | <!--<div class="nurse_text">{{post_title}}</div>--> | 98 | <!--<div class="nurse_text">{{post_title}}</div>--> |
@@ -151,6 +151,8 @@ | @@ -151,6 +151,8 @@ | ||
151 | <script type="text/javascript" src="../../assets/js/axios.min.js"></script> | 151 | <script type="text/javascript" src="../../assets/js/axios.min.js"></script> |
152 | <script type="text/javascript" src="../../assets/icon/iconfont.js"></script> | 152 | <script type="text/javascript" src="../../assets/icon/iconfont.js"></script> |
153 | <script> | 153 | <script> |
154 | + var title = document.getElementsByTagName("title")[0] | ||
155 | + | ||
154 | var app = new Vue({ | 156 | var app = new Vue({ |
155 | el: '#app', | 157 | el: '#app', |
156 | data: { | 158 | data: { |
@@ -208,7 +210,7 @@ | @@ -208,7 +210,7 @@ | ||
208 | }, | 210 | }, |
209 | // 获取详情 | 211 | // 获取详情 |
210 | proCareInfoInfo: function () { | 212 | proCareInfoInfo: function () { |
211 | - var app = this | 213 | + var app = this; |
212 | var post = { | 214 | var post = { |
213 | id: app.id | 215 | id: app.id |
214 | }; | 216 | }; |
@@ -227,6 +229,7 @@ | @@ -227,6 +229,7 @@ | ||
227 | // app.banner = app.proCareInfoInfo_data.banner | 229 | // app.banner = app.proCareInfoInfo_data.banner |
228 | } | 230 | } |
229 | }) | 231 | }) |
232 | + | ||
230 | }, | 233 | }, |
231 | // 获取个人的基本信息 | 234 | // 获取个人的基本信息 |
232 | getUserIndexInfo: function () { | 235 | getUserIndexInfo: function () { |
@@ -250,7 +253,13 @@ | @@ -250,7 +253,13 @@ | ||
250 | name: 'cs_win', | 253 | name: 'cs_win', |
251 | url: '../common/cs_win.html' | 254 | url: '../common/cs_win.html' |
252 | }); | 255 | }); |
253 | - }, | 256 | + } |
257 | + }, | ||
258 | + watch:{ | ||
259 | + post_title(curVal,oldVal){ | ||
260 | + // title.innerText = this.post_title; | ||
261 | + document.title = this.post_title; | ||
262 | + } | ||
254 | } | 263 | } |
255 | }) | 264 | }) |
256 | </script> | 265 | </script> |
1 | -<!doctype html> | ||
2 | -<html lang="en"> | ||
3 | -<head> | 1 | + <head> |
4 | <meta charset="UTF-8"> | 2 | <meta charset="UTF-8"> |
5 | <meta name="viewport" | 3 | <meta name="viewport" |
6 | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | 4 | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> |
@@ -30,13 +28,13 @@ | @@ -30,13 +28,13 @@ | ||
30 | <body> | 28 | <body> |
31 | <div id="loadStart"></div> | 29 | <div id="loadStart"></div> |
32 | <div id="app" v-cloak> | 30 | <div id="app" v-cloak> |
33 | - <header id="header"> | ||
34 | - <div class="index_header white_bg"> | ||
35 | - <div class="close_left" onclick="closeWindow()"><span class="iconfont icon-fanhui"></span></div> | ||
36 | - <div class="win_mid">{{winTitle}}</div> | ||
37 | - <div></div> | ||
38 | - </div> | ||
39 | - </header> | 31 | + <!--<header id="header">--> |
32 | + <!--<div class="index_header white_bg">--> | ||
33 | + <!--<div class="close_left" onclick="closeWindow()"><span class="iconfont icon-fanhui"></span></div>--> | ||
34 | + <!--<div class="win_mid">{{winTitle}}</div>--> | ||
35 | + <!--<div></div>--> | ||
36 | + <!--</div>--> | ||
37 | + <!--</header> --> | ||
40 | <div class="warp"> | 38 | <div class="warp"> |
41 | <div class="nurse_banner" :style="{backgroundImage:'url(' + banner + ')'}"> | 39 | <div class="nurse_banner" :style="{backgroundImage:'url(' + banner + ')'}"> |
42 | <!--<div class="nurse_text">{{name}}</div>--> | 40 | <!--<div class="nurse_text">{{name}}</div>--> |
@@ -112,13 +110,15 @@ | @@ -112,13 +110,15 @@ | ||
112 | this.cid = localStorage.getItem('cid'); | 110 | this.cid = localStorage.getItem('cid'); |
113 | this.cityname = localStorage.getItem('cityName'); | 111 | this.cityname = localStorage.getItem('cityName'); |
114 | this.winTitle = localStorage.getItem('winTitle'); | 112 | this.winTitle = localStorage.getItem('winTitle'); |
113 | + document.getElementsByTagName("title")[0].innerText = this.winTitle; | ||
115 | this.getCatInfo2(); | 114 | this.getCatInfo2(); |
116 | }, | 115 | }, |
117 | methods: { | 116 | methods: { |
118 | openDoc: function (id) { | 117 | openDoc: function (id) { |
119 | - api.openWin({ | 118 | + console.log(id) |
119 | + openWin({ | ||
120 | name: 'care_w', | 120 | name: 'care_w', |
121 | - url: './care_w.html', | 121 | + url: 'care_f.html', |
122 | pageParam: { | 122 | pageParam: { |
123 | id: id, | 123 | id: id, |
124 | cid: this.cid, | 124 | cid: this.cid, |
@@ -6,7 +6,7 @@ | @@ -6,7 +6,7 @@ | ||
6 | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | 6 | content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> |
7 | <meta http-equiv="X-UA-Compatible" content="ie=edge"> | 7 | <meta http-equiv="X-UA-Compatible" content="ie=edge"> |
8 | <meta name="format-detection" content="telephone=no,email=no,date=no,address=no"> | 8 | <meta name="format-detection" content="telephone=no,email=no,date=no,address=no"> |
9 | - <title></title> | 9 | + <title>家庭医生</title> |
10 | <script src="../../assets/js/fontsize.js"></script> | 10 | <script src="../../assets/js/fontsize.js"></script> |
11 | <link rel="stylesheet" href="../../assets/css/api.css"/> | 11 | <link rel="stylesheet" href="../../assets/css/api.css"/> |
12 | <link rel="stylesheet" href="../../assets/css/index.css"> | 12 | <link rel="stylesheet" href="../../assets/css/index.css"> |
@@ -35,13 +35,13 @@ | @@ -35,13 +35,13 @@ | ||
35 | <body> | 35 | <body> |
36 | <div id="loadStart"></div> | 36 | <div id="loadStart"></div> |
37 | <div id="app"> | 37 | <div id="app"> |
38 | - <header id="header"> | ||
39 | - <div class="index_header"> | ||
40 | - <span class="iconfont icon-fanhui" onclick="closeWindow()"></span> | ||
41 | - <span>家庭医生</span> | ||
42 | - <span class="iconfont icon-fenxiang-tianchong" ></span> | ||
43 | - </div> | ||
44 | - </header> | 38 | + <!--<header id="header">--> |
39 | + <!--<div class="index_header">--> | ||
40 | + <!--<span class="iconfont icon-fanhui" onclick="closeWindow()"></span>--> | ||
41 | + <!--<span></span>--> | ||
42 | + <!--<span class="iconfont icon-fenxiang-tianchong" ></span>--> | ||
43 | + <!--</div>--> | ||
44 | + <!--</header>--> | ||
45 | <div class="warp"> | 45 | <div class="warp"> |
46 | <div class="nurse_banner" :style="{backgroundImage:'url(' + banner + ')'}"> | 46 | <div class="nurse_banner" :style="{backgroundImage:'url(' + banner + ')'}"> |
47 | <!--<div class="nurse_text">{{name}}</div>--> | 47 | <!--<div class="nurse_text">{{name}}</div>--> |
@@ -145,67 +145,54 @@ | @@ -145,67 +145,54 @@ | ||
145 | pos: 'fixed' | 145 | pos: 'fixed' |
146 | }, | 146 | }, |
147 | created: function () { | 147 | created: function () { |
148 | - apiready = function () { | ||
149 | - app.id = api.pageParam.id; | ||
150 | - app.cid = api.pageParam.cid; | ||
151 | - app.applyInfo(); | ||
152 | - app.getUserIndexInfo(); | ||
153 | - api.addEventListener({ | ||
154 | - name: 'meal' | ||
155 | - }, function (ret, err) { | ||
156 | - app.meal = ret.value.meal + ',' + ret.value.num + app.unit; | ||
157 | - app.total = parseFloat(ret.value.price) * (ret.value.num); | ||
158 | - app.attribute_id = ret.value.attribute_id; | ||
159 | - app.num = ret.value.num; | ||
160 | - // alert(JSON.stringify(ret.value)); | ||
161 | - }); | ||
162 | - api.addEventListener({ | ||
163 | - name: 'room' | ||
164 | - }, function (ret, err) { | ||
165 | - app.room = ret.value.name_left + ',' + ret.value.name_right + ',' + ret.value.num + app.unit; | ||
166 | - // alert(JSON.stringify(ret.value)); | ||
167 | - app.num = ret.value.num; | ||
168 | - app.attribute_id = ret.value.attribute_id; | ||
169 | - app.total = parseFloat(ret.value.price) * (ret.value.num) | ||
170 | - }); | ||
171 | - var client_h = window.innerHeight; | ||
172 | - window.addEventListener('resize', function () { | ||
173 | - if (window.innerHeight < client_h) { | ||
174 | - app.pos = 'relative' | ||
175 | - } else { | ||
176 | - app.pos = 'fixed' | ||
177 | - } | ||
178 | - }, false); | ||
179 | - } | 148 | + this.id = localStorage.getItem('id'); |
149 | + this.cid = localStorage.getItem('cid'); | ||
150 | + this.applyInfo(); | ||
151 | + this.getUserIndexInfo(); | ||
152 | + // api.addEventListener({ | ||
153 | + // name: 'meal' | ||
154 | + // }, function (ret, err) { | ||
155 | + // app.meal = ret.value.meal + ',' + ret.value.num + app.unit; | ||
156 | + // app.total = parseFloat(ret.value.price) * (ret.value.num); | ||
157 | + // app.attribute_id = ret.value.attribute_id; | ||
158 | + // app.num = ret.value.num; | ||
159 | + // // alert(JSON.stringify(ret.value)); | ||
160 | + // }); | ||
161 | + // api.addEventListener({ | ||
162 | + // name: 'room' | ||
163 | + // }, function (ret, err) { | ||
164 | + // app.room = ret.value.name_left + ',' + ret.value.name_right + ',' + ret.value.num + app.unit; | ||
165 | + // // alert(JSON.stringify(ret.value)); | ||
166 | + // app.num = ret.value.num; | ||
167 | + // app.attribute_id = ret.value.attribute_id; | ||
168 | + // app.total = parseFloat(ret.value.price) * (ret.value.num) | ||
169 | + // }); | ||
170 | + var client_h = window.innerHeight; | ||
171 | + window.addEventListener('resize', function () { | ||
172 | + if (window.innerHeight < client_h) { | ||
173 | + app.pos = 'relative' | ||
174 | + } else { | ||
175 | + app.pos = 'fixed' | ||
176 | + } | ||
177 | + }, false); | ||
180 | }, | 178 | }, |
181 | methods: { | 179 | methods: { |
182 | // 选择套餐 | 180 | // 选择套餐 |
183 | set_meal: function () { | 181 | set_meal: function () { |
184 | - api.openFrame({ | ||
185 | - bgColor: 'rgba(0,0,0,0.05)', | 182 | + var app = this; |
183 | + openWin({ | ||
186 | name: 'choose_meal_f', | 184 | name: 'choose_meal_f', |
187 | url: './choose_meal_f.html', | 185 | url: './choose_meal_f.html', |
188 | - bounces: false, | ||
189 | - animation: { | ||
190 | - type: "push", | ||
191 | - subType: "from_bottom", | ||
192 | - duration: 300 | ||
193 | - }, | ||
194 | - rect: { | ||
195 | - x: 0, | ||
196 | - y: 0, | ||
197 | - w: 'auto', | ||
198 | - h: 'auto' | ||
199 | - }, | ||
200 | pageParam: { | 186 | pageParam: { |
201 | id: app.id, | 187 | id: app.id, |
202 | attribute: app.attribute, | 188 | attribute: app.attribute, |
203 | unit: app.unit | 189 | unit: app.unit |
204 | } | 190 | } |
205 | - }); | 191 | + }) |
206 | }, | 192 | }, |
207 | // 选择入住等级 | 193 | // 选择入住等级 |
208 | set_rank: function () { | 194 | set_rank: function () { |
195 | + var app = this; | ||
209 | if (app.date_info) { | 196 | if (app.date_info) { |
210 | api.confirm({ | 197 | api.confirm({ |
211 | title: '选择套餐', | 198 | title: '选择套餐', |
@@ -246,6 +233,7 @@ | @@ -246,6 +233,7 @@ | ||
246 | }, | 233 | }, |
247 | // 选择日期 | 234 | // 选择日期 |
248 | dateSelect: function () { | 235 | dateSelect: function () { |
236 | + var app = this; | ||
249 | if (app.room) { | 237 | if (app.room) { |
250 | api.confirm({ | 238 | api.confirm({ |
251 | title: '选择套餐', | 239 | title: '选择套餐', |
@@ -321,6 +309,7 @@ | @@ -321,6 +309,7 @@ | ||
321 | }, | 309 | }, |
322 | // 预约时间 | 310 | // 预约时间 |
323 | openDate: function () { | 311 | openDate: function () { |
312 | + var app = this; | ||
324 | if (app.date_info == '') { | 313 | if (app.date_info == '') { |
325 | toastMsg('入住时间') | 314 | toastMsg('入住时间') |
326 | } else if (app.name == '') { | 315 | } else if (app.name == '') { |
@@ -349,6 +338,7 @@ | @@ -349,6 +338,7 @@ | ||
349 | }, | 338 | }, |
350 | // 获取订单详情 | 339 | // 获取订单详情 |
351 | applyInfo: function () { | 340 | applyInfo: function () { |
341 | + var app = this; | ||
352 | var post = { | 342 | var post = { |
353 | gid: app.id | 343 | gid: app.id |
354 | }; | 344 | }; |
@@ -373,6 +363,7 @@ | @@ -373,6 +363,7 @@ | ||
373 | }, | 363 | }, |
374 | // 下单 | 364 | // 下单 |
375 | openOrder: function () { | 365 | openOrder: function () { |
366 | + var app = this; | ||
376 | if (app.room == '' && app.meal == '') { | 367 | if (app.room == '' && app.meal == '') { |
377 | toastMsg('请选择套餐') | 368 | toastMsg('请选择套餐') |
378 | } | 369 | } |
@@ -407,6 +398,7 @@ | @@ -407,6 +398,7 @@ | ||
407 | }, | 398 | }, |
408 | // 客服 | 399 | // 客服 |
409 | openSever: function () { | 400 | openSever: function () { |
401 | + var app = this; | ||
410 | app.img_active = false; | 402 | app.img_active = false; |
411 | app.getRongYunToken(); | 403 | app.getRongYunToken(); |
412 | 404 | ||
@@ -455,6 +447,7 @@ | @@ -455,6 +447,7 @@ | ||
455 | }, | 447 | }, |
456 | // 获取客服token | 448 | // 获取客服token |
457 | getRongYunToken: function () { | 449 | getRongYunToken: function () { |
450 | + var app = this; | ||
458 | var header = { | 451 | var header = { |
459 | "XX-Device-Type": getDevice(), | 452 | "XX-Device-Type": getDevice(), |
460 | 'XX-Token': getToken() | 453 | 'XX-Token': getToken() |
@@ -471,6 +464,7 @@ | @@ -471,6 +464,7 @@ | ||
471 | }, | 464 | }, |
472 | // 获取个人信息 | 465 | // 获取个人信息 |
473 | getUserIndexInfo: function () { | 466 | getUserIndexInfo: function () { |
467 | + var app = this; | ||
474 | var header = { | 468 | var header = { |
475 | "XX-Device-Type": getDevice(), | 469 | "XX-Device-Type": getDevice(), |
476 | 'XX-Token': getToken() | 470 | 'XX-Token': getToken() |
@@ -484,6 +478,7 @@ | @@ -484,6 +478,7 @@ | ||
484 | }) | 478 | }) |
485 | }, | 479 | }, |
486 | input_focus: function () { | 480 | input_focus: function () { |
481 | + var app = this; | ||
487 | setTimeout(function () { | 482 | setTimeout(function () { |
488 | document.body.scrollTop = document.body.scrollHeight; | 483 | document.body.scrollTop = document.body.scrollHeight; |
489 | }, 300); | 484 | }, 300); |
@@ -40,7 +40,9 @@ | @@ -40,7 +40,9 @@ | ||
40 | padding: 0.16rem 0; | 40 | padding: 0.16rem 0; |
41 | color: #424242; | 41 | color: #424242; |
42 | } | 42 | } |
43 | - | 43 | + .warp{ |
44 | + overflow-y: scroll; | ||
45 | + } | ||
44 | .examination_active { | 46 | .examination_active { |
45 | color: #D8B25F; | 47 | color: #D8B25F; |
46 | border-bottom: 0.04rem solid #D8B25F; | 48 | border-bottom: 0.04rem solid #D8B25F; |
@@ -57,7 +59,9 @@ | @@ -57,7 +59,9 @@ | ||
57 | flex-flow: column; | 59 | flex-flow: column; |
58 | -webkit-flex-flow: column; | 60 | -webkit-flex-flow: column; |
59 | -webkit-box-orient: vertical; | 61 | -webkit-box-orient: vertical; |
60 | - overflow-x: hidden; | 62 | + -webkit-margin-start: auto; |
63 | + width: 100%; | ||
64 | + box-sizing: border-box; | ||
61 | } | 65 | } |
62 | 66 | ||
63 | .old_price { | 67 | .old_price { |
@@ -78,7 +82,12 @@ | @@ -78,7 +82,12 @@ | ||
78 | -webkit-flex-flow: column; | 82 | -webkit-flex-flow: column; |
79 | overflow-x: hidden; | 83 | overflow-x: hidden; |
80 | } | 84 | } |
81 | - | 85 | + .swiper-container{ |
86 | + height: 100%; | ||
87 | + } | ||
88 | + .swiper-wrapper{ | ||
89 | + height: 100%; | ||
90 | + } | ||
82 | 91 | ||
83 | 92 | ||
84 | </style> | 93 | </style> |
@@ -87,32 +96,33 @@ | @@ -87,32 +96,33 @@ | ||
87 | <!-- 背景充满 --> | 96 | <!-- 背景充满 --> |
88 | <div id="loadStart"></div> | 97 | <div id="loadStart"></div> |
89 | <div id="app"> | 98 | <div id="app"> |
90 | - <header id="header"> | ||
91 | - <div class="index_header white_bg"> | ||
92 | - <div class="close_left" onclick="closeWindow()"> | ||
93 | - <span class="iconfont icon-fanhui"></span> | ||
94 | - </div> | ||
95 | - <div class="win_mid">{{winTitle}}</div> | ||
96 | - <div></div> | ||
97 | - </div> | ||
98 | - </header> | 99 | + <!--<header id="header">--> |
100 | + <!--<div class="index_header white_bg">--> | ||
101 | + <!--<div class="close_left" onclick="closeWindow()">--> | ||
102 | + <!--<span class="iconfont icon-fanhui"></span>--> | ||
103 | + <!--</div>--> | ||
104 | + <!--<div class="win_mid">{{winTitle}}</div>--> | ||
105 | + <!--<div></div>--> | ||
106 | + <!--</div>--> | ||
107 | + <!--</header>--> | ||
99 | <div class="nurse_banner" :style="{backgroundImage:'url(' + banner + ')'}"> | 108 | <div class="nurse_banner" :style="{backgroundImage:'url(' + banner + ')'}"> |
100 | <div class="nurse_text">{{name}}</div> | 109 | <div class="nurse_text">{{name}}</div> |
101 | </div> | 110 | </div> |
111 | + <div class="examination_swiper"> | ||
112 | + <div class="swiper-container"> | ||
113 | + <div class="swiper-wrapper"> | ||
114 | + <div class="swiper-slide" v-for="(item,index) in navs"> | ||
115 | + <span v-text="item" :class="{'examination_active':index==ind}" @click="changeSwiper(index)"></span> | ||
116 | + </div> | ||
117 | + </div> | ||
118 | + </div> | ||
119 | + </div> | ||
102 | <div class="warp"> | 120 | <div class="warp"> |
103 | <!-- {{JSON.stringify(banner)}} --> | 121 | <!-- {{JSON.stringify(banner)}} --> |
104 | - | 122 | + |
105 | <div class="examination_box"> | 123 | <div class="examination_box"> |
106 | - <div class="examination_swiper"> | ||
107 | - <div class="swiper-container"> | ||
108 | - <div class="swiper-wrapper"> | ||
109 | - <div class="swiper-slide" v-for="(item,index) in navs"> | ||
110 | - <span v-text="item" :class="{'examination_active':index==ind}" @click="changeSwiper(index)"></span> | ||
111 | - </div> | ||
112 | - </div> | ||
113 | - </div> | ||
114 | - </div> | ||
115 | - <div class="examination_content_swiper warp"> | 124 | + |
125 | + <div class="examination_content_swiper "> | ||
116 | <div class="swiper-container"> | 126 | <div class="swiper-container"> |
117 | <div class="swiper-wrapper"> | 127 | <div class="swiper-wrapper"> |
118 | <div class="swiper-slide" v-for="(item,index) in goods"> | 128 | <div class="swiper-slide" v-for="(item,index) in goods"> |
@@ -181,8 +191,9 @@ | @@ -181,8 +191,9 @@ | ||
181 | }, | 191 | }, |
182 | created: function () { | 192 | created: function () { |
183 | var app = this; | 193 | var app = this; |
184 | - this.cid = localStorage.getItem('cid') | ||
185 | - this.winTitle = localStorage.getItem('winTitle') | 194 | + this.cid = localStorage.getItem('cid'); |
195 | + this.winTitle = localStorage.getItem('winTitle'); | ||
196 | + document.getElementsByTagName("title")[0].innerText = this.winTitle; | ||
186 | this.getCatInfo3(); | 197 | this.getCatInfo3(); |
187 | 198 | ||
188 | 199 |
@@ -1173,7 +1173,6 @@ | @@ -1173,7 +1173,6 @@ | ||
1173 | this.applyInfo(); | 1173 | this.applyInfo(); |
1174 | //获取当前地址 | 1174 | //获取当前地址 |
1175 | this.get_city(); | 1175 | this.get_city(); |
1176 | - this.getsdk(); | ||
1177 | //获取已经上传的图片 | 1176 | //获取已经上传的图片 |
1178 | if ($api.getStorage('img1') || ($api.getStorage('img2')) || ($api.getStorage('img3')) || ($api.getStorage('img4'))) { | 1177 | if ($api.getStorage('img1') || ($api.getStorage('img2')) || ($api.getStorage('img3')) || ($api.getStorage('img4'))) { |
1179 | app.img1 = $api.getStorage('img1'); | 1178 | app.img1 = $api.getStorage('img1'); |
@@ -1716,29 +1715,25 @@ | @@ -1716,29 +1715,25 @@ | ||
1716 | }, | 1715 | }, |
1717 | //证明上传 | 1716 | //证明上传 |
1718 | addPic(event){ | 1717 | addPic(event){ |
1719 | - | ||
1720 | - }, | ||
1721 | - //诊断证明/医疗处置单 | ||
1722 | - auth1: function (type) { | ||
1723 | - wx.chooseImage({ | ||
1724 | - count: 1, // 默认9 | ||
1725 | - sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有 | ||
1726 | - sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有 | ||
1727 | - success: function (res) { | ||
1728 | - var localIds = res.localIds; // 返回选定照片的本地ID列表,localId可以作为img标签的src属性显示图片 | ||
1729 | - wx.uploadImage({ | ||
1730 | - localId: localIds, // 需要上传的图片的本地ID,由chooseImage接口获得 | ||
1731 | - isShowProgressTips: 1, // 默认为1,显示进度提示 | ||
1732 | - success: function (res) { | ||
1733 | - var serverId = res.serverId; // 返回图片的服务器端ID | ||
1734 | - app.img1=serverId | ||
1735 | - } | ||
1736 | - | ||
1737 | - }); | 1718 | + var file = event.target.files[0]; |
1719 | + console.log(file) | ||
1720 | + var formData = new FormData(); | ||
1721 | + formData.append('file', file); | ||
1722 | + var header = { | ||
1723 | + "XX-Device-Type": getDevice(), | ||
1724 | + 'XX-Token': getToken() | ||
1725 | + }; | ||
1726 | + getRequest('post', 'portal/Goods/uploadProve', formData, header).then(function (res) { | ||
1727 | + alert(JSON.stringify(res)) | ||
1728 | + if (res.data.code == 1) { | ||
1729 | + app.priceList = res.data.data; | ||
1730 | + } else { | ||
1731 | + toastMsg(res.msg) | ||
1738 | } | 1732 | } |
1739 | - | ||
1740 | }); | 1733 | }); |
1741 | }, | 1734 | }, |
1735 | + //诊断证明/医疗处置单 | ||
1736 | + | ||
1742 | // 药品处方 | 1737 | // 药品处方 |
1743 | auth2: function (type) { | 1738 | auth2: function (type) { |
1744 | app.popupVisible1 = false; | 1739 | app.popupVisible1 = false; |
-
请 注册 或 登录 后发表评论