1 line
4.8 KiB
JavaScript
1 line
4.8 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d7501bb0"],{"0caea":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".random-shot-list[data-v-6dd2792a]{padding:.625rem .75rem}.random-shot-list .between[data-v-6dd2792a]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}.random-shot-list .c-6E6E79[data-v-6dd2792a]{color:#6e6e79}.random-shot-list .flex[data-v-6dd2792a]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.random-shot-list .line[data-v-6dd2792a]{margin:1rem auto;height:1px;background:#f0f0f1}.random-shot-list .flex-shrink[data-v-6dd2792a]{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}.random-shot-list .box[data-v-6dd2792a]{background:#fff;border-radius:.5rem;padding:.9688rem .75rem 1.125rem;margin-bottom:.625rem}.random-shot-list .detail[data-v-6dd2792a]{color:#6e6e79;font-size:.875rem}.random-shot-list .id[data-v-6dd2792a]{color:#282828;font-weight:700;font-size:1rem}",""]),t.exports=e},"8ec0":function(t,e,a){var i=a("0caea");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("0dc321a5",i,!0,{sourceMap:!1,shadowMode:!1})},a1be:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"random-shot-list"},[a("c-title",{attrs:{text:"随手拍"}}),t._l(t.list,(function(e){return a("div",{staticClass:"box",on:{click:function(a){return t.goto(e.id.value)}}},[a("div",{staticClass:"between"},[a("span",{staticClass:"id"},[t._v("ID:"+t._s(e.id.value))]),a("div",{staticClass:"detail"},[t._v("查看详情"),a("van-icon",{attrs:{name:"arrow"}})],1)]),a("div",{staticClass:"line"}),a("div",{staticClass:"flex"},[a("span",{staticClass:"flex-shrink"},[t._v("已提交表单:")]),a("span",{staticClass:"c-6E6E79"},[t._v(t._s(e.submit_form.value))])]),a("div",{staticClass:"flex",staticStyle:{margin:"0.8125rem 0"}},[a("span",{staticClass:"flex-shrink"},[t._v("提交时间:")]),a("span",{staticClass:"c-6E6E79"},[t._v(t._s(e.submit_datetime.value))])]),a("div",{staticClass:"flex",staticStyle:{"align-items":"flex-start"}},[a("span",{staticClass:"flex-shrink"},[t._v("回复状态:")]),a("span",{staticClass:"c-6E6E79",staticStyle:{"text-align":"left"}},[t._v(t._s(e.reply.value))])]),e.reply_content?a("div",{staticClass:"flex",staticStyle:{"align-items":"flex-start"}},[a("span",{staticClass:"flex-shrink"},[t._v("回复内容:")]),a("span",{staticClass:"c-6E6E79",staticStyle:{"text-align":"left"}},[t._v(t._s(e.reply_content.value))])]):t._e(),e.reply_datetime?a("div",{staticClass:"flex",staticStyle:{margin:"0.8125rem 0"}},[a("span",[t._v("回复时间:")]),a("span",{staticClass:"c-6E6E79"},[t._v(t._s(e.reply_datetime.value))])]):t._e()])}))],2)},s=[],l=(a("14d9"),a("99af"),a("ac0d")),n={mixins:[l["a"]],data:function(){return{list:[],isLoadMore:!0,page:1,total_page:1}},activated:function(){this.getData()},methods:{goto:function(t){this.$router.push(this.fun.getUrl("random_shot_details",{form_id:t}))},getData:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;$http.get("plugin.shoot-casually.frontend.form-member.index",{page:e},"").then((function(a){var i=a.result,s=a.msg,l=a.data;t.isLoadMore=!0,i?(t.page=l.current_page,t.total_page=l.last_page,t.list=1==e?l.data:t.list.concat(l.data)):t.$toast(s)}))},getMoreData:function(){if(this.isLoadMore=!1,!(this.page>=this.total_page)){var t=this.page+1;this.getData(t)}}}},o=n,r=(a("a73f"),a("2877")),c=Object(r["a"])(o,i,s,!1,null,"6dd2792a",null);e["default"]=c.exports},a73f:function(t,e,a){"use strict";a("8ec0")},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return l}));var i=document.documentElement,s=document.body,l={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return i&&i.scrollTop?t=i.scrollTop:s&&(t=s.scrollTop),t},getClientHeight:function(){var t=0;return t=s.clientHeight&&i.clientHeight?Math.min(s.clientHeight,i.clientHeight):Math.max(s.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(s.scrollHeight,i.scrollHeight)},handleScroll:function(){this.otherScroll();var t=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=t>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}}}]); |