diff --git a/manifest.json b/manifest.json index 597546b..6875d36 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name" : "xjMini", - "appid" : "", + "appid" : "__UNI__F006AEE", "description" : "", "versionName" : "1.0.0", "versionCode" : "100", @@ -50,7 +50,7 @@ "quickapp" : {}, /* 小程序特有相关 */ "mp-weixin" : { - "appid" : "wxfda1a131d4010be6", + "appid" : "wxab7dd0a14272badf", "setting" : { "urlCheck" : false, "es6" : false, diff --git a/manifest.json b/manifest.json index 597546b..6875d36 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name" : "xjMini", - "appid" : "", + "appid" : "__UNI__F006AEE", "description" : "", "versionName" : "1.0.0", "versionCode" : "100", @@ -50,7 +50,7 @@ "quickapp" : {}, /* 小程序特有相关 */ "mp-weixin" : { - "appid" : "wxfda1a131d4010be6", + "appid" : "wxab7dd0a14272badf", "setting" : { "urlCheck" : false, "es6" : false, diff --git a/packageIndex/center/center.vue b/packageIndex/center/center.vue index 624713e..e806e23 100644 --- a/packageIndex/center/center.vue +++ b/packageIndex/center/center.vue @@ -301,15 +301,16 @@ color: #356ac0; .text-area { flex: 1; - margin-left: 40rpx; + // margin-left: 40rpx; text-align: center; font-weight: 600; - font-size: 38rpx; - &:last-child { - margin-left: 32rpx; - } + font-size: 36rpx; + // &:last-child { + // margin-left: 32rpx; + // } .content-title { - margin-right: 20rpx; + // margin-right: 20rpx; + text-align: center; } } diff --git a/manifest.json b/manifest.json index 597546b..6875d36 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name" : "xjMini", - "appid" : "", + "appid" : "__UNI__F006AEE", "description" : "", "versionName" : "1.0.0", "versionCode" : "100", @@ -50,7 +50,7 @@ "quickapp" : {}, /* 小程序特有相关 */ "mp-weixin" : { - "appid" : "wxfda1a131d4010be6", + "appid" : "wxab7dd0a14272badf", "setting" : { "urlCheck" : false, "es6" : false, diff --git a/packageIndex/center/center.vue b/packageIndex/center/center.vue index 624713e..e806e23 100644 --- a/packageIndex/center/center.vue +++ b/packageIndex/center/center.vue @@ -301,15 +301,16 @@ color: #356ac0; .text-area { flex: 1; - margin-left: 40rpx; + // margin-left: 40rpx; text-align: center; font-weight: 600; - font-size: 38rpx; - &:last-child { - margin-left: 32rpx; - } + font-size: 36rpx; + // &:last-child { + // margin-left: 32rpx; + // } .content-title { - margin-right: 20rpx; + // margin-right: 20rpx; + text-align: center; } } diff --git a/pages/rumor/rumor.vue b/pages/rumor/rumor.vue index 190658d..f9de3cf 100644 --- a/pages/rumor/rumor.vue +++ b/pages/rumor/rumor.vue @@ -10,7 +10,13 @@
-
+ + + + + + + @@ -27,15 +33,39 @@ stackList:[ { id:'1', - rumor:'今天会下雨吗?', - approveRate:'80%', - againstRate:'20%' + rumor:'“0蔗糖”就是无糖?', + approveRate:'50%', + againstRate:'50%' }, { id:'2', - rumor:'兔子吃胡萝卜吗?', - approveRate:'80%', - againstRate:'20%' + rumor:'水果越酸,维生素C含量越高?', + approveRate:'60%', + againstRate:'40%' + }, + { + id:'3', + rumor:'不渴不用喝水?', + approveRate:'81%', + againstRate:'19%' + }, + { + id:'4', + rumor:'指甲上的月牙是健康晴雨表?', + approveRate:'66%', + againstRate:'34%' + }, + { + id:'5', + rumor:'泡面是垃圾食品有害健康?', + approveRate:'40%', + againstRate:'60%' + }, + { + id:'6', + rumor:'草莓个头大是因为打了激素?', + approveRate:'88%', + againstRate:'12%' }, ], @@ -66,6 +96,16 @@ } }, methods: { + rumor(type) { + if (type === 'true'){ + this.$refs["stack"].vote('1') + this.handleStackNext() + } + else { + this.$refs["stack"].vote('0') + this.handleStackNext() + } + }, handleStackPrev() { this.$refs["stack"].prev() }, @@ -144,6 +184,46 @@ animation: btn4Ani 2s linear infinite; } } + .button-area1 { + padding: 0 20rpx; + position: absolute; + bottom:60rpx; + height: 120rpx; + width: 100%; + display: flex; + justify-content: space-between; + box-sizing: border-box; + .button { + display: flex; + justify-content: center; + align-items: center; + color: #fff; + font-weight: 600; + box-sizing: border-box; + width: 180rpx; + height: 80rpx; + background: #fff; + color: #0043ac; + border: 2rpx solid #0043ac; + border-radius: 20rpx; + // animation: btn4Ani 2s linear infinite; + margin: 0; + white-space: nowrap; + } + + .button2 { + background: #fff; + color: #0043ac; + border: 2rpx solid #0043ac; + // animation: 6s btn4Ani 2s linear infinite; + } + .button1 { + background: #0043ac; + color: #fff; + border: 2rpx solid #0043ac; + animation: btn4Ani 2s linear infinite; + } + } @keyframes btn4Ani { 0% { width: 200rpx; diff --git a/manifest.json b/manifest.json index 597546b..6875d36 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name" : "xjMini", - "appid" : "", + "appid" : "__UNI__F006AEE", "description" : "", "versionName" : "1.0.0", "versionCode" : "100", @@ -50,7 +50,7 @@ "quickapp" : {}, /* 小程序特有相关 */ "mp-weixin" : { - "appid" : "wxfda1a131d4010be6", + "appid" : "wxab7dd0a14272badf", "setting" : { "urlCheck" : false, "es6" : false, diff --git a/packageIndex/center/center.vue b/packageIndex/center/center.vue index 624713e..e806e23 100644 --- a/packageIndex/center/center.vue +++ b/packageIndex/center/center.vue @@ -301,15 +301,16 @@ color: #356ac0; .text-area { flex: 1; - margin-left: 40rpx; + // margin-left: 40rpx; text-align: center; font-weight: 600; - font-size: 38rpx; - &:last-child { - margin-left: 32rpx; - } + font-size: 36rpx; + // &:last-child { + // margin-left: 32rpx; + // } .content-title { - margin-right: 20rpx; + // margin-right: 20rpx; + text-align: center; } } diff --git a/pages/rumor/rumor.vue b/pages/rumor/rumor.vue index 190658d..f9de3cf 100644 --- a/pages/rumor/rumor.vue +++ b/pages/rumor/rumor.vue @@ -10,7 +10,13 @@
-
+ + + + + + + @@ -27,15 +33,39 @@ stackList:[ { id:'1', - rumor:'今天会下雨吗?', - approveRate:'80%', - againstRate:'20%' + rumor:'“0蔗糖”就是无糖?', + approveRate:'50%', + againstRate:'50%' }, { id:'2', - rumor:'兔子吃胡萝卜吗?', - approveRate:'80%', - againstRate:'20%' + rumor:'水果越酸,维生素C含量越高?', + approveRate:'60%', + againstRate:'40%' + }, + { + id:'3', + rumor:'不渴不用喝水?', + approveRate:'81%', + againstRate:'19%' + }, + { + id:'4', + rumor:'指甲上的月牙是健康晴雨表?', + approveRate:'66%', + againstRate:'34%' + }, + { + id:'5', + rumor:'泡面是垃圾食品有害健康?', + approveRate:'40%', + againstRate:'60%' + }, + { + id:'6', + rumor:'草莓个头大是因为打了激素?', + approveRate:'88%', + againstRate:'12%' }, ], @@ -66,6 +96,16 @@ } }, methods: { + rumor(type) { + if (type === 'true'){ + this.$refs["stack"].vote('1') + this.handleStackNext() + } + else { + this.$refs["stack"].vote('0') + this.handleStackNext() + } + }, handleStackPrev() { this.$refs["stack"].prev() }, @@ -144,6 +184,46 @@ animation: btn4Ani 2s linear infinite; } } + .button-area1 { + padding: 0 20rpx; + position: absolute; + bottom:60rpx; + height: 120rpx; + width: 100%; + display: flex; + justify-content: space-between; + box-sizing: border-box; + .button { + display: flex; + justify-content: center; + align-items: center; + color: #fff; + font-weight: 600; + box-sizing: border-box; + width: 180rpx; + height: 80rpx; + background: #fff; + color: #0043ac; + border: 2rpx solid #0043ac; + border-radius: 20rpx; + // animation: btn4Ani 2s linear infinite; + margin: 0; + white-space: nowrap; + } + + .button2 { + background: #fff; + color: #0043ac; + border: 2rpx solid #0043ac; + // animation: 6s btn4Ani 2s linear infinite; + } + .button1 { + background: #0043ac; + color: #fff; + border: 2rpx solid #0043ac; + animation: btn4Ani 2s linear infinite; + } + } @keyframes btn4Ani { 0% { width: 200rpx; diff --git a/project.private.config.json b/project.private.config.json index ba587aa..0addf56 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -1,6 +1,6 @@ { "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", - "projectname": "xinJiangMiniProgranm", + "projectname": "xjMini", "setting": { "compileHotReLoad": true }