master
parent
e115e86a8d
commit
c1f9f9c711
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "io.yutent.gaystat",
|
"name": "io.yutent.gaystat",
|
||||||
"version": "1.0.0",
|
"version": "1.1.0",
|
||||||
"description": "搞基数据",
|
"description": "搞基数据",
|
||||||
"main": "src/main.js",
|
"main": "src/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
html{font-size:12.8px;width:100%;height:100vh}body{display:flex;flex-direction:column;width:100%;height:100%;padding-top:.9375rem;line-height:1.25;font-size:1.09375rem;color:#f2f5fc;background:transparent}.app{position:relative;display:flex;flex-direction:column;height:100%;padding:1.25rem 0 .46875rem;border-radius:.46875rem;background:rgba(100,100,100,0.75)}.app::before{position:absolute;left:12.10938rem;top:-.54688rem;width:1.09375rem;height:1.09375rem;border-radius:.15625rem;background:linear-gradient(to bottom right, rgba(100,100,100,0.7) 50%, transparent 50%);-webkit-transform:rotate(45deg);transform:rotate(45deg);content:""}.app .option{position:absolute;right:.46875rem;top:.15625rem;--size: 1.09375rem;cursor:pointer;opacity:0}.app .option:hover{opacity:1}.app .list{flex:1}.app .list .item{display:flex;align-items:center;height:4.21875rem;padding:.78125rem .9375rem;line-height:1.17188rem;border-bottom:.07812rem solid rgba(200,200,200,0.1);border-top:.07812rem solid rgba(0,0,0,0.1)}.app .list .item:first-child{border-top:0}.app .list .item:last-child{border-bottom:0}.app .list .item .info{overflow:hidden;flex:1}.app .list .item .info h3{font-size:1.09375rem}.app .list .item .info cite{color:#dae1e9}.app .list .item .last-week{display:flex;justify-content:space-between;flex-flow:wrap-reverse;width:3.75rem;height:1.95312rem;margin:0 1.25rem}.app .list .item .last-week li{width:.23438rem;height:0;background:#fff}.app .list .item .today{width:4.0625rem;font-size:.9375rem;color:#fff;text-align:right}.app .list .item .today span{display:block;padding:0 .3125rem}.app .list .item .today .percent{border-radius:.15625rem}.app .list .item .today .percent.red{background:#ff5061}.app .list .item .today .percent.green{background:#4caf50}
|
html{font-size:12.8px;width:100%;height:100vh}body{display:flex;flex-direction:column;width:100%;height:100%;padding-top:.9375rem;line-height:1.25;font-size:1.09375rem;color:#f2f5fc;background:transparent}.app{position:relative;display:flex;flex-direction:column;height:100%;padding:1.25rem 0 .46875rem;border-radius:.46875rem;background:rgba(100,100,100,0.75)}.app::before{position:absolute;left:12.10938rem;top:-.54688rem;width:1.09375rem;height:1.09375rem;border-radius:.15625rem;background:linear-gradient(to bottom right, rgba(100,100,100,0.7) 50%, transparent 50%);-webkit-transform:rotate(45deg);transform:rotate(45deg);content:""}.app .option,.app .close{position:absolute;right:.46875rem;top:.15625rem;--size: 1.09375rem;cursor:pointer;opacity:0}.app .option:hover,.app .close:hover{opacity:1}.app .close{right:auto;left:.46875rem}.app .list{flex:1}.app .list .item{display:flex;align-items:center;height:4.21875rem;padding:.78125rem .9375rem;line-height:1.17188rem;border-bottom:.07812rem solid rgba(200,200,200,0.1);border-top:.07812rem solid rgba(0,0,0,0.1)}.app .list .item:first-child{border-top:0}.app .list .item:last-child{border-bottom:0}.app .list .item .info{overflow:hidden;flex:1}.app .list .item .info h3{font-size:1.09375rem}.app .list .item .info cite{color:#dae1e9}.app .list .item .last-week{display:flex;justify-content:space-between;flex-flow:wrap-reverse;width:3.75rem;height:1.95312rem;margin:0 1.25rem}.app .list .item .last-week li{width:.23438rem;height:0;background:#fff}.app .list .item .today{width:4.0625rem;font-size:.9375rem;color:#fff;text-align:right}.app .list .item .today span{display:block;padding:0 .3125rem}.app .list .item .today .percent{border-radius:.15625rem}.app .list .item .today .percent.red{background:#ff5061}.app .list .item .today .percent.green{background:#4caf50}
|
||||||
|
|
|
@ -40,7 +40,7 @@ body {
|
||||||
content:"";
|
content:"";
|
||||||
}
|
}
|
||||||
|
|
||||||
.option {
|
.option, .close {
|
||||||
position:absolute;
|
position:absolute;
|
||||||
right:px(6);top:px(2);
|
right:px(6);top:px(2);
|
||||||
--size: #{px(14)};
|
--size: #{px(14)};
|
||||||
|
@ -51,6 +51,7 @@ body {
|
||||||
opacity:1;
|
opacity:1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.close {right:auto;left:px(6)}
|
||||||
|
|
||||||
.list {
|
.list {
|
||||||
flex:1;
|
flex:1;
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
<body class="do-fn-noselect">
|
<body class="do-fn-noselect">
|
||||||
|
|
||||||
<div class="app" anot="app">
|
<div class="app" anot="app">
|
||||||
|
<wc-icon class="close" color="red" is="close" @click="close"></wc-icon>
|
||||||
<wc-icon class="option" is="option" @click="addGay"></wc-icon>
|
<wc-icon class="option" is="option" @click="addGay"></wc-icon>
|
||||||
|
|
||||||
<wc-scroll class="list">
|
<wc-scroll class="list">
|
||||||
|
|
|
@ -78,6 +78,9 @@ Anot({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
close() {
|
||||||
|
WIN.close()
|
||||||
|
},
|
||||||
getTodayStat(id) {
|
getTodayStat(id) {
|
||||||
var res = ipcRenderer.sendSync(
|
var res = ipcRenderer.sendSync(
|
||||||
'net',
|
'net',
|
||||||
|
@ -134,6 +137,7 @@ Anot({
|
||||||
item.percent = +info.gszzl
|
item.percent = +info.gszzl
|
||||||
|
|
||||||
Anot.ls('watch_list', this.list.$model)
|
Anot.ls('watch_list', this.list.$model)
|
||||||
|
layer.toast('更新成功', 'success')
|
||||||
},
|
},
|
||||||
|
|
||||||
removeGay(item) {
|
removeGay(item) {
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue