You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
hezhiying/unpackage/dist/build/h5/static/js/pages-qianggou-productDetai...

1 lines
16 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-qianggou-productDetails"],{"0402":function(t,e,r){var n=r("23e7"),i=r("da84"),o=r("2cf4").set;n({global:!0,bind:!0,enumerable:!0,forced:i.setImmediate!==o},{setImmediate:o})},"130f":function(t,e,r){r("e20c"),r("0402")},"27b6":function(t,e,r){"use strict";r.r(e);var n=r("7696"),i=r.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},"5af7":function(t,e,r){"use strict";r("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.userRegister=e.updateUserInfo=e.smsSend=e.smsCheck=e.privacyPolicy=e.payUpGoods=e.orderPay=e.orderDetail=e.logout=e.loginApi=e.getgoodsDetail=e.getWarehouseList=e.getUserProfitStatistic=e.getUserProfitList=e.getUserInfo=e.getUserFansStatistic=e.getUserFansOrderStatistic=e.getUserFansOrderList=e.getUserFansList=e.getUserCommissionStatistic=e.getUserCommissionList=e.getUserCommissionApi=e.getSellerOrderList=e.getGoodsList=e.getBuyerOrderList=e.getArea=e.getAddrList=e.getAddrDesc=e.forgetPsw=e.editAddr=e.deleteAddr=e.createOrder=e.couponList=e.changePassword=e.cancelOrder=e.bindInvitor=e.addAddr=void 0;var n=uni.$u.http;e.smsSend=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n.post("/api/sms/send",t,e)};e.smsCheck=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n.post("/api/sms/check",t,e)};e.userRegister=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n.post("/api/user/register",t,e)};e.loginApi=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n.post("/api/user/login",t,e)};e.privacyPolicy=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n.post("/addons/shopro/data.richtext/index",t,e)};e.forgetPsw=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n.post("/api/user/resetpwd",t,e)};e.getUserInfo=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return n.post("/api/user/getUserinfo",t,e)};e.getAddrList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return n.post("/addons/shopro/user.address/index",t,e)};e.getArea=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return n.post("/addons/shopro/data.area/index",t,e)};e.addAddr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return n.post("/addons/shopro/user.address/add",t,e)};e.editAddr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return n.post("/addons/shopro/user.address/edit",t,e)};e.deleteAddr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return n.post("/addons/shopro/user.address/delete",t,e)};e.getAddrDesc=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return n.post("/addons/shopro/user.address/detail",t,e)};e.changePassword=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return n.post("/addons/shopro/user.user/changePassword",t,e)};e.logout=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return n.post("/api/user/logout",t,e)};e.updateUserInfo=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return n.post("/api/user/updateUserInfo",t,e)};e.couponList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return n.post("/addons/shopro/user.coupon/index",t,e)};e.getUserCommissionStatistic=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return n.post("/api/user/getUserCommissionStatistic",t,e)};e.getUserCommissionApi=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return n.post("/api/user/getUserCommission",t,e)};e.getUserCommissionList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return n.post("/api/user/getUserCommissionList",t,e)};e.getUserFansStatistic=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return n.post("/api/user/getUserFansStatistic",t,e)};e.getUserFansList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return n.post("/api/user/getUserFansList",t,e)};e.getUserFansOrderStatistic=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return n.post("/api/user/getUserFansOrderStatistic",t,e)};e.getUserFansOrderList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return n.post("/api/user/getUserFansOrderList",t,e)};e.getUserProfitStatistic=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return n.post("/api/user/getUserProfitStatistic",t,e)};e.getUserProfitList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return n.post("/api/user/getUserProfitList",t,e)};e.getWarehouseList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return n.post("/api/order/getWarehouseList",t,e)};e.getGoodsList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return n.post("/api/order/getGoodsList",t,e)};e.getgoodsDetail=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return n.get("/api/order/goodsDetail",{params:t},e)};e.getBuyerOrderList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return n.get("/api/order/getBuyerOrderList",{params:t},e)};e.getSellerOrderList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return n.get("/api/order/getSellerOrderList",{params:t},e)};e.createOrder=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return n.post("/api/order/createOrder",t,e)};e.cancelOrder=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return n.post("/api/order/cancelOrder",t,e)};e.orderDetail=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return n.get("/api/order/orderDetail",{params:t},e)};e.orderPay=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return n.post("/api/order/orderPay",t,e)};e.bindInvitor=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return n.post("/api/user/bindInvitor",t,e)};e.payUpGoods=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return n.post("/api/order/payUpGoods",t,e)}},"5f53":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return o})),r.d(e,"a",(function(){return n}));var n={uParse:r("719d").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("v-uni-view",{staticClass:"page",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.isMore=!1}}},[r("v-uni-view",{staticClass:"banner-title"},[r("v-uni-view",{staticClass:"banner"},[r("v-uni-swiper",{staticClass:"screen-swiper round-dot",attrs:{"indicator-dots":"true",circular:"true",autoplay:"true",interval:"5000",duration:"500"}},t._l(t.swiperList,(function(t,e){return r("v-uni-swiper-item",{key:e},[r("v-uni-image",{attrs:{src:t.url,mode:"aspectFill"}})],1)})),1)],1),r("v-uni-view",{staticClass:"price-info"},[r("v-uni-view",{staticClass:"price"},[r("v-uni-text",{staticClass:"min"},[t._v("¥")]),r("v-uni-text",{staticClass:"max"},[t._v(t._s(t.detailsObj.price))])],1),r("v-uni-view",{staticClass:"person"},[t._v("藏品归属人:"+t._s(t.detailsObj.owner?t.detailsObj.owner.nickname:"-"))])],1)],1),r("v-uni-view",{staticClass:"goods-title"},[r("v-uni-text",[t._v(t._s(t.detailsObj.name))])],1),r("v-uni-view",{ref:"products",staticClass:"products-introduction",staticStyle:{"text-align":"center"}},[r("v-uni-view",{staticClass:"title"},[r("v-uni-text",[t._v("图文详情")])],1),r("v-uni-view",{staticClass:"parseContent"},[r("u-parse",{attrs:{content:t.detailsObj.content}})],1)],1),t.isDeadLine?r("v-uni-view",{class:t.ends?"page-footer isend":"page-footer",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),!t.ends&&t.buyHandle()}}},[t._v("立即抢购")]):t._e(),t.isDeadLine?t._e():r("v-uni-view",{staticClass:"page-footer"},[t._v("还剩"+t._s(t.finalSecondNum)+"抢购")])],1)},o=[]},7696:function(t,e,r){"use strict";r("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,r("130f"),r("e25e"),r("14d9");var n=r("5af7"),i={data:function(){return{swiperList:[],detailsObj:{content:"",createtime:null,goods_form:null,goods_type:null,id:null,image:null,name:null,off_time:null,on_time:null,owner_id:null,price:null,status:null,updatetime:null,warehouse_id:null},secondNum:"",isDeadLine:!1,finalSecondNum:"",timer:null,ends:!1}},onLoad:function(t){this.getDetailsHandle(t.id)},beforeDestroy:function(){clearImmediate(this.timer),this.timer=null},watch:{secondNum:function(t){t<=0?(clearImmediate(this.timer),this.timer=null,this.isDeadLine=!0):this.isDeadLine=!1}},methods:{dateDifference:function(t){var e=Date.parse(new Date);return e/=1e3,t=parseInt(t/1e3),t-e},formatSeconds:function(t){var e=parseInt(t),r=0,n=0;e>60&&(r=parseInt(e/60),e=parseInt(e%60),r>60&&(n=parseInt(r/60),r=parseInt(r%60)));var i=parseInt(e)+"秒";return i=r>0?parseInt(r)+"分"+i:"00时00分"+i,i=n>0?parseInt(n)+"时"+i:"00时"+i,i},timestampToTime:function(t){var e=new Date,r=e.getFullYear()+"/",n=(e.getMonth()+1<10?"0"+(e.getMonth()+1):e.getMonth()+1)+"/",i=(e.getDate()<10?"0"+e.getDate():e.getDate())+" ",o=(e.getHours()<10?"0"+e.getHours():e.getHours())+":",a=(e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes())+":",s=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds();return t?r+n+i+o+a+s:r+n+i},getDetailsHandle:function(t){var e=this;(0,n.getgoodsDetail)({id:t,custom:{auth:!0}}).then((function(t){e.swiperList.push({url:t.data.image});var r=t.data.warehouse.start,n=t.data.warehouse.end,i=e.timestampToTime()+r+":00",o=e.timestampToTime()+n+":00";console.log(i,o);var a=e.dateDifference(new Date(i).getTime()),s=e.dateDifference(new Date(o).getTime());console.log("endFinishTime=============》"+s),s>=0?(e.ends=!1,console.log(!1)):(console.log(!0),e.ends=!0),a>0?(e.timer=setInterval((function(){var t=a--;e.secondNum=t,e.finalSecondNum=e.formatSeconds(e.secondNum)}),1e3),e.isDeadLine=!1):(clearImmediate(e.timer),e.timer=null,e.isDeadLine=!0),e.detailsObj=Object.assign({},e.detailsObj,t.data)}))},buyHandle:function(){uni.setStorageSync("qgPro",this.detailsObj),uni.navigateTo({url:"/pages/ConfirmOrder/ConfirmOrder"})}}};e.default=i},"7ce2":function(t,e,r){"use strict";var n=r("a15d"),i=r.n(n);i.a},"8baa":function(t,e,r){var n=r("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\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/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.page[data-v-f28f3692]{width:100%;background:#f6f6f6;overflow-x:hidden;padding-bottom:%?120?%}\r\n/* banner 标题 */.banner-title[data-v-f28f3692]{background-color:#fff;padding-bottom:%?20?%}\r\n/* banner */.banner[data-v-f28f3692]{width:100%;height:%?750?%}.banner .screen-swiper[data-v-f28f3692]{width:100%;height:100%}\r\n/* 价格 */.price-info[data-v-f28f3692]{display:flex;align-items:center;justify-content:space-between;padding:0 4%;margin-top:%?20?%}.price-info .price[data-v-f28f3692]{display:flex;align-items:center}.price-info .price .min[data-v-f28f3692]{color:#236030;font-size:%?28?%;font-weight:700}.price-info .price .max[data-v-f28f3692]{color:#236030;font-size:%?48?%;font-weight:700}.price-info .person[data-v-f28f3692]{font-size:%?24?%;color:#aaa}\r\n/* 标题 */.goods-title[data-v-f28f3692]{padding:%?20?% 4%;background-color:#fff;margin-top:%?20?%}.goods-title uni-text[data-v-f28f3692]{font-size:%?28?%;color:#212121}\r\n/* 商品介绍 */.products-introduction[data-v-f28f3692]{margin-top:%?20?%}.products-introduction .title[data-v-f28f3692]{display:flex;justify-content:center;align-items:center;width:100%;height:%?80?%;background:#fff;margin-bottom:%?20?%}.products-introduction .title uni-text[data-v-f28f3692]{font-size:%?28?%;color:#212121;margin:0 %?20?%}.products-introduction .title[data-v-f28f3692]:before{content:"";width:%?100?%;height:%?2?%;background-color:silver}.products-introduction .title[data-v-f28f3692]:after{content:"";width:%?100?%;height:%?2?%;background-color:silver}.products-introduction .parseContent[data-v-f28f3692]{width:100%;background-color:#fff;padding:%?50?% %?20?%}\r\n/* 底部 */.page-footer[data-v-f28f3692]{position:fixed;left:0;bottom:%?10?%;display:flex;align-items:center;justify-content:center;width:calc(100% - %?48?%);height:%?80?%;background-color:#9f751f;margin:0 %?24?%;border-radius:%?10?%;color:#fff}.page-footer .footer-fn[data-v-f28f3692]{display:flex;align-items:center;width:40%;height:100%}.page-footer .footer-fn .list[data-v-f28f3692]{display:flex;flex-direction:column;justify-content:center;align-items:center;width:50%;height:100%}.page-footer .footer-fn .list uni-text[data-v-f28f3692]{font-size:%?24?%;color:#555}.page-footer .footer-fn .list .iconfont[data-v-f28f3692]{font-size:%?42?%;color:#212121}.page-footer .footer-buy[data-v-f28f3692]{display:flex;align-items:center;justify-content:space-between;width:60%;height:100%}.page-footer .footer-buy .cart-add[data-v-f28f3692]{display:flex;align-items:center;justify-content:center;width:48%;height:%?70?%;background:#4d9a5e;border-radius:%?70?%}.page-footer .footer-buy .cart-add uni-text[data-v-f28f3692]{font-size:%?26?%;color:#fff}.page-footer .footer-buy .buy-at[data-v-f28f3692]{display:flex;align-items:center;justify-content:center;width:48%;height:%?70?%;background:#4d9a5e;border-radius:%?70?%}.page-footer .footer-buy .buy-at uni-text[data-v-f28f3692]{font-size:%?26?%;color:#fff}.isend[data-v-f28f3692]{background:#eaeaea!important;color:grey}',""]),t.exports=e},"9b77":function(t,e,r){"use strict";r.r(e);var n=r("5f53"),i=r("27b6");for(var o in i)["default"].indexOf(o)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(o);r("7ce2");var a=r("f0c5"),s=Object(a["a"])(i["default"],n["b"],n["c"],!1,null,"f28f3692",null,!1,n["a"],void 0);e["default"]=s.exports},a15d:function(t,e,r){var n=r("8baa");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=r("4f06").default;i("5bdf471a",n,!0,{sourceMap:!1,shadowMode:!1})},e20c:function(t,e,r){var n=r("23e7"),i=r("da84"),o=r("2cf4").clear;n({global:!0,bind:!0,enumerable:!0,forced:i.clearImmediate!==o},{clearImmediate:o})}}]);