Skip to content

Commit

Permalink
feat 添加三本与捉鬼的说明
Browse files Browse the repository at this point in the history
  • Loading branch information
kaykie committed Nov 18, 2023
1 parent 58662a1 commit d09ca5c
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 20 deletions.
4 changes: 2 additions & 2 deletions autoWebview.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* eslint-disable */
'ui';
// 一. 开发使用本地地址调试
// initUi('http://192.168.31.227:5666/')
initUi('http://192.168.31.227:5666/')
// initUi('http://172.21.32.205:5666/')

// 二.上线
initUi('https://www.xiaye0.com/mh')
// initUi('https://www.xiaye0.com/mh')

/**
* 初始化 UI
Expand Down
10 changes: 9 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,13 @@ export default {
height: 100vh;
overflow: hidden;
}
.container{
font-size:16px;
p{
margin:5px 0;
}
img{
width:100%;
}
}
</style>
Binary file removed src/assets/img/auto.png
Binary file not shown.
Binary file added src/assets/img/autoThree.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/img/zhuaGui.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/auto/robot/robot.fiveBen.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ auto();

const {findTextAndClick,isFightingCallback,clickClosePoint,isFighting,clickImagePoint,findImageTemplatePoints,isHasImageTemplate,clickRect,randomClick,clickImageTemplate,hasText,findTextRect} = require('util.js')

toastLog('即将开始自动三本啦')
sleep(2000)
// 判断是否在战斗中
function isFight(){
while(true){
Expand Down
15 changes: 12 additions & 3 deletions src/views/home/fiveBen.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
<template>
<div>
<div class="container">
<h3>使用前置:</h3>
<p>1、进入本页面,点击下方【开始执行三本】按钮</p>
<p>2、启动梦幻西游手游app</p>
<p>3、提前组好队伍并置于长安城</p>
<img src="@/assets/img/autoThree.jpg"/>
<p>4、点击悬浮窗口【开始】按钮即可</p>
<van-button round block @click="startNow" type="primary" native-type="submit">
开始执行五本
开始执行三本
</van-button>
<p>注:由于大多副本都是只有三次战斗,所以脚本逻辑中只会执行三次战斗,所以如果打不过的话,建议还是手动的好。</p>
</div>
</template>
<script>
Expand Down Expand Up @@ -35,4 +42,6 @@ export default {
},
}
</script>
<style scoped></style>
<style lang="less">
</style>
2 changes: 1 addition & 1 deletion src/views/home/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default {
{
route: 'fiveBen',
class: 'bg-mauve',
title: '自动5本',
title: '自动3本',
icon: 'van-icon-chat-o'
},
{
Expand Down
22 changes: 9 additions & 13 deletions src/views/home/zhuagui.vue
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
<template>
<div>
<div class="container">
<van-nav-bar
title="捉鬼任务"
left-text="返回"
left-arrow
@click-left="onClickLeft"
/>
<van-form @failed="onFailed" @submit="handleSubmit">
<van-cell-group inset>
<!-- 通过 pattern 进行正则校验 -->
<van-field
v-model="times"
name="times"
label="捉鬼次数"
placeholder="请输入捉鬼次数"
type="number"
:rules="[{ required:true, message: '请输入捉鬼次数' }]"
/>
</van-cell-group>
<h3>使用前置:</h3>
<p>1、进入本页面,点击下方【开始捉鬼】按钮</p>
<p>2、启动梦幻西游手游app</p>
<p>3、提前组好队伍并置于长安城</p>
<p>4、到钟馗那领取捉鬼任务(如下)</p>
<img src="@/assets/img/zhuaGui.jpg"/>
<p>5、点击悬浮窗口【开始】按钮即可</p>
<div style="margin: 16px;">
<van-button round block type="primary" native-type="submit">
提交执行
开始捉鬼
</van-button>
</div>
</van-form>
Expand Down

0 comments on commit d09ca5c

Please sign in to comment.