pnkx-admin-mongo/pnkx-app-apk/static/js/chunk-17a21056.fe483a52.js

1 line
1.7 KiB
JavaScript
Raw Normal View History

2024-01-13 13:29:20 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-17a21056"],{3224:function(t,a,n){},"401c":function(t,a,n){"use strict";n.d(a,"b",(function(){return i})),n.d(a,"c",(function(){return u})),n.d(a,"a",(function(){return r}));var e=n("b775");function i(t){return Object(e["a"])({url:"/admin/photo/getAlbumList",method:"post",data:t})}function u(t){return Object(e["a"])({url:"/admin/photo/list",method:"get",params:t})}function r(t){return Object(e["a"])({url:"/admin/photo",method:"post",data:t})}},5499:function(t,a,n){"use strict";n("3224")},daa0:function(t,a,n){"use strict";n.r(a);var e=function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("div",{staticClass:"album"},[n("van-nav-bar",{attrs:{fixed:"","left-arrow":"","left-text":"返回",title:"相册管理"},on:{"click-left":function(a){return t.$router.go(-1)}}}),n("van-grid",{attrs:{clickable:!0,"column-num":2,gutter:10,square:!0}},t._l(t.albumList,(function(a){return n("van-grid-item",{key:a.id,attrs:{to:"/photo?type="+a.dictValue+"&name="+a.dictLabel}},[n("van-image",{attrs:{src:t.imageUrl(a.photo),fit:"scale-down",height:"8rem",width:"8rem"}}),n("div",{staticClass:"album-name"},[t._v(" "+t._s(a.dictLabel)+" ")])],1)})),1)],1)},i=[],u=(n("fb6a"),n("401c")),r={name:"index",data:function(){return{queryParams:{dictName:void 0,dictType:"px_album_name",status:void 0},albumList:this.getLocal("albumList")||[]}},mounted:function(){this.getAlbumList()},methods:{imageUrl:function(t){return"data"===t.slice(0,4)?t:"http"!==t.slice(0,4)?"http://120.53.247.15/"+t:t},getAlbumList:function(){var t=this;Object(u["b"])({}).then((function(a){t.albumList=a.data,t.setLocal("albumList",t.albumList)}))}}},c=r,o=(n("5499"),n("2877")),s=Object(o["a"])(c,e,i,!1,null,"294fda57",null);a["default"]=s.exports}}]);