This commit is contained in:
2026-04-14 17:38:46 +08:00
commit b71e6d6bae
2848 changed files with 237896 additions and 0 deletions

View File

@ -0,0 +1,10 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/order-shop/order-shop"],{"1da8":function(e,n,o){"use strict";var t=o("64db"),i=o.n(t);i.a},"3f75":function(e,n,o){"use strict";o.r(n);var t=o("c454"),i=o.n(t);for(var u in t)["default"].indexOf(u)<0&&function(e){o.d(n,e,(function(){return t[e]}))}(u);n["default"]=i.a},5206:function(e,n,o){"use strict";o.d(n,"b",(function(){return i})),o.d(n,"c",(function(){return u})),o.d(n,"a",(function(){return t}));var t={shopTitle:function(){return o.e("components/shop-title/shop-title").then(o.bind(null,"c1de"))},orderGoods:function(){return o.e("components/order-goods/order-goods").then(o.bind(null,"a031"))},uIcon:function(){return o.e("components/uview-ui/components/u-icon/u-icon").then(o.bind(null,"8f08"))},priceFormat:function(){return o.e("components/price-format/price-format").then(o.bind(null,"1738"))},uInput:function(){return Promise.all([o.e("common/vendor"),o.e("components/uview-ui/components/u-input/u-input")]).then(o.bind(null,"2fc6"))},uModal:function(){return o.e("components/uview-ui/components/u-modal/u-modal").then(o.bind(null,"37df"))},uCheckbox:function(){return o.e("components/uview-ui/components/u-checkbox/u-checkbox").then(o.bind(null,"7f15"))},uPopup:function(){return o.e("components/uview-ui/components/u-popup/u-popup").then(o.bind(null,"b12c"))},tabs:function(){return Promise.all([o.e("common/vendor"),o.e("components/tabs/tabs")]).then(o.bind(null,"ffae"))},tab:function(){return o.e("components/tab/tab").then(o.bind(null,"9777"))},couponOrder:function(){return o.e("components/coupon-order/coupon-order").then(o.bind(null,"6606"))}},i=function(){var e=this,n=e.$createElement,o=(e._self._c,{shop_name:e.item.shop_name}),t=0==e.orderType&&e.showCoupon?e.usableCoupon.length:null,i=0==e.orderType&&e.showCoupon?e.unusableCoupon.length:null;e._isMounted||(e.e0=function(n,o){var t=arguments[arguments.length-1].currentTarget.dataset,i=t.eventParams||t["event-params"];o=i.item2;e.delivery_type=o.delivery_type},e.e1=function(n){e.showCoupon=!1}),e.$mp.data=Object.assign({},{$root:{a0:o,g0:t,g1:i}})},u=[]},"64db":function(e,n,o){},c454:function(e,n,o){"use strict";(function(e){var t=o("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=t(o("7eb4")),u=t(o("ee10")),r=o("0956"),c=o("f4fb"),s={name:"order-shop",props:{item:{type:[Object,Array]},teamId:{type:[Number,void 0]},bargainLaunchId:{type:[Number,void 0]},orderType:{type:Number},invoice:{type:[Object,Array]}},data:function(){return{active:0,remark:"",showCoupon:!1,showDelivery:!1,delivery_type:this.item.delivery_type,delivery_type_index:0,usableCoupon:[],unusableCoupon:[],usableCouponL:0,unusableCouponL:0,isRequest:!1,couponId:"",invoiceInfo:{}}},computed:{getCurrentShopInvoice:function(){var e=this.invoiceInfo;return e.name?"".concat(0==e.type?"普通发票":"专用发票"," - ").concat(0==e.header_type?"个人":"企业"," - ").concat(e.name):"不开发票"}},methods:{openLocation:function(n){e.openLocation({latitude:Number(n.info.latitude),longitude:Number(n.info.longitude),name:n.info.name,address:n.info.address_detail})},onShowCoupon:function(){this.isRequest?this.showCoupon=!0:(e.showLoading({title:"加载中..."}),this.getCoupon())},getCoupon:function(){var n=this;return(0,u.default)(i.default.mark((function o(){var t,u,c,s,a,d,p;return i.default.wrap((function(o){while(1)switch(o.prev=o.next){case 0:return t=n.item,u=t.goods,c=t.shop_id,s=u.map((function(e){var n=e.item_id,o=e.num,t=e.goods_id;return{item_id:n,num:o,goods_id:t}})),o.next=4,(0,r.getOrderCoupon)({goods:s,shop_id:c});case 4:a=o.sent,d=a.data,p=a.code,1==p&&(n.isRequest=!0,n.usableCoupon=d.suit,n.usableCouponL=d.suit.length,n.unusableCoupon=d.un_suit,n.unusableCouponL=d.un_suit.length,n.showCoupon=!0,e.hideLoading());case 8:case"end":return o.stop()}}),o)})))()},chengeDelivery:function(){this.showDelivery=!0},changeDeliveryType:function(){var e=this;this.delivery_type_index=this.item.delivery_types_arr.findIndex((function(n){return n.delivery_type===e.delivery_type})),this.$emit("changeDeliveryType",this.delivery_type)},handleInvoice:function(e){this.$Router.push({path:"/bundle/pages/invoice/invoice",query:{shop_id:e,invoice:JSON.stringify(this.invoiceInfo),type:c.invoiceType["SETTLEMENT"]}})},onSelectCoupon:function(e){this.couponId=e,this.$emit("changecoupon",e),this.showCoupon=!1}},watch:{remark:function(e){this.$emit("changeremark",{shop_id:this.item.shop_id,remark:e})},invoice:function(e){var n=this,o=e.filter((function(e){return e.shop_id==n.item.shop_id}));o.length?this.invoiceInfo=o[0]:this.invoiceInfo={}}}};n.default=s}).call(this,o("df3c")["default"])},e644:function(e,n,o){"use strict";o.r(n);var t=o("5206"),i=o("3f75");for(var u in i)["default"].indexOf(u)<0&&function(e){o.d(n,e,(function(){return i[e]}))}(u);o("1da8");var r=o("828b"),c=Object(r["a"])(i["default"],t["b"],t["c"],!1,null,null,null,!1,t["a"],void 0);n["default"]=c.exports}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'components/order-shop/order-shop-create-component',
{
'components/order-shop/order-shop-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("e644"))
})
},
[['components/order-shop/order-shop-create-component']]
]);

View File

@ -0,0 +1,16 @@
{
"usingComponents": {
"shop-title": "/components/shop-title/shop-title",
"order-goods": "/components/order-goods/order-goods",
"u-icon": "/components/uview-ui/components/u-icon/u-icon",
"price-format": "/components/price-format/price-format",
"u-input": "/components/uview-ui/components/u-input/u-input",
"u-modal": "/components/uview-ui/components/u-modal/u-modal",
"u-checkbox": "/components/uview-ui/components/u-checkbox/u-checkbox",
"u-popup": "/components/uview-ui/components/u-popup/u-popup",
"tabs": "/components/tabs/tabs",
"tab": "/components/tab/tab",
"coupon-order": "/components/coupon-order/coupon-order"
},
"component": true
}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
.order-shop .order-goods{border-top:1px solid #e5e5e5}.order-shop .item{height:88rpx;padding:0 24rpx}.order-shop .item .invoice{display:flex}.order-shop .item .invoice--text{width:300rpx;text-align:right}.delivery-item{padding:24rpx 14rpx;margin:0 40rpx 30rpx;border-radius:10rpx}.pickCard{padding:24rpx;height:100rpx;background-color:#ffefe9;margin:0 24rpx;border-radius:20rpx}.pickCard .text{font-size:24rpx}