diff --git a/src/pages/details/index.vue b/src/pages/details/index.vue
index c40a76c..28c2ca2 100644
--- a/src/pages/details/index.vue
+++ b/src/pages/details/index.vue
@@ -13,7 +13,7 @@
diff --git a/src/pages/result/index.vue b/src/pages/result/index.vue
index ece8911..b15fa18 100644
--- a/src/pages/result/index.vue
+++ b/src/pages/result/index.vue
@@ -106,6 +106,10 @@ export default {
async mounted() {
await this.getResult()
await this.getHot()
+ let str = this.result.join('\n');
+ console.log('[result]');
+ console.log(this.result);
+ console.log(str);
const palette = {
background: '#eee',
width: '750rpx',
@@ -125,37 +129,50 @@ export default {
type: 'text',
text: this.users,
css: {
- top: '20rpx',
- left: '40rpx',
- width: '750rpx',
+ top: '100rpx',
+ left: '100rpx',
+ width: '650rpx',
color: '#000000',
textAlign: 'left',
- fontSize: '40rpx'
+ fontSize: '40rpx',
+ fontWeight: 'bold',
+ }
+ },
+ {
+ type: 'text',
+ text: '--------------------------------',
+ css: {
+ top: '150rpx',
+ left: '100rpx',
+ width: '650rpx',
+ color: '#000000',
+ textAlign: 'left',
+ fontSize: '40rpx',
}
},
{
type: 'text',
text: this.title,
css: {
- top: '100rpx',
- left: '0rpx',
- width: '750rpx',
+ top: '210rpx',
+ left: '100rpx',
+ width: '650rpx',
color: '#000000',
- textAlign: 'center',
+ textAlign: 'left',
fontSize: '52rpx',
fontWeight: 'bold',
- lineHeight: '64rpx'
+ lineHeight: '60rpx'
}
},
{
type: 'text',
text: this.result.join('\n'),
css: {
- top: '220rpx',
+ top: '310rpx',
left: '100rpx',
width: '550rpx',
color: '#000000',
- lineHeight: '72rpx',
+ lineHeight: '80rpx',
fontSize: '48rpx'
}
},
@@ -224,6 +241,11 @@ export default {
users: this.users
})
this.result = data.result
+ if(this.result instanceof Array){
+ if(this.result.length > 0 && this.result[0] == ''){
+ this.result.splice(0,1);
+ }
+ }
this.title = data.title
} catch (err) {
console.log(err)