1 line
7.2 KiB
JavaScript
1 line
7.2 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["bundle-pages-user_wallet-user_wallet"],{"128c":function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0BAMAAAA3VgbYAAAAG1BMVEUAAAD/Jjn/JDf/KDn/KDj/Kzz/Kzz/Kzz/LDxpn7BpAAAACHRSTlMAGxw/QKer67hTOigAAABYSURBVDjLY2AYNIAxvQMNlApApdQ7MEARVCoDU6oVKlXRgm6FRzuU0dGALsXRMVykkIOCKlKj/qKDv6goNRwTdkUzupQFLC9H4C4B8JQbTOEYpY0CnQs8AL9cpzVFU8S2AAAAAElFTkSuQmCC"},3060:function(t,i,a){"use strict";var e=a("b0bf"),n=a.n(e);n.a},"60d5":function(t,i,a){"use strict";a.r(i);var e=a("9a9d"),n=a("d80a");for(var s in n)"default"!==s&&function(t){a.d(i,t,(function(){return n[t]}))}(s);a("3060");var c,r=a("f0c5"),l=Object(r["a"])(n["default"],e["b"],e["c"],!1,null,"c8a4c786",null,!1,e["a"],c);i["default"]=l.exports},"9a9d":function(t,i,a){"use strict";var e;a.d(i,"b",(function(){return n})),a.d(i,"c",(function(){return s})),a.d(i,"a",(function(){return e}));var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",{staticClass:"user-wallet"},[e("v-uni-view",{staticClass:"contain bg-white m-b-20"},[e("v-uni-view",{staticClass:"header"},[e("v-uni-view",{staticClass:"white m-b-20"},[e("v-uni-view",{staticClass:"xs"},[t._v("总资产(元)")]),e("v-uni-view",{staticStyle:{"font-size":"76rpx"}},[t._v(t._s(t.wallet.user_money||"0.00"))])],1),e("v-uni-view",{staticClass:"money white flex"},[e("v-uni-view",{staticClass:"item"},[e("v-uni-view",{staticClass:"xs"},[t._v("累计充值(元)")]),e("v-uni-view",{staticStyle:{"font-size":"38rpx"}},[t._v(t._s(t.wallet.total_recharge_amount||"0.00"))])],1),e("v-uni-view",{staticClass:"item"},[e("v-uni-view",{staticClass:"xs"},[t._v("累计消费(元)")]),e("v-uni-view",{staticStyle:{"font-size":"38rpx"}},[t._v(t._s(t.wallet.total_order_amount||"0.00"))])],1),t.wallet.open_racharge?[e("router-link",{staticClass:"flex primary bg-white br60 btn",staticStyle:{height:"58rpx"},attrs:{size:"xs",to:"/bundle/pages/user_payment/user_payment"}},[t._v("充值")])]:t._e()],2)],1),e("v-uni-view",{staticClass:"nav flex"},[e("router-link",{staticClass:"nav-item",attrs:{to:"/bundle/pages/user_bill/user_bill"}},[e("v-uni-view",{staticClass:"flex-col col-center"},[e("v-uni-image",{staticClass:"icon",attrs:{src:a("128c")}}),e("v-uni-view",{staticClass:"m-t-10 sm"},[t._v("账户明细")])],1)],1),e("router-link",{staticClass:"nav-item",attrs:{to:"/bundle/pages/recharge_record/recharge_record"}},[e("v-uni-view",{staticClass:"flex-col col-center"},[e("v-uni-image",{staticClass:"icon",attrs:{src:a("f1e3")}}),e("v-uni-view",{staticClass:"m-t-10 sm"},[t._v("充值记录")])],1)],1)],1),e("v-uni-view",{staticClass:"activity"},[e("v-uni-view",{staticClass:"activity-title xl flex"},[e("v-uni-view",{staticClass:"m-r-20 bg-primary",staticStyle:{width:"6rpx",height:"30rpx"}}),e("v-uni-text",[t._v("热门活动")])],1),t._l(t.activityList,(function(i,a){return[e("v-uni-view",{key:i.title+"_0",staticClass:"activity-item flex row-between",style:{backgroundColor:i.background}},[e("v-uni-view",[e("v-uni-view",{staticClass:"xl normal",staticStyle:{"font-weight":"500"}},[t._v(t._s(i.title))]),e("v-uni-view",{staticClass:"muted sm m-t-10"},[t._v(t._s(i.slogan))]),e("router-link",{staticStyle:{display:"inline-block"},attrs:{to:i.href}},[e("v-uni-view",{staticClass:"br60 white join-btn flex row-center",style:{backgroundColor:i.buttonColor}},[t._v("立即参与")])],1)],1),e("v-uni-image",{staticStyle:{width:"274rpx",height:"210rpx"},attrs:{src:i.image}})],1)]}))],2)],1)],1)},s=[]},a293:function(t,i,a){var e=a("24fb");i=e(!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/* 行为相关颜色 */.user-wallet .contain[data-v-c8a4c786]{padding:%?20?% %?30?% %?36?%}.user-wallet .contain .header[data-v-c8a4c786]{position:relative;background:linear-gradient(180deg,#ff2c3c,#ff316a);border-radius:%?20?%;height:%?320?%;padding:%?50?% %?30?% %?30?%;box-sizing:border-box}.user-wallet .contain .header .money .item[data-v-c8a4c786]{flex:1}.user-wallet .contain .header .btn[data-v-c8a4c786]{position:absolute;right:%?30?%;top:%?50?%;padding:0 %?51?%}.user-wallet .contain .nav[data-v-c8a4c786]{border-bottom:1px solid #e5e5e5}.user-wallet .contain .nav .nav-item[data-v-c8a4c786]{width:25%;padding:%?40?% 0}.user-wallet .contain .nav .nav-item .icon[data-v-c8a4c786]{width:%?52?%;height:%?52?%}.activity[data-v-c8a4c786]{padding:%?40?% %?0?%}.activity .activity-title[data-v-c8a4c786]{font-weight:700}.activity .activity-item[data-v-c8a4c786]{padding:%?15?% %?40?%;margin-top:%?34?%}.activity .activity-item .join-btn[data-v-c8a4c786]{height:%?52?%;width:%?156?%;margin-top:%?24?%}',""]),t.exports=i},b0bf:function(t,i,a){var e=a("a293");"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var n=a("4f06").default;n("9f162256",e,!0,{sourceMap:!1,shadowMode:!1})},d80a:function(t,i,a){"use strict";a.r(i);var e=a("f6c5"),n=a.n(e);for(var s in e)"default"!==s&&function(t){a.d(i,t,(function(){return e[t]}))}(s);i["default"]=n.a},f1e3:function(t,i){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAMAAADypuvZAAAAllBMVEUAAAD/ICD/Kir/IDD/JjP/KjX/JDf/KTr/KDj/Kzn/Jjn/KTv/Kjv/LDz/Kjn/KTj/Kzn/KTv/Kjr/LDv/Kzv/Kjv/Kzz/Kjz/LDr/Kjr/Kzr/Kzv/LDv/Kzv/Kzv/Kjv/Kzz/Kzz/Kzz/LDv/Kzv/LDv/LDv/Kzv/LDv/LDv/Kzv/Kzv/Kzz/LDz/Kzz/Kzz/LDz/LDxHpQpZAAAAMXRSTlMACAwQFBgcHyAkKDg8QENESFdgY2Roa3N7f4OHi5ufo6ert7vDx8vP09fb3+vv8/f7E8ejGgAAAVNJREFUSMft1duagiAQAGDSSrZzdrDc0rLtoFbK+7/cEhiCIeBlX80VJL85w6AAfETYUY5Y5JFthFZIiJURCkQUmKJoWETUAAWy8Zsh2z+mabpRoQ1ecPS5TevEfHHliG5E3GFoi0wR2jJ0w7Pdwh2o0MBd7PCyG0MPY1KIh+LRnI4sx3H2Itrjnyw6m1eQSwazrNJvRSbZjMxcKbojOSpSkaO0DiUKNMHHL+lB2H5eaUPYS/BRnCgQOYCh2C1heRBrEKmqxxuP2486ZJ3xw4xKM8IPfLY0CMArQlcon9UiMObuTf53DPSIZBGWReAyVKByqVeppQo9iyEUQYdo+j9iEbSIFONyEYqgR2BJW24JmiDaqdUXkQ61TgidWg0RsNfrl4+MFsniE5Bvgn55hJvmPnW0McVvuIyhP2QcB4b6uanJ+1xXx2YmFru+Cw2iC74hxD9hJXuvmqSXFAAAAABJRU5ErkJggg=="},f6c5:function(t,i,a){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e=a("e9dc"),n={data:function(){return{wallet:{},activityList:[{title:"领取优惠券",slogan:"每日优惠券抢不停",button:"立即抢购",buttonColor:"#FC597A",href:"/pages/get_coupon/get_coupon",image:"/bundle/static/img_activity_coupon.png",background:"rgba(252, 89, 122, 0.1)"},{title:"超值商品 限时秒杀",slogan:"最新商品秒杀中",button:"立即抢购",buttonColor:"#FF2C3C",href:"/bundle/pages/goods_seckill/goods_seckill",image:"/bundle/static/img_activity_seckill.png",background:"rgba(236, 71, 37, 0.1)"}]}},onShow:function(){this.getWalletFun()},methods:{getWalletFun:function(){var t=this;(0,e.getWallet)().then((function(i){1==i.code&&(t.wallet=i.data)}))}}};i.default=n}}]); |