Browse Source

10.8

master
lichong 6 months ago
parent
commit
b3d80ce5b9
  1. 236
      front/src/renderer/src/views/peifubeilv.vue
  2. 99
      front/src/renderer/src/views/shujufenxi.vue
  3. 2
      jihuoqi/src/renderer/src/App.vue

236
front/src/renderer/src/views/peifubeilv.vue

@ -1,21 +1,112 @@
<template>
<div class="rightClass">
<el-form :model="peifuForm" inline label-width="auto" @submit.prevent>
<el-form-item :label="item.label" v-for="(item, index) in peifuHeaderList" :key="index">
<el-input-number v-model="peifuForm[item.prop]" :min="item.min" :max="item.max">
<template #decrease-icon>
<el-icon>
<ArrowDown />
</el-icon>
</template>
<template #increase-icon>
<el-icon>
<ArrowUp />
</el-icon>
</template>
</el-input-number>
</el-form-item>
</el-form>
<el-row :gutter="8">
<el-col :span="6">
<div class="colDivClass">
<el-radio-group v-model="form.caipiaotype">
<el-radio value="1" size="large">福彩</el-radio>
<el-radio value="2" size="large">体彩</el-radio>
</el-radio-group>
</div>
</el-col>
<el-col :span="6">
<div class="colDivClass">
<el-input v-model="form.danxuan" style="max-width: 600px" :formatter="(value) => `单选:${value}`"
:parser="(value) => value.replace(/[单|选|:]\s?|(,*)/g, '')">
</el-input>
</div>
</el-col>
<el-col :span="6">
<div class="colDivClass">
<el-input v-model="form.zuxuan" style="max-width: 600px" :formatter="(value) => `组选:${value}`"
:parser="(value) => value.replace(/[组|选|:]\s?|(,*)/g, '')">
</el-input>
</div>
</el-col>
<el-col :span="6">
<div class="colDivClass">
<el-input v-model="form.shaungfei" style="max-width: 600px" :formatter="(value) => `双飞:${value}`"
:parser="(value) => value.replace(/[双|飞|:]\s?|(,*)/g, '')">
</el-input>
</div>
</el-col>
<el-col :span="6">
<div class="colDivClass">
<el-input v-model="form.dudan" style="max-width: 600px" :formatter="(value) => `毒胆:${value}`"
:parser="(value) => value.replace(/[毒|胆|:]\s?|(,*)/g, '')">
</el-input>
</div>
</el-col>
<el-col :span="6">
<div class="colDivClass">
<el-input v-model="form.budingwei" style="max-width: 600px" :formatter="(value) => `不定位:${value}`"
:parser="(value) => value.replace(/[不|定|位|:]\s?|(,*)/g, '')">
</el-input>
</div>
</el-col>
<el-col :span="6">
<div class="colDivClass">
<el-input v-model="form.fushi" style="max-width: 600px" :formatter="(value) => `复式:${value}`"
:parser="(value) => value.replace(/[复|式|:]\s?|(,*)/g, '')">
</el-input>
</div>
</el-col>
<el-col :span="6">
<div class="colDivClass">
<el-input v-model="form.quanbaoduizi" style="max-width: 600px" :formatter="(value) => `全包对子:${value}`"
:parser="(value) => value.replace(/[全|包|对|子:]\s?|(,*)/g, '')">
</el-input>
</div>
</el-col>
<el-col :span="8">
<div class="colDivClass">
<div>组六</div>
<el-input v-model="form.zuliu4" style="max-width: 600px;margin: 8px 0;" :formatter="(value) => `四码:${value}`"
:parser="(value) => value.replace(/[四|码|:]\s?|(,*)/g, '')">
</el-input>
<el-input v-model="form.zuliu5" style="max-width: 600px;margin: 8px 0;" :formatter="(value) => `五码:${value}`"
:parser="(value) => value.replace(/[五|码|:]\s?|(,*)/g, '')">
</el-input>
<el-input v-model="form.zuliu6" style="max-width: 600px;margin: 8px 0;" :formatter="(value) => `六码:${value}`"
:parser="(value) => value.replace(/[六|码|:]\s?|(,*)/g, '')">
</el-input>
<el-input v-model="form.zuliu7" style="max-width: 600px;margin: 8px 0;" :formatter="(value) => `七码:${value}`"
:parser="(value) => value.replace(/[七|码|:]\s?|(,*)/g, '')">
</el-input>
</div>
</el-col>
<el-col :span="8">
<div class="colDivClass">
<div>组三</div>
<el-input v-model="form.zusan4" style="max-width: 600px;margin: 8px 0;" :formatter="(value) => `四码:${value}`"
:parser="(value) => value.replace(/[四|码|:]\s?|(,*)/g, '')">
</el-input>
<el-input v-model="form.zusan5" style="max-width: 600px;margin: 8px 0;" :formatter="(value) => `五码:${value}`"
:parser="(value) => value.replace(/[五|码|:]\s?|(,*)/g, '')">
</el-input>
<el-input v-model="form.zusan6" style="max-width: 600px;margin: 8px 0;" :formatter="(value) => `六码:${value}`"
:parser="(value) => value.replace(/[六|码|:]\s?|(,*)/g, '')">
</el-input>
<el-input v-model="form.zusan7" style="max-width: 600px;margin: 8px 0;" :formatter="(value) => `七码:${value}`"
:parser="(value) => value.replace(/[七|码|:]\s?|(,*)/g, '')">
</el-input>
</div>
</el-col>
<el-col :span="8">
<div class="colDivClass">
<div>定位</div>
<el-input v-model="form.bai" style="max-width: 600px;margin: 8px 0;" :formatter="(value) => `百:${value}`"
:parser="(value) => value.replace(/[百|:]\s?|(,*)/g, '')">
</el-input>
<el-input v-model="form.shi" style="max-width: 600px;margin: 8px 0;" :formatter="(value) => `十:${value}`"
:parser="(value) => value.replace(/[十|:]\s?|(,*)/g, '')">
</el-input>
<el-input v-model="form.ge" style="max-width: 600px;margin: 8px 0;" :formatter="(value) => `个:${value}`"
:parser="(value) => value.replace(/[个|:]\s?|(,*)/g, '')">
</el-input>
</div>
</el-col>
</el-row>
<div style="text-align: center;margin-top: 20vh">
<el-button text type="danger" @click="savePeifu">保存</el-button>
</div>
@ -33,73 +124,58 @@ export default {
return {
_: _,
dayjs: dayjs,
peifuForm: {
name1: 0,
name2: 0,
name3: 0,
name4: 0,
name5: 0,
name6: 0,
form: {
caipiaotype: "1",
danxuan: 0,
zuxuan: 0,
shaungfei: 0,
dudan: 0,
budingwei: 0,
fushi: 0,
quanbaoduizi: 0,
zuliu4: 0,
zuliu5: 0,
zuliu6: 0,
zuliu7: 0,
zusan4: 0,
zusan5: 0,
zusan6: 0,
zusan7: 0,
bai: 0,
shi: 0,
ge: 0
},
peifuHeaderList: [
{
label: "名称1",
prop: "name1",
type: "number",
min: 0,
max: 100,
width: "200px"
},
{
label: "名称2",
prop: "name2",
type: "number",
min: 0,
max: 100,
width: "200px"
},
{
label: "名称3",
prop: "name3",
type: "number",
min: 0,
max: 100,
width: "200px"
},
{
label: "名称4",
prop: "name4",
type: "number",
min: 0,
max: 100,
width: "200px"
},
{
label: "名称5",
prop: "name5",
type: "number",
min: 0,
max: 100,
width: "200px"
},
{
label: "名称6",
prop: "name6",
type: "number",
min: 0,
max: 100,
width: "200px"
}
]
formLocal: {
caipiaotype: "1",
danxuan: 0,
zuxuan: 0,
shaungfei: 0,
dudan: 0,
budingwei: 0,
fushi: 0,
quanbaoduizi: 0,
zuliu4: 0,
zuliu5: 0,
zuliu6: 0,
zuliu7: 0,
zusan4: 0,
zusan5: 0,
zusan6: 0,
zusan7: 0,
bai: 0,
shi: 0,
ge: 0
}
}
},
methods: {
savePeifu() { }
savePeifu() {
localStorage.setItem('peifu', JSON.stringify(this.form))
}
},
async mounted() {
this.form = JSON.parse(localStorage.getItem('peifu') || 0) || this.formLocal
},
watch: {},
computed: {}
}
@ -108,4 +184,12 @@ export default {
.rightClass {
padding: 8px;
}
.colDivClass {
border: 1px solid #ccc;
padding: 8px;
margin: 8px;
border-radius: 4px;
}
</style>

99
front/src/renderer/src/views/shujufenxi.vue

@ -12,6 +12,7 @@
</div>
<template #footer>
<div style="text-align: center;">
<el-button text type="primary" @click="extractTcNumbers">体福</el-button>
<el-button text type="primary" @click="leftTongji">统计</el-button>
<el-button text type="danger" @click="leftClear">清空</el-button>
<el-button text type="success" @click="setFuwufei">服务费</el-button>
@ -233,23 +234,8 @@ export default {
return {
_: _,
dayjs: dayjs,
leftText: `6点30
合计68
陈文哲 9-12 15:31:16
5点100
陈文哲 9-12 15:31:16
福175.1组2米
陈文哲 9-12 15:31:17
386-913--
317四单一组
18
陈文哲 9-12 15:31:17
福彩 体彩150 218 743 -单一组
24
陈文哲 9-12 15:31:17
体彩102678378034403301780763337
773677-单一组共44
福彩059590-单一组.共8
leftText: `体彩102,678,378,034。403,301。780。763,337。773,677一单一组共44
福彩059590各一单一组共8
合计52`,
rightText: "",
resultTitle: "",
@ -273,7 +259,11 @@ export default {
visible: false,
fuwufeiValue: 0,
},
screenshotStatus: false
screenshotStatus: false,
ticaihaoma: /体彩.*?([\d,。]+)[^一单一组共]*一单一组共/,
fucaihaoma: /福彩.*?([\d,。]+)[^一单一组共]*一单一组共/,
ticaijine: /体彩.*?一单一组共(\d+)/,
fucaijine: /福彩.*?一单一组共(\d+)/,
}
},
watch: {},
@ -386,7 +376,7 @@ export default {
let dataObj = this.dealLeftData(changciRow)
this.rightText = this.jsonToTextLines(dataObj).join('\n') || "无"
},
//
//
tongjizhongjiang() {
//
let leftTextArr = this.leftText.split("\n")
@ -540,7 +530,76 @@ export default {
//
destroyComponent() {
this.screenshotStatus = false;
}
},
//
extractTcNumbers() {
let ticaiList = []
let fucaiList = []
//
let leftTextArr = this.leftText.split("\n")
//
leftTextArr = leftTextArr.filter(item => !item.match(/\d{2}:\d{2}:\d{2}/g))
//
for (let i = 0; i < leftTextArr.length; i++) {
let item = leftTextArr[i];
if (item.includes("体彩")) {
let ticaimatchhaoma = item.match(this.ticaihaoma);
let ticaimatchjine = item.match(this.ticaijine);
let ticaihaomaArr
let ticaijineStr
if (ticaimatchhaoma) {
//
let haomaStr = ticaimatchhaoma[1].replace(/\.|。|,/g, ',');
ticaihaomaArr = _.compact(_.split(haomaStr, ","))
} else {
console.log("没有找到匹配项");
}
if (ticaimatchjine) {
//
ticaijineStr = ticaimatchjine[1]
} else {
console.log("没有找到匹配项");
}
ticaiList.push({
haoma: ticaihaomaArr,
jine: ticaijineStr,
})
} else if (item.includes("福彩")) {
let fucaimatchhaoma = item.match(this.fucaihaoma);
let fucaimatchjine = item.match(this.fucaijine);
let fucaihaomaArr
let fucaijineStr
if (fucaimatchhaoma) {
//
let haomaStr = fucaimatchhaoma[1].replace(/\.|。|,/g, ',');
fucaihaomaArr = _.compact(_.split(haomaStr, ","))
} else {
console.log("没有找到匹配项");
}
if (fucaimatchjine) {
//
fucaijineStr = fucaimatchjine[1]
} else {
console.log("没有找到匹配项");
}
fucaiList.push({
haoma: fucaihaomaArr,
jine: fucaijineStr,
})
}
}
let returnObj = {
ticaiList,
fucaiList
}
ElMessage({
type: 'success',
message: JSON.stringify(returnObj),
duration: 3000
})
return returnObj
},
},
}

2
jihuoqi/src/renderer/src/App.vue

@ -153,7 +153,7 @@ export default {
}
},
async mounted() {
let fiveDay = dayjs('2024-09-27T00:00:00').valueOf()
let fiveDay = dayjs('2024-10-27T00:00:00').valueOf()
if (!this.isVip) {
if (dayjs().valueOf() > fiveDay) {
this.isVip = false

Loading…
Cancel
Save