example.app.js 4.62 KB
webpackJsonp([16],{0:function(t,o,n){"use strict";var e=n(2),i=n(18),c=n(301);new e({el:"#app",components:{appBox:c}}),e.use(i)},4:function(t,o,n){(function(o){"use strict";function n(t){var n=void 0,e={mask:!1,delay:2e3,txt:""};"string"==typeof t?o.extend(e,{txt:t}):o.extend(e,t);var i='<div class="tip-box"><div class="tip">'+e.txt+"</div></div>",c=o(".tip-box");c.length&&(n=c.data("timer"),clearTimeout(n),c.remove());var u=o(i).appendTo(document.body);u.data("timer",setTimeout(function(){u.remove()},e.delay))}t.exports=n}).call(o,n(1))},124:function(t,o,n){"use strict";var e=n(4),i={isApp:/yh_blk/i.test((navigator.userAgent||"").toLowerCase()),data:window.yohoInterfaceData,goTap:function(t,o,n){this.isApp?window.yohoInterface.triggerEvent(o||function(){},n||function(){},{method:"go.tab",arguments:t}):e("暂不支持,请在BLK应用中打开")},goLogin:function(t,o,n){this.isApp?window.yohoInterface.triggerEvent(o||function(){},n||function(){},{method:"go.login",arguments:t}):e("暂不支持,请在BLK应用中打开")},goLogout:function(t,o,n){this.isApp?window.yohoInterface.triggerEvent(o||function(){},n||function(){},{method:"go.loginout",arguments:t}):e("暂不支持,请在BLK应用中打开")},goShopingKey:function(t,o,n){this.isApp?window.yohoInterface.triggerEvent(o||function(){},n||function(){},{method:"go.shoppingkey",arguments:t}):e("暂不支持,请在BLK应用中打开")},goShopingCart:function(t,o,n){this.isApp?window.yohoInterface.triggerEvent(o||function(){},n||function(){},{method:"go.shopingCart",arguments:t}):e("暂不支持,请在BLK应用中打开")},goAddress:function(t,o,n){this.isApp?window.yohoInterface.triggerEvent(o||function(){},n||function(){},{method:"go.address",arguments:t}):e("暂不支持,请在BLK应用中打开")},goImageBrowser:function(t,o,n){this.isApp?window.yohoInterface.triggerEvent(o||function(){},n||function(){},{method:"go.imageBrowser",arguments:t}):e("暂不支持,请在BLK应用中打开")},goNewPage:function(t,o,n){this.isApp?window.yohoInterface.triggerEvent(o||function(){},n||function(){},{method:"go.newPage",arguments:t}):e("暂不支持,请在BLK应用中打开")},goPay:function(t,o,n){this.isApp?window.yohoInterface.triggerEvent(o||function(){},n||function(){},{method:"go.pay",arguments:t}):e("暂不支持,请在BLK应用中打开")},goBack:function(t,o,n){this.isApp?window.yohoInterface.triggerEvent(o||function(){},n||function(){},{method:"go.back",arguments:t}):e("暂不支持,请在BLK应用中打开")},goShare:function(t,o,n){this.isApp?window.yohoInterface.triggerEvent(o||function(){},n||function(){},{method:"go.share",arguments:t}):e("暂不支持,请在BLK应用中打开")},goSearch:function(t,o,n){this.isApp?window.yohoInterface.triggerEvent(o||function(){},n||function(){},{method:"go.search",arguments:t}):e("暂不支持,请在BLK应用中打开")},goSetting:function(t,o,n){this.isApp?window.yohoInterface.triggerEvent(o||function(){},n||function(){},{method:"go.setting",arguments:t}):e("暂不支持,请在BLK应用中打开")},addNativeMethod:function(t,o){window.yohoInterface[t]=o}};t.exports=i},180:function(t,o,n){"use strict";var e=n(124);t.exports={data:function(){return{yoho:e}}}},236:function(t,o){},267:function(t,o){t.exports=' <button class=button @click=\'yoho.goTap({"index":2})\'>TAP</button> <button class=button @click=yoho.goLogin()>登录</button> <button class=button @click=yoho.goLogout()>退出登录</button> <button class=button @click=\'yoho.goShopingKey({"shoppingkey":"123456789"})\'>设置ShopingKey</button> <button class=button @click=yoho.goShopingCart()>跳转购物车</button> <button class=button @click=\'yoho.goAddress({"type":"1"})\'>地址选择页面</button> <button class=button @click=\'yoho.goAddress({"type":"2"})\'>地址管理页面</button> <button class=button @click=\'yoho.goImageBrowser({"images":["http://7xwj52.com1.z0.glb.clouddn.com/brandbg.jpg"], "index": "1"})\'>图片浏览</button> <button class=button @click=\'yoho.goNewPage({"url":"http://m.yohoblk.com"})\'>新页面</button> <button class=button @click=yoho.goPay()>支付</button> <button class=button @click=yoho.goBack()>返回</button> <button class=button @click=\'yoho.goShare({"title":"标题","des":"描述","img":"http://7xwj52.com1.z0.glb.clouddn.com/brandbg.jpg","url":"http://m.yohoblk.com"})\'>分享</button> <button class=button @click=yoho.goSearch()>搜索</button> <button class=button @click=yoho.goSetting()>设置</button> '},301:function(t,o,n){var e,i;n(236),e=n(180),i=n(267),t.exports=e||{},t.exports.__esModule&&(t.exports=t.exports["default"]),i&&(("function"==typeof t.exports?t.exports.options||(t.exports.options={}):t.exports).template=i)}});