| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-product-wholesaleDetail"],{"0081":function(t,e,a){"use strict";a.r(e);var i=a("01f3"),n=a("27a9");for(var r in n)"default"!==r&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("2c09");var o,d=a("f0c5"),u=Object(d["a"])(n["default"],i["b"],i["c"],!1,null,"2e7e1c8c",null,!1,i["a"],o);e["default"]=u.exports},"01f3":function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"carousel"},[a("v-uni-swiper",{attrs:{"indicator-dots":!0,circular:!0,duration:"400"}},t._l(t.imgList,(function(t,e){return a("v-uni-swiper-item",{key:e,staticClass:"swiper-item"},[a("v-uni-view",{staticClass:"image-wrapper"},[a("v-uni-image",{staticClass:"loaded",attrs:{src:t,mode:"scaleToFill"}})],1)],1)})),1)],1)},r=[]},"0438":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={props:{imgList:{type:Array,default:function(){return[]}}},data:function(){return{}}};e.default=i},"0b4b":function(t,e,a){"use strict";a.r(e);var i=a("8462"),n=a("e970");for(var r in n)"default"!==r&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("e1e1");var o,d=a("f0c5"),u=Object(d["a"])(n["default"],i["b"],i["c"],!1,null,"1e9bd6f8",null,!1,i["a"],o);e["default"]=u.exports},"27a9":function(t,e,a){"use strict";a.r(e);var i=a("0438"),n=a.n(i);for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},"27f8":function(t,e,a){var i=a("6b10");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("32311c1e",i,!0,{sourceMap:!1,shadowMode:!1})},"27f9":function(t,e,a){var i=a("6273");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("bfca5a66",i,!0,{sourceMap:!1,shadowMode:!1})},"2c09":function(t,e,a){"use strict";var i=a("ef97"),n=a.n(i);n.a},"434c":function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getWholeTimeArea=r,e.getWholeList=o,e.getWholeDetai=d,e.reservePackage=u,e.getMyPackage=s,e.upEvaluation=c,e.getMySellout=f,e.getNewList=l,e.packageAudit=p,e.getWholeInfo=g,e.delivery=h;var n=i(a("41e2"));function r(t){return(0,n.default)({url:"/api/whole/index",method:"get",data:t})}function o(t,e){return(0,n.default)({url:"/api/whole/list/"+e,method:"get",data:t})}function d(t,e,a,i,r){return(0,n.default)({url:"/api/whole/detail/"+e+"/"+a+"/"+i+"/"+r,method:"get",data:t})}function u(t){return(0,n.default)({url:"/api/package/reserve",method:"post",data:t})}function s(t){return(0,n.default)({url:"/api/package/mylist",method:"post",data:t})}function c(t){return(0,n.default)({url:"/api/package/evaluation",method:"post",data:t})}function f(t){return(0,n.default)({url:"/api/package/order",method:"post",data:t})}function l(t){return(0,n.default)({url:"/api/whole/news",method:"get",data:t})}function p(t){return(0,n.default)({url:"/api/package/audit",method:"post",data:t})}function g(t,e){return(0,n.default)({url:"/api/package/info/"+e,method:"get",data:t})}function h(t,e){return(0,n.default)({url:"/api/package/take_delivery/"+e,method:"get",data:t})}},4805:function(t,e,a){"use strict";a.r(e);var i=a("75ef"),n=a.n(i);for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},"58f5":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/.carousel[data-v-2e7e1c8c]{height:%?700?%;position:relative}.carousel uni-swiper[data-v-2e7e1c8c]{height:100%}.carousel .image-wrapper[data-v-2e7e1c8c]{width:100%;height:100%}.carousel .swiper-item[data-v-2e7e1c8c]{display:flex;justify-content:center;align-content:center;height:%?700?%;overflow:hidden}.carousel .swiper-item uni-image[data-v-2e7e1c8c]{width:100%;height:100%}',""]),t.exports=e},6273:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/\n/* 详情 */.detail-desc[data-v-04acf7a8]{margin-top:%?14?%;background:#fff}.detail-desc[data-v-04acf7a8] img{max-width:100%!important;display:inline!important}.detail-desc[data-v-04acf7a8] div{max-width:100%!important}.detail-desc .d-header[data-v-04acf7a8]{display:flex;justify-content:center;align-items:center;height:%?80?%;font-size:%?30?%;color:#303133;position:relative}.detail-desc .d-header uni-text[data-v-04acf7a8]{padding:0 %?20?%;background:#fff;position:relative;z-index:1}.detail-desc .d-header[data-v-04acf7a8]:after{position:absolute;left:50%;top:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:%?300?%;height:0;content:"";border-bottom:1px solid #ccc}\n/* 商品详情中限制图片大小 */[data-v-04acf7a8] .rich-img{width:100%!important;height:auto}',""]),t.exports=e},"6b10":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/.good-price[data-v-1e9bd6f8]{padding-left:%?20?%;padding-top:%?20?%;justify-content:flex-start;background-color:#fff}.good-price .new-price[data-v-1e9bd6f8]{font-size:%?50?%;font-family:PingFang SC;font-weight:700;color:#ff4c4c}.good-price .old-price[data-v-1e9bd6f8]{padding-left:%?8?%;font-size:%?33?%;font-family:PingFang SC;font-weight:700;text-decoration:line-through;color:#999}.good-tit[data-v-1e9bd6f8]{padding:%?20?%;background-color:#fff}.btm-btn[data-v-1e9bd6f8]{position:fixed;bottom:%?35?%;left:0;right:0;margin:auto;width:%?699?%;height:%?90?%;line-height:%?90?%;text-align:center;background:linear-gradient(90deg,#fe6f61,#ff4343);border-radius:%?45?%;font-size:%?36?%;font-family:PingFang SC;font-weight:500;color:#fff}\n/* 商品详情中限制图片大小 */[data-v-1e9bd6f8] .rich-img{width:100%!important;height:auto}',""]),t.exports=e},"75ef":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={props:{description:{default:""}},data:function(){return{}}};e.default=i},"7ecc":function(t,e,a){"use strict";var i=a("4ea4");a("a4d3"),a("e01a"),a("ac1f"),a("5319"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("0081")),r=i(a("cdaa")),o=a("950c"),d=a("434c"),u={components:{topSwiper:n.default,contentText:r.default},data:function(){return{imgList:[],goodItem:{},good_id:"",time_id:"",status:1,is_new:"non",description:"",loading:!1,userInfo:{}}},onLoad:function(t){t.id&&(this.good_id=t.id),t.time&&(this.time_id=t.time),t.status&&(this.status=t.status),this.getUserInfo(),this.getWholeDetai()},onShow:function(){this.getUserInfo()},methods:{getUserInfo:function(){var t=this;(0,o.getUserInfo)().then((function(e){console.log(e),t.userInfo=e.data,t.is_new=0==e.data.is_whole?"isn":"non"}))},getWholeDetai:function(){var t=this;t.is_new?(0,d.getWholeDetai)({},t.good_id,t.time_id,t.status,1).then((function(e){var a=e.data;t.goodItem=a.storeInfo,t.imgList=a.storeInfo.images,t.description=a.storeInfo.description.replace(/\<img/gi,'<img class="rich-img"')})):(0,d.getWholeInfo)({},t.good_id).then((function(e){var a=e.data;t.goodItem=a.storeInfo,t.imgList=a.storeInfo.images,t.description=a.storeInfo.description.replace(/\<img/gi,'<img class="rich-img"')}))},reservePackage:function(){var t=this;if("non"!=t.is_new){if(!t.userInfo.wx_qr)return this.$api.msg("您未完善信息,请完善信息后购买!"),void setTimeout((function(){uni.navigateTo({url:"/pages/set/userinfo"})}),1500);var e={whole_id:t.good_id,time_id:t.time_id,price:t.goodItem.price,to_uid:"isn"==t.is_new?0:"",first_price:"isn"==t.is_new?0:"",last_id:"isn"==t.is_new?0:""};t.loading=!0,(0,d.reservePackage)(e).then((function(t){uni.showToast({title:"预约成功",duration:2e3}),setTimeout((function(){uni.navigateTo({url:"/pages/user/myWholesale"})}),800)})).catch((function(e){t.loading=!1,console.log(e)}))}else this.$api.msg("您已不是新人,无法购买新人专属商品")}}};e.default=u},8462:function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"content"},[a("top-swiper",{attrs:{imgList:t.imgList}}),a("v-uni-view",{staticClass:"good-price flex"},[a("v-uni-view",{staticClass:"new-price"},[t._v("¥"+t._s(t.goodItem.price))]),1*t.goodItem.price<1*t.goodItem.ot_price?a("v-uni-view",{staticClass:"old-price"},[t._v("¥"+t._s(t.goodItem.ot_price))]):t._e()],1),a("v-uni-view",{staticClass:"good-tit"},[t._v(t._s(t.goodItem.title))]),a("content-text",{attrs:{description:t.description}}),a("v-uni-view",{staticClass:"btn-ts",staticStyle:{height:"130rpx","background-color":"#fff"}}),a("v-uni-view",{staticClass:"btm-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),!t.loading&&t.reservePackage()}}},[t._v("立即预约")])],1)},r=[]},"950c":function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.orderData=r,e.getUserInfo=o,e.spreadBanner=d,e.spread=u,e.getAddressList=s,e.addressEdit=c,e.addressDel=f,e.setAddressDefault=l,e.getCartList=p,e.getCartNum=g,e.cartDel=h,e.getcollectList=v,e.delcollect=m,e.edit=w,e.becomeVip=b,e.getVip=_,e.editStore=y,e.myStore=x,e.transfer=k,e.nickname=I;var n=i(a("41e2"));function r(t){return(0,n.default)({url:"/api/order/data",method:"get",data:t})}function o(t){return(0,n.default)({url:"/api/userinfo",method:"get",data:t})}function d(t){return(0,n.default)({url:"/api/spread/banner",method:"get",data:t})}function u(t){return(0,n.default)({url:"/api/spread/people",method:"POST",data:t})}function s(t){return(0,n.default)({url:"/api/address/list",method:"get",data:t})}function c(t){return(0,n.default)({url:"/api/address/edit",method:"post",data:t})}function f(t){return(0,n.default)({url:"/api/address/del",method:"post",data:t})}function l(t){return(0,n.default)({url:"/api/address/default/set",method:"post",data:t})}function p(t){return(0,n.default)({url:"/api/cart/list",method:"get",data:t})}function g(t){return(0,n.default)({url:"/api/cart/num",method:"post",data:t})}function h(t){return(0,n.default)({url:"/api/cart/del",method:"post",data:t})}function v(t){return(0,n.default)({url:"/api/collect/user",method:"get",data:t})}function m(t){return(0,n.default)({url:"/api/collect/del",method:"post",data:t})}function w(t){return(0,n.default)({url:"/api/user/edit",method:"post",data:t})}function b(t){return(0,n.default)({url:"/api/level/recharge",method:"post",data:t})}function _(t){return(0,n.default)({url:"/api/level/lst",method:"get",data:t})}function y(t){return(0,n.default)({url:"/api/store_edit",method:"post",data:t})}function x(t){return(0,n.default)({url:"/api/mystore",method:"get",data:t})}function k(t){return(0,n.default)({url:"/api/transfer",method:"post",data:t})}function I(t){return(0,n.default)({url:"/api/nickname",method:"get",data:t})}},"9abd":function(t,e,a){"use strict";var i=a("27f9"),n=a.n(i);n.a},cdaa:function(t,e,a){"use strict";a.r(e);var i=a("eb85"),n=a("4805");for(var r in n)"default"!==r&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("9abd");var o,d=a("f0c5"),u=Object(d["a"])(n["default"],i["b"],i["c"],!1,null,"04acf7a8",null,!1,i["a"],o);e["default"]=u.exports},e1e1:function(t,e,a){"use strict";var i=a("27f8"),n=a.n(i);n.a},e970:function(t,e,a){"use strict";a.r(e);var i=a("7ecc"),n=a.n(i);for(var r in i)"default"!==r&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},eb85:function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"detail-desc"},[a("v-uni-view",{staticClass:"d-header"},[a("v-uni-text",[t._v("图文详情")])],1),a("v-uni-rich-text",{staticClass:"detail-centent",attrs:{nodes:t.description}})],1)},r=[]},ef97:function(t,e,a){var i=a("58f5");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("5a05a68b",i,!0,{sourceMap:!1,shadowMode:!1})}}]);
|