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 line
19 KiB
1 line
19 KiB
1 year ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-ConfirmOrder-ConfirmOrder"],{"033e":function(t,i,e){t.exports=e.p+"static/img/alert-bg.22a1fbd2.png"},"099c":function(t,i,e){"use strict";e("7a82");var a=e("4ea4").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("4de4"),e("d3b7");var n=e("4838"),s=a(e("ac9a")),d={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 i={address_id:this.addressObj.id,seller_order_id:this.productObj.id};console.log(i),(0,n.createOrder)(i).then((function(i){console.log(i,"=="),1==i.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"});break;case"cangku":uni.navigateTo({url:"/pages/qianggou/productList"});break}},getList:function(){var t=this;(0,n.getAddrList)().then((function(i){var e=i.data.filter((function(t){return t.is_default}));e.length>0?(t.hasAddr=!0,t.addressObj=Object.assign({},t.addressObj,e[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()}};i.default=d},"0cca":function(t,i,e){var a=e("96cf");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=e("4f06").default;n("01e151a2",a,!0,{sourceMap:!1,shadowMode:!1})},"22c5":function(t,i,e){"use strict";e.r(i);var a=e("7c17"),n=e("9c43");for(var s in n)["default"].indexOf(s)<0&&function(t){e.d(i,t,(function(){return n[t]}))}(s);e("77d1");var d=e("f0c5"),o=Object(d["a"])(n["default"],a["b"],a["c"],!1,null,"b49d7b36",null,!1,a["a"],void 0);i["default"]=o.exports},"2f7a":function(t,i,e){"use strict";e.r(i);var a=e("623a"),n=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"]=n.a},"5a8c":function(t,i,e){var a=e("24fb");i=a(!1),i.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 主要颜色 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.navbar[data-v-68576b6b]{background-color:#fff}.navbar .narbar-flexd[data-v-68576b6b]{background-size:100% 100%!important;position:fixed;top:0;left:0;z-index:99;width:100%}.navbar .narbar-flexd .narbar-content[data-v-68576b6b]{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-68576b6b]{position:absolute;left:5%;font-weight:600}.navbar .narbar-flexd .
|