(function(n){function e(e){for(var o,a,u=e[0],c=e[1],s=e[2],l=0,d=[];l1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,i="http://h5api.xintaihlwyy.cn";return uni.setStorageSync("requestPath",i),new Promise((function(u,c){var s=uni.getStorageSync(a.TOKEN_KEY),f="application/x-www-form-urlencoded";void 0!=o&&(f=o);var l=1==r?"/app/course/h5"+n:3==r?n:"/app/course"+n;uni.request({header:{"Content-Type":f,AppToken:1==r?"":s},url:"".concat(i).concat(l),data:e,method:t,success:function(n){if(401==n.data.code){var e=getCurrentPages(),t=e[e.length-1];if(void 0!=t&&"pages/auth/login"==t.route)return void u(n.data)}n.token&&uni.setStorageSync(a.TOKEN_KEY,n.token),u(n.data)},fail:function(n){},complete:function(n){if(401==n.data.code)return!1;uni.hideLoading()}})}))}}]),n}();e.default=u},"46f4":function(n,e,t){var o=t("9af3");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[n.i,o,""]]),o.locals&&(n.exports=o.locals);var r=t("967d").default;r("e2e7a67e",o,!0,{sourceMap:!1,shadowMode:!1})},"49fb":function(n,e,t){"use strict";var o=t("f5bd").default,r=o(t("9b1b"));t("3dde"),t("a8b2"),t("1480"),t("6e4a"),t("7966"),t("9337");var i=o(t("4f3e")),a=t("a7d6"),u=o(t("9b8e"));t("70dc"),u.default.prototype.$isLogin=a.isLogin,u.default.prototype.$TOKEN_KEY=a.TOKEN_KEY,u.default.config.productionTip=!1,i.default.mpType="app";var c=new u.default((0,r.default)({},i.default));c.$mount()},"4b39":function(n,e,t){"use strict";t("6a54");var o=t("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.courseAnswer=function(n,e){return i("/courseAnswer",n,"POST","application/json;charset=UTF-8",e)},e.getErrMsg=function(n,e){return i("/getErrMsg",n,"POST","application/x-www-form-urlencoded",e)},e.getFinishCourseVideo=function(n,e){return i("/updateWatchDuration",n,"POST","application/json;charset=UTF-8",e)},e.getH5CourseByVideoId=function(n,e){return i("/getH5CourseByVideoId",n,"GET",void 0,e)},e.getH5CourseVideoDetails=function(n,e){return i("/getH5CourseVideoDetails",n,"GET",void 0,e)},e.getIntegralByH5Video=function(n,e){return i("/getIntegralByH5Video",n,"POST","application/json;charset=UTF-8",e)},e.getInternetTraffic=function(n,e){return i("/getInternetTraffic",n,"POST","application/json;charset=UTF-8",e)},e.getIsAddKf=function(n,e){return i("/isAddKf",n,"POST","application/json;charset=UTF-8",e)},e.getRealLink=function(n,e){return i("/getRealLink",n,"GET",void 0,e)},e.getWxConfig=function(n,e){return i("/app/wx/mp/getWxConfig",n,"GET",void 0,3)},e.loginByMp=function(n){return i("/app/wx/mp/loginByMp",n,"POST","application/json;charset=UTF-8",3)},e.sendReward=function(n,e){return i("/sendReward",n,"POST","application/json;charset=UTF-8",e)};var r=o(t("237b")),i=(new r.default).http},"4f3e":function(n,e,t){"use strict";t.r(e);var o=t("c48d"),r=t("18a3");for(var i in r)["default"].indexOf(i)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(i);t("e4f5");var a=t("828b"),u=Object(a["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=u.exports},"70dc":function(n,e,t){var o=t("bdbb").default;t("bf0f"),uni.addInterceptor({returnValue:function(n){return!n||"object"!==o(n)&&"function"!==typeof n||"function"!==typeof n.then?n:new Promise((function(e,t){n.then((function(n){return n?n[0]?t(n[0]):e(n[1]):e(n)}))}))}})},7966:function(n,e,t){"use strict";(function(n){var e=t("f5bd").default;t("473f"),t("bf0f"),t("de6c"),t("5c47"),t("a1c1");var o=e(t("9b8e")),r={keys:function(){return[]}};n["____14DD7BF____"]=!0,delete n["____14DD7BF____"],n.__uniConfig={globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},uniIdRouter:{}},n.__uniConfig.compilerVersion="4.64",n.__uniConfig.darkmode=!1,n.__uniConfig.themeConfig={},n.__uniConfig.uniPlatform="h5",n.__uniConfig.appId="__UNI__14DD7BF",n.__uniConfig.appName="loginCourseAnswerH5",n.__uniConfig.appVersion="1.0.0",n.__uniConfig.appVersionCode="100",n.__uniConfig.router={mode:"history",base:"/auth/"},n.__uniConfig.publicPath="/auth/",n.__uniConfig["async"]={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4},n.__uniConfig.debug=!1,n.__uniConfig.networkTimeout={request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},n.__uniConfig.sdkConfigs={},n.__uniConfig.qqMapKey=void 0,n.__uniConfig.googleMapKey=void 0,n.__uniConfig.aMapKey=void 0,n.__uniConfig.aMapSecurityJsCode=void 0,n.__uniConfig.aMapServiceHost=void 0,n.__uniConfig.locale="",n.__uniConfig.fallbackLocale=void 0,n.__uniConfig.locales=r.keys().reduce((function(n,e){var t=e.replace(/\.\/(uni-app.)?(.*).json/,"$2"),o=r(e);return Object.assign(n[t]||(n[t]={}),o.common||o),n}),{}),n.__uniConfig.nvue={"flex-direction":"column"},n.__uniConfig.__webpack_chunk_load__=t.e,o.default.component("pages-course-learning",(function(n){var e={component:t.e("pages-course-learning").then(function(){return n(t("9398"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(e.loading={name:"SystemAsyncLoading",render:function(n){return n(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(e.error={name:"SystemAsyncError",render:function(n){return n(__uniConfig["async"]["error"])}}),e})),o.default.component("pages-course-reward",(function(n){var e={component:t.e("pages-course-reward").then(function(){return n(t("5731"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(e.loading={name:"SystemAsyncLoading",render:function(n){return n(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(e.error={name:"SystemAsyncError",render:function(n){return n(__uniConfig["async"]["error"])}}),e})),o.default.component("pages-auth-login",(function(n){var e={component:t.e("pages-auth-login").then(function(){return n(t("2ef7"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(e.loading={name:"SystemAsyncLoading",render:function(n){return n(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(e.error={name:"SystemAsyncError",render:function(n){return n(__uniConfig["async"]["error"])}}),e})),n.__uniRoutes=[{path:"/",alias:"/pages/course/learning",component:{render:function(n){return n("Page",{props:Object.assign({isQuit:!0,isEntry:!0},__uniConfig.globalStyle,{navigationBarTitleText:"",navigationStyle:"custom",scrollIndicator:"none",bounce:"none",titleNView:!1})},[n("pages-course-learning",{slot:"page"})])}},meta:{id:1,name:"pages-course-learning",isNVue:!1,maxWidth:0,pagePath:"pages/course/learning",isQuit:!0,isEntry:!0,windowTop:0}},{path:"/pages/course/reward",component:{render:function(n){return n("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"",navigationStyle:"custom",scrollIndicator:"none",bounce:"none",titleNView:!1})},[n("pages-course-reward",{slot:"page"})])}},meta:{name:"pages-course-reward",isNVue:!1,maxWidth:0,pagePath:"pages/course/reward",windowTop:0}},{path:"/pages/auth/login",component:{render:function(n){return n("Page",{props:Object.assign({},__uniConfig.globalStyle,{navigationBarTitleText:"微信授权",navigationStyle:"custom",scrollIndicator:"none",bounce:"none",titleNView:!1})},[n("pages-auth-login",{slot:"page"})])}},meta:{name:"pages-auth-login",isNVue:!1,maxWidth:0,pagePath:"pages/auth/login",windowTop:0}},{path:"/choose-location",component:{render:function(n){return n("Page",{props:{navigationStyle:"custom"}},[n("system-choose-location",{slot:"page"})])}},meta:{name:"choose-location",pagePath:"/choose-location"}},{path:"/open-location",component:{render:function(n){return n("Page",{props:{navigationStyle:"custom"}},[n("system-open-location",{slot:"page"})])}},meta:{name:"open-location",pagePath:"/open-location"}}],n.UniApp&&new n.UniApp}).call(this,t("0ee4"))},"9af3":function(n,e,t){var o=t("c86c");e=o(!1),e.push([n.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*每个页面公共css */",""]),n.exports=e},a7d6:function(n,e,t){"use strict";t("6a54");var o=t("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.TOKEN_KEY=void 0,e.generateRandomString=function(n){for(var e="",t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=t.length,r=0;r0)if(c==r){var l=s-i;e=l<0?f-1:f}else{var d=c-r;e=d<0?f-1:f}else e=-1}return e},e.getDictLabelName=function(n,e){if(null==e)return"";var t="";return n.forEach((function(n,o,r){e.toString()==n.dictValue.toString()&&(t=n.dictLabel)})),t},e.getStoreDictByName=function(n,e){if(null==e||-1==e)return"请选择";var t=uni.getStorageSync(n),o=JSON.parse(t),r="";return o.forEach((function(n,t,o){e.toString()==n.dictValue.toString()&&(r=n.dictLabel)})),r},e.getUserInfo=function(){var n=uni.getStorageSync("userInfo");return n=JSON.parse(n),n},e.initJssdk=function(n,e){var t={url:encodeURIComponent(e)};uni.showLoading({title:"加载中"}),(0,r.getWxConfig)(t).then((function(e){uni.hideLoading(),200==e.code&&(i.default.config({debug:!1,appId:e.data.appId,timestamp:e.data.timestamp,nonceStr:e.data.nonceStr,signature:e.data.signature,jsApiList:["requestMerchantTransfer"]}),n&&n(e.data))})).catch((function(n){uni.hideLoading()}))},e.isEmpty=function(n){return"undefined"==n||null==n||""==n},e.isLogin=u,e.logout=function(){uni.setStorageSync(a,null)},e.navBack=function(){uni.navigateBack({animationType:"pop-out",animationDuration:200})},e.navTo=function(n){uni.navigateTo({url:n})},e.parseIDCardInfo=function(n){if(/^\d{17}[\dXx]$/.test(n)){var e=n.substring(6,14),t=e.substring(0,4),o=e.substring(4,6),r=e.substring(6,8),i=(new Date).getFullYear(),a=i-parseInt(t),u=parseInt(n.charAt(16)),c=u%2===0?"女":"男";return{birthday:t+"-"+o+"-"+r,age:a,gender:c}}return null},e.parseIdCard=function(n){var e=n.substr(0,4)+"****"+n.substr(8);return e},e.parsePhone=function(n){var e=n.substr(0,3)+"****"+n.substr(7);return e},e.parseText=function(n,e){if(n.length>e){var t=n.substr(0,e)+"...";return t}return n},t("d4b5"),t("5c47"),t("0506"),t("e966"),t("bf0f"),t("2797"),t("c9b5"),t("ab80"),t("aa9c"),t("23f4"),t("7d2f"),t("9c4e"),t("a1c1"),t("795c"),t("f7a5"),t("5ef2");var r=t("4b39"),i=o(t("adcb")),a="AppToken_JinZCourse";e.TOKEN_KEY=a;function u(){var n=uni.getStorageSync(a);return!!n}},c48d:function(n,e,t){"use strict";t.d(e,"b",(function(){return o})),t.d(e,"c",(function(){return r})),t.d(e,"a",(function(){}));var o=function(){var n=this.$createElement,e=this._self._c||n;return e("App",{attrs:{keepAliveInclude:this.keepAliveInclude}})},r=[]},d8ce:function(n,e,t){"use strict";t("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={onLaunch:function(){console.log("App Launch")},onShow:function(){console.log("App Show")},onHide:function(){console.log("App Hide")}};e.default=o},e4f5:function(n,e,t){"use strict";var o=t("46f4"),r=t.n(o);r.a}});