diff --git a/src/api/votingElection.ts b/src/api/votingElection.ts index ee1d0e9..e8933b7 100644 --- a/src/api/votingElection.ts +++ b/src/api/votingElection.ts @@ -1,15 +1,25 @@ import { request } from '@/utils/http' // 获取投票选举(正在进行) -export function getCategoryData() { +export function getVoteprogress() { return request.http({ - url: '/api/vote_progress' + url: '/api/vote_progress', + method: 'GET' }) } -export function feedback(data: any) { +//用户投票 +export function voteMember(data: any) { return request.http({ - url: '/api/t.feedback/add', + url: '/api/vote_member', data }) } + +// 获取我的选举 +export function getMyvote() { + return request.http({ + url: '/api/my_vote', + method: 'GET' + }) +} diff --git a/src/manifest.json b/src/manifest.json index 2a9524c..5544089 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,38 +1,38 @@ { - "name": "问卷系统", - "appid": "__UNI__1AE1F37", - "description": "v3+ts+uniapp模版", - "versionName": "1.0.68", - "versionCode": 168, - "transformPx": false, + "name" : "问卷系统", + "appid" : "__UNI__4CC99EE", + "description" : "v3+ts+uniapp模版", + "versionName" : "1.0.68", + "versionCode" : 168, + "transformPx" : false, /* 5+App特有相关 */ - "app-plus": { - "usingComponents": true, - "nvueStyleCompiler": "uni-app", - "compilerVersion": 3, - "splashscreen": { - "alwaysShowBeforeRender": true, - "waiting": true, - "autoclose": true, - "delay": 0 + "app-plus" : { + "usingComponents" : true, + "nvueStyleCompiler" : "uni-app", + "compilerVersion" : 3, + "splashscreen" : { + "alwaysShowBeforeRender" : true, + "waiting" : true, + "autoclose" : true, + "delay" : 0 }, - "compatible": { - "ignoreVersion": true + "compatible" : { + "ignoreVersion" : true }, /* 模块配置 */ - "modules": { - "Barcode": {}, - "Camera": {}, - "VideoPlayer": {}, - "Share": {}, - "Geolocation": {}, - "Maps": {} + "modules" : { + "Barcode" : {}, + "Camera" : {}, + "VideoPlayer" : {}, + "Share" : {}, + "Geolocation" : {}, + "Maps" : {} }, /* 应用发布信息 */ - "distribute": { + "distribute" : { /* android打包配置 */ - "android": { - "permissions": [ + "android" : { + "permissions" : [ "", "", "", @@ -49,86 +49,83 @@ "", "" ], - "minSdkVersion": 21 + "minSdkVersion" : 21 }, /* ios打包配置 */ - "ios": { - "dSYMs": false + "ios" : { + "dSYMs" : false }, /* SDK配置 */ - "sdkConfigs": { - "ad": {}, - "share": { - "weixin": { - "appid": "wxd448c878a54da98d", - "UniversalLinks": "" + "sdkConfigs" : { + "ad" : {}, + "share" : { + "weixin" : { + "appid" : "wx5d1a07b75bd48225", + "UniversalLinks" : "" } }, - "geolocation": { - "amap": { - "name": "amap_18648278829CcsBXVUm1", - "__platform__": [ - "ios", - "android" - ], - "appkey_ios": "435934cdfcc901e4872a70391d92cccd", - "appkey_android": "435934cdfcc901e4872a70391d92cccd" + "geolocation" : { + "amap" : { + "name" : "amap_18648278829CcsBXVUm1", + "__platform__" : [ "ios", "android" ], + "appkey_ios" : "37180416cb95db05dc9639e616655a7a", + "appkey_android" : "37180416cb95db05dc9639e616655a7a" } }, - "maps": { - "amap": { - "name": "amap_18648278829CcsBXVUm1", - "appkey_ios": "435934cdfcc901e4872a70391d92cccd", - "appkey_android": "435934cdfcc901e4872a70391d92cccd" + "maps" : { + "amap" : { + "name" : "amap_18648278829CcsBXVUm1", + "appkey_ios" : "37180416cb95db05dc9639e616655a7a", + "appkey_android" : "37180416cb95db05dc9639e616655a7a" } } }, - "icons": { - "android": { - "hdpi": "src/static/logo.png", - "xhdpi": "src/static/logo.png", - "xxhdpi": "src/static/logo.png", - "xxxhdpi": "src/static/logo.png" + "icons" : { + "android" : { + "hdpi" : "src/static/logo.png", + "xhdpi" : "src/static/logo.png", + "xxhdpi" : "src/static/logo.png", + "xxxhdpi" : "src/static/logo.png" } }, - "splashscreen": { - "iosStyle": "common", - "androidStyle": "default", - "android": { - "hdpi": "", - "xhdpi": "", - "xxhdpi": "" + "splashscreen" : { + "iosStyle" : "common", + "androidStyle" : "default", + "android" : { + "hdpi" : "", + "xhdpi" : "", + "xxhdpi" : "" }, - "ios": { - "storyboard": "C:/Users/Lenovo/Desktop/CustomStoryboard.zip" + "ios" : { + "storyboard" : "C:/Users/Lenovo/Desktop/CustomStoryboard.zip" } } } }, /* 快应用特有相关 */ - "quickapp": {}, + "quickapp" : {}, /* 小程序特有相关 */ - "mp-weixin": { - "appid": "wx5d1a07b75bd48225", - "setting": { - "urlCheck": false, - "es6": true, - "postcss": false, - "minified": true + "mp-weixin" : { + "appid" : "wx5d1a07b75bd48225", + "setting" : { + "urlCheck" : false, + "es6" : true, + "postcss" : false, + "minified" : true }, - "usingComponents": true + "usingComponents" : true }, - "mp-alipay": { - "usingComponents": true + "mp-alipay" : { + "usingComponents" : true }, - "mp-baidu": { - "usingComponents": true + "mp-baidu" : { + "usingComponents" : true }, - "mp-toutiao": { - "usingComponents": true + "mp-toutiao" : { + "usingComponents" : true }, - "uniStatistics": { - "enable": false + "uniStatistics" : { + "enable" : false }, - "vueVersion": "3" -} \ No newline at end of file + "vueVersion" : "3" +} diff --git a/src/pages/myElection/index.vue b/src/pages/myElection/index.vue index 97b83ff..ca93da5 100644 --- a/src/pages/myElection/index.vue +++ b/src/pages/myElection/index.vue @@ -1,156 +1,66 @@