1 line
3.9 KiB
JavaScript
1 line
3.9 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d7021606"],{"7fcf":function(t,n,e){"use strict";e("d1c1")},c16e:function(t,n,e){"use strict";e.r(n);var i=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"friend-review"},[e("van-nav-bar",{attrs:{fixed:"","left-arrow":"","left-text":"返回",title:"友链审核"},on:{"click-left":function(n){return t.$router.go(-1)}}}),t.friendList.length>0?e("van-list",{attrs:{finished:t.finished,"finished-text":"没有更多了"},on:{load:t.getFriendList},model:{value:t.friendLoading,callback:function(n){t.friendLoading=n},expression:"friendLoading"}},t._l(t.friendList,(function(n){return e("van-cell-group",{key:n.id,attrs:{inset:""}},[e("van-cell",{attrs:{center:""},scopedSlots:t._u([{key:"title",fn:function(){return[e("div",{staticClass:"cell-left d-flex"},[e("div",{staticClass:"blog-logo"},[e("van-image",{attrs:{src:n.img,fit:"scale-down",height:"4rem",width:"4rem"}})],1),e("div",{staticClass:"blog-info d-flex-column"},[e("div",{staticClass:"blog-title"},[t._v(" 友链标题:"),e("span",{staticClass:"theme-blue"},[t._v(t._s(n.title))])]),e("div",{staticClass:"blog-remark"},[t._v(" 友链描述:"),e("span",{staticClass:"theme-grey"},[t._v(t._s(n.remark))])])])])]},proxy:!0},{key:"right-icon",fn:function(){return[e("van-button",{attrs:{size:"small",type:"info"},on:{click:function(e){return t.openFrame(n)}}},[t._v("处 理")])]},proxy:!0}],null,!0)})],1)})),1):e("van-empty",{attrs:{description:"暂无友链审核"}}),e("van-popup",{model:{value:t.handleFlag,callback:function(n){t.handleFlag=n},expression:"handleFlag"}},[e("div",{staticClass:"handle-content"},[e("van-row",{staticClass:"handle-title"},[t._v(" 友链处理 ")]),e("van-row",{attrs:{justify:"center",type:"flex"}},[e("van-col",[e("van-image",{attrs:{src:t.handleFriend.img,fit:"scale-down",height:"4rem",width:"4rem"}})],1)],1),e("van-row",{staticClass:"article-title friend-one"},[t._v(" 友链标题:"),e("span",{staticClass:"theme-blue"},[t._v(t._s(t.handleFriend.title))])]),e("van-row",{staticClass:"friend-content friend-one"},[t._v(" 友链描述:"),e("span",[t._v(t._s(t.handleFriend.remark))])]),e("van-row",{staticClass:"button",attrs:{justify:"space-around",type:"flex"}},[e("van-button",{attrs:{size:"normal",type:"danger"},on:{click:function(n){return t.handle(t.handleFriend,"2")}}},[t._v("驳 回")]),e("van-button",{attrs:{size:"normal",type:"primary"},on:{click:function(n){return t.handle(t.handleFriend,"1")}}},[t._v("通 过")])],1)],1)])],1)},a=[],s=e("c43a"),r={name:"friendReview",data:function(){return{handleFlag:!1,handleFriend:{},friendLoading:!1,finished:!1,friendList:[],friendTypeList:[]}},mounted:function(){this.getFriendList()},methods:{openFrame:function(t){this.handleFlag=!0,this.handleFriend=t},handle:function(t,n){var e=this;"1"===n?this.$dialog.alert({message:"通过该条友链申请?",confirmButtonText:"确定"}).then((function(){t.status="1",Object(s["c"])(t).then((function(t){e.$toast("通过成功"),e.getFriendList(),e.handleFlag=!1}))})):"2"===n&&this.$dialog.alert({message:"驳回该条友链申请?",confirmButtonText:"确定"}).then((function(){Object(s["a"])(t.id),e.getFriendList(),e.$toast("驳回成功"),e.handleFlag=!1}))},getFriendList:function(){var t=this;this.friendLoading=!0,this.finished=!1,Object(s["b"])({status:0}).then((function(n){t.friendList=n.rows,t.finished=!0,t.friendLoading=!1}))}}},l=r,d=(e("7fcf"),e("2877")),o=Object(d["a"])(l,i,a,!1,null,"4d68ab0e",null);n["default"]=o.exports},c43a:function(t,n,e){"use strict";e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return s})),e.d(n,"a",(function(){return r}));var i=e("b775");function a(t){return Object(i["a"])({url:"/admin/link/list",method:"get",params:t})}function s(t){return Object(i["a"])({url:"/admin/link",method:"put",data:t})}function r(t){return Object(i["a"])({url:"/admin/link/"+t,method:"delete"})}},d1c1:function(t,n,e){}}]); |