提交 acd0dcde authored 作者: ling's avatar ling

init

上级 0f4dc411
流水线 #257 已取消 于阶段
# editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false
# Created by .ignore support plugin (hsz.mobi)
### Node template
# Logs
/logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# nyc test coverage
.nyc_output
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# TypeScript v1 declaration files
typings/
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
# parcel-bundler cache (https://parceljs.org/)
.cache
# next.js build output
.next
# nuxt.js build output
.nuxt
# Nuxt generate
dist
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless
# IDE / Editor
.idea
# Service worker
sw.*
# macOS
.DS_Store
# Vim swap files
*.swp
# cs
<<<<<<< HEAD
=======
## Build Setup
```bash
# install dependencies
$ npm install
# serve with hot reload at localhost:3000
$ npm run dev
# build for production and launch server
$ npm run build
$ npm run start
# generate static project
$ npm run generate
```
For detailed explanation on how things work, check out the [documentation](https://nuxtjs.org).
## Special Directories
You can create the following extra directories, some of which have special behaviors. Only `pages` is required; you can delete them if you don't want to use their functionality.
### `assets`
The assets directory contains your uncompiled assets such as Stylus or Sass files, images, or fonts.
More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/assets).
### `components`
The components directory contains your Vue.js components. Components make up the different parts of your page and can be reused and imported into your pages, layouts and even other components.
More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/components).
### `layouts`
Layouts are a great help when you want to change the look and feel of your Nuxt app, whether you want to include a sidebar or have distinct layouts for mobile and desktop.
More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/layouts).
### `pages`
This directory contains your application views and routes. Nuxt will read all the `*.vue` files inside this directory and setup Vue Router automatically.
More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/get-started/routing).
### `plugins`
The plugins directory contains JavaScript plugins that you want to run before instantiating the root Vue.js Application. This is the place to add Vue plugins and to inject functions or constants. Every time you need to use `Vue.use()`, you should create a file in `plugins/` and add its path to plugins in `nuxt.config.js`.
More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/plugins).
### `static`
This directory contains your static files. Each file inside this directory is mapped to `/`.
Example: `/static/robots.txt` is mapped as `/robots.txt`.
More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/static).
### `store`
This directory contains your Vuex store files. Creating a file in this directory automatically activates Vuex.
More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/store).
>>>>>>> 9d3fd30 (init)
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"~/*": ["./*"],
"@/*": ["./*"],
"~~/*": ["./*"],
"@@/*": ["./*"]
}
},
"exclude": ["node_modules", ".nuxt", "dist"]
}
export default {
// Disable server-side rendering: https://go.nuxtjs.dev/ssr-mode
ssr: false,
// Target: https://go.nuxtjs.dev/config-target
target: 'static',
// Global page headers: https://go.nuxtjs.dev/config-head
head: {
title: 'cs',
htmlAttrs: {
lang: 'en'
},
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: '' },
{ name: 'format-detection', content: 'telephone=no' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
]
},
// Global CSS: https://go.nuxtjs.dev/config-css
css: [
'vant/lib/index.css'
],
// Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins
plugins: [
'@/plugins/vant'
],
// Auto import components: https://go.nuxtjs.dev/config-components
components: true,
// Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules
buildModules: [
],
// Modules: https://go.nuxtjs.dev/config-modules
modules: [
// https://go.nuxtjs.dev/axios
'@nuxtjs/axios',
],
// Axios module configuration: https://go.nuxtjs.dev/config-axios
axios: {
// Workaround to avoid enforcing hard-coded localhost:3000: https://github.com/nuxt-community/axios-module/issues/308
baseURL: '/',
},
// Build Configuration: https://go.nuxtjs.dev/config-build
build: {
}
}
差异被折叠。
{
"name": "cs",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "nuxt",
"build": "nuxt build",
"start": "nuxt start",
"generate": "nuxt generate"
},
"dependencies": {
"@nuxtjs/axios": "^5.13.6",
"core-js": "^3.25.3",
"nuxt": "^2.15.8",
"vant": "^2.12.50",
"vue": "^2.7.10",
"vue-server-renderer": "^2.7.10",
"vue-template-compiler": "^2.7.10"
},
"devDependencies": {}
}
\ No newline at end of file
<template>
<div class="container">
<div class="bg">
<div class="bg-text">
<div class="bg-title">亚博客服</div>
<div class="bg-enTitle">Yabo Customer Service</div>
<div class="bg-content">7*24小时专线服务 贴心至上</div>
</div>
<img class="bg-img" src="~/assets/images/bg.png">
</div>
<div class="content">
<div class="cs" @click="csMask = true">
<div class="cs-title"><img src="~/assets/images/24h.png">在线客服</div>
<div class="cs-enTitle">
<span>Customer Service</span>
<img src="~/assets/images/arrow.png">
</div>
<div class="cs-content">7*24小时专线服务 贴心至上</div>
</div>
<div class="application">
<div class="application-title">亚博应用</div>
<div class="application-item">
<img src="~/assets/images/icon1.png">
<div class="application-text">
<div class="application-title">亚博全站</div>
<div class="application-content">极致完美的游戏体验</div>
</div>
<div class="application-download">下载</div>
</div>
<div class="application-item">
<img src="~/assets/images/icon2.png">
<div class="application-text">
<div class="application-title">亚博体育</div>
<div class="application-content">业内顶尖投注手机APP</div>
</div>
<div class="application-download">下载</div>
</div>
</div>
</div>
<div class="question">
<img src="~/assets/images/q1_btn.png" @click="q1Mask = true">
<img src="~/assets/images/q2_btn.png" @click="q2Mask = true">
</div>
<van-overlay :show="csMask" @click="csMask = false">
<div class="csMask-wrapper">
<div class="csMask-block" @click.stop>
<img src="~/assets/images/tip_bg.png">
<div class="csMask-area">
<h3>安全提示</h3>
<div class="csMask-text"><span>为了保护您的资金安全,请不要主动将您的资金转入客服提供的银行卡中。</span></div>
<div class="csMask-text">
客服不会主动给会员卡号引导会员存款,如果客服主动要求将资金转入某张银行卡,<span>请勿进行资金交易</span>,否则引发的不到账等情况,概不负责。
</div>
<div class="csMask-btn">我已了解</div>
</div>
</div>
</div>
</van-overlay>
<van-popup v-model="q1Mask" round position="bottom" :style="{ height: '94%' }">
<div class="q1Mask-wrapper">
<div class="q1Mask-header">
<div class="q1Mask-header-btn" @click="q1Mask = false">取消</div>
<div class="q1Mask-header-title">掉签教程</div>
</div>
<img src="~/assets/images/q1_img.jpg">
</div>
</van-popup>
<van-popup v-model="q2Mask" round position="bottom" :style="{ height: '92.5%', overflow: 'hidden' }">
<div class="q1Mask-wrapper">
<div class="q1Mask-header">
<div class="q1Mask-header-btn" @click="q2Mask = false">取消</div>
<div class="q1Mask-header-title">安装教程</div>
</div>
<img src="~/assets/images/q2_img.jpg">
<div class="q1Mask-btn">一键信任</div>
</div>
</van-popup>
</div>
</template>
<script>
export default {
name: 'IndexPage',
data() {
return {
csMask: false,
q1Mask: false,
q2Mask: false,
}
},
}
</script>
<style>
.container {}
.bg-text {
position: absolute;
margin: 5.5rem 0 0 1rem;
}
.bg-title {
color: white;
font-size: 1.4rem;
}
.bg-enTitle {
margin-top: 0.3rem;
color: white;
opacity: 0.6;
font-size: 0.8rem;
}
.bg-content {
margin-top: 0.3rem;
color: white;
font-size: 0.9rem;
}
.bg-img {
width: 100%;
}
.content {
position: relative;
z-index: 1;
background-color: white;
border-radius: 1rem;
margin-top: -2rem;
padding: 1.5rem 1rem;
}
.cs {
background-image: linear-gradient(90deg, #62b3ff 0%, #3d72fa 100%);
padding: 1rem;
border-radius: 1rem;
box-shadow: 0px 4px 10px rgb(75 138 252 / 40%);
}
.cs-title {
color: white;
font-size: 1.4rem;
display: flex;
align-items: center;
}
.cs-title img {
width: 1.8rem;
margin-right: 0.5rem;
}
.cs-enTitle {
margin-top: 0.3rem;
color: white;
opacity: 0.6;
font-size: 0.8rem;
display: flex;
align-items: center;
justify-content: space-between;
}
.cs-enTitle img {
height: 1.3rem;
}
.cs-content {
margin-top: 0.3rem;
color: white;
font-size: 0.9rem;
}
.application {
margin-top: 1rem;
padding: 1rem;
border-radius: 1rem;
box-shadow: 0px 0px 24px 0px rgb(0 0 0 / 10%);
}
.application-title {
font-size: 1.2rem;
font-weight: bold;
color: rgb(65, 70, 85);
}
.application-item {
display: flex;
justify-content: space-between;
align-items: center;
height: 4.5rem;
}
.application-item:nth-child(2) {
border-bottom: 1px solid rgba(238, 238, 238, .5);
}
.application-item img {
width: 3rem;
}
.application-text {
width: 55%;
}
.application-content {
color: #6c7ba8;
font-size: 0.8rem;
letter-spacing: 1px;
margin-top: 0.2rem;
}
.application-download {
display: flex;
justify-content: center;
align-items: center;
background-color: #ececec;
border-radius: 1rem;
color: #4176fa;
padding: 0.3rem 1.5rem;
font-size: 0.9rem;
}
.question {
position: fixed;
bottom: 0.75rem;
text-align: center;
}
.question img {
width: 92%;
}
.csMask-wrapper {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
.csMask-block {
width: 85%;
background-color: #fff;
border-radius: 1.5rem;
}
.csMask-block img {
width: 100%;
border-radius: 1.5rem 1.5rem 0 0;
}
.csMask-area {
padding: 0 1.5rem 1.5rem;
}
.csMask-area h3 {
text-align: center;
color: #6c7ba8;
}
.csMask-text {
color: #6c7ba8;
font-size: 0.95rem;
margin-bottom: 1rem;
}
.csMask-text span {
color: #db6372;
}
.csMask-btn {
background: linear-gradient(to right, #62b3ff 0%, #3d72fa, #3d72fa);
border-radius: 1.5rem;
color: #fff;
text-align: center;
padding: 0.7rem 0;
}
.q1Mask-header {
height: 3rem;
position: fixed;
background-color: white;
width: 100%;
border-radius: 1rem 1rem 0 0;
border-bottom: 1px rgba(238, 238, 238, .5) solid;
line-height: 3rem;
text-align: center;
}
.q1Mask-header-btn {
position: fixed;
color: #8d8f93;
font-size: 1.1rem;
left: 1rem;
}
.q1Mask-header-title {
font-size: 1.1rem;
font-weight: bold;
}
.q1Mask-wrapper img {
margin-top: 3rem;
width: 100%;
}
.q1Mask-btn {
width: 12rem;
background-image: linear-gradient(to right, #62b3ff 0%, #3d72fa, #3d72fa);
border-radius: 1.5rem;
padding: 0.7rem 0;
text-align: center;
color: white;
font-size: 0.8rem;
font-weight: bold;
margin: -6rem auto;
position: relative;
z-index: 1;
}
</style>
import Vue from 'vue'
import Vant from 'vant'
Vue.use(Vant)
# STORE
**This directory is not required, you can delete it if you don't want to use it.**
This directory contains your Vuex Store files.
Vuex Store option is implemented in the Nuxt.js framework.
Creating a file in this directory automatically activates the option in the framework.
More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/vuex-store).
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论