zx/public/static/js/pages-points_mall-integral_...

1 line
35 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-points_mall-integral_order"],{"0b80":function(t,e,r){var i=r("c86c");e=i(!1),e.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/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */[data-v-30558df6] uni-checkbox[disabled] .uni-checkbox-input{background-color:#eee}.alipaysubmit[data-v-30558df6]{display:none}.order-submission .line uni-image[data-v-30558df6]{width:100%;height:100%;display:block}.order-submission .address[data-v-30558df6]{padding:%?28?% %?30?%;background-color:#fff;box-sizing:border-box}.order-submission .address .addressCon[data-v-30558df6]{width:%?610?%;font-size:%?26?%;color:#666}.order-submission .address .addressCon .name[data-v-30558df6]{font-size:%?30?%;color:#282828;font-weight:700;margin-bottom:%?10?%}.order-submission .address .addressCon .name .phone[data-v-30558df6]{margin-left:%?50?%}.order-submission .address .addressCon .default[data-v-30558df6]{margin-right:%?12?%}.order-submission .address .addressCon .setaddress[data-v-30558df6]{color:#333;font-size:%?28?%}.order-submission .address .iconfont[data-v-30558df6]{font-size:%?35?%;color:#707070}.order-submission .allAddress[data-v-30558df6]{width:100%}.order-submission .allAddress .nav[data-v-30558df6]{width:%?710?%;margin:0 auto}.order-submission .allAddress .nav .item[data-v-30558df6]{width:%?355?%;position:relative}.order-submission .allAddress .nav .item.on[data-v-30558df6]{position:relative;width:%?250?%}.order-submission .allAddress .address[data-v-30558df6]{height:%?150?%;margin:0 auto}.order-submission .allAddress .line[data-v-30558df6]{margin:0 auto;position:absolute;left:0;top:0;width:100%;height:%?3?%}.order-submission .wrapper .item .list .payItem[data-v-30558df6]{border:1px solid #eee;border-radius:%?6?%;height:%?86?%;width:100%;box-sizing:border-box;margin-top:%?20?%;font-size:%?28?%;color:#282828}.order-submission .wrapper .item .list .payItem.on[data-v-30558df6]{border-color:var(--view-theme);color:var(--view-theme)}.order-submission .wrapper .item .list .payItem .name[data-v-30558df6]{width:50%;text-align:center;border-right:1px solid #eee;justify-content:left;padding-left:%?80?%}.order-submission .wrapper .item .list .payItem .name .iconfont[data-v-30558df6]{width:%?44?%;height:%?44?%;border-radius:50%;text-align:center;line-height:%?44?%;background-color:#fe960f;color:#fff;font-size:%?30?%;margin-right:%?15?%}.order-submission .wrapper .item .list .payItem .name .iconfont.icon-weixin2[data-v-30558df6]{background-color:#41b035}.order-submission .wrapper .item .list .payItem .name .iconfont.icon-icon34[data-v-30558df6]{background-color:#4295d5}.order-submission .wrapper .item .list .payItem .tip[data-v-30558df6]{width:49%;text-align:center;font-size:%?26?%;color:#aaa}.storeinfo-wrapper .store-item[data-v-30558df6]{margin-top:%?12?%;background-color:#fff}.storeinfo-wrapper .store-item .product-item[data-v-30558df6]{display:flex;padding:%?25?% %?30?%;border-top:1px solid #f0f0f0}.storeinfo-wrapper .store-item .product-item .img-box[data-v-30558df6]{width:%?130?%;height:%?130?%}.storeinfo-wrapper .store-item .product-item .img-box uni-image[data-v-30558df6]{width:%?130?%;height:%?130?%;border-radius:%?16?%}.storeinfo-wrapper .store-item .product-item .content[data-v-30558df6]{position:relative;width:%?550?%;margin-left:%?30?%;font-size:%?28?%;color:#282828;overflow:hidden}.storeinfo-wrapper .store-item .product-item .content .number[data-v-30558df6]{display:block;text-align:right;color:#999;font-size:%?26?%}.storeinfo-wrapper .store-item .product-item .content .label[data-v-30558df6]{margin-top:%?10?%;color:#999;font-size:%?20?%}.storeinfo-wrapper .store-item .product-item .content .price[data-v-30558df6]{margin-top:%?20?%;color:var(--view-priceColor);position:relative}.storeinfo-wrapper .store-item .product-item .content .price uni-text[data-v-30558df6]{margin-left:%?10?%;color:#999}.storeinfo-wrapper .store-item .product-item .content .err-txt[data-v-30558df6]{display:flex;align-items:center;margin-top:%?18?%;color:#e93323}.storeinfo-wrapper .store-item .product-item .content .err-txt .iconfont[data-v-30558df6]{margin-right:%?10?%}.order-submission .wrapper[data-v-30558df6]{background-color:#fff;margin-top:%?13?%}.order-submission .wrapper .item .name[data-v-30558df6]{position:relative}.order-submission .wrapper .item .asterisk[data-v-30558df6]{position:absolute;color:red;left:%?-15?%}.order-submission .wrapper .item[data-v-30558df6]{padding:%?27?% %?30?%;font-size:%?30?%;color:#282828;border-bottom:1px solid #f0f0f0}.order-submission .wrapper .item .discount[data-v-30558df6]{font-size:%?30?%;color:#999}.order-submission .wrapper .item .discount uni-input[data-v-30558df6]{text-align:end}.order-submission .wrapper .item .discount .iconfont[data-v-30558df6]{color:#515151;font-size:%?30?%;margin-left:%?15?%}.order-submission .wrapper .item .discount .num[data-v-30558df6]{font-size:%?32?%;margin-right:%?20?%}.order-submission .wrapper .item .shipping[data-v-30558df6]{font-size:%?30?%;color:#999;position:relative;padding-right:%?58?%}.order-submission .wrapper .item .shipping .iconfont[data-v-30558df6]{font-size:%?35?%;color:#707070;position:absolute;right:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);margin-left:%?30?%}.order-submission .wrapper .item uni-textarea[data-v-30558df6]{background-color:#f9f9f9;width:%?690?%;height:%?140?%;border-radius:%?3?%;margin-top:%?30?%;padding:%?25?% %?28?%;box-sizing:border-box}.order-submission .wrapper .item .placeholder[data-v-30558df6]{color:#ccc}.order-submission .wrapper .item .list[data-v-30558df6]{margin-top:%?35?%}.order-submission .moneyList[data-v-30558df6]{margin-top:%?12?%;background-color:#fff;padding:%?30?%}.order-submission .moneyList .item[data-v-30558df6]{font-size:%?28?%;color:#282828}.order-submission .moneyList .item ~ .item[data-v-30558df6]{margin-top:%?20?%}.order-submission .moneyList .item .money[data-v-30558df6]{color:#868686}.order-submission .footer[data-v-30558df6]{width:100%;height:%?100?%;background-color:#fff;padding:0 %?30?%;font-size:%?28?%;color:#333;box-sizing:border-box;position:fixed;bottom:0;left:0}.order-submission .footer .color-t[data-v-30558df6]{color:var(--view-theme)}.order-submission .footer .settlement[data-v-30558df6]{font-size:%?30?%;color:#fff;width:%?240?%;height:%?70?%;background-color:var(--view-theme);border-radius:%?50?%;text-align:center;line-height:%?70?%}.footer .transparent[data-v-30558df6]{opacity:0}.pictrue uni-image[data-v-30558df6]{width:%?130?%;height:%?130?%}',""]),t.exports=e},"1a75":function(t,e,r){"use strict";r.r(e);var i=r("b29c"),a=r("522a");for(var n in a)["default"].indexOf(n)<0&&function(t){r.d(e,t,(function(){return a[t]}))}(n);r("471a");var s=r("828b"),o=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"30558df6",null,!1,i["a"],void 0);e["default"]=o.exports},"2c03":function(t,e,r){"use strict";r("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r("672a"),a=r("8f59"),n=r("aa10"),s={props:{pagesUrl:{type:String,default:""},address:{type:Object,default:function(){return{address:!0,addressId:0}}},isLog:{type:Boolean,default:!1}},computed:(0,a.mapGetters)(["viewColor"]),data:function(){return{domain:n.HTTP_REQUEST_URL,active:0,addressList:[],is_loading:!0}},methods:{tapAddress:function(t,e){this.active=t,this.$emit("OnChangeAddress",e)},close:function(){this.$emit("changeClose"),this.$emit("changeTextareaStatus")},goAddressPages:function(){this.$emit("changeClose"),this.$emit("changeTextareaStatus"),uni.navigateTo({url:this.pagesUrl})},getAddressList:function(){var t=this;(0,i.getAddressList)({page:1,limit:5}).then((function(e){for(var r=e.data.list,i=0;i<e.data.list.length;i++)r[i].address_id==t.address.addressId&&(t.active=i);t.$set(t,"addressList",r),t.is_loading=!1}))}}};e.default=s},"3a60":function(t,e,r){"use strict";r("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.arrivalSubscribe=function(){var t=a();return n([t.PRODUCT_INCREASE])},e.auth=a,e.openEextractSubscribe=function(){var t=a();return n([t.EXTRACT_NOTICE])},e.openExtrctSubscribe=function(){var t=a();return n([t.EXTRACT_NOTICE])},e.openOrderRefundSubscribe=function(){var t=a();return n([t.REFUND_CONFORM_CODE])},e.openOrderSubscribe=function(){var t=a();return n([t.ORDER_DELIVER_SUCCESS,t.DELIVER_GOODS_CODE])},e.openPaySubscribe=function(){var t=a();return n([t.DELIVER_GOODS_CODE,t.ORDER_DELIVER_SUCCESS,t.ORDER_PAY_SUCCESS])},e.openRechargeSubscribe=function(){var t=a();return n([t.USER_BALANCE_CHANGE])},e.subscribe=n,r("bf0f");var i=r("d838");function a(){var t,e=uni.getStorageSync(i.SUBSCRIBE_MESSAGE);return t=e||{},t}function n(t){wx;return new Promise((function(e,r){uni.requestSubscribeMessage({tmplIds:t,success:function(t){return e(t)},fail:function(t){return e(t)},complete:function(t){}})}))}},"44eb":function(t,e,r){"use strict";r.r(e);var i=r("2c03"),a=r.n(i);for(var n in i)["default"].indexOf(n)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(n);e["default"]=a.a},"471a":function(t,e,r){"use strict";var i=r("e821"),a=r.n(i);a.a},"475f":function(t,e,r){"use strict";r("6a54");var i=r("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.getIntegralGoodsList=function(t){return a.default.get("points/lst",t,{noAuth:!0})},e.getIntegralHome=function(){return a.default.get("points/home",{},{noAuth:!0})},e.getIntegralProductDetail=function(t){return a.default.get("points/detail/".concat(t),{},{noAuth:!0})},e.getIntegralScope=function(){return a.default.get("points/scope",{},{noAuth:!0})},e.integralOrderConfirm=function(t){return a.default.post("order/v3/check",t,{noAuth:!0})},e.integralOrderCreate=function(t){return a.default.post("order/v3/create",t,{noAuth:!0})},e.integralOrderDelete=function(t){return a.default.post("points/order/deleate/".concat(t),{},{noAuth:!0})},e.integralOrderDetail=function(t){return a.default.get("points/order/detail/".concat(t),{},{noAuth:!0})},e.integralOrderList=function(t){return a.default.get("points/order/lst",t,{noAuth:!0})},e.integralOrderTake=function(t){return a.default.post("points/order/take/".concat(t),{},{noAuth:!0})};var a=i(r("fea3"))},"4e70":function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("v-uni-view",{style:t.viewColor},[r("v-uni-view",{staticClass:"address-window",class:1==t.address.address?"on":""},[r("v-uni-view",{staticClass:"title"},[t._v("选择地址"),r("v-uni-text",{staticClass:"iconfont icon-guanbi",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}})],1),r("v-uni-scroll-view",{staticClass:"list",attrs:{"scroll-y":"true"}},t._l(t.addressList,(function(e,i){return r("v-uni-view",{key:i,staticClass:"item acea-row row-between-wrapper",class:t.active==i?"t-color":"",on:{click:function(r){arguments[0]=r=t.$handleEvent(r),t.tapAddress(i,e.address_id)}}},[r("v-uni-text",{staticClass:"iconfont icon-ditu",class:t.active==i?"t-color":""}),r("v-uni-view",{staticClass:"address"},[r("v-uni-view",{staticClass:"name",class:t.active==i?"t-color":""},[t._v(t._s(e.real_name)),r("v-uni-text",{staticClass:"phone"},[t._v(t._s(e.phone))])],1),r("v-uni-view",{staticClass:"line1"},[t._v(t._s(e.province)+t._s(e.city)+t._s(e.district)+t._s(e.street||"")+t._s(e.detail))])],1),r("v-uni-text",{staticClass:"iconfont icon-complete",class:t.active==i?"t-color":""})],1)})),1),t.is_loading||t.addressList.length?t._e():r("v-uni-view",{staticClass:"pictrue"},[r("v-uni-image",{attrs:{src:t.domain+"/static/images/noAddress.png"}}),r("v-uni-view",[t._v("暂无地址")])],1),r("v-uni-view",{staticClass:"addressBnt",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goAddressPages.apply(void 0,arguments)}}},[t._v("添加新地址")])],1),r("v-uni-view",{staticClass:"mask",attrs:{catchtouchmove:"true",hidden:0==t.address.address},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}})],1)},a=[]},"522a":function(t,e,r){"use strict";r.r(e);var i=r("7efb"),a=r.n(i);for(var n in i)["default"].indexOf(n)<0&&function(t){r.d(e,t,(function(){return i[t]}))}(n);e["default"]=a.a},"7e00":function(t,e,r){"use strict";r("6a54");var i=r("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.arrivalNoticeApi=function(t){return n.default.post("store/product/increase_take",t)},e.bagExplain=function(){return n.default.get("store/product/bag/explain")},e.bagRecommend=function(){return n.default.get("product/spu/bag/recommend")},e.collectAdd=function(t){return n.default.post("user/relation/create",t)},e.collectAll=function(t){return n.default.post("user/relation/batch/create",t)},e.collectDel=function(t){return n.default.post("user/relation/delete",t)},e.copyPasswordApi=function(t){return n.default.get("product/spu/copy",t,{noAuth:!0})},e.copyPasswordSearch=function(t){return n.default.get("command/copy",t,{noAuth:!0})},e.create=function(t){return n.default.post("intention/create",t)},e.discountsCartAdd=function(t){return n.default.post("user/cart/batchCreate",t)},e.express=function(t){return n.default.post("ordero/express/"+t,{noAuth:!0})},e.followStore=function(t){return n.default.post("user/relation/create",{type:10,type_id:t})},e.getApplicationRecordList=function(t){return n.default.get("intention/lst",t)},e.getBrandlist=function(t){return n.default.get("store/product/brand/lst",t,{noAuth:!0})},e.getBroadcastListApi=function(t){return n.default.get("broadcast/lst",t,{noAuth:!0})},e.getCaptcha=function(){return n.default.get("captcha")},e.getCategoryList=function(){return n.default.get("store/product/category/lst",{},{noAuth:!0})},e.getCollectUserList=function(t){return n.default.get("user/relation/product/lst",t)},e.getCouponProductlist=function(t){t.brand_id&&Array.isArray(t.brand_id)&&(t=(0,a.default)({},t),t.brand_id=t.brand_id.toString());return n.default.get("product/spu/coupon_product",t,{noAuth:!0})},e.getDiscountsLst=function(t){return n.default.get("discounts/lst",t,{noAuth:!0})},e.getGeocoder=function(t){return n.default.get("lbs/geocoder?location=".concat(t.lat,",").concat(t.long),{},{noAuth:!0})},e.getGoodsDetails=function(t){return n.default.get("intention/detail/"+t,{})},e.getGroomList=function(t,e){return n.default.get("product/spu/hot/"+t,e,{noAuth:!0})},e.getHotBanner=function(t){return n.default.get("common/hot_banner/"+t,{},{noAuth:!0})},e.getHotRanking=function(){return n.default.get("product/spu/hot_top",{},{noAuth:!0})},e.getLiveList=function(t){return n.default.get("broadcast/hot",t,{noAuth:!0})},e.getMerProductHot=function(t,e){return n.default.get("product/spu/recommend",{page:void 0===e.page?1:e.page,limit:void 0===e.limit?10:e.limit,mer_id:t||""},{noAuth:!0})},e.getMerchantLst=function(t){return n.default.get("user/relation/merchant/lst",t,{noAuth:!0})},e.getParmasList=function(t){return n.default.get("product/spu/params",t,{noAuth:!0})},e.getParmasValue=function(t){return n.default.get("product/spu/params_value/".concat(t),{},{noAuth:!0})},e.getPresellProductDetail=function(t){return n.default.get("store/product/presell/detail/"+t,{},{noAuth:!0})},e.getPreviewProDetail=function(t){return n.default.get("store/product/preview",t,{noAuth:!0})},e.getProductCode=function(t,e){return n.default.get("store/product/qrcode/"+t,e,{noAuth:!0})},e.getProductDetail=function(t){return n.default.get("store/product/detail/"+t,{},{noAuth:!0})},e.getProductHot=function(t,e){return n.default.get("product/spu/recommend",{page:void 0===t?1:t,limit:void 0===e?10:e},{noAuth:!0})},e.getProductParmas=function(t){return n.default.get("store/product/show/"+t,{},{noAuth:!0})},e.getProductslist=function(t){t.brand_id&&Array.isArray(t.brand_id)&&(t=(0,a.default)({},t),t.brand_id=t.brand_id.toString());return n.default.get("product/spu/lst",t,{noAuth:!0})},e.getReplyConfig=function(t){return n.default.get("reply/config/"+t)},e.getReplyList=function(t,e){return n.default.get("store/product/reply/lst/"+t,e,{noAuth:!0})},e.getSearchKeyword=function(){return n.default.get("common/hot_keyword",{},{noAuth:!0})},e.getSeckillProductDetail=function(t,e){return n.default.get("store/product/seckill/detail/"+t,e,{noAuth:!0})},e.getStoreCategory=function(t,e){return n.default.get("store/merchant/category/lst/"+t,e,{noAuth:!0})},e.getStoreCoupon=function(t){return n.default.get("coupon/store/"+t,{noAuth:!0})},e.getStoreDetail=function(t,e){return n.default.get("store/merchant/detail/"+t,e,{noAuth:!0})},e.getStoreGoods=function(t,e){return n.default.get("product/spu/merchant/"+t,e,{noAuth:!0})},e.getStoreRecommend=function(t){return n.default.get("store/product/good_list/"+t,{},{noAuth:!0})},e.getStoreTypeApi=function(t){return n.default.get("intention/type",t,{noAuth:!0})},e.getTodayHotSearch=function(){return n.default.get("product/spu/hot_lst",{},{noAuth:!0})},e.merClassifly=function(){return n.default.get("intention/cate",{},{noAuth:!0})},e.merchantProduct=function(t,e){e.brand_id&&Array.isArray(e.brand_id)&&(e=(0,a.default)({},e),e.brand_id=e.brand_id.toString());return n.default.get("product/spu/merchant/"+t,e,{noAuth:!0})},e.merchantQrcode=function(t,e){return n.default.get("store/merchant/qrcode/"+t,e,{noAuth:!0})},e.postCartAdd=function(t){return n.default.post("user/cart/create",t)},e.priceRuleApi=function(t){return n.default.get("store/product/price_rule/".concat(t),{},{noAuth:!0})},e.productBag=function(t){return n.default.get("product/spu/bag",t,{noAuth:!0})},e.storeCategory=function(t){return n.default.get("store/product/category",t,{noAuth:!0})},e.storeCertificate=function(t){return n.default.post("store/certificate/".concat(t.merId),t)},e.storeMerchantList=function(t){return n.default.get("store/merchant/lst",t,{noAuth:!0})},e.storeServiceList=function(t,e){return n.default.get("product/spu/local/".concat(t),e,{noAuth:!0})},e.unfollowStore=function(t){return n.default.post("user/relation/delete",{type:10,type_id:t})},e.updateGoodsRecord=function(t,e){return n.default.post("intention/update/"+t,e)},e.userCollectDel=function(t){return n.default.post("user/relation/batch/delete",t)},e.verify=function(t){return n.default.post("auth/verify",t)},r("c9b5"),r("bf0f"),r("ab80"),r("c223");var a=i(r("9b1b")),n=i(r("fea3"))},"7efb":function(t,e,r){"use strict";r("6a54");var i=r("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,r("e838"),r("dc8a"),r("c223"),r("e966");var a=r("475f"),n=r("672a"),s=(r("7e00"),r("d838"),r("3a60"),i(r("ec38"))),o=r("aa10"),d=r("e44d"),u=r("8f59"),c={components:{addressWindow:s.default},data:function(){return{confirm:[],textareaStatus:!0,cartArr:[{name:"微信支付",icon:"icon-weixin2",value:"weixin",title:"微信快捷支付",payStatus:1},{name:"支付宝支付",icon:"icon-icon34",value:"alipay",title:"支付宝支付",payStatus:this.$store.getters.globalData.alipay_open},{name:"余额支付",icon:"icon-icon-test",value:"balance",title:"可用余额:",payStatus:this.$store.getters.globalData.yue_pay_status}],formContent:"",payType:"weixin",openType:1,active:0,coupon:{coupon:!1,list:[],statusTile:"立即使用"},address:{address:!1},addressInfo:{},pinkId:0,addressId:0,couponId:0,cartId:"",BargainId:0,combinationId:0,seckillId:0,userInfo:{},mark:"",couponTitle:"请选择",coupon_price:0,useIntegral:!1,integral_price:0,integral:0,ChangePrice:0,formIds:[],status:0,is_address:!1,toPay:!1,shippingType:0,system_store:{},storePostage:0,contacts:"",contactsTel:"",mydata:{},storeList:[],store_self_mention:0,cartInfo:{},priceGroup:{},animated:!1,totalPrice:0,integralRatio:"0",pagesUrl:"",offlinePostage:"",from:"",news:1,order_key:"",order_type:20,invTitle:"不开发票",special_invoice:!1,invoice_func:!1,header_type:"",invShow:!1,invList:[],invChecked:"",urlQuery:"",pay_close:!1,resData:{},product_type:1,newImg:[],domain:o.HTTP_REQUEST_URL}},computed:(0,u.mapGetters)(["isLogin","viewColor","keyColor"]),onLoad:function(t){if(this.from=this.$wechat.isWeixin()?"weixin":"h5","weixin"==this.payType&&(this.payType=this.from),!t.cartId)return this.$util.Tips({title:"请选择要购买的商品"},{tab:3,url:1});this.addressId=t.addressId||0,this.cartId=t.cartId,this.is_address=!!t.is_address,this.invChecked=t.invoice_id||"",this.textareaStatus=!0,this.isLogin&&0==this.toPay?this.getFun():(0,d.toLogin)()},onShow:function(){uni.removeStorageSync("form_type_cart");var t=this;uni.$on("handClick",(function(e){e&&(t.system_store=e.address),uni.$off("handClick")}))},methods:{getFun:function(){this.getaddressInfo(),this.$nextTick((function(){this.getUserInfo(),this.$refs.addressWindow.getAddressList()}))},getUserInfo:function(){var t=this;(0,n.getUserInfo)().then((function(e){t.userInfo=e.data}))},payClose:function(){this.pay_close=!1},payItem:function(t){var e=t;this.active=e,this.animated=!0,this.payType=this.cartArr[e].value,"weixin"==this.payType&&(this.payType=this.from)},goPay:function(){var t;if(!this.addressId)return this.$util.Tips({title:"请选择收货地址"});if(parseFloat(this.resData.true_integral)<parseFloat(this.resData.order_total_integral))return this.$util.Tips({title:"积分不足!"});if(t={cart_id:this.cartId.split(","),address_id:this.addressId,pay_type:this.payType,mark:this.mark,order_type:this.order_type,key:this.order_key,return_url:"http://"+window.location.host+"/pages/points_mall/exchange_record"},t.mark&&this.isEmojiCharacter(t.mark[Object.keys(t.mark)[0]]))this.$util.Tips({title:"备注不允许输入表情!"});else{if("balance"==t.payType&&parseFloat(this.userInfo.now_money)<parseFloat(this.totalPrice))return this.$util.Tips({title:"余额不足!"});uni.showLoading({title:"订单支付中",mask:!0}),this.payment(t)}},payment:function(t){var e=this,r=this;(0,a.integralOrderCreate)(t).then((function(t){var i=t.data.status,a=t.data.result.order_id,n=t.data.result.pay_key,s=t.data.result.config,o="/pages/order_pay_status/index?order_type=20&order_id="+a+"&msg="+t.message;switch(r.orderPay=!0,uni.hideLoading(),i){case"ORDER_EXIST":case"EXTEND_ORDER":case"PAY_ERROR":case"error":return r.$util.Tips({title:t.message},{tab:5,url:o});case"success":return r.$util.Tips({title:t.message,icon:"success"},{tab:5,url:o});case"alipay":case"alipayQr":return void uni.navigateTo({url:"/pages/order_pay_back/index?keyCode="+n+"&url="+s});case"wechat":case"weixin":case"weixinApp":e.$wechat.pay(s).then((function(t){return r.$util.Tips({title:t.message,icon:"success"},{tab:4,url:o})})).catch((function(t){if("chooseWXPay:cancel"==t.errMsg)return r.$util.Tips({title:"取消支付"},{tab:5,url:o})}));break;case"balance":return r.$util.Tips({title:t.message},{tab:5,url:o+"&status=1"});case"h5":var d=window.location.protocol+"//"+window.location.host,u="".concat(d,"/pages/order_pay_status/index?order_type=20&order_id=").concat(a,"&msg=").concat(t.message),c=encodeURIComponent(u),l=s.mweb_url||s.h5_url,f="".concat(l,"&redirect_url=").concat(c);setTimeout((function(){location.href=f}),100);break;default:var p="/pages/order_pay_status/index?order_type=20&order_id="+a+"&msg=取消支付";return r.$util.Tips({title:"取消支付"},{tab:5,url:p+"&status=0"})}})).catch((function(t){return uni.hideLoading(),r.$util.Tips({title:t})}))},isEmojiCharacter:function(t){if(t)for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(55296<=r&&r<=56319){if(t.length>1){var i=t.charCodeAt(e+1),a=1024*(r-55296)+(i-56320)+65536;if(118784<=a&&a<=128895)return!0}}else if(t.length>1){i=t.charCodeAt(e+1);if(8419==i)return!0}else{if(8448<=r&&r<=10239)return!0;if(11013<=r&&r<=11015)return!0;if(10548<=r&&r<=10549)return!0;if(12951<=r&&r<=12953)return!0;if(169==r||174==r||12349==r||12336==r||11093==r||11036==r||11035==r||11088==r)return!0}}},changeClose:function(){this.$set(this.address,"address",!1)},ChangCouponsClose:function(){},changeTextareaStatus:function(){},OnChangeAddress:function(t){this.textareaStatus=!0,this.addressId=t,this.address.address=!1,this.getaddressInfo()},bindHideKeyboard:function(t){this.mark=t.detail.value},getConfirm:function(){var t=this,e=this;(0,a.integralOrderConfirm)({cart_id:this.cartId.split(","),address_id:this.addressId}).then((function(t){e.$set(e,"resData",t.data),e.$set(e,"cartInfo",t.data.order),e.$set(e,"order_key",t.data.key),e.$set(e,"order_type",t.data.order_type)})).catch((function(e){return t.$util.Tips({title:e},{tab:3,url:1})}))},bindDateChange:function(t,e){this.confirm[e].value=t.target.value},bindTimeChange:function(t,e){this.confirm[e].value=t.target.value},getaddressInfo:function(){var t=this;t.addressId?(0,n.getAddressDetail)(t.addressId).then((function(e){e.data.is_default=parseInt(e.data.is_default),t.addressInfo=e.data||{},t.addressId=e.data.address_id||0,t.address.addressId=e.data.address_id||0,t.getConfirm()})):(0,n.getAddressList)().then((function(e){t.addressInfo=e.data.list.length>0?e.data.list[0]:{},t.addressId=e.data.list.length>0?e.data.list[0].address_id:0,t.address.addressId=e.data.list.length>0?e.data.list[0].address_id:0,t.getConfirm()}))},onAddress:function(){this.addressInfo.real_name?(this.textareaStatus=!1,this.address.address=!0,this.pagesUrl="/pages/users/user_address/index?cartId="+this.cartId+"&product_type=20"):uni.navigateTo({url:"/pages/users/user_address/index?cartId=".concat(this.cartId,"&product_type=20")})},clickTextArea:function(){var t=this;this.$nextTick((function(){t.$refs.getFocus.focus()}))}}};e.default=c},9194:function(t,e,r){var i=r("c86c");e=i(!1),e.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/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.address-window[data-v-35d6c51e]{background-color:#fff;position:fixed;bottom:0;left:0;width:100%;z-index:101;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);transition:all .3s cubic-bezier(.25,.5,.5,.9)}.address-window.on[data-v-35d6c51e]{-webkit-transform:translateZ(0);transform:translateZ(0)}.address-window .title[data-v-35d6c51e]{font-size:%?32?%;font-weight:700;text-align:center;height:%?123?%;line-height:%?123?%;position:relative}.address-window .title .iconfont[data-v-35d6c51e]{position:absolute;right:%?30?%;color:#8a8a8a;font-size:%?35?%}.address-window .list[data-v-35d6c51e]{max-height:%?650?%}.address-window .list .item[data-v-35d6c51e]{margin-left:%?30?%;padding-right:%?30?%;border-bottom:1px solid #eee;height:%?129?%;font-size:%?25?%;color:#333}.address-window .list .item .iconfont[data-v-35d6c51e]{font-size:%?37?%;color:#2c2c2c}.address-window .list .item .iconfont.icon-complete[data-v-35d6c51e]{font-size:%?30?%;color:#fff}.address-window .list .item .address[data-v-35d6c51e]{width:%?560?%}.address-window .list .item .address .name[data-v-35d6c51e]{font-size:%?28?%;font-weight:700;color:#282828;margin-bottom:%?4?%}.address-window .list .item .address .name .phone[data-v-35d6c51e]{margin-left:%?18?%}.address-window .addressBnt[data-v-35d6c51e]{font-size:%?30?%;font-weight:700;color:#fff;width:%?690?%;height:%?86?%;border-radius:%?43?%;text-align:center;line-height:%?86?%;margin:%?85?% auto;background-color:var(--view-theme)}.address-window .pictrue[data-v-35d6c51e]{text-align:center}.address-window .pictrue uni-image[data-v-35d6c51e], .address-window .pictrue uni-image[data-v-35d6c51e]{width:%?414?%;height:%?305?%}.address-window .pictrue uni-view[data-v-35d6c51e]{color:#999}.t-color[data-v-35d6c51e]{color:var(--view-theme)!important}',""]),t.exports=e},b29c:function(t,e,r){"use strict";r.d(e,"b",(function(){return i})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("v-uni-view",{style:t.viewColor},[r("v-uni-view",{staticClass:"order-submission"},[r("v-uni-view",{staticClass:"allAddress",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onAddress.apply(void 0,arguments)}}},[0==t.shippingType?r("v-uni-view",{staticClass:"address acea-row row-between-wrapper"},[t.addressInfo.real_name?r("v-uni-view",{staticClass:"addressCon"},[r("v-uni-view",{staticClass:"name"},[t._v(t._s(t.addressInfo.real_name)),r("v-uni-text",{staticClass:"phone"},[t._v(t._s(t.addressInfo.phone))])],1),r("v-uni-view",[t.addressInfo.is_default?r("v-uni-text",{staticClass:"default t-color"},[t._v("[默认]")]):t._e(),t._v(t._s(t.addressInfo.province)+t._s(t.addressInfo.city)+t._s(t.addressInfo.district)+t._s(t.addressInfo.street||"")+t._s(t.addressInfo.detail))],1)],1):r("v-uni-navigator",{staticClass:"addressCon",attrs:{url:"/pages/users/user_address/index?cartId="+t.cartId,"hover-class":"none"}},[r("v-uni-view",{staticClass:"setaddress"},[t._v("设置收货地址")])],1),r("v-uni-view",{staticClass:"iconfont icon-jiantou"})],1):t._e(),r("v-uni-view",{staticClass:"line"},[r("v-uni-image",{attrs:{src:t.domain+"/static/images/line.jpg"}})],1)],1),r("v-uni-view",{staticClass:"storeinfo-wrapper"},t._l(t.cartInfo,(function(e,i){return r("v-uni-view",{key:i,staticClass:"store-item"},t._l(e.list,(function(e,i){return r("v-uni-view",{key:i},[r("v-uni-view",[r("v-uni-view",{staticClass:"product-item"},[r("v-uni-view",{staticClass:"img-box"},[r("v-uni-image",{attrs:{src:e.productAttr.image||e.product.image}})],1),r("v-uni-view",{staticClass:"content"},[r("v-uni-view",{staticClass:"acea-row row-between"},[r("v-uni-view",{staticClass:"name line1"},[t._v(t._s(e.product.store_name))]),r("v-uni-text",{staticClass:"number"},[t._v("x"+t._s(e.cart_num))])],1),r("v-uni-view",{staticClass:"label"},[t._v(t._s(e.productAttr.sku))]),r("v-uni-view",{staticClass:"price acea-row row-between"},[r("v-uni-view",{staticClass:"acea-row row-middle"},[[t._v(t._s(e.productAttr.ot_price)+"积分"),e.productAttr.price>0?[t._v("+"+t._s(e.productAttr.price)+"元")]:t._e()]],2)],1),e.undelivered&&t.addressInfo.real_name?r("v-uni-view",{staticClass:"err-txt"},[r("v-uni-text",{staticClass:"iconfont icon-zhuyi-copy"}),r("v-uni-view",{staticClass:"txt"},[t._v("此商品不支持该区域配送")])],1):t._e()],1)],1)],1)],1)})),1)})),1),r("v-uni-view",{staticClass:"wrapper"},[r("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[r("v-uni-view",[t._v("可用积分")]),r("v-uni-view",{staticClass:"discount"},[t._v(t._s(t.resData.true_integral)+"积分")])],1),r("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[r("v-uni-view",[t._v("兑换积分")]),r("v-uni-view",{staticClass:"discount"},[t._v(t._s(t.resData.order_total_integral)+"积分")])],1),r("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[r("v-uni-view",[t._v("支付金额")]),r("v-uni-view",{staticClass:"discount"},[t._v("¥"+t._s(t.resData.order_pay_price||0))])],1),r("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[r("v-uni-view",[t._v("快递费用")]),r("v-uni-view",{staticClass:"discount"},[t._v("免运费")])],1),t.textareaStatus?r("v-uni-view",{staticClass:"item"},[r("v-uni-view",[t._v("备注信息")]),r("v-uni-textarea",{attrs:{"placeholder-class":"placeholder",placeholder:"请添加备注150字以内",value:t.mark,maxlength:150,name:"mark"},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.bindHideKeyboard.apply(void 0,arguments)}}})],1):t._e()],1),r("v-uni-view",{staticClass:"wrapper"},[r("v-uni-view",{staticClass:"item"},[r("v-uni-view",[t._v("支付方式")]),r("v-uni-view",{staticClass:"list"},t._l(t.cartArr,(function(e,i){return 1==e.payStatus?r("v-uni-view",{key:i,staticClass:"payItem acea-row row-middle",class:t.active==i?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.payItem(i)}}},[r("v-uni-view",{staticClass:"name acea-row row-center-wrapper"},[r("v-uni-view",{staticClass:"iconfont animated",class:e.icon+" "+(1==t.animated&&t.active==i?"bounceIn":"")}),t._v(t._s(e.name))],1),r("v-uni-view",{staticClass:"tip"},[t._v(t._s(e.title)),"balance"==e.value?[t._v(t._s(t.userInfo.now_money))]:t._e()],2)],1):t._e()})),1)],1)],1),r("v-uni-view",{staticStyle:{height:"120rpx"}}),r("v-uni-view",{staticClass:"footer acea-row row-between-wrapper"},[r("v-uni-view",[t._v("支付:"),r("v-uni-text",{staticClass:"color-t"},[t._v(t._s(t.resData.order_total_integral||0)+"积分")]),t.resData.order_pay_price>0?r("v-uni-text",{staticClass:"color-t"},[t._v("+"+t._s(t.resData.order_pay_price)+"元")]):t._e()],1),r("v-uni-view",{staticClass:"settlement",staticStyle:{"z-index":"100"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goPay.apply(void 0,arguments)}}},[t._v("立即兑换")])],1)],1),r("v-uni-view",{staticClass:"alipaysubmit",domProps:{innerHTML:t._s(t.formContent)}}),r("addressWindow",{ref:"addressWindow",attrs:{news:t.news,address:t.address,pagesUrl:t.pagesUrl},on:{changeTextareaStatus:function(e){arguments[0]=e=t.$handleEvent(e),t.changeTextareaStatus.apply(void 0,arguments)},OnChangeAddress:function(e){arguments[0]=e=t.$handleEvent(e),t.OnChangeAddress.apply(void 0,arguments)},changeClose:function(e){arguments[0]=e=t.$handleEvent(e),t.changeClose.apply(void 0,arguments)}}})],1)},a=[]},d2cf:function(t,e,r){var i=r("9194");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=r("967d").default;a("28c7e860",i,!0,{sourceMap:!1,shadowMode:!1})},e2e3:function(t,e,r){"use strict";var i=r("d2cf"),a=r.n(i);a.a},e821:function(t,e,r){var i=r("0b80");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=r("967d").default;a("0f7776d1",i,!0,{sourceMap:!1,shadowMode:!1})},ec38:function(t,e,r){"use strict";r.r(e);var i=r("4e70"),a=r("44eb");for(var n in a)["default"].indexOf(n)<0&&function(t){r.d(e,t,(function(){return a[t]}))}(n);r("e2e3");var s=r("828b"),o=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"35d6c51e",null,!1,i["a"],void 0);e["default"]=o.exports}}]);