1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-gift-record"],{"5b13":function(e,t,i){"use strict";var o=i("92e4"),a=i.n(o);a.a},"76a9":function(e,t,i){"use strict";i.r(t);var o=i("d154"),a=i.n(o);for(var n in o)"default"!==n&&function(e){i.d(t,e,(function(){return o[e]}))}(n);t["default"]=a.a},"7a11":function(e,t,i){"use strict";var o=i("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.getGiftLogs=t.goodDetail=t.lookGood=t.recordDetail=t.giftRecord=t.activityList=t.publishExchange=t.giftGoodsList=t.myGiftBonus=void 0;var a=o(i("c48d")),n=function(){return a.default.get("/studio/studioBonus")};t.myGiftBonus=n;var r=function(){return a.default.get("/studioGood/good_show")};t.giftGoodsList=r;var d=function(e){return a.default.post("/studioOrder/submit_order",e)};t.publishExchange=d;var c=function(){return a.default.get("/get_activity_list")};t.activityList=c;var l=function(e){return a.default.get("/studioOrder/studio_record",e)};t.giftRecord=l;var b=function(e){return a.default.get("/studioOrder/order_detail",e)};t.recordDetail=b;var s=function(e){return a.default.get("/studioOrder/look_good",e)};t.lookGood=s;var f=function(e){return a.default.get("/studioOrder/good_detail",e)};t.goodDetail=f;var w=function(e){return a.default.get("/studioOrder/get_express",e)};t.getGiftLogs=w},9195:function(e,t,i){var o=i("24fb");t=o(!1),t.push([e.i,'@charset "UTF-8";.app-item[data-v-02030dae]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;min-height:%?90?%;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;padding:0 %?30?%;margin-bottom:%?2?%}.app-item.item-space[data-v-02030dae]{margin-top:%?10?%}.app-item uni-input[data-v-02030dae], .app-item uni-picker[data-v-02030dae], .app-item uni-textarea[data-v-02030dae]{height:100%;width:%?521?%;font-size:%?26?%;text-align:left;color:#999}.kingkong[data-v-02030dae]{height:%?346?%;margin-top:%?10?%}.kingkong uni-navigator[data-v-02030dae]{width:25%;height:50%;float:left;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.kingkong uni-navigator uni-image[data-v-02030dae]{width:%?88?%;height:%?88?%;margin-top:%?30?%;border-radius:50%}.kingkong uni-navigator uni-text[data-v-02030dae]{font-size:%?32?%;margin-top:%?12?%}.big-btn[data-v-02030dae]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;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-02030dae]{color:#fff;background:#f76454}.small-btn[data-v-02030dae]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;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-02030dae]{color:#999;border-color:#999}.login-btn[data-v-02030dae]{-webkit-box-flex:1;-webkit-flex:1;flex:1;width:100%;height:100%;background:#fff}.login-btn uni-navigator[data-v-02030dae]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;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-02030dae]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.icon-right[data-v-02030dae]{margin-right:%?20?%}.border-right[data-v-02030dae]{border-right:%?1?% solid #f2f2f2}.level-name[data-v-02030dae]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?130?%;height:%?36?%;color:#fff;font-size:%?16?%!important;border-radius:%?18?%;background:#f76454}.level-name .cuIcon-crownfill[data-v-02030dae]{margin-right:%?6?%}.position-center[data-v-02030dae]{left:50%;top:50%;position:absolute;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.data-card[data-v-02030dae]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:100%;height:%?336?%;position:relative;background:#f2f2f2}.data-card uni-image[data-v-02030dae]{z-index:0;width:%?706?%;height:%?316?%}.data-card .data-card-text[data-v-02030dae]{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.data-card .data-card-text .text[data-v-02030dae]{color:#fff;font-size:%?32?%}.data-card .data-card-text .num[data-v-02030dae]{color:#fff;font-size:%?70?%;margin-top:%?60?%}.basecolor[data-v-02030dae]{color:#f76454}.swiper-nav[data-v-02030dae]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;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-02030dae]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%}.swiper-nav .item.active[data-v-02030dae]{color:#f76454}.swiper-nav .moveBar[data-v-02030dae]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;bottom:0;height:%?6?%;position:absolute}.swiper-nav .moveBar > uni-text[data-v-02030dae]{width:100%;height:100%;border-radius:%?3?%;background:#f76454}.swiper-area[data-v-02030dae]{-webkit-box-flex:1;-webkit-flex:1;flex:1;width:100%}.swiper-area uni-swiper[data-v-02030dae]{width:100%;height:100%}.article-header[data-v-02030dae]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?120?%;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;border-bottom:%?1?% solid #f2f2f2}.article-header .head-pic[data-v-02030dae]{width:%?80?%;height:%?80?%;border-radius:50%}.article-header .name[data-v-02030dae]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%;margin-left:%?20?%;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start}.article-header .name .identity[data-v-02030dae]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;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-02030dae]{font-size:%?24?%;color:#999}.article-header .time.justnow[data-v-02030dae]{color:#f76454}.article-footer[data-v-02030dae]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?90?%;border-top:%?1?% solid #f2f2f2}.article-footer .footer-item[data-v-02030dae]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:%?40?%}.article-footer .footer-item.center[data-v-02030dae]{border-left:%?1?% solid #ccc;border-right:%?1?% solid #ccc}.article-footer .footer-item .icon-right[data-v-02030dae]{font-size:%?40?%}.article-footer .footer-item .icon-right.fill[data-v-02030dae]{color:#f76454}\r\n/*主题色及按钮渐变背景*/\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/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-page-body[data-v-02030dae]{width:100%;height:100%}uni-page-body .noTip[data-v-02030dae]{padding:%?20?%;width:100%;box-sizing:border-box;color:#999;font-size:%?28?%;text-align:center}uni-page-body .giftRecord[data-v-02030dae]{width:100%;height:100%;box-sizing:border-box;background-color:#f9f9fb;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}uni-page-body .giftRecord .activitySearch[data-v-02030dae]{width:100%;height:%?104?%;background-color:#fff;margin-bottom:%?24?%;padding:0 %?54?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;box-sizing:border-box;position:relative}uni-page-body .giftRecord .activitySearch .body[data-v-02030dae]{width:100%;color:#333;font-size:%?32?%;height:%?44?%;line-height:%?44?%;overflow:hidden;text-overflow:ellipsis}uni-page-body .giftRecord .activitySearch[data-v-02030dae]::after{content:"";display:block;width:0;height:0;border:%?24?% solid #fff;border-top-color:#ea4a41;border-left-width:%?12?%;border-right-width:%?12?%;border-bottom-width:0;position:absolute;right:%?54?%}uni-page-body .giftRecord .searchContainer[data-v-02030dae]{width:calc(100% - %?60?%);margin:%?30?% auto;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;height:%?68?%}uni-page-body .giftRecord .searchContainer .body[data-v-02030dae]{-webkit-box-flex:1;-webkit-flex:1;flex:1;height:%?68?%;border-radius:%?68?%;overflow:hidden;background-color:#fff;padding:0 %?34?%;box-sizing:border-box;line-height:%?68?%;font-size:%?28?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}uni-page-body .giftRecord .searchContainer .body .value[data-v-02030dae]{color:#999;letter-spacing:1px}uni-page-body .giftRecord .searchContainer .body .fixed[data-v-02030dae]{color:#333}uni-page-body .giftRecord .searchContainer .btn[data-v-02030dae]{width:%?192?%;height:%?68?%;line-height:%?68?%;border-radius:%?68?%;text-align:center;background:-webkit-linear-gradient(309deg,#f97c55,#f44545);background:linear-gradient(141deg,#f97c55,#f44545);color:#fff;font-size:%?28?%;margin-left:%?30?%}uni-page-body .giftRecord .recordHeader[data-v-02030dae]{width:calc(100% - %?60?%);margin:0 auto;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;margin-bottom:%?30?%}uni-page-body .giftRecord .recordHeader .title[data-v-02030dae]{color:#333;font-size:%?32?%}uni-page-body .giftRecord .recordHeader .money .text[data-v-02030dae]{color:#333;font-size:%?28?%}uni-page-body .giftRecord .recordHeader .money .text2[data-v-02030dae]{color:#ea4a41;font-size:%?36?%}uni-page-body .giftRecord .list[data-v-02030dae]{-webkit-box-flex:1;-webkit-flex:1;flex:1;overflow:hidden}uni-page-body .giftRecord .list .item[data-v-02030dae]{width:calc(100% - %?60?%);margin:0 auto;margin-bottom:%?30?%;padding:%?30?%;box-sizing:border-box;border-radius:%?24?%;background-color:#fff}uni-page-body .giftRecord .list .item .header[data-v-02030dae]{width:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;margin-bottom:%?20?%}uni-page-body .giftRecord .list .item .header .time[data-v-02030dae]{color:#999;font-size:%?28?%;line-height:%?40?%}uni-page-body .giftRecord .list .item .header .money[data-v-02030dae]{color:#ea4a41;font-size:%?32?%;line-height:%?44?%;font-weight:700}uni-page-body .giftRecord .list .item .body[data-v-02030dae]{width:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:start;-webkit-align-items:flex-start;align-items:flex-start;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;margin-bottom:%?30?%}uni-page-body .giftRecord .list .item .body[data-v-02030dae]:nth-last-of-type(1){margin-bottom:0}uni-page-body .giftRecord .list .item .body .avatar[data-v-02030dae]{width:%?160?%;height:%?130?%;background-color:#eee;background-position:50%;background-repeat:no-repeat;background-size:100%;margin-right:%?20?%}uni-page-body .giftRecord .list .item .body .info[data-v-02030dae]{-webkit-box-flex:1;-webkit-flex:1;flex:1;overflow:hidden;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start}uni-page-body .giftRecord .list .item .body .info .name[data-v-02030dae]{color:#333;font-size:%?32?%;line-height:%?44?%;margin-bottom:%?16?%}uni-page-body .giftRecord .list .item .body .info .skus[data-v-02030dae]{width:100%;color:#999;font-size:%?28?%;line-height:%?40?%;padding:%?10?%;box-sizing:border-box;word-break:break-word;border-radius:%?8?%;background-color:#f8f8f8}',""]),e.exports=t},"92e4":function(e,t,i){var o=i("9195");"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var a=i("4f06").default;a("86b4b758",o,!0,{sourceMap:!1,shadowMode:!1})},9397:function(e,t,i){"use strict";i.r(t);var o=i("a2dd"),a=i("76a9");for(var n in a)"default"!==n&&function(e){i.d(t,e,(function(){return a[e]}))}(n);i("5b13");var r,d=i("f0c5"),c=Object(d["a"])(a["default"],o["b"],o["c"],!1,null,"02030dae",null,!1,o["a"],r);t["default"]=c.exports},a2dd:function(e,t,i){"use strict";var o;i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return n})),i.d(t,"a",(function(){return o}));var a=function(){var e=this,t=this,i=t.$createElement,o=t._self._c||i;return o("v-uni-view",{staticClass:"giftRecord"},[o("v-uni-picker",{attrs:{mode:"selector",range:t.activityList,"range-key":"title"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.toChangeActivity.apply(void 0,arguments)}}},[t.activityList.length>0?o("v-uni-view",{staticClass:"activitySearch"},[o("v-uni-view",{staticClass:"body"},[t._v(t._s(t.activityList.filter((function(t){return Number(t.id)===Number(e.activity_id)}))[0].title))])],1):t._e()],1),o("v-uni-view",{staticClass:"recordHeader"},[o("v-uni-view",{staticClass:"title"},[t._v("兑换记录")]),o("v-uni-view",{staticClass:"money"},[o("v-uni-text",{staticClass:"text"},[t._v("总共消耗:")]),o("v-uni-text",{staticClass:"text2"},[t._v(t._s(t.recordMoney)+"补助金")])],1)],1),o("v-uni-scroll-view",{staticClass:"list",attrs:{"scroll-y":!0}},[t.recordList.length>0?t._l(t.recordList,(function(e){return o("v-uni-view",{key:e.id,staticClass:"item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.skipDetail(e)}}},[o("v-uni-view",{staticClass:"header"},[o("v-uni-text",{staticClass:"time"},[t._v(t._s(e.created_at))]),o("v-uni-text",{staticClass:"money"},[t._v("-"+t._s(e.money)+"补助金")])],1),t._l(e.array,(function(e,i,a){return o("v-uni-view",{key:a,staticClass:"body"},[o("v-uni-view",{staticClass:"avatar",style:{backgroundImage:"url("+e[0].get_goods.main_img+")"}}),o("v-uni-view",{staticClass:"info"},[o("v-uni-view",{staticClass:"name"},[t._v(t._s(i))]),o("v-uni-view",{staticClass:"skus"},[t._v(t._s(e.map((function(e){return e.goods_size})).join(";")))])],1)],1)}))],2)})):o("v-uni-view",{staticClass:"noTip"},[t._v("暂无兑换记录")])],2)],1)},n=[]},d154:function(e,t,i){"use strict";i("99af"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i("7a11"),a={data:function(){return{activity_id:"",recordList:[],recordMoney:0,activityList:[]}},onShow:function(){this.getActivityList(this.getGiftRecord)},methods:{skipDetail:function(e){var t=e.created_at,i=e.id,o=e.order_num,a=e.money;uni.navigateTo({url:"./record-detail?order_num=".concat(o,"&id=").concat(i,"&money=").concat(a,"&created_at=").concat(t)})},toChangeActivity:function(e){var t=e.detail.value;this.activity_id=this.activityList[t].id,this.getGiftRecord()},getActivityList:function(e){var t=this;uni.showLoading(),(0,o.activityList)().then((function(i){uni.hideLoading(),200===i.code?(t.activityList=i.data,t.activity_id=i.data[i.data.length-1].id,e&&e()):uni.showModal({content:i.message||"获取活动列表失败",showCancel:!1})})).catch((function(){uni.hideLoading(),uni.showModal({content:"获取活动列表失败",showCancel:!1})}))},getGiftRecord:function(){var e=this;uni.showLoading(),(0,o.giftRecord)({activity_id:this.activity_id}).then((function(t){uni.hideLoading(),200===t.code?(e.recordList=t.data.list,e.recordMoney=t.data.money):uni.showModal({content:t.message||"获取兑换记录失败",showCancel:!1})})).catch((function(){uni.hideLoading(),uni.showModal({content:"获取兑换记录失败",showCancel:!1})}))}}};t.default=a}}]);
|