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.
 
 
 
 
 
hezhiying/unpackage/dist/build/h5/static/js/pages-ConfirmOrder-ConfirmO...

1 lines
19 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-ConfirmOrder-ConfirmOrder"],{"0564":function(t,a,i){var e=i("8d7e");e.__esModule&&(e=e.default),"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var n=i("4f06").default;n("6a925ef4",e,!0,{sourceMap:!1,shadowMode:!1})},"062b":function(t,a,i){"use strict";i.r(a);var e=i("7c96"),n=i.n(e);for(var s in e)["default"].indexOf(s)<0&&function(t){i.d(a,t,(function(){return e[t]}))}(s);a["default"]=n.a},"2e2a":function(t,a,i){"use strict";var e=i("0564"),n=i.n(e);n.a},"50d5":function(t,a,i){"use strict";i.r(a);var e=i("fa27"),n=i.n(e);for(var s in e)["default"].indexOf(s)<0&&function(t){i.d(a,t,(function(){return e[t]}))}(s);a["default"]=n.a},"541d":function(t,a,i){var e=i("24fb");a=e(!1),a.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/* 文章场景相关 */\r\n/* 地址 */.address-data[data-v-525a97f2]{position:relative;padding:%?10?% %?20?%;background-color:#fff;margin:0 %?24?%;overflow:hidden;margin-top:%?110?%;border-radius:%?8?%}.address-data .address-list[data-v-525a97f2]{width:100%}.address-data .address-list .list[data-v-525a97f2]{display:flex;align-items:center;width:100%;height:%?60?%}.address-data .address-list .list .moren[data-v-525a97f2]{padding:%?5?% %?10?%;background-color:#9f751f;border-radius:%?10?%;font-size:%?24?%;color:#fff;margin-right:%?10?%}.address-data .address-list .list uni-text[data-v-525a97f2]{font-weight:700;font-size:%?28?%;color:#9f751f;margin-right:%?10?%}.address-data .address-list .list .address[data-v-525a97f2]{font-size:%?24?%;color:#9f751f}.address-data .address-list .list .tips[data-v-525a97f2]{color:#236030}.address-data .nothasAddr[data-v-525a97f2]{color:#9f751f;display:flex;align-items:center;justify-content:space-between;padding:%?40?% 0;border-bottom:1px solid #eaeaea}\r\n/* 商品 */.goods-data[data-v-525a97f2]{background-color:#fff;border-radius:%?20?%;margin:%?20?% auto}.goods-data .goods-list[data-v-525a97f2]{width:100%}.goods-data .goods-list .list[data-v-525a97f2]{display:flex;align-items:center;width:100%;height:%?200?%}.goods-data .goods-list .list .thumb[data-v-525a97f2]{display:flex;align-items:center;width:30%;height:100%}.goods-data .goods-list .list .thumb uni-image[data-v-525a97f2]{width:%?160?%;height:%?160?%;border-radius:%?10?%}.goods-data .goods-list .list .item[data-v-525a97f2]{width:70%;height:%?160?%}.goods-data .goods-list .list .item .title[data-v-525a97f2]{display:flex;flex-direction:column;width:100%;height:%?80?%}.goods-data .goods-list .list .item .title .name[data-v-525a97f2]{font-size:%?28?%;color:#222}.goods-data .goods-list .list .item .title .attr[data-v-525a97f2]{font-size:%?24?%;color:silver}.goods-data .goods-list .list .item .price-number[data-v-525a97f2]{display:flex;align-items:center;justify-content:space-between;width:100%;height:%?60?%}.goods-data .goods-list .list .item .price-number .price[data-v-525a97f2]{display:flex;align-items:center}.goods-data .goods-list .list .item .price-number .price uni-text[data-v-525a97f2]{color:#236030;font-weight:700}.goods-data .goods-list .list .item .price-number .price .min[data-v-525a97f2]{font-size:%?26?%}.goods-data .goods-list .list .item .price-number .price .max[data-v-525a97f2]{font-size:%?32?%}.goods-data .goods-list .list .item .price-number .number[data-v-525a97f2]{display:flex;align-items:center}.goods-data .goods-list .list .item .price-number .number uni-text[data-v-525a97f2]{font-size:%?26?%;color:#222}.goods-data .goods-list .list .item .tag[data-v-525a97f2]{display:flex;align-items:center;width:100%;height:%?40?%}.goods-data .goods-list .list .item .tag uni-text[data-v-525a97f2]{padding:%?2?% %?12?%;color:#236030;border:%?2?% solid #236030;border-radius:%?40?%;font-size:%?24?%}\r\n/**\r\n * 地址提示\r\n */.address-tips[data-v-525a97f2]{position:fixed;left:0;bottom:%?100?%;z-index:100;display:flex;align-items:center;justify-content:center;width:100%;height:%?60?%;padding:0 4%;background-color:#fef2ce}.address-tips uni-text[data-v-525a97f2]{font-size:%?26?%;color:#fbbd08}\r\n/* 订单金额 */.order-price[data-v-525a97f2]{margin:%?20?% %?24?%;background-color:#fff;border-radius:%?20?%}.order-price .price-list[data-v-525a97f2]{padding:0 4%}.order-price .price-list .list[data-v-525a97f2]{display:flex;align-items:center;justify-content:space-between;width:100%;height:%?80?%}.order-price .price-list .list .title[data-v-525a97f2]{display:flex;align-items:center}.order-price .price-list .list .title uni-text[data-v-525a97f2]{font-size:%?26?%;color:#555}.order-price .price-list .list .price[data-v-525a97f2]{display:flex;align-items:center}.order-price .price-list .list .price uni-text[data-v-525a97f2]{font-size:%?26?%;font-weight:700;color:#236030}.order-price .price-list .list .price .highlight[data-v-525a97f2]{color:#236030}\r\n/* 顶部合计提交 */.footer-submit[data-v-525a97f2]{position:fixed;left:0;bottom:0;display:flex;align-items:center;justify-content:space-between;width:100%;height:%?100?%;background-color:#fff;padding:0 4%}.footer-submit .price[data-v-525a97f2]{display:flex;align-items:flex-end}.footer-submit .price uni-text[data-v-525a97f2]{color:#236030}.footer-submit .price .min[data-v-525a97f2]{font-size:%?28?%}.footer-submit .submit[data-v-525a97f2]{display:flex;align-items:center;justify-content:center;width:%?200?%;height:%?70?%;background-color:#236030;border-radius:%?10?%}.footer-submit .submit uni-text[data-v-525a97f2]{font-size:%?26?%;color:#fff}.showcontent[data-v-525a97f2]{position:relative}.showcontent > uni-image[data-v-525a97f2]{width:100%;height:auto}.showcontent .contentContainer[data-v-525a97f2]{position:absolute;padding:0 %?40?%;z-index:11;top:60%;left:0;-webkit-transform:translateY(-50%);transform:translateY(-50%);width:100%}.showcontent .contentContainer .text[data-v-525a97f2]{text-align:center}.showcontent .contentContainer .text .textTitle[data-v-525a97f2]{color:#222;font-size:%?32?%;font-weight:700}.showcontent .contentContainer .text .intrTitle[data-v-525a97f2]{color:#222;font-size:%?26?%;font-weight:700;margin-top:%?30?%}.showcontent .contentContainer .text .intr[data-v-525a97f2]{line-height:%?40?%;margin-top:%?40?%}.showcontent .contentContainer .btnContent[data-v-525a97f2]{display:flex;align-items:center;margin-top:%?50?%;justify-content:space-around}.showcontent .contentContainer .btnContent .submitBtn[data-v-525a97f2]{color:#deba6d;border:.5px solid #30220d;background:#30220d;width:60%;text-align:center;height:38px;line-height:38px;border-radius:22px;font-size:14px;overflow:hidden}.noqg[data-v-525a97f2]{padding-top:%?50?%;text-align:center}.noqg uni-image[data-v-525a97f2]{width:30%;height:auto}.noqg .yihan[data-v-525a97f2]{text-align:center;font-size:%?26?%;color:#fbbd08;margin-top:%?30?%}.noqg .back[data-v-525a97f2]{width:60%;background-color:#236030;border-radius:%?10?%;padding:%?20?%;color:#fff;text-align:center;margin:0 auto;margin-top:%?60?%}',""]),t.exports=a},"72bf":function(t,a,i){t.exports=i.p+"static/img/alert-bg.22a1fbd2.png"},"7c96":function(t,a,i){"use strict";i("7a82");var e=i("4ea4").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0,i("4de4"),i("d3b7");var n=i("5af7"),s=e(i("9596")),o={components:{navbar:s.default},data:function(){return{scrollTop:0,hasAddr:!1,addressObj:{id:null,consignee:"",mobile:"",is_default:!1,province_name:"",city_name:"",district_name:"",address:""},productObj:{id:null,image:"",name:"",price:""},show:!1,qgSuccess:!0}},onPageScroll:function(t){this.scrollTop=t.scrollTop},methods:{close:function(){this.show=!1},onSubmit:function(){var t=this;if(this.hasAddr){var a={address_id:this.addressObj.id,goods_id:this.productObj.id};console.log(a),(0,n.createOrder)(a).then((function(a){console.log(a,"=="),1==a.code?t.show=!0:t.qgSuccess=!1}))}else this.$refs.uToast.show({message:"请选择收货地址"})},backHandle:function(){uni.redirectTo({url:"/pages/qianggou/productList"})},onSkip:function(t){switch(t){case"address":uni.navigateTo({url:"/pages/AddressList/AddressList?type=order"});break;case"cangku":uni.navigateTo({url:"/pages/qianggou/productList"});break}},getList:function(){var t=this;(0,n.getAddrList)().then((function(a){var i=a.data.filter((function(t){return t.is_default}));i.length>0?(t.hasAddr=!0,t.addressObj=Object.assign({},t.addressObj,i[0])):(t.hasAddr=!1,t.addressObj=t.$options.data().addressObj)}))}},onBackPress:function(t){return uni.redirectTo({url:"/pages/qianggou/productList"}),!0},onLoad:function(t){t.item&&(this.addressObj=Object.assign({},this.addressObj,JSON.parse(t.item)),this.hasAddr=!0),this.productObj=Object.assign({},this.productObj,uni.getStorageSync("qgPro")),this.addressObj.id||this.getList()}};a.default=o},"85c0":function(t,a,i){"use strict";i.d(a,"b",(function(){return n})),i.d(a,"c",(function(){return s})),i.d(a,"a",(function(){return e}));var e={uToast:i("2ce2").default,uPopup:i("77c2").default},n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",{staticClass:"page"},[e("navbar",{attrs:{title:"确认订单",isCenter:!0,back:!0},on:{onBack:function(a){arguments[0]=a=t.$handleEvent(a),t.backHandle.apply(void 0,arguments)}}}),t.qgSuccess?e("v-uni-view",[e("v-uni-view",{staticClass:"address-data"},[e("v-uni-view",{staticClass:"address-list",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.onSkip("address")}}},[t.hasAddr?e("v-uni-view",[e("v-uni-view",{staticClass:"list"},[e("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:t.addressObj.is_default,expression:"addressObj.is_default"}],staticClass:"moren"},[t._v("默认")]),e("v-uni-text",[t._v(t._s(t.addressObj.consignee))]),e("v-uni-text",{staticStyle:{"font-weight":"normal"}},[t._v(t._s(t.addressObj.mobile))])],1),e("v-uni-view",{staticClass:"list"},[e("v-uni-text",{staticStyle:{"font-weight":"normal"}},[t._v(t._s(t.addressObj.province_name)+t._s(t.addressObj.city_name)+t._s(t.addressObj.district_name))])],1),e("v-uni-view",{staticClass:"list"},[e("v-uni-text",{staticClass:"address"},[t._v(t._s(t.addressObj.address))])],1)],1):t._e(),t.hasAddr?t._e():e("v-uni-view",{staticClass:"nothasAddr"},[e("v-uni-view",{staticClass:"text"},[t._v("请选择收货地址")]),e("v-uni-text",{staticClass:"iconfont icon-more"})],1)],1),e("v-uni-view",{staticClass:"goods-data"},[e("v-uni-view",{staticClass:"goods-list"},[e("v-uni-view",{staticClass:"list"},[e("v-uni-view",{staticClass:"thumb"},[e("v-uni-image",{attrs:{src:t.productObj.image,mode:"aspectFill"}})],1),e("v-uni-view",{staticClass:"item"},[e("v-uni-view",{staticClass:"title"},[e("v-uni-text",{staticClass:"name one-omit"},[t._v(t._s(t.productObj.name))])],1),e("v-uni-view",{staticClass:"price-number"},[e("v-uni-view",{staticClass:"price"},[e("v-uni-text",{staticClass:"min"},[t._v("¥"+t._s(t.productObj.price))])],1),e("v-uni-view",{staticClass:"number"},[e("v-uni-text",[t._v("x 1")])],1)],1)],1)],1)],1)],1)],1),e("v-uni-view",{staticClass:"order-price"},[e("v-uni-view",{staticClass:"price-list"},[e("v-uni-view",{staticClass:"list"},[e("v-uni-view",{staticClass:"title"},[e("v-uni-text",[t._v("备注")])],1),e("v-uni-view",{staticClass:"price"},[e("v-uni-text"),e("v-uni-text",{staticClass:"iconfont icon-more"})],1)],1),e("v-uni-view",{staticClass:"list"},[e("v-uni-view",{staticClass:"title"},[e("v-uni-text",[t._v("商品总额")])],1),e("v-uni-view",{staticClass:"price"},[e("v-uni-text",[t._v(t._s(t.productObj.price))])],1)],1)],1)],1),e("v-uni-view",{staticClass:"address-tips",style:t.scrollTop>=100?"":"display:none"},[e("v-uni-text",[t._v(t._s(t.addressObj.province_name)+t._s(t.addressObj.city_name)+t._s(t.addressObj.district_name)+t._s(t.addressObj.address))])],1),e("v-uni-view",{staticClass:"footer-submit"},[e("v-uni-view",{staticClass:"price"},[e("v-uni-text",{staticClass:"min"},[t._v("合计:¥"+t._s(t.productObj.price))])],1),e("v-uni-view",{staticClass:"submit",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.onSubmit.apply(void 0,arguments)}}},[e("v-uni-text",[t._v("提交订单")])],1)],1)],1):t._e(),t.qgSuccess?t._e():e("v-uni-view",{staticClass:"noqg"},[e("v-uni-image",{attrs:{src:i("ff98"),mode:"widthFix"}}),e("v-uni-view",{staticClass:"yihan"},[t._v("很遗憾,您抢购的宝贝已被别人抢先一步...")]),e("v-uni-view",{staticClass:"back",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.backHandle.apply(void 0,arguments)}}},[t._v("返回继续抢购")])],1),e("u-toast",{ref:"uToast"}),e("u-popup",{attrs:{mode:"center",round:"10",closeOnClickOverlay:!1,customStyle:{width:"70%"},show:t.show},on:{close:function(a){arguments[0]=a=t.$handleEvent(a),t.close.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"showcontent"},[e("v-uni-image",{attrs:{src:i("72bf"),mode:"widthFix"}}),e("v-uni-view",{staticClass:"contentContainer"},[e("v-uni-view",{staticClass:"text"},[e("v-uni-view",{staticClass:"textTitle"},[t._v("温馨提示")]),e("v-uni-view",{staticClass:"intrTitle"},[t._v("恭喜您,抢购成功")]),e("v-uni-view",{staticClass:"intr"},[t._v("您可以在“我的->我的仓库”中查看订单")])],1),e("v-uni-view",{staticClass:"btnContent"},[e("v-uni-view",{staticClass:"submitBtn",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.onSkip("cangku")}}},[t._v("确定")])],1)],1)],1)],1)],1)},s=[]},"8d7e":function(t,a,i){var e=i("24fb");a=e(!1),a.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/* 文章场景相关 */.navbar[data-v-bbe9cf06]{background-color:#fff}.navbar .narbar-flexd[data-v-bbe9cf06]{background-size:100% 100%!important;position:fixed;top:0;left:0;z-index:99;width:100%}.navbar .narbar-flexd .narbar-content[data-v-bbe9cf06]{padding:0 %?24?%;display:flex;box-sizing:border-box;justify-content:center;align-items:center;background-color:#fff}.navbar .narbar-flexd .narbar-content .left[data-v-bbe9cf06]{position:absolute;left:5%;font-weight:600}.navbar .narbar-flexd .narbar-content .title[data-v-bbe9cf06]{font-size:%?36?%;font-family:PingFang SC;font-weight:500;color:#222}.navbar .narbar-flexd .isCenter[data-v-bbe9cf06]{padding:0 %?24?%;display:flex;box-sizing:border-box;justify-content:flex-start;align-items:center}.navbar .narbar-flexd .isCenter .left[data-v-bbe9cf06]{position:absolute;left:5%;font-weight:600}.navbar .narbar-flexd .isCenter .title[data-v-bbe9cf06]{font-size:%?36?%;font-family:PingFang SC;font-weight:500;color:#222}.navbar .navHeight[data-v-bbe9cf06]{height:60px}',""]),t.exports=a},9596:function(t,a,i){"use strict";i.r(a);var e=i("ad1c"),n=i("50d5");for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(a,t,(function(){return n[t]}))}(s);i("2e2a");var o=i("f0c5"),r=Object(o["a"])(n["default"],e["b"],e["c"],!1,null,"bbe9cf06",null,!1,e["a"],void 0);a["default"]=r.exports},9716:function(t,a,i){"use strict";i.r(a);var e=i("85c0"),n=i("062b");for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(a,t,(function(){return n[t]}))}(s);i("a914");var o=i("f0c5"),r=Object(o["a"])(n["default"],e["b"],e["c"],!1,null,"525a97f2",null,!1,e["a"],void 0);a["default"]=r.exports},a914:function(t,a,i){"use strict";var e=i("efa6"),n=i.n(e);n.a},ad1c:function(t,a,i){"use strict";i.d(a,"b",(function(){return n})),i.d(a,"c",(function(){return s})),i.d(a,"a",(function(){return e}));var e={uIcon:i("63a6").default},n=function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("v-uni-view",{staticClass:"navbar"},[i("v-uni-view",{staticClass:"narbar-flexd"},[i("v-uni-view",{style:{height:t.statusBarHeight+"px",background:"#ffffff"}}),i("v-uni-view",{class:t.isCenter?"narbar-content":"isCenter",style:{height:t.navBareight+"px"}},[t.back&&t.toIndex?i("v-uni-view",{staticClass:"left",style:[{color:t.color},{paddingTop:t.paddingTop}],on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.onBack.apply(void 0,arguments)}}},[i("u-icon",{attrs:{name:"arrow-left",size:"20"}})],1):t._e(),t.back&&!t.toIndex?i("v-uni-view",{staticClass:"left",style:[{color:t.color},{paddingTop:t.paddingTop}],on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.onBackIndex.apply(void 0,arguments)}}},[i("u-icon",{attrs:{name:"arrow-left",size:"20"}})],1):t._e(),i("v-uni-view",{staticClass:"title"},[t._v(t._s(t.title))])],1)],1)],1)},s=[]},efa6:function(t,a,i){var e=i("541d");e.__esModule&&(e=e.default),"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var n=i("4f06").default;n("772abbc9",e,!0,{sourceMap:!1,shadowMode:!1})},fa27:function(t,a,i){"use strict";i("7a82"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var e={data:function(){return{statusBarHeight:20,navBareight:45,windowWidth:375}},props:{title:{type:String,default:"#fff"},toIndex:{type:Boolean,default:!0},color:{type:String,default:"#222"},paddingTop:{type:String},background:{type:String,default:"transparent"},back:{type:Boolean,default:!1},isCenter:{type:Boolean,default:!0}},created:function(){var t=uni.getSystemInfoSync(),a=t.statusBarHeight,i=t.windowWidth;this.statusBarHeight=a,this.windowWidth=i},methods:{onBack:function(){this.$emit("onBack")},onBackIndex:function(){uni.switchTab({url:"/pages/index/index"})}}};a.default=e},ff98:function(t,a,i){t.exports=i.p+"static/img/ku.bafbfcc9.png"}}]);