pages-guide-index.fc7f4e8c.js 6.8 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-guide-index"],{"0bdf":function(t,e,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("c89b")),u=(i(a("00e9")),a("5743")),d={components:{guide:n.default},data:function(){return{guidePages:!1,advData:[]}},onShow:function(){this.loadExecution()},methods:{loadExecution:function(){var t=this,e=uni.getStorageSync("guideDate")||"",a=(new Date).toLocaleDateString();e!==a?(0,u.getOpenAdv)().then((function(e){0==e.data.status||0==e.data.value.length?uni.switchTab({url:"/pages/index/index"}):e.data.status&&(e.data.value.length||e.data.video_link)&&(t.advData=e.data,uni.setStorageSync("guideDate",(new Date).toLocaleDateString()),t.guidePages=!0)})).catch((function(t){uni.switchTab({url:"/pages/index/index"})})):uni.switchTab({url:"/pages/index/index"})}},onHide:function(){this.guidePages=!1}};e.default=d},"0cc1":function(t,e,a){"use strict";var i=a("5d48"),n=a.n(i);n.a},"0d31":function(t,e,a){"use strict";a.r(e);var i=a("0bdf"),n=a.n(i);for(var u in i)["default"].indexOf(u)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(u);e["default"]=n.a},3749:function(t,e,a){"use strict";a.r(e);var i=a("77f8"),n=a("0d31");for(var u in n)["default"].indexOf(u)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(u);a("0cc1");var d=a("f0c5"),o=Object(d["a"])(n["default"],i["b"],i["c"],!1,null,"5e8c8614",null,!1,i["a"],void 0);e["default"]=o.exports},"3cac":function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("a9e3");var i={data:function(){return{autoplay:!0,duration:500,jumpover:this.$t("跳过"),experience:this.$t("立即体验"),timecount:void 0,times:0}},props:{advData:{type:Object,default:function(){}},closeType:{type:Number,default:1}},mounted:function(){this.timer()},onHide:function(){clearInterval(this.timecount)},methods:{timer:function(){var t=this;this.times=this.advData.time;var e=this.advData.time||5;this.timecount=setInterval((function(){e--,t.times=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),this.$util.JumpPath(t))}}};e.default=i},"5d48":function(t,e,a){var i=a("7e7b");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("1d02e1fb",i,!0,{sourceMap:!1,shadowMode:!1})},"77f8":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.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,time:this.advData.time}}):this._e()],1)},n=[]},"7e7b":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"uni-page-body[data-v-5e8c8614],\n.main[data-v-5e8c8614]{width:100%;height:100%}",""]),t.exports=e},8924:function(t,e,a){"use strict";a.r(e);var i=a("3cac"),n=a.n(i);for(var u in i)["default"].indexOf(u)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(u);e["default"]=n.a},9166:function(t,e,a){var i=a("9eef");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("2cce0c45",i,!0,{sourceMap:!1,shadowMode:!1})},"995e":function(t,e,a){"use strict";var i=a("9166"),n=a.n(i);n.a},"9eef":function(t,e,a){var i=a("24fb");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/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-page-body[data-v-435b13ad],\n.content[data-v-435b13ad]{width:100%;height:100%;background-size:100% auto;padding:0}body.?%PAGE?%[data-v-435b13ad]{background-size:100% auto}.swiper[data-v-435b13ad]{width:100%;height:100vh;background:#fff}.swiper-item[data-v-435b13ad]{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-435b13ad]{width:100%;height:100vh;margin:0 auto}.swiper-item-img uni-image[data-v-435b13ad]{width:100%;height:100%}.jump-over[data-v-435b13ad]{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}.jump-over[data-v-435b13ad]{right:%?30?%;top:%?80?%}.video-box[data-v-435b13ad]{width:100vw;height:100vh}.video-box .vid[data-v-435b13ad]{width:100%;height:100%}',""]),t.exports=e},a287:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"content"},["pic"==t.advData.type&&t.advData.value.length?a("v-uni-swiper",{staticClass:"swiper",attrs:{autoplay:t.autoplay,"indicator-dots":"true","indicator-color":"rgba(255,255,255,0.6)",duration:t.duration}},t._l(t.advData.value,(function(e,i){return a("v-uni-swiper-item",{key:i,on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.jump(e.link)}}},[a("v-uni-view",{staticClass:"swiper-item"},[a("v-uni-view",{staticClass:"swiper-item-img"},[a("v-uni-image",{attrs:{src:e.img,mode:"scaleToFill"}})],1)],1)],1)})),1):"video"==t.advData.type&&t.advData.video_link?a("v-uni-view",{staticClass:"video-box"},[a("v-uni-video",{staticClass:"vid",attrs:{src:t.advData.video_link,autoplay:!0,loop:!0,muted:!0,controls:!1}})],1):t._e(),a("v-uni-view",{staticClass:"jump-over",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.launchFlag()}}},[t._v(t._s(t.$t("跳过"))),1==t.closeType?a("v-uni-text",[t._v(t._s(t.times))]):t._e()],1)],1)},n=[]},c89b:function(t,e,a){"use strict";a.r(e);var i=a("a287"),n=a("8924");for(var u in n)["default"].indexOf(u)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(u);a("995e");var d=a("f0c5"),o=Object(d["a"])(n["default"],i["b"],i["c"],!1,null,"435b13ad",null,!1,i["a"],void 0);e["default"]=o.exports}}]);