kj-tabbar.js 4.6 KB

12345678910
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/kj-tabbar/kj-tabbar"],{"4e66":function(t,e,n){},6086:function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var i={uCheckboxGroup:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-checkbox-group/u-checkbox-group")]).then(n.bind(null,"c952"))},uCheckbox:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-checkbox/u-checkbox")]).then(n.bind(null,"5fa3"))},uTabbar:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-tabbar/u-tabbar")]).then(n.bind(null,"edf8"))},uTabbarItem:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-tabbar-item/u-tabbar-item")]).then(n.bind(null,"ec92"))}},c=function(){var t=this.$createElement,e=(this._self._c,3==this.value1&&0!=this.success?this.goodsPrice.split("."):null),n=3==this.value1&&0!=this.success?this.goodsPrice.split("."):null;this.$mp.data=Object.assign({},{$root:{g0:e,g1:n}})},o=[]},"64c1":function(t,e,n){"use strict";n.r(e);var i=n("bc05"),c=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"]=c.a},7227:function(t,e,n){"use strict";n.r(e);var i=n("6086"),c=n("64c1");for(var o in c)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return c[t]}))}(o);n("932f");var a=n("828b"),s=Object(a["a"])(c["default"],i["b"],i["c"],!1,null,"08bbbba8",null,!1,i["a"],void 0);e["default"]=s.exports},"932f":function(t,e,n){"use strict";var i=n("4e66"),c=n.n(i);c.a},bc05:function(t,e,n){"use strict";(function(t){var i=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var c,o=i(n("7ca3")),a=(n("3240"),n("8f59"),c={name:"kj-tabbar",props:{value1:{type:Number,default:0},goodsWeight:{type:Number,default:0},goodsPrice:{type:String,default:""},goodsList:{type:Array,default:function(){return[]}},checkboxValue1:{type:Array,default:function(){return[]}}},computed:{i18n:function(){return this.$t("index")}},data:function(){return{success:!0,all:[],language:"zh-CN",selegoods:[],stringcheck:[]}},onLoad:function(){}},(0,o.default)(c,"computed",{i18n:function(){return this.$t("index")},list:function(){var t=[{iconPath:"../../static/express1.png",selectedIconPath:"../../static/express2.png",text:"跨境速递",pagePath:"pages/express/express"},{iconPath:"../../static/index1.png",selectedIconPath:"../../static/index2.png",text:"商城",pagePath:"pages/index/index"},{iconPath:"../../static/shop.png",selectedIconPath:"../../static/shop.png",text:"购",pagePath:"pages/shopping/shopping"},{iconPath:"../../static/cart1.png",selectedIconPath:"../../static/cart2.png",text:"购物车",pagePath:"pages/cart/cart"},{iconPath:"../../static/mine1.png",selectedIconPath:"../../static/mine2.png",text:"我的",pagePath:"pages/mine/mine"}];return t[0].text=this.i18n.border,t[1].text=this.i18n.shop,t[2].text=this.i18n.chase,t[3].text=this.i18n.Shopping,t[4].text=this.i18n.mine,t}}),(0,o.default)(c,"created",(function(){""!=t.getStorageSync("language")&&(this.language=t.getStorageSync("language"))})),(0,o.default)(c,"methods",{account:function(){var e=this;console.log(this.checkboxValue1),console.log(this.goodsList),this.selegoods=[],this.goodsList.map((function(t){t.goods.map((function(t){e.checkboxValue1.indexOf(t.cart.sku_item_id)>-1&&(console.log(t),e.selegoods=e.selegoods.concat(t),e.stringcheck=e.stringcheck.concat(t.cart.id))}))})),this.$nextTick((function(){t.navigateTo({url:"/pageA/order?selelist="+encodeURIComponent(JSON.stringify(e.selegoods))+"&typea=shop&goodsPrice="+e.goodsPrice+"&goodsWeight="+e.goodsWeight+"&stringcheck="+e.stringcheck.toString()})}))},getLabelHeight:function(){var e=t.createSelectorQuery("#tabber");console.log(e)},checkAll:function(){this.$emit("allSelect")},cancelAll:function(t){if("全选"==t)return this.all;"取消"==t?this.all=[]:this.all.push(this.i18n.selectall)},click1:function(e){4==e&&t.switchTab({url:"../../pages/mine/mine"}),0==e&&t.switchTab({url:"../../pages/express/express"}),1==e&&t.switchTab({url:"../../pages/index/index"}),2==e&&t.switchTab({url:"../../pages/shopping/shopping"}),3==e&&t.switchTab({url:"../../pages/cart/cart"})}}),c);e.default=a}).call(this,n("df3c")["default"])}}]);
  2. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  3. 'components/kj-tabbar/kj-tabbar-create-component',
  4. {
  5. 'components/kj-tabbar/kj-tabbar-create-component':(function(module, exports, __webpack_require__){
  6. __webpack_require__('df3c')['createComponent'](__webpack_require__("7227"))
  7. })
  8. },
  9. [['components/kj-tabbar/kj-tabbar-create-component']]
  10. ]);