pages-index-index.5234ada7.js 16 KB

12345678
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-index"],{"014a":function(t,e,n){(function(t){var o,r,i,a=n("bdbb").default;n("4626"),n("01a2"),n("e39c"),n("bf0f"),n("844d"),n("18f7"),n("de6c"),n("7a76"),n("c9b5"),n("6a54"),n("8a8d"),n("6a88"),n("7996"),n("926e"),n("2797"),n("fd3c"),n("ab80"),n("aa9c"),n("f7a5"),
  2. /*!
  3. * clipboard.js v2.0.11
  4. * https://clipboardjs.com/
  5. *
  6. * Licensed MIT © Zeno Rocha
  7. */
  8. function(n,c){"object"===a(e)&&"object"===a(t)?t.exports=c():(r=[],o=c,i="function"===typeof o?o.apply(e,r):o,void 0===i||(t.exports=i))}(0,(function(){return function(){var t={686:function(t,e,n){"use strict";n.d(e,{default:function(){return x}});var o=n(279),r=n.n(o),i=n(370),a=n.n(i),c=n(817),u=n.n(c);function l(t){try{return document.execCommand(t)}catch(e){return!1}}var s=function(t){var e=u()(t);return l("cut"),e};var f=function(t,e){var n=function(t){var e="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[e?"right":"left"]="-9999px";var o=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(o,"px"),n.setAttribute("readonly",""),n.value=t,n}(t);e.container.appendChild(n);var o=u()(n);return l("copy"),n.remove(),o},d=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"===typeof t?n=f(t,e):t instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null===t||void 0===t?void 0:t.type)?n=f(t.value,e):(n=u()(t),l("copy")),n};function p(t){return p="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}var h=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.action,n=void 0===e?"copy":e,o=t.container,r=t.target,i=t.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==r){if(!r||"object"!==p(r)||1!==r.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&r.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(r.hasAttribute("readonly")||r.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return i?d(i,{container:o}):r?"cut"===n?s(r):d(r,{container:o}):void 0};function y(t){return y="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y(t)}function v(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function m(t,e){return m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},m(t,e)}function b(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=w(t);if(e){var r=w(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==y(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function w(t){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},w(t)}function _(t,e){var n="data-clipboard-".concat(t);if(e.hasAttribute(n))return e.getAttribute(n)}var k=function(t){(function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)})(n,t);var e=b(n);function n(t,o){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),r=e.call(this),r.resolveOptions(o),r.listenClick(t),r}return function(t,e,n){e&&v(t.prototype,e),n&&v(t,n)}(n,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof t.action?t.action:this.defaultAction,this.target="function"===typeof t.target?t.target:this.defaultTarget,this.text="function"===typeof t.text?t.text:this.defaultText,this.container="object"===y(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=a()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget,n=this.action(e)||"copy",o=h({action:n,container:this.container,target:this.target(e),text:this.text(e)});this.emit(o?"success":"error",{action:n,text:o,trigger:e,clearSelection:function(){e&&e.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(t){return _("action",t)}},{key:"defaultTarget",value:function(t){var e=_("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return _("text",t)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return d(t,e)}},{key:"cut",value:function(t){return s(t)}},{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"===typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}]),n}(r()),x=k},828:function(t){if("undefined"!==typeof Element&&!Element.prototype.matches){var e=Element.prototype;e.matches=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}t.exports=function(t,e){while(t&&9!==t.nodeType){if("function"===typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},438:function(t,e,n){var o=n(828);function r(t,e,n,o,r){var a=i.apply(this,arguments);return t.addEventListener(n,a,r),{destroy:function(){t.removeEventListener(n,a,r)}}}function i(t,e,n,r){return function(n){n.delegateTarget=o(n.target,e),n.delegateTarget&&r.call(t,n)}}t.exports=function(t,e,n,o,i){return"function"===typeof t.addEventListener?r.apply(null,arguments):"function"===typeof n?r.bind(null,document).apply(null,arguments):("string"===typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return r(t,e,n,o,i)})))}},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"===typeof t||t instanceof String},e.fn=function(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e}},370:function(t,e,n){var o=n(879),r=n(438);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!o.string(e))throw new TypeError("Second argument must be a String");if(!o.fn(n))throw new TypeError("Third argument must be a Function");if(o.node(t))return function(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}(t,e,n);if(o.nodeList(t))return function(t,e,n){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,n)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,n)}))}}}(t,e,n);if(o.string(t))return function(t,e,n){return r(document.body,t,e,n)}(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(t){t.exports=function(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var o=window.getSelection(),r=document.createRange();r.selectNodeContents(t),o.removeAllRanges(),o.addRange(r),e=o.toString()}return e}},279:function(t){function e(){}e.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var o=this;function r(){o.off(t,r),e.apply(n,arguments)}return r._=e,this.on(t,r,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,r=n.length;for(o;o<r;o++)n[o].fn.apply(n[o].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),o=n[t],r=[];if(o&&e)for(var i=0,a=o.length;i<a;i++)o[i].fn!==e&&o[i].fn._!==e&&r.push(o[i]);return r.length?n[t]=r:delete n[t],this}},t.exports=e,t.exports.TinyEmitter=e}},e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}return function(){n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,{a:e}),e}}(),function(){n.d=function(t,e){for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})}}(),function(){n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),n(686)}().default}))}).call(this,n("dc84")(t))},"1b2f":function(t,e,n){"use strict";n("6a54");var o=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.callback=function(t){return i("/baidu/callback",t,"GET")},e.getTemplate=function(t){return i("/baidu/getTemplate",{no:t},"GET")},e.iqiyiClickCallback=function(t){return i("/baidu/iqiyiClickCallback",t,"GET")},e.youkuClickCallback=function(t){return i("/baidu/youkuClickCallback",t,"GET")};var r=o(n("d3aa")),i=(new r.default).http},2734:function(t,e,n){"use strict";n.r(e);var o=n("8e27"),r=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=r.a},"7a2d":function(t,e,n){var o=n("c3cb");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var r=n("967d").default;r("fb22cfe4",o,!0,{sourceMap:!1,shadowMode:!1})},"8d93":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"content",style:{paddingBottom:t.paddingBottom}},t._l(t.json,(function(e,o){return n("v-uni-view",{staticClass:"item",class:e.classText.join(" "),on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.click(e)}}},["h5-text"==e.type?n("p",{style:e.style},[t._v(t._s(e.content))]):t._e(),"h5-image"==e.type?n("img",{ref:"myImage"+o,refInFor:!0,attrs:{src:e.url},on:{load:function(n){arguments[0]=n=t.$handleEvent(n),t.handleImageLoad(o,e)}}}):t._e(),n("p")])})),1)},r=[]},"8e27":function(t,e,n){"use strict";n("6a54");var o=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("5ef2");o(n("014a"));var r=n("1b2f"),i=(n("9f17"),{data:function(){return{images:[],data:{},json:{},vid:"",click_id:"",aid:"",no:"",type:0,show:!1,name:"",tel:"",accountId:"",ip:"",paddingBottom:0,order_plan_id:"",creative_id:"",impress_id:"",sign:""}},mounted:function(){window.vueInstance=this},onLoad:function(t){var e=this;null!=t.type&&""!=t.type&&void 0!=t.type&&null!=t.accountId&&""!=t.accountId&&void 0!=t.accountId&&null!=t.no&&""!=t.no&&void 0!=t.no?(this.accountId=t.accountId,this.type=t.type,this.no=t.no,0==this.type&&(this.vid=t.bd_vid),1==this.type&&(this.vid=t.bd_vid,this.aid=t.aid,this.click_id=t.click_id,this.ip=t.ip),2==this.type&&(this.order_plan_id=t.order_plan_id,this.creative_id=t.creative_id,this.impress_id=t.impress_id,this.sign=t.sign),(0,r.getTemplate)(t.no).then((function(t){e.data=t.data,e.json=JSON.parse(t.data.json)}))):uni.showToast({icon:"none",title:"推广链接错误"})},methods:{handleImageLoad:function(t,e){if(-1!=e.classText.indexOf("footer")){var n=this.$refs["myImage"+t],o=(n[0].naturalHeight,n[0].clientHeight);this.paddingBottom=o+"px"}},confirm:function(){this.show=!1},clickToWx:function(t){var e=this;if(0==this.type){var n={url:window.location.href,no:this.no,bdVid:this.vid,t:67};(0,r.callback)(n).then((function(n){window.location.href=t+"?customer_channel="+e.vid}))}if(1==this.type){var o={accountId:this.accountId,deeplink_url:window.location.href,no:this.no,bd_vid:this.vid,aid:this.aid,click_id:this.click_id,ip:this.ip};(0,r.youkuClickCallback)(o).then((function(n){window.location.href=t+"?customer_channel="+e.vid}))}if(2==this.type){var i={accountId:this.accountId,url:window.location.href,no:this.no,order_plan_id:this.order_plan_id,creative_id:this.creative_id,impress_id:this.impress_id,sign:this.sign,clickType:"200"};(0,r.iqiyiClickCallback)(i).then((function(n){window.location.href=t+"?customer_channel="+e.impress_id}))}},click:function(t){t.addWxFun&&this.clickToWx(t.workUrl)}}});e.default=i},"9f17":function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.clicks=function(t,e){(0,o.callback)({url:url}).then((function(t){console.info(e),e&&e.push(["track",["success",{t:35}]])}))},n("aa9c");var o=n("1b2f")},b709:function(t,e,n){"use strict";n.r(e);var o=n("8d93"),r=n("2734");for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);n("ee40");var a=n("828b"),c=Object(a["a"])(r["default"],o["b"],o["c"],!1,null,"7aa1405a",null,!1,o["a"],void 0);e["default"]=c.exports},c3cb:function(t,e,n){var o=n("c86c");e=o(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.item[data-v-7aa1405a]{display:flex;flex-direction:column;flex:1;margin:0;width:100%}.item img[data-v-7aa1405a]{width:100%}.item p[data-v-7aa1405a]{white-space:pre-line}.footer[data-v-7aa1405a]{position:fixed;bottom:0;left:0}',""]),t.exports=e},d3aa:function(t,e,n){"use strict";n("6a54");var o=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("bf0f");var r=o(n("80b1")),i=o(n("efe5")),a=function(){function t(){(0,r.default)(this,t)}return(0,i.default)(t,[{key:"http",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,r="https://bd.runtzh.com/prod-api";return uni.setStorageSync("requestPath",r),new Promise((function(i,a){uni.getStorageSync("AppToken");var c="application/x-www-form-urlencoded";void 0!=o&&(c=o);uni.request({header:{"Content-Type":c},url:"".concat(r).concat(t),data:e,method:n,success:function(t){i(t.data)},fail:function(t){},complete:function(t){if(401==t.data.code)return!1;uni.hideLoading()}})}))}}]),t}();e.default=a},ee40:function(t,e,n){"use strict";var o=n("7a2d"),r=n.n(o);r.a}}]);