zx/public/static/js/pages-guide-index.9ce68e5b.js

1 line
17 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-guide-index"],{"02aa":function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.ajcaptchaCheck=function(t){return a.default.post("ajcheck",t,{noAuth:!0})},e.appleAppAuth=function(t){return a.default.post("auth/apple",t,{noAuth:!0})},e.appletsDecrypt=function(t){return a.default.post("user/mp/binding",t)},e.bindingPhone=function(t){return a.default.post("user/binding",t)},e.getAjcaptcha=function(t){return a.default.get("ajcaptcha",t,{noAuth:!0})},e.getAppVersion=function(){return a.default.get("appVersion",{},{noAuth:!0})},e.getArticleBannerList=function(){return a.default.get("article/banner/list",{},{noAuth:!0})},e.getArticleCategoryList=function(){return a.default.get("article/category/lst",{},{noAuth:!0})},e.getArticleDetails=function(t){return a.default.get("article/detail/"+t,{},{noAuth:!0})},e.getArticleHotList=function(){return a.default.get("article/hot/list",{},{noAuth:!0})},e.getArticleList=function(t,e){return a.default.get("article/lst/"+t,e,{noAuth:!0})},e.getAssistData=function(t){return a.default.get("diy/assist",t,{noAuth:!0})},e.getCateData=function(t){return a.default.get("diy/category",t,{noAuth:!0})},e.getCity=function(){return a.default.get("system/city/lst",{},{noAuth:!0})},e.getCityList=function(t){return a.default.get("v2/system/city",{address:t},{noAuth:!0})},e.getCityV2=function(t){return a.default.get("v2/system/city/lst/"+t,{},{noAuth:!0})},e.getCombinationData=function(t){return a.default.get("diy/group",t,{noAuth:!0})},e.getCouponData=function(t){return a.default.get("diy/coupon",t,{noAuth:!0})},e.getCoupons=function(t){return a.default.get("coupon/product",t,{noAuth:!0})},e.getDiy=function(t){return a.default.get("diy",t,{noAuth:!0})},e.getIndexData=function(){return a.default.get("common/home",{},{noAuth:!0})},e.getLiveData=function(t){return a.default.get("diy/broadcast",t,{noAuth:!0})},e.getLiveList=function(t,e){return a.default.get("wechat/live",{page:t,limit:e},{noAuth:!0})},e.getLogo=function(){return a.default.get("wechat/get_logo",{},{noAuth:!0})},e.getOpenAdv=function(){return a.default.get("open_screen",{},{noAuth:!0})},e.getPageDiy=function(t){return a.default.get("micro",t,{noAuth:!0})},e.getPresellData=function(t){return a.default.get("diy/presell",t,{noAuth:!0})},e.getProductData=function(t){return a.default.get("diy/spu",t,{noAuth:!0})},e.getSeckillData=function(t){return a.default.get("diy/seckill",t,{noAuth:!0})},e.getShopCoupons=function(t){return a.default.get("coupon/store/"+t,{},{noAuth:!0})},e.getTemlIds=function(){return a.default.get("wechat/teml_ids",{},{noAuth:!0})},e.getUserCoupons=function(t){return a.default.get("coupon/list",t)},e.graphicLstData=function(t){return a.default.get("diy/community",t,{noAuth:!0})},e.hotRankingList=function(t){return a.default.get("diy/hot_top",t,{noAuth:!0})},e.loginMobile=function(t){return a.default.post("login/mobile",t,{noAuth:!0})},e.logout=function(){return a.default.get("logout")},e.modifyPassword=function(t){return a.default.post("user/change/password",t)},e.modifyPhone=function(t){return a.default.post("user/change/phone",t)},e.phoneLogin=function(t){return a.default.post("login",t,{noAuth:!0})},e.phoneRegister=function(t){return a.default.post("register",t,{noAuth:!0})},e.phoneRegisterReset=function(t){return a.default.post("register/reset",t,{noAuth:!0})},e.pink=function(){return a.default.get("pink",{},{noAuth:!0})},e.registerVerify=function(t,e,n,i){return a.default.post("register/verify",{phone:t,type:void 0===e?"reset":e,key:n,code:i},{noAuth:!0})},e.setCouponReceive=function(t){return a.default.post("coupon/receive/"+t)},e.setFormId=function(t){return a.default.post("wechat/set_form_id",{formId:t})},e.storeList=function(t){return a.default.get("diy/store",t,{noAuth:!0})},e.switchH5Login=function(t){return a.default.post("user/switch",t)},e.verifyCode=function(){return a.default.get("verify_code",{},{noAuth:!0})},e.wechatAppAuth=function(t){return a.default.post("auth/app",t,{noAuth:!0})};var a=i(n("fea3"))},"0bf2":function(t,e,n){var i=n("7fa7");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("967d").default;a("27aeb281",i,!0,{sourceMap:!1,shadowMode:!1})},"35c6":function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("b3c2")),o=(i(n("6a1b")),n("c25d")),u=n("02aa"),r={components:{guide:a.default},data:function(){return{guidePages:!1,frequency:"",advData:[]}},onLoad:function(t){t.spid&&(0,o.setStorage)("spid",t.spid)},onShow:function(){this.$wechat.isWeixin()&&this.$wechat.wechat(),this.loadExecution()},methods:{loadExecution:function(){var t=this;(0,u.getOpenAdv)().then((function(e){t.frequency=e.data.config.open_screen_space;var n=uni.getStorageSync("guideDate")||"",i=new Date;if(n>=i&&0!=e.data.config.open_screen_space)uni.switchTab({url:"/pages/index/index"});else if(""==e.data.config.open_screen_switch||0==e.data.list.length)uni.switchTab({url:"/pages/index/index"});else if(e.data.config.open_screen_switch&&e.data.list.length){t.advData=e.data;var a=new Date,o=a.setHours(a.getHours()+e.data.config.open_screen_space);uni.setStorageSync("guideDate",new Date(o)),t.guidePages=!0}})).catch((function(t){uni.switchTab({url:"/pages/index/index"})}))}},onHide:function(){this.guidePages=!1}};e.default=r},"384f":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"main"},[this.guidePages?e("guide",{attrs:{advData:this.advData}}):this._e()],1)},a=[]},4038:function(t,e,n){"use strict";n.r(e);var i=n("9db2"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},"41b7":function(t,e,n){var i=n("6899");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("967d").default;a("05c1dc31",i,!0,{sourceMap:!1,shadowMode:!1})},"4cac":function(t,e,n){"use strict";var i=n("41b7"),a=n.n(i);a.a},6899:function(t,e,n){var i=n("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-page-body[data-v-a23df016],\n.content[data-v-a23df016]{width:100%;height:100%;background-size:100% auto;padding:0}body.?%PAGE?%[data-v-a23df016]{background-size:100% auto}.swiper[data-v-a23df016]{width:100%;height:100vh;background:#fff}.swiper.on[data-v-a23df016]{position:relative}.swiper.on[data-v-a23df016]:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:2}.swiper-item[data-v-a23df016]{width:100%;height:100%;text-align:center;position:relative;display:flex;\n /* justify-content: center; */align-items:flex-end;flex-direction:column-reverse}.swiper-item-img[data-v-a23df016]{width:100vw;height:100vh;margin:0 auto;display:flex}.swiper-item-img uni-image[data-v-a23df016]{width:100%;height:100%}.jump-over[data-v-a23df016]{position:absolute;height:%?45?%;line-height:%?45?%;padding:0 %?15?%;border-radius:%?30?%;font-size:%?24?%;color:#b09e9a;border:1px solid #b09e9a;z-index:999;right:%?30?%}.video-box[data-v-a23df016]{width:100vw;height:100vh}.video-box .vid[data-v-a23df016]{width:100%;height:100%}',""]),t.exports=e},"7fa7":function(t,e,n){var i=n("c86c");e=i(!1),e.push([t.i,"uni-page-body[data-v-c84a08ee],\n.main[data-v-c84a08ee]{width:100%;height:100%}",""]),t.exports=e},"9db2":function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("64aa"),n("5ef2");getApp();var i={data:function(){return{autoplay:!0,circular:!0,duration:500,interval:2500,jumpover:"跳过",experience:"立即体验",time:this.advData.config.open_screen_time,timecount:void 0,navH:0}},props:{advData:{type:Object,default:function(){}},closeType:{type:Number,default:1}},mounted:function(){this.timer(),this.navH=80},methods:{stopChange:function(){if(1==this.advData.list.length)return!1},timer:function(){var t=this,e=this.advData.config.open_screen_time||5;this.timecount=setInterval((function(){e--,t.time=e,e<=0&&(clearInterval(t.timecount),t.launchFlag())}),1e3)},launchFlag:function(){clearInterval(this.timecount),uni.switchTab({url:"/pages/index/index"})},jump:function(t){t&&(clearInterval(this.timecount),-1!=t.indexOf("http")?uni.navigateTo({url:"/pages/annex/web_view/index?url=".concat(t)}):-1==["/pages/goods_cate/goods_cate","/pages/order_addcart/order_addcart","/pages/user/index","/pages/index/index","/pages/plant_grass/index"].indexOf(t)?uni.navigateTo({url:t}):uni.reLaunch({url:t}))}}};e.default=i},a7c4:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"content"},[t.advData.list.length?n("v-uni-swiper",{staticClass:"swiper",class:1==t.advData.list.length?"on":"",attrs:{autoplay:t.autoplay,interval:t.interval,duration:t.duration,circular:t.circular},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.stopChange.apply(void 0,arguments)}}},t._l(t.advData.list,(function(e,i){return n("v-uni-swiper-item",{key:i,on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.jump(e.url)}}},[n("v-uni-view",{staticClass:"swiper-item"},[n("v-uni-view",{staticClass:"swiper-item-img"},[n("v-uni-image",{attrs:{src:e.pic,mode:"aspectFill"}})],1)],1)],1)})),1):t._e(),"video"==t.advData.type&&t.advData.video_link?n("v-uni-view",{staticClass:"video-box"},[n("v-uni-video",{staticClass:"vid",attrs:{src:t.advData.video_link,autoplay:!0,loop:!0,muted:!0,controls:!1}})],1):t._e(),n("v-uni-view",{staticClass:"jump-over",style:{top:t.navH+"rpx"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.launchFlag()}}},[t._v("跳过"),1==t.closeType?n("v-uni-text",[t._v(t._s(t.time))]):t._e(),t._t("bottom")],2)],1)},a=[]},b3c2:function(t,e,n){"use strict";n.r(e);var i=n("a7c4"),a=n("4038");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("4cac");var u=n("828b"),r=Object(u["a"])(a["default"],i["b"],i["c"],!1,null,"a23df016",null,!1,i["a"],void 0);e["default"]=r.exports},c1cd:function(t,e,n){"use strict";n.r(e);var i=n("384f"),a=n("f709");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("fe80");var u=n("828b"),r=Object(u["a"])(a["default"],i["b"],i["c"],!1,null,"c84a08ee",null,!1,i["a"],void 0);e["default"]=r.exports},c25d:function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.ActionSheet=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#000000";return new Promise((function(n,i){uni.showActionSheet({itemList:t,itemColor:e,success:function(t){n(t.tapIndex)},fail:function(t){i(t.errMsg)}})}))},e.Authorize=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scope.userInfo";return new Promise((function(e,n){uni.authorize({scope:t,success:function(t){e(t)},fail:function(t){n(t)}})}))},e.GetUserInfo=function(){return new Promise((function(t,e){uni.getUserInfo({success:function(e){t(e)},fail:function(t){e(t)}})}))},e.Loading=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"正在加载...",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};uni.showLoading((0,o.default)({title:t,mask:!0},e))},e.Modal=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"提示",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"这是一个模态弹窗!";return new Promise((function(n,i){uni.showModal({title:t,content:e,success:function(t){t.confirm&&n(),t.cancel&&i()}})}))},e.ScrollTo=function(t){uni.pageScrollTo({scrollTop:t,duration:300})},e.Toast=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:800,a=(0,o.default)({title:t,duration:i,position:"center",mask:!0,icon:e||"none"},n);uni.showToast(a)},e.chooseImage=function(t){return new Promise((function(e,n){uni.chooseImage({count:t,sizeType:["original","compressed"],sourceType:["album","camera"],success:function(t){e(t)},fail:function(t){n(t)}})}))},e.clearStorage=function(){try{uni.clearStorageSync()}catch(t){throw new Error("处理失败")}},e.convertObj=u,e.formatDate=r,e.getQuarterStartDate=function(){var t=new Date(d,function(){var t=0;s<3&&(t=0);2<s&&s<6&&(t=3);5<s&&s<9&&(t=6);s>8&&(t=9);return t}(),1);return r(t,"yyyy-MM-dd")},e.getStorage=function(t){var e=uni.getStorageSync(t);try{"number"!=typeof JSON.parse(e)&&(e=JSON.parse(e))}catch(n){}return e},e.hideLoading=function(){try{uni.hideLoading()}catch(t){throw new Error("处理失败")}},e.navigateBack=function(t){uni.navigateBack({delta:t})},e.navigateTo=function(t,e,n){var i=e,a="navigateTo";switch(i=n?i+"?"+u(n):i,t){case 1:a="navigateTo";break;case 2:a="redirectTo";break;case 3:a="reLaunch";break;case 4:a="switchTab";break;default:a="navigateTo";break}uni[a]({url:i,animationType:"slide-in-right",animationDuration:200})},e.pathToBase64=function(t){return new Promise((function(e,n){if("object"===("undefined"===typeof window?"undefined":(0,a.default)(window))&&"document"in window){if("function"===typeof FileReader){var i=new XMLHttpRequest;return i.open("GET",t,!0),i.responseType="blob",i.onload=function(){if(200===this.status){var t=new FileReader;t.onload=function(t){e(t.target.result)},t.onerror=n,t.readAsDataURL(this.response)}},i.onerror=n,void i.send()}var o=document.createElement("canvas"),u=o.getContext("2d"),r=new Image;return r.onload=function(){o.width=r.width,o.height=r.height,u.drawImage(r,0,0),e(o.toDataURL()),o.height=o.width=0},r.onerror=n,void(r.src=t)}"object"!==("undefined"===typeof plus?"undefined":(0,a.default)(plus))?"object"===("undefined"===typeof wx?"undefined":(0,a.default)(wx))&&wx.canIUse("getFileSystemManager")?wx.getFileSystemManager().readFile({filePath:t,encoding:"base64",success:function(t){e("data:image/png;base64,"+t.data)},fail:function(t){n(t)}}):n(new Error("not support")):plus.io.resolveLocalFileSystemURL(getLocalFilePath(t),(function(t){t.file((function(t){var i=new plus.io.FileReader;i.onload=function(t){e(t.target.result)},i.onerror=function(t){n(t)},i.readAsDataURL(t)}),(function(t){n(t)}))}),(function(t){n(t)}))}))},e.removeStorage=function(t){t&&uni.removeStorageSync(t)},e.serialize=function(t){if(null!=t&&""!=t)try{return JSON.parse(JSON.stringify(t))}catch(e){return t instanceof Array?[]:{}}return t},e.setStorage=function(t,e){if("string"==typeof e)return uni.setStorageSync(t,e),e;uni.setStorageSync(t,JSON.stringify(e))},e.showMonthFirstDay=function(){var t=(new Date).setDate(1);return r(new Date(t).getTime(),"yyyy-MM-dd")},e.showWeekFirstDay=function(){var t=new Date,e=t.getDay()||7;return t.setDate(t.getDate()-e+1),r(t,"yyyy-MM-dd")},e.throttle=function(t,e){var n,i;e=e||200;return function(){for(var a=this,o=arguments.length,u=new Array(o),r=0;r<o;r++)u[r]=arguments[r];n=u,i||(i=setTimeout((function(){i=null,t.apply(a,n)}),e))}},e.unique=function(t){t=t||[];for(var e={},n=0;n<t.length;n++){var i=JSON.stringify(t[n]);"undefined"==typeof i&&(e[i]=1)}for(var n in t.length=0,e)t[t.length]=n;return t};var a=i(n("fcf3")),o=i(n("9b1b"));function u(t){var e,n=[];return Object.keys(t).forEach((function(e){n.push("".concat(e,"=").concat(t[e]))})),e=n.join("&"),e}function r(t,e){return t?(e=e||"yyyy-MM-dd hh:mm:ss",new Date(t).format(e)):""}n("d4b5"),n("7a76"),n("c9b5"),n("bf0f"),n("2797"),n("dc8a"),n("aa9c"),n("c223"),n("5c47"),n("0506"),n("a1c1"),n("23f4"),n("7d2f"),n("9c4e"),n("ab80"),Date.prototype.format=function(t){var e={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var n in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,String(this.getFullYear()).substr(4-RegExp.$1.length))),e)new RegExp("("+n+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?e[n]:("00"+e[n]).substr(String(e[n]).length)));return t};var c=new Date,s=c.getMonth(),d=c.getYear();d+=d<2e3?1900:0},f709:function(t,e,n){"use strict";n.r(e);var i=n("35c6"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},fe80:function(t,e,n){"use strict";var i=n("0bf2"),a=n.n(i);a.a}}]);