(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/mine"],{1719:function(t,n,e){"use strict";e.r(n);var i=e("6fdd"),a=e("7499");for(var o in a)"default"!==o&&function(t){e.d(n,t,(function(){return a[t]}))}(o);e("ecd2");var r,u=e("f0c5"),s=Object(u["a"])(a["default"],i["b"],i["c"],!1,null,"82c44bd2",null,!1,i["a"],r);n["default"]=s.exports},"2f0d":function(t,n,e){},"5cb7":function(t,n,e){"use strict";(function(t){e("02cf");i(e("66fd"));var n=i(e("1719"));function i(t){return t&&t.__esModule?t:{default:t}}t(n.default)}).call(this,e("543d")["createPage"])},"6fdd":function(t,n,e){"use strict";e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){return i}));var i={uAvatar:function(){return e.e("uview-ui/components/u-avatar/u-avatar").then(e.bind(null,"98a4"))},uNoNetwork:function(){return e.e("uview-ui/components/u-no-network/u-no-network").then(e.bind(null,"36dd"))}},a=function(){var t=this,n=t.$createElement;t._self._c},o=[]},7499:function(t,n,e){"use strict";e.r(n);var i=e("badd"),a=e.n(i);for(var o in i)"default"!==o&&function(t){e.d(n,t,(function(){return i[t]}))}(o);n["default"]=a.a},badd:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(e("a34a")),a=r(e("a602")),o=r(e("d81e"));function r(t){return t&&t.__esModule?t:{default:t}}function u(t,n,e,i,a,o,r){try{var u=t[o](r),s=u.value}catch(c){return void e(c)}u.done?n(s):Promise.resolve(s).then(i,a)}function s(t){return function(){var n=this,e=arguments;return new Promise((function(i,a){var o=t.apply(n,e);function r(t){u(o,i,a,r,s,"next",t)}function s(t){u(o,i,a,r,s,"throw",t)}r(void 0)}))}}var c=e("039b"),f={onLoad:function(t){},onShow:function(){var n=this;if(this.getUserInfo(),this.getarchives(),null==getApp().globalData.imService){var e=t.getStorageSync("user");getApp().globalData.imService=new a.default;var i=getApp().globalData.imService.login({flag:e.flag,nickname:e.nickname,avatar:e.avatar});i&&getApp().globalData.imService.connectIM()}this.imService=getApp().globalData.imService,this.imService.onConversationsUpdate=function(t){n.conversations=t,n.setUnreadAmount()};var o=this.imService.latestConversations();o.then((function(e){n.conversations=e.content,console.log("conversations load successfully"),n.setUnreadAmount(),console.log(n.conversations),t.hideLoading()})).catch((function(t){console.log(t)}))},data:function(){return{itemcurrent:0,info:{},istrue:!1,patientList:[],conversations:{unreadTotal:0,conversations:[]},imService:null,mseeage:""}},methods:{setUnreadAmount:function(){this.conversations.unreadTotal>0?this.mseeage=this.conversations.unreadTotal.toString():this.mseeage=""},customer:function(){t.makePhoneCall({phoneNumber:"12345"})},swiperChange:function(t){this.itemcurrent=t.detail.current},getUserInfo:function(){var n=s(i.default.mark((function n(){var e,a;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,this.$request.post("/api/v1/user/userInfo",{},!1);case 2:e=n.sent,a=c.islogin(e),a&&(this.info=e.data,this.info.flag="member_"+this.info.id,o.default.commit("setUser",this.info),0==this.info.is_set_pay_password&&t.showModal({title:"提示",content:"尚未设置支付密码，是否前往设置",confirmText:"去设置",success:function(n){n.confirm&&t.navigateTo({url:"paypassword"})}}));case 5:case"end":return n.stop()}}),n,this)})));function e(){return n.apply(this,arguments)}return e}(),gotoinfo:function(n){t.navigateTo({url:"../archives/archives_info?id="+n.id})},getarchives:function(){var t=s(i.default.mark((function t(){var n;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$request.post("/api/v1/patient/patientList",{},!1);case 2:n=t.sent,0==n.status&&(this.patientList=n.data.data,console.log(this.patientList),0!=this.patientList.length&&(this.istrue=!0));case 4:case"end":return t.stop()}}),t,this)})));function n(){return t.apply(this,arguments)}return n}(),gocoupon:function(){t.navigateTo({url:"../personal/coupon/coupon"})}}};n.default=f}).call(this,e("543d")["default"])},ecd2:function(t,n,e){"use strict";var i=e("2f0d"),a=e.n(i);a.a}},[["5cb7","common/runtime","common/vendor"]]]);