1 |
- {"version":3,"sources":["uni-app:///main.js","webpack:///C:/Users/Administrator/Desktop/xmt_new/pages/index/searchZmt.vue?0498","webpack:///C:/Users/Administrator/Desktop/xmt_new/pages/index/searchZmt.vue?1ebb","webpack:///C:/Users/Administrator/Desktop/xmt_new/pages/index/searchZmt.vue?523f","webpack:///C:/Users/Administrator/Desktop/xmt_new/pages/index/searchZmt.vue?8286","uni-app:///pages/index/searchZmt.vue","webpack:///C:/Users/Administrator/Desktop/xmt_new/pages/index/searchZmt.vue?95b9","webpack:///C:/Users/Administrator/Desktop/xmt_new/pages/index/searchZmt.vue?e180"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;;;AAGA;AACA,qG,8FAHA;AACAA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC,CAGAC,UAAU,CAACC,kBAAD,CAAV,C;;;;;;;;;;;;;ACLA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkI;AAClI;AAC6D;AACL;AACsC;;;AAG9F;AACqK;AACrK,gBAAgB,+KAAU;AAC1B,EAAE,+EAAM;AACR,EAAE,gGAAM;AACR,EAAE,yGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,oGAAU;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;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAmmB,CAAgB,6nBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACuCvnB,uD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0RAEA,EACA,cACA;AACA,gBAFA,EADA,EAKA,IALA,kBAKA,CACA,SACA,QADA,EAEA,OAFA,EAGA,SAHA,EAIA,mBAJA,EAKA,WALA,GAOA,CAbA,EAcA,aAdA,2BAcA,CACA,eACA,CAhBA,EAiBA,WACA,KADA,iBACA,GADA,EACA,CACA,iBACA,QADA,IAGA,CALA,EAMA,OANA,mBAMA,IANA,EAMA,CACA,eACA,sBACA,cACA,aACA,yBACA,CACA,sBACA,cADA,EAEA,eAFA,EAGA,iBAHA,IAIA,IAJA,CAIA,gBACA,iBACA,0CACA,CAPA;AAQA,KArBA;AAsBA;AACA,WAvBA,mBAuBA,IAvBA,EAuBA;AACA;AACA;AACA;AACA;AACA,qBADA;AAEA,4BAFA;AAGA,kBAHA,oBAGA,CAHA,EAGA;AACA;AACA;AACA;AACA,2BADA;AAEA,kBAFA,CAEA;AACA;AACA;AACA;AACA;AACA,eAPA;;AASA;AACA,WAhBA;;AAkBA,OAnBA,MAmBA;AACA;AACA;AACA,qBADA;AAEA,YAFA,CAEA;AACA;AACA;AACA;AACA,SANA;;AAQA;;AAEA,KAzDA,EAjBA,E;;;;;;;;;;;;;ACzCA;AAAA;AAAA;AAAA;AAAsqC,CAAgB,4oCAAG,EAAC,C;;;;;;;;;;;ACA1rC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/index/searchZmt.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/index/searchZmt.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./searchZmt.vue?vue&type=template&id=24babb1a&scoped=true&\"\nvar renderjs\nimport script from \"./searchZmt.vue?vue&type=script&lang=js&\"\nexport * from \"./searchZmt.vue?vue&type=script&lang=js&\"\nimport style0 from \"./searchZmt.vue?vue&type=style&index=0&id=24babb1a&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 \"24babb1a\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/index/searchZmt.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!./searchZmt.vue?vue&type=template&id=24babb1a&scoped=true&\"","var components\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!./searchZmt.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!./searchZmt.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"content\">\r\n\t\t<!--搜索 start-->\r\n\t\t<view class=\"Search-box\" @click=\"\">\r\n\t\t\t<view class=\"Search-box-size\">\r\n\t\t\t\t<image class=\"box-img\" src=\"../../static/img/img01.png\"></image>\r\n\t\t\t\t<input type=\"text\" class=\"box-word\" placeholder=\"请输入关键字\" v-model=\"keyword\" />\r\n\t\t\t</view>\r\n\t\t\t<view class=\"Search-box-sort\" @click=\"getList('click')\">搜索</view>\r\n\t\t</view>\r\n\t\t<!-- 搜索 end-->\r\n\t\t<!-- 补位 -->\r\n\t\t<view class=\"\" style=\"height: 100rpx;\"></view>\r\n\t\t<!-- 自媒体列表 start -->\r\n\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<view class=\"user-logo\">\r\n\t\t\t\t<image :src=\"item.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\">\r\n\t\t\t\t\t{{item.name}}\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"sub-num\">\r\n\t\t\t\t\t发表文章:{{item.count}}\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"read-num\">\r\n\t\t\t\t\t阅读量:{{item.visit}}\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"dy-btn\" :class=\"{'dying':item.is_sub == 1}\" @click.stop=\"dingYue(item)\">\r\n\t\t\t\t{{item.is_sub == 1?'已订阅':'订阅'}}\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<!-- 自媒体列表 end -->\r\n\t\t<!-- <empty v-if=\" list.length === 0\"></empty> -->\r\n\t</view>\n</template>\n\n<script>\r\n\timport { searchZmt,dingYue } from '@/api/art.js'\r\n\timport empty from '@/components/empty';\r\n\texport default {\r\n\t\tcomponents: {\r\n\t\t\t// uniLoadMore,\r\n\t\t\tempty\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tlist: [],\r\n\t\t\t\tpage: 1,\r\n\t\t\t\tlimit: 20,\r\n\t\t\t\tloadingType: 'more',\r\n\t\t\t\tkeyword: '',\r\n\t\t\t}\r\n\t\t},\r\n\t\tonReachBottom() {\r\n\t\t\tthis.getList()\r\n\t\t},\r\n\t\tmethods: {\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\tgetList(type) {\r\n\t\t\t\tlet obj = this\r\n\t\t\t\tif(type == 'click') {\r\n\t\t\t\t\tobj.list = []\r\n\t\t\t\t\tobj.page = 1\r\n\t\t\t\t\tobj.loadingType = 'more'\r\n\t\t\t\t}\r\n\t\t\t\tsearchZmt({\r\n\t\t\t\t\tpage: obj.page,\r\n\t\t\t\t\trows: obj.limit,\r\n\t\t\t\t\tname: obj.keyword\r\n\t\t\t\t}).then(res => {\r\n\t\t\t\t\tconsole.log(res)\r\n\t\t\t\t\tobj.list = obj.list.concat(res.data.list)\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t// 订阅\r\n\t\t\tdingYue(item) {\r\n\t\t\t\tlet obj = this\r\n\t\t\t\t// is_sub 为1 时为关注状态\r\n\t\t\t\tif(item.is_sub == 1) {\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\t// 取消关注\r\n\t\t\t\t\t\t\t\tdingYue({\r\n\t\t\t\t\t\t\t\t\tid:item.id\r\n\t\t\t\t\t\t\t\t}).then(res => {\r\n\t\t\t\t\t\t\t\t\tconsole.log(res)\r\n\t\t\t\t\t\t\t\t\tlet s = obj.list.indexOf(item);\r\n\t\t\t\t\t\t\t\t\tobj.list[s].is_sub = 0\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\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\t// 关注\r\n\t\t\t\t\tdingYue({\r\n\t\t\t\t\t\tid:item.id\r\n\t\t\t\t\t}).then(res => {\r\n\t\t\t\t\t\tlet s = obj.list.indexOf(item);\r\n\t\t\t\t\t\tobj.list[s].is_sub = 1\r\n\t\t\t\t\t\tobj.$api.msg('已关注')\r\n\t\t\t\t\t})\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}\n</script>\n\n<style lang=\"scss\" scoped>\r\n\t.content {\r\n\t\tbackground-color: #fff;\r\n\t}\r\n\t.Search-box {\r\n\t\tposition: absolute;\r\n\t\ttop: 0;\r\n\t\twidth: 750rpx;\r\n\t\tpadding-left: 20rpx;\r\n\t\tpadding-right: 20rpx;\r\n\t\theight: 100rpx;\r\n\t\tbackground: #ffffff;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: space-around;\r\n\t\talign-items: center;\r\n\t\r\n\t\t.Search-box-sort {\r\n\t\t\tfont-size: 30rpx;\r\n\t\t\tflex-shrink: 0;\r\n\t\t\tfont-weight: 500;\r\n\t\t\tcolor: rgba(102, 102, 102, 1);\r\n\t\r\n\t\t\t.sort-text {\r\n\t\t\t\twidth: 57rpx;\r\n\t\t\t\theight: 29rpx;\r\n\t\t\t\tfont-size: 30rpx;\r\n\t\t\t\tfont-weight: 500;\r\n\t\t\t\tcolor: rgba(51, 51, 51, 1);\r\n\t\t\t\tline-height: 58rpx;\r\n\t\t\t\tmargin-right: 19rpx;\r\n\t\t\t}\r\n\t\t\t.sort-img {\r\n\t\t\t\twidth: 21rpx;\r\n\t\t\t\theight: 11rpx;\r\n\t\t\t\tmargin-bottom: 4rpx;\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t.Search-box-size {\r\n\t\t\twidth: 605rpx;\r\n\t\t\theight: 65rpx;\r\n\t\t\tborder-radius: 32rpx;\r\n\t\t\tbackground-color: #f1f1f1;\r\n\t\t\tpadding-left: 36rpx;\r\n\t\t\tdisplay: flex;\r\n\t\t\talign-items: center;\r\n\t\r\n\t\t\t.box-img {\r\n\t\t\t\theight: 32rpx;\r\n\t\t\t\twidth: 32rpx;\r\n\t\t\t\tmargin-right: 16rpx;\r\n\t\t\t}\r\n\t\t\t.box-word {\r\n\t\t\t\twidth: 100%;\r\n\t\t\t\tfont-size: 22rpx;\r\n\t\t\t\tfont-weight: 500;\r\n\t\t\t\tcolor: rgba(205, 203, 203, 1);\r\n\t\t\t\tline-height: 55rpx;\r\n\t\t\t\tcolor: #000000;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t.dy-wrap {\r\n\t\twidth: 707rpx;\r\n\t\tbackground: #fff;\r\n\t\tmargin: auto;\r\n\t\tborder-bottom: #E9E9E9 solid 1px;\r\n\t\tpadding: 20rpx 0;\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\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\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\t\t\tcolor: #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\tcolor: #333333;\r\n\t\t\t\tpadding-right: 20rpx;\r\n\t\t\t\tpadding: 0 20rpx 20rpx 0;\r\n\t\t\t}\r\n\t\t}\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\t\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\t\r\n\t\t\tbackground: #E6645F;\r\n\t\t\tcolor: #fff;\r\n\t\t}\r\n\t\t.dying {\r\n\t\t\t\r\n\t\t\tcolor: #999999;\r\n\t\t\tbackground: #E9E9E9;\r\n\t\t}\r\n\t}\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!./searchZmt.vue?vue&type=style&index=0&id=24babb1a&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!./searchZmt.vue?vue&type=style&index=0&id=24babb1a&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1660177692832\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":""}
|