pages-user-dydetail.6a5e5491.js 18 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-dydetail"],{"04e6":function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.orderData=o,e.getUserInfo=r,e.spreadBanner=s,e.getAddressList=d,e.addressEdit=l,e.addressDel=u,e.setAddressDefault=c,e.getCartList=f,e.getCartNum=m,e.cartDel=v,e.getcollectList=h,e.delcollect=g,e.spread=p,e.stylelist=y,e.auth=w,e.subscribe=b,e.enDetails=_,e.my_reply=x,e.to_my_reply=C;var n=i(a("4c3b"));function o(t){return(0,n.default)({url:"/api/order/data",method:"get",data:t})}function r(t){return(0,n.default)({url:"/api/userinfo",method:"get",data:t})}function s(t){return(0,n.default)({url:"/api/spread/banner",method:"get",data:t})}function d(t){return(0,n.default)({url:"/api/address/list",method:"get",data:t})}function l(t){return(0,n.default)({url:"/api/address/edit",method:"post",data:t})}function u(t){return(0,n.default)({url:"/api/address/del",method:"post",data:t})}function c(t){return(0,n.default)({url:"/api/address/default/set",method:"post",data:t})}function f(t){return(0,n.default)({url:"/api/cart/list",method:"get",data:t})}function m(t){return(0,n.default)({url:"/api/cart/num",method:"post",data:t})}function v(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 g(t){return(0,n.default)({url:"/api/collect/del",method:"post",data:t})}function p(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 w(t){return(0,n.default)({url:"/api/user/auth",method:"POST",data:t})}function b(t){return(0,n.default)({url:"/api/user/subscribe",method:"GET",data:t})}function _(t){return(0,n.default)({url:"/api/enterprise/details",method:"GET",data:t})}function x(t){return(0,n.default)({url:"/api/article/my_reply",method:"GET",data:t})}function C(t){return(0,n.default)({url:"/api/article/to_my_reply",method:"GET",data:t})}},2709:function(t,e,a){"use strict";var i=a("8699"),n=a.n(i);n.a},"4d630":function(t,e,a){"use strict";a.r(e);var i=a("eab8"),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},5126: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/*功能栏左侧小图标*/.dy-info[data-v-195c79f9]{width:%?750?%;height:%?197?%;background-color:#ff6d6e;padding:0 %?30?%;color:#fff}.dy-info .user-logo[data-v-195c79f9]{flex-shrink:0;height:%?100?%;width:%?100?%}.dy-info .user-logo uni-image[data-v-195c79f9]{width:100%;height:100%}.dy-info .user-num[data-v-195c79f9]{flex-grow:1;padding-left:%?10?%;font-size:%?24?%;font-weight:500}.dy-info .user-num .user-name[data-v-195c79f9]{font-size:%?34?%;font-weight:600;padding-right:%?20?%;padding:0 %?20?% %?10?% 0}.dy-info .dy-btn[data-v-195c79f9]{flex-shrink:0;text-align:center;width:%?136?%;line-height:%?66?%;background:#fff;border-radius:%?10?%;font-size:%?28?%;font-weight:500;color:#ff6061}.art-list[data-v-195c79f9]{background-color:#fff;width:%?750?%;font-size:%?31?%;font-weight:500;color:#323232}.art-item[data-v-195c79f9]{width:%?691?%;border-bottom:#e1e1e1 1px solid;margin:auto}.art-item[data-v-195c79f9]:last-of-type{border-bottom:none}.art-item-zero[data-v-195c79f9]{height:%?153?%;flex-direction:column;justify-content:space-between;align-items:flex-start;padding:%?20?% 0;border-bottom:#e1e1e1 1px solid}.art-item-one[data-v-195c79f9]{height:%?195?%;margin:auto;padding:%?30?% 0 %?20?%}.art-item-one .art-left[data-v-195c79f9]{height:100%;flex-direction:column;justify-content:space-between;align-items:flex-start;padding-right:%?40?%}.art-item-one .art-right[data-v-195c79f9]{width:%?227?%;height:%?145?%;border-radius:%?10?%;flex-shrink:0}.art-item-one .art-right uni-image[data-v-195c79f9]{width:100%;height:100%;border-radius:%?10?%}.art-item-three[data-v-195c79f9]{height:%?345?%;flex-direction:column;justify-content:space-between;align-items:flex-start;padding:%?30?% 0}.art-item-three .art-img-list[data-v-195c79f9]{width:100%;height:%?145?%}.art-item-three .art-img-list uni-image[data-v-195c79f9]{width:%?220?%;height:%?145?%;border-radius:%?10?%;margin-right:%?15?%}.art-item-three .art-img-list uni-image[data-v-195c79f9]:last-child{margin-right:0}.hot[data-v-195c79f9]{width:%?22?%;height:%?22?%;margin-right:%?10?%}.art-time[data-v-195c79f9]{display:inline-block;font-size:%?24?%;font-weight:500;color:#7f8699}.art-time uni-text[data-v-195c79f9]{margin-right:%?10?%}',""]),t.exports=e},"5a83":function(t,e,a){t.exports=a.p+"static/img/bargainBg.b530db54.jpg"},"6a11":function(t,e,a){var i=a("74b9");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("c7b491b8",i,!0,{sourceMap:!1,shadowMode:!1})},"74b9":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},"793c":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 s(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 s=n.getDate();s<10&&(s="0"+s);var d=n.getHours();d<10&&(d="0"+d);var l=n.getMinutes();l<10&&(l="0"+l);var u=n.getSeconds();return u<10&&(u="0"+u),o+"-"+r+"-"+s+" "+d+":"+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=s},7984:function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getZmtList=o,e.getArtTypeList=r,e.getArtList=s,e.getArtDetail=d,e.getQyType=l,e.getQyArtList=u,e.dingYue=c,e.searchZmt=f,e.searchArt=m,e.getPlList=v,e.getXgList=h,e.dianZan=g,e.subPl=p;var n=i(a("4c3b"));function o(t){return(0,n.default)({url:"/api/enterprise/putlist",method:"get",data:t})}function r(t){return(0,n.default)({url:"/api/article/category/list",method:"get",data:t})}function s(t){return(0,n.default)({url:"/api/article/hot/list",method:"get",data:t})}function d(t,e){return(0,n.default)({url:"/api/article/details/"+e,method:"get",data:t})}function l(t){return(0,n.default)({url:"/api/enterprise/stylelist",method:"get",data:t})}function u(t){return(0,n.default)({url:"/api/enterprise/lists",method:"get",data:t})}function c(t){return(0,n.default)({url:"/api/user/sub",method:"get",data:t})}function f(t){return(0,n.default)({url:"/api/enterprise/search",method:"get",data:t})}function m(t){return(0,n.default)({url:"/api/article/keyword",method:"get",data:t})}function v(t,e){return(0,n.default)({url:"/api/article/reply_list/"+e,method:"get",data:t})}function h(t){return(0,n.default)({url:"/api/article/relevant/list",method:"get",data:t})}function g(t,e){return(0,n.default)({url:"/api/article/good/"+e,method:"post",data:t})}function p(t,e){return(0,n.default)({url:"/api/article/reply/"+e,method:"post",data:t})}},"82ae":function(t,e,a){"use strict";a.r(e);var i=a("9fb8"),n=a("4d630");for(var o in n)"default"!==o&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("2709");var r,s=a("f0c5"),d=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"195c79f9",null,!1,i["a"],r);e["default"]=d.exports},8699:function(t,e,a){var i=a("5126");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("c3be2160",i,!0,{sourceMap:!1,shadowMode:!1})},"8af6":function(t,e,a){"use strict";a.r(e);var i=a("93dc"),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},"90a2":function(t,e,a){"use strict";var i=a("6a11"),n=a.n(i);n.a},"93dc":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},"9fb8":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("dfd3").default},n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"content"},[i("v-uni-view",{staticClass:"dy-info flex"},[i("v-uni-view",{staticClass:"user-logo"},[i("v-uni-image",{attrs:{src:t.info.headimg,mode:""}})],1),i("v-uni-view",{staticClass:"user-num"},[i("v-uni-view",{staticClass:"user-name"},[t._v(t._s(t.info.name))]),i("v-uni-view",{staticClass:"sub-num"},[t._v("发表文章:"+t._s(t.info.count))])],1),i("v-uni-view",{staticClass:"dy-btn",class:{dyue:t.isDy},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.dingYue()}}},[t._v(t._s(t.isDy?"已订阅":"+订阅"))])],1),!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",{key:n,staticClass:"art-list"},[1==e.image_input.length?i("v-uni-view",{staticClass:"art-item-one flex art-item"},[i("v-uni-view",{staticClass:"art-left flex"},[i("v-uni-view",{staticClass:"art-tit clamp2"},[t._v(t._s(e.title))]),i("v-uni-view",{staticClass:"art-time"},[i("v-uni-text",{staticClass:"store-name"},[t._v(t._s(t.info.name))]),i("v-uni-text",{staticClass:"pl"},[t._v(t._s(e.comment)+"评论")]),i("v-uni-text",{staticClass:"creat-time"},[t._v(t._s(0!=e.day?e.day:0!=e.hour?e.hour:0!=e.minutes?e.minutes:e.seconds)+t._s(0!=e.day?"天":0!=e.hour?"小时":0!=e.minutes?"分钟":"秒")+"前")])],1)],1),i("v-uni-view",{staticClass:"art-right"},[i("v-uni-image",{attrs:{src:a("5a83"),mode:""}})],1)],1):t._e(),0==e.image_input.length?i("v-uni-view",{staticClass:"art-item-zero flex art-item"},[i("v-uni-view",{staticClass:"art-tit clamp2"},[t._v(t._s(e.title))]),i("v-uni-view",{staticClass:"art-time"},[i("v-uni-text",{staticClass:"store-name"},[t._v(t._s(t.info.name))]),i("v-uni-text",{staticClass:"pl"},[t._v(t._s(e.comment)+"评论")]),i("v-uni-text",{staticClass:"creat-time"},[t._v(t._s(0!=e.day?e.day:0!=e.hour?e.hour:0!=e.minutes?e.minutes:e.seconds)+t._s(0!=e.day?"天":0!=e.hour?"小时":0!=e.minutes?"分钟":"秒")+"前")])],1)],1):t._e(),e.image_input.length>1?i("v-uni-view",{staticClass:"art-item-three art-item flex"},[i("v-uni-view",{staticClass:"art-tit clamp2"},[t._v(t._s(e.title))]),t._l(e.image,(function(t,e){return i("v-uni-view",{staticClass:"art-img-list"},[i("v-uni-image",{attrs:{src:t,mode:""}})],1)})),i("v-uni-view",{staticClass:"art-time"},[i("v-uni-text",{staticClass:"store-name"},[t._v(t._s(t.info.name))]),i("v-uni-text",{staticClass:"pl"},[t._v(t._s(e.comment)+"评论")]),i("v-uni-text",{staticClass:"creat-time"},[t._v(t._s(0!=e.day?e.day:0!=e.hour?e.hour:0!=e.minutes?e.minutes:e.seconds)+t._s(0!=e.day?"天":0!=e.hour?"小时":0!=e.minutes?"分钟":"秒")+"前")])],1)],2):t._e()],1)})),i("uni-load-more",{attrs:{status:t.loadingType}})],2)],1)},o=[]},dfd3:function(t,e,a){"use strict";a.r(e);var i=a("ede1"),n=a("8af6");for(var o in n)"default"!==o&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("90a2");var r,s=a("f0c5"),d=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"c8f01f2e",null,!1,i["a"],r);e["default"]=d.exports},eab8: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("dfd3")),o=i(a("599d")),r=a("04e6"),s=a("793c"),d=a("7984"),l={components:{empty:o.default,uniLoadMore:n.default},data:function(){return{isDy:!1,id:"",page:1,limit:10,list:[],loadingType:"more",info:""}},onLoad:function(t){this.id=t.id,this.loadData()},onReachBottom:function(){this.loadData()},methods:{loadData:function(){var t=this,e=this;"noMore"!=this.loadingType&&"loading"!=this.loadingType&&(this.loadingType="loading",(0,r.enDetails)({id:this.id,page:this.page,rows:this.limit}).then((function(a){var i=a.data;t.info=i.content.list[0],1==t.info.is_sub&&(t.isDy=!0),console.log(t.info),i.list.forEach((function(t){var e=(0,s.timeComputed)(1e3*t.add_time);t.day=e.day,t.hour=e.hours,t.minutes=e.minutes,t.seconds=e.seconds})),t.list=t.list.concat(i.list),i.list.length===e.limit?(e.page++,e.loadingType="more"):e.loadingType="noMore",t.$set(e.list,"loaded",!0)})))},dingYue:function(){var t=this;this.isDy?uni.showModal({title:"提示",content:"是否取消关注?",complete:function(e){e.confirm&&(t.isDy=!t.isDy,(0,d.dingYue)({id:t.id}).then((function(e){t.$api.msg("已取消关注")})))}}):(t.isDy=!t.isDy,(0,d.dingYue)({id:t.id}).then((function(e){t.$api.msg("关注成功")})))}}};e.default=l},ede1: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=[]}}]);