1 line
10 KiB
Plaintext
1 line
10 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"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,sH;AACAA,UAAU,CAACC,sBAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAA0H;AAC1H;AACiE;AACL;;;AAG5D;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;;;;;;;;;;;;ACtBf;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC+B9sB;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,CAsBA;AAtBA;AAwBA,GA1BA;AA2BA,cA3BA,wBA2BA,CA3BA,EA2BA;AACA;AACA,GA7BA;AA8BA,eA9BA,2BA8BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GA1CA;AA2CA,QA3CA,oBA2CA;AACA;AACA,GA7CA;AA8CA;AACA,YADA,sBACA;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,OAtBA,EAsBA,mBAtBA;AAuBA,KAzBA;AA0BA,WA1BA,qBA0BA;AACA;AACA,oBADA;AAEA,qBAFA;;AAIA,KA/BA,EA9CA,E","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&\"\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<!-- 列表 -->\r\n\t\t<view :style=\"{paddingTop: statusHNH+'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\" style=\"width:46rpx;height:56rpx;\" src=\"/static/public/unread.png\" mode=\"\"></image>\r\n\t\t\t\t\t\t\t<image v-if=\"iteml.is_read==1\" style=\"width:46rpx;height:56rpx;\" 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'}\" style=\"border-radius: 5rpx;font-size: 24rpx;color: #FFFFFF;padding: 2rpx 8rpx 4rpx 6rpx;transform: scale(.8);\">{{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</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}\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\t// for (let i = 0; i < 4; i++) {\r\n\t\t\t// \tlet obj = {\r\n\t\t\t// \t\tstatus:false,\r\n\t\t\t// \t\tmain_img:'/static/public/main_img.png',\r\n\t\t\t// \t\ttitle:'恒美小课堂',\r\n\t\t\t// \t\tcontent:'饺子会吃肉?',\r\n\t\t\t// \t\thead_img:'/static/public/like.png',\r\n\t\t\t// \t\tname:'吃肉的饺子'\r\n\t\t\t// \t}\r\n\t\t\t// \tthis.dataList.push(obj)\r\n\t\t\t// }\r\n\t\t},\r\n\t\tonLoad() {\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').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(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\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\r\n</style>\r\n"],"sourceRoot":""} |