pages-user-mymsg.41e52858.js 14 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-mymsg"],{"003a":function(t,e,a){t.exports=a.p+"static/img/missing-face.01b4ac4f.png"},"0078":function(t,e,a){"use strict";a.r(e);var i=a("fd57"),n=a.n(i);for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},1481:function(t,e,a){"use strict";a.r(e);var i=a("359a"),n=a("b730");for(var o in n)"default"!==o&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("ffb1");var r,d=a("f0c5"),s=Object(d["a"])(n["default"],i["b"],i["c"],!1,null,"41f6d06a",null,!1,i["a"],r);e["default"]=s.exports},"17b1":function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.orderData=o,e.changeInformation=r,e.enterprise=d,e.getUserInfo=s,e.spreadBanner=l,e.getAddressList=u,e.addressEdit=c,e.addressDel=f,e.setAddressDefault=m,e.getCartList=v,e.getCartNum=p,e.cartDel=g,e.getcollectList=h,e.delcollect=w,e.spread=b,e.stylelist=y,e.postlist=_,e.joinSubmit=x,e.auth=k,e.subscribe=C,e.enDetails=T,e.my_reply=M,e.to_my_reply=j,e.getCyType=E;var n=i(a("6150"));function o(t){return(0,n.default)({url:"/api/order/data",method:"get",data:t})}function r(t){return(0,n.default)({url:"/api/enterprise/edit",method:"post",data:t})}function d(t){return(0,n.default)({url:"/api/enterprise/rate",method:"get",data:t})}function s(t){return(0,n.default)({url:"/api/userinfo",method:"get",data:t})}function l(t){return(0,n.default)({url:"/api/spread/banner",method:"get",data:t})}function u(t){return(0,n.default)({url:"/api/address/list",method:"get",data:t})}function c(t){return(0,n.default)({url:"/api/address/edit",method:"post",data:t})}function f(t){return(0,n.default)({url:"/api/address/del",method:"post",data:t})}function m(t){return(0,n.default)({url:"/api/address/default/set",method:"post",data:t})}function v(t){return(0,n.default)({url:"/api/cart/list",method:"get",data:t})}function p(t){return(0,n.default)({url:"/api/cart/num",method:"post",data:t})}function g(t){return(0,n.default)({url:"/api/cart/del",method:"post",data:t})}function h(t){return(0,n.default)({url:"/api/collect/user",method:"get",data:t})}function w(t){return(0,n.default)({url:"/api/collect/del",method:"post",data:t})}function b(t){return(0,n.default)({url:"/api/spread/people",method:"POST",data:t})}function y(t){return(0,n.default)({url:"/api/enterprise/stylelist",method:"GET",data:t})}function _(t){return(0,n.default)({url:"/api/enterprise/job/list",method:"GET",data:t})}function x(t){return(0,n.default)({url:"/api/enterprise/apply/add",method:"GET",data:t})}function k(t){return(0,n.default)({url:"/api/user/auth",method:"POST",data:t})}function C(t){return(0,n.default)({url:"/api/user/subscribe",method:"GET",data:t})}function T(t){return(0,n.default)({url:"/api/enterprise/details",method:"GET",data:t})}function M(t){return(0,n.default)({url:"/api/article/my_reply",method:"GET",data:t})}function j(t){return(0,n.default)({url:"/api/article/to_my_reply",method:"GET",data:t})}function E(t){return(0,n.default)({url:"/api/enterprise/category",method:"GET",data:t})}},"2d24":function(t,e,a){"use strict";function i(t){var e=/(^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$)|(^[1-9]\d{5}\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{2}$)/;return!1!==e.test(t)||(console.log(t),!1)}function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;"string"==typeof t&&(t=(+t).toFixed(2)),"number"==typeof t&&(t=t.toFixed(2));var e=t.split(""),a=e.reverse().map((function(t,e,a){return e%3==0&&e/3>1&&e!=a.length?t+",":t}));return a=a.reverse().join(""),a}function o(t){var e=(new Date).getTime(),a=t-e;a<0&&(a*=-1);var i=Math.floor(a/1e3/60/60/24),n=Math.floor(a/1e3/60/60%24),o=Math.floor(a/1e3/60%60),r=Math.floor(a/1e3%60);return{hours:n,minutes:o,seconds:r,day:i}}function r(t){return new Promise((function(t,e){wx.getSetting({success:function(a){a.authSetting["scope.userLocation"]?t():wx.showModal({title:"提示",content:"请求获取位置权限",success:function(a){if(0==a.confirm)return e(),!1;wx.openSetting({success:function(e){e.authSetting["scope.userLocation"]?t():wx.showToast({title:"此功能需获取位置信息,请重新设置",duration:3e3,icon:"none"})}})}})}})}))}function d(t){for(var e=13-(t+"").length,a=1,i=0;i<e;i++)a+="0";a=parseInt(a);var n=new Date(parseInt(t)*a),o=n.getFullYear(),r=n.getMonth()+1;r<10&&(r="0"+r);var d=n.getDate();d<10&&(d="0"+d);var s=n.getHours();s<10&&(s="0"+s);var l=n.getMinutes();l<10&&(l="0"+l);var u=n.getSeconds();return u<10&&(u="0"+u),o+"-"+r+"-"+d+" "+s+":"+l+":"+u}a("d81d"),a("26e9"),a("d3b7"),a("e25e"),a("ac1f"),a("1276"),Object.defineProperty(e,"__esModule",{value:!0}),e.isCardNo=i,e.getMoneyStyle=n,e.timeComputed=o,e.openMap=r,e.getTime=d},"359a":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return i}));var i={uniLoadMore:a("cbdc").default},n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"content"},[!0===t.list.loaded&&0===t.list.length?i("empty"):t._e(),i("v-uni-view",{},t._l(t.list,(function(e,n){return i("v-uni-view",{staticClass:"pl-wrap",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.navTo(e)}}},[i("v-uni-view",{staticClass:"user-info flex"},[i("v-uni-view",{staticClass:"user-logo"},[t.userInfo.avatar?i("v-uni-image",{staticClass:"avater-img",attrs:{src:t.userInfo.avatar,mode:""}}):i("v-uni-image",{staticClass:"avater-img",attrs:{src:a("003a"),mode:""}})],1),i("v-uni-view",{staticClass:"user-num"},[i("v-uni-view",{staticClass:"user-name"},[t._v(t._s(t.userInfo.nickname))]),i("v-uni-view",{staticClass:"sub-num"},[t._v(t._s(e.create))])],1)],1),i("v-uni-view",{staticClass:"pl"},[t._v(t._s(e.to.content))]),null!=e.user?i("v-uni-view",{staticClass:"other-pl"},[i("v-uni-text",{staticClass:"text"},[t._v(t._s(e.user.nickname))]),t._v("回复我 :"),i("v-uni-text",[t._v(t._s(e.to.content))])],1):t._e(),null==e.user?i("v-uni-view",{staticClass:"other-pl"},[i("v-uni-text",{staticClass:"text"},[t._v("管理员")]),t._v("回复我 :"),i("v-uni-text",[t._v(t._s(e.content))])],1):t._e(),i("v-uni-view",{staticClass:"art flex"},[e.article.image_input.length>0?i("v-uni-view",{staticClass:"art-img"},[i("v-uni-image",{attrs:{src:e.article.image_input[0],mode:""}})],1):t._e(),i("v-uni-view",{staticClass:"art-jj clamp2"},[t._v(t._s(e.article.title))])],1)],1)})),1),i("uni-load-more",{attrs:{status:t.loadingType}})],1)},o=[]},"3a72":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/.content[data-v-41f6d06a]{padding-top:%?20?%}.pl-wrap[data-v-41f6d06a]{background-color:#fff;padding:%?20?% %?30?%}.user-info .user-logo[data-v-41f6d06a]{flex-shrink:0;height:%?100?%;width:%?100?%;border-radius:50%}.user-info .user-logo uni-image[data-v-41f6d06a]{border-radius:50%;width:100%;height:100%}.user-info .user-num[data-v-41f6d06a]{flex-grow:1;padding-left:%?10?%;font-size:%?24?%;font-weight:500;color:#999}.user-info .user-num .user-name[data-v-41f6d06a]{font-size:%?34?%;font-weight:600;color:#333;padding-right:%?20?%;padding:0 %?20?% %?20?% 0}.pl[data-v-41f6d06a]{font-size:%?24?%;font-weight:500;color:#333;padding-top:%?30?%}.other-pl[data-v-41f6d06a]{width:%?690?%;margin-top:%?10?%;padding:%?16?%;font-size:%?24?%;background:#f5f5f5}.other-pl uni-text[data-v-41f6d06a]{word-break:break-all;word-wrap:break-word}.other-pl .text[data-v-41f6d06a]{color:#3a41ee}.art[data-v-41f6d06a]{margin-top:%?15?%;width:%?690?%;height:%?138?%;background:#f6f9fc;padding:%?15?% %?18?%}.art .art-img[data-v-41f6d06a]{flex-shrink:0;width:%?169?%;height:%?108?%;border-radius:%?10?%;margin-right:%?17?%}.art .art-img uni-image[data-v-41f6d06a]{width:%?169?%;height:%?108?%}.art .art-jj[data-v-41f6d06a]{flex-grow:1;font-size:%?23?%;font-weight:500;color:#323232}',""]),t.exports=e},"579f":function(t,e,a){"use strict";var i=a("80e0"),n=a.n(i);n.a},6450:function(t,e,a){var i=a("3a72");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("2e6e1dde",i,!0,{sourceMap:!1,shadowMode:!1})},"80e0":function(t,e,a){var i=a("958b");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("4db3b720",i,!0,{sourceMap:!1,shadowMode:!1})},"958b":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".uni-load-more[data-v-c8f01f2e]{display:flex;flex-direction:row;height:%?80?%;align-items:center;justify-content:center}.uni-load-more__text[data-v-c8f01f2e]{font-size:%?28?%;color:#999}.uni-load-more__img[data-v-c8f01f2e]{height:24px;width:24px;margin-right:10px}.uni-load-more__img>.load[data-v-c8f01f2e]{position:absolute}.uni-load-more__img>.load .item[data-v-c8f01f2e]{width:6px;height:2px;border-top-left-radius:1px;border-bottom-left-radius:1px;background:#999;position:absolute;opacity:.2;-webkit-transform-origin:50%;transform-origin:50%;-webkit-animation:load-data-v-c8f01f2e 1.56s ease infinite;animation:load-data-v-c8f01f2e 1.56s ease infinite}.uni-load-more__img>.load .item[data-v-c8f01f2e]:nth-child(1){-webkit-transform:rotate(90deg);transform:rotate(90deg);top:2px;left:9px}.uni-load-more__img>.load .item[data-v-c8f01f2e]:nth-child(2){-webkit-transform:rotate(180deg);transform:rotate(180deg);top:11px;right:0}.uni-load-more__img>.load .item[data-v-c8f01f2e]:nth-child(3){-webkit-transform:rotate(270deg);transform:rotate(270deg);bottom:2px;left:9px}.uni-load-more__img>.load .item[data-v-c8f01f2e]:nth-child(4){top:11px;left:0}.load1[data-v-c8f01f2e],\n.load2[data-v-c8f01f2e],\n.load3[data-v-c8f01f2e]{height:24px;width:24px}.load2[data-v-c8f01f2e]{-webkit-transform:rotate(30deg);transform:rotate(30deg)}.load3[data-v-c8f01f2e]{-webkit-transform:rotate(60deg);transform:rotate(60deg)}.load1 .item[data-v-c8f01f2e]:nth-child(1){-webkit-animation-delay:0s;animation-delay:0s}.load2 .item[data-v-c8f01f2e]:nth-child(1){-webkit-animation-delay:.13s;animation-delay:.13s}.load3 .item[data-v-c8f01f2e]:nth-child(1){-webkit-animation-delay:.26s;animation-delay:.26s}.load1 .item[data-v-c8f01f2e]:nth-child(2){-webkit-animation-delay:.39s;animation-delay:.39s}.load2 .item[data-v-c8f01f2e]:nth-child(2){-webkit-animation-delay:.52s;animation-delay:.52s}.load3 .item[data-v-c8f01f2e]:nth-child(2){-webkit-animation-delay:.65s;animation-delay:.65s}.load1 .item[data-v-c8f01f2e]:nth-child(3){-webkit-animation-delay:.78s;animation-delay:.78s}.load2 .item[data-v-c8f01f2e]:nth-child(3){-webkit-animation-delay:.91s;animation-delay:.91s}.load3 .item[data-v-c8f01f2e]:nth-child(3){-webkit-animation-delay:1.04s;animation-delay:1.04s}.load1 .item[data-v-c8f01f2e]:nth-child(4){-webkit-animation-delay:1.17s;animation-delay:1.17s}.load2 .item[data-v-c8f01f2e]:nth-child(4){-webkit-animation-delay:1.3s;animation-delay:1.3s}.load3 .item[data-v-c8f01f2e]:nth-child(4){-webkit-animation-delay:1.43s;animation-delay:1.43s}@-webkit-keyframes load-data-v-c8f01f2e{0%{opacity:1}100%{opacity:.2}}",""]),t.exports=e},ac4f:function(t,e,a){"use strict";var i=a("4ea4");a("99af"),a("4160"),a("159b"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("5530")),o=i(a("cbdc")),r=i(a("a59d")),d=a("17b1"),s=a("2d24"),l=a("26cb"),u={components:{empty:r.default,uniLoadMore:o.default},data:function(){return{page:1,limit:10,loadingType:"more",list:[]}},onLoad:function(){this.loadData()},computed:(0,n.default)({},(0,l.mapState)("user",["hasLogin","userInfo"])),onReachBottom:function(){this.loadData()},methods:{loadData:function(){var t=this,e=this;"noMore"!=e.loadingType&&"loading"!=e.loadingType&&(e.loadingType="loading",(0,d.to_my_reply)({page:e.page,limit:e.limit}).then((function(a){var i=a.data;console.log(i),""!=i.list.length&&(i.list.forEach((function(t){t.create=(0,s.getTime)(t.add_time),console.log(t)})),e.list=e.list.concat(i.list)),i.list.length===e.limit?(e.page++,e.loadingType="more"):e.loadingType="noMore",t.$set(e.list,"loaded",!0)})))},navTo:function(t){uni.navigateTo({url:"/pages/user/article?id="+t.article.id})}}};e.default=u},b730:function(t,e,a){"use strict";a.r(e);var i=a("ac4f"),n=a.n(i);for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},cbdc:function(t,e,a){"use strict";a.r(e);var i=a("d7b4"),n=a("0078");for(var o in n)"default"!==o&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("579f");var r,d=a("f0c5"),s=Object(d["a"])(n["default"],i["b"],i["c"],!1,null,"c8f01f2e",null,!1,i["a"],r);e["default"]=s.exports},d7b4:function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"uni-load-more"},[a("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:"loading"===t.status&&t.showIcon,expression:"status === 'loading' && showIcon"}],staticClass:"uni-load-more__img"},[a("v-uni-view",{staticClass:"load1 load"},[a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}})],1),a("v-uni-view",{staticClass:"load2 load"},[a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}})],1),a("v-uni-view",{staticClass:"load3 load"},[a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}}),a("v-uni-view",{staticClass:"item",style:{background:t.color}})],1)],1),a("v-uni-text",{staticClass:"uni-load-more__text",style:{color:t.color}},[t._v(t._s("more"===t.status?t.contentText.contentdown:"loading"===t.status?t.contentText.contentrefresh:t.contentText.contentnomore))])],1)},o=[]},fd57:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={name:"uni-load-more",props:{status:{type:String,default:"more"},showIcon:{type:Boolean,default:!0},color:{type:String,default:"#777777"},contentText:{type:Object,default:function(){return{contentdown:"上拉显示更多",contentrefresh:"正在加载...",contentnomore:"没有更多数据了"}}}},data:function(){return{}}};e.default=i},ffb1:function(t,e,a){"use strict";var i=a("6450"),n=a.n(i);n.a}}]);