1 |
- {"version":3,"sources":["uni-app:///main.js","webpack:///C:/Users/Administrator/Desktop/xmt_new/pages/user/mydy.vue?6744","webpack:///C:/Users/Administrator/Desktop/xmt_new/pages/user/mydy.vue?6163","webpack:///C:/Users/Administrator/Desktop/xmt_new/pages/user/mydy.vue?107e","webpack:///C:/Users/Administrator/Desktop/xmt_new/pages/user/mydy.vue?c14f","uni-app:///pages/user/mydy.vue","webpack:///C:/Users/Administrator/Desktop/xmt_new/pages/user/mydy.vue?f37a","webpack:///C:/Users/Administrator/Desktop/xmt_new/pages/user/mydy.vue?73c6"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;;;AAGA;AACA,0F,8FAHA;AACAA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC,CAGAC,UAAU,CAACC,aAAD,CAAV,C;;;;;;;;;;;;;ACLA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA6H;AAC7H;AACwD;AACL;AACsC;;;AAGzF;AACqK;AACrK,gBAAgB,+KAAU;AAC1B,EAAE,0EAAM;AACR,EAAE,2FAAM;AACR,EAAE,oGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,+FAAU;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;AACA;AACA;;;;;;;;;;;;;;ACjCA;AAAA;AAAA;AAAA;AAA8lB,CAAgB,wnBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACqBlnB;AACA,uD;AACA;AACA;AACA,gBADA;AAEA,4BAFA,EADA;;AAKA,MALA,kBAKA;AACA;AACA,gBADA;AAEA,aAFA;AAGA,eAHA;AAIA,yBAJA;AAKA,cALA;;AAOA,GAbA;AAcA,QAdA,oBAcA;AACA;AACA,GAhBA;AAiBA,eAjBA,2BAiBA;AACA;AACA,GAnBA;AAoBA;AACA,YADA,sBACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBADA;AAEA,uBAFA;AAGA,UAHA,CAGA;AACA;AACA;AACA;AACA;AACA,WAHA;AAIA;AACA;AACA;AACA;AACA;AACA,SAHA,MAGA;AACA;AACA;AACA;AACA;AACA,OAnBA;AAoBA,KA3BA;AA4BA,WA5BA,mBA4BA,IA5BA,EA4BA;AACA;AACA;AACA;AACA,qBADA;AAEA,4BAFA;AAGA,kBAHA,oBAGA,CAHA,EAGA;AACA;AACA;AACA;AACA,2BADA;AAEA,kBAFA,CAEA;AACA;AACA,eAJA;AAKA;AACA,WAZA;;AAcA,OAfA,MAeA;AACA;AACA;AACA,qBADA;AAEA,YAFA,CAEA;AACA;AACA,SAJA;AAKA;AACA,KArDA;AAsDA,SAtDA,iBAsDA,GAtDA,EAsDA;AACA;AACA,gBADA;AAEA,YAFA,kBAEA;AACA;AACA,oBADA;;AAGA,SANA;;AAQA,KA/DA,EApBA,E;;;;;;;;;;;;;ACvBA;AAAA;AAAA;AAAA;AAAiqC,CAAgB,uoCAAG,EAAC,C;;;;;;;;;;;ACArrC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/user/mydy.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/mydy.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./mydy.vue?vue&type=template&id=86709748&scoped=true&\"\nvar renderjs\nimport script from \"./mydy.vue?vue&type=script&lang=js&\"\nexport * from \"./mydy.vue?vue&type=script&lang=js&\"\nimport style0 from \"./mydy.vue?vue&type=style&index=0&id=86709748&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 \"86709748\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/user/mydy.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!./mydy.vue?vue&type=template&id=86709748&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}\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!./mydy.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!./mydy.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"content\">\r\n\t\t<empty v-if=\"list.loaded === true && list.length === 0\"></empty>\r\n\t\t<view style=\"background-color: #fff;\">\r\n\t\t\t<view class=\"dy-wrap flex\" v-for=\"item in list\" @click=\"navTo('/pages/user/dydetail?id=' + item.id)\">\r\n\t\t\t\t<view class=\"user-logo\"><image :src=\"item.headimg\" mode=\"\"></image></view>\r\n\t\t\t\t<view class=\"user-num\">\r\n\t\t\t\t\t<view class=\"user-name\">{{ item.name }}</view>\r\n\t\t\t\t\t<view class=\"sub-num\">发表文章:{{ item.essay }}</view>\r\n\t\t\t\t\t<view class=\"read-num\">阅读量:{{ item.sort }}</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"dy-btn\" @click.stop=\"dingYue(item)\" :class=\"{ dyue: !item.isDy }\">{{ item.isDy ? '已订阅' : '+订阅' }}</view>\r\n\t\t\t</view>\r\n\t\t\t\r\n\t\t</view>\r\n\t\t<uni-load-more :status=\"loadingType\"></uni-load-more>\r\n\t</view>\n</template>\r\n<script>\r\nimport uniLoadMore from '@/components/uni-load-more/uni-load-more.vue';\r\nimport empty from '@/components/empty';\r\nimport { subscribe } from '@/api/user.js';\r\nimport { dingYue } from '@/api/art.js';\r\nexport default {\r\n\tcomponents: {\r\n\t\tempty,\r\n\t\tuniLoadMore\r\n\t},\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tisDy: true,\r\n\t\t\tpage: 1,\r\n\t\t\tlimit: 10,\r\n\t\t\tloadingType: 'more',\r\n\t\t\tlist: []\r\n\t\t};\r\n\t},\r\n\tonLoad() {\r\n\t\tthis.loadData();\r\n\t},\r\n\tonReachBottom() {\r\n\t\tthis.loadData();\r\n\t},\r\n\tmethods: {\r\n\t\tloadData() {\r\n\t\t\tconst obj = this;\r\n\t\t\tif (obj.loadingType == 'noMore' || obj.loadingType == 'loading') {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tobj.loadingType = 'loading';\r\n\t\t\tsubscribe({\r\n\t\t\t\tpage: obj.page,\r\n\t\t\t\trows: obj.limit\r\n\t\t\t}).then(({ data }) => {\r\n\t\t\t\tif (data.data.length != '') {\r\n\t\t\t\t\tdata.data.map(item => {\r\n\t\t\t\t\t\titem.isDy = true\r\n\t\t\t\t\t\treturn item\r\n\t\t\t\t\t})\r\n\t\t\t\t\tobj.list = obj.list.concat(data.data);\r\n\t\t\t\t}\r\n\t\t\t\tif (data.data.length === obj.limit) {\r\n\t\t\t\t\tobj.page++;\r\n\t\t\t\t\tobj.loadingType = 'more';\r\n\t\t\t\t} else {\r\n\t\t\t\t\tobj.loadingType = 'noMore';\r\n\t\t\t\t}\r\n\t\t\t\tconsole.log(obj.loadingType);\r\n\t\t\t\tthis.$set(obj.list, 'loaded', true);\r\n\t\t\t});\r\n\t\t},\r\n\t\tdingYue(item) {\r\n\t\t\tlet obj = this;\r\n\t\t\tif (item.isDy) {\r\n\t\t\t\tuni.showModal({\r\n\t\t\t\t\ttitle: '提示',\r\n\t\t\t\t\tcontent: '是否取消关注?',\r\n\t\t\t\t\tcomplete(e) {\r\n\t\t\t\t\t\tif (e.confirm) {\r\n\t\t\t\t\t\t\titem.isDy = !item.isDy;\r\n\t\t\t\t\t\t\tdingYue({\r\n\t\t\t\t\t\t\t\tid: item.id\r\n\t\t\t\t\t\t\t}).then(res => {\r\n\t\t\t\t\t\t\t\tobj.$api.msg('已取消关注');\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});\r\n\t\t\t} else {\r\n\t\t\t\titem.isDy = !item.isDy;\r\n\t\t\t\tdingYue({\r\n\t\t\t\t\tid: item.id\r\n\t\t\t\t}).then(res => {\r\n\t\t\t\t\tobj.$api.msg('关注成功');\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t},\r\n\t\tnavTo(url) {\r\n\t\t\tuni.navigateTo({\r\n\t\t\t\turl,\r\n\t\t\t\tfail() {\r\n\t\t\t\t\tuni.switchTab({\r\n\t\t\t\t\t\turl\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t}\r\n};\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\npage {\r\n\tbackground-color: #f8f8f8;\r\n}\r\n.content {\r\n\t\r\n}\r\n.dy-wrap {\r\n\twidth: 707rpx;\r\n\t// background: #E9E9E9;\r\n\t\r\n\tmargin: auto;\r\n\tborder-bottom: #e9e9e9 solid 1px;\r\n\tpadding: 20rpx 0;\r\n\t.user-logo {\r\n\t\tflex-shrink: 0;\r\n\t\theight: 100rpx;\r\n\t\twidth: 100rpx;\r\n\t\tborder-radius: 50%;\r\n\t\timage {\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 100%;\r\n\t\t\tborder-radius: 50%;\r\n\t\t}\r\n\t}\r\n\t.user-num {\r\n\t\tflex-grow: 1;\r\n\t\tpadding-left: 10rpx;\r\n\t\tfont-size: 24rpx;\r\n\t\tfont-weight: 500;\r\n\t\tcolor: #999999;\r\n\t\t.user-name {\r\n\t\t\tfont-size: 34rpx;\r\n\t\t\tfont-weight: 600;\r\n\t\t\tcolor: #333333;\r\n\t\t\tpadding-right: 20rpx;\r\n\t\t\tpadding: 0 20rpx 20rpx 0;\r\n\t\t}\r\n\t}\r\n\t.dy-btn {\r\n\t\tflex-shrink: 0;\r\n\t\ttext-align: center;\r\n\t\twidth: 136rpx;\r\n\t\tline-height: 66rpx;\r\n\t\tbackground: #e9e9e9;\r\n\t\tborder-radius: 10rpx;\r\n\t\tfont-size: 28rpx;\r\n\t\tfont-weight: 500;\r\n\t\tcolor: #999999;\r\n\t}\r\n\r\n}\r\n.dyue {\r\n\tbackground: #e6645f !important;\r\n\tcolor: #fff !important;\r\n}\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!./mydy.vue?vue&type=style&index=0&id=86709748&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!./mydy.vue?vue&type=style&index=0&id=86709748&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1660177693071\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":""}
|