1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{"07cd":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return i}));var i={uSearch:function(){return n.e("uview-ui/components/u-search/u-search").then(n.bind(null,"f299"))},uSwiper:function(){return n.e("uview-ui/components/u-swiper/u-swiper").then(n.bind(null,"c192"))},uSection:function(){return n.e("uview-ui/components/u-section/u-section").then(n.bind(null,"337c"))},uGrid:function(){return n.e("uview-ui/components/u-grid/u-grid").then(n.bind(null,"3a7c"))},uGridItem:function(){return n.e("uview-ui/components/u-grid-item/u-grid-item").then(n.bind(null,"7457"))},uImage:function(){return n.e("uview-ui/components/u-image/u-image").then(n.bind(null,"4316"))},uNoticeBar:function(){return n.e("uview-ui/components/u-notice-bar/u-notice-bar").then(n.bind(null,"d549"))},uTag:function(){return n.e("uview-ui/components/u-tag/u-tag").then(n.bind(null,"6317"))},uLine:function(){return n.e("uview-ui/components/u-line/u-line").then(n.bind(null,"a852"))},uLoadmore:function(){return n.e("uview-ui/components/u-loadmore/u-loadmore").then(n.bind(null,"dcc6"))},uBackTop:function(){return n.e("uview-ui/components/u-back-top/u-back-top").then(n.bind(null,"c8ff"))},uNoNetwork:function(){return n.e("uview-ui/components/u-no-network/u-no-network").then(n.bind(null,"36dd"))}},o=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__map(t.doctorList,(function(e,n){var i=t.__get_orig(e),o=parseInt(e.distance/1e3);return{$orig:i,m0:o}})));t.$mp.data=Object.assign({},{$root:{l0:n}})},r=[]},"2d74":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,o=a(n("a34a")),r=n("9185"),u=n("2f62"),c=a(n("d81e"));function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e,n,i,o,r,u){try{var c=t[r](u),a=c.value}catch(s){return void n(s)}c.done?e(a):Promise.resolve(a).then(i,o)}function l(t){return function(){var e=this,n=arguments;return new Promise((function(i,o){var r=t.apply(e,n);function u(t){s(r,i,o,u,c,"next",t)}function c(t){s(r,i,o,u,c,"throw",t)}u(void 0)}))}}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){g(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var h=n("039b"),p=(i={computed:f(f({},(0,u.mapGetters)({hasLogin:"verifyJwt"})),(0,u.mapState)(["user"])),onShow:function(){this.GetCurrentAddress(),this.getDoctorList(),this.hasLogin=c.default.getters["verifyJwt"]},onLoad:function(t){this.getconfigData()}},g(i,"computed",{thumurlCurrent:function(){return this.currentindex-1<0?this.list.length-1:this.currentindex-1}}),g(i,"data",(function(){return{scrollTop:0,keyword:"",loadText:{nomore:"暂无更多医生推荐"},list:[{image:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},{image:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"},{image:"https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg"}],currentindex:0,listtext:["xxxxxxxxxxx","yyyyyyyyyyy","zzzzzzzzzzz"],doctorList:[],latitude:0,longitude:0,pageindex:1,configInfo:{},hasLogin:!1}})),g(i,"onHide",(function(){this.pageindex=1,this.doctorList=[]})),g(i,"onReachBottom",(function(){this.getDoctorList()})),g(i,"methods",{catchTouchMove:function(){return!1},slideimg:function(t){this.currentindex=t.detail.current},onPageScroll:function(t){this.scrollTop=t.scrollTop},gotoxuanze:function(e){this.hasLogin?t.navigateTo({url:"../doctor_related/select_doctor?index="+e.currentTarget.dataset.index}):t.showModal({title:"提示",content:"暂未登录,请前往登录",success:function(e){e.confirm&&t.navigateTo({url:"../login/login"})}})},gotoinfo:function(e){this.hasLogin?t.navigateTo({url:"../doctor_related/doctor_info?id="+e.currentTarget.dataset.id+"&index=1"}):t.showModal({title:"提示",content:"暂未登录,请前往登录",success:function(e){e.confirm&&t.navigateTo({url:"../login/login"})}})},getDoctorList:function(){var e=l(o.default.mark((function e(){var n,i;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.$request.post("/api/v1/docter/docterList",{page:this.pageindex,latitude:this.latitude,longitude:this.longitude},!1);case 2:n=e.sent,i=h.islogin(n),i&&(this.pageindex>n.data.last_page?t.showToast({title:"没有更多了",icon:"none"}):(this.doctorList=this.doctorList.concat(n.data.data),this.pageindex++));case 5:case"end":return e.stop()}}),e,this)})));function n(){return e.apply(this,arguments)}return n}(),submitCollect:function(){var e=l(o.default.mark((function e(n){var i;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.hasLogin){e.next=7;break}return e.next=3,this.$request.post("/api/v1/collection/submitCollect",{type:1,relation_id:n.currentTarget.dataset.id},!1);case 3:i=e.sent,0==i.status&&(0==i.data.is_collect?(t.showToast({title:"取消成功",icon:"none"}),this.doctorList[n.currentTarget.dataset.index].is_collect=i.data.is_collect):(t.showToast({title:"关注成功",icon:"none"}),this.doctorList[n.currentTarget.dataset.index].is_collect=i.data.is_collect)),e.next=8;break;case 7:t.showModal({title:"提示",content:"暂未登录,请前往登录",success:function(e){e.confirm&&t.navigateTo({url:"../login/login"})}});case 8:case"end":return e.stop()}}),e,this)})));function n(t){return e.apply(this,arguments)}return n}(),servicepacks:function(){t.navigateTo({url:"../service_packs/introduce"})},searchvalue:function(e){t.navigateTo({url:"../doctor_related/select_doctor?value="+e})},childcare:function(){this.hasLogin?t.navigateTo({url:"../childcare/child_care"}):t.showModal({title:"提示",content:"暂未登录,请前往登录",success:function(e){e.confirm&&t.navigateTo({url:"../login/login"})}})},vaccines:function(){this.hasLogin?t.navigateTo({url:"../vaccines/vaccines_info"}):t.showModal({title:"提示",content:"暂未登录,请前往登录",success:function(e){e.confirm&&t.navigateTo({url:"../login/login"})}})},getconfigData:function(){var t=l(o.default.mark((function t(){var e;return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$request.post("/api/v1/common/configList",{},!1);case 2:e=t.sent,console.log(e),0==e.status&&(this.configInfo=e.data);case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),GetCurrentAddress:function(){var e=this;(0,r.getLocation)().then((function(n){e.latitude=n.latitude,e.longitude=n.longitude,t.setStorageSync("latitude",n.latitude),t.setStorageSync("longitude",n.longitude)})).catch((function(t){}))}}),i);e.default=p}).call(this,n("543d")["default"])},3037:function(t,e,n){"use strict";n.r(e);var i=n("07cd"),o=n("959c");for(var r in o)"default"!==r&&function(t){n.d(e,t,(function(){return o[t]}))}(r);n("7171");var u,c=n("f0c5"),a=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,"fe15066a",null,!1,i["a"],u);e["default"]=a.exports},"4fc8":function(t,e,n){},7171:function(t,e,n){"use strict";var i=n("4fc8"),o=n.n(i);o.a},"7a1a":function(t,e,n){"use strict";(function(t){n("02cf");i(n("66fd"));var e=i(n("3037"));function i(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},"959c":function(t,e,n){"use strict";n.r(e);var i=n("2d74"),o=n.n(i);for(var r in i)"default"!==r&&function(t){n.d(e,t,(function(){return i[t]}))}(r);e["default"]=o.a}},[["7a1a","common/runtime","common/vendor"]]]);
|