1 line
15 KiB
Plaintext
1 line
15 KiB
Plaintext
{"version":3,"sources":["uni-app:///main.js","webpack:///D:/chenq/chen/hengmei/hengmei/pagesB/messagecenter/messagecenter.vue?e9e7","webpack:///D:/chenq/chen/hengmei/hengmei/pagesB/messagecenter/messagecenter.vue?8ab9","webpack:///D:/chenq/chen/hengmei/hengmei/pagesB/messagecenter/messagecenter.vue?d0c0","webpack:///D:/chenq/chen/hengmei/hengmei/pagesB/messagecenter/messagecenter.vue?9ac8","uni-app:///pagesB/messagecenter/messagecenter.vue","webpack:///D:/chenq/chen/hengmei/hengmei/pagesB/messagecenter/messagecenter.vue?2c5a","webpack:///D:/chenq/chen/hengmei/hengmei/pagesB/messagecenter/messagecenter.vue?20a4"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,sH;AACAA,UAAU,CAACC,sBAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA0H;AAC1H;AACiE;AACL;AACa;;;AAGzE;AACmL;AACnL,gBAAgB,uLAAU;AAC1B,EAAE,mFAAM;AACR,EAAE,wFAAM;AACR,EAAE,iGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,4FAAU;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;AAA0rB,CAAgB,yqBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACqC9sB;AACA,MADA,kBACA;AACA;AACA,gDADA;AAEA,mBAFA,EAEA;AACA,oDAHA,EAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAhBA,OAJA;AAsBA,oBAtBA,EAsBA;AACA,gBAvBA;AAwBA,iBAxBA;AAyBA,aAzBA;AA0BA,cA1BA;AA2BA,cA3BA;AA4BA,kBA5BA;AA6BA,wBA7BA,CA6BA;AA7BA;AA+BA,GAjCA;AAkCA,cAlCA,wBAkCA,CAlCA,EAkCA;AACA;AACA,GApCA;AAqCA,eArCA,2BAqCA;AACA;AACA;AACA,uBAFA,CAEA;AACA,KAHA,MAGA;AACA;AACA;AACA;AACA,GA7CA;AA8CA,QA9CA,oBA8CA;AACA;AACA,GAhDA;AAiDA,QAjDA,kBAiDA,OAjDA,EAiDA;AACA;AACA;AACA;AACA;AACA,KAHA,EAGA,IAHA;AAIA;AACA;AACA,GAzDA;AA0DA;AACA,YADA,sBACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCADA;AAEA;AACA;AACA,uCADA;AAEA,iCAFA;AAGA,uCAHA,EADA,CAFA;;;;AAUA;AACA,aAfA;AAgBA;AACA;AACA,OAxBA,EAwBA,mBAxBA;AAyBA,KA3BA;AA4BA,YA5BA,oBA4BA,IA5BA,EA4BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAHA,MAGA;AACA;AACA;AACA;AACA,KAvCA;AAwCA,WAxCA,qBAwCA;AACA;AACA,oBADA;AAEA,qBAFA;;AAIA,KA7CA,EA1DA,E;;;;;;;;;;;;;ACrCA;AAAA;AAAA;AAAA;AAA6+B,CAAgB,k7BAAG,EAAC,C;;;;;;;;;;;ACAjgC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pagesB/messagecenter/messagecenter.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pagesB/messagecenter/messagecenter.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./messagecenter.vue?vue&type=template&id=3c0f3de6&\"\nvar renderjs\nimport script from \"./messagecenter.vue?vue&type=script&lang=js&\"\nexport * from \"./messagecenter.vue?vue&type=script&lang=js&\"\nimport style0 from \"./messagecenter.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../HbuilderX/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 null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pagesB/messagecenter/messagecenter.vue\"\nexport default component.exports","export * from \"-!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./messagecenter.vue?vue&type=template&id=3c0f3de6&\"","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 \"-!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./messagecenter.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./messagecenter.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view>\r\n\t\t<!-- 状态栏 -->\r\n\t\t<status-nav :titleVal=\"'消息'\" :statusTitle=\"true\"></status-nav>\r\n\t\t<view id=\"daoh\" class=\"bacf pad-zy30 pad-sx20 isTopf fon28 col3 disja\" :style=\"{top:statusHNH+'px'}\">\r\n\t\t\t<view @tap=\"switchEv(true)\" :class=\"isWen?'isWen bold':'col9'\" class=\"posir\">日程提醒</view>\r\n\t\t\t<view @tap=\"switchEv(false)\" :class=\"!isWen?'isWen bold':'col9'\" class=\"posir\">消息中心</view>\r\n\t\t</view>\r\n\t\t<!-- 列表 -->\r\n\t\t<view :style=\"{paddingTop: (statusHNH+chuTop+15)+'px'}\" class=\"pad-zy32\">\r\n\t\t\t<view v-if=\"dataList.length!=0\">\r\n\t\t\t\t<view v-for=\"(item,index) in dataList\" :key=\"index\">\r\n\t\t\t\t\t<view class=\"fon24 col6 tc mar-sx50\">{{item.time}}</view>\r\n\t\t\t\t\t<view class=\"radius10 bacf pad20 mar-x20\" v-for=\"(iteml,indexl) in item.list\" :key=\"indexl\">\r\n\t\t\t\t\t\t<view class=\"disac\">\r\n\t\t\t\t\t\t\t<image v-if=\"iteml.is_read==0\" class=\"message-img\" src=\"/static/public/unread.png\" mode=\"\"></image>\r\n\t\t\t\t\t\t\t<image v-if=\"iteml.is_read==1\" class=\"message-img\" src=\"/static/public/read.png\" mode=\"\"></image>\r\n\t\t\t\t\t\t\t<view class=\"fon28 col3 bold mar-zy10\">{{iteml.title}}</view>\r\n\t\t\t\t\t\t\t<view :style=\"{background:iteml.is_read==1?'rgba(204, 204, 204,1)':'#FF4D4D'}\" class=\"message-status\">{{iteml.is_read==1?'已读':'未读'}}</view>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view v-if=\"iteml.content!=''\" class=\"fon26 col3 mar-s20\">{{iteml.content}}</view>\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<view v-else class=\"disjcac fc\" style=\"margin-top: 50%;\">\r\n\t\t\t\t<image src=\"/static/public/nothingm.png\" style=\"width: 474rpx;height: 273rpx;\" mode=\"aspectFill\"></image>\r\n\t\t\t\t<view class=\"fon24 col3\">暂无消息</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<!-- 返回顶部 -->\r\n\t\t<!-- <back-top :showTop=\"showTop\" @backTop=\"backTop\"></back-top> -->\r\n\t\t<!-- 底部客服 -->\r\n\t\t<public-customer :nbottom=\"100\"></public-customer>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tstatusHNH:uni.getStorageSync('statusHNH'),\r\n\t\t\t\tsearchVal:'',//输入框的值\r\n\t\t\t\tpublicColor:uni.getStorageSync('publicColor'),//主题颜色\r\n\t\t\t\tdataList:[\r\n\t\t\t\t\t// {\r\n\t\t\t\t\t// \ttime:'2021-07-15 14:25',\r\n\t\t\t\t\t// \tlist:[\r\n\t\t\t\t\t// \t\t{is_read:0,title:'系统消息',content:''},\r\n\t\t\t\t\t// \t\t{is_read:0,title:'系统消息',content:'尊敬的用户XX您好,您预约已成功,请与2021年7月28 日14:30分准时到达“恒美植发”门店进行检查。'},\r\n\t\t\t\t\t// \t\t{is_read:0,title:'系统消息',content:'尊敬的用户XX您好,您预约已成功,请与2021年7月28 日14:30分准时到达“恒美植发”门店进行检查。'},\r\n\t\t\t\t\t// \t]\r\n\t\t\t\t\t// },\r\n\t\t\t\t\t// {\r\n\t\t\t\t\t// \ttime:'2021-07-10 22:36',\r\n\t\t\t\t\t// \tlist:[\r\n\t\t\t\t\t// \t\t{is_read:1,title:'系统消息',content:'尊敬的用户XX您好,您预约已成功,请与2021年7月28 日14:30分准时到达“恒美植发”门店进行检查。'},\r\n\t\t\t\t\t// \t\t{is_read:1,title:'系统消息',content:'尊敬的用户XX您好,您预约已成功,请与2021年7月28 日14:30分准时到达“恒美植发”门店进行检查。'},\r\n\t\t\t\t\t// \t\t{is_read:1,title:'系统消息',content:'尊敬的用户XX您好,您预约已成功,请与2021年7月28 日14:30分准时到达“恒美植发”门店进行检查。'},\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\tshowTop:false,//是否显示返回顶部\r\n\t\t\t\tchuTop:'',\r\n\t\t\t\tisWen:true,\r\n\t\t\t\tpage:1,\r\n\t\t\t\tsize:10,\r\n\t\t\t\ttotal:0,\r\n\t\t\t\tisZanw:true,\r\n\t\t\t\tntype:'reminders'//默认日程提醒\r\n\t\t\t}\r\n\t\t},\r\n\t\tonPageScroll(e) {\r\n\t\t e.scrollTop > 360 ? this.showTop = true : this.showTop = false\r\n\t\t},\r\n\t\tonReachBottom() {\r\n\t\t\tif(this.total!=this.dataList.length){\r\n\t\t\t\tthis.page++\r\n\t\t\t\tthis.checkList()//调用自主预约列表事件\r\n\t\t\t} else {\r\n\t\t\t\tif(this.isZanw) this.$toolAll.tools.showToast('暂无更多消息','none',1000)\r\n\t\t\t\tthis.isZanw = false\r\n\t\t\t}\r\n\t\t},\r\n\t\tonShow() {\r\n\t\t\tthis.$toolAll.tools.isLogin();\r\n\t\t},\r\n\t\tonLoad(options) {\r\n\t\t\tconst query = wx.createSelectorQuery()\r\n\t\t\tquery.select('#daoh').boundingClientRect((rect) => {\r\n\t\t\t\t// console.log('状态栏+标题栏:',rect);\r\n\t\t\t\tthis.chuTop = rect.height\r\n\t\t\t}).exec()\r\n\t\t\tif(options.index==undefined){this.isWen = false;this.ntype = 'message';}\r\n\t\t\tthis.checkMsg();\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tcheckMsg(){\r\n\t\t\t\tthis.$requst.post('user/messages',{page:this.page,size:this.size,type:this.ntype}).then(res=>{\r\n\t\t\t\t\t// console.log('消息列表:',res);\r\n\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\tif(this.page==1) this.dataList = [];\r\n\t\t\t\t\t\tthis.total = res.data.total;\r\n\t\t\t\t\t\tif(res.data.list.length!=0){\r\n\t\t\t\t\t\t\tres.data.list.forEach(item=>{\r\n\t\t\t\t\t\t\t\tlet titleMsg = ''\r\n\t\t\t\t\t\t\t\tif(item.type=='notice') titleMsg = \"通知\"\r\n\t\t\t\t\t\t\t\tif(item.type=='system') titleMsg = \"系统消息\"\r\n\t\t\t\t\t\t\t\tlet msgObj = {\r\n\t\t\t\t\t\t\t\t\ttime:item.send_at,\r\n\t\t\t\t\t\t\t\t\tlist:[\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\tis_read:item.is_read,\r\n\t\t\t\t\t\t\t\t\t\t\ttitle:titleMsg,\r\n\t\t\t\t\t\t\t\t\t\t\tcontent:item.content,\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\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\tthis.dataList.push(msgObj)\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},error=>{})\r\n\t\t\t},\r\n\t\t\tswitchEv(flag){\r\n\t\t\t\tthis.isWen = flag;\r\n\t\t\t\tthis.isZanw = true;\r\n\t\t\t\tthis.page = 1;\r\n\t\t\t\tif(flag){\r\n\t\t\t\t\tthis.ntype = 'reminders';\r\n\t\t\t\t\tthis.checkMsg();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.ntype = 'message';\r\n\t\t\t\t\tthis.checkMsg();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tbackTop(){//回到顶部事件\r\n\t\t\t uni.pageScrollTo({\r\n\t\t\t scrollTop: 0,\r\n\t\t\t duration: 300\r\n\t\t\t });\r\n\t\t\t},\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style>\r\n\t.isWen{color: #3875F6;}\r\n\t.isWen::after{\r\n\t\tcontent: '';\r\n\t\tdisplay: block;\r\n\t\theight: 8rpx;\r\n\t\twidth: 80%;\r\n\t\tposition: absolute;\r\n\t\tbottom: -20rpx;\r\n\t\tleft: 50%;\r\n\t\ttransform: translateX(-50%);\r\n\t\tbackground: #3875F6;\r\n\t}\r\n</style>\r\n","import mod from \"-!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./messagecenter.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./messagecenter.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1636592878627\n var cssReload = require(\"D:/HbuilderX/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":""} |