market-page-product-detail.f286cc7d.js 6.3 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["market-page-product-detail"],{"08f5":function(t,e,a){"use strict";a.r(e);var i=a("4d77"),n=a("4c36");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("2b87");var s=a("828b"),o=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"ce4f293a",null,!1,i["a"],void 0);e["default"]=o.exports},1292:function(t,e,a){"use strict";a("6a54");var i=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.postMarketGoodSendOutApi=e.postMarketGoodFinishApi=e.postMarkePayStationApi=e.postMarkeMyGoodsApi=e.postMarkeInitiatePaymentApi=e.postMarkeGoodsStatusApi=e.postMarkeGoodsApi=e.postMarkeCreateOrderApi=e.getMarkePreGoodsApi=e.getMarkeGoodsListlApi=e.getMarkeGoodsListApi=e.getMarkeGoodsInfoApi=e.getMarkeGoodsDetailApi=e.getMarkeCateApi=void 0;var n=i(a("7653"));e.getMarkeCateApi=function(){return n.default.get("api/user.hand2market.Category/list",{})};e.getMarkeGoodsListApi=function(t){return n.default.get("api/user.hand2market.index/list",t)};e.getMarkeGoodsInfoApi=function(t){return n.default.get("api/user.hand2market.index/detail",t)};e.postMarkeGoodsApi=function(t){return n.default.post("api/user.hand2market.index/publish",t)};e.postMarkeGoodsStatusApi=function(t){return n.default.post("api/user.hand2market.index/modify",t)};e.postMarkeMyGoodsApi=function(t){return n.default.get("api/user.hand2market.index/mySellItem",t)};e.getMarkePreGoodsApi=function(t){return n.default.get("api/user.hand2market.Order/OrderCal",t)};e.postMarkeCreateOrderApi=function(t){return n.default.post("api/user.hand2market.order/createOrder",t)};e.postMarkePayStationApi=function(t){return n.default.post("api/user.hand2market.OrderPay/Hand2PayStation",t)};e.postMarkeInitiatePaymentApi=function(t){return n.default.post("api/user.hand2market.OrderPay/initiatePayment",t)};e.getMarkeGoodsDetailApi=function(t){return n.default.get("api/user.hand2market.order/orderDetail",t)};e.getMarkeGoodsListlApi=function(t){return n.default.get("api/user.hand2market.order/getOrderList",t)};e.postMarketGoodSendOutApi=function(t){return n.default.post("api/user.hand2market.order/OrderFaHuo",t)};e.postMarketGoodFinishApi=function(t){return n.default.post("api/user.hand2market.order/OrderFinish",t)}},1695:function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a("1292"),n=a("419c"),r={data:function(){return{id:0,detailData:{}}},onLoad:function(t){this.id=t.id,this.getGoodsInfo()},methods:{navPage:n.navPage,getGoodsInfo:function(){var t=this;(0,i.getMarkeGoodsInfoApi)({id:this.id}).then((function(e){t.detailData=e.data}))},previewImage:function(t,e){uni.previewImage({current:t,urls:e})}}};e.default=r},"2b87":function(t,e,a){"use strict";var i=a("67a0"),n=a.n(i);n.a},"4c36":function(t,e,a){"use strict";a.r(e);var i=a("1695"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},"4d77":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("custom-page",{attrs:{"custom-navbar":!0,"navbar-title":"商品详情","wrapper-bg-color":"#f0f0f0"}},[a("v-uni-view",{staticClass:"detil-img"},[a("v-uni-swiper",{staticStyle:{height:"600rpx"},attrs:{"indicator-dots":!1,autoplay:!0,interval:3e3,duration:1e3}},t._l(t.detailData.album,(function(e,i){return a("v-uni-swiper-item",{key:i},[a("v-uni-view",{staticClass:"swiper-item"},[a("v-uni-image",{staticClass:"tn-full-width",staticStyle:{height:"600rpx"},attrs:{src:e,mode:"aspectFill"},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.previewImage(i,e)}}})],1)],1)})),1)],1),a("v-uni-view",{staticClass:"detail-page"},[a("v-uni-view",{staticClass:"tn-bg-white tn-padding-sm"},[a("v-uni-view",{staticClass:"tn-text-bold tn-text-xxl"},[t._v(t._s(t.detailData.title))]),a("v-uni-view",{staticClass:"tn-margin-top-sm tn-color-red tn-text-bold"},[a("v-uni-text",{staticClass:"tn-text-xl"},[t._v(t._s(t.detailData.price))]),a("v-uni-text",{staticClass:"tn-text-sm"},[t._v(t._s(t.CurrencyUnit))])],1)],1),a("v-uni-view",{staticClass:"tn-padding-sm tn-margin-top tn-bg-white tn-flex tn-flex-row"},[a("v-uni-view",{staticClass:"tn-margin-right de-user-img"},[a("v-uni-image",{attrs:{src:t.detailData.avatar,mode:"aspectFill"}})],1),a("v-uni-view",{staticClass:"tn-flex-1 tn-flex-column"},[a("v-uni-view",{staticClass:"tn-text-bold tn-text-lg"},[t._v(t._s(t.detailData.nickname))])],1)],1),a("v-uni-view",{staticClass:"tn-padding-sm tn-margin-top tn-bg-white tn-flex tn-flex-column"},[a("v-uni-view",{staticClass:"tn-text-bold tn-text-lg"},[t._v("内容详情")]),a("v-uni-view",{},[t._v(t._s(t.detailData.description))])],1)],1),a("v-uni-view",{staticClass:"tn-padding tn-bg-white tn-flex-row",staticStyle:{position:"fixed",bottom:"0",width:"100%"}},[a("v-uni-view",{staticClass:"tn-flex-center de-op-left"},[a("v-uni-button",{staticClass:"tn-clear-button-style tn-flex-column tn-text-md tn-color-gray",attrs:{"open-type":"share"}},[a("v-uni-view",{staticClass:"tn-icon-share-circle tn-text-lg"}),a("v-uni-view",[t._v("分享")])],1)],1),a("v-uni-view",{staticClass:"tn-text-center tn-cool-bg-1 de-op-right",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.navPage("../suborder/sub-order?goodsid="+t.id)}}},[t._v("立即购买")])],1)],1)},n=[]},"67a0":function(t,e,a){var i=a("cbf8");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("967d").default;n("73268795",i,!0,{sourceMap:!1,shadowMode:!1})},cbf8:function(t,e,a){var i=a("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.detail-page[data-v-ce4f293a]{position:relative;width:100%}.de-user-img[data-v-ce4f293a]{width:%?100?%;height:%?100?%;border-radius:%?15?%}.de-user-img uni-image[data-v-ce4f293a]{width:100%;height:100%}.de-op-left[data-v-ce4f293a]{width:30%}.de-op-right[data-v-ce4f293a]{border-radius:%?50?%;width:70%;padding:%?20?% 0}',""]),t.exports=e}}]);