pnkx-admin-mongo/pnkx-app-apk/unpackage/cache/wgt/H5A8E5E14/static/js/chunk-38921bea.fdd44bc7.js
2024-01-13 13:29:20 +08:00

1 line
2.3 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-38921bea"],{"267d":function(t,e,i){"use strict";i.r(e);var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"photo"},[i("van-nav-bar",{attrs:{title:t.title,fixed:"","left-arrow":"","left-text":"返回","right-text":"上传"},on:{"click-right":function(e){return t.$router.push("/addPhoto?type="+t.queryParams.type)},"click-left":function(e){return t.$router.go(-1)}}}),i("van-grid",{attrs:{clickable:!0,"column-num":2,gutter:10,square:!0}},t._l(t.photoList,(function(e,o){return i("van-grid-item",{key:e.id,attrs:{to:""}},[i("van-image",{attrs:{src:t.imageUrl(e.photoBase64),fit:"scale-down",height:"8rem",width:"8rem"},on:{click:function(e){return t.imagePreview(o)}}}),i("div",{staticClass:"photo-name"},[t._v(" "+t._s(e.name)+" ")])],1)})),1),i("van-image-preview",{attrs:{images:t.images,startPosition:t.startPosition},model:{value:t.showImage,callback:function(e){t.showImage=e},expression:"showImage"}})],1)},n=[],a=(i("b0c0"),i("d81d"),i("fb6a"),i("401c")),r={name:"list",data:function(){return{title:this.$route.query.name,queryParams:{name:null,photoAddress:null,type:this.$route.query.type,remark:null},photoList:this.getLocal("photoList")||[],showImage:!1,startPosition:0,images:[]}},mounted:function(){this.getPhotoList()},methods:{imagePreview:function(t){var e=this;this.showImage=!0,this.startPosition=t,this.images=this.photoList.map((function(t){return e.imageUrl(t.photoBase64)}))},imageUrl:function(t){return"data"===t.slice(0,4)?t:"http"!==t.slice(0,4)?"http://120.53.247.15/"+t:t},getPhotoList:function(){var t=this;Object(a["c"])(this.queryParams).then((function(e){t.photoList=e.rows,t.setLocal("photoList",t.photoList)}))}}},s=r,u=(i("4cea"),i("2877")),c=Object(u["a"])(s,o,n,!1,null,"392fa64c",null);e["default"]=c.exports},"401c":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(){return r}));var o=i("b775");function n(t){return Object(o["a"])({url:"/admin/photo/getAlbumList",method:"post",data:t})}function a(t){return Object(o["a"])({url:"/admin/photo/list",method:"get",params:t})}function r(t){return Object(o["a"])({url:"/admin/photo",method:"post",data:t})}},"4cea":function(t,e,i){"use strict";i("c67a")},c67a:function(t,e,i){}}]);