pages-place-order-place-order.cc3b3fae.js 18 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-place-order-place-order"],{"011c":function(e,t,i){"use strict";var n;i.d(t,"b",(function(){return o})),i.d(t,"c",(function(){return a})),i.d(t,"a",(function(){return n}));var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"place-order"},[i("custom-nav",{ref:"ltm",attrs:{noback:"noback",transparent:"transparent",title:" "}}),i("AddCart",{ref:"addCart"}),i("v-uni-view",{staticClass:"content"},[i("v-uni-scroll-view",{style:{height:e.scrollviewHeight+"px"},attrs:{"scroll-y":!0}},[e._l(e.list,(function(t,n){return i("v-uni-view",{key:n,staticClass:"item",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.tap(n)}}},[i("v-uni-image",{staticClass:"img",attrs:{src:t.main_img,mode:"aspectFill"}}),i("v-uni-view",{staticClass:"info"},[i("v-uni-view",{staticClass:"top ellipsis"},[e._v(e._s(t.name))]),i("v-uni-view",{staticClass:"mid"},[e._v("¥"+e._s(t.money)+"/"+e._s(t.unit))]),i("v-uni-view",{staticClass:"bot"},[e._v(e._s(t.size.length)+"个尺码可选")]),i("v-uni-view",{staticClass:"shopCar",on:{click:function(i){i.stopPropagation(),arguments[0]=i=e.$handleEvent(i),e.tapShopCar(t)}}},[t.cart.reduce((function(e,t){return e+t}),0)?i("v-uni-view",{staticClass:"sizeNum"},[e._v(e._s(t.cart.reduce((function(e,t){return e+t}),0)))]):i("v-uni-text",{staticClass:"cuIcon-cart"})],1)],1)],1)})),e.goodsList.length?e._e():i("v-uni-view",{staticClass:"loading"},[e._v(e._s(e.status))])],2),i("v-uni-navigator",{staticClass:"cart",attrs:{"open-type":"switchTab",url:"../shop-car1/shop-car1"}},[e._v("购物车"),e.cartNum?i("v-uni-text",{staticClass:"sizeNum"},[e._v(e._s(e.cartNum))]):e._e()],1)],1)],1)},a=[]},"032b":function(e,t,i){"use strict";(function(e){var n=i("4ea4");i("cb29"),i("7db0"),i("4160"),i("159b"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i("c819"),a=i("7c54"),r=n(i("f4e1")),c={components:{AddCart:r.default},data:function(){return{title:"订货下单",mode:"square",goodsList:[],scrollviewHeight:0,status:"加载中..."}},computed:{list:function(){var e=this,t=(0,o.deepClone)(this.goodsList);return t.forEach((function(t){t.cart=Array(t.size.length).fill(0);var i=e.$store.state.cart.list.find((function(e){return e.attr_id===t.attr_id}));i&&Object.assign(t,i)})),t},cartNum:function(){return this.$store.getters["cart/shopcarNum"]}},mounted:function(){var e=this;if(this.$offset(".content").then((function(t){return e.scrollviewHeight=t.height-uni.upx2px(98)})),"代理公司"!==this.$store.state.userinfo.level)return uni.navigateBack(),void setTimeout((function(){return uni.$emit("noopening")}));this.request()},onPullDownRefresh:function(){this.request()},methods:{request:function(){var t=this;uni.showLoading({mask:!0}),(0,a._API_GoodList)().then((function(i){200===i.code?(t.goodsList=i.data.list,e.log(t.goodsList),t.goodsList.length||(t.status="暂无商品")):uni.toast("网络好像出了点问题,下拉刷新试试"),uni.stopPullDownRefresh()})).catch((function(){return setTimeout((function(){uni.toast("网络好像出了点问题,下拉刷新试试"),uni.stopPullDownRefresh()}),123)}))},tap:function(e){uni.setStorageSync("ggg",JSON.stringify(this.goodsList[e])),uni.navigateTo({url:"../good-detail1/good-detail1"})},tapShopCar:function(e){this.$refs.addCart.show((0,o.deepClone)(e))}}};t.default=c}).call(this,i("5a52")["default"])},"05ee":function(e,t,i){var n=i("6d94");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var o=i("4f06").default;o("9ac40806",n,!0,{sourceMap:!1,shadowMode:!1})},"15ad":function(e,t,i){"use strict";i.r(t);var n=i("032b"),o=i.n(n);for(var a in n)"default"!==a&&function(e){i.d(t,e,(function(){return n[e]}))}(a);t["default"]=o.a},"3eaa":function(e,t,i){"use strict";var n=i("05ee"),o=i.n(n);o.a},"6d94":function(e,t,i){var n=i("24fb");t=n(!1),t.push([e.i,'@charset "UTF-8";.app-item[data-v-2828eea2]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;min-height:%?90?%;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;padding:0 %?30?%;margin-bottom:%?2?%}.app-item.item-space[data-v-2828eea2]{margin-top:%?10?%}.app-item uni-input[data-v-2828eea2], .app-item uni-picker[data-v-2828eea2], .app-item uni-textarea[data-v-2828eea2]{height:100%;width:%?521?%;font-size:%?26?%;text-align:left;color:#999}.kingkong[data-v-2828eea2]{height:%?346?%;margin-top:%?10?%}.kingkong uni-navigator[data-v-2828eea2]{width:25%;height:50%;float:left;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.kingkong uni-navigator uni-image[data-v-2828eea2]{width:%?88?%;height:%?88?%;margin-top:%?30?%;border-radius:50%}.kingkong uni-navigator uni-text[data-v-2828eea2]{font-size:%?32?%;margin-top:%?12?%}.big-btn[data-v-2828eea2]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?630?%;height:%?88?%;font-size:%?34?%;margin:%?88?% auto 0;border-radius:%?44?%;color:#f76454;border:2px solid #f76454}.big-btn.bg[data-v-2828eea2]{color:#fff;background:#f76454}.small-btn[data-v-2828eea2]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;padding:0 %?14?%;font-size:%?26?%;margin-left:%?10?%;color:#f76454;height:%?48?%!important;min-width:%?106?%!important;border:%?2?% solid #f76454}.small-btn.dank[data-v-2828eea2]{color:#999;border-color:#999}.login-btn[data-v-2828eea2]{-webkit-box-flex:1;-webkit-flex:1;flex:1;width:100%;height:100%;background:#fff}.login-btn uni-navigator[data-v-2828eea2]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;top:50%;left:50%;width:%?400?%;height:%?88?%;color:#fff;position:fixed;font-size:%?32?%;border-radius:%?10?%;background:#f76454;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ellipsis[data-v-2828eea2]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.icon-right[data-v-2828eea2]{margin-right:%?20?%}.border-right[data-v-2828eea2]{border-right:%?1?% solid #f2f2f2}.level-name[data-v-2828eea2]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?130?%;height:%?36?%;color:#fff;font-size:%?16?%!important;border-radius:%?18?%;background:#f76454}.level-name .cuIcon-crownfill[data-v-2828eea2]{margin-right:%?6?%}.position-center[data-v-2828eea2]{left:50%;top:50%;position:absolute;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.data-card[data-v-2828eea2]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:100%;height:%?336?%;position:relative;background:#f2f2f2}.data-card uni-image[data-v-2828eea2]{z-index:0;width:%?706?%;height:%?316?%}.data-card .data-card-text[data-v-2828eea2]{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.data-card .data-card-text .text[data-v-2828eea2]{color:#fff;font-size:%?32?%}.data-card .data-card-text .num[data-v-2828eea2]{color:#fff;font-size:%?70?%;margin-top:%?60?%}.basecolor[data-v-2828eea2]{color:#f76454}.swiper-nav[data-v-2828eea2]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:100%;height:%?84?%;color:#666;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;border-bottom:%?1?% solid #f2f2f2}.swiper-nav .item[data-v-2828eea2]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%}.swiper-nav .item.active[data-v-2828eea2]{color:#f76454}.swiper-nav .moveBar[data-v-2828eea2]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;bottom:0;height:%?6?%;position:absolute}.swiper-nav .moveBar > uni-text[data-v-2828eea2]{width:100%;height:100%;border-radius:%?3?%;background:#f76454}.swiper-area[data-v-2828eea2]{-webkit-box-flex:1;-webkit-flex:1;flex:1;width:100%}.swiper-area uni-swiper[data-v-2828eea2]{width:100%;height:100%}.article-header[data-v-2828eea2]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?120?%;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;border-bottom:%?1?% solid #f2f2f2}.article-header .head-pic[data-v-2828eea2]{width:%?80?%;height:%?80?%;border-radius:50%}.article-header .name[data-v-2828eea2]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%;margin-left:%?20?%;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start}.article-header .name .identity[data-v-2828eea2]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?56?%;height:%?28?%;color:#fff;font-size:%?20?%;margin-left:%?20?%;border-radius:%?8?%;background:#f76454}.article-header .time[data-v-2828eea2]{font-size:%?24?%;color:#999}.article-header .time.justnow[data-v-2828eea2]{color:#f76454}.article-footer[data-v-2828eea2]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?90?%;border-top:%?1?% solid #f2f2f2}.article-footer .footer-item[data-v-2828eea2]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:%?40?%}.article-footer .footer-item.center[data-v-2828eea2]{border-left:%?1?% solid #ccc;border-right:%?1?% solid #ccc}.article-footer .footer-item .icon-right[data-v-2828eea2]{font-size:%?40?%}.article-footer .footer-item .icon-right.fill[data-v-2828eea2]{color:#f76454}\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/* 文章场景相关 */.place-order[data-v-2828eea2]{height:100%;box-sizing:border-box;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;background:#f2f2f2}.place-order .content[data-v-2828eea2]{-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%;position:relative;box-sizing:border-box}.place-order .content .cart[data-v-2828eea2]{height:%?98?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;color:#f76454;font-size:%?36?%;border-top:%?1?% solid silver;background:#fff;position:relative}.place-order .content .cart .sizeNum[data-v-2828eea2]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;position:absolute;font-size:%?20?%;left:50%;margin-left:%?48?%;height:%?32?%;color:#fff;top:%?24?%;padding:%?2?% %?8?%;border-radius:%?32?%;background:red}.place-order .content .loading[data-v-2828eea2]{text-align:center;margin-top:%?567?%}.place-order .content .item[data-v-2828eea2]{float:left;width:100%;padding:%?30?%;box-sizing:border-box;background:#fff;margin-bottom:10px;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.place-order .content .item .img[data-v-2828eea2]{height:%?240?%!important;width:%?300?%!important;margin-right:%?23?%}.place-order .content .item .info[data-v-2828eea2]{-webkit-box-flex:1;-webkit-flex:1;flex:1;width:100%;position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;border-radius:%?8?%;-webkit-box-align:start;-webkit-align-items:flex-start;align-items:flex-start;-webkit-justify-content:space-around;justify-content:space-around}.place-order .content .item .info .top[data-v-2828eea2]{width:100%;color:#181818;font-size:%?28?%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.place-order .content .item .info .mid[data-v-2828eea2]{font-size:%?32?%;color:#f76454;font-weight:700}.place-order .content .item .info .bot[data-v-2828eea2]{font-size:%?28?%;color:#666}.place-order .content .item .info .shopCar[data-v-2828eea2]{right:0;bottom:%?13?%;width:%?60?%;height:%?60?%;color:#fff;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;font-size:%?42?%;position:absolute;border-radius:50%;background:#f76454}',""]),e.exports=t},"7c54":function(e,t,i){"use strict";var n=i("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t._API_productInfo=t._API_GoodDetail=t._API_GoodList=void 0;var o=n(i("cacb")),a=function(e){return o.default.get("/good_show",e)};t._API_GoodList=a;var r=function(e){return o.default.get("/goods/detail",e)};t._API_GoodDetail=r;var c=function(e){return o.default.get("/detail/index",e)};t._API_productInfo=c},fc20:function(e,t,i){"use strict";i.r(t);var n=i("011c"),o=i("15ad");for(var a in o)"default"!==a&&function(e){i.d(t,e,(function(){return o[e]}))}(a);i("3eaa");var r,c=i("f0c5"),l=Object(c["a"])(o["default"],n["b"],n["c"],!1,null,"2828eea2",null,!1,n["a"],r);t["default"]=l.exports}}]);