1 |
- {"version":3,"sources":["uni-app:///main.js","webpack:///C:/Users/Administrator/Desktop/xmt_new/pages/user/mymsg.vue?211e","webpack:///C:/Users/Administrator/Desktop/xmt_new/pages/user/mymsg.vue?ccc4","webpack:///C:/Users/Administrator/Desktop/xmt_new/pages/user/mymsg.vue?16d2","webpack:///C:/Users/Administrator/Desktop/xmt_new/pages/user/mymsg.vue?a3b4","uni-app:///pages/user/mymsg.vue","webpack:///C:/Users/Administrator/Desktop/xmt_new/pages/user/mymsg.vue?2801","webpack:///C:/Users/Administrator/Desktop/xmt_new/pages/user/mymsg.vue?aab7"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;;;AAGA;AACA,4F,8FAHA;AACAA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC,CAGAC,UAAU,CAACC,cAAD,CAAV,C;;;;;;;;;;;;;ACLA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA8H;AAC9H;AACyD;AACL;AACsC;;;AAG1F;AACqK;AACrK,gBAAgB,+KAAU;AAC1B,EAAE,2EAAM;AACR,EAAE,4FAAM;AACR,EAAE,qGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,gGAAU;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;AAA+lB,CAAgB,ynBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC2CnnB;AACA;AACA,+C;AACA;AACA;AACA,gBADA;AAEA,4BAFA,EADA;;AAKA,MALA,kBAKA;AACA;AACA,aADA;AAEA,eAFA;AAGA,yBAHA;AAIA,cAJA;;AAMA,GAZA;AAaA,QAbA,oBAaA;AACA;AACA,GAfA;AAgBA;AACA,uDADA,CAhBA;;AAmBA,eAnBA,2BAmBA;AACA;AACA,GArBA;AAsBA;AACA,YADA,sBACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBADA;AAEA,wBAFA;AAGA,UAHA,CAGA;AACA;AACA;AACA;AACA;AACA;AACA,WAHA;AAIA;AACA;AACA;AACA;AACA;AACA,SAHA,MAGA;AACA;AACA;AACA;AACA,OAnBA;AAoBA,KA3BA;AA4BA,SA5BA,iBA4BA,IA5BA,EA4BA;AACA;AACA,wDADA;;AAGA,KAhCA,EAtBA,E;;;;;;;;;;;;;AC9CA;AAAA;AAAA;AAAA;AAAkqC,CAAgB,woCAAG,EAAC,C;;;;;;;;;;;ACAtrC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/user/mymsg.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/mymsg.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./mymsg.vue?vue&type=template&id=9de7406c&scoped=true&\"\nvar renderjs\nimport script from \"./mymsg.vue?vue&type=script&lang=js&\"\nexport * from \"./mymsg.vue?vue&type=script&lang=js&\"\nimport style0 from \"./mymsg.vue?vue&type=style&index=0&id=9de7406c&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 \"9de7406c\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/user/mymsg.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!./mymsg.vue?vue&type=template&id=9de7406c&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!./mymsg.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!./mymsg.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 class=\"\">\r\n\t\t\t<view class=\"pl-wrap\" v-for=\"(item, index) in list\" @click=\"navTo(item)\">\r\n\t\t\t\t<!-- 用户名 -->\r\n\t\t\t\t<view class=\"user-info flex\">\r\n\t\t\t\t\t<view class=\"user-logo\">\r\n\t\t\t\t\t\t<image :src=\"userInfo.avatar\" class=\"avater-img\" mode=\"\" v-if=\"userInfo.avatar\"></image>\r\n\t\t\t\t\t\t<image src=\"../../static/error/missing-face.png\" mode=\"\" v-else class=\"avater-img\"></image>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"user-num\">\r\n\t\t\t\t\t\t<view class=\"user-name\">{{ userInfo.nickname }}</view>\r\n\t\t\t\t\t\t<view class=\"sub-num\">{{ item.create }}</view>\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=\"pl\">{{ item.to.content }}</view>\r\n\t\t\t\t<!-- 别人的评论 -->\r\n\t\t\t\t<view class=\"other-pl\" v-if=\"item.user != null\">\r\n\t\t\t\t\t<text class=\"text\">{{ item.user.nickname }}</text>\r\n\t\t\t\t\t回复我 :\r\n\t\t\t\t\t<text>{{ item.to.content }}</text>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"other-pl\" v-if=\"item.user == null\">\r\n\t\t\t\t\t<text class=\"text\">管理员</text>\r\n\t\t\t\t\t回复我 :\r\n\t\t\t\t\t<text>{{ item.content }}</text>\r\n\t\t\t\t</view>\r\n\t\t\t\t<!-- 文章简介 -->\r\n\t\t\t\t<view class=\"art flex\">\r\n\t\t\t\t\t<view class=\"art-img\" v-if=\"item.article.image_input.length > 0\"><image :src=\"item.article.image_input[0]\" mode=\"\"></image></view>\r\n\t\t\t\t\t<view class=\"art-jj clamp2\">{{ item.article.title }}</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<uni-load-more :status=\"loadingType\"></uni-load-more>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\nimport uniLoadMore from '@/components/uni-load-more/uni-load-more.vue';\r\nimport empty from '@/components/empty';\r\nimport { to_my_reply } from '@/api/user.js';\r\nimport { getTime } from '@/utils/rocessor.js';\r\nimport { mapState, mapMutations } from 'vuex';\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\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\tcomputed: {\r\n\t\t...mapState('user', ['hasLogin', 'userInfo'])\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\tto_my_reply({\r\n\t\t\t\tpage: obj.page,\r\n\t\t\t\tlimit: obj.limit\r\n\t\t\t}).then(({ data }) => {\r\n\t\t\t\tconsole.log(data);\r\n\t\t\t\tif (data.list.length != '') {\r\n\t\t\t\t\tdata.list.forEach(e => {\r\n\t\t\t\t\t\te.create = getTime(e.add_time);\r\n\t\t\t\t\t\tconsole.log(e);\r\n\t\t\t\t\t});\r\n\t\t\t\t\tobj.list = obj.list.concat(data.list);\r\n\t\t\t\t}\r\n\t\t\t\tif (data.list.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\tthis.$set(obj.list, 'loaded', true);\r\n\t\t\t});\r\n\t\t},\r\n\t\tnavTo(item){\r\n\t\t\tuni.navigateTo({\r\n\t\t\t\turl:'/pages/user/article?id='+ item.article.id\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\n.content {\r\n\tpadding-top: 20rpx;\r\n}\r\n.pl-wrap {\r\n\tbackground-color: #fff;\r\n\tpadding: 20rpx 30rpx;\r\n}\r\n.user-info {\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\tborder-radius: 50%;\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 100%;\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}\r\n.pl {\r\n\tfont-size: 24rpx;\r\n\tfont-weight: 500;\r\n\tcolor: #333333;\r\n\tpadding-top: 30rpx;\r\n}\r\n.other-pl {\r\n\twidth: 690rpx;\r\n\tmargin-top: 10rpx;\r\n\tpadding: 16rpx;\r\n\tfont-size: 24rpx;\r\n\tbackground: #f5f5f5;\r\n\ttext {\r\n\t\tword-break: break-all;\r\n\t\tword-wrap: break-word;\r\n\t}\r\n\t.text {\r\n\t\tcolor: #3a41ee;\r\n\t}\r\n}\r\n.art {\r\n\tmargin-top: 15rpx;\r\n\twidth: 690rpx;\r\n\theight: 138rpx;\r\n\tbackground: #f6f9fc;\r\n\tpadding: 15rpx 18rpx;\r\n\t.art-img {\r\n\t\tflex-shrink: 0;\r\n\t\twidth: 169rpx;\r\n\t\theight: 108rpx;\r\n\t\tborder-radius: 10rpx;\r\n\t\tmargin-right: 17rpx;\r\n\t\timage {\r\n\t\t\twidth: 169rpx;\r\n\t\t\theight: 108rpx;\r\n\t\t}\r\n\t}\r\n\t.art-jj {\r\n\t\tflex-grow: 1;\r\n\t\tfont-size: 23rpx;\r\n\t\tfont-weight: 500;\r\n\t\tcolor: #323232;\r\n\t}\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!./mymsg.vue?vue&type=style&index=0&id=9de7406c&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!./mymsg.vue?vue&type=style&index=0&id=9de7406c&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1660177693101\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":""}
|