diff --git a/App.vue b/App.vue new file mode 100644 index 0000000..fb25cbb --- /dev/null +++ b/App.vue @@ -0,0 +1,104 @@ + + + diff --git a/main.js b/main.js new file mode 100644 index 0000000..00683b7 --- /dev/null +++ b/main.js @@ -0,0 +1,10 @@ +import Vue from 'vue' +import App from './App' + +Vue.config.productionTip = false +App.mpType = 'app' + +const app = new Vue({ + ...App +}) +app.$mount() diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..cdc4ad8 --- /dev/null +++ b/manifest.json @@ -0,0 +1,84 @@ +{ + "name" : "新版党建小程序", + "appid" : "__UNI__7E05929", + "description" : "", + "versionName" : "1.0.0", + "versionCode" : "100", + "transformPx" : false, + /* 5+App特有相关 */ + "app-plus" : { + "usingComponents" : true, + "nvueCompiler" : "uni-app", + "compilerVersion" : 3, + "splashscreen" : { + "alwaysShowBeforeRender" : true, + "waiting" : true, + "autoclose" : true, + "delay" : 0 + }, + /* 模块配置 */ + "modules" : {}, + /* 应用发布信息 */ + "distribute" : { + /* android打包配置 */ + "android" : { + "permissions" : [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ] + }, + /* ios打包配置 */ + "ios" : {}, + /* SDK配置 */ + "sdkConfigs" : {} + } + }, + /* 快应用特有相关 */ + "quickapp" : {}, + /* 小程序特有相关 */ + "mp-weixin" : { + "appid" : "wx5704787a99ea5887", + "setting" : { + "urlCheck" : false, + "es6" : true + }, + "usingComponents" : true, + "requiredBackgroundModes" : [ "audio" ] + }, + "mp-alipay" : { + "usingComponents" : true + }, + "mp-baidu" : { + "usingComponents" : true + }, + "mp-toutiao" : { + "usingComponents" : true + }, + "uniStatistics" : { + "enable" : false + }, + "h5" : { + "title" : "万岳在线刷题系统", + "domain" : "https://ninghua.sdweiyue.cn", + "router" : { + "mode" : "hash", + "base" : "/UNIAPP/" + }, + "devServer" : { + "https" : false + } + } +} diff --git a/pages.json b/pages.json new file mode 100644 index 0000000..02a8063 --- /dev/null +++ b/pages.json @@ -0,0 +1,634 @@ +{ + "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages + { + "path": "pages/index/index", + "style": { + "navigationStyle":"custom" + } + }, + { + "path" : "pages/login/index", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false, + "navigationStyle":"custom" + + } + + }, + { + "path" : "pages/webview/index", + "style" : + { + "navigationBarBackgroundColor":"#fff", + "navigationBarTextStyle":"black", + "app-plus":{ + "titleNView":false + } + } + + }, + { + "path" : "pages/question/question", + "style" : + { + "navigationStyle":"custom", + "enablePullDownRefresh": false + } + + }, + { + "path" : "pages/question/result", + "style" : + { + "navigationStyle":"custom", + "enablePullDownRefresh": false + } + + }, + { + "path" : "pages/questionnaire_detail/index", + "style" : + { + "navigationBarTitleText": "问卷调查", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor":"#fff", + "navigationBarTextStyle":"black", + "app-plus":{ + "titleNView":false + } + } + + }, + { + "path" : "pages/questionnaire/index", + "style" : + { + "navigationBarTitleText": "问卷调查", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor":"#fff", + "navigationBarTextStyle":"black", + "app-plus":{ + "titleNView":false + } + } + + }, + { + "path" : "pages/notice/index", + "style" : + { + "navigationBarTitleText": "工作提示", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor":"#fff", + "navigationBarTextStyle":"black", + "app-plus":{ + "titleNView":false + } + } + + }, + { + "path" : "pages/message/index", + "style" : + { + "navigationBarTitleText": "消息通知", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor":"#fff", + "navigationBarTextStyle":"black", + "app-plus":{ + "titleNView":false + } + } + + }, + { + "path" : "pages/my_history/index", + "style" : + { + "navigationBarTitleText": "浏览历史", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor":"#fff", + "navigationBarTextStyle":"black", + "app-plus":{ + "titleNView":false + } + } + + }, + { + "path" : "pages/my_collection/index", + "style" : + { + "navigationBarTitleText": "我的收藏", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor":"#fff", + "navigationBarTextStyle":"black", + "app-plus":{ + "titleNView":false + } + } + + }, + { + "path" : "pages/my_think/index", + "style" : + { + "navigationBarTitleText": "我发表的", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor":"#fff", + "navigationBarTextStyle":"black", + "app-plus":{ + "titleNView":false + } + } + + }, + { + "path" : "pages/my_update/index", + "style" : + { + "navigationBarTitleText": "编辑资料", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor":"#fff", + "navigationBarTextStyle":"black", + "app-plus":{ + "titleNView":false + } + } + + }, + { + "path" : "pages/my/index", + "style" : + { + "navigationBarTitleText": "我的", + "enablePullDownRefresh": false, + // "navigationStyle":"custom", + "navigationBarBackgroundColor":"#fff", + "navigationBarTextStyle":"black", + "app-plus":{ + "titleNView":false + } + } + + }, + { + "path" : "pages/study_1/index", + "style" : + { + "navigationBarTitleText": "党建参阅", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor":"#fff", + "navigationBarTextStyle":"black", + "app-plus":{ + "titleNView":false + } + } + + } + ,{ + "path" : "pages/study_2/index", + "style" : + { + "navigationBarTitleText": "有声读物", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor":"#fff", + "navigationBarTextStyle":"black", + "app-plus":{ + "titleNView":false + } + } + + }, + { + "path" : "pages/study/index", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false, + "navigationStyle":"custom" + } + + }, + { + "path" : "pages/meetings/index", + "style" : + { + "navigationBarTitleText": "三会一课", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor":"#fff", + "navigationBarTextStyle":"black", + "app-plus":{ + "titleNView":false + } + } + + }, + { + "path" : "pages/active/index", + "style" : + { + "navigationBarTitleText": "线上活动", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor":"#fff", + "navigationBarTextStyle":"black", + "app-plus":{ + "titleNView":false + } + } + + }, + { + "path" : "pages/manual/index", + "style" : + { + "navigationBarTitleText": "党员手册", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor":"#fff", + "navigationBarTextStyle":"black", + "app-plus":{ + "titleNView":false + } + } + + }, + { + "path" : "pages/demeanor_detail/index", + "style" : + { + "navigationBarTitleText": "先模风采", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor":"#fff", + "navigationBarTextStyle":"black", + "app-plus":{ + "titleNView":false + } + } + + }, + { + "path" : "pages/demeanor/index", + "style" : + { + "navigationBarTitleText": "先模风采", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor":"#fff", + "navigationBarTextStyle":"black", + "app-plus":{ + "titleNView":false + } + } + + }, + { + "path" : "pages/article/index", + "style" : + { + "navigationBarTitleText": "基层动态", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor":"#fff", + "navigationBarTextStyle":"black", + "app-plus":{ + "titleNView":false + } + } + + }, + { + "path" : "pages/forget/index", + "style" : + { + "navigationBarTitleText": "忘记密码", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor":"#fff", + "navigationBarTextStyle":"black", + "app-plus":{ + "titleNView":false + } + } + + }, + { + "path" : "pages/reg/index", + "style" : + { + "navigationBarTitleText": "注册账号", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor":"#fff", + "navigationBarTextStyle":"black", + "app-plus":{ + "titleNView":false + } + } + + } + ,{ + "path" : "components/article-list/article-list", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false, + "app-plus":{ + "titleNView":false + } + } + + } + ,{ + "path" : "components/study-list/study-list", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false, + "app-plus":{ + "titleNView":false + } + } + + } + ,{ + "path" : "components/think-list/think-list", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false, + "app-plus":{ + "titleNView":false + } + } + + } + ,{ + "path" : "pages/webvideo/index", + "style" : + { + "navigationBarTitleText": "党课", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor":"#fff", + "navigationBarTextStyle":"black", + "app-plus":{ + "titleNView":false + } + } + + }, + { + "path": "pages/scanning/index", + "style": { + "navigationBarTitleText": "要闻速览", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor":"#fff", + "navigationBarTextStyle":"black", + "app-plus":{ + "titleNView":false + } + } + } + ,{ + "path" : "components/see-list/see-list", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false, + "app-plus":{ + "titleNView":false + } + } + + } + ,{ + "path" : "pages/reading_list/index", + "style" : + { + "navigationBarTitleText": "有声读物", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor":"#fff", + "navigationBarTextStyle":"black", + "app-plus":{ + "titleNView":false + } + } + + } + ,{ + "path" : "pages/party_pay/index", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor":"#fff", + "navigationBarTextStyle":"black", + "app-plus":{ + "titleNView":false + } + } + + }, + { + "path" : "pages/party_pay_1/index", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor":"#fff", + "navigationBarTextStyle":"black", + "app-plus":{ + "titleNView":false + } + } + + }, + { + "path" : "pages/party_pay_2/index", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor":"#fff", + "navigationBarTextStyle":"black", + "app-plus":{ + "titleNView":false + } + } + + }, + { + "path" : "pages/party_pay_3/index", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor":"#fff", + "navigationBarTextStyle":"black", + "app-plus":{ + "titleNView":false + } + } + + }, + { + "path" : "pages/product/index", + "style" : + { + "navigationBarTitleText": "产品介绍", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor":"#fff", + "navigationBarTextStyle":"black", + "app-plus":{ + "titleNView":false + } + } + + } + ,{ + "path" : "pages/shop/shop", + "style" : { + "navigationBarTitleText": "积分兑换", + "enablePullDownRefresh": false, + // "navigationStyle":"custom", + "navigationBarBackgroundColor":"#fff", + "navigationBarTextStyle":"black", + "app-plus":{ + "titleNView":false + } + } + } + ,{ + "path" : "pages/duihuan_history/duihuan_history", + "style" : { + "navigationBarTitleText":"兑换记录", + "app-plus":{ + "titleNView":false + } + } + } + ,{ + "path" : "pages/score_history/score_history", + "style" : { + "navigationBarTitleText":"积分记录", + "app-plus":{ + "titleNView":false + } + } + } + ,{ + "path" : "pages/goods_info/goods_info", + "style" : { + "app-plus":{ + "titleNView":false + } + } + } + ,{ + "path" : "pages/duihuan_success/duihuan_success", + "style" : { + "app-plus":{ + "titleNView":false + } + } + }, + //banner图 + { + "path": "pages/about/banner", + "style": { + "navigationStyle": "custom" + } + } + ,{ + "path" : "pages/danghistory/index", + "style" : + { + "navigationBarTitleText": "党史知识", + "app-plus":{ + "titleNView":false + } + } + + }, + { + "path" : "pages/danghistory/more", + "style" : + { + "navigationBarTitleText": "党史知识", + "app-plus":{ + "titleNView":false + } + } + + }, + { + "path" : "pages/ranking/ranking", + "style" : + { + "navigationBarTitleText": "积分排行", + "app-plus":{ + "titleNView":false + } + } + + }, + { + "path" : "pages/answer_history/answer_history", + "style" : + { + "navigationBarTitleText": "答题记录", + "enablePullDownRefresh": false, + "app-plus":{ + "titleNView":false + } + } + + } + + ], + "globalStyle": { + "navigationBarTextStyle": "black", + "navigationBarTitleText": "", + "navigationBarBackgroundColor": "#F8F8F8", + "backgroundColor": "#F8F8F8" + } + // 首页按钮 + // "tabBar": { + // "color": "#fff", + // "selectedColor": "#FED030", + // "borderStyle": "black", + // "backgroundColor": "#FC342A", + + // "list": [{ + // "pagePath":"pages/index/index", + // "text":"首页", + // "iconPath":"static/images/tabbar-1.png", + // "selectedIconPath":"static/images/tabbar-2.png" + // }, + // { + // "pagePath":"pages/study/index", + // "text":"学习手册", + // "iconPath":"static/images/tabbar-3.png", + // "selectedIconPath":"static/images/tabbar-4.png" + // }, + // { + // "pagePath":"pages/shop/shop", + // "text":"积分商城", + // "iconPath":"static/images/tabbar/shop_icon.png", + // "selectedIconPath":"static/images/tabbar-6.png" + // }, + // { + // "pagePath":"pages/my/index", + // "text":"我的", + // "iconPath":"static/images/tabbar-7.png", + // "selectedIconPath":"static/images/tabbar-8.png" + // }] + // }, + // "condition" : { //模式配置,仅开发期间生效 + // "current": 0, //当前激活的模式(list 的索引项) + // "list": [ + // { + // "name": "", //模式名称 + // "path": "", //启动页面,必选 + // "query": "" //启动参数,在页面的onLoad函数里面得到 + // } + // ] + // } +} diff --git a/project.config.json b/project.config.json new file mode 100644 index 0000000..afadaaf --- /dev/null +++ b/project.config.json @@ -0,0 +1,72 @@ +{ + "description": "项目配置文件", + "packOptions": { + "ignore": [] + }, + "setting": { + "urlCheck": true, + "es6": true, + "enhance": false, + "postcss": true, + "preloadBackgroundData": false, + "minified": true, + "newFeature": false, + "coverView": true, + "nodeModules": false, + "autoAudits": false, + "showShadowRootInWxmlPanel": true, + "scopeDataCheck": false, + "uglifyFileName": false, + "checkInvalidKey": true, + "checkSiteMap": true, + "uploadWithSourceMap": true, + "compileHotReLoad": false, + "useMultiFrameRuntime": false, + "useApiHook": true, + "babelSetting": { + "ignore": [], + "disablePlugins": [], + "outputPath": "" + }, + "enableEngineNative": false, + "bundle": false, + "useIsolateContext": true, + "useCompilerModule": true, + "userConfirmedUseCompilerModuleSwitch": false, + "userConfirmedBundleSwitch": false, + "packNpmManually": false, + "packNpmRelationList": [], + "minifyWXSS": true + }, + "compileType": "miniprogram", + "libVersion": "2.16.0", + "appid": "wx5704787a99ea5887", + "projectname": "miniprogram-1", + "debugOptions": { + "hidedInDevtools": [] + }, + "scripts": {}, + "isGameTourist": false, + "simulatorType": "wechat", + "simulatorPluginLibVersion": {}, + "condition": { + "search": { + "list": [] + }, + "conversation": { + "list": [] + }, + "game": { + "list": [] + }, + "plugin": { + "list": [] + }, + "gamePlugin": { + "list": [] + }, + "miniprogram": { + "list": [] + } + } +} \ No newline at end of file diff --git a/uni.scss b/uni.scss new file mode 100644 index 0000000..09ffb46 --- /dev/null +++ b/uni.scss @@ -0,0 +1,76 @@ +/** + * 这里是uni-app内置的常用样式变量 + * + * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量 + * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App + * + */ + +/** + * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能 + * + * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件 + */ + +/* 颜色变量 */ + +/* 行为相关颜色 */ +$uni-color-primary: #007aff; +$uni-color-success: #4cd964; +$uni-color-warning: #f0ad4e; +$uni-color-error: #dd524d; + +/* 文字基本颜色 */ +$uni-text-color:#333;//基本色 +$uni-text-color-inverse:#fff;//反色 +$uni-text-color-grey:#999;//辅助灰色,如加载更多的提示信息 +$uni-text-color-placeholder: #808080; +$uni-text-color-disable:#c0c0c0; + +/* 背景颜色 */ +$uni-bg-color:#ffffff; +$uni-bg-color-grey:#f8f8f8; +$uni-bg-color-hover:#f1f1f1;//点击状态颜色 +$uni-bg-color-mask:rgba(0, 0, 0, 0.4);//遮罩颜色 + +/* 边框颜色 */ +$uni-border-color:#c8c7cc; + +/* 尺寸变量 */ + +/* 文字尺寸 */ +$uni-font-size-sm:24rpx; +$uni-font-size-base:28rpx; +$uni-font-size-lg:32rpx; + +/* 图片尺寸 */ +$uni-img-size-sm:40rpx; +$uni-img-size-base:52rpx; +$uni-img-size-lg:80rpx; + +/* Border Radius */ +$uni-border-radius-sm: 4rpx; +$uni-border-radius-base: 6rpx; +$uni-border-radius-lg: 12rpx; +$uni-border-radius-circle: 50%; + +/* 水平间距 */ +$uni-spacing-row-sm: 10px; +$uni-spacing-row-base: 20rpx; +$uni-spacing-row-lg: 30rpx; + +/* 垂直间距 */ +$uni-spacing-col-sm: 8rpx; +$uni-spacing-col-base: 16rpx; +$uni-spacing-col-lg: 24rpx; + +/* 透明度 */ +$uni-opacity-disabled: 0.3; // 组件禁用态的透明度 + +/* 文章场景相关 */ +$uni-color-title: #2C405A; // 文章标题颜色 +$uni-font-size-title:40rpx; +$uni-color-subtitle: #555555; // 二级标题颜色 +$uni-font-size-subtitle:36rpx; +$uni-color-paragraph: #3F536E; // 文章段落颜色 +$uni-font-size-paragraph:30rpx; \ No newline at end of file