(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-40ed4259"],{"114c":function(e,n,t){"use strict";t.r(n);var i=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("div",{staticClass:"preview-div1-1",domProps:{innerHTML:e._s(e.url)}})])},o=[],a=(t("28a5"),t("18a0")),r=t.n(a),c=(t("350c"),t("bc3a"),t("76a0")),s=t("e876"),d=(t("8c78"),t("e848"),t("aadd")),u={name:"StudyHelp",components:{},data:function(){return{code:"",deviceId:"",hotId:"",userId:"",url:"",datas:""}},mounted:function(){var e=this;console.log(Object(d["a"])("code")),this.code=Object(d["a"])("code"),this.hotId=Object(d["a"])("hotId");var n=window.location.origin+window.location.pathname+"?hotId="+this.hotId;if(!this.code)return window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx2851ac748f9af659&redirect_uri="+n+"&response_type=code&scope=snsapi_userinfo&state=123#wechat_redirec",!1;console.log(n),this.getHot(),this.userId=this.$route.params.userId,setTimeout((function(){e.getUser()}),1);var t={datas:{country:"",unionid:"omgLlvrKdvDjHe7MYxlbWQYlTSbo",province:"",city:"",openid:"odf8k6CHY2_uc4C6g22b_uhtCDqo",sex:0,nickname:"居然有个靓仔",headimgurl:"https://thirdwx.qlogo.cn/mmopen/vi_32/dZj08ckjV0LDPLCwhQ5Hj9KrSEMrxNSVFQOZsXBgrnC55a2SrSl0kSiapCx5Dw9gBf5qcic1afrHTtINWFL9meSg/132",language:"",privilege:[]},resp_code:0,resp_msg:"获取成功"};console.log(t)},created:function(){console.log(navigator.language)},methods:{initWxSdk:function(){var e=this;return new Promise((function(n,t){var i=document.location.href.split("#"),o=encodeURIComponent(i[0]);console.log(o);var a={appIdKey:"saleH5AppId",url:o};Object(s["h"])(a).then((function(n){n.resp_code,console.log(n);var t=n.datas;r.a.config({debug:!1,appId:t.appid,timestamp:t.timestamp,nonceStr:t.nonceStr,signature:t.signature,jsApiList:["checkJsApi","updateAppMessageShareData","updateTimelineShareData","onMenuShareAppMessage","onMenuShareTimeline"]}),r.a.checkJsApi({jsApiList:["updateAppMessageShareData","updateTimelineShareData","onMenuShareAppMessage","onMenuShareTimeline"],success:function(e){console.log(e)}}),r.a.ready((function(){e.diyWeixin(i[0])})),r.a.error((function(e){}))})).catch((function(e){}))}))},diyWeixin:function(e){var n=this;console.log(e),r.a.updateAppMessageShareData({title:n.datas.title,desc:"唯蜜瘦,健康塑身品牌,遇见更好的自己,诚邀您加入唯蜜瘦",link:e,imgUrl:n.datas.source,success:function(){alert("updateAppMessageShareData success")},cancel:function(){alert("cancel")},fail:function(e){alert("fail"+JSON.stringify(e)),console.log(e)}}),r.a.updateTimelineShareData({title:n.datas.title,link:e,imgUrl:n.datas.source,success:function(){alert("updateTimelineShareData success")},cancel:function(){alert("cancel")},fail:function(e){alert("fail"+JSON.stringify(e)),console.log(e)}})},randomWord:function(e,n,t){var i="",o=n,a=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];e&&(o=Math.round(Math.random()*(t-n))+n);for(var r=0;r