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.
1 lines
17 KiB
1 lines
17 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-qianggou-productDetails"],{"0402":function(t,e,n){var r=n("23e7"),i=n("da84"),o=n("2cf4").set;r({global:!0,bind:!0,enumerable:!0,forced:i.setImmediate!==o},{setImmediate:o})},"05dd":function(t,e,n){"use strict";n.r(e);var r=n("8e16"),i=n.n(r);for(var o in r)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},"130f":function(t,e,n){n("e20c"),n("0402")},"424c":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var r={uParse:n("2172").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"page",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.isMore=!1}}},[n("v-uni-view",{staticClass:"banner-title"},[n("v-uni-view",{staticClass:"banner"},[n("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 n("v-uni-swiper-item",{key:e},[n("v-uni-image",{attrs:{src:t.url,mode:"aspectFill"}})],1)})),1)],1),n("v-uni-view",{staticClass:"price-info"},[n("v-uni-view",{staticClass:"price"},[n("v-uni-text",{staticClass:"min"},[t._v("¥")]),n("v-uni-text",{staticClass:"max"},[t._v(t._s(t.detailsObj.price))])],1),n("v-uni-view",{staticClass:"person"},[t._v("藏品归属人:"+t._s(t.detailsObj.owner?t.detailsObj.owner.nickname:"-"))])],1)],1),n("v-uni-view",{staticClass:"goods-title"},[n("v-uni-text",[t._v(t._s(t.detailsObj.name))])],1),n("v-uni-view",{ref:"products",staticClass:"products-introduction",staticStyle:{"text-align":"center"}},[n("v-uni-view",{staticClass:"title"},[n("v-uni-text",[t._v("图文详情")])],1),n("v-uni-view",{staticClass:"parseContent"},[n("u-parse",{attrs:{content:t.detailsObj.content}})],1)],1),t.isDeadLine?n("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():n("v-uni-view",{staticClass:"page-footer"},[t._v("还剩"+t._s(t.finalSecondNum)+"抢购")])],1)},o=[]},4838:function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.withdraw=e.userRegister=e.updateUserInfo=e.submitPingzheng=e.smsSend=e.smsCheck=e.recharge=e.privacyPolicy=e.payUpGoods=e.orderPay=e.orderDetail=e.logout=e.loginApi=e.incomeDetail=e.getgoodsDetail=e.getWithdrawList=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.confirmSign=e.confirmPay=e.changePassword=e.cancelOrder=e.bindInvitor=e.addAddr=void 0;var r=uni.$u.http;e.smsSend=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.post("/api/sms/send",t,e)};e.smsCheck=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.post("/api/sms/check",t,e)};e.userRegister=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.post("/api/user/register",t,e)};e.loginApi=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.post("/api/user/login",t,e)};e.privacyPolicy=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.post("/addons/shopro/data.richtext/index",t,e)};e.forgetPsw=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.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 r.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 r.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 r.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 r.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 r.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 r.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 r.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 r.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 r.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 r.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 r.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 r.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 r.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 r.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 r.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 r.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 r.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 r.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 r.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 r.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 r.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 r.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 r.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 r.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 r.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 r.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 r.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 r.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 r.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 r.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 r.post("/api/order/payUpGoods",t,e)};e.incomeDetail=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return r.get("/api/user/getUserIncomeAndExpandList",{params:t},e)};e.submitPingzheng=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return r.post("/api/user/submitPay",t,e)};e.confirmPay=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return r.post("/api/user/confirmPay",t,e)};e.confirmSign=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return r.post("/api/user/updateUserInfo",t,e)};e.recharge=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return r.post("/api/user/recharge",t,e)};e.withdraw=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return r.post("/api/user/withdraw",t,e)};e.getWithdrawList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return r.post("/api/user/withdrawList",t,e)}},"7c3d":function(t,e,n){var r=n("24fb");e=r(!1),e.push([t.i,'@charset "UTF-8";\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/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.page[data-v-69d2b64f]{width:100%;background:#f6f6f6;overflow-x:hidden;padding-bottom:%?120?%}\n/* banner 标题 */.banner-title[data-v-69d2b64f]{background-color:#fff;padding-bottom:%?20?%}\n/* banner */.banner[data-v-69d2b64f]{width:100%;height:%?750?%}.banner .screen-swiper[data-v-69d2b64f]{width:100%;height:100%}\n/* 价格 */.price-info[data-v-69d2b64f]{display:flex;align-items:center;justify-content:space-between;padding:0 4%;margin-top:%?20?%}.price-info .price[data-v-69d2b64f]{display:flex;align-items:center}.price-info .price .min[data-v-69d2b64f]{color:#236030;font-size:%?28?%;font-weight:700}.price-info .price .max[data-v-69d2b64f]{color:#236030;font-size:%?48?%;font-weight:700}.price-info .person[data-v-69d2b64f]{font-size:%?24?%;color:#aaa}\n/* 标题 */.goods-title[data-v-69d2b64f]{padding:%?20?% 4%;background-color:#fff;margin-top:%?20?%}.goods-title uni-text[data-v-69d2b64f]{font-size:%?28?%;color:#212121}\n/* 商品介绍 */.products-introduction[data-v-69d2b64f]{margin-top:%?20?%}.products-introduction .title[data-v-69d2b64f]{display:flex;justify-content:center;align-items:center;width:100%;height:%?80?%;background:#fff;margin-bottom:%?20?%}.products-introduction .title uni-text[data-v-69d2b64f]{font-size:%?28?%;color:#212121;margin:0 %?20?%}.products-introduction .title[data-v-69d2b64f]:before{content:"";width:%?100?%;height:%?2?%;background-color:silver}.products-introduction .title[data-v-69d2b64f]:after{content:"";width:%?100?%;height:%?2?%;background-color:silver}.products-introduction .parseContent[data-v-69d2b64f]{width:100%;background-color:#fff;padding:%?50?% %?20?%}\n/* 底部 */.page-footer[data-v-69d2b64f]{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-69d2b64f]{display:flex;align-items:center;width:40%;height:100%}.page-footer .footer-fn .list[data-v-69d2b64f]{display:flex;flex-direction:column;justify-content:center;align-items:center;width:50%;height:100%}.page-footer .footer-fn .list uni-text[data-v-69d2b64f]{font-size:%?24?%;color:#555}.page-footer .footer-fn .list .iconfont[data-v-69d2b64f]{font-size:%?42?%;color:#212121}.page-footer .footer-buy[data-v-69d2b64f]{display:flex;align-items:center;justify-content:space-between;width:60%;height:100%}.page-footer .footer-buy .cart-add[data-v-69d2b64f]{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-69d2b64f]{font-size:%?26?%;color:#fff}.page-footer .footer-buy .buy-at[data-v-69d2b64f]{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-69d2b64f]{font-size:%?26?%;color:#fff}.isend[data-v-69d2b64f]{background:#eaeaea!important;color:grey}',""]),t.exports=e},"7cdf":function(t,e,n){var r=n("7c3d");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var i=n("4f06").default;i("a0b41584",r,!0,{sourceMap:!1,shadowMode:!1})},"83f6":function(t,e,n){"use strict";var r=n("7cdf"),i=n.n(r);i.a},"8e16":function(t,e,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("5530"));n("130f"),n("e25e"),n("14d9");var o=n("4838"),a={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:!0,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)}},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),n=0,r=0;e>60&&(n=parseInt(e/60),e=parseInt(e%60),n>60&&(r=parseInt(n/60),n=parseInt(n%60)));var i=parseInt(e)+"秒";return i=n>0?parseInt(n)+"分"+i:"00时00分"+i,i=r>0?parseInt(r)+"时"+i:"00时"+i,i},timestampToTime:function(t){var e=new Date,n=e.getFullYear()+"-",r=(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?n+r+i+o+a+s:n+r+i},getDetailsHandle:function(t){var e=this;(0,o.getgoodsDetail)({id:t,custom:{auth:!0}}).then((function(t){t.data=(0,i.default)((0,i.default)({},t.data.goods),t.data),e.swiperList.push({url:t.data.image});var n=t.data.warehouse.start,r=t.data.warehouse.end,o=e.timestampToTime()+n+":00",a=e.timestampToTime()+r+":00",s=e.dateDifference(new Date(o).getTime()),d=e.dateDifference(new Date(a).getTime());console.log("endFinishTime=============》"+d),d>0?(e.ends=!1,console.log(!1)):(console.log(!0),e.ends=!0),s>0?(e.timer=setInterval((function(){var t=s--;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=a},e20c:function(t,e,n){var r=n("23e7"),i=n("da84"),o=n("2cf4").clear;r({global:!0,bind:!0,enumerable:!0,forced:i.clearImmediate!==o},{clearImmediate:o})},f08e:function(t,e,n){"use strict";n.r(e);var r=n("424c"),i=n("05dd");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("83f6");var a=n("f0c5"),s=Object(a["a"])(i["default"],r["b"],r["c"],!1,null,"69d2b64f",null,!1,r["a"],void 0);e["default"]=s.exports}}]); |