bztang-admin/addons/yun_shop/static/app/js/chunk-9d9913da.78d85444.js

1 line
4.0 KiB
JavaScript
Raw 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([["chunk-9d9913da"],{"0825":function(t,a,e){var i=e("24fb");a=i(!1),a.push([t.i,"#ywmGroupsDetailed .list[data-v-0021d088]{padding:.625rem;background:#fff;border-radius:.5rem}#ywmGroupsDetailed .list .van-col[data-v-0021d088]{line-height:1.375rem}#ywmGroupsDetailed .list .text-left[data-v-0021d088]{text-align:left}#ywmGroupsDetailed .list .text-right[data-v-0021d088]{text-align:right}#ywmGroupsDetailed .list .s-10[data-v-0021d088]{font-size:10px}#ywmGroupsDetailed .list .c-999[data-v-0021d088]{color:#999}#ywmGroupsDetailed .list .c-666[data-v-0021d088]{color:#666}#ywmGroupsDetailed .list .c-ee0a24[data-v-0021d088]{color:#ee0a24}#ywmGroupsDetailed .list .c-009a61[data-v-0021d088]{color:#009a61}",""]),t.exports=a},"2a33":function(t,a,e){var i=e("0825");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=e("499e").default;s("775c10e0",i,!0,{sourceMap:!1,shadowMode:!1})},becc:function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{attrs:{id:"ywmGroupsDetailed"}},[e("c-title",{attrs:{hide:!1,text:"开团卡明细"}}),e("van-tabs",{attrs:{sticky:""},on:{change:t.changeTab},model:{value:t.active,callback:function(a){t.active=a},expression:"active"}},t._l(t.dataList,(function(a,i){return e("van-tab",{key:i,attrs:{title:a.name}},[e("van-pull-refresh",{on:{refresh:t.onRefresh},model:{value:t.refreshing,callback:function(a){t.refreshing=a},expression:"refreshing"}},[e("van-list",{attrs:{finished:t.finished,"finished-text":"没有更多了"},on:{load:t.onLoad},model:{value:t.loading,callback:function(a){t.loading=a},expression:"loading"}},t._l(a.list,(function(a){return e("div",{key:a,staticClass:"list"},[e("van-row",{attrs:{type:"flex",justify:"space-between"}},[e("van-col",{staticClass:"text-left",attrs:{span:"12"}},[t._v("ID"+t._s(a.open_group_card_id))]),e("van-col",{staticClass:"text-right ",class:Number(a.number)<0?"c-009a61":"c-ee0a24",attrs:{span:"12"}},[t._v(t._s(Number(a.number)>0?"+":"")+t._s(a.number))])],1),e("van-row",{attrs:{type:"flex",justify:"space-between"}},[e("van-col",{staticClass:"text-left s-10 c-999",attrs:{span:"12"}},[t._v(t._s(a.created_at))]),e("van-col",{staticClass:"text-right s-10 c-666",attrs:{span:"12"}},[t._v(t._s(a.detail_type_text))])],1)],1)})),0)],1)],1)})),1)],1)},s=[],n=(e("d3b7"),e("b0c0"),e("99af"),{data:function(){return{active:0,dataList:[],loading:!1,finished:!1,refreshing:!1}},created:function(){this.initTab()},components:{},computed:{},mounted:function(){},methods:{initTab:function(){var t=this,a=[{name:"全部",value:0},{name:"发放",value:1},{name:"使用",value:2},{name:"退回",value:-1},{name:"过期",value:-2}];this.dataList=[],a.forEach((function(a,e){t.dataList.push({name:a.name,param:{detail_type:a.value},isLoadMore:!0,page:1,total_page:0,list:[]})}))},getData:function(){var t=this;$http.get("plugin.ywm-fight-groups.frontend.controllers.open-card-detail.get-open-card-detail",{page:this.dataList[this.active].page,detail_type:this.dataList[this.active].param.detail_type}).then((function(a){t.refreshing=!1,t.loading=!1,1===a.result?(1==t.dataList[t.active].page&&(t.dataList[t.active].list=[]),t.dataList[t.active].list=t.dataList[t.active].list.concat(a.data.data),t.dataList[t.active].total_page=a.data.last_page,t.dataList[t.active].page=t.dataList[t.active].page+1,a.data.current_page==a.data.last_page&&(t.finished=!0)):t.$toast(a.msg)})).catch((function(t){}))},changeTab:function(){this.dataList[this.active].list.length>0||this.getData()},initData:function(){this.loading=!0,this.finished=!1,this.initTab()},onRefresh:function(){this.initData(),this.getData()},onLoad:function(){this.getData()},toUrl:function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t&&this.$router.push(this.fun.getUrl(t,a,e))}}}),l=n,o=(e("d111"),e("2877")),d=Object(o["a"])(l,i,s,!1,null,"0021d088",null);a["default"]=d.exports},d111:function(t,a,e){"use strict";e("2a33")}}]);