From d5cd1f586232ef5e68c6430671f58fe0db8303d3 Mon Sep 17 00:00:00 2001 From: lenghui Date: Wed, 25 Dec 2024 15:00:23 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E9=87=8D=E7=BD=AE=E6=8A=95=E7=A5=A8?= =?UTF-8?q?=E8=AE=B0=E5=BD=95api=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/CanApi.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/CanApi.js b/src/api/CanApi.js index 77adcd5..3cb21da 100644 --- a/src/api/CanApi.js +++ b/src/api/CanApi.js @@ -16,11 +16,11 @@ const CanApi = { //查看详情 Detail(jwcode){ return service.get(`https://api.xxcg.com/investvote/getVotesByCandidate/`+`${jwcode}`) + }, + //重置投票记录 + Reset(){ + return service.get('https://api.xxcg.com/investvote/resetVote') } - //重置投票记录 - Reset(){ - return service.get('https://api.xxcg.com/investvote/resetVote') - } } export default CanApi; \ No newline at end of file From 3a2d0cd9ddee2c3fe20f17cb17e1e0844f61ada8 Mon Sep 17 00:00:00 2001 From: lenghui Date: Wed, 25 Dec 2024 17:48:44 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=9B=BE=E7=89=87=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/FrontView.vue | 55 ++++++++++++++++++++++++------------------------- 1 file changed, 27 insertions(+), 28 deletions(-) diff --git a/src/views/FrontView.vue b/src/views/FrontView.vue index 44994e9..de052ac 100644 --- a/src/views/FrontView.vue +++ b/src/views/FrontView.vue @@ -25,7 +25,7 @@ const first = ref(); first.value = { id: 1, name: "tom", - avatar: "../assets/头像框.png", + avatar: "https://cdn.legu168.com/jtzy/Product/pcjingwang/uploads/images/c2ead8be86eba03ebff62c7d0f3f875b.png", votes: 100, voted: false } @@ -33,7 +33,7 @@ const second = ref(); second.value = { id: 2, name: "tom", - avatar: "../assets/头像框.png", + avatar: "https://cdn.legu168.com/jtzy/Product/pcjingwang/uploads/images/c2ead8be86eba03ebff62c7d0f3f875b.png", votes: 100, voted: false } @@ -41,7 +41,7 @@ const third = ref(); third.value = { id: 3, name: "tom", - avatar: "../assets/头像框.png", + avatar: "https://cdn.legu168.com/jtzy/Product/pcjingwang/uploads/images/c2ead8be86eba03ebff62c7d0f3f875b.png", votes: 100, voted: false } @@ -50,7 +50,7 @@ const backCandidates = ref([ { id: 4, name: "tom", - avatar: "../assets/头像框.png", + avatar: "https://cdn.legu168.com/jtzy/Product/pcjingwang/uploads/images/c2ead8be86eba03ebff62c7d0f3f875b.png", votes: 100, voted: true @@ -58,14 +58,14 @@ const backCandidates = ref([ { id: 5, name: "tom", - avatar: "../assets/头像框.png", + avatar: "https://cdn.legu168.com/jtzy/Product/pcjingwang/uploads/images/c2ead8be86eba03ebff62c7d0f3f875b.png", votes: 100, voted: true }, { id: 6, name: "tom", - avatar: "../assets/头像框.png", + avatar: "https://cdn.legu168.com/jtzy/Product/pcjingwang/uploads/images/c2ead8be86eba03ebff62c7d0f3f875b.png", votes: 100, voted: true } @@ -73,28 +73,28 @@ const backCandidates = ref([ { id: 7, name: "tom", - avatar: "../assets/头像框.png", + avatar: "https://cdn.legu168.com/jtzy/Product/pcjingwang/uploads/images/c2ead8be86eba03ebff62c7d0f3f875b.png", votes: 100, voted: false }, { id: 8, name: "tom", - avatar: "../assets/头像框.png", + avatar: "https://cdn.legu168.com/jtzy/Product/pcjingwang/uploads/images/c2ead8be86eba03ebff62c7d0f3f875b.png", votes: 100, voted: true }, { id: 9, name: "tom", - avatar: "../assets/头像框.png", + avatar: "https://cdn.legu168.com/jtzy/Product/pcjingwang/uploads/images/c2ead8be86eba03ebff62c7d0f3f875b.png", votes: 100, voted: true }, { id: 10, name: "tom", - avatar: "../assets/头像框.png", + avatar: "https://cdn.legu168.com/jtzy/Product/pcjingwang/uploads/images/c2ead8be86eba03ebff62c7d0f3f875b.png", votes: 100, voted: false } @@ -149,11 +149,11 @@ function vote(code) { 2025年财富大分配
- +
- +
每人每天最多可以投三票
当天不可重复投一个市场
@@ -166,13 +166,13 @@ function vote(code) {
- +
- +
投票
已投票
@@ -185,7 +185,7 @@ function vote(code) {
- +
投票
已投票
@@ -199,7 +199,7 @@ function vote(code) { - +
投票
已投票
@@ -217,8 +217,7 @@ function vote(code) {
{{ index + 4 }}
- - +
已有{{ backCandidate.votes }}人投票
@@ -236,7 +235,7 @@ function vote(code) { /* 平板 */ @media (min-width: 750px) and (max-width:1280px) { .container { - background-image: url('../assets/bg.png'); + background-image: url(https://cdn.legu168.com/jtzy/Product/pcjingwang/uploads/images/7a87b7f485fdd3fefcde98db68a04024.png); background-repeat: no-repeat; width: 100%; height: 100%; @@ -252,7 +251,7 @@ function vote(code) { /* 电脑 */ @media (min-width:1280px) { .container { - background-image: url('../assets/bg.png'); + background-image: url(https://cdn.legu168.com/jtzy/Product/pcjingwang/uploads/images/7a87b7f485fdd3fefcde98db68a04024.png); background-repeat: no-repeat; width: 38%; height: 100%; @@ -267,7 +266,7 @@ function vote(code) { @media (max-width:750px) { .container { - background-image: url('../assets/bg.png'); + background-image: url(https://cdn.legu168.com/jtzy/Product/pcjingwang/uploads/images/7a87b7f485fdd3fefcde98db68a04024.png); background-repeat: no-repeat; width: 100%; height: 100%; @@ -291,7 +290,7 @@ function vote(code) { } .channle { - background-image: url(/src/assets/top.png); + background-image: url(https://cdn.legu168.com/jtzy/Product/pcjingwang/uploads/images/d6f7012e5781265719ceaba242d20d74.png); background-repeat: no-repeat; background-size: 100% 100%; width: 65%; @@ -356,7 +355,7 @@ function vote(code) { } .avatar-box2 { - background-image: url(../assets/头像框.png); + background-image: url(https://cdn.legu168.com/jtzy/Product/pcjingwang/uploads/images/c2ead8be86eba03ebff62c7d0f3f875b.png); position: absolute; background-size: contain; background-repeat: no-repeat; @@ -427,7 +426,7 @@ function vote(code) { } .num2 { - background-image: url(../assets/2.png); + background-image: url(https://cdn.legu168.com/jtzy/Product/pcjingwang/uploads/images/e20b1a8fdb716de8584dfab7d1d49f10.png); background-size: contain; background-repeat: no-repeat; width: 7%; @@ -440,7 +439,7 @@ function vote(code) { .avatar-box1 { - background-image: url(../assets/头像框.png); + background-image: url(https://cdn.legu168.com/jtzy/Product/pcjingwang/uploads/images/c2ead8be86eba03ebff62c7d0f3f875b.png); background-size: contain; background-repeat: no-repeat; position: absolute; @@ -512,7 +511,7 @@ function vote(code) { } .num1 { - background-image: url(../assets/1.png); + background-image: url(https://cdn.legu168.com/jtzy/Product/pcjingwang/uploads/images/dde85537fa379638b3e071a2aa33c434.png); background-size: contain; background-repeat: no-repeat; position: absolute; @@ -524,7 +523,7 @@ function vote(code) { } .avatar-box3 { - background-image: url(../assets/头像框.png); + background-image: url(https://cdn.legu168.com/jtzy/Product/pcjingwang/uploads/images/c2ead8be86eba03ebff62c7d0f3f875b.png); background-size: contain; background-repeat: no-repeat; position: absolute; @@ -597,7 +596,7 @@ function vote(code) { .num3 { - background-image: url(../assets/3.png); + background-image: url(https://cdn.legu168.com/jtzy/Product/pcjingwang/uploads/images/737192625328656cc5717014bd81c32e.png); background-size: contain; background-repeat: no-repeat; position: absolute;