1 |
- {"version":3,"sources":["uni-app:///main.js","webpack:///C:/Users/Administrator/Desktop/xmt_new/pages/user/dydetail.vue?fd67","webpack:///C:/Users/Administrator/Desktop/xmt_new/pages/user/dydetail.vue?bb04","webpack:///C:/Users/Administrator/Desktop/xmt_new/pages/user/dydetail.vue?ea89","webpack:///C:/Users/Administrator/Desktop/xmt_new/pages/user/dydetail.vue?6e38","uni-app:///pages/user/dydetail.vue","webpack:///C:/Users/Administrator/Desktop/xmt_new/pages/user/dydetail.vue?38d6","webpack:///C:/Users/Administrator/Desktop/xmt_new/pages/user/dydetail.vue?a0d5"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;;;AAGA;AACA,kG,8FAHA;AACAA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC,CAGAC,UAAU,CAACC,iBAAD,CAAV,C;;;;;;;;;;;;;ACLA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAiI;AACjI;AAC4D;AACL;AACsC;;;AAG7F;AACqK;AACrK,gBAAgB,+KAAU;AAC1B,EAAE,8EAAM;AACR,EAAE,+FAAM;AACR,EAAE,wGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,mGAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,aAAa,sNAEN;AACP;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AC1DA;AAAA;AAAA;AAAA;AAAkmB,CAAgB,4nBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC2FtnB;;;AAGA;;;AAGA,uD;;;AAGA;AACA;AACA,gBADA;AAEA,4BAFA,EADA;;AAKA,MALA,kBAKA;AACA;AACA,iBADA;AAEA,YAFA;AAGA,aAHA;AAIA,eAJA;AAKA,cALA;AAMA,yBANA;AAOA,cAPA;;AASA,GAfA;AAgBA;AACA,YADA,oBACA,QADA,EACA;AACA;AACA;AACA,6BAHA,CAGA;AACA;AACA;AACA;AACA;AACA;AACA,qCATA,CASA;AACA;AACA,0CAXA,CAWA;;AAEA;AACA;AACA;AACA,oCAhBA,CAgBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAFA,MAEA;AACA;AACA,OAFA,MAEA;AACA;AACA,OAFA,MAEA;AACA;AACA,OAFA,MAEA;AACA;AACA,OAFA,MAEA;AACA;AACA,OAFA,MAEA;AACA;AACA;AACA;AACA;AACA;AACA,uCADA;AAEA,+BAHA;AAIA;AACA;AACA,gCADA;AAEA,0BAHA;AAIA;AACA;AACA,iCADA;AAEA,2BAHA;AAIA;AACA;AACA,mCADA;AAEA,6BAHA;AAIA;AACA;AACA,mCADA;AAEA,6BAHA;AAIA;AACA;AACA;AACA,KA/DA,EAhBA;;AAiFA,QAjFA,kBAiFA,MAjFA,EAiFA;AACA;AACA;AACA,GApFA;AAqFA,eArFA,2BAqFA;AACA;AACA,GAvFA;AAwFA;AACA,cADA,sBACA,EADA,EACA;AACA;AACA,2CADA;;AAGA,KALA;AAMA,SANA,iBAMA,GANA,EAMA;AACA;AACA,gBADA;;AAGA,KAVA;AAWA,YAXA,sBAWA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBADA;AAEA,uBAFA;AAGA,wBAHA;AAIA,UAJA,CAIA;;AAEA,WADA,IACA,QADA,IACA;AACA;AACA;AACA;AACA,oDADA;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAHA,MAGA;AACA;AACA;AACA;AACA,OAhCA;AAiCA,KAlDA;AAmDA,WAnDA,qBAmDA;AACA;AACA;AACA;AACA,qBADA;AAEA,4BAFA;AAGA,kBAHA,oBAGA,CAHA,EAGA;AACA;AACA;AACA;AACA,0BADA;AAEA,kBAFA,CAEA;AACA;AACA,eAJA;AAKA;AACA,WAZA;;AAcA,OAfA,MAeA;AACA;AACA;AACA,oBADA;AAEA,YAFA,CAEA;AACA;AACA,SAJA;AAKA;AACA,KA5EA,EAxFA,E;;;;;;;;;;;;;ACpGA;AAAA;AAAA;AAAA;AAAqqC,CAAgB,2oCAAG,EAAC,C;;;;;;;;;;;ACAzrC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/user/dydetail.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/user/dydetail.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./dydetail.vue?vue&type=template&id=10f54241&scoped=true&\"\nvar renderjs\nimport script from \"./dydetail.vue?vue&type=script&lang=js&\"\nexport * from \"./dydetail.vue?vue&type=script&lang=js&\"\nimport style0 from \"./dydetail.vue?vue&type=style&index=0&id=10f54241&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\runtime\\\\componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"10f54241\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/user/dydetail.vue\"\nexport default component.exports","export * from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./dydetail.vue?vue&type=template&id=10f54241&scoped=true&\"","var components\ntry {\n components = {\n uniLoadMore: function() {\n return import(\n /* webpackChunkName: \"components/uni-load-more/uni-load-more\" */ \"@/components/uni-load-more/uni-load-more.vue\"\n )\n }\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var l0 = _vm.__map(_vm.list, function(item, index) {\n var $orig = _vm.__get_orig(item)\n\n var f0 =\n item.image_input.length == 1 ? _vm._f(\"showTime\")(item.add_time) : null\n var f1 =\n item.image_input.length == 0 ? _vm._f(\"showTime\")(item.add_time) : null\n var f2 =\n item.image_input.length > 1 ? _vm._f(\"showTime\")(item.add_time) : null\n return {\n $orig: $orig,\n f0: f0,\n f1: f1,\n f2: f2\n }\n })\n\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n l0: l0\n }\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./dydetail.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./dydetail.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"content\">\r\n\t\t<!-- 订阅号详情头部 start-->\r\n\t\t<view class=\"dy-info flex\">\r\n\t\t\t<view class=\"user-logo\">\r\n\t\t\t\t<image :src=\"info.headimg\" mode=\"\"></image>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"user-num\">\r\n\t\t\t\t<view class=\"user-name\">{{ info.name }}</view>\r\n\t\t\t\t<view class=\"sub-num\">发表文章:{{ info.count }}</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"dy-btn\" @click=\"dingYue()\" :class=\"{ dyue: isDy }\">{{ isDy ? '已订阅' : '+订阅' }}</view>\r\n\t\t</view>\r\n\t\t<!-- 订阅号详情头部 end-->\r\n\t\t<!-- 简介 -->\r\n\t\t<template v-if=\"info.introduce\">\r\n\t\t\t<view class=\"jj-top\">\r\n\t\t\t\t<text class=\"sh\"></text>订阅号简介\r\n\t\t\t</view>\r\n\t\t\t<view class=\"jj-content\" style=\"position: relative;margin-bottom: 20rpx;\" @click=\"navto('/pages/user/dyjj?id=' + info.id)\">\r\n\t\t\t\t<view class=\"\" v-html=\"info.introduce\"\r\n\t\t\t\t\tstyle=\"height: 195rpx;overflow: hidden;width: 100%;background-color: #fff;text-align: justify;padding: 20rpx;\">\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"menban\" style=\"\">查看全部</view>\r\n\t\t\t</view>\r\n\t\t</template>\r\n\t\t<!-- 订阅号详情文章列表 start-->\r\n\t\t<!-- <empty v-if=\"list.loaded === true && list.length === 0\"></empty> -->\r\n\t\t<view class=\"jj-top\" v-if=\"list.length > 0\">\r\n\t\t\t<text class=\"sh\"></text>文章资讯\r\n\t\t</view>\r\n\t\t<view>\r\n\t\t\t<view class=\"art-list\" v-for=\"(item, index) in list\" :key=\"index\">\r\n\t\t\t\t<!-- 文章图片为一 -->\r\n\t\t\t\t<view class=\"art-item-one flex art-item\" v-if=\"item.image_input.length == 1\"\r\n\t\t\t\t\t@click=\"goToDetail(item.id)\">\r\n\t\t\t\t\t<view class=\"art-left flex\">\r\n\t\t\t\t\t\t<view class=\"art-tit clamp2\">{{ item.title }}</view>\r\n\t\t\t\t\t\t<view class=\"art-time\">\r\n\t\t\t\t\t\t\t<!-- <image :src=\"item.image\" mode=\"\" class=\"hot\"></image> -->\r\n\t\t\t\t\t\t\t<!-- <text class=\"store-name\">{{ info.name }}</text> -->\r\n\t\t\t\t\t\t\t<text class=\"pl\" v-if=\"item.comment !=0\">{{ item.comment }}评论</text>\r\n\t\t\t\t\t\t\t<text class=\"creat-time\">\r\n\t\t\t\t\t\t\t\t{{item.add_time | showTime}}\r\n\t\t\t\t\t\t\t</text>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"art-right\">\r\n\t\t\t\t\t\t<image :src=\"item.image_input\" mode=\"\"></image>\r\n\t\t\t\t\t\t</image>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<!-- 文章图片为零 -->\r\n\t\t\t\t<view class=\"art-item-zero flex art-item\" v-if=\"item.image_input.length == 0\"\r\n\t\t\t\t\t@click=\"goToDetail(item.id)\">\r\n\t\t\t\t\t<view class=\"art-tit clamp2\">{{ item.title }}</view>\r\n\t\t\t\t\t<view class=\"art-time\">\r\n\t\t\t\t\t\t<!-- <image src=\"../../static/icon/hot.png\" mode=\"\" class=\"hot\"></image> -->\r\n\t\t\t\t\t\t<!-- <text class=\"store-name\">{{ info.name }}</text> -->\r\n\t\t\t\t\t\t<text class=\"pl\" v-if=\"item.comment !=0\">{{ item.comment }}评论</text>\r\n\t\t\t\t\t\t<text class=\"creat-time\">\r\n\t\t\t\t\t\t\t{{item.add_time | showTime}}\r\n\t\t\t\t\t\t</text>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<!-- 文章图片大于一 -->\r\n\t\t\t\t<view class=\"art-item-three art-item flex\" v-if=\"item.image_input.length > 1\"\r\n\t\t\t\t\t@click=\"goToDetail(item.id)\">\r\n\t\t\t\t\t<view class=\"art-tit clamp2\">{{ item.title }}</view>\r\n\t\t\t\t\t<view class=\"art-img-list\">\r\n\t\t\t\t\t\t<image :src=\"iem\" mode=\"\" v-for=\"(iem, ind) in item.image_input\"></image>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"art-time\">\r\n\t\t\t\t\t\t<!-- <image src=\"../../static/icon/hot.png\" mode=\"\" class=\"hot\"></image> -->\r\n\t\t\t\t\t\t<!-- <text class=\"store-name\">{{ info.name }}</text> -->\r\n\t\t\t\t\t\t<text class=\"pl\" v-if=\"item.comment !=0\">{{ item.comment }}评论</text>\r\n\t\t\t\t\t\t<text class=\"creat-time\">\r\n\t\t\t\t\t\t\t{{item.add_time | showTime}}\r\n\t\t\t\t\t\t</text>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<uni-load-more :status=\"loadingType\"></uni-load-more>\r\n\t\t</view>\r\n\t\t<!-- 订阅号详情文章列表 end-->\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport uniLoadMore from '@/components/uni-load-more/uni-load-more.vue';\r\n\timport empty from '@/components/empty';\r\n\timport {\r\n\t\tenDetails\r\n\t} from '@/api/user.js';\r\n\timport {\r\n\t\ttimeComputed\r\n\t} from '@/utils/rocessor.js';\r\n\timport {\r\n\t\tdingYue\r\n\t} from '@/api/art.js';\r\n\texport default {\r\n\t\tcomponents: {\r\n\t\t\tempty,\r\n\t\t\tuniLoadMore\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tisDy: false,\r\n\t\t\t\tid: '',\r\n\t\t\t\tpage: 1,\r\n\t\t\t\tlimit: 10,\r\n\t\t\t\tlist: [],\r\n\t\t\t\tloadingType: 'more',\r\n\t\t\t\tinfo: ''\r\n\t\t\t};\r\n\t\t},\r\n\t\tfilters: {\r\n\t\t\tshowTime(dateTime) {\r\n\t\t\t\t//dateTimeStamp是一个时间毫秒,注意时间戳是秒的形式,在这个毫秒的基础上除以1000,就是十位数的时间戳。13位数的都是时间毫秒。\r\n\t\t\t\tdateTime = dateTime*1000\r\n\t\t\t\tvar minute = 1000 * 60 //把分,时,天,周,半个月,一个月用毫秒表示\r\n\t\t\t\tvar hour = minute * 60\r\n\t\t\t\tvar day = hour * 24\r\n\t\t\t\tvar week = day * 7\r\n\t\t\t\tvar halfamonth = day * 15\r\n\t\t\t\tvar month = day * 30\r\n\t\t\t\tvar now = new Date().getTime() //获取当前时间毫秒\r\n\t\t\t\tvar dateTimeStamp = new Date(dateTime)\r\n\t\t\t\tvar diffValue = now - dateTimeStamp //时间差\r\n\t\t\t\t\r\n\t\t\t\tif (diffValue < 0) {\r\n\t\t\t\t\treturn\r\n\t\t\t\t}\r\n\t\t\t\tvar minC = diffValue / minute //计算时间差的分,时,天,周,月\r\n\t\t\t\tvar hourC = diffValue / hour\r\n\t\t\t\tvar dayC = diffValue / day\r\n\t\t\t\tvar weekC = diffValue / week\r\n\t\t\t\tvar monthC = diffValue / month\r\n\t\t\t\tvar result = ''\r\n\t\t\t\tconsole.log(monthC,weekC,dayC,hourC,minC)\r\n\t\t\t\tif (monthC >= 1 && monthC <= 3) {\r\n\t\t\t\t\tresult = ' ' + parseInt(monthC) + '月前'\r\n\t\t\t\t} else if (weekC >= 1 && weekC <= 4) {\r\n\t\t\t\t\tresult = ' ' + parseInt(weekC) + '周前'\r\n\t\t\t\t} else if (dayC >= 1 && dayC <= 7) {\r\n\t\t\t\t\tresult = ' ' + parseInt(dayC) + '天前'\r\n\t\t\t\t} else if (hourC >= 1 && hourC <= 24) {\r\n\t\t\t\t\tresult = ' ' + parseInt(hourC) + '小时前'\r\n\t\t\t\t} else if (minC >= 1 && minC <= 60) {\r\n\t\t\t\t\tresult = ' ' + parseInt(minC) + '分钟前'\r\n\t\t\t\t} else if (diffValue >= 0 && diffValue <= minute) {\r\n\t\t\t\t\tresult = '刚刚'\r\n\t\t\t\t} else {\r\n\t\t\t\t\tvar datetime = new Date()\r\n\t\t\t\t\tdatetime.setTime(dateTimeStamp)\r\n\t\t\t\t\tvar Nyear = datetime.getFullYear()\r\n\t\t\t\t\tvar Nmonth =\r\n\t\t\t\t\t\tdatetime.getMonth() + 1 < 10 ?\r\n\t\t\t\t\t\t'0' + (datetime.getMonth() + 1) :\r\n\t\t\t\t\t\tdatetime.getMonth() + 1\r\n\t\t\t\t\tvar Ndate =\r\n\t\t\t\t\t\tdatetime.getDate() < 10 ?\r\n\t\t\t\t\t\t'0' + datetime.getDate() :\r\n\t\t\t\t\t\tdatetime.getDate()\r\n\t\t\t\t\tvar Nhour =\r\n\t\t\t\t\t\tdatetime.getHours() < 10 ?\r\n\t\t\t\t\t\t'0' + datetime.getHours() :\r\n\t\t\t\t\t\tdatetime.getHours()\r\n\t\t\t\t\tvar Nminute =\r\n\t\t\t\t\t\tdatetime.getMinutes() < 10 ?\r\n\t\t\t\t\t\t'0' + datetime.getMinutes() :\r\n\t\t\t\t\t\tdatetime.getMinutes()\r\n\t\t\t\t\tvar Nsecond =\r\n\t\t\t\t\t\tdatetime.getSeconds() < 10 ?\r\n\t\t\t\t\t\t'0' + datetime.getSeconds() :\r\n\t\t\t\t\t\tdatetime.getSeconds()\r\n\t\t\t\t\tresult = Nyear + '-' + Nmonth + '-' + Ndate\r\n\t\t\t\t}\r\n\t\t\t\treturn result\r\n\t\t\t},\r\n\t\t},\r\n\t\tonLoad(option) {\r\n\t\t\tthis.id = option.id;\r\n\t\t\tthis.loadData();\r\n\t\t},\r\n\t\tonReachBottom() {\r\n\t\t\tthis.loadData()\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tgoToDetail(id) {\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl: '/pages/user/article?id=' + id\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tnavto(url) {\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tloadData() {\r\n\t\t\t\tconst obj = this\r\n\t\t\t\tif (this.loadingType == 'noMore' || this.loadingType == 'loading') {\r\n\t\t\t\t\treturn\r\n\t\t\t\t}\r\n\t\t\t\tthis.loadingType = 'loading'\r\n\t\t\t\tenDetails({\r\n\t\t\t\t\tid: this.id,\r\n\t\t\t\t\tpage: this.page,\r\n\t\t\t\t\trows: this.limit\r\n\t\t\t\t}).then(({\r\n\t\t\t\t\tdata\r\n\t\t\t\t}) => {\r\n\t\t\t\t\tthis.info = data.content.list[0];\r\n\t\t\t\t\tif (this.info.introduce) {\r\n\t\t\t\t\t\tthis.info.introduce = this.info.introduce.replace(/<img/g,\r\n\t\t\t\t\t\t\t\"<img style='max-width:100%;height:auto;'\")\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (this.info.is_sub == 1) {\r\n\t\t\t\t\t\tthis.isDy = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tconsole.log(this.info);\r\n\t\t\t\t\t// data.list.forEach(e => {\r\n\t\t\t\t\t// \tlet time = timeComputed(e.add_time * 1000);\r\n\t\t\t\t\t// \te.day = time.day;\r\n\t\t\t\t\t// \te.hour = time.hours;\r\n\t\t\t\t\t// \te.minutes = time.minutes;\r\n\t\t\t\t\t// \te.seconds = time.seconds;\r\n\t\t\t\t\t// });\r\n\t\t\t\t\tthis.list = this.list.concat(data.list);\r\n\t\t\t\t\tif (data.list.length === obj.limit) {\r\n\t\t\t\t\t\tobj.page++\r\n\t\t\t\t\t\tobj.loadingType = 'more'\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tobj.loadingType = 'noMore'\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.$set(obj.list, 'loaded', true);\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\tdingYue() {\r\n\t\t\t\tlet obj = this;\r\n\t\t\t\tif (this.isDy) {\r\n\t\t\t\t\tuni.showModal({\r\n\t\t\t\t\t\ttitle: '提示',\r\n\t\t\t\t\t\tcontent: '是否取消关注?',\r\n\t\t\t\t\t\tcomplete(e) {\r\n\t\t\t\t\t\t\tif (e.confirm) {\r\n\t\t\t\t\t\t\t\tobj.isDy = !obj.isDy;\r\n\t\t\t\t\t\t\t\tdingYue({\r\n\t\t\t\t\t\t\t\t\tid: obj.id\r\n\t\t\t\t\t\t\t\t}).then(res => {\r\n\t\t\t\t\t\t\t\t\tobj.$api.msg('已取消关注');\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tobj.isDy = !obj.isDy;\r\n\t\t\t\t\tdingYue({\r\n\t\t\t\t\t\tid: obj.id\r\n\t\t\t\t\t}).then(res => {\r\n\t\t\t\t\t\tobj.$api.msg('关注成功');\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t};\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n\t.jj {\r\n\t\tmargin: 20rpx 30rpx;\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: column;\r\n\r\n\t\t.jj-title {\r\n\r\n\t\t\tfont-size: 28rpx;\r\n\t\t\tfont-weight: 500;\r\n\r\n\r\n\t\t}\r\n\r\n\t\t.jj-content {\r\n\t\t\t// overflow: hidden;\r\n\r\n\t\t\t// text-overflow: ellipsis;\r\n\r\n\t\t\t// display: -webkit-box;\r\n\r\n\t\t\t// -webkit-line-clamp: 4; // 控制多行的行数\r\n\r\n\t\t\t// -webkit-box-orient: vertical;\r\n\t\t\tmargin-left: 20rpx;\r\n\t\t\tfont-size: 24rpx;\r\n\t\t\tfont-weight: 500;\r\n\t\t\tline-height: 36rpx;\r\n\r\n\t\t\t.jj-xq {\r\n\t\t\t\ttext {\r\n\t\t\t\t\tcolor: #03A9F4;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t.dy-info {\r\n\t\twidth: 750rpx;\r\n\t\theight: 197rpx;\r\n\t\tbackground-color: #ff6d6e;\r\n\t\tpadding: 0 30rpx;\r\n\t\tcolor: #fff;\r\n\r\n\t\t.user-logo {\r\n\t\t\tflex-shrink: 0;\r\n\t\t\theight: 100rpx;\r\n\t\t\twidth: 100rpx;\r\n\t\t\tborder-radius: 50%;\r\n\r\n\t\t\timage {\r\n\t\t\t\twidth: 100%;\r\n\t\t\t\theight: 100%;\r\n\t\t\t\tborder-radius: 50%;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t.user-num {\r\n\t\t\tflex-grow: 1;\r\n\t\t\tpadding-left: 10rpx;\r\n\t\t\tfont-size: 24rpx;\r\n\t\t\tfont-weight: 500;\r\n\r\n\t\t\t// color: #999999;\r\n\t\t\t.user-name {\r\n\t\t\t\tfont-size: 34rpx;\r\n\t\t\t\tfont-weight: 600;\r\n\t\t\t\t// color: #333333;\r\n\t\t\t\tpadding-right: 20rpx;\r\n\t\t\t\tpadding: 0 20rpx 10rpx 0;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t.dy-btn {\r\n\t\t\tflex-shrink: 0;\r\n\t\t\ttext-align: center;\r\n\t\t\twidth: 136rpx;\r\n\t\t\tline-height: 66rpx;\r\n\t\t\tbackground: #fff;\r\n\t\t\tborder-radius: 10rpx;\r\n\t\t\tfont-size: 28rpx;\r\n\t\t\tfont-weight: 500;\r\n\t\t\tcolor: #ff6061;\r\n\t\t}\r\n\t}\r\n\r\n\t.art-list {\r\n\t\tbackground-color: #fff;\r\n\t\twidth: 750rpx;\r\n\t\tfont-size: 31rpx;\r\n\t\tfont-weight: 500;\r\n\t\tcolor: #323232;\r\n\t\t// font-weight: bold;\r\n\t}\r\n\r\n\t.art-item {\r\n\t\twidth: 691rpx;\r\n\t\tborder-bottom: #e1e1e1 1px solid;\r\n\t\tmargin: auto;\r\n\r\n\t\t&:last-of-type {\r\n\t\t\tborder-bottom: none;\r\n\t\t}\r\n\t}\r\n\r\n\t.art-item-zero {\r\n\t\theight: 153rpx;\r\n\t\tflex-direction: column;\r\n\t\tjustify-content: space-between;\r\n\t\talign-items: flex-start;\r\n\t\tpadding: 20rpx 0;\r\n\t\tborder-bottom: #e1e1e1 1px solid;\r\n\t}\r\n\r\n\t.art-item-one {\r\n\t\theight: 195rpx;\r\n\t\tmargin: auto;\r\n\t\tpadding: 30rpx 0 20rpx;\r\n\r\n\t\t.art-left {\r\n\t\t\theight: 100%;\r\n\t\t\tflex-direction: column;\r\n\t\t\tjustify-content: space-between;\r\n\t\t\talign-items: flex-start;\r\n\t\t\tpadding-right: 40rpx;\r\n\t\t}\r\n\r\n\t\t.art-right {\r\n\t\t\twidth: 227rpx;\r\n\t\t\theight: 145rpx;\r\n\t\t\tborder-radius: 10rpx;\r\n\t\t\tflex-shrink: 0;\r\n\r\n\t\t\timage {\r\n\t\t\t\twidth: 100%;\r\n\t\t\t\theight: 100%;\r\n\t\t\t\tborder-radius: 10rpx;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t.art-item-three {\r\n\t\theight: 345rpx;\r\n\t\tflex-direction: column;\r\n\t\tjustify-content: space-between;\r\n\t\talign-items: flex-start;\r\n\t\tpadding: 30rpx 0;\r\n\r\n\t\t.art-img-list {\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 145rpx;\r\n\r\n\t\t\t// background-color: #bfa;\r\n\t\t\t// border-radius: 10px;\r\n\t\t\timage {\r\n\t\t\t\twidth: 220rpx;\r\n\t\t\t\theight: 145rpx;\r\n\t\t\t\tborder-radius: 10rpx;\r\n\t\t\t\tmargin-right: 15rpx;\r\n\r\n\t\t\t\t&:last-child {\r\n\t\t\t\t\tmargin-right: 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t.hot {\r\n\t\twidth: 22rpx;\r\n\t\theight: 22rpx;\r\n\t\tmargin-right: 10rpx;\r\n\t}\r\n\r\n\t.art-tit {\r\n\t\tfont-size: 28rpx;\r\n\t\tline-height: 1.2;\r\n\t}\r\n\r\n\t.art-time {\r\n\t\tdisplay: inline-block;\r\n\t\tfont-size: 24rpx;\r\n\t\tfont-weight: 500;\r\n\t\tcolor: #7f8699;\r\n\r\n\t\ttext {\r\n\t\t\tmargin-right: 10rpx;\r\n\t\t}\r\n\t}\r\n\r\n\t.jj-top {\r\n\t\tmargin-top: 20rpx;\r\n\t\tline-height: 55rpx;\r\n\t\tbackground-color: #fff;\r\n\t\tpadding-left: 20rpx;\r\n\r\n\t\t.sh {\r\n\t\t\tdisplay: inline-block;\r\n\t\t\twidth: 6rpx;\r\n\t\t\theight: 26rpx;\r\n\t\t\tbackground-color: #e50112;\r\n\t\t\tmargin: 18rpx 12rpx 0 0;\r\n\t\t\tborder-radius: 3rpx;\r\n\t\t\tfont-size: 26rpx;\r\n\t\t}\r\n\t}\r\n\r\n\t.jj-content {\r\n\t\t.menban {\r\n\t\t\tbackground: #fff;\r\n\t\t\tline-height: 50rpx;\r\n\t\t\twidth: 100%;\r\n\t\t\tz-index: 9;\r\n\t\t\tposition: absolute;\r\n\t\t\tbottom: 0;\r\n\t\t\ttext-align: center;\r\n\t\t\tbackground:linear-gradient(to bottom,rgba(255,255,255,0.8),rgba(255,255,255,1))\r\n\t\t}\r\n\t}\r\n</style>\n","import mod from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./dydetail.vue?vue&type=style&index=0&id=10f54241&lang=scss&scoped=true&\"; export default mod; export * from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./dydetail.vue?vue&type=style&index=0&id=10f54241&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1660177693083\n var cssReload = require(\"D:/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}
|