1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-place-order-place-order"],{"142e":function(e,t,i){"use strict";i.r(t);var a=i("5f2c"),n=i("67c8");for(var o in n)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(o);i("c09f");var r=i("828b"),c=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"3e332aec",null,!1,a["a"],void 0);t["default"]=c.exports},"5f2c":function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return n})),i.d(t,"a",(function(){}));var a=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,a){return i("v-uni-view",{key:a,staticClass:"item",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.tap(a)}}},[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",staticStyle:{"font-size":"20rpx"}},[e._v(e._s(t.cart.reduce((function(e,t){return e+t}),0)))]):i("v-uni-text",{staticClass:"cuIcon-cart"})],1)],1)],1)})),1),i("v-uni-navigator",{staticClass:"cart",attrs:{"open-type":"navigate",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)},n=[]},"67c8":function(e,t,i){"use strict";i.r(t);var a=i("8965"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(o);t["default"]=n.a},"6d2d":function(e,t,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t._API_GoodList=t.GetLimitGood=t.GetGoodStatus=void 0;var n=a(i("5c59"));t._API_GoodList=function(e){return n.default.get("/good_show",e)};t.GetGoodStatus=function(e){return n.default.get("/goods/GetGoodStatus",e)};t.GetLimitGood=function(e){return n.default.get("/good/LimitGood",e)}},8965:function(e,t,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(i("9b1b"));i("bf0f"),i("2797"),i("1851"),i("aa77"),i("fd3c"),i("d4b5");var o=i("7dc6"),r=i("6d2d"),c=a(i("ab64")),s={components:{AddCart:c.default},data:function(){return{image:["http://look.qiniuyun.jiuweiyun.cn/daweiboshi-app/18afbb463c7e9a8aefa4883e726900f.jpg?imageMogr2/thumbnail/!40p"],title:"订货下单",mode:"square",goodsList:[],scrollviewHeight:0,status:"加载中..."}},computed:{userinfo:function(){return this.$store.state.userinfo},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)})),3!==this.$store.state.userinfo.user_type)return uni.navigateBack(),void setTimeout((function(){return uni.$emit("noopening")}));15866666666!=this.$store.state.userinfo.mobile&&this.request()},onPullDownRefresh:function(){15866666666!=this.$store.state.userinfo.mobile?this.request():uni.stopPullDownRefresh()},methods:{gosoap:function(e){uni.navigateTo({url:"../soap/index?type="+e})},request:function(){var e=this;uni.showLoading({mask:!0});var t=[0,0,0,0,0,0,0,0,0,0,0,0,0,0];(0,r._API_GoodList)().then((function(i){if(200===i.code){var a=i.data.list;a.length?e.goodsList=a.map((function(e){return"红色贺岁款(精装版)"==e.name?(0,n.default)((0,n.default)({},e),{},{residue:t}):e})):e.status="暂无商品"}else 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=s},"8f84":function(e,t,i){var a=i("efa5d");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=i("967d").default;n("0bbb9742",a,!0,{sourceMap:!1,shadowMode:!1})},c09f:function(e,t,i){"use strict";var a=i("8f84"),n=i.n(a);n.a},efa5d:function(e,t,i){var a=i("c86c");t=a(!1),t.push([e.i,'@charset "UTF-8";.app-item[data-v-3e332aec]{display:flex;align-items:center;justify-content:center;flex-direction:row;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;min-height:%?90?%;justify-content:space-between;padding:0 %?30?%;margin-bottom:%?2?%}.app-item.item-space[data-v-3e332aec]{margin-top:%?10?%}.app-item uni-input[data-v-3e332aec], .app-item uni-picker[data-v-3e332aec], .app-item uni-textarea[data-v-3e332aec]{height:100%;width:%?521?%;font-size:%?26?%;text-align:left;color:#999}.kingkong[data-v-3e332aec]{height:%?346?%;margin-top:%?10?%}.kingkong uni-navigator[data-v-3e332aec]{width:25%;height:50%;float:left;display:flex;align-items:center;flex-direction:column}.kingkong uni-navigator uni-image[data-v-3e332aec]{width:%?88?%;height:%?88?%;margin-top:%?30?%;border-radius:50%}.kingkong uni-navigator uni-text[data-v-3e332aec]{font-size:%?32?%;margin-top:%?12?%}.big-btn[data-v-3e332aec]{display:flex;align-items:center;justify-content:center;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-3e332aec]{color:#fff;background:#f76454}.small-btn[data-v-3e332aec]{display:flex;align-items:center;justify-content:center;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-3e332aec]{color:#999;border-color:#999}.login-btn[data-v-3e332aec]{flex:1;width:100%;height:100%;background:#fff}.login-btn uni-navigator[data-v-3e332aec]{display:flex;align-items:center;justify-content:center;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-3e332aec]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.icon-right[data-v-3e332aec]{margin-right:%?20?%}.border-right[data-v-3e332aec]{border-right:%?1?% solid #f2f2f2}.level-name[data-v-3e332aec]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:%?130?%;height:%?36?%;color:#fff;font-size:%?16?%!important;border-radius:%?18?%;background:#f76454}.level-name .cuIcon-crownfill[data-v-3e332aec]{margin-right:%?6?%}.position-center[data-v-3e332aec]{left:50%;top:50%;position:absolute;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.data-card[data-v-3e332aec]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:100%;height:%?336?%;position:relative;background:#f2f2f2}.data-card uni-image[data-v-3e332aec]{z-index:0;width:%?706?%;height:%?316?%}.data-card .data-card-text[data-v-3e332aec]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column}.data-card .data-card-text .text[data-v-3e332aec]{color:#fff;font-size:%?32?%}.data-card .data-card-text .num[data-v-3e332aec]{color:#fff;font-size:%?70?%;margin-top:%?60?%}.basecolor[data-v-3e332aec]{color:#f76454}.swiper-nav[data-v-3e332aec]{display:flex;align-items:center;justify-content:center;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-3e332aec]{display:flex;align-items:center;justify-content:center;flex-direction:row;flex:1;height:100%}.swiper-nav .item.active[data-v-3e332aec]{color:#f76454}.swiper-nav .moveBar[data-v-3e332aec]{display:flex;align-items:center;justify-content:center;flex-direction:row;bottom:0;height:%?6?%;position:absolute}.swiper-nav .moveBar > uni-text[data-v-3e332aec]{width:100%;height:100%;border-radius:%?3?%;background:#f76454}.swiper-area[data-v-3e332aec]{flex:1;width:100%}.swiper-area uni-swiper[data-v-3e332aec]{width:100%;height:100%}.article-header[data-v-3e332aec]{display:flex;align-items:center;justify-content:center;flex-direction:row;height:%?120?%;justify-content:space-between;border-bottom:%?1?% solid #f2f2f2}.article-header .head-pic[data-v-3e332aec]{width:%?80?%;height:%?80?%;border-radius:50%}.article-header .name[data-v-3e332aec]{display:flex;align-items:center;justify-content:center;flex-direction:row;flex:1;height:100%;margin-left:%?20?%;justify-content:flex-start}.article-header .name .identity[data-v-3e332aec]{display:flex;align-items:center;justify-content:center;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-3e332aec]{font-size:%?24?%;color:#999}.article-header .time.justnow[data-v-3e332aec]{color:#f76454}.article-footer[data-v-3e332aec]{display:flex;align-items:center;justify-content:center;flex-direction:row;height:%?90?%;border-top:%?1?% solid #f2f2f2}.article-footer .footer-item[data-v-3e332aec]{display:flex;align-items:center;justify-content:center;flex-direction:row;flex:1;height:%?40?%}.article-footer .footer-item.center[data-v-3e332aec]{border-left:%?1?% solid #ccc;border-right:%?1?% solid #ccc}.article-footer .footer-item .icon-right[data-v-3e332aec]{font-size:%?40?%}.article-footer .footer-item .icon-right.fill[data-v-3e332aec]{color:#f76454}\n/*主题色及按钮渐变背景*/\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/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.place-order[data-v-3e332aec]{height:100%;box-sizing:border-box;flex-direction:column;background:#f2f2f2}.place-order .content[data-v-3e332aec]{flex:1;height:100%;position:relative;box-sizing:border-box}.place-order .soapNav[data-v-3e332aec]{background-color:#fff;display:flex;align-items:center;padding:%?24?%;margin-bottom:%?30?%}.place-order .soapNav_flex[data-v-3e332aec]{height:%?150?%;display:flex;justify-content:space-between;flex-direction:column}.place-order .soapNav_flex .text1[data-v-3e332aec]{font-size:%?30?%;font-weight:700}.place-order .soapNav_flex .text2[data-v-3e332aec]{display:block;width:%?92?%;height:%?44?%;color:#333;line-height:%?44?%;text-align:center;background:#f5f5f5;border-radius:%?4?% %?4?% %?4?% %?4?%}.place-order .soapNav_flex .text3[data-v-3e332aec]{font-size:%?28?%;color:#fb231f}.place-order .soapNav_flex .text4[data-v-3e332aec]{font-size:%?44?%;font-weight:700;color:#fb231f}.place-order .content .cart[data-v-3e332aec]{height:%?98?%;display:flex;align-items:center;justify-content:center;flex-direction:row;color:#f76454;font-size:%?36?%;border-top:%?1?% solid silver;background:#fff;position:relative}.place-order .content .cart .sizeNum[data-v-3e332aec]{display:flex;align-items:center;justify-content:center;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-3e332aec]{text-align:center;margin-top:%?567?%}.place-order .content .item[data-v-3e332aec]{float:left;width:100%;padding:%?30?%;box-sizing:border-box;background:#fff;margin-bottom:%?20?%;display:flex;justify-content:space-between}.place-order .content .item .img[data-v-3e332aec]{height:%?240?%!important;width:%?300?%!important;margin-right:%?23?%}.place-order .content .item .info[data-v-3e332aec]{flex:1;width:100%;position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;border-radius:%?8?%;align-items:flex-start;justify-content:space-around}.place-order .content .item .info .top[data-v-3e332aec]{width:100%;color:#181818;font-size:%?28?%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.place-order .content .item .info .mid[data-v-3e332aec]{font-size:%?32?%;color:#f76454;font-weight:700}.place-order .content .item .info .bot[data-v-3e332aec]{font-size:%?28?%;color:#666}.place-order .content .item .info .shopCar[data-v-3e332aec]{right:0;bottom:%?13?%;width:%?60?%;height:%?60?%;color:#fff;display:flex;align-items:center;justify-content:center;flex-direction:row;font-size:%?42?%;position:absolute;border-radius:50%;background:#f76454}',""]),e.exports=t}}]);
|