Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
xysBooking
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2024-01-16 14:18:19 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7678f851c8138dad59d2e84d12498fb1dfb0c5c9
7678f851
1 parent
c3fee99c
预约须知页面,跳转逻辑调整
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
src/views/notice.vue
src/views/notice.vue
View file @
7678f85
<!--
* @Date: 2024-01-15 11:43:01
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-01-1
5 13:33:14
* @LastEditTime: 2024-01-1
6 14:15:52
* @FilePath: /xysBooking/src/views/notice.vue
* @Description: 文件描述
-->
...
...
@@ -21,7 +21,7 @@
<van-checkbox-group v-model="checked" shape="square" checked-color="#A67939" style="margin-left: 1.25rem;">
<van-checkbox name="1" icon-size="0.8rem"><span style="color: #A67939; font-size: 0.85rem;">我已阅读并同意以上内容</span></van-checkbox>
</van-checkbox-group>
<div class="confirm-btn">确认,下一步</div>
<div
@click="confirmBtn"
class="confirm-btn">确认,下一步</div>
</div>
</div>
</template>
...
...
@@ -34,15 +34,26 @@ import { Cookies, $, _, axios, storeToRefs, mainStore, Toast, useTitle } from '@
//import { } from '@/utils/generateModules.js'
//import { } from '@/utils/generateIcons.js'
//import { } from '@/composables'
import { useGo } from '@/hooks/useGo'
import { showSuccessToast, showFailToast } from 'vant';
const $route = useRoute();
const $router = useRouter();
useTitle($route.meta.title);
const go = useGo();
const checked = ref(['0']);
const checkedChange = () => {
checked.value = !checked.value
;
// checked.value[0] = !checked.value[0]
;
};
const confirmBtn = () => {
if (checked.value[1] === '1') {
go('/booking');
} else {
showFailToast('请勾选同意须知');
}
}
</script>
<style lang="less" scoped>
...
...
Please
register
or
login
to post a comment