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
19 KiB
1 lines
19 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-qianggou-productDetails"],{"030a":function(t,e,n){"use strict";t.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},"2a3e":function(t,e,n){"use strict";n.r(e);var r=n("caab"),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},"2bb3":function(t,e,n){"use strict";var r=n("29d8");t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},"2c61":function(t,e,n){"use strict";var r,i,o,a,s=n("85c1"),u=n("9f9e"),d=n("ae5c"),c=n("474f"),f=n("338c"),l=n("af9e"),p=n("3794"),g=n("37ad"),v=n("3f57"),h=n("7f28"),m=n("2bb3"),b=n("db06"),w=s.setImmediate,y=s.clearImmediate,L=s.process,x=s.Dispatch,U=s.Function,O=s.MessageChannel,D=s.String,I=0,S={};l((function(){r=s.location}));var C=function(t){if(f(S,t)){var e=S[t];delete S[t],e()}},_=function(t){return function(){C(t)}},P=function(t){C(t.data)},k=function(t){s.postMessage(D(t),r.protocol+"//"+r.host)};w&&y||(w=function(t){h(arguments.length,1);var e=c(t)?t:U(t),n=g(arguments,1);return S[++I]=function(){u(e,void 0,n)},i(I),I},y=function(t){delete S[t]},b?i=function(t){L.nextTick(_(t))}:x&&x.now?i=function(t){x.now(_(t))}:O&&!m?(o=new O,a=o.port2,o.port1.onmessage=P,i=d(a.postMessage,a)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!l(k)?(i=k,s.addEventListener("message",P,!1)):i="onreadystatechange"in v("script")?function(t){p.appendChild(v("script"))["onreadystatechange"]=function(){p.removeChild(this),C(t)}}:function(t){setTimeout(_(t),0)}),t.exports={set:w,clear:y}},"35fd":function(t,e,n){"use strict";var r=n("8bdb"),i=n("85c1"),o=n("2c61").clear;r({global:!0,bind:!0,enumerable:!0,forced:i.clearImmediate!==o},{clearImmediate:o})},"757e":function(t,e,n){"use strict";n("6a54"),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.getAppId=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)};e.getAppId=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!1}};return r.get("/api/common/getAppidByDomain",{},e)}},7627:function(t,e,n){"use strict";n("35fd"),n("855b")},"855b":function(t,e,n){"use strict";var r=n("8bdb"),i=n("85c1"),o=n("2c61").set,a=n("caba"),s=i.setImmediate?a(o,!1):o;r({global:!0,bind:!0,enumerable:!0,forced:i.setImmediate!==s},{setImmediate:s})},"95bf":function(t,e,n){var r=n("c86c");e=r(!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-0e41040f]{width:100%;background:#f6f6f6;overflow-x:hidden;padding-bottom:%?120?%}\r\n/* banner 标题 */.banner-title[data-v-0e41040f]{background-color:#fff;padding-bottom:%?20?%}\r\n/* banner */.banner[data-v-0e41040f]{width:100%;height:%?750?%}.banner .screen-swiper[data-v-0e41040f]{width:100%;height:100%}\r\n/* 价格 */.price-info[data-v-0e41040f]{display:flex;align-items:center;justify-content:space-between;padding:0 4%;margin-top:%?20?%}.price-info .price[data-v-0e41040f]{display:flex;align-items:center}.price-info .price .min[data-v-0e41040f]{color:#236030;font-size:%?28?%;font-weight:700}.price-info .price .max[data-v-0e41040f]{color:#236030;font-size:%?48?%;font-weight:700}.price-info .person[data-v-0e41040f]{font-size:%?24?%;color:#aaa}\r\n/* 标题 */.goods-title[data-v-0e41040f]{padding:%?20?% 4%;background-color:#fff;margin-top:%?20?%}.goods-title uni-text[data-v-0e41040f]{font-size:%?28?%;color:#212121}\r\n/* 商品介绍 */.products-introduction[data-v-0e41040f]{margin-top:%?20?%}.products-introduction .title[data-v-0e41040f]{display:flex;justify-content:center;align-items:center;width:100%;height:%?80?%;background:#fff;margin-bottom:%?20?%}.products-introduction .title uni-text[data-v-0e41040f]{font-size:%?28?%;color:#212121;margin:0 %?20?%}.products-introduction .title[data-v-0e41040f]:before{content:"";width:%?100?%;height:%?2?%;background-color:silver}.products-introduction .title[data-v-0e41040f]:after{content:"";width:%?100?%;height:%?2?%;background-color:silver}.products-introduction .parseContent[data-v-0e41040f]{width:100%;background-color:#fff;padding:%?50?% %?20?%}\r\n/* 底部 */.page-footer[data-v-0e41040f]{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-0e41040f]{display:flex;align-items:center;width:40%;height:100%}.page-footer .footer-fn .list[data-v-0e41040f]{display:flex;flex-direction:column;justify-content:center;align-items:center;width:50%;height:100%}.page-footer .footer-fn .list uni-text[data-v-0e41040f]{font-size:%?24?%;color:#555}.page-footer .footer-fn .list .iconfont[data-v-0e41040f]{font-size:%?42?%;color:#212121}.page-footer .footer-buy[data-v-0e41040f]{display:flex;align-items:center;justify-content:space-between;width:60%;height:100%}.page-footer .footer-buy .cart-add[data-v-0e41040f]{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-0e41040f]{font-size:%?26?%;color:#fff}.page-footer .footer-buy .buy-at[data-v-0e41040f]{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-0e41040f]{font-size:%?26?%;color:#fff}.isend[data-v-0e41040f]{background:#eaeaea!important;color:grey}',""]),t.exports=e},a243:function(t,e,n){var r=n("95bf");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var i=n("967d").default;i("09776b4e",r,!0,{sourceMap:!1,shadowMode:!1})},c5e9: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("de63").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=[]},caab:function(t,e,n){"use strict";n("6a54");var r=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n("9b1b"));n("7627"),n("e966"),n("aa9c");var o=n("757e"),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()),u=e.dateDifference(new Date(a).getTime());console.log("endFinishTime=============》"+u),u>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},caba:function(t,e,n){"use strict";var r=n("85c1"),i=n("9f9e"),o=n("474f"),a=n("030a"),s=n("29d8"),u=n("37ad"),d=n("7f28"),c=r.Function,f=/MSIE .\./.test(s)||a&&function(){var t=r.Bun.version.split(".");return t.length<3||"0"===t[0]&&(t[1]<3||"3"===t[1]&&"0"===t[2])}();t.exports=function(t,e){var n=e?2:1;return f?function(r,a){var s=d(arguments.length,1)>n,f=o(r)?r:c(r),l=s?u(arguments,n):[],p=s?function(){i(f,this,l)}:f;return e?t(p,a):t(p)}:t}},d6e2:function(t,e,n){"use strict";var r=n("a243"),i=n.n(r);i.a},ef50:function(t,e,n){"use strict";n.r(e);var r=n("c5e9"),i=n("2a3e");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("d6e2");var a=n("828b"),s=Object(a["a"])(i["default"],r["b"],r["c"],!1,null,"0e41040f",null,!1,r["a"],void 0);e["default"]=s.exports}}]); |