pages-zbs-exchangerecord-exchangerecord.58199609.js 13 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-zbs-exchangerecord-exchangerecord"],{"13fa":function(t,e,i){"use strict";i.r(e);var n=i("9276"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},1789:function(t,e,i){"use strict";var n=i("e7a6"),a=i.n(n);a.a},7930:function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.notGiftOrder=e.api_submitExchange=e.api_record=e.api_getExchangeList=e.api_getAddress=e.api_UpdateAddAddress=e._API_UnbindBank=e._API_QuickBankSms=e._API_QuickBankPay=e._API_QuickBankConfirm=e._API_QuickBankApply=e._API_HuiFuCheck=e._API_CheckStatus=e._API_BankInfo=e.GetInte=void 0;var a=n(i("ef1d"));e._API_HuiFuCheck=function(t){return a.default.get("/HuiFu/check",t)};e._API_QuickBankApply=function(t){return a.default.post("/HuiFu/QuickBankApply",t)};e._API_QuickBankConfirm=function(t){return a.default.post("/HuiFu/QuickBankConfirm",t)};e._API_QuickBankPay=function(t){return a.default.post("/HuiFu/QuickBankPay",t)};e._API_QuickBankSms=function(t){return a.default.post("/HuiFu/QuickBankSms",t)};e._API_CheckStatus=function(t){return a.default.post("/HuiFu/CheckStatus",t)};e._API_UnbindBank=function(t){return a.default.post("/HuiFu/UnbindBank",t)};e._API_BankInfo=function(t){return a.default.post("/HuiFu/BankInfo",t)};e.GetInte=function(t){return a.default.post("/gift/GetInte",t)};e.api_getExchangeList=function(t){return a.default.post("/gift/gift_list",t)};e.api_submitExchange=function(t){return a.default.post("/gift/exchange",t)};e.api_record=function(t){return a.default.post("/gift/record_detail",t)};e.notGiftOrder=function(t){return a.default.post("/gift/destory_order",t)};e.api_getAddress=function(t){return a.default.post("/gift/address",t)};e.api_UpdateAddAddress=function(t){return a.default.post("/gift/UpdateAddAddress",t)}},9276:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("7930"),a={data:function(){return{list:[]}},computed:{userServerInfo:function(){return this.$store.state.userinfo}},onShow:function(){this.getRecordList()},methods:{publishDestoryGiftOrder:function(t){var e=this;uni.showModal({content:"确认取消该兑换订单",success:function(t){t.confirm&&(uni.showLoading(),(0,n.notGiftOrder)({gift_id:this.data.id,user_id:this.userServerInfo.id}).then((function(t){uni.hideLoading(),200===t.code?uni.showModal({content:"兑换订单取消成功",showCancel:!1,success:function(t){t.confirm&&(e.getRecordList(),e.$store.dispatch("onLaunch"))}}):uni.showModal({content:t.msg||"取消兑换订单失败",showCancel:!1})})).catch((function(){uni.hideLoading(),uni.showModal({content:"取消兑换订单失败",showCancel:!1})})))}})},getRecordList:function(){var t=this;uni.showLoading(),(0,n.api_record)({user_id:this.userServerInfo.id}).then((function(e){uni.hideLoading(),200===e.code?t.list=e.data.list:uni.showModal({content:"获取兑换记录失败",showCancel:!1})})).catch((function(){uni.hideLoading(),uni.showModal({content:"获取兑换记录失败",showCancel:!1})}))}}};e.default=a},b1f8:function(t,e,i){"use strict";i.r(e);var n=i("cce3"),a=i("13fa");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("1789");var r=i("f0c5"),d=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"28333d65",null,!1,n["a"],void 0);e["default"]=d.exports},c74d:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";.app-item[data-v-28333d65]{display:flex;align-items:center;justify-content:center;flex-direction:row;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;min-height:%?90?%;justify-content:space-between;padding:0 %?30?%;margin-bottom:%?2?%}.app-item.item-space[data-v-28333d65]{margin-top:%?10?%}.app-item uni-input[data-v-28333d65], .app-item uni-picker[data-v-28333d65], .app-item uni-textarea[data-v-28333d65]{height:100%;width:%?521?%;font-size:%?26?%;text-align:left;color:#999}.kingkong[data-v-28333d65]{height:%?346?%;margin-top:%?10?%}.kingkong uni-navigator[data-v-28333d65]{width:25%;height:50%;float:left;display:flex;align-items:center;flex-direction:column}.kingkong uni-navigator uni-image[data-v-28333d65]{width:%?88?%;height:%?88?%;margin-top:%?30?%;border-radius:50%}.kingkong uni-navigator uni-text[data-v-28333d65]{font-size:%?32?%;margin-top:%?12?%}.big-btn[data-v-28333d65]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:%?630?%;height:%?88?%;font-size:%?34?%;margin:%?88?% auto 0;border-radius:%?44?%;color:#f76454;border:2px solid #f76454}.big-btn.bg[data-v-28333d65]{color:#fff;background:#f76454}.small-btn[data-v-28333d65]{display:flex;align-items:center;justify-content:center;flex-direction:row;padding:0 %?14?%;font-size:%?26?%;margin-left:%?10?%;color:#f76454;height:%?48?%!important;min-width:%?106?%!important;border:%?2?% solid #f76454}.small-btn.dank[data-v-28333d65]{color:#999;border-color:#999}.login-btn[data-v-28333d65]{flex:1;width:100%;height:100%;background:#fff}.login-btn uni-navigator[data-v-28333d65]{display:flex;align-items:center;justify-content:center;flex-direction:row;top:50%;left:50%;width:%?400?%;height:%?88?%;color:#fff;position:fixed;font-size:%?32?%;border-radius:%?10?%;background:#f76454;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ellipsis[data-v-28333d65]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.icon-right[data-v-28333d65]{margin-right:%?20?%}.border-right[data-v-28333d65]{border-right:%?1?% solid #f2f2f2}.level-name[data-v-28333d65]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:%?130?%;height:%?36?%;color:#fff;font-size:%?16?%!important;border-radius:%?18?%;background:#f76454}.level-name .cuIcon-crownfill[data-v-28333d65]{margin-right:%?6?%}.position-center[data-v-28333d65]{left:50%;top:50%;position:absolute;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.data-card[data-v-28333d65]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:100%;height:%?336?%;position:relative;background:#f2f2f2}.data-card uni-image[data-v-28333d65]{z-index:0;width:%?706?%;height:%?316?%}.data-card .data-card-text[data-v-28333d65]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column}.data-card .data-card-text .text[data-v-28333d65]{color:#fff;font-size:%?32?%}.data-card .data-card-text .num[data-v-28333d65]{color:#fff;font-size:%?70?%;margin-top:%?60?%}.basecolor[data-v-28333d65]{color:#f76454}.swiper-nav[data-v-28333d65]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:100%;height:%?84?%;color:#666;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;border-bottom:%?1?% solid #f2f2f2}.swiper-nav .item[data-v-28333d65]{display:flex;align-items:center;justify-content:center;flex-direction:row;flex:1;height:100%}.swiper-nav .item.active[data-v-28333d65]{color:#f76454}.swiper-nav .moveBar[data-v-28333d65]{display:flex;align-items:center;justify-content:center;flex-direction:row;bottom:0;height:%?6?%;position:absolute}.swiper-nav .moveBar > uni-text[data-v-28333d65]{width:100%;height:100%;border-radius:%?3?%;background:#f76454}.swiper-area[data-v-28333d65]{flex:1;width:100%}.swiper-area uni-swiper[data-v-28333d65]{width:100%;height:100%}.article-header[data-v-28333d65]{display:flex;align-items:center;justify-content:center;flex-direction:row;height:%?120?%;justify-content:space-between;border-bottom:%?1?% solid #f2f2f2}.article-header .head-pic[data-v-28333d65]{width:%?80?%;height:%?80?%;border-radius:50%}.article-header .name[data-v-28333d65]{display:flex;align-items:center;justify-content:center;flex-direction:row;flex:1;height:100%;margin-left:%?20?%;justify-content:flex-start}.article-header .name .identity[data-v-28333d65]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:%?56?%;height:%?28?%;color:#fff;font-size:%?20?%;margin-left:%?20?%;border-radius:%?8?%;background:#f76454}.article-header .time[data-v-28333d65]{font-size:%?24?%;color:#999}.article-header .time.justnow[data-v-28333d65]{color:#f76454}.article-footer[data-v-28333d65]{display:flex;align-items:center;justify-content:center;flex-direction:row;height:%?90?%;border-top:%?1?% solid #f2f2f2}.article-footer .footer-item[data-v-28333d65]{display:flex;align-items:center;justify-content:center;flex-direction:row;flex:1;height:%?40?%}.article-footer .footer-item.center[data-v-28333d65]{border-left:%?1?% solid #ccc;border-right:%?1?% solid #ccc}.article-footer .footer-item .icon-right[data-v-28333d65]{font-size:%?40?%}.article-footer .footer-item .icon-right.fill[data-v-28333d65]{color:#f76454}\n/*主题色及按钮渐变背景*/\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/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-page-body[data-v-28333d65]{height:100%;display:flex;flex-direction:column;justify-content:space-between}uni-page-body .recordContainer[data-v-28333d65]{width:100%;height:100%;padding:%?30?%;box-sizing:border-box;background-color:#f9f9fb}uni-page-body .recordContainer .recordItem[data-v-28333d65]{width:100%;padding:%?30?%;box-sizing:border-box;margin-bottom:%?30?%;border-radius:%?24?%;background-color:#fff}uni-page-body .recordContainer .recordItem.voided[data-v-28333d65]{position:relative;overflow:hidden}uni-page-body .recordContainer .recordItem.voided[data-v-28333d65]::after{content:"";display:block;width:%?168?%;height:%?168?%;background-position:50%;background-repeat:no-repeat;background-size:100%;background-image:url(https://api.jiuweiyun.cn/public/uploads/weapp/icon/cancel.png);-webkit-filter:grayscale(100%);filter:grayscale(100%);position:absolute;right:%?56?%;bottom:%?-20?%}uni-page-body .recordContainer .recordItem .header[data-v-28333d65]{width:100%;display:flex;align-items:center;justify-content:space-between;margin-bottom:%?20?%}uni-page-body .recordContainer .recordItem .header .time[data-v-28333d65]{color:#999;font-size:%?28?%;line-height:%?40?%}uni-page-body .recordContainer .recordItem .header .money[data-v-28333d65]{color:#ea4a41;font-size:%?32?%;line-height:%?44?%;font-weight:700}uni-page-body .recordContainer .recordItem .body[data-v-28333d65]{width:100%;display:flex;align-items:stretch;justify-content:space-between;position:relative}uni-page-body .recordContainer .recordItem .body .avatar[data-v-28333d65]{width:%?128?%;height:%?128?%;border-radius:%?8?%;background-color:#ff7b39;background-position:50%;background-repeat:no-repeat;background-size:100%;margin-right:%?20?%}uni-page-body .recordContainer .recordItem .body .info[data-v-28333d65]{flex:1;overflow:hidden;display:flex;flex-direction:column;justify-content:space-around}uni-page-body .recordContainer .recordItem .body .info .name[data-v-28333d65]{color:#333;font-size:%?32?%;line-height:%?44?%;font-weight:700}uni-page-body .recordContainer .recordItem .body .info .num[data-v-28333d65]{color:#999;font-size:%?28?%;line-height:%?40?%}uni-page-body .recordContainer .recordItem .body .voidBtn[data-v-28333d65]{width:%?192?%;height:%?68?%;border-radius:%?68?%;text-align:center;background:linear-gradient(141deg,#f97c55,#f44545);line-height:%?68?%;color:#fff;font-size:%?28?%;position:absolute;bottom:0;right:0}uni-page-body .recordContainer .noTip[data-v-28333d65]{width:100%;text-align:center;padding:%?20?% 0;font-size:%?28?%;color:#333}',""]),t.exports=e},cce3:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-scroll-view",{staticClass:"recordContainer",attrs:{"scroll-y":!0}},[t.list.length>0?t._l(t.list,(function(e){return i("v-uni-view",{key:e.id,staticClass:"recordItem",class:e.type?"voided":""},[i("v-uni-view",{staticClass:"header"},[i("v-uni-view",{staticClass:"time"},[t._v(t._s(t._f("dateFormatter")(e.timestamp,"yyyy-MM-dd hh:mm:ss")))]),i("v-uni-view",{staticClass:"money"},[t._v("-"+t._s(e.cost))])],1),i("v-uni-view",{staticClass:"body"},[i("v-uni-view",{staticClass:"avatar",style:{backgroundImage:"url("+e.gift_info.imgurl+")"}}),i("v-uni-view",{staticClass:"info"},[i("v-uni-view",{staticClass:"name"},[t._v(t._s(e.name))]),i("v-uni-view",{staticClass:"num"},[t._v("X"+t._s(e.num))])],1),e.type?t._e():i("v-uni-view",{staticClass:"voidBtn",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.publishDestoryGiftOrder(e)}}},[t._v("取消兑换")])],1)],1)})):[i("v-uni-view",{staticClass:"noTip"},[t._v("暂无兑换记录")])]],2)},a=[]},e7a6:function(t,e,i){var n=i("c74d");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("8cbe1494",n,!0,{sourceMap:!1,shadowMode:!1})}}]);