feat:初始提交uni-app项目

This commit is contained in:
2026-01-14 18:19:33 +08:00
commit 0dcbd340e6
515 changed files with 38560 additions and 0 deletions

View File

@@ -0,0 +1 @@
{"version":3,"file":"apis.js","sources":["api/apis.js"],"sourcesContent":["import {request} from \"@/utils/request.js\"\r\n\r\n//获取首页banner栏内容\r\nexport function apiGetBanner(){\r\n\treturn request({\r\n\t\turl:\"/homeBanner\",\r\n\t})\r\n\r\n}\r\n\r\n//获取首页每日推荐栏内容\r\nexport function apiGetDayRandom(){\r\n\treturn request({url:\"/randomWall\"})\r\n\r\n} \r\n\r\n//获取首页公告栏内容\r\nexport function apiGetNotice(data={}){\r\n\treturn request({\r\n\t\turl:\"/wallNewsList\",\r\n\t\tdata\r\n\t})\r\n}\r\n\r\n//获取tabBar的“分类”里面的列表内容\r\nexport function apiGetClassify(data={}){\r\n\treturn request({\r\n\t\turl:\"/classify\",\r\n\t\tdata\r\n\t})\r\n}\r\n\r\n\r\n//获取tabBar的“分类”栏里面给一个板块的具体图片内容\r\nexport function apiGetClassList(data={}){\r\n\treturn request({\r\n\t\turl:\"/wallList\",\r\n\t\tdata\r\n\t})\r\n}\r\n\r\n//为每一个壁纸评分\r\nexport function apiGetSetScore(data={}){\r\n\treturn request({\r\n\t\turl:\"/setupScore\",\r\n\t\tdata\r\n\t})\r\n}\r\n\r\n//下载壁纸\r\nexport function apiWriteDownload(data={}){\r\n\treturn request({\r\n\t\turl:\"/downloadWall\",\r\n\t\tdata\r\n\t})\r\n}\r\n\r\n// 判断用户是不是通过别人分享进来的,从而获取被分享壁纸的详情信息。只有一张\r\nexport function apiDetailWall(data={}){\r\n\treturn request({\r\n\t\turl:\"/detailWall\",\r\n\t\tdata\r\n\t})\r\n}\r\n\r\n//获取 “我的” 页面的个人信息\r\nexport function apiUserInfo(data={}){\r\n\treturn request({\r\n\t\turl:\"/userInfo\",\r\n\t\tdata\r\n\t})\r\n}\r\n\r\n//获取 “我的” 页面中\"我的下载\"和\"我的评分\"的区分信息\r\nexport function apiGetHistoryList(data={}){\r\n\treturn request({\r\n\t\turl:\"/userWallList\",\r\n\t\tdata\r\n\t})\r\n}\r\n\r\n//获取 “我的” 页面中\"我的下载\"和\"我的评分\"的区分信息\r\nexport function apiNoticeDetail(data={}){\r\n\treturn request({\r\n\t\turl:\"/wallNewsDetail\",\r\n\t\tdata\r\n\t})\r\n}\r\n\r\n//获取 “搜索”页面 壁纸信息\r\nexport function apiSearchData(data={}){\r\n\treturn request({\r\n\t\turl:\"/searchWall\",\r\n\t\tdata\r\n\t})\r\n}\r\n"],"names":["request"],"mappings":";;AAGO,SAAS,eAAc;AAC7B,SAAOA,sBAAQ;AAAA,IACd,KAAI;AAAA,EACN,CAAE;AAEF;AAGO,SAAS,kBAAiB;AAChC,SAAOA,sBAAQ,EAAC,KAAI,cAAa,CAAC;AAEnC;AAGO,SAAS,aAAa,OAAK,IAAG;AACpC,SAAOA,sBAAQ;AAAA,IACd,KAAI;AAAA,IACJ;AAAA,EACF,CAAE;AACF;AAGO,SAAS,eAAe,OAAK,IAAG;AACtC,SAAOA,sBAAQ;AAAA,IACd,KAAI;AAAA,IACJ;AAAA,EACF,CAAE;AACF;AAIO,SAAS,gBAAgB,OAAK,IAAG;AACvC,SAAOA,sBAAQ;AAAA,IACd,KAAI;AAAA,IACJ;AAAA,EACF,CAAE;AACF;AAGO,SAAS,eAAe,OAAK,IAAG;AACtC,SAAOA,sBAAQ;AAAA,IACd,KAAI;AAAA,IACJ;AAAA,EACF,CAAE;AACF;AAGO,SAAS,iBAAiB,OAAK,IAAG;AACxC,SAAOA,sBAAQ;AAAA,IACd,KAAI;AAAA,IACJ;AAAA,EACF,CAAE;AACF;AAGO,SAAS,cAAc,OAAK,IAAG;AACrC,SAAOA,sBAAQ;AAAA,IACd,KAAI;AAAA,IACJ;AAAA,EACF,CAAE;AACF;AAGO,SAAS,YAAY,OAAK,IAAG;AACnC,SAAOA,sBAAQ;AAAA,IACd,KAAI;AAAA,IACJ;AAAA,EACF,CAAE;AACF;AAGO,SAAS,kBAAkB,OAAK,IAAG;AACzC,SAAOA,sBAAQ;AAAA,IACd,KAAI;AAAA,IACJ;AAAA,EACF,CAAE;AACF;AAGO,SAAS,gBAAgB,OAAK,IAAG;AACvC,SAAOA,sBAAQ;AAAA,IACd,KAAI;AAAA,IACJ;AAAA,EACF,CAAE;AACF;AAGO,SAAS,cAAc,OAAK,IAAG;AACrC,SAAOA,sBAAQ;AAAA,IACd,KAAI;AAAA,IACJ;AAAA,EACF,CAAE;AACF;;;;;;;;;;;;;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"app.js","sources":["App.vue","main.js"],"sourcesContent":["<script>\r\n\texport default {\r\n\t\tonLaunch: function() {\r\n\t\t\tconsole.log('App Launch')\r\n\t\t},\r\n\t\tonShow: function() {\r\n\t\t\tconsole.log('App Show')\r\n\t\t},\r\n\t\tonHide: function() {\r\n\t\t\tconsole.log('App Hide')\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n\t/*每个页面公共css */\r\n\t@import \"common/style/common-sytle.scss\";\r\n</style>\n","import App from './App'\n\n// #ifndef VUE3\nimport Vue from 'vue'\nimport './uni.promisify.adaptor'\nVue.config.productionTip = false\nApp.mpType = 'app'\nconst app = new Vue({\n ...App\n})\napp.$mount()\n// #endif\n\n// #ifdef VUE3\nimport { createSSRApp } from 'vue'\nexport function createApp() {\n const app = createSSRApp(App)\n return {\n app\n }\n}\n// #endif"],"names":["uni","createSSRApp","App"],"mappings":";;;;;;;;;;;;;;AACC,MAAK,YAAU;AAAA,EACd,UAAU,WAAW;AACpBA,kBAAAA,MAAA,MAAA,OAAA,gBAAY,YAAY;AAAA,EACxB;AAAA,EACD,QAAQ,WAAW;AAClBA,kBAAAA,MAAY,MAAA,OAAA,gBAAA,UAAU;AAAA,EACtB;AAAA,EACD,QAAQ,WAAW;AAClBA,kBAAAA,MAAY,MAAA,OAAA,iBAAA,UAAU;AAAA,EACvB;AACD;ACIM,SAAS,YAAY;AAC1B,QAAM,MAAMC,cAAY,aAACC,SAAG;AAC5B,SAAO;AAAA,IACL;AAAA,EACD;AACH;;;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"assets.js","sources":["static/images/xxmLogo.png","common/images/more.jpg"],"sourcesContent":["export default \"__VITE_ASSET__d0e50ba0__\"","export default \"__VITE_ASSET__14a1a72b__\""],"names":[],"mappings":";AAAA,MAAe,eAAA;ACAf,MAAe,aAAA;;;"}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"common-title.js","sources":["../../HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovY29kaW5nIHNvZnR3YXJlL0hCdWlsZGVyWC91bmlhcHBfdnVlM19jb2RlL3dhbGxwYXBlci1rdC9jb21wb25lbnRzL2NvbW1vbi10aXRsZS9jb21tb24tdGl0bGUudnVl"],"sourcesContent":["import Component from 'D:/coding software/HBuilderX/uniapp_vue3_code/wallpaper-kt/components/common-title/common-title.vue'\nwx.createComponent(Component)"],"names":[],"mappings":";;;;;;;AACA,GAAG,gBAAgB,SAAS;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"components.js","sources":["../../HBuilderX/plugins/uniapp-cli-vite/uniPage:/Y29tcG9uZW50cy9jb21wb25lbnRzLnZ1ZQ"],"sourcesContent":["import MiniProgramPage from 'D:/coding software/HBuilderX/uniapp_vue3_code/wallpaper-kt/components/components.vue'\nwx.createPage(MiniProgramPage)"],"names":[],"mappings":";;;;;;;AACA,GAAG,WAAW,eAAe;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"custom-nav-bar.js","sources":["../../HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovY29kaW5nIHNvZnR3YXJlL0hCdWlsZGVyWC91bmlhcHBfdnVlM19jb2RlL3dhbGxwYXBlci1rdC9jb21wb25lbnRzL2N1c3RvbS1uYXYtYmFyL2N1c3RvbS1uYXYtYmFyLnZ1ZQ"],"sourcesContent":["import Component from 'D:/coding software/HBuilderX/uniapp_vue3_code/wallpaper-kt/components/custom-nav-bar/custom-nav-bar.vue'\nwx.createComponent(Component)"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,GAAG,gBAAgB,SAAS;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"theme-item.js","sources":["../../HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovY29kaW5nIHNvZnR3YXJlL0hCdWlsZGVyWC91bmlhcHBfdnVlM19jb2RlL3dhbGxwYXBlci1rdC9jb21wb25lbnRzL3RoZW1lLWl0ZW0vdGhlbWUtaXRlbS52dWU"],"sourcesContent":["import Component from 'D:/coding software/HBuilderX/uniapp_vue3_code/wallpaper-kt/components/theme-item/theme-item.vue'\nwx.createComponent(Component)"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,GAAG,gBAAgB,SAAS;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"clasify.js","sources":["../../HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvY2xhc2lmeS9jbGFzaWZ5LnZ1ZQ"],"sourcesContent":["import MiniProgramPage from 'D:/编程/HBuilderX/uniapp_vue3_code/wallpaper-kt/pages/clasify/clasify.vue'\nwx.createPage(MiniProgramPage)"],"names":[],"mappings":";;;;;;;AACA,GAAG,WAAW,eAAe;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"classify.js","sources":["pages/classify/classify.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvY2xhc3NpZnkvY2xhc3NpZnkudnVl"],"sourcesContent":["<template>\n\t<view class=\"classLayout pageBg\">\r\n\t\t<custom-nav-bar title=\"分类\"></custom-nav-bar>\n\t\t<view class=\"classify\">\r\n\t\t\t<theme-item v-for=\"item in classifyList\"\r\n\t\t\t:key=\"item._id\"\r\n\t\t\t:item=\"item\">\r\n\t\t\t</theme-item>\r\n\t\t</view>\r\n\t\t\r\n\n\t</view>\n</template>\n\n<script setup>\r\nimport {ref} from \"vue\"\r\nimport {apiGetClassify} from \"@/api/apis.js\"\r\nimport {onShareAppMessage,onShareTimeline} from \"@dcloudio/uni-app\"\r\nconst classifyList = ref([])\r\nconst getClassify = async ()=>{\r\n\tlet res = await apiGetClassify({\r\n\t\t// select:true\r\n\t\tpageSize:15\r\n\t});\r\n\t// console.log(res);\r\n\tclassifyList.value = res.data\r\n}\r\n\ngetClassify();\r\n\r\n//分享给好友\r\nonShareAppMessage((e)=>{\r\n\t//分享这里是需要有一个 “return” 的\r\n\treturn{\r\n\t\ttitle:\"hzb壁纸,精选分类\",\r\n\t\tpath:\"/pages/classfy/classfy\"\r\n\t}\r\n})\r\n\r\n//分享到朋友圈\r\nonShareTimeline(()=>{\r\n\treturn{\r\n\t\t// 标题\r\n\t\ttitle:\"hzb壁纸,精选分类\",\r\n\t\t// 分享时候的图片地址。可以本地也可以网络图\r\n\t\timageUrl:\"/static/images/logo2.jpg\"\r\n\t}\r\n})\n</script>\n\n<style lang=\"scss\" scoped>\n.classLayout{\r\n\t.classify{\r\n\t\tpadding: 30rpx;\r\n\t\tdisplay: grid;\r\n\t\tgrid-template-columns: repeat(3,1fr);\r\n\t\tgap: 15rpx;\r\n\t}\r\n}\n</style>\n","import MiniProgramPage from 'D:/coding software/HBuilderX/uniapp_vue3_code/wallpaper-kt/pages/classify/classify.vue'\nwx.createPage(MiniProgramPage)"],"names":["ref","apiGetClassify","onShareAppMessage","onShareTimeline"],"mappings":";;;;;;;;;;;;;;;;AAkBA,UAAA,eAAAA,cAAA,IAAA,EAAA;AACA,UAAA,cAAA,YAAA;AACA,UAAA,MAAA,MAAAC,wBAAA;AAAA;AAAA,QAEA,UAAA;AAAA,MACA,CAAA;AAEA,mBAAA,QAAA,IAAA;AAAA,IACA;AAEA;AAGAC,kBAAA,kBAAA,CAAA,MAAA;AAEA,aAAA;AAAA,QACA,OAAA;AAAA,QACA,MAAA;AAAA,MACA;AAAA,IACA,CAAA;AAGAC,kBAAAA,gBAAA,MAAA;AACA,aAAA;AAAA;AAAA,QAEA,OAAA;AAAA;AAAA,QAEA,UAAA;AAAA,MACA;AAAA,IACA,CAAA;;;;;;;;;;;;;;;;;;;;;AC9CA,GAAG,WAAW,eAAe;"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"detail.js","sources":["pages/notice/detail.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvbm90aWNlL2RldGFpbC52dWU"],"sourcesContent":["\n<template>\n\t<view class=\"noticeLayout\">\n\t\t<view class=\"title\">\r\n\t\t\t<view class=\"tag\">\r\n\t\t\t\t<!-- <uni-tag text=\"置顶\" :inverted=\"true\" type=\"error\" /> -->\r\n\t\t\t\t<uni-tag text=\"置顶\" :inverted=\"true\" type=\"error\" v-if=\"detail.select\"></uni-tag>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"font\">{{detail.title}}</view>\r\n\t\t</view>\r\n\t\t\r\n\t\t<view class=\"info\">\r\n\t\t\t<view class=\"item\">{{detail.author}}</view>\r\n\t\t\t<view class=\"item\">\r\n\t\t\t\t<uni-dateformat :date=\"detail.publish_date\" format=\"yyyy-MM-dd hh:mm:ss\"></uni-dateformat>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t\r\n\t\t<view class=\"content\">\r\n\t\t\t<!-- 内容区域 -->\r\n\t\t\t<!-- 对于富文本(<rich-text>),我们不能直接在页面进行展示。\r\n\t\t\t需要利用组件<rich-text :node=\"富文本链接\">进行展示 -->\r\n\t\t\t<!-- <rich-text :nodes=\"detail.content\"></rich-text> -->\r\n\t\t\t\r\n\t\t\t<!-- 或者是利用插件商城的其他插件 -->\r\n\t\t\t<mp-html :content=\"detail.content\" />\r\n\r\n\t\t</view>\r\n\t\t\r\n\t\t<view class=\"count\">\r\n\t\t\t阅读数量:{{detail.view_count}}\r\n\t\t</view>\r\n\t\t\n\t</view>\n</template>\n\n<script setup>\nimport { apiNoticeDetail } from \"@/api/apis.js\"\r\nimport {ref} from \"vue\"\r\nimport {onLoad} from \"@dcloudio/uni-app\"\r\nconst detail = ref({})\r\nconst noticeId = ref('')\r\nconst noticeName = ref('')\r\n// let noticeId\r\nonLoad((e)=>{\r\n\tconsole.log(e);\r\n\tnoticeId.value = e.id\r\n\tnoticeName.value = e.name\r\n\t// 注意必须先获得这个id才能进行getNoticeDetail()操作\r\n\tuni.setNavigationBarTitle({\r\n\t\ttitle:noticeName.value\r\n\t})\r\n\tgetNoticeDetail()\r\n})\r\n\r\nconst getNoticeDetail = async () =>{\r\n\tlet res = await apiNoticeDetail({id:noticeId.value});\r\n\tdetail.value = res.data\r\n\tconsole.log(res);\r\n\t\r\n}\r\n\r\n\n</script>\n\n<style lang=\"scss\" scoped>\n.noticeLayout{\r\n\tpadding: 30rpx;\r\n\t.title{\r\n\t\t display: flex;\r\n\t\t align-items: center;\r\n\t\t font-size: 40rpx;\r\n\t\t color: #111;\r\n\t\t line-height: 1.6em;\r\n\t\t padding-bottom: 30rpx;\r\n\t\t\r\n\t\t .tag{\r\n\t\t\t // // width: 50rpx;\r\n\t\t\t // height: 100rpx;\r\n\t\t\t // font-size: 20rpx;\r\n\t\t\t // color: #e3a7a8;\r\n\t\t\t // padding: 10rpx;\r\n\t\t\t // border: 1px solid #e3a7a8;\r\n\t\t\t //缩小0.8倍\r\n\t\t\t transform: scale(0.8);\r\n\t\t\t //缩小的起始点\r\n\t\t\t transform-origin: left center;\r\n\t\t\t flex-shrink: 0;\r\n\t\t }\r\n\t\t .font{\r\n\t\t\t // font-size: 40rpx;\r\n\t\t\t // color: #0b0b0b;\r\n\t\t\t padding-left: 4rpx;\r\n\t\t }\r\n\t}\r\n\t\r\n\t.info{\r\n\t\tdisplay: flex;\r\n\t\talign-items: center;\r\n\t\tcolor: #999;\r\n\t\tfont-size: 28rpx;\r\n\t\t.item{\r\n\t\t\tpadding-left: 20rpx;\r\n\t\t}\r\n\t}\r\n\t.content{\r\n\t\tpadding: 50rpx 0;\r\n\t}\r\n\t\r\n\t.count{\r\n\t\tcolor: #999;\r\n\t\tfont-size: 28rpx;\r\n\t}\r\n}\r\n\n</style>\n","import MiniProgramPage from 'D:/coding software/HBuilderX/uniapp_vue3_code/wallpaper-kt/pages/notice/detail.vue'\nwx.createPage(MiniProgramPage)"],"names":["ref","onLoad","uni","apiNoticeDetail"],"mappings":";;;;;;;;;;;;;;;;;;AAwCA,UAAM,SAASA,cAAG,IAAC,EAAE;AACrB,UAAM,WAAWA,cAAG,IAAC,EAAE;AACvB,UAAM,aAAaA,cAAG,IAAC,EAAE;AAEzBC,kBAAM,OAAC,CAAC,MAAI;AACXC,oBAAAA,MAAY,MAAA,OAAA,iCAAA,CAAC;AACb,eAAS,QAAQ,EAAE;AACnB,iBAAW,QAAQ,EAAE;AAErBA,oBAAAA,MAAI,sBAAsB;AAAA,QACzB,OAAM,WAAW;AAAA,MACnB,CAAE;AACD,sBAAiB;AAAA,IAClB,CAAC;AAED,UAAM,kBAAkB,YAAW;AAClC,UAAI,MAAM,MAAMC,yBAAgB,EAAC,IAAG,SAAS,MAAK,CAAC;AACnD,aAAO,QAAQ,IAAI;AACnBD,oBAAAA,oDAAY,GAAG;AAAA,IAEhB;;;;;;;;;;;;;;;;;;;;;;;;;;AC3DA,GAAG,WAAW,eAAe;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"notice.js","sources":["../../HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvbm90aWNlL25vdGljZS52dWU"],"sourcesContent":["import MiniProgramPage from 'D:/coding software/HBuilderX/uniapp_vue3_code/wallpaper-kt/pages/notice/notice.vue'\nwx.createPage(MiniProgramPage)"],"names":[],"mappings":";;;;;;;AACA,GAAG,WAAW,eAAe;"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"uni-dateformat.js","sources":["uni_modules/uni-dateformat/components/uni-dateformat/uni-dateformat.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovY29kaW5nIHNvZnR3YXJlL0hCdWlsZGVyWC91bmlhcHBfdnVlM19jb2RlL3dhbGxwYXBlci1rdC91bmlfbW9kdWxlcy91bmktZGF0ZWZvcm1hdC9jb21wb25lbnRzL3VuaS1kYXRlZm9ybWF0L3VuaS1kYXRlZm9ybWF0LnZ1ZQ"],"sourcesContent":["<template>\r\n\t<text>{{dateShow}}</text>\r\n</template>\r\n\r\n<script>\r\n\timport {friendlyDate} from './date-format.js'\r\n\t/**\r\n\t * Dateformat 日期格式化\r\n\t * @description 日期格式化组件\r\n\t * @tutorial https://ext.dcloud.net.cn/plugin?id=3279\r\n\t * @property {Object|String|Number} date 日期对象/日期字符串/时间戳\r\n\t * @property {String} locale 格式化使用的语言\r\n\t * \t@value zh 中文\r\n\t * \t@value en 英文\r\n\t * @property {Array} threshold 应用不同类型格式化的阈值\r\n\t * @property {String} format 输出日期字符串时的格式\r\n\t */\r\n\texport default {\r\n\t\tname: 'uniDateformat',\r\n\t\tprops: {\r\n\t\t\tdate: {\r\n\t\t\t\ttype: [Object, String, Number],\r\n\t\t\t\tdefault () {\r\n\t\t\t\t\treturn '-'\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tlocale: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: 'zh',\r\n\t\t\t},\r\n\t\t\tthreshold: {\r\n\t\t\t\ttype: Array,\r\n\t\t\t\tdefault () {\r\n\t\t\t\t\treturn [0, 0]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tformat: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: 'yyyy/MM/dd hh:mm:ss'\r\n\t\t\t},\r\n\t\t\t// refreshRate使用不当可能导致性能问题谨慎使用\r\n\t\t\trefreshRate: {\r\n\t\t\t\ttype: [Number, String],\r\n\t\t\t\tdefault: 0\r\n\t\t\t}\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\trefreshMark: 0\r\n\t\t\t}\r\n\t\t},\r\n\t\tcomputed: {\r\n\t\t\tdateShow() {\r\n\t\t\t\tthis.refreshMark\r\n\t\t\t\treturn friendlyDate(this.date, {\r\n\t\t\t\t\tlocale: this.locale,\r\n\t\t\t\t\tthreshold: this.threshold,\r\n\t\t\t\t\tformat: this.format\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t},\r\n\t\twatch: {\r\n\t\t\trefreshRate: {\r\n\t\t\t\thandler() {\r\n\t\t\t\t\tthis.setAutoRefresh()\r\n\t\t\t\t},\r\n\t\t\t\timmediate: true\r\n\t\t\t}\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\trefresh() {\r\n\t\t\t\tthis.refreshMark++\r\n\t\t\t},\r\n\t\t\tsetAutoRefresh() {\r\n\t\t\t\tclearInterval(this.refreshInterval)\r\n\t\t\t\tif (this.refreshRate) {\r\n\t\t\t\t\tthis.refreshInterval = setInterval(() => {\r\n\t\t\t\t\t\tthis.refresh()\r\n\t\t\t\t\t}, parseInt(this.refreshRate))\r\n\t\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","import Component from 'D:/coding software/HBuilderX/uniapp_vue3_code/wallpaper-kt/uni_modules/uni-dateformat/components/uni-dateformat/uni-dateformat.vue'\nwx.createComponent(Component)"],"names":["friendlyDate"],"mappings":";;;AAiBC,MAAK,YAAU;AAAA,EACd,MAAM;AAAA,EACN,OAAO;AAAA,IACN,MAAM;AAAA,MACL,MAAM,CAAC,QAAQ,QAAQ,MAAM;AAAA,MAC7B,UAAW;AACV,eAAO;AAAA,MACR;AAAA,IACA;AAAA,IACD,QAAQ;AAAA,MACP,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA,IACD,WAAW;AAAA,MACV,MAAM;AAAA,MACN,UAAW;AACV,eAAO,CAAC,GAAG,CAAC;AAAA,MACb;AAAA,IACA;AAAA,IACD,QAAQ;AAAA,MACP,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA,IAED,aAAa;AAAA,MACZ,MAAM,CAAC,QAAQ,MAAM;AAAA,MACrB,SAAS;AAAA,IACV;AAAA,EACA;AAAA,EACD,OAAO;AACN,WAAO;AAAA,MACN,aAAa;AAAA,IACd;AAAA,EACA;AAAA,EACD,UAAU;AAAA,IACT,WAAW;AACV,WAAK;AACL,aAAOA,8DAAY,aAAC,KAAK,MAAM;AAAA,QAC9B,QAAQ,KAAK;AAAA,QACb,WAAW,KAAK;AAAA,QAChB,QAAQ,KAAK;AAAA,OACb;AAAA,IACF;AAAA,EACA;AAAA,EACD,OAAO;AAAA,IACN,aAAa;AAAA,MACZ,UAAU;AACT,aAAK,eAAe;AAAA,MACpB;AAAA,MACD,WAAW;AAAA,IACZ;AAAA,EACA;AAAA,EACD,SAAS;AAAA,IACR,UAAU;AACT,WAAK;AAAA,IACL;AAAA,IACD,iBAAiB;AAChB,oBAAc,KAAK,eAAe;AAClC,UAAI,KAAK,aAAa;AACrB,aAAK,kBAAkB,YAAY,MAAM;AACxC,eAAK,QAAQ;AAAA,WACX,SAAS,KAAK,WAAW,CAAC;AAAA,MAC9B;AAAA,IACD;AAAA,EACD;AACD;;;;;;;ACjFD,GAAG,gBAAgB,SAAS;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"uni-icons.js","sources":["uni_modules/uni-icons/components/uni-icons/uni-icons.vue","../../HBuilderX/plugins/uniapp-cli-vite/uniComponent:/RDovY29kaW5nIHNvZnR3YXJlL0hCdWlsZGVyWC91bmlhcHBfdnVlM19jb2RlL3dhbGxwYXBlci1rdC91bmlfbW9kdWxlcy91bmktaWNvbnMvY29tcG9uZW50cy91bmktaWNvbnMvdW5pLWljb25zLnZ1ZQ"],"sourcesContent":["<template>\r\n\t<!-- #ifdef APP-NVUE -->\r\n\t<text :style=\"styleObj\" class=\"uni-icons\" @click=\"_onClick\">{{unicode}}</text>\r\n\t<!-- #endif -->\r\n\t<!-- #ifndef APP-NVUE -->\r\n\t<text :style=\"styleObj\" class=\"uni-icons\" :class=\"['uniui-'+type,customPrefix,customPrefix?type:'']\" @click=\"_onClick\">\r\n\t\t<slot></slot>\r\n\t</text>\r\n\t<!-- #endif -->\r\n</template>\r\n\r\n<script>\r\n\timport { fontData } from './uniicons_file_vue.js';\r\n\r\n\tconst getVal = (val) => {\r\n\t\tconst reg = /^[0-9]*$/g\r\n\t\treturn (typeof val === 'number' || reg.test(val)) ? val + 'px' : val;\r\n\t}\r\n\r\n\t// #ifdef APP-NVUE\r\n\tvar domModule = weex.requireModule('dom');\r\n\timport iconUrl from './uniicons.ttf'\r\n\tdomModule.addRule('fontFace', {\r\n\t\t'fontFamily': \"uniicons\",\r\n\t\t'src': \"url('\" + iconUrl + \"')\"\r\n\t});\r\n\t// #endif\r\n\r\n\t/**\r\n\t * Icons 图标\r\n\t * @description 用于展示 icons 图标\r\n\t * @tutorial https://ext.dcloud.net.cn/plugin?id=28\r\n\t * @property {Number} size 图标大小\r\n\t * @property {String} type 图标图案,参考示例\r\n\t * @property {String} color 图标颜色\r\n\t * @property {String} customPrefix 自定义图标\r\n\t * @event {Function} click 点击 Icon 触发事件\r\n\t */\r\n\texport default {\r\n\t\tname: 'UniIcons',\r\n\t\temits: ['click'],\r\n\t\tprops: {\r\n\t\t\ttype: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: ''\r\n\t\t\t},\r\n\t\t\tcolor: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '#333333'\r\n\t\t\t},\r\n\t\t\tsize: {\r\n\t\t\t\ttype: [Number, String],\r\n\t\t\t\tdefault: 16\r\n\t\t\t},\r\n\t\t\tcustomPrefix: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: ''\r\n\t\t\t},\r\n\t\t\tfontFamily: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: ''\r\n\t\t\t}\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\ticons: fontData\r\n\t\t\t}\r\n\t\t},\r\n\t\tcomputed: {\r\n\t\t\tunicode() {\r\n\t\t\t\tlet code = this.icons.find(v => v.font_class === this.type)\r\n\t\t\t\tif (code) {\r\n\t\t\t\t\treturn code.unicode\r\n\t\t\t\t}\r\n\t\t\t\treturn ''\r\n\t\t\t},\r\n\t\t\ticonSize() {\r\n\t\t\t\treturn getVal(this.size)\r\n\t\t\t},\r\n\t\t\tstyleObj() {\r\n\t\t\t\tif (this.fontFamily !== '') {\r\n\t\t\t\t\treturn `color: ${this.color}; font-size: ${this.iconSize}; font-family: ${this.fontFamily};`\r\n\t\t\t\t}\r\n\t\t\t\treturn `color: ${this.color}; font-size: ${this.iconSize};`\r\n\t\t\t}\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\t_onClick() {\r\n\t\t\t\tthis.$emit('click')\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n\t/* #ifndef APP-NVUE */\r\n\t@import './uniicons.css';\r\n\r\n\t@font-face {\r\n\t\tfont-family: uniicons;\r\n\t\tsrc: url('./uniicons.ttf');\r\n\t}\r\n\r\n\t/* #endif */\r\n\t.uni-icons {\r\n\t\tfont-family: uniicons;\r\n\t\ttext-decoration: none;\r\n\t\ttext-align: center;\r\n\t}\r\n</style>\n","import Component from 'D:/coding software/HBuilderX/uniapp_vue3_code/wallpaper-kt/uni_modules/uni-icons/components/uni-icons/uni-icons.vue'\nwx.createComponent(Component)"],"names":["fontData"],"mappings":";;;AAcC,MAAM,SAAS,CAAC,QAAQ;AACvB,QAAM,MAAM;AACZ,SAAQ,OAAO,QAAQ,YAAY,IAAI,KAAK,GAAG,IAAK,MAAM,OAAO;AAClE;AAqBA,MAAK,YAAU;AAAA,EACd,MAAM;AAAA,EACN,OAAO,CAAC,OAAO;AAAA,EACf,OAAO;AAAA,IACN,MAAM;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA,IACD,OAAO;AAAA,MACN,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA,IACD,MAAM;AAAA,MACL,MAAM,CAAC,QAAQ,MAAM;AAAA,MACrB,SAAS;AAAA,IACT;AAAA,IACD,cAAc;AAAA,MACb,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA,IACD,YAAY;AAAA,MACX,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,EACA;AAAA,EACD,OAAO;AACN,WAAO;AAAA,MACN,OAAOA,2DAAO;AAAA,IACf;AAAA,EACA;AAAA,EACD,UAAU;AAAA,IACT,UAAU;AACT,UAAI,OAAO,KAAK,MAAM,KAAK,OAAK,EAAE,eAAe,KAAK,IAAI;AAC1D,UAAI,MAAM;AACT,eAAO,KAAK;AAAA,MACb;AACA,aAAO;AAAA,IACP;AAAA,IACD,WAAW;AACV,aAAO,OAAO,KAAK,IAAI;AAAA,IACvB;AAAA,IACD,WAAW;AACV,UAAI,KAAK,eAAe,IAAI;AAC3B,eAAO,UAAU,KAAK,KAAK,gBAAgB,KAAK,QAAQ,kBAAkB,KAAK,UAAU;AAAA,MAC1F;AACA,aAAO,UAAU,KAAK,KAAK,gBAAgB,KAAK,QAAQ;AAAA,IACzD;AAAA,EACA;AAAA,EACD,SAAS;AAAA,IACR,WAAW;AACV,WAAK,MAAM,OAAO;AAAA,IACnB;AAAA,EACD;AACD;;;;;;;;;;;AC1FD,GAAG,gBAAgB,SAAS;"}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.js","sources":["uni_modules/uni-load-more/components/uni-load-more/i18n/index.js"],"sourcesContent":["import en from './en.json'\r\nimport zhHans from './zh-Hans.json'\r\nimport zhHant from './zh-Hant.json'\r\nexport default {\r\n\ten,\r\n\t'zh-Hans': zhHans,\r\n\t'zh-Hant': zhHant\r\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA,MAAe,WAAA;AAAA,EACd;AAAA,EACA,WAAW;AAAA,EACX,WAAW;AACZ;;"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.js","sources":["uni_modules/uni-search-bar/components/uni-search-bar/i18n/index.js"],"sourcesContent":["import en from './en.json'\r\nimport zhHans from './zh-Hans.json'\r\nimport zhHant from './zh-Hant.json'\r\nexport default {\r\n\ten,\r\n\t'zh-Hans': zhHans,\r\n\t'zh-Hant': zhHant\r\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;AAGA,MAAe,WAAA;AAAA,EACd;AAAA,EACA,WAAW;AAAA,EACX,WAAW;AACZ;;"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"props.js","sources":["uni_modules/uv-empty/components/uv-empty/props.js"],"sourcesContent":["export default {\r\n\tprops: {\r\n\t\t// 内置图标名称,或图片路径,建议绝对路径\r\n\t\ticon: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: ''\r\n\t\t},\r\n\t\t// 提示文字\r\n\t\ttext: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: ''\r\n\t\t},\r\n\t\t// 文字颜色\r\n\t\ttextColor: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: '#c0c4cc'\r\n\t\t},\r\n\t\t// 文字大小\r\n\t\ttextSize: {\r\n\t\t\ttype: [String, Number],\r\n\t\t\tdefault: 14\r\n\t\t},\r\n\t\t// 图标的颜色\r\n\t\ticonColor: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: '#c0c4cc'\r\n\t\t},\r\n\t\t// 图标的大小\r\n\t\ticonSize: {\r\n\t\t\ttype: [String, Number],\r\n\t\t\tdefault: 90\r\n\t\t},\r\n\t\t// 选择预置的图标类型\r\n\t\tmode: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: 'data'\r\n\t\t},\r\n\t\t// 图标宽度单位px\r\n\t\twidth: {\r\n\t\t\ttype: [String, Number],\r\n\t\t\tdefault: 160\r\n\t\t},\r\n\t\t// 图标高度单位px\r\n\t\theight: {\r\n\t\t\ttype: [String, Number],\r\n\t\t\tdefault: 160\r\n\t\t},\r\n\t\t// 是否显示组件\r\n\t\tshow: {\r\n\t\t\ttype: Boolean,\r\n\t\t\tdefault: true\r\n\t\t},\r\n\t\t// 组件距离上一个元素之间的距离默认px单位\r\n\t\tmarginTop: {\r\n\t\t\ttype: [String, Number],\r\n\t\t\tdefault: 0\r\n\t\t},\r\n\t\t...uni.$uv?.props?.empty\r\n\t}\r\n}"],"names":["uni"],"mappings":";;;AAAA,MAAe,QAAA;AAAA,EACd,OAAO;AAAA;AAAA,IAEN,MAAM;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA,IAED,MAAM;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA,IAED,WAAW;AAAA,MACV,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA,IAED,UAAU;AAAA,MACT,MAAM,CAAC,QAAQ,MAAM;AAAA,MACrB,SAAS;AAAA,IACT;AAAA;AAAA,IAED,WAAW;AAAA,MACV,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA,IAED,UAAU;AAAA,MACT,MAAM,CAAC,QAAQ,MAAM;AAAA,MACrB,SAAS;AAAA,IACT;AAAA;AAAA,IAED,MAAM;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA,IAED,OAAO;AAAA,MACN,MAAM,CAAC,QAAQ,MAAM;AAAA,MACrB,SAAS;AAAA,IACT;AAAA;AAAA,IAED,QAAQ;AAAA,MACP,MAAM,CAAC,QAAQ,MAAM;AAAA,MACrB,SAAS;AAAA,IACT;AAAA;AAAA,IAED,MAAM;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA,IAED,WAAW;AAAA,MACV,MAAM,CAAC,QAAQ,MAAM;AAAA,MACrB,SAAS;AAAA,IACT;AAAA,IACD,IAAGA,yBAAG,MAAC,QAAJA,mBAAS,UAATA,mBAAgB;AAAA,EACnB;AACF;;"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"props.js","sources":["uni_modules/uv-icon/components/uv-icon/props.js"],"sourcesContent":["export default {\r\n\tprops: {\r\n\t\t// 图标类名\r\n\t\tname: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: ''\r\n\t\t},\r\n\t\t// 图标颜色,可接受主题色\r\n\t\tcolor: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: '#606266'\r\n\t\t},\r\n\t\t// 字体大小单位px\r\n\t\tsize: {\r\n\t\t\ttype: [String, Number],\r\n\t\t\tdefault: '16px'\r\n\t\t},\r\n\t\t// 是否显示粗体\r\n\t\tbold: {\r\n\t\t\ttype: Boolean,\r\n\t\t\tdefault: false\r\n\t\t},\r\n\t\t// 点击图标的时候传递事件出去的index用于区分点击了哪一个\r\n\t\tindex: {\r\n\t\t\ttype: [String, Number],\r\n\t\t\tdefault: null\r\n\t\t},\r\n\t\t// 触摸图标时的类名\r\n\t\thoverClass: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: ''\r\n\t\t},\r\n\t\t// 自定义扩展前缀,方便用户扩展自己的图标库\r\n\t\tcustomPrefix: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: 'uvicon'\r\n\t\t},\r\n\t\t// 图标右边或者下面的文字\r\n\t\tlabel: {\r\n\t\t\ttype: [String, Number],\r\n\t\t\tdefault: ''\r\n\t\t},\r\n\t\t// label的位置只能右边或者下边\r\n\t\tlabelPos: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: 'right'\r\n\t\t},\r\n\t\t// label的大小\r\n\t\tlabelSize: {\r\n\t\t\ttype: [String, Number],\r\n\t\t\tdefault: '15px'\r\n\t\t},\r\n\t\t// label的颜色\r\n\t\tlabelColor: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: '#606266'\r\n\t\t},\r\n\t\t// label与图标的距离\r\n\t\tspace: {\r\n\t\t\ttype: [String, Number],\r\n\t\t\tdefault: '3px'\r\n\t\t},\r\n\t\t// 图片的mode\r\n\t\timgMode: {\r\n\t\t\ttype: String,\r\n\t\t\tdefault: 'aspectFit'\r\n\t\t},\r\n\t\t// 用于显示图片小图标时,图片的宽度\r\n\t\twidth: {\r\n\t\t\ttype: [String, Number],\r\n\t\t\tdefault: ''\r\n\t\t},\r\n\t\t// 用于显示图片小图标时,图片的高度\r\n\t\theight: {\r\n\t\t\ttype: [String, Number],\r\n\t\t\tdefault: ''\r\n\t\t},\r\n\t\t// 用于解决某些情况下,让图标垂直居中的用途\r\n\t\ttop: {\r\n\t\t\ttype: [String, Number],\r\n\t\t\tdefault: 0\r\n\t\t},\r\n\t\t// 是否阻止事件传播\r\n\t\tstop: {\r\n\t\t\ttype: Boolean,\r\n\t\t\tdefault: false\r\n\t\t},\r\n\t\t...uni.$uv?.props?.icon\r\n\t}\r\n}"],"names":["uni"],"mappings":";;;AAAA,MAAe,QAAA;AAAA,EACd,OAAO;AAAA;AAAA,IAEN,MAAM;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA,IAED,OAAO;AAAA,MACN,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA,IAED,MAAM;AAAA,MACL,MAAM,CAAC,QAAQ,MAAM;AAAA,MACrB,SAAS;AAAA,IACT;AAAA;AAAA,IAED,MAAM;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA,IAED,OAAO;AAAA,MACN,MAAM,CAAC,QAAQ,MAAM;AAAA,MACrB,SAAS;AAAA,IACT;AAAA;AAAA,IAED,YAAY;AAAA,MACX,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA,IAED,cAAc;AAAA,MACb,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA,IAED,OAAO;AAAA,MACN,MAAM,CAAC,QAAQ,MAAM;AAAA,MACrB,SAAS;AAAA,IACT;AAAA;AAAA,IAED,UAAU;AAAA,MACT,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA,IAED,WAAW;AAAA,MACV,MAAM,CAAC,QAAQ,MAAM;AAAA,MACrB,SAAS;AAAA,IACT;AAAA;AAAA,IAED,YAAY;AAAA,MACX,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA,IAED,OAAO;AAAA,MACN,MAAM,CAAC,QAAQ,MAAM;AAAA,MACrB,SAAS;AAAA,IACT;AAAA;AAAA,IAED,SAAS;AAAA,MACR,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA;AAAA,IAED,OAAO;AAAA,MACN,MAAM,CAAC,QAAQ,MAAM;AAAA,MACrB,SAAS;AAAA,IACT;AAAA;AAAA,IAED,QAAQ;AAAA,MACP,MAAM,CAAC,QAAQ,MAAM;AAAA,MACrB,SAAS;AAAA,IACT;AAAA;AAAA,IAED,KAAK;AAAA,MACJ,MAAM,CAAC,QAAQ,MAAM;AAAA,MACrB,SAAS;AAAA,IACT;AAAA;AAAA,IAED,MAAM;AAAA,MACL,MAAM;AAAA,MACN,SAAS;AAAA,IACT;AAAA,IACD,IAAGA,yBAAG,MAAC,QAAJA,mBAAS,UAATA,mBAAgB;AAAA,EACnB;AACF;;"}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"debounce.js","sources":["uni_modules/uv-ui-tools/libs/function/debounce.js"],"sourcesContent":["let timeout = null\r\n\r\n/**\r\n * 防抖原理一定时间内只有最后一次操作再过wait毫秒后才执行函数\r\n *\r\n * @param {Function} func 要执行的回调函数\r\n * @param {Number} wait 延时的时间\r\n * @param {Boolean} immediate 是否立即执行\r\n * @return null\r\n */\r\nfunction debounce(func, wait = 500, immediate = false) {\r\n // 清除定时器\r\n if (timeout !== null) clearTimeout(timeout)\r\n // 立即执行,此类情况一般用不到\r\n if (immediate) {\r\n const callNow = !timeout\r\n timeout = setTimeout(() => {\r\n timeout = null\r\n }, wait)\r\n if (callNow) typeof func === 'function' && func()\r\n } else {\r\n // 设置定时器当最后一次操作后timeout不会再被清除所以在延时wait毫秒后执行func回调方法\r\n timeout = setTimeout(() => {\r\n typeof func === 'function' && func()\r\n }, wait)\r\n }\r\n}\r\n\r\nexport default debounce\r\n"],"names":[],"mappings":";AAAA,IAAI,UAAU;AAUd,SAAS,SAAS,MAAM,OAAO,KAAK,YAAY,OAAO;AAEnD,MAAI,YAAY;AAAM,iBAAa,OAAO;AAE1C,MAAI,WAAW;AACX,UAAM,UAAU,CAAC;AACjB,cAAU,WAAW,MAAM;AACvB,gBAAU;AAAA,IACb,GAAE,IAAI;AACP,QAAI;AAAS,aAAO,SAAS,cAAc,KAAM;AAAA,EACzD,OAAW;AAEH,cAAU,WAAW,MAAM;AACvB,aAAO,SAAS,cAAc,KAAM;AAAA,IACvC,GAAE,IAAI;AAAA,EACV;AACL;;"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"throttle.js","sources":["uni_modules/uv-ui-tools/libs/function/throttle.js"],"sourcesContent":["let timer; let\n flag\r\n/**\r\n * 节流原理:在一定时间内,只能触发一次\r\n *\r\n * @param {Function} func 要执行的回调函数\r\n * @param {Number} wait 延时的时间\r\n * @param {Boolean} immediate 是否立即执行\r\n * @return null\r\n */\r\nfunction throttle(func, wait = 500, immediate = true) {\r\n if (immediate) {\r\n if (!flag) {\r\n flag = true\r\n // 如果是立即执行则在wait毫秒内开始时执行\r\n typeof func === 'function' && func()\r\n timer = setTimeout(() => {\r\n flag = false\r\n }, wait)\r\n }\r\n } else if (!flag) {\r\n flag = true\r\n // 如果是非立即执行则在wait毫秒内的结束处执行\r\n timer = setTimeout(() => {\r\n flag = false\r\n typeof func === 'function' && func()\r\n }, wait)\r\n }\r\n}\r\nexport default throttle\r\n"],"names":[],"mappings":";AAAW,IACP;AASJ,SAAS,SAAS,MAAM,OAAO,KAAK,YAAY,MAAM;AAClD,MAAI,WAAW;AACX,QAAI,CAAC,MAAM;AACP,aAAO;AAEP,aAAO,SAAS,cAAc,KAAM;AAC5B,iBAAW,MAAM;AACrB,eAAO;AAAA,MACV,GAAE,IAAI;AAAA,IACV;AAAA,EACT,WAAe,CAAC,MAAM;AACd,WAAO;AAEC,eAAW,MAAM;AACrB,aAAO;AACP,aAAO,SAAS,cAAc,KAAM;AAAA,IACvC,GAAE,IAAI;AAAA,EACV;AACL;;"}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"mpMixin.js","sources":["uni_modules/uv-ui-tools/libs/mixin/mpMixin.js"],"sourcesContent":["export default {\r\n // #ifdef MP-WEIXIN\r\n // 将自定义节点设置成虚拟的去掉自定义组件包裹层更加接近Vue组件的表现能更好的使用flex属性\r\n options: {\r\n virtualHost: true\r\n }\r\n // #endif\r\n}"],"names":[],"mappings":";AAAA,MAAe,UAAA;AAAA;AAAA,EAGX,SAAS;AAAA,IACL,aAAa;AAAA,EAChB;AAEL;;"}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1 @@
{"version":3,"file":"common.js","sources":["utils/common.js"],"sourcesContent":["export function compareTimestamp(timestamp) {\n const currentTime = new Date().getTime();\n const timeDiff = currentTime - timestamp;\n\n if (timeDiff < 60000) { \n return '1分钟内';\n } else if (timeDiff < 3600000) {\n return Math.floor(timeDiff / 60000) + '分钟';\n } else if (timeDiff < 86400000) {\n return Math.floor(timeDiff / 3600000) + '小时';\n } else if (timeDiff < 2592000000) {\n return Math.floor(timeDiff / 86400000) + '天';\n } else if (timeDiff < 7776000000) {\n return Math.floor(timeDiff / 2592000000) + '月';\n } else {\n return null;\n }\n}\n\n\nexport function gotoHome(){\n\tuni.showModal({\n\t\ttitle:\"提示\",\n\t\tcontent:\"页面有误将返回首页\",\n\t\tshowCancel:false,\n\t\tsuccess: (res) => {\n\t\t\tif(res.confirm){\n\t\t\t\tuni.reLaunch({\n\t\t\t\t\turl:\"/pages/index/index\"\n\t\t\t\t})\n\t\t\t}\n\t\t}\n\t})\n}\r\n\r\n\n"],"names":[],"mappings":";;AAAO,SAAS,iBAAiB,WAAW;AAC1C,QAAM,eAAc,oBAAI,KAAM,GAAC,QAAO;AACtC,QAAM,WAAW,cAAc;AAE/B,MAAI,WAAW,KAAO;AACpB,WAAO;AAAA,EACX,WAAa,WAAW,MAAS;AAC7B,WAAO,KAAK,MAAM,WAAW,GAAK,IAAI;AAAA,EAC1C,WAAa,WAAW,OAAU;AAC9B,WAAO,KAAK,MAAM,WAAW,IAAO,IAAI;AAAA,EAC5C,WAAa,WAAW,QAAY;AAChC,WAAO,KAAK,MAAM,WAAW,KAAQ,IAAI;AAAA,EAC7C,WAAa,WAAW,QAAY;AAChC,WAAO,KAAK,MAAM,WAAW,MAAU,IAAI;AAAA,EAC/C,OAAS;AACL,WAAO;AAAA,EACR;AACH;;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"request.js","sources":["utils/request.js"],"sourcesContent":["\r\nconst BASE_URL = \"https://tea.qingnian8.com/api/bizhi\";\r\n// config是形参然后对其进行解构\r\nexport function request(config={}){\r\n\tlet {\r\n\t\turl,\r\n\t\tdata={},\r\n\t\tmethod=\"GET\",\r\n\t\theader={}\r\n\t} = config\r\n\t\r\n\t// 对url进行拼接\r\n\turl = BASE_URL + url\r\n\t//下面这种写法是针对header里面的属性进行赋值\r\n\theader['access-key'] = \"888888\"\r\n\t//你要加一个token的话就可以按下面的步骤进行\r\n\t// header['token'] = '11212212'\r\n\t\r\n\treturn new Promise((resolve,reject)=>{\r\n\t\tuni.request({\r\n\t\t\t//url属性接收外面传入的url可以进行简写url:url, ==》 url\r\n\t\t\turl,\r\n\t\t\tdata,\r\n\t\t\tmethod,\r\n\t\t\theader,\r\n\t\t\tsuccess:res =>{\r\n\t\t\t\tif(res.data.errCode === 0){\r\n\t\t\t\t\t//res返回是全部信息但是我们要的是res.data就可以了\r\n\t\t\t\t\t// resolve(res)\r\n\t\t\t\t\tresolve(res.data)\r\n\t\t\t\t}else if(res.data.errCode === 400){\r\n\t\t\t\t\tuni.showModal({\r\n\t\t\t\t\t\ttitle:\"错误提示\",\r\n\t\t\t\t\t\tcontent:res.data.errMsg,\r\n\t\t\t\t\t\t// 不展示“取消”键\r\n\t\t\t\t\t\tshowCancel:false\r\n\t\t\t\t\t})\r\n\t\t\t\t\treject(res.data)\r\n\t\t\t\t}else{\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle:res.data.errMsg,\r\n\t\t\t\t\t\ticon:\"none\"\r\n\t\t\t\t\t})\r\n\t\t\t\t\treject(res.data)\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tfail:err=>{\r\n\t\t\t\treject(err)\r\n\t\t\t}\r\n\t\t})\r\n\t})\r\n}"],"names":["uni"],"mappings":";;AACA,MAAM,WAAW;AAEV,SAAS,QAAQ,SAAO,IAAG;AACjC,MAAI;AAAA,IACH;AAAA,IACA,OAAK,CAAE;AAAA,IACP,SAAO;AAAA,IACP,SAAO,CAAE;AAAA,EACX,IAAK;AAGJ,QAAM,WAAW;AAEjB,SAAO,YAAY,IAAI;AAIvB,SAAO,IAAI,QAAQ,CAAC,SAAQ,WAAS;AACpCA,kBAAAA,MAAI,QAAQ;AAAA;AAAA,MAEX;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,SAAQ,SAAM;AACb,YAAG,IAAI,KAAK,YAAY,GAAE;AAGzB,kBAAQ,IAAI,IAAI;AAAA,QAChB,WAAQ,IAAI,KAAK,YAAY,KAAI;AACjCA,wBAAAA,MAAI,UAAU;AAAA,YACb,OAAM;AAAA,YACN,SAAQ,IAAI,KAAK;AAAA;AAAA,YAEjB,YAAW;AAAA,UACjB,CAAM;AACD,iBAAO,IAAI,IAAI;AAAA,QACpB,OAAS;AACJA,wBAAAA,MAAI,UAAU;AAAA,YACb,OAAM,IAAI,KAAK;AAAA,YACf,MAAK;AAAA,UACX,CAAM;AACD,iBAAO,IAAI,IAAI;AAAA,QACf;AAAA,MACD;AAAA,MACD,MAAK,SAAK;AACT,eAAO,GAAG;AAAA,MACV;AAAA,IACJ,CAAG;AAAA,EACH,CAAE;AACF;;"}

View File

@@ -0,0 +1 @@
{"version":3,"file":"system.js","sources":["utils/system.js"],"sourcesContent":["//获取状态栏高度\r\nconst SYSTEM_INFO = uni.getSystemInfoSync();\r\n// 获取高度失败的话就返回默认值 0\r\n// 获取状态栏高度\r\nexport const getStatusBarHeight = ()=> SYSTEM_INFO.statusBarHeight || 0\r\n\r\n//获取预览页面的状态栏\r\nexport const getPreviewBarHeight = ()=>{\r\n\t// 下面是获取胶囊按钮全部信息\r\n\t// let MENU_BUTTON = uni.getMenuButtonBoundingClientRect(); \r\n\t\r\n\t//如果有胶囊按钮,我们才进行操作,否则返回一个固定的值\r\n\tif(uni.getMenuButtonBoundingClientRect){\r\n\t\t//我们使用解构的方法来选取所需的特定内容就可以了\r\n\t\tlet {top} = uni.getMenuButtonBoundingClientRect(); \r\n\t\t// 标题栏的高度\r\n\t\tlet PreviewBarHeight = top\r\n\t\treturn PreviewBarHeight\r\n\t}\r\n\telse{\r\n\t\treturn 40;\r\n\t}\r\n}\r\n\r\n//获取标题栏高度\r\nexport const getTitleBarHeight = ()=>{\r\n\t// 下面是获取胶囊按钮全部信息\r\n\t// let MENU_BUTTON = uni.getMenuButtonBoundingClientRect(); \r\n\t\r\n\t//如果有胶囊按钮,我们才进行操作,否则返回一个固定的值\r\n\tif(uni.getMenuButtonBoundingClientRect){\r\n\t\t//我们使用解构的方法来选取所需的特定内容就可以了\r\n\t\tlet {top,height} = uni.getMenuButtonBoundingClientRect(); \r\n\t\t// 标题栏的高度\r\n\t\tlet titleBarHeight = (top - getStatusBarHeight())*2 + height\r\n\t\treturn titleBarHeight\r\n\t}\r\n\telse{\r\n\t\treturn 40;\r\n\t}\r\n\r\n}\r\n\r\n//获取整个导航栏高度用于fill栏\r\nexport const getNavBarHeight = ()=> getTitleBarHeight() + getStatusBarHeight();"],"names":["uni"],"mappings":";;AACA,MAAM,cAAcA,cAAAA,MAAI;AAGZ,MAAC,qBAAqB,MAAK,YAAY,mBAAmB;AAG1D,MAAC,sBAAsB,MAAI;AAKtC,MAAGA,cAAAA,MAAI,iCAAgC;AAEtC,QAAI,EAAC,IAAG,IAAIA,cAAG,MAAC,gCAA+B;AAE/C,QAAI,mBAAmB;AACvB,WAAO;AAAA,EACP,OACG;AACH,WAAO;AAAA,EACP;AACF;AAGY,MAAC,oBAAoB,MAAI;AAKpC,MAAGA,cAAAA,MAAI,iCAAgC;AAEtC,QAAI,EAAC,KAAI,OAAM,IAAIA,cAAG,MAAC,gCAA+B;AAEtD,QAAI,kBAAkB,MAAM,mBAAoB,KAAE,IAAI;AACtD,WAAO;AAAA,EACP,OACG;AACH,WAAO;AAAA,EACP;AAEF;AAGY,MAAC,kBAAkB,MAAK,kBAAiB,IAAK,mBAAkB;;;;;"}

View File

@@ -0,0 +1,83 @@
"use strict";
const utils_request = require("../utils/request.js");
function apiGetBanner() {
return utils_request.request({
url: "/homeBanner"
});
}
function apiGetDayRandom() {
return utils_request.request({ url: "/randomWall" });
}
function apiGetNotice(data = {}) {
return utils_request.request({
url: "/wallNewsList",
data
});
}
function apiGetClassify(data = {}) {
return utils_request.request({
url: "/classify",
data
});
}
function apiGetClassList(data = {}) {
return utils_request.request({
url: "/wallList",
data
});
}
function apiGetSetScore(data = {}) {
return utils_request.request({
url: "/setupScore",
data
});
}
function apiWriteDownload(data = {}) {
return utils_request.request({
url: "/downloadWall",
data
});
}
function apiDetailWall(data = {}) {
return utils_request.request({
url: "/detailWall",
data
});
}
function apiUserInfo(data = {}) {
return utils_request.request({
url: "/userInfo",
data
});
}
function apiGetHistoryList(data = {}) {
return utils_request.request({
url: "/userWallList",
data
});
}
function apiNoticeDetail(data = {}) {
return utils_request.request({
url: "/wallNewsDetail",
data
});
}
function apiSearchData(data = {}) {
return utils_request.request({
url: "/searchWall",
data
});
}
exports.apiDetailWall = apiDetailWall;
exports.apiGetBanner = apiGetBanner;
exports.apiGetClassList = apiGetClassList;
exports.apiGetClassify = apiGetClassify;
exports.apiGetDayRandom = apiGetDayRandom;
exports.apiGetHistoryList = apiGetHistoryList;
exports.apiGetNotice = apiGetNotice;
exports.apiGetSetScore = apiGetSetScore;
exports.apiNoticeDetail = apiNoticeDetail;
exports.apiSearchData = apiSearchData;
exports.apiUserInfo = apiUserInfo;
exports.apiWriteDownload = apiWriteDownload;
//# sourceMappingURL=../../.sourcemap/mp-weixin/api/apis.js.map

34
unpackage/dist/dev/mp-weixin/app.js vendored Normal file
View File

@@ -0,0 +1,34 @@
"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const common_vendor = require("./common/vendor.js");
if (!Math) {
"./pages/index/index.js";
"./components/components.js";
"./pages/classify/classify.js";
"./pages/user/user.js";
"./pages/classlist/classlist.js";
"./pages/preview/preview.js";
"./pages/notice/notice.js";
"./pages/notice/detail.js";
"./pages/search/search.js";
}
const _sfc_main = {
onLaunch: function() {
common_vendor.index.__f__("log", "at App.vue:4", "App Launch");
},
onShow: function() {
common_vendor.index.__f__("log", "at App.vue:7", "App Show");
},
onHide: function() {
common_vendor.index.__f__("log", "at App.vue:10", "App Hide");
}
};
function createApp() {
const app = common_vendor.createSSRApp(_sfc_main);
return {
app
};
}
createApp().app.mount("#app");
exports.createApp = createApp;
//# sourceMappingURL=../.sourcemap/mp-weixin/app.js.map

44
unpackage/dist/dev/mp-weixin/app.json vendored Normal file
View File

@@ -0,0 +1,44 @@
{
"pages": [
"pages/index/index",
"components/components",
"pages/classify/classify",
"pages/user/user",
"pages/classlist/classlist",
"pages/preview/preview",
"pages/notice/notice",
"pages/notice/detail",
"pages/search/search"
],
"window": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "咸虾米壁纸",
"navigationBarBackgroundColor": "#fff",
"backgroundColor": "#F8F8F8"
},
"tabBar": {
"color": "#9799a5",
"selectedColor": "#28b389",
"list": [
{
"text": "推荐",
"pagePath": "pages/index/index",
"iconPath": "/static/images/tabBar/home.png",
"selectedIconPath": "/static/images/tabBar/home-h.png"
},
{
"text": "分类",
"pagePath": "pages/classify/classify",
"iconPath": "/static/images/tabBar/classify.png",
"selectedIconPath": "/static/images/tabBar/classify-h.png"
},
{
"text": "我的",
"pagePath": "pages/user/user",
"iconPath": "/static/images/tabBar/user.png",
"selectedIconPath": "/static/images/tabBar/user-h.png"
}
]
},
"usingComponents": {}
}

39
unpackage/dist/dev/mp-weixin/app.wxss vendored Normal file
View File

@@ -0,0 +1,39 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
/*每个页面公共css */
view, swiper, swiper-item {
box-sizing: border-box;
}
.pageBg {
background: linear-gradient(to bottom, transparent 0%, #fff 400rpx), linear-gradient(to right, #beecd8 20%, #F4E2D8);
min-height: 80vh;
}
.loadingLayout {
padding: 30rpx 0;
}
.safe-area-inset-bottom {
height: env(safe-area-inset-bottom);
}page{--status-bar-height:25px;--top-window-height:0px;--window-top:0px;--window-bottom:0px;--window-left:0px;--window-right:0px;--window-magin:0px}[data-c-h="true"]{display: none !important;}

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

View File

@@ -0,0 +1,6 @@
"use strict";
const _imports_0$1 = "/static/images/xxmLogo.png";
const _imports_0 = "/assets/more.14a1a72b.jpg";
exports._imports_0 = _imports_0$1;
exports._imports_0$1 = _imports_0;
//# sourceMappingURL=../../.sourcemap/mp-weixin/common/assets.js.map

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,9 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {};
function _sfc_render(_ctx, _cache) {
return {};
}
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-43a5d97b"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/common-title/common-title.js.map

View File

@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="content-title data-v-43a5d97b"><view class="name data-v-43a5d97b"><slot name="name"></slot></view><view class="custom data-v-43a5d97b"><slot name="custom"></slot></view></view>

View File

@@ -0,0 +1,34 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.content-title.data-v-43a5d97b {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 30rpx;
}
.content-title .name.data-v-43a5d97b {
font-size: 40rpx;
}

View File

@@ -0,0 +1,9 @@
"use strict";
const common_vendor = require("../common/vendor.js");
const _sfc_main = {};
function _sfc_render(_ctx, _cache) {
return {};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../.sourcemap/mp-weixin/components/components.js.map

View File

@@ -0,0 +1,4 @@
{
"navigationBarTitleText": "",
"usingComponents": {}
}

View File

@@ -0,0 +1,38 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const utils_system = require("../../utils/system.js");
if (!Array) {
const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
_easycom_uni_icons2();
}
const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
if (!Math) {
_easycom_uni_icons();
}
const _sfc_main = {
__name: "custom-nav-bar",
props: {
title: {
type: String,
default: "壁纸"
}
},
setup(__props) {
return (_ctx, _cache) => {
return {
a: common_vendor.unref(utils_system.getStatusBarHeight)() + "px",
b: common_vendor.t(__props.title),
c: common_vendor.p({
type: "search",
size: "18",
color: "#888"
}),
d: common_vendor.unref(utils_system.getTitleBarHeight)() + "px",
e: common_vendor.unref(utils_system.getNavBarHeight)() + "px"
};
};
}
};
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-412fc155"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/custom-nav-bar/custom-nav-bar.js.map

View File

@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons"
}
}

View File

@@ -0,0 +1 @@
<view class="layout data-v-412fc155"><view class="navbar data-v-412fc155"><view class="statusBar data-v-412fc155" style="{{'height:' + a}}"></view><view class="titleBar data-v-412fc155" style="{{'height:' + d}}"><view class="title data-v-412fc155">{{b}}</view><navigator url="/pages/search/search" class="search data-v-412fc155"><uni-icons wx:if="{{c}}" class="icon data-v-412fc155" u-i="412fc155-0" bind:__l="__l" u-p="{{c}}"></uni-icons><text class="text data-v-412fc155">搜索</text></navigator></view></view><view class="fill data-v-412fc155" style="{{'height:' + e}}"></view></view>

View File

@@ -0,0 +1,60 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.layout .navbar.data-v-412fc155 {
position: fixed;
left: 0;
top: 0;
width: 100%;
z-index: 10;
background: linear-gradient(to bottom, transparent 0%, #fff 400rpx), linear-gradient(to right, #beecd8 20%, #F4E2D8);
}
.layout .navbar .titleBar.data-v-412fc155 {
display: flex;
padding: 0 30rpx;
align-items: center;
}
.layout .navbar .titleBar .title.data-v-412fc155 {
font-size: 22px;
font-weight: 700;
color: #000;
}
.layout .navbar .titleBar .search.data-v-412fc155 {
width: 200rpx;
height: 50rpx;
border-radius: 60rpx;
background: rgba(255, 255, 255, 0.4);
margin-left: 30rpx;
color: #999;
font-size: 28rpx;
display: flex;
align-items: center;
}
.layout .navbar .titleBar .search .icon.data-v-412fc155 {
margin-left: 5rpx;
}
.layout .navbar .titleBar .search .text.data-v-412fc155 {
padding-left: 10rpx;
}

View File

@@ -0,0 +1,56 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const common_assets = require("../../common/assets.js");
const utils_common = require("../../utils/common.js");
if (!Array) {
const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
_easycom_uni_icons2();
}
const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
if (!Math) {
_easycom_uni_icons();
}
const _sfc_main = {
__name: "theme-item",
props: {
isMore: {
type: Boolean,
default: false
},
item: {
type: Object,
default() {
return {
name: "默认名称",
picurl: "/common/images/classify1.jpg",
updateTime: Date.now()
};
}
}
},
setup(__props) {
return (_ctx, _cache) => {
return common_vendor.e({
a: !__props.isMore
}, !__props.isMore ? common_vendor.e({
b: __props.item.picurl,
c: common_vendor.t(__props.item.name),
d: common_vendor.unref(utils_common.compareTimestamp)(__props.item.updateTime)
}, common_vendor.unref(utils_common.compareTimestamp)(__props.item.updateTime) ? {
e: common_vendor.t(common_vendor.unref(utils_common.compareTimestamp)(__props.item.updateTime))
} : {}, {
f: "/pages/classlist/classlist?id=" + __props.item._id + "&name=" + __props.item.name
}) : {
g: common_assets._imports_0$1,
h: common_vendor.p({
type: "more-filled",
size: "34",
color: "#fff"
})
});
};
}
};
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-f4eafbca"]]);
wx.createComponent(Component);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/theme-item/theme-item.js.map

View File

@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons"
}
}

View File

@@ -0,0 +1 @@
<view class="themeItem data-v-f4eafbca"><navigator wx:if="{{a}}" url="{{f}}" class="box data-v-f4eafbca"><image class="pic data-v-f4eafbca" src="{{b}}" mode="aspectFill"></image><view class="mask data-v-f4eafbca">{{c}}</view><view wx:if="{{d}}" class="tab data-v-f4eafbca">{{e}}前更新</view></navigator><navigator wx:else url="/pages/classify/classify" open-type="reLaunch" class="box more data-v-f4eafbca"><image class="pic data-v-f4eafbca" src="{{g}}" mode="aspectFill"></image><view class="mask data-v-f4eafbca"><uni-icons wx:if="{{h}}" class="data-v-f4eafbca" u-i="f4eafbca-0" bind:__l="__l" u-p="{{h}}"></uni-icons><view class="text data-v-f4eafbca">更多</view></view></navigator></view>

View File

@@ -0,0 +1,73 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.themeItem .box.data-v-f4eafbca {
height: 340rpx;
border-radius: 10rpx;
overflow: hidden;
position: relative;
}
.themeItem .box .pic.data-v-f4eafbca {
width: 100%;
height: 100%;
}
.themeItem .box .mask.data-v-f4eafbca {
width: 100%;
height: 70rpx;
position: absolute;
font-size: 40rpx;
font-weight: 600;
bottom: 0;
left: 0;
background: rgba(0, 0, 0, 0.2);
color: #fff;
display: flex;
align-items: center;
justify-content: center;
-webkit-backdrop-filter: blur(20rpx);
backdrop-filter: blur(20rpx);
}
.themeItem .box .tab.data-v-f4eafbca {
position: absolute;
left: 0;
top: 0;
background: rgba(250, 129, 90, 0.7);
-webkit-backdrop-filter: blur(20rpx);
backdrop-filter: blur(20rpx);
color: #fff;
font-size: 22rpx;
border-radius: 0 0 20rpx 0;
padding: 6rpx 12rpx;
transform: scale(0.8);
transform-origin: left top;
}
.themeItem .box.more .mask.data-v-f4eafbca {
width: 100%;
height: 100%;
flex-direction: column;
}
.themeItem .box.more .text.data-v-f4eafbca {
font-size: 28rpx;
}

View File

@@ -0,0 +1,61 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_apis = require("../../api/apis.js");
if (!Array) {
const _easycom_custom_nav_bar2 = common_vendor.resolveComponent("custom-nav-bar");
const _easycom_theme_item2 = common_vendor.resolveComponent("theme-item");
(_easycom_custom_nav_bar2 + _easycom_theme_item2)();
}
const _easycom_custom_nav_bar = () => "../../components/custom-nav-bar/custom-nav-bar.js";
const _easycom_theme_item = () => "../../components/theme-item/theme-item.js";
if (!Math) {
(_easycom_custom_nav_bar + _easycom_theme_item)();
}
const _sfc_main = {
__name: "classify",
setup(__props) {
const classifyList = common_vendor.ref([]);
const getClassify = async () => {
let res = await api_apis.apiGetClassify({
// select:true
pageSize: 15
});
classifyList.value = res.data;
};
getClassify();
common_vendor.onShareAppMessage((e) => {
return {
title: "hzb壁纸,精选分类",
path: "/pages/classfy/classfy"
};
});
common_vendor.onShareTimeline(() => {
return {
// 标题
title: "hzb壁纸,精选分类",
// 分享时候的图片地址。可以本地也可以网络图
imageUrl: "/static/images/logo2.jpg"
};
});
return (_ctx, _cache) => {
return {
a: common_vendor.p({
title: "分类"
}),
b: common_vendor.f(classifyList.value, (item, k0, i0) => {
return {
a: item._id,
b: "6bcfa975-1-" + i0,
c: common_vendor.p({
item
})
};
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-6bcfa975"]]);
_sfc_main.__runtimeHooks = 6;
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/classify/classify.js.map

View File

@@ -0,0 +1,9 @@
{
"navigationBarTitleText": "分类",
"enablePullDownRefresh": true,
"navigationStyle": "custom",
"usingComponents": {
"custom-nav-bar": "../../components/custom-nav-bar/custom-nav-bar",
"theme-item": "../../components/theme-item/theme-item"
}
}

View File

@@ -0,0 +1 @@
<view class="classLayout pageBg data-v-6bcfa975"><custom-nav-bar wx:if="{{a}}" class="data-v-6bcfa975" u-i="6bcfa975-0" bind:__l="__l" u-p="{{a}}"></custom-nav-bar><view class="classify data-v-6bcfa975"><theme-item wx:for="{{b}}" wx:for-item="item" wx:key="a" class="data-v-6bcfa975" u-i="{{item.b}}" bind:__l="__l" u-p="{{item.c}}"></theme-item></view></view>

View File

@@ -0,0 +1,31 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.classLayout .classify.data-v-6bcfa975 {
padding: 30rpx;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 15rpx;
}

View File

@@ -0,0 +1,115 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_apis = require("../../api/apis.js");
if (!Array) {
const _easycom_uni_load_more2 = common_vendor.resolveComponent("uni-load-more");
_easycom_uni_load_more2();
}
const _easycom_uni_load_more = () => "../../uni_modules/uni-load-more/components/uni-load-more/uni-load-more.js";
if (!Math) {
_easycom_uni_load_more();
}
const _sfc_main = {
__name: "classlist",
setup(__props) {
const classList = common_vendor.ref([]);
const noData = common_vendor.ref(false);
const queryParams = {
pageNum: 1,
pageSize: 12
};
let pageName;
common_vendor.onLoad((e) => {
let { id = null, name = null, type = null } = e;
if (id) {
queryParams.id = id;
}
if (type) {
queryParams.type = type;
}
pageName = name;
common_vendor.index.setNavigationBarTitle({
title: name
});
getClassList();
});
common_vendor.onUnload(() => {
common_vendor.index.removeStorageSync("storgClassList");
});
common_vendor.onReachBottom(() => {
if (noData.value) {
return;
}
queryParams.pageNum++;
getClassList();
});
const getClassList = async () => {
let res;
if (queryParams.id) {
res = await api_apis.apiGetClassList({
// queryParams
classid: queryParams.id,
pageNum: queryParams.pageNum,
pageSize: queryParams.pageSize
// classid:"6524ace7213929cbcee72e4d"
});
}
if (queryParams.type) {
res = await api_apis.apiGetHistoryList({
// queryParams
type: queryParams.type,
pageNum: queryParams.pageNum,
pageSize: queryParams.pageSize
});
}
classList.value = [...classList.value, ...res.data];
if (queryParams.pageSize > res.data.length) {
noData.value = true;
}
common_vendor.index.setStorageSync("storgClassList", classList.value);
};
common_vendor.onShareAppMessage((e) => {
return {
title: "hzb壁纸-" + pageName,
// 必须传递id进去否则进不去内部页面
path: "/pages/classlist/classlist?id=" + queryParams.id + "&name=" + pageName
};
});
common_vendor.onShareTimeline(() => {
return {
// 标题
title: "hzb壁纸~~~",
// 分享时候的图片地址。可以本地也可以网络图
// imageUrl:"/static/images/logo2.jpg"
//要想看朋友圈这个需要带的query参数
query: "id=" + queryParams.id + "&name=" + pageName
};
});
return (_ctx, _cache) => {
return common_vendor.e({
a: !classList.value.length && !noData.value
}, !classList.value.length && !noData.value ? {
b: common_vendor.p({
status: "loading"
})
} : {}, {
c: common_vendor.f(classList.value, (item, k0, i0) => {
return {
a: item.smallPicurl,
b: "/pages/preview/preview?id=" + item._id,
c: item._id
};
}),
d: classList.value.length || noData.value
}, classList.value.length || noData.value ? {
e: common_vendor.p({
status: noData.value ? "noMore" : "loading"
})
} : {});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-bd381383"]]);
_sfc_main.__runtimeHooks = 6;
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/classlist/classlist.js.map

View File

@@ -0,0 +1,6 @@
{
"navigationBarTitleText": "分类列表",
"usingComponents": {
"uni-load-more": "../../uni_modules/uni-load-more/components/uni-load-more/uni-load-more"
}
}

View File

@@ -0,0 +1 @@
<view class="classlist data-v-bd381383"><view wx:if="{{a}}" class="loadingLayout data-v-bd381383"><uni-load-more wx:if="{{b}}" class="data-v-bd381383" u-i="bd381383-0" bind:__l="__l" u-p="{{b}}"></uni-load-more></view><view class="content data-v-bd381383"><navigator wx:for="{{c}}" wx:for-item="item" wx:key="c" url="{{item.b}}" class="item data-v-bd381383"><image class="data-v-bd381383" src="{{item.a}}" mode="aspectFill"></image></navigator></view><view wx:if="{{d}}" class="loadingLayout bottom data-v-bd381383"><uni-load-more wx:if="{{e}}" class="data-v-bd381383" u-i="bd381383-1" bind:__l="__l" u-p="{{e}}"></uni-load-more></view><view class="safe-area-inset-bottom data-v-bd381383"></view></view>

View File

@@ -0,0 +1,39 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.classlist .content.data-v-bd381383 {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 5rpx;
padding: 5rpx;
}
.classlist .content .item.data-v-bd381383 {
height: 440rpx;
}
.classlist .content .item image.data-v-bd381383 {
width: 100%;
height: 100%;
display: block;
}

View File

@@ -0,0 +1,141 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_apis = require("../../api/apis.js");
if (!Array) {
const _easycom_custom_nav_bar2 = common_vendor.resolveComponent("custom-nav-bar");
const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
const _easycom_uni_dateformat2 = common_vendor.resolveComponent("uni-dateformat");
const _easycom_common_title2 = common_vendor.resolveComponent("common-title");
const _easycom_theme_item2 = common_vendor.resolveComponent("theme-item");
(_easycom_custom_nav_bar2 + _easycom_uni_icons2 + _easycom_uni_dateformat2 + _easycom_common_title2 + _easycom_theme_item2)();
}
const _easycom_custom_nav_bar = () => "../../components/custom-nav-bar/custom-nav-bar.js";
const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
const _easycom_uni_dateformat = () => "../../uni_modules/uni-dateformat/components/uni-dateformat/uni-dateformat.js";
const _easycom_common_title = () => "../../components/common-title/common-title.js";
const _easycom_theme_item = () => "../../components/theme-item/theme-item.js";
if (!Math) {
(_easycom_custom_nav_bar + _easycom_uni_icons + _easycom_uni_dateformat + _easycom_common_title + _easycom_theme_item)();
}
const _sfc_main = {
__name: "index",
setup(__props) {
const bannerList = common_vendor.ref([]);
const randomList = common_vendor.ref([]);
const noticeList = common_vendor.ref([]);
const classifyList = common_vendor.ref([]);
const getBanner = async () => {
let res = await api_apis.apiGetBanner();
bannerList.value = res.data;
};
const getDayRandom = async () => {
let res = await api_apis.apiGetDayRandom();
randomList.value = res.data;
};
const getNotice = async () => {
let res = await api_apis.apiGetNotice({ select: true });
noticeList.value = res.data;
};
const goPreview = (id) => {
common_vendor.index.setStorageSync("storgClassList", randomList.value);
common_vendor.index.navigateTo({
url: "/pages/preview/preview?id=" + id
});
};
const getClassify = async () => {
let res = await api_apis.apiGetClassify({
select: true
});
classifyList.value = res.data;
};
common_vendor.onShareAppMessage((e) => {
return {
title: "hzb壁纸",
path: "/pages/index/index"
};
});
common_vendor.onShareTimeline(() => {
return {
// 标题
title: "hzb壁纸~~~",
// 分享时候的图片地址。可以本地也可以网络图
imageUrl: "/static/images/logo2.jpg"
};
});
getBanner();
getDayRandom();
getNotice();
getClassify();
return (_ctx, _cache) => {
return {
a: common_vendor.p({
title: "推荐"
}),
b: common_vendor.f(bannerList.value, (item, k0, i0) => {
return common_vendor.e({
a: item.target == "miniProgram"
}, item.target == "miniProgram" ? {
b: item.picurl,
c: item.url,
d: item.appid
} : {
e: item.picurl,
f: `/pages/classlist/classlist?${item.url}`
}, {
g: item._id
});
}),
c: common_vendor.p({
type: "sound-filled",
size: "20",
color: "#28b389"
}),
d: common_vendor.f(noticeList.value, (item, k0, i0) => {
return {
a: common_vendor.t(item.title),
b: "/pages/notice/detail?id=" + item._id,
c: item._id
};
}),
e: common_vendor.p({
type: "forward",
size: "20",
color: "#28b389"
}),
f: common_vendor.p({
type: "calendar",
size: "20",
color: "#28b389"
}),
g: common_vendor.p({
date: Date.now(),
format: "dd日"
}),
h: common_vendor.f(randomList.value, (item, k0, i0) => {
return {
a: item.smallPicurl,
b: item._id,
c: common_vendor.o(($event) => goPreview(item._id), item._id)
};
}),
i: common_vendor.f(classifyList.value, (item, k0, i0) => {
return {
a: item._id,
b: "1cf27b2a-7-" + i0,
c: common_vendor.p({
isMore: false,
item
})
};
}),
j: common_vendor.p({
isMore: true
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-1cf27b2a"]]);
_sfc_main.__runtimeHooks = 6;
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/index/index.js.map

View File

@@ -0,0 +1,11 @@
{
"navigationBarTitleText": "uni-app",
"navigationStyle": "custom",
"usingComponents": {
"custom-nav-bar": "../../components/custom-nav-bar/custom-nav-bar",
"uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons",
"uni-dateformat": "../../uni_modules/uni-dateformat/components/uni-dateformat/uni-dateformat",
"common-title": "../../components/common-title/common-title",
"theme-item": "../../components/theme-item/theme-item"
}
}

View File

@@ -0,0 +1 @@
<view class="homeLayout pageBg data-v-1cf27b2a"><custom-nav-bar wx:if="{{a}}" class="data-v-1cf27b2a" u-i="1cf27b2a-0" bind:__l="__l" u-p="{{a}}"></custom-nav-bar><view class="banner data-v-1cf27b2a"><swiper class="data-v-1cf27b2a" indicator-dots="{{true}}" circular="{{true}}" indicator-color="rgba(255,255,255,0.5)" indicator-active-color="#fff" autoplay="{{true}}"><swiper-item wx:for="{{b}}" wx:for-item="item" wx:key="g" class="data-v-1cf27b2a"><navigator wx:if="{{item.a}}" class="like data-v-1cf27b2a" url="{{item.c}}" target="miniProgram" app-id="{{item.d}}"><image class="data-v-1cf27b2a" src="{{item.b}}" mode="aspectFill"></image></navigator><navigator wx:else url="{{item.f}}" class="like data-v-1cf27b2a"><image class="data-v-1cf27b2a" src="{{item.e}}" mode="aspectFill"></image></navigator></swiper-item></swiper></view><view class="notice data-v-1cf27b2a"><view class="left data-v-1cf27b2a"><uni-icons wx:if="{{c}}" class="data-v-1cf27b2a" u-i="1cf27b2a-1" bind:__l="__l" u-p="{{c}}"></uni-icons><text class="text data-v-1cf27b2a">公告</text></view><view class="center data-v-1cf27b2a"><swiper class="data-v-1cf27b2a" vertical="{{true}}" autoplay="{{true}}" interval="1500" duration="300" circular="{{true}}"><swiper-item wx:for="{{d}}" wx:for-item="item" wx:key="c" class="data-v-1cf27b2a"><navigator class="data-v-1cf27b2a" url="{{item.b}}">{{item.a}}</navigator></swiper-item></swiper></view><view class="right data-v-1cf27b2a"><uni-icons wx:if="{{e}}" class="data-v-1cf27b2a" u-i="1cf27b2a-2" bind:__l="__l" u-p="{{e}}"></uni-icons></view></view><view class="select data-v-1cf27b2a"><common-title class="data-v-1cf27b2a" u-s="{{['name','custom']}}" u-i="1cf27b2a-3" bind:__l="__l"><view slot="name">每日推荐</view><view class="date data-v-1cf27b2a" slot="custom"><uni-icons wx:if="{{f}}" class="data-v-1cf27b2a" u-i="1cf27b2a-4,1cf27b2a-3" bind:__l="__l" u-p="{{f}}"></uni-icons><view class="text data-v-1cf27b2a"><uni-dateformat wx:if="{{g}}" class="data-v-1cf27b2a" u-i="1cf27b2a-5,1cf27b2a-3" bind:__l="__l" u-p="{{g}}"></uni-dateformat></view></view></common-title><view class="content data-v-1cf27b2a"><scroll-view class="data-v-1cf27b2a" scroll-x="{{true}}"><view wx:for="{{h}}" wx:for-item="item" wx:key="b" class="box data-v-1cf27b2a" bindtap="{{item.c}}"><image class="data-v-1cf27b2a" src="{{item.a}}" mode="aspectFill"></image></view></scroll-view></view></view><view class="theme data-v-1cf27b2a"><common-title class="data-v-1cf27b2a" u-s="{{['name','custom']}}" u-i="1cf27b2a-6" bind:__l="__l"><view slot="name">专题精选</view><view slot="custom"><navigator url="/pages/classify/classify" class="more data-v-1cf27b2a" open-type="reLaunch">More+</navigator></view></common-title><view class="content data-v-1cf27b2a"><theme-item wx:for="{{i}}" wx:for-item="item" wx:key="a" class="data-v-1cf27b2a" u-i="{{item.b}}" bind:__l="__l" u-p="{{item.c}}"></theme-item><theme-item wx:if="{{j}}" class="data-v-1cf27b2a" u-i="1cf27b2a-8" bind:__l="__l" u-p="{{j}}"></theme-item></view></view></view>

View File

@@ -0,0 +1,130 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.homeLayout .banner.data-v-1cf27b2a {
width: 750rpx;
padding: 30rpx 0;
}
.homeLayout .banner swiper.data-v-1cf27b2a {
width: 750rpx;
height: 340rpx;
}
.homeLayout .banner swiper swiper-item.data-v-1cf27b2a {
width: 100%;
height: 100%;
padding: 0 30rpx;
}
.homeLayout .banner swiper swiper-item .like.data-v-1cf27b2a {
width: 100%;
height: 100%;
}
.homeLayout .banner swiper swiper-item .like image.data-v-1cf27b2a {
width: 100%;
height: 100%;
border-radius: 10rpx;
}
.homeLayout .notice.data-v-1cf27b2a {
width: 690rpx;
margin: 0 auto;
height: 80rpx;
background: #f9f9f9;
line-height: 80rpx;
border-radius: 80rpx;
display: flex;
}
.homeLayout .notice .left.data-v-1cf27b2a {
width: 140rpx;
display: flex;
align-items: center;
justify-content: center;
}
.homeLayout .notice .left .text.data-v-1cf27b2a {
color: #000;
font-size: 28rpx;
font-weight: 600;
}
.homeLayout .notice .center.data-v-1cf27b2a {
flex: 1;
}
.homeLayout .notice .center swiper.data-v-1cf27b2a {
height: 100%;
}
.homeLayout .notice .center swiper swiper-item.data-v-1cf27b2a {
height: 100%;
font-size: 30rpx;
color: #666;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.homeLayout .notice .right.data-v-1cf27b2a {
width: 70rpx;
display: flex;
align-items: center;
justify-content: center;
}
.homeLayout .select.data-v-1cf27b2a {
padding-top: 50rpx;
}
.homeLayout .select .date.data-v-1cf27b2a {
color: #28B389;
display: flex;
align-items: center;
}
.homeLayout .select .content.data-v-1cf27b2a {
width: 720rpx;
margin-left: 30rpx;
margin-top: 30rpx;
}
.homeLayout .select .content scroll-view.data-v-1cf27b2a {
white-space: nowrap;
}
.homeLayout .select .content scroll-view .box.data-v-1cf27b2a {
display: inline-block;
width: 200rpx;
height: 430rpx;
margin-right: 15rpx;
}
.homeLayout .select .content scroll-view .box image.data-v-1cf27b2a {
width: 100%;
height: 100%;
}
.homeLayout .select .content scroll-view .box.data-v-1cf27b2a:last-child {
margin-right: 30rpx;
}
.homeLayout .theme.data-v-1cf27b2a {
padding: 50rpx 0;
}
.homeLayout .theme .more.data-v-1cf27b2a {
font-size: 32rpx;
color: #888;
}
.homeLayout .theme .content.data-v-1cf27b2a {
margin-top: 30rpx;
padding: 0 30rpx;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 15rpx;
}

View File

@@ -0,0 +1,62 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_apis = require("../../api/apis.js");
if (!Array) {
const _easycom_uni_tag2 = common_vendor.resolveComponent("uni-tag");
const _easycom_uni_dateformat2 = common_vendor.resolveComponent("uni-dateformat");
const _easycom_mp_html2 = common_vendor.resolveComponent("mp-html");
(_easycom_uni_tag2 + _easycom_uni_dateformat2 + _easycom_mp_html2)();
}
const _easycom_uni_tag = () => "../../uni_modules/uni-tag/components/uni-tag/uni-tag.js";
const _easycom_uni_dateformat = () => "../../uni_modules/uni-dateformat/components/uni-dateformat/uni-dateformat.js";
const _easycom_mp_html = () => "../../uni_modules/mp-html/components/mp-html/mp-html.js";
if (!Math) {
(_easycom_uni_tag + _easycom_uni_dateformat + _easycom_mp_html)();
}
const _sfc_main = {
__name: "detail",
setup(__props) {
const detail = common_vendor.ref({});
const noticeId = common_vendor.ref("");
const noticeName = common_vendor.ref("");
common_vendor.onLoad((e) => {
common_vendor.index.__f__("log", "at pages/notice/detail.vue:46", e);
noticeId.value = e.id;
noticeName.value = e.name;
common_vendor.index.setNavigationBarTitle({
title: noticeName.value
});
getNoticeDetail();
});
const getNoticeDetail = async () => {
let res = await api_apis.apiNoticeDetail({ id: noticeId.value });
detail.value = res.data;
common_vendor.index.__f__("log", "at pages/notice/detail.vue:59", res);
};
return (_ctx, _cache) => {
return common_vendor.e({
a: detail.value.select
}, detail.value.select ? {
b: common_vendor.p({
text: "置顶",
inverted: true,
type: "error"
})
} : {}, {
c: common_vendor.t(detail.value.title),
d: common_vendor.t(detail.value.author),
e: common_vendor.p({
date: detail.value.publish_date,
format: "yyyy-MM-dd hh:mm:ss"
}),
f: common_vendor.p({
content: detail.value.content
}),
g: common_vendor.t(detail.value.view_count)
});
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-0f737f11"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/notice/detail.js.map

View File

@@ -0,0 +1,8 @@
{
"navigationBarTitleText": "公告详情",
"usingComponents": {
"uni-tag": "../../uni_modules/uni-tag/components/uni-tag/uni-tag",
"uni-dateformat": "../../uni_modules/uni-dateformat/components/uni-dateformat/uni-dateformat",
"mp-html": "../../uni_modules/mp-html/components/mp-html/mp-html"
}
}

View File

@@ -0,0 +1 @@
<view class="noticeLayout data-v-0f737f11"><view class="title data-v-0f737f11"><view class="tag data-v-0f737f11"><uni-tag wx:if="{{a}}" class="data-v-0f737f11" u-i="0f737f11-0" bind:__l="__l" u-p="{{b}}"></uni-tag></view><view class="font data-v-0f737f11">{{c}}</view></view><view class="info data-v-0f737f11"><view class="item data-v-0f737f11">{{d}}</view><view class="item data-v-0f737f11"><uni-dateformat wx:if="{{e}}" class="data-v-0f737f11" u-i="0f737f11-1" bind:__l="__l" u-p="{{e}}"></uni-dateformat></view></view><view class="content data-v-0f737f11"><mp-html wx:if="{{f}}" class="data-v-0f737f11" u-i="0f737f11-2" bind:__l="__l" u-p="{{f}}"/></view><view class="count data-v-0f737f11"> 阅读数量:{{g}}</view></view>

View File

@@ -0,0 +1,60 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.noticeLayout.data-v-0f737f11 {
padding: 30rpx;
}
.noticeLayout .title.data-v-0f737f11 {
display: flex;
align-items: center;
font-size: 40rpx;
color: #111;
line-height: 1.6em;
padding-bottom: 30rpx;
}
.noticeLayout .title .tag.data-v-0f737f11 {
transform: scale(0.8);
transform-origin: left center;
flex-shrink: 0;
}
.noticeLayout .title .font.data-v-0f737f11 {
padding-left: 4rpx;
}
.noticeLayout .info.data-v-0f737f11 {
display: flex;
align-items: center;
color: #999;
font-size: 28rpx;
}
.noticeLayout .info .item.data-v-0f737f11 {
padding-left: 20rpx;
}
.noticeLayout .content.data-v-0f737f11 {
padding: 50rpx 0;
}
.noticeLayout .count.data-v-0f737f11 {
color: #999;
font-size: 28rpx;
}

View File

@@ -0,0 +1,9 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = {};
function _sfc_render(_ctx, _cache) {
return {};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/notice/notice.js.map

View File

@@ -0,0 +1,4 @@
{
"navigationBarTitleText": "公告",
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class=""></view>

View File

View File

@@ -0,0 +1,329 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const utils_system = require("../../utils/system.js");
const api_apis = require("../../api/apis.js");
if (!Array) {
const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
const _easycom_uni_dateformat2 = common_vendor.resolveComponent("uni-dateformat");
const _easycom_uni_rate2 = common_vendor.resolveComponent("uni-rate");
const _easycom_uni_popup2 = common_vendor.resolveComponent("uni-popup");
(_easycom_uni_icons2 + _easycom_uni_dateformat2 + _easycom_uni_rate2 + _easycom_uni_popup2)();
}
const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
const _easycom_uni_dateformat = () => "../../uni_modules/uni-dateformat/components/uni-dateformat/uni-dateformat.js";
const _easycom_uni_rate = () => "../../uni_modules/uni-rate/components/uni-rate/uni-rate.js";
const _easycom_uni_popup = () => "../../uni_modules/uni-popup/components/uni-popup/uni-popup.js";
if (!Math) {
(_easycom_uni_icons + _easycom_uni_dateformat + _easycom_uni_rate + _easycom_uni_popup)();
}
const _sfc_main = {
__name: "preview",
setup(__props) {
const maskState = common_vendor.ref(true);
const infoPopup = common_vendor.ref(null);
const currentInfo = common_vendor.ref({});
const scorePopup = common_vendor.ref(null);
const userScore = common_vendor.ref(0);
const isScore = common_vendor.ref(false);
const classList = common_vendor.ref([]);
const currentId = common_vendor.ref(null);
const currentIndex = common_vendor.ref(0);
const readImgs = common_vendor.ref([]);
const storgClassList = common_vendor.index.getStorageSync("storgClassList") || [];
classList.value = storgClassList.map((item) => {
return {
...item,
//注意 _small.webp是小图,要看大图的话,需要将后缀改变成.jpg
picurl: item.smallPicurl.replace("_small.webp", ".jpg")
};
});
common_vendor.onLoad(async (e) => {
currentId.value = e.id;
if (e.type == "share") {
let res = await api_apis.apiDetailWall({ id: currentId.value });
classList.value = res.data.map((item) => {
return {
...item,
picurl: item.smallPicurl.replace("_small.webp", ".jpg")
};
});
}
currentIndex.value = classList.value.findIndex((item) => item._id == currentId.value);
readImgsFun();
currentInfo.value = classList.value[currentIndex.value];
});
const swiperChange = (e) => {
currentIndex.value = e.detail.current;
readImgsFun();
currentInfo.value = classList.value[currentIndex.value];
};
const readImgsFun = () => {
readImgs.value.push(
currentIndex.value <= 0 ? classList.value.length - 1 : currentIndex.value - 1,
currentIndex.value,
currentIndex.value >= classList.value.length - 1 ? 0 : currentIndex.value + 1
);
readImgs.value = [...new Set(readImgs.value)];
};
const clickInfo = () => {
infoPopup.value.open();
};
const clickInfoClose = () => {
infoPopup.value.close();
};
const clickScore = () => {
if (currentInfo.value.userScore) {
isScore.value = true;
userScore.value = currentInfo.value.userScore;
}
scorePopup.value.open();
};
const clickScoreClose = () => {
scorePopup.value.close();
userScore.value = 0;
isScore.value = false;
};
const submitScore = async () => {
common_vendor.index.showLoading({
title: "加载中..."
});
let {
classid,
_id: wallId
} = currentInfo.value;
let res = await api_apis.apiGetSetScore({
classid,
wallId,
userScore: userScore.value
});
common_vendor.index.hideLoading();
if (res.errCode === 0) {
common_vendor.index.showToast({
title: "评分成功",
icon: "none"
});
}
classList.value[currentIndex.value].userScore = userScore.value;
common_vendor.index.setStorageSync("storgClassList", classList.value);
clickScoreClose();
};
const maskChange = () => {
maskState.value = !maskState.value;
};
const goBack = () => {
common_vendor.index.navigateBack({
success: () => {
},
fail: (err) => {
common_vendor.index.reLaunch({
url: "/pages/index/index"
});
}
});
};
const clickDownload = async () => {
try {
common_vendor.index.showLoading({
title: "下载中...",
// 显示过程中不允许点击其他的东西
mask: true
});
let {
classid,
_id: wallId
} = currentInfo.value;
let res = await api_apis.apiWriteDownload({
classid,
wallId
});
if (res.errCode != 0) {
throw res;
}
common_vendor.index.getImageInfo({
// 这个getImageInfo是为了根据网络地址获得一个临时下载地址以便能够下载到相册里面
//单纯的使用 saveImageToPhotosAlbum 是不能够保存图片的
src: currentInfo.value.picurl,
success: (res2) => {
common_vendor.index.saveImageToPhotosAlbum({
filePath: res2.path,
success: (res3) => {
common_vendor.index.showToast({
title: "保存成功,请到相册查看",
icon: "none"
});
},
fail: (err) => {
if (err.errMsg == "saveImagePhotoAlbum:fail cancel") {
common_vendor.index.showToast({
title: "保存失败,请重新点击下载",
icon: "none"
});
return;
}
common_vendor.index.showModal({
title: "授权提示",
content: "需要授权保存相册",
//success表示系统回复了的情况
success: (res3) => {
if (res3.confirm) {
common_vendor.index.openSetting({
success: (setting) => {
common_vendor.index.__f__(
"log",
"at pages/preview/preview.vue:404",
setting
);
if (setting.authSetting["scope.writePhotosAlbum"]) {
common_vendor.index.showToast({
title: "获取授权成功",
icon: "none"
});
} else {
common_vendor.index.showToast({
title: "获取权限失败",
icon: "none"
});
}
}
});
}
}
});
},
//complete表示无论成功还是失败都会做的事件
complete: () => {
common_vendor.index.hideLoading();
}
});
}
});
} catch (err) {
common_vendor.index.hideLoading();
}
};
common_vendor.onShareAppMessage((e) => {
return {
title: "hzb壁纸-",
// 必须传递id进去否则进不去内部页面
path: "/pages/preview/preview?id=" + currentId.value + "&type=share"
};
});
common_vendor.onShareTimeline(() => {
return {
// 标题
title: "hzb壁纸~~~",
// 分享时候的图片地址。可以本地也可以网络图
// imageUrl:"/static/images/logo2.jpg"
//要想看朋友圈这个需要带的query参数
// type表示是分享传入的
query: "id=" + currentId.value + "&type=share"
};
});
return (_ctx, _cache) => {
return {
a: common_vendor.f(classList.value, (item, index, i0) => {
return common_vendor.e({
a: readImgs.value.includes(index)
}, readImgs.value.includes(index) ? {
b: common_vendor.o(maskChange, item._id),
c: item.picurl
} : {}, {
d: item._id
});
}),
b: currentIndex.value,
c: common_vendor.o(swiperChange),
d: common_vendor.p({
type: "back",
color: "#fff",
size: "20"
}),
e: common_vendor.o(goBack),
f: common_vendor.unref(utils_system.getPreviewBarHeight)() + "px",
g: common_vendor.t(currentIndex.value + 1),
h: common_vendor.t(classList.value.length),
i: common_vendor.p({
date: Date.now(),
format: "hh:mm"
}),
j: common_vendor.p({
date: Date.now(),
format: "MM月dd日"
}),
k: common_vendor.p({
type: "info",
size: "23"
}),
l: common_vendor.o(clickInfo),
m: common_vendor.p({
type: "star",
size: "23"
}),
n: common_vendor.t(currentInfo.value.score),
o: common_vendor.o(clickScore),
p: common_vendor.p({
type: "download",
size: "23"
}),
q: common_vendor.o(clickDownload),
r: maskState.value,
s: common_vendor.p({
type: "closeempty",
size: "18",
color: "#999"
}),
t: common_vendor.o(clickInfoClose),
v: common_vendor.t(currentInfo.value._id),
w: common_vendor.t(currentInfo.value.nickname),
x: common_vendor.p({
readonly: true,
touchable: false,
value: currentInfo.value.score,
size: "16"
}),
y: common_vendor.t(currentInfo.value.score),
z: common_vendor.t(currentInfo.value.description),
A: common_vendor.f(currentInfo.value.tabs, (tab, k0, i0) => {
return {
a: common_vendor.t(tab),
b: tab
};
}),
B: common_vendor.sr(infoPopup, "2dad6c07-6", {
"k": "infoPopup"
}),
C: common_vendor.p({
type: "bottom"
}),
D: common_vendor.t(isScore.value ? "已经评分过了~" : "壁纸评分"),
E: common_vendor.p({
type: "closeempty",
size: "18",
color: "#999"
}),
F: common_vendor.o(clickScoreClose),
G: common_vendor.o(_ctx.onChange),
H: common_vendor.o(($event) => userScore.value = $event),
I: common_vendor.p({
disabled: isScore.value,
["disabled-color"]: "#FFCA3E",
allowHalf: true,
modelValue: userScore.value
}),
J: common_vendor.t(userScore.value),
K: common_vendor.o(submitScore),
L: !userScore.value || isScore.value,
M: common_vendor.sr(scorePopup, "2dad6c07-9", {
"k": "scorePopup"
}),
N: common_vendor.p({
["is-mask-click"]: false
})
};
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-2dad6c07"]]);
_sfc_main.__runtimeHooks = 6;
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/preview/preview.js.map

View File

@@ -0,0 +1,10 @@
{
"navigationBarTitleText": "预览",
"navigationStyle": "custom",
"usingComponents": {
"uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons",
"uni-dateformat": "../../uni_modules/uni-dateformat/components/uni-dateformat/uni-dateformat",
"uni-rate": "../../uni_modules/uni-rate/components/uni-rate/uni-rate",
"uni-popup": "../../uni_modules/uni-popup/components/uni-popup/uni-popup"
}
}

View File

@@ -0,0 +1 @@
<view class="preview data-v-2dad6c07"><swiper class="data-v-2dad6c07" circular="{{true}}" current="{{b}}" bindchange="{{c}}"><swiper-item wx:for="{{a}}" wx:for-item="item" wx:key="d" class="data-v-2dad6c07"><image wx:if="{{item.a}}" class="data-v-2dad6c07" bindtap="{{item.b}}" src="{{item.c}}" mode="aspectFill"></image></swiper-item></swiper><view class="mask data-v-2dad6c07" hidden="{{!r}}"><view class="goBack data-v-2dad6c07" bindtap="{{e}}" style="{{'top:' + f}}"><uni-icons wx:if="{{d}}" class="data-v-2dad6c07" u-i="2dad6c07-0" bind:__l="__l" u-p="{{d}}"></uni-icons></view><view class="count data-v-2dad6c07">{{g}} / {{h}}</view><view class="time data-v-2dad6c07"><uni-dateformat wx:if="{{i}}" class="data-v-2dad6c07" u-i="2dad6c07-1" bind:__l="__l" u-p="{{i}}"></uni-dateformat></view><view class="date data-v-2dad6c07"><uni-dateformat wx:if="{{j}}" class="data-v-2dad6c07" u-i="2dad6c07-2" bind:__l="__l" u-p="{{j}}"></uni-dateformat></view><view class="footer data-v-2dad6c07"><view class="box data-v-2dad6c07" bindtap="{{l}}"><uni-icons wx:if="{{k}}" class="data-v-2dad6c07" u-i="2dad6c07-3" bind:__l="__l" u-p="{{k}}"></uni-icons><view class="text data-v-2dad6c07">信息</view></view><view class="box data-v-2dad6c07" bindtap="{{o}}"><uni-icons wx:if="{{m}}" class="data-v-2dad6c07" u-i="2dad6c07-4" bind:__l="__l" u-p="{{m}}"></uni-icons><view class="text data-v-2dad6c07">{{n}}分</view></view><view class="box data-v-2dad6c07" bindtap="{{q}}"><uni-icons wx:if="{{p}}" class="data-v-2dad6c07" u-i="2dad6c07-5" bind:__l="__l" u-p="{{p}}"></uni-icons><view class="text data-v-2dad6c07">下载</view></view></view></view><uni-popup wx:if="{{C}}" class="r data-v-2dad6c07" u-s="{{['d']}}" u-r="infoPopup" u-i="2dad6c07-6" bind:__l="__l" u-p="{{C}}"><view class="infoPopup data-v-2dad6c07"><view class="popHeader data-v-2dad6c07"><view class="data-v-2dad6c07"></view><view class="title data-v-2dad6c07">壁纸信息</view><view class="close data-v-2dad6c07" bindtap="{{t}}"><uni-icons wx:if="{{s}}" class="data-v-2dad6c07" u-i="2dad6c07-7,2dad6c07-6" bind:__l="__l" u-p="{{s}}"></uni-icons></view></view><scroll-view class="data-v-2dad6c07" scroll-y="{{true}}"><view class="content data-v-2dad6c07"><view class="row data-v-2dad6c07"><view class="label data-v-2dad6c07">壁纸ID</view><text selectable class="value data-v-2dad6c07">{{v}}</text></view><view class="row data-v-2dad6c07"><view class="label data-v-2dad6c07">发布者:</view><text class="value data-v-2dad6c07">{{w}}</text></view><view class="row data-v-2dad6c07"><text class="label data-v-2dad6c07">评分:</text><view class="value roteBox data-v-2dad6c07"><uni-rate wx:if="{{x}}" class="data-v-2dad6c07" u-i="2dad6c07-8,2dad6c07-6" bind:__l="__l" u-p="{{x}}"/><text class="score data-v-2dad6c07">{{y}}</text></view></view><view class="row data-v-2dad6c07"><text class="label data-v-2dad6c07">摘要:</text><view class="value data-v-2dad6c07">{{z}}</view></view><view class="row data-v-2dad6c07"><text class="label data-v-2dad6c07">标签:</text><view class="value tabs data-v-2dad6c07"><view wx:for="{{A}}" wx:for-item="tab" wx:key="b" class="tab data-v-2dad6c07">{{tab.a}}</view></view></view><view class="copyright data-v-2dad6c07"> 声明本图片来用户投稿非商业使用用于免费学习交流如侵犯了您的权益您可以拷贝壁纸ID举报至平台邮箱513894357@qq.com管理将删除侵权壁纸维护您的权益。 </view><view class="safe-area-inset-bottom data-v-2dad6c07"></view></view></scroll-view></view></uni-popup><uni-popup wx:if="{{N}}" class="r data-v-2dad6c07" u-s="{{['d']}}" u-r="scorePopup" u-i="2dad6c07-9" bind:__l="__l" u-p="{{N}}"><view class="scorePopup data-v-2dad6c07"><view class="popHeader data-v-2dad6c07"><view class="data-v-2dad6c07"></view><view class="title data-v-2dad6c07">{{D}}</view><view class="close data-v-2dad6c07" bindtap="{{F}}"><uni-icons wx:if="{{E}}" class="data-v-2dad6c07" u-i="2dad6c07-10,2dad6c07-9" bind:__l="__l" u-p="{{E}}"></uni-icons></view></view><view class="content data-v-2dad6c07"><uni-rate wx:if="{{I}}" class="data-v-2dad6c07" bindchange="{{G}}" u-i="2dad6c07-11,2dad6c07-9" bind:__l="__l" bindupdateModelValue="{{H}}" u-p="{{I}}"/><text class="text data-v-2dad6c07">{{J}}分</text></view><view class="footer data-v-2dad6c07"><button class="data-v-2dad6c07" bindtap="{{K}}" disabled="{{L}}" type="default" size="mini" plain>确认评分</button></view></view></uni-popup></view>

View File

@@ -0,0 +1,256 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.preview.data-v-2dad6c07 {
width: 100%;
height: 100vh;
position: relative;
}
.preview swiper.data-v-2dad6c07 {
width: 100%;
height: 100%;
}
.preview swiper image.data-v-2dad6c07 {
width: 100%;
height: 100%;
}
.preview .mask .goBack.data-v-2dad6c07 {
position: absolute;
left: 0;
right: 0;
margin: auto;
width: -webkit-fit-content;
width: fit-content;
color: #fff;
width: 38px;
height: 38px;
background: rgba(0, 0, 0, 0.5);
left: 30rpx;
top: 0;
margin-left: 0;
border-radius: 100px;
-webkit-backdrop-filter: blur(10rpx);
backdrop-filter: blur(10rpx);
border: 1px solid rbga(255, 255, 255, 0.3);
display: flex;
justify-content: center;
align-items: center;
}
.preview .mask .count.data-v-2dad6c07 {
position: absolute;
top: 10vh;
left: 0;
right: 0;
margin: auto;
width: -webkit-fit-content;
width: fit-content;
background: rgba(0, 0, 0, 0.3);
font-size: 28rpx;
color: #fff;
border-radius: 40rpx;
padding: 8rpx 28rpx;
-webkit-backdrop-filter: blur(20rpx);
backdrop-filter: blur(20rpx);
}
.preview .mask .time.data-v-2dad6c07 {
position: absolute;
left: 0;
right: 0;
margin: auto;
width: -webkit-fit-content;
width: fit-content;
color: #fff;
top: calc(10vh + 80rpx);
font-size: 140rpx;
font-weight: 100rpx;
line-height: 1em;
text-shadow: 0 4rpx rgba(0, 0, 0, 0.3);
}
.preview .mask .date.data-v-2dad6c07 {
position: absolute;
left: 0;
right: 0;
margin: auto;
width: -webkit-fit-content;
width: fit-content;
color: #fff;
top: calc(10vh + 230rpx);
font-size: 34rpx;
text-shadow: 0 2rpx rgba(0, 0, 0, 0.3);
}
.preview .mask .footer.data-v-2dad6c07 {
position: absolute;
left: 0;
right: 0;
margin: auto;
width: -webkit-fit-content;
width: fit-content;
color: #fff;
background: rgba(255, 255, 255, 0.8);
bottom: 10vh;
width: 65vw;
height: 120rpx;
border-radius: 120rpx;
color: #000;
display: flex;
justify-content: space-around;
align-items: center;
box-shadow: 0 2rpx rgba(0, 0, 0, 0.1);
-webkit-backdrop-filter: blur(20rpx);
backdrop-filter: blur(20rpx);
}
.preview .mask .footer .box.data-v-2dad6c07 {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 2rpx 12rpx;
}
.preview .mask .footer .box .text.data-v-2dad6c07 {
font-size: 26rpx;
color: #676767;
}
.preview .popHeader.data-v-2dad6c07 {
display: flex;
justify-content: space-between;
align-items: center;
}
.preview .popHeader .title.data-v-2dad6c07 {
color: #676767;
font-size: 26rpx;
}
.preview .popHeader .close.data-v-2dad6c07 {
padding: 6rpx;
}
.preview .infoPopup.data-v-2dad6c07 {
background: #fff;
padding: 30rpx;
border-radius: 30rpx 30rpx 0 0;
overflow: hidden;
}
.preview .infoPopup scroll-view.data-v-2dad6c07 {
max-height: 60vh;
}
.preview .infoPopup scroll-view .content .row.data-v-2dad6c07 {
display: flex;
padding: 16rpx 0;
font-size: 32rpx;
line-height: 1.7em;
}
.preview .infoPopup scroll-view .content .row .label.data-v-2dad6c07 {
color: #a7a7a7;
width: 140rpx;
text-align: right;
font-size: 30rpx;
}
.preview .infoPopup scroll-view .content .row .value.data-v-2dad6c07 {
flex: 1;
width: 0;
font-size: 30rpx;
}
.preview .infoPopup scroll-view .content .row .roteBox.data-v-2dad6c07 {
display: flex;
align-items: center;
}
.preview .infoPopup scroll-view .content .row .roteBox .score.data-v-2dad6c07 {
font-size: 26rpx;
color: #676767;
padding-left: 10rpx;
}
.preview .infoPopup scroll-view .content .row .tabs.data-v-2dad6c07 {
display: flex;
white-space: wrap;
}
.preview .infoPopup scroll-view .content .row .tabs .tab.data-v-2dad6c07 {
border: 1px solid #28B389;
color: #28B389;
font-size: 22rpx;
padding: 10rpx 30rpx;
border-radius: 40rpx;
line-height: 1em;
margin: 0 10rpx 10rpx 0;
}
.preview .infoPopup scroll-view .content .row .class.data-v-2dad6c07 {
color: #28B389;
}
.preview .infoPopup scroll-view .content .copyright.data-v-2dad6c07 {
font-size: 28rpx;
padding: 20rpx;
background: #F6F6F6;
color: #666;
border-radius: 10rpx;
margin: 20rpx 0;
line-height: 1.5em;
}
.preview .scorePopup.data-v-2dad6c07 {
background: #fff;
padding: 30rpx;
width: 70vw;
border-radius: 30rpx;
overflow: hidden;
}
.preview .scorePopup .content.data-v-2dad6c07 {
padding: 30rpx 0;
display: flex;
justify-content: center;
align-items: center;
}
.preview .scorePopup .content .text.data-v-2dad6c07 {
color: #FFCA3E;
padding-left: 10rpx;
width: 80rpx;
line-height: 1em;
text-align: right;
}
.preview .scorePopup .footer.data-v-2dad6c07 {
display: flex;
justify-content: center;
align-items: center;
}

View File

@@ -0,0 +1,149 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
const api_apis = require("../../api/apis.js");
if (!Array) {
const _easycom_uni_search_bar2 = common_vendor.resolveComponent("uni-search-bar");
const _easycom_uni_icons2 = common_vendor.resolveComponent("uni-icons");
const _easycom_uv_empty2 = common_vendor.resolveComponent("uv-empty");
const _easycom_uni_load_more2 = common_vendor.resolveComponent("uni-load-more");
(_easycom_uni_search_bar2 + _easycom_uni_icons2 + _easycom_uv_empty2 + _easycom_uni_load_more2)();
}
const _easycom_uni_search_bar = () => "../../uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar.js";
const _easycom_uni_icons = () => "../../uni_modules/uni-icons/components/uni-icons/uni-icons.js";
const _easycom_uv_empty = () => "../../uni_modules/uv-empty/components/uv-empty/uv-empty.js";
const _easycom_uni_load_more = () => "../../uni_modules/uni-load-more/components/uni-load-more/uni-load-more.js";
if (!Math) {
(_easycom_uni_search_bar + _easycom_uni_icons + _easycom_uv_empty + _easycom_uni_load_more)();
}
const _sfc_main = {
__name: "search",
setup(__props) {
const queryParams = common_vendor.ref({
pageNum: 1,
pageSize: 12,
keyword: ""
});
const historySearch = common_vendor.ref(common_vendor.index.getStorageSync("historySearch") || []);
const recommendList = common_vendor.ref(["美女", "帅哥", "宠物", "卡通"]);
const noData = common_vendor.ref(false);
const noSearch = common_vendor.ref(false);
const classList = common_vendor.ref([]);
const onClear = () => {
initParams();
};
const clickTab = (value) => {
initParams(value);
onSearch();
};
const removeHistory = () => {
common_vendor.index.showModal({
title: "是否清空历史搜索",
success: (res) => {
if (res.confirm) {
common_vendor.index.removeStorageSync("historySearch");
historySearch.value = [];
}
}
});
};
const onSearch = () => {
common_vendor.index.showLoading();
historySearch.value = [.../* @__PURE__ */ new Set([queryParams.value.keyword, ...historySearch.value])].slice(0, 10);
common_vendor.index.setStorageSync("historySearch", historySearch.value);
initParams(queryParams.value.keyword);
searchData();
};
const searchData = async () => {
try {
let res = await api_apis.apiSearchData(queryParams.value);
classList.value = [...classList.value, ...res.data];
common_vendor.index.setStorageSync("storgClassList", classList.value);
if (queryParams.value.pageSize > res.data.length)
noData.value = true;
if (res.data.length == 0 && classList.value.length == 0)
noSearch.value = true;
} finally {
common_vendor.index.hideLoading();
}
};
const initParams = (value = "") => {
classList.value = [];
noData.value = false;
noSearch.value = false;
queryParams.value = {
pageNum: 1,
pageSize: 12,
// 如果有传入值就把这个值赋给keyword没有值的话就默认变成""
keyword: value || ""
};
};
common_vendor.onReachBottom(() => {
if (noData.value)
return;
queryParams.value.pageNum++;
searchData();
});
common_vendor.onUnload(() => {
common_vendor.index.removeStorageSync("storgClassList", classList.value);
});
return (_ctx, _cache) => {
return common_vendor.e({
a: common_vendor.o(onSearch),
b: common_vendor.o(onClear),
c: common_vendor.o(onClear),
d: common_vendor.o(($event) => queryParams.value.keyword = $event),
e: common_vendor.p({
focus: true,
placeholder: "搜索",
modelValue: queryParams.value.keyword
}),
f: !classList.value.length || noSearch.value
}, !classList.value.length || noSearch.value ? common_vendor.e({
g: historySearch.value.length
}, historySearch.value.length ? {
h: common_vendor.p({
type: "trash",
size: "25"
}),
i: common_vendor.o(removeHistory),
j: common_vendor.f(historySearch.value, (tab, k0, i0) => {
return {
a: common_vendor.t(tab),
b: tab,
c: common_vendor.o(($event) => clickTab(tab), tab)
};
})
} : {}, {
k: common_vendor.f(recommendList.value, (tab, k0, i0) => {
return {
a: common_vendor.t(tab),
b: tab,
c: common_vendor.o(($event) => clickTab(tab), tab)
};
})
}) : {}, {
l: noSearch.value
}, noSearch.value ? {
m: common_vendor.p({
mode: "search"
})
} : common_vendor.e({
n: common_vendor.f(classList.value, (item, k0, i0) => {
return {
a: item.smallPicurl,
b: `/pages/preview/preview?id=${item._id}`,
c: item._id
};
}),
o: noData.value || classList.value.length
}, noData.value || classList.value.length ? {
p: common_vendor.p({
status: noData.value ? "noMore" : "loading"
})
} : {}));
};
}
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-c10c040c"]]);
wx.createPage(MiniProgramPage);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/search/search.js.map

View File

@@ -0,0 +1,9 @@
{
"navigationBarTitleText": "搜索",
"usingComponents": {
"uni-search-bar": "../../uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar",
"uni-icons": "../../uni_modules/uni-icons/components/uni-icons/uni-icons",
"uv-empty": "../../uni_modules/uv-empty/components/uv-empty/uv-empty",
"uni-load-more": "../../uni_modules/uni-load-more/components/uni-load-more/uni-load-more"
}
}

View File

@@ -0,0 +1 @@
<view class="searchLayout data-v-c10c040c"><view class="search data-v-c10c040c"><uni-search-bar wx:if="{{e}}" class="data-v-c10c040c" bindconfirm="{{a}}" bindcancel="{{b}}" bindclear="{{c}}" u-i="c10c040c-0" bind:__l="__l" bindupdateModelValue="{{d}}" u-p="{{e}}"></uni-search-bar></view><view wx:if="{{f}}" class="data-v-c10c040c"><view wx:if="{{g}}" class="history data-v-c10c040c"><view class="topTitle data-v-c10c040c"><view class="text data-v-c10c040c">最近搜索</view><view class="icon data-v-c10c040c" bindtap="{{i}}"><uni-icons wx:if="{{h}}" class="data-v-c10c040c" u-i="c10c040c-1" bind:__l="__l" u-p="{{h}}"></uni-icons></view></view><view class="tabs data-v-c10c040c"><view wx:for="{{j}}" wx:for-item="tab" wx:key="b" class="tab data-v-c10c040c" bindtap="{{tab.c}}">{{tab.a}}</view></view></view><view class="recommend data-v-c10c040c"><view class="topTitle data-v-c10c040c"><view class="text data-v-c10c040c">热门搜索</view></view><view class="tabs data-v-c10c040c"><view wx:for="{{k}}" wx:for-item="tab" wx:key="b" class="tab data-v-c10c040c" bindtap="{{tab.c}}">{{tab.a}}</view></view></view></view><view wx:if="{{l}}" class="noSearch data-v-c10c040c"><uv-empty wx:if="{{m}}" class="data-v-c10c040c" u-i="c10c040c-2" bind:__l="__l" u-p="{{m}}"></uv-empty></view><view wx:else class="data-v-c10c040c"><view class="list data-v-c10c040c"><navigator wx:for="{{n}}" wx:for-item="item" wx:key="c" url="{{item.b}}" class="item data-v-c10c040c"><image class="data-v-c10c040c" src="{{item.a}}" mode="aspectFill"></image></navigator></view><view wx:if="{{o}}" class="loadingLayout data-v-c10c040c"><uni-load-more wx:if="{{p}}" class="data-v-c10c040c" u-i="c10c040c-3" bind:__l="__l" u-p="{{p}}"/></view></view></view>

View File

@@ -0,0 +1,68 @@
/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量
* 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 行为相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.searchLayout .search.data-v-c10c040c {
padding: 0 10rpx;
}
.searchLayout .topTitle.data-v-c10c040c {
display: flex;
justify-content: space-between;
align-items: center;
}
.searchLayout .history.data-v-c10c040c {
padding: 30rpx;
}
.searchLayout .recommend.data-v-c10c040c {
padding: 30rpx;
}
.searchLayout .tabs.data-v-c10c040c {
display: flex;
align-items: center;
flex-wrap: wrap;
padding-top: 20rpx;
}
.searchLayout .tabs .tab.data-v-c10c040c {
background: #F4F4F4;
font-size: 28rpx;
color: #333;
padding: 10rpx 28rpx;
border-radius: 50rpx;
margin-right: 20rpx;
margin-top: 20rpx;
}
.searchLayout .list.data-v-c10c040c {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 5rpx;
padding: 20rpx 5rpx;
}
.searchLayout .list .item.data-v-c10c040c {
height: 440rpx;
}
.searchLayout .list .item image.data-v-c10c040c {
height: 100%;
width: 100%;
display: block;
}

Some files were not shown because too many files have changed in this diff Show More