pages-goods-settlement.d2ce4d70.js 16 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-goods-settlement"],{"094e":function(t,i,e){"use strict";var a=e("9e2b"),o=e.n(a);o.a},"0d511":function(t,i,e){"use strict";e("7a82"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("c975");var a={name:"bar-title",props:{bgColor:{type:String,default:""},isBack:{type:Boolean,default:!0},backText:{type:String,default:""},fixed:{type:Boolean,default:!0},shadow:{type:Boolean,default:!1},title:{type:String,default:""}},data:function(){return{isWechatBrowser:!1}},methods:{BackPage:function(){uni.navigateBack()},leftTap:function(){this.$emit("leftTap")},contentTap:function(){this.$emit("contentTap")},rightTap:function(){this.$emit("rightTap")}},created:function(){uni.setNavigationBarTitle({title:this.title}),this.isWechatBrowser=navigator.userAgent.toLocaleLowerCase().indexOf("micromessenger")>0}};i.default=a},5606:function(t,i,e){var a=e("24fb");i=a(!1),i.push([t.i,".zaiui-bar-title-box .cu-bar[data-v-095caefc]{padding-top:0;min-height:calc(0px + %?101?%)}.zaiui-bar-title-box .cu-bar .content[data-v-095caefc]{top:0}.zaiui-bar-title-box .cu-bar .content .cu-tag[data-v-095caefc]{position:relative;top:%?-2.72?%;padding:0 %?5.45?%}.zaiui-bar-title-box .cu-bar .content .cu-tag uni-text[data-v-095caefc]{position:relative;top:%?2?%}.zaiui-bar-title-box .cu-bar.fixed.no-shadow[data-v-095caefc]{box-shadow:inherit}.zaiui-bar-title-box .cu-bar.bg-white[data-v-095caefc]{color:#333}.zaiui-bar-title-box .zaiui-seat-height[data-v-095caefc]{width:100%;height:calc(0px + %?101?%)}",""]),t.exports=i},"61d9":function(t,i,e){"use strict";e.d(i,"b",(function(){return a})),e.d(i,"c",(function(){return o})),e.d(i,"a",(function(){}));var a=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",[e("bar-title",{attrs:{bgColor:"bg-white",title:"确认订单"}},[e("template",{attrs:{slot:"content"},slot:"content"},[t._v("确认订单")])],2),e("v-uni-view",{staticClass:"margin-tb-sm zaiui-view-box"},[e("v-uni-view",{staticClass:"bg-white zaiui-card address-view",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.toAddress.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"cu-list menu-avatar"},[e("v-uni-view",{staticClass:"cu-item"},[e("v-uni-view",{staticClass:"bg-grey icon-view"},[e("v-uni-text",{staticClass:"cuIcon-locationfill"})],1),t.address.id?e("v-uni-view",{staticClass:"content"},[e("v-uni-view",{staticClass:"text-black"},[e("v-uni-text",[t._v(t._s(t.address.name))]),e("v-uni-text",{staticClass:"margin-left"},[t._v(t._s(t.address.phone))])],1),e("v-uni-view",{staticClass:"text-gray text-sm flex"},[e("v-uni-view",{staticClass:"text-cut"},[t._v(t._s(t.address.area_string)+t._s(t.address.address))])],1)],1):e("v-uni-view",{staticClass:"content"},[e("v-uni-view",{staticClass:"text-black"},[e("v-uni-text",[t._v("暂无地址")])],1),e("v-uni-view",{staticClass:"text-gray text-sm flex"},[e("v-uni-view",{staticClass:"text-cut"},[t._v("请点击选择")])],1)],1),e("v-uni-view",{staticClass:"action"},[e("v-uni-text",{staticClass:"text-gray cuIcon-right"})],1)],1)],1),e("v-uni-view",{staticClass:"address-line"})],1)],1),e("v-uni-view",{staticClass:"margin-tb-sm zaiui-view-box"},[e("v-uni-view",{staticClass:"bg-white zaiui-card goods-view"},t._l(t.goodsList,(function(i){return e("v-uni-view",{key:i.id,staticClass:"goods-info-view-box"},[e("v-uni-view",{staticClass:"cu-avatar radius lg",style:[{backgroundImage:"url("+i.pic+")"}]}),e("v-uni-view",{staticClass:"goods-info-view"},[e("v-uni-view",{staticClass:"text-cut text-black"},[t._v(t._s(i.name))]),e("v-uni-view",{staticClass:"text-sm text-gray"},[t._v(t._s(i.sku_name))]),e("v-uni-view",{staticClass:"goods-price-view"},[e("v-uni-text",{staticClass:"text-price text-red text-lg"},[t._v(t._s(i.price.value))])],1)],1)],1)})),1)],1),e("v-uni-view",{staticClass:"margin-tb-sm zaiui-view-box"},[e("v-uni-view",{staticClass:"bg-white zaiui-card pay-view"},[e("v-uni-view",{staticClass:"text-lg text-black title-view"},[e("v-uni-text",{staticClass:"text-left"},[t._v("支付方式")]),e("v-uni-text",{staticClass:"text-right"},[t._v("在线支付")])],1),e("v-uni-view",{staticClass:"cu-list menu"},[e("v-uni-view",{staticClass:"cu-item"},[e("v-uni-view",{staticClass:"content"},[e("v-uni-text",{staticClass:"text-black"},[t._v("配送方式")])],1),e("v-uni-view",{staticClass:"action"},[e("v-uni-text",{staticClass:"text-black"},[t._v("快递 ¥0.00")])],1)],1)],1)],1)],1),e("v-uni-view",{staticClass:"margin-tb-sm zaiui-view-box"},[e("v-uni-view",{staticClass:"bg-white zaiui-card zaiui-price-view"},[e("v-uni-view",{staticClass:"text-black item-view"},[e("v-uni-view",{staticClass:"text-cut title"},[t._v("商品总额")]),e("v-uni-text",{staticClass:"text-red text-price text-right"},[t._v(t._s(t.orderInfo.value))])],1)],1)],1),e("v-uni-view",{staticClass:"cu-tabbar-height"}),e("v-uni-view",{staticClass:"bg-white zaiui-footer-fixed zaiui-foot-padding-bottom"},[e("v-uni-view",{staticClass:"cu-bar padding-lr"},[e("v-uni-view",{staticClass:"text-black text-bold price-view"},[e("v-uni-text",[t._v("合计:¥"+t._s(t.orderInfo.value))])],1),e("v-uni-view",{staticClass:"btn-view"},[e("v-uni-button",{staticClass:"cu-btn radius bg-red",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.submitPay.apply(void 0,arguments)}}},[t._v("确认下单")])],1)],1)],1)],1)},o=[]},"713c":function(t,i,e){"use strict";e.r(i);var a=e("ede5"),o=e("df75a");for(var s in o)["default"].indexOf(s)<0&&function(t){e.d(i,t,(function(){return o[t]}))}(s);e("094e");var n=e("f0c5"),c=Object(n["a"])(o["default"],a["b"],a["c"],!1,null,"095caefc",null,!1,a["a"],void 0);i["default"]=c.exports},"878a":function(t,i,e){var a=e("24fb");i=a(!1),i.push([t.i,".zaiui-view-box[data-v-f68530ec]{position:relative;padding:0 %?18.18?%}.zaiui-view-box .zaiui-card[data-v-f68530ec]{position:relative;padding:%?18.18?%;border-radius:%?9.09?%;box-shadow:0 0 %?10.9?% #f7f7f7}.address-view .cu-list.menu-avatar > .cu-item[data-v-f68530ec]{height:55px}.address-view .cu-list.menu-avatar > .cu-item[data-v-f68530ec]:after{width:0;height:0;border-bottom:0}.address-view .cu-list.menu-avatar > .cu-item .icon-view[data-v-f68530ec]{position:absolute;border-radius:100%;text-align:center;line-height:%?45.45?%;height:%?45.45?%;width:%?45.45?%;left:%?9.09?%;top:%?20?%}.address-view .cu-list.menu-avatar > .cu-item .content[data-v-f68530ec]{left:%?72.72?%;width:calc(100% - %?94.54?% - %?27.27?%)}.address-view .cu-list.menu-avatar > .cu-item .action[data-v-f68530ec]{text-align:right;width:%?36.36?%}.address-view .address-line[data-v-f68530ec]{position:absolute;background-image:url(/static/zaiui/img/a9l.png);background-repeat:no-repeat;background-size:100%;border-radius:0 0 %?9.09?%;height:%?9.09?%;width:100%;bottom:0;right:0;left:0}.goods-view .title-view[data-v-f68530ec]{position:relative;line-height:%?49.09?%;height:%?47.27?%}.goods-view .title-view .cu-avatar[data-v-f68530ec]{position:absolute}.goods-view .title-view .title-box[data-v-f68530ec]{position:relative;padding-left:%?63.63?%}.goods-view .title-view .title-box .cu-tag[data-v-f68530ec]{position:relative;top:%?-3.63?%}.goods-view .goods-info-view-box[data-v-f68530ec]{position:relative;padding:%?27.27?% %?18.18?%}.goods-view .goods-info-view-box .cu-avatar[data-v-f68530ec]{position:absolute;height:%?163.63?%;width:%?163.63?%;left:%?18.18?%}.goods-view .goods-info-view-box .goods-info-view[data-v-f68530ec]{position:relative;padding-left:%?181.81?%;height:%?163.63?%;line-height:1.4}.goods-view .goods-info-view-box .goods-info-view .zaiui-tag-view[data-v-f68530ec]{position:relative}.goods-view .goods-info-view-box .goods-info-view .goods-price-view[data-v-f68530ec]{position:relative;line-height:1.7;top:%?9.09?%}.goods-view .solid-bottom[data-v-f68530ec]::after{border-bottom:%?2?% solid rgba(0,0,0,.1)}.goods-view .zaiui-gift-list[data-v-f68530ec]{position:relative}.goods-view .zaiui-gift-list .title[data-v-f68530ec]{padding-right:%?181.81?%}.goods-view .zaiui-gift-list .text-right[data-v-f68530ec]{position:absolute;right:0;top:0}.goods-view .zaiui-gift-list + .zaiui-gift-list[data-v-f68530ec]{margin-top:10px}.goods-view .checked-view[data-v-f68530ec]{position:relative}.goods-view .checked-view .zaiui-checked[data-v-f68530ec]{position:absolute;-webkit-transform:scale(.7);transform:scale(.7)}.goods-view .checked-view .text-black-view[data-v-f68530ec]{padding-left:%?63.63?%;line-height:%?47.27?%}.goods-view .zaiui-service-view .flex-sub[data-v-f68530ec]{position:relative;text-align:center;line-height:1.8;border:%?2?% solid #f7f5f5}.goods-view .zaiui-service-view .flex-sub .cu-tag[data-v-f68530ec]{position:relative;top:%?-4?%}.goods-view .zaiui-service-view .flex-sub .zaiui-corner-mark[data-v-f68530ec]{position:absolute;right:0;bottom:0;width:0;height:0;border-bottom:%?36.36?% solid #eaeaea;border-left:%?45.45?% solid transparent}.goods-view .zaiui-service-view .flex-sub .check-icon[data-v-f68530ec]{position:absolute;font-size:%?20?%;bottom:-3px;color:#fafafa;right:%?2?%}.goods-view .zaiui-service-view .flex-sub .zaiui-corner-mark.check[data-v-f68530ec]{border-bottom:%?36.36?% solid #e54d42}.goods-view .zaiui-service-view .flex-sub .check-icon.check[data-v-f68530ec]{color:#fff}.zaiui-card.pay-view[data-v-f68530ec]{position:relative;padding:10px 10px 0}.zaiui-card.pay-view .title-view[data-v-f68530ec]{position:relative}.zaiui-card.pay-view .title-view .text-right[data-v-f68530ec]{position:absolute;right:0}.zaiui-card.pay-view .tag-view-box[data-v-f68530ec]{position:relative;padding:0 0 %?27.27?%;border-bottom:%?1?% solid rgba(0,0,0,.1)}.zaiui-card.pay-view .tag-view-box .cu-tag[data-v-f68530ec]{margin-top:%?18.18?%;margin-right:%?9.09?%}.zaiui-card.pay-view .tag-view-box .cu-tag + .cu-tag[data-v-f68530ec]{margin-left:0}.zaiui-card.pay-view .cu-list.menu > .cu-item[data-v-f68530ec]{padding:0;min-height:%?90.9?%}.zaiui-card.pay-view .cu-list.menu > .cu-item .content[data-v-f68530ec]{font-size:%?27.27?%}.zaiui-card.pay-view .cu-list.menu > .cu-item .action .cu-tag[data-v-f68530ec]{position:relative;top:%?-3.63?%;right:%?9.09?%}.zaiui-card.pay-view .cu-list.menu > .cu-item.arrow[data-v-f68530ec]{padding-right:%?29.09?%}.zaiui-card.pay-view .cu-list.menu > .cu-item.arrow[data-v-f68530ec]:before{right:0;color:#aaa}.zaiui-price-view[data-v-f68530ec]{position:relative}.zaiui-price-view .item-view[data-v-f68530ec]{position:relative}.zaiui-price-view .item-view .title[data-v-f68530ec]{padding-right:%?181.81?%}.zaiui-price-view .item-view .text-right[data-v-f68530ec]{position:absolute;right:0;top:0}.zaiui-price-view .item-view + .item-view[data-v-f68530ec]{margin-top:%?18.18?%}.agreement-checked-view[data-v-f68530ec]{position:relative;padding:%?18.18?% %?27.27?%}.agreement-checked-view .zaiui-checked[data-v-f68530ec]{position:absolute;-webkit-transform:scale(.7);transform:scale(.7)}.agreement-checked-view .text-black-view[data-v-f68530ec]{padding-left:%?63.63?%;line-height:%?47.27?%}.zaiui-footer-fixed[data-v-f68530ec]{box-shadow:0 %?-2?% %?9.09?% 0 #ececec;z-index:99999}.zaiui-footer-fixed .cu-bar[data-v-f68530ec]{width:100%}.zaiui-footer-fixed .cu-bar .price-view[data-v-f68530ec]{width:100%;padding-right:%?254.54?%}.zaiui-footer-fixed .cu-bar .btn-view[data-v-f68530ec]{position:absolute;float:right;right:%?29.09?%}",""]),t.exports=i},"9e2b":function(t,i,e){var a=e("5606");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=e("4f06").default;o("38d2a49e",a,!0,{sourceMap:!1,shadowMode:!1})},b27f:function(t,i,e){"use strict";e("7a82"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("a9e3"),e("d401"),e("d3b7"),e("25f0"),e("e25e"),e("c975"),e("ac1f"),e("5319");var a={strLeng:function(t){if(t){for(var i=t.length,e=0,a=0;a<i;a++)t.charCodeAt(a)>128?e+=2:e+=1;return e}return 0},getPageNum:function(t,i){var e=Number(t)/Number(i);if(e%1!==0){var a=e.toString(),o=parseInt(a.substring(0,a.indexOf("."))),s=a.replace(/\d+\.(\d*)/,"$1");s>0&&(e=o+1)}return e},setBarColor:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t?uni.setNavigationBarColor({frontColor:"#000000",backgroundColor:"#FAFAFA"}):uni.setNavigationBarColor({frontColor:"#ffffff",backgroundColor:"#FAFAFA"})},zaiui_log:function(t){}},o=a;i.default=o},c5ea:function(t,i,e){"use strict";e("7a82");var a=e("ee27").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var o=a(e("c9e9")),s=a(e("713c")),n=a(e("b27f")),c=["detail"],r={components:{barTitle:s.default},data:function(){return{goodsList:[],checkAll:!0,goods_img:"/static/images/home/goods/1.png",address:{},orderInfo:{}}},onLoad:function(){this.loadConfirm(),this.getDefaultAddress()},onReady:function(){n.default.setBarColor(!0),uni.pageScrollTo({scrollTop:0,duration:0})},methods:{setAddress:function(t){this.address=t},toAddress:function(){uni.navigateTo({url:"/pages/my/address?from=cart"})},payTap:function(){uni.navigateTo({url:"/pages/goods/pay"})},loadConfirm:function(){var t=this;this.reqByuser({url:"?l=cart.confirm",data:{},success:function(i){if(1==i.data.status){var e=i.data.data,a=e.detail,s=(0,o.default)(e,c);t.goodsList=a,t.orderInfo=s}else uni.showToast({icon:"error",title:i.data.msg})}})},submitPay:function(){this.reqByuser({url:"?l=cart.pay",data:{account:"wechat",env:3,address_id:this.address.id},success:function(t){1==t.data.status?(console.log(t.data.data),location.href=t.data.data.pay.link):uni.showToast({icon:"error",title:t.data.msg})}})},getDefaultAddress:function(){var t=this;this.reqByuser({url:"?l=address.getDefault",data:{},success:function(i){1==i.data.status?t.address=i.data.data:uni.showToast({icon:"error",title:i.data.msg})}})}}};i.default=r},c9e9:function(t,i,e){"use strict";e("7a82"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t,i){if(null==t)return{};var e,o,s=(0,a.default)(t,i);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);for(o=0;o<n.length;o++)e=n[o],i.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(t,e)&&(s[e]=t[e])}return s},e("a4d3"),e("c975");var a=function(t){return t&&t.__esModule?t:{default:t}}(e("d363"))},d363:function(t,i,e){"use strict";e("7a82"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(t,i){if(null==t)return{};var e,a,o={},s=Object.keys(t);for(a=0;a<s.length;a++)e=s[a],i.indexOf(e)>=0||(o[e]=t[e]);return o},e("b64b"),e("c975")},df75a:function(t,i,e){"use strict";e.r(i);var a=e("0d511"),o=e.n(a);for(var s in a)["default"].indexOf(s)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(s);i["default"]=o.a},e70e:function(t,i,e){"use strict";e.r(i);var a=e("61d9"),o=e("f459");for(var s in o)["default"].indexOf(s)<0&&function(t){e.d(i,t,(function(){return o[t]}))}(s);e("fdfb");var n=e("f0c5"),c=Object(n["a"])(o["default"],a["b"],a["c"],!1,null,"f68530ec",null,!1,a["a"],void 0);i["default"]=c.exports},ede5:function(t,i,e){"use strict";e.d(i,"b",(function(){return a})),e.d(i,"c",(function(){return o})),e.d(i,"a",(function(){}));var a=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",{staticClass:"zaiui-bar-title-box",style:t.isWechatBrowser?"display: none;":""},[e("v-uni-view",{staticClass:"cu-bar",class:[t.fixed?"fixed":"",t.shadow?"":"no-shadow",t.bgColor]},[t.isBack?e("v-uni-view",{staticClass:"action",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.BackPage.apply(void 0,arguments)}}},[e("v-uni-text",{staticClass:"cuIcon-back"}),e("v-uni-text",[t._v(t._s(t.backText))])],1):t._e(),t.isBack?t._e():e("v-uni-view",{staticClass:"action",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.leftTap.apply(void 0,arguments)}}},[t._t("left")],2),e("v-uni-view",{staticClass:"content",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.contentTap.apply(void 0,arguments)}}},[t._t("content")],2),e("v-uni-view",{staticClass:"action",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.rightTap.apply(void 0,arguments)}}},[t._t("right")],2)],1),t.fixed?e("v-uni-view",{staticClass:"zaiui-seat-height"}):t._e()],1)},o=[]},f459:function(t,i,e){"use strict";e.r(i);var a=e("c5ea"),o=e.n(a);for(var s in a)["default"].indexOf(s)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(s);i["default"]=o.a},f510:function(t,i,e){var a=e("878a");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=e("4f06").default;o("42571be8",a,!0,{sourceMap:!1,shadowMode:!1})},fdfb:function(t,i,e){"use strict";var a=e("f510"),o=e.n(a);o.a}}]);