1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-place-order-place-order"],{"146f":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";.app-item[data-v-0687be44]{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-0687be44]{margin-top:%?10?%}.app-item uni-input[data-v-0687be44], .app-item uni-picker[data-v-0687be44], .app-item uni-textarea[data-v-0687be44]{height:100%;width:%?521?%;font-size:%?26?%;text-align:left;color:#999}.kingkong[data-v-0687be44]{height:%?346?%;margin-top:%?10?%}.kingkong uni-navigator[data-v-0687be44]{width:25%;height:50%;float:left;display:flex;align-items:center;flex-direction:column}.kingkong uni-navigator uni-image[data-v-0687be44]{width:%?88?%;height:%?88?%;margin-top:%?30?%;border-radius:50%}.kingkong uni-navigator uni-text[data-v-0687be44]{font-size:%?32?%;margin-top:%?12?%}.big-btn[data-v-0687be44]{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-0687be44]{color:#fff;background:#f76454}.small-btn[data-v-0687be44]{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-0687be44]{color:#999;border-color:#999}.login-btn[data-v-0687be44]{flex:1;width:100%;height:100%;background:#fff}.login-btn uni-navigator[data-v-0687be44]{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-0687be44]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.icon-right[data-v-0687be44]{margin-right:%?20?%}.border-right[data-v-0687be44]{border-right:%?1?% solid #f2f2f2}.level-name[data-v-0687be44]{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-0687be44]{margin-right:%?6?%}.position-center[data-v-0687be44]{left:50%;top:50%;position:absolute;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.data-card[data-v-0687be44]{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-0687be44]{z-index:0;width:%?706?%;height:%?316?%}.data-card .data-card-text[data-v-0687be44]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column}.data-card .data-card-text .text[data-v-0687be44]{color:#fff;font-size:%?32?%}.data-card .data-card-text .num[data-v-0687be44]{color:#fff;font-size:%?70?%;margin-top:%?60?%}.basecolor[data-v-0687be44]{color:#f76454}.swiper-nav[data-v-0687be44]{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-0687be44]{display:flex;align-items:center;justify-content:center;flex-direction:row;flex:1;height:100%}.swiper-nav .item.active[data-v-0687be44]{color:#f76454}.swiper-nav .moveBar[data-v-0687be44]{display:flex;align-items:center;justify-content:center;flex-direction:row;bottom:0;height:%?6?%;position:absolute}.swiper-nav .moveBar > uni-text[data-v-0687be44]{width:100%;height:100%;border-radius:%?3?%;background:#f76454}.swiper-area[data-v-0687be44]{flex:1;width:100%}.swiper-area uni-swiper[data-v-0687be44]{width:100%;height:100%}.article-header[data-v-0687be44]{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-0687be44]{width:%?80?%;height:%?80?%;border-radius:50%}.article-header .name[data-v-0687be44]{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-0687be44]{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-0687be44]{font-size:%?24?%;color:#999}.article-header .time.justnow[data-v-0687be44]{color:#f76454}.article-footer[data-v-0687be44]{display:flex;align-items:center;justify-content:center;flex-direction:row;height:%?90?%;border-top:%?1?% solid #f2f2f2}.article-footer .footer-item[data-v-0687be44]{display:flex;align-items:center;justify-content:center;flex-direction:row;flex:1;height:%?40?%}.article-footer .footer-item.center[data-v-0687be44]{border-left:%?1?% solid #ccc;border-right:%?1?% solid #ccc}.article-footer .footer-item .icon-right[data-v-0687be44]{font-size:%?40?%}.article-footer .footer-item .icon-right.fill[data-v-0687be44]{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-0687be44]{height:100%;box-sizing:border-box;flex-direction:column;background:#f2f2f2}.place-order .content[data-v-0687be44]{flex:1;height:100%;position:relative;box-sizing:border-box}.place-order .soapNav[data-v-0687be44]{background-color:#fff;display:flex;align-items:center;padding:%?24?%;margin-bottom:%?30?%}.place-order .soapNav_flex[data-v-0687be44]{height:%?150?%;display:flex;justify-content:space-between;flex-direction:column}.place-order .soapNav_flex .text1[data-v-0687be44]{font-size:%?30?%;font-weight:700}.place-order .soapNav_flex .text2[data-v-0687be44]{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-0687be44]{font-size:%?28?%;color:#fb231f}.place-order .soapNav_flex .text4[data-v-0687be44]{font-size:%?44?%;font-weight:700;color:#fb231f}.place-order .content .cart[data-v-0687be44]{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-0687be44]{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-0687be44]{text-align:center;margin-top:%?567?%}.place-order .content .item[data-v-0687be44]{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-0687be44]{height:%?240?%!important;width:%?300?%!important;margin-right:%?23?%}.place-order .content .item .info[data-v-0687be44]{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-0687be44]{width:100%;color:#181818;font-size:%?28?%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.place-order .content .item .info .mid[data-v-0687be44]{font-size:%?32?%;color:#f76454;font-weight:700}.place-order .content .item .info .bot[data-v-0687be44]{font-size:%?28?%;color:#666}.place-order .content .item .info .shopCar[data-v-0687be44]{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}',""]),t.exports=e},"27c5":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e._API_GoodList=e.GetLimitGood=e.GetGoodStatus=void 0;var a=n(i("ef1d"));e._API_GoodList=function(t){return a.default.get("/good_show",t)};e.GetGoodStatus=function(t){return a.default.get("/goods/GetGoodStatus",t)};e.GetLimitGood=function(t){return a.default.get("/good/LimitGood",t)}},"3aa7":function(t,e,i){var n=i("146f");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("98d67b30",n,!0,{sourceMap:!1,shadowMode:!1})},5702:function(t,e,i){"use strict";i.r(e);var n=i("ce9e"),a=i("d53b");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("8e14");var r=i("f0c5"),s=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"0687be44",null,!1,n["a"],void 0);e["default"]=s.exports},"8e14":function(t,e,i){"use strict";var n=i("3aa7"),a=i.n(n);a.a},a87e:function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("5530"));i("d3b7"),i("159b"),i("cb29"),i("7db0"),i("d81d"),i("e9c4"),i("c740");var o=i("7994"),r=i("27c5"),s=n(i("9a41")),d={components:{AddCart:s.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 t=this,e=(0,o.deepClone)(this.goodsList);return e.forEach((function(e){e.cart=Array(e.size.length).fill(0);var i=t.$store.state.cart.list.find((function(t){return t.attr_id===e.attr_id}));i&&Object.assign(e,i)})),e},cartNum:function(){return this.$store.getters["cart/shopcarNum"]}},mounted:function(){var t=this;if(this.$offset(".content").then((function(e){return t.scrollviewHeight=e.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(t){uni.navigateTo({url:"../soap/index?type="+t})},request:function(){var t=this;uni.showLoading({mask:!0});var e=[0,0,0,0,0,0,0,0,0,0,0,0,0,0];(0,r.GetLimitGood)().then((function(t){t.data.length&&(e=t.data.map((function(t){return t.limit_num-t.num})))})),(0,r._API_GoodList)().then((function(i){if(200===i.code){var n=i.data.list;n.length?t.goodsList=n.map((function(t){return"红色贺岁款(精装版)"==t.name?(0,a.default)((0,a.default)({},t),{},{residue:e}):t})):t.status="暂无商品"}else uni.toast("网络好像出了点问题,下拉刷新试试");uni.stopPullDownRefresh()})).catch((function(){return setTimeout((function(){uni.toast("网络好像出了点问题,下拉刷新试试"),uni.stopPullDownRefresh()}),123)}))},tap:function(t){uni.setStorageSync("ggg",JSON.stringify(this.goodsList[t])),uni.navigateTo({url:"../good-detail1/good-detail1"})},tapShopCar:function(t){var e=this,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0];(0,r.GetLimitGood)().then((function(n){n.data.length&&(i=n.data.map((function(t){return t.limit_num-t.num})),"红色贺岁款(精装版)"==t.name&&(t.residue=i));var a=e.$store.state.cart.list,r=a.findIndex((function(t){return"红色贺岁款(精装版)"==t.name}));-1!=r&&e.$store.commit("cart/GETNEWGOODSNUM",i),e.$refs.addCart.show((0,o.deepClone)(t))}))}}};e.default=d},ce9e:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;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:t.scrollviewHeight+"px"},attrs:{"scroll-y":!0}},t._l(t.list,(function(e,n){return i("v-uni-view",{key:n,staticClass:"item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tap(n)}}},[i("v-uni-image",{staticClass:"img",attrs:{src:e.main_img,mode:"aspectFill"}}),i("v-uni-view",{staticClass:"info"},[i("v-uni-view",{staticClass:"top ellipsis"},[t._v(t._s(e.name))]),i("v-uni-view",{staticClass:"mid"},[t._v("¥"+t._s(e.money)+"/"+t._s(e.unit))]),i("v-uni-view",{staticClass:"bot"},[t._v(t._s(e.size.length)+"个尺码可选")]),i("v-uni-view",{staticClass:"shopCar",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.tapShopCar(e)}}},[e.cart.reduce((function(t,e){return t+e}),0)?i("v-uni-view",{staticClass:"sizeNum",staticStyle:{"font-size":"20rpx"}},[t._v(t._s(e.cart.reduce((function(t,e){return t+e}),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"}},[t._v("购物车"),t.cartNum?i("v-uni-text",{staticClass:"sizeNum"},[t._v(t._s(t.cartNum))]):t._e()],1)],1)],1)},a=[]},d53b:function(t,e,i){"use strict";i.r(e);var n=i("a87e"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a}}]);
|