(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-points_mall-exchange_record"],{"14ff":function(t,e,n){var i=n("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/* 文章场景相关 */.exchange-record .item[data-v-4053d546]{background-color:#fff;margin:%?10?% %?30?%;border-radius:%?6?%}.exchange-record .item .exchange_record-time[data-v-4053d546]{color:#333;border-bottom:1px solid #eee;padding:%?22?% %?30?%;display:flex;justify-content:space-between}.exchange-record .item .exchange_record-time .status[data-v-4053d546]{color:var(--view-theme)}.exchange-record .item .picTxt[data-v-4053d546]{border-bottom:1px solid #f0f0f0;padding:%?30?% %?30?%}.exchange-record .item .picTxt .pictrue[data-v-4053d546]{width:%?120?%;height:%?120?%}.exchange-record .item .picTxt .pictrue uni-image[data-v-4053d546]{width:100%;height:100%;border-radius:%?6?%}.exchange-record .item .picTxt .text[data-v-4053d546]{width:%?470?%;font-size:%?30?%;color:#282828}.exchange-record .item .picTxt .text .time[data-v-4053d546]{font-size:%?24?%;color:#868686;justify-content:left!important}.exchange-record .item .picTxt .text .successTxt[data-v-4053d546]{font-size:%?24?%}.exchange-record .item .picTxt .text .endTxt[data-v-4053d546]{font-size:%?24?%;color:#999}.exchange-record .item .picTxt .text .money[data-v-4053d546]{font-size:%?24?%}.exchange-record .item .picTxt .text .money .num[data-v-4053d546]{font-size:%?32?%;font-weight:700}.exchange-record .item .picTxt .text .money .symbol[data-v-4053d546]{font-weight:700}.exchange-record .item .bottom[data-v-4053d546]{height:%?100?%;padding:0 %?30?%;font-size:%?27?%}.exchange-record .item .bottom .purple[data-v-4053d546]{color:#f78513}.exchange-record .item .bottom .end[data-v-4053d546]{color:#999}.exchange-record .item .bottom .success[data-v-4053d546]{color:#e93323}.exchange-record .item .bottom .bnt[data-v-4053d546]{font-size:%?27?%;color:#fff;width:%?176?%;height:%?60?%;border-radius:%?32?%;text-align:center;line-height:%?60?%}.exchange-record .item .bottom .bnt.cancel[data-v-4053d546]{color:#aaa;border:1px solid #ddd}.exchange-record .item .bottom .bnt ~ .bnt[data-v-4053d546]{margin-left:%?18?%}.exchange-record .item .bottom .bg-colort[data-v-4053d546]{background-color:var(--view-theme)}.gray-sty[data-v-4053d546]{width:100%;font-size:%?24?%;color:#999}',""]),t.exports=e},1523:function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("aa9c"),n("c9b5"),n("bf0f"),n("ab80"),n("dd2b");var a=i(n("9b1b")),o=i(n("8329")),r=n("8f59"),c=n("475f"),d=n("672a"),s=i(n("82d1")),u=n("96e0"),l=n("e44d"),f={name:"exchangeRecord",components:{emptyPage:o.default,payment:s.default},props:{},data:function(){return{exchangeList:[],payMode:[{name:"微信支付",icon:"icon-weixinzhifu",value:"wechat",title:"微信快捷支付",payStatus:1},{name:"支付宝支付",icon:"icon-zhifubao",value:"alipay",title:"支付宝支付",payStatus:this.$store.getters.globalData.alipay_open},{name:"余额支付",icon:"icon-yuezhifu",value:"balance",title:"可用余额:",number:0,payStatus:this.$store.getters.globalData.yue_pay_status}],loadend:!1,loading:!1,loadTitle:"加载更多",page:1,limit:20,userInfo:{},pay_close:!1,pay_order_id:"",order_id:"",totalPrice:"0",delta:1}},computed:(0,a.default)((0,a.default)({},(0,r.mapGetters)(["isLogin","viewColor"])),(0,u.configMap)(["alipay_open","yue_pay_status"])),watch:{alipay_open:function(t){this.payMode[1].payStatus=t},yue_pay_status:function(t){this.payMode[2].payStatus=t}},onLoad:function(t){this.delta=t.delta||0},onUnload:function(){},onShow:function(){!1===this.isLogin?(0,l.toLogin)():(this.getIntegralOrderList(),this.getUserInfo())},methods:{goDetail:function(t){uni.navigateTo({url:"/pages/points_mall/integral_order_details?order_id=".concat(t)})},getUserInfo:function(){var t=this;(0,d.getUserInfo)().then((function(e){t.payMode[2].number=e.data.now_money}))},getIntegralOrderList:function(){var t=this;t.loadend||t.loading||(t.loading=!0,t.loadTitle="",(0,c.integralOrderList)({page:t.page,limit:t.limit}).then((function(e){var n=e.data.list.length0?n("v-uni-view",[n("v-uni-view",{staticClass:"exchange-record"},t._l(t.exchangeList,(function(e,i){return n("v-uni-view",{key:i},t._l(e.orderProduct,(function(a,o){return n("v-uni-view",{key:o,staticClass:"item"},[n("v-uni-view",{staticClass:"exchange_record-time"},[n("v-uni-view",[t._v(t._s(1==e.paid?"兑换时间:"+e.pay_time:"订单编号:"+e.order_sn))]),0==e.paid?n("v-uni-view",{staticClass:"status"},[t._v("待付款")]):n("v-uni-view",{staticClass:"status"},[t._v(t._s(0==e.status?"待发货":1==e.status?"待收货":"已完成"))])],1),a.cart_info?n("v-uni-view",{staticClass:"picTxt acea-row row-between-wrapper"},[n("v-uni-view",{staticClass:"pictrue"},[n("v-uni-image",{attrs:{src:a.cart_info.productAttr&&a.cart_info.productAttr.image||a.cart_info.product.image}})],1),n("v-uni-view",{staticClass:"text acea-row row-column-around"},[n("v-uni-view",{staticClass:"line1",staticStyle:{width:"100%"}},[t._v(t._s(a.cart_info.product.store_name))]),n("v-uni-view",{staticClass:"line1 gray-sty"},[t._v(t._s(a.cart_info.productAttr&&a.cart_info.productAttr.sku||"默认"))])],1)],1):t._e(),n("v-uni-view",{staticClass:"bottom acea-row row-between-wrapper"},[n("v-uni-view",{staticClass:"end"}),n("v-uni-view",{staticClass:"acea-row row-middle row-right"},[0==e.paid?n("v-uni-view",{staticClass:"bnt bg-colort",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.goPay(e)}}},[t._v("立即付款")]):t._e(),2!=e.status&&1!=e.status||1!=e.delivery_type?t._e():n("v-uni-view",{staticClass:"bnt cancel",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.getLogistics(e.order_id)}}},[t._v("查看物流")]),3==e.status&&1==e.paid?n("v-uni-view",{staticClass:"bnt cancel",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.delOrder(e.order_id,i,o)}}},[t._v("删除")]):t._e(),1==e.paid?n("v-uni-view",{staticClass:"bnt bg-colort",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.goDetail(e.order_id)}}},[t._v("查看详情")]):t._e()],1)],1)],1)})),1)})),1)],1):t._e(),t.isLogin?n("v-uni-view",{staticClass:"acea-row row-center-wrapper loadingicon",attrs:{hidden:!t.loading}},[n("v-uni-text",{staticClass:"iconfont icon-jiazai loading",attrs:{hidden:!t.loading}}),t._v(t._s(t.loadTitle))],1):t._e(),0!=t.exchangeList.length||t.loading?t._e():[n("emptyPage",{attrs:{title:"暂无兑换记录~"}})],n("payment",{attrs:{payMode:t.payMode,order_type:2,pay_close:t.pay_close,returnUrl:"/pages/points_mall/integral_order_details?order_id="+t.order_id,order_id:t.pay_order_id,totalPrice:t.totalPrice},on:{onChangeFun:function(e){arguments[0]=e=t.$handleEvent(e),t.onChangeFun.apply(void 0,arguments)}}})],2)},a=[]}}]);