Commit d4b4c40d authored by 陈晓阳's avatar 陈晓阳

first commit

parents
{
"presets": [
[
"env",
{
"modules": false,
"targets": {
"browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
}
}
],
"stage-2"
],
"plugins": [
[
"import",
{
"libraryName": "vant",
"libraryDirectory": "es",
"style": true
}
],
"transform-vue-jsx",
"transform-runtime"
]
}
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
NODE_ENV = 'development'
NODE_ENV = 'production'
\ No newline at end of file
.DS_Store
node_modules/
/dist/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
// https://github.com/michael-ciniawsky/postcss-load-config
module.exports = {
plugins: {
"postcss-import": {},
"postcss-url": {},
// to edit target browsers: use "browserslist" field in package.json
autoprefixer: {},
"postcss-pxtorem": {
rootValue: 37.5,
propList: ["*"]
}
}
};
# jingcai-mobile
> 聙采供应链平台-手机端
## Build Setup
``` bash
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report
```
For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).
'use strict'
require('./check-versions')()
process.env.NODE_ENV = 'production'
const ora = require('ora')
const rm = require('rimraf')
const path = require('path')
const chalk = require('chalk')
const webpack = require('webpack')
const config = require('../config')
const webpackConfig = require('./webpack.prod.conf')
const spinner = ora('building for production...')
spinner.start()
rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => {
if (err) throw err
webpack(webpackConfig, (err, stats) => {
spinner.stop()
if (err) throw err
process.stdout.write(stats.toString({
colors: true,
modules: false,
children: false, // If you are using ts-loader, setting this to true will make TypeScript errors show up during build.
chunks: false,
chunkModules: false
}) + '\n\n')
if (stats.hasErrors()) {
console.log(chalk.red(' Build failed with errors.\n'))
process.exit(1)
}
console.log(chalk.cyan(' Build complete.\n'))
console.log(chalk.yellow(
' Tip: built files are meant to be served over an HTTP server.\n' +
' Opening index.html over file:// won\'t work.\n'
))
})
})
'use strict'
const chalk = require('chalk')
const semver = require('semver')
const packageConfig = require('../package.json')
const shell = require('shelljs')
function exec (cmd) {
return require('child_process').execSync(cmd).toString().trim()
}
const versionRequirements = [
{
name: 'node',
currentVersion: semver.clean(process.version),
versionRequirement: packageConfig.engines.node
}
]
if (shell.which('npm')) {
versionRequirements.push({
name: 'npm',
currentVersion: exec('npm --version'),
versionRequirement: packageConfig.engines.npm
})
}
module.exports = function () {
const warnings = []
for (let i = 0; i < versionRequirements.length; i++) {
const mod = versionRequirements[i]
if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) {
warnings.push(mod.name + ': ' +
chalk.red(mod.currentVersion) + ' should be ' +
chalk.green(mod.versionRequirement)
)
}
}
if (warnings.length) {
console.log('')
console.log(chalk.yellow('To use this template, you must update following to modules:'))
console.log()
for (let i = 0; i < warnings.length; i++) {
const warning = warnings[i]
console.log(' ' + warning)
}
console.log()
process.exit(1)
}
}
'use strict'
const path = require('path')
const config = require('../config')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const packageConfig = require('../package.json')
exports.assetsPath = function (_path) {
const assetsSubDirectory = process.env.NODE_ENV === 'production'
? config.build.assetsSubDirectory
: config.dev.assetsSubDirectory
return path.posix.join(assetsSubDirectory, _path)
}
exports.cssLoaders = function (options) {
options = options || {}
const cssLoader = {
loader: 'css-loader',
options: {
sourceMap: options.sourceMap
}
}
const postcssLoader = {
loader: 'postcss-loader',
options: {
sourceMap: options.sourceMap
}
}
// generate loader string to be used with extract text plugin
function generateLoaders (loader, loaderOptions) {
const loaders = options.usePostCSS ? [cssLoader, postcssLoader] : [cssLoader]
if (loader) {
loaders.push({
loader: loader + '-loader',
options: Object.assign({}, loaderOptions, {
sourceMap: options.sourceMap
})
})
}
// Extract CSS when that option is specified
// (which is the case during production build)
if (options.extract) {
return ExtractTextPlugin.extract({
use: loaders,
fallback: 'vue-style-loader'
})
} else {
return ['vue-style-loader'].concat(loaders)
}
}
// https://vue-loader.vuejs.org/en/configurations/extract-css.html
return {
css: generateLoaders(),
postcss: generateLoaders(),
less: generateLoaders('less'),
sass: generateLoaders('sass', { indentedSyntax: true }),
scss: generateLoaders('sass'),
stylus: generateLoaders('stylus'),
styl: generateLoaders('stylus')
}
}
// Generate loaders for standalone style files (outside of .vue)
exports.styleLoaders = function (options) {
const output = []
const loaders = exports.cssLoaders(options)
for (const extension in loaders) {
const loader = loaders[extension]
output.push({
test: new RegExp('\\.' + extension + '$'),
use: loader
})
}
return output
}
exports.createNotifierCallback = () => {
const notifier = require('node-notifier')
return (severity, errors) => {
if (severity !== 'error') return
const error = errors[0]
const filename = error.file && error.file.split('!').pop()
notifier.notify({
title: packageConfig.name,
message: severity + ': ' + error.name,
subtitle: filename || '',
icon: path.join(__dirname, 'logo.png')
})
}
}
'use strict'
const utils = require('./utils')
const config = require('../config')
const isProduction = process.env.NODE_ENV === 'production'
const sourceMapEnabled = isProduction
? config.build.productionSourceMap
: config.dev.cssSourceMap
module.exports = {
loaders: utils.cssLoaders({
sourceMap: sourceMapEnabled,
extract: isProduction
}),
cssSourceMap: sourceMapEnabled,
cacheBusting: config.dev.cacheBusting,
transformToRequire: {
video: ['src', 'poster'],
source: 'src',
img: 'src',
image: 'xlink:href'
}
}
'use strict'
const path = require('path')
const utils = require('./utils')
const config = require('../config')
const vueLoaderConfig = require('./vue-loader.conf')
function resolve (dir) {
return path.join(__dirname, '..', dir)
}
module.exports = {
context: path.resolve(__dirname, '../'),
entry: {
app: './src/main.js'
},
output: {
path: config.build.assetsRoot,
filename: '[name].js',
publicPath: process.env.NODE_ENV === 'production'
? config.build.assetsPublicPath
: config.dev.assetsPublicPath
},
resolve: {
extensions: ['.js', '.vue', '.json'],
alias: {
'@': resolve('src'),
}
},
module: {
rules: [
{
test: /\.vue$/,
loader: 'vue-loader',
options: vueLoaderConfig
},
{
test: /\.js$/,
loader: 'babel-loader',
include: [resolve('src'), resolve('test'), resolve('node_modules/webpack-dev-server/client')]
},
{
test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
loader: 'url-loader',
options: {
limit: 10000,
name: utils.assetsPath('img/[name].[hash:7].[ext]')
}
},
{
test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/,
loader: 'url-loader',
options: {
limit: 10000,
name: utils.assetsPath('media/[name].[hash:7].[ext]')
}
},
{
test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
loader: 'url-loader',
options: {
limit: 10000,
name: utils.assetsPath('fonts/[name].[hash:7].[ext]')
}
}
]
},
node: {
// prevent webpack from injecting useless setImmediate polyfill because Vue
// source contains it (although only uses it if it's native).
setImmediate: false,
// prevent webpack from injecting mocks to Node native modules
// that does not make sense for the client
dgram: 'empty',
fs: 'empty',
net: 'empty',
tls: 'empty',
child_process: 'empty'
}
}
'use strict'
const utils = require('./utils')
const webpack = require('webpack')
const config = require('../config')
const merge = require('webpack-merge')
const path = require('path')
const baseWebpackConfig = require('./webpack.base.conf')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
const portfinder = require('portfinder')
const HOST = process.env.HOST
const PORT = process.env.PORT && Number(process.env.PORT)
const devWebpackConfig = merge(baseWebpackConfig, {
module: {
rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap, usePostCSS: true })
},
// cheap-module-eval-source-map is faster for development
devtool: config.dev.devtool,
// these devServer options should be customized in /config/index.js
devServer: {
clientLogLevel: 'warning',
historyApiFallback: {
rewrites: [
{ from: /.*/, to: path.posix.join(config.dev.assetsPublicPath, 'index.html') },
],
},
hot: true,
contentBase: false, // since we use CopyWebpackPlugin.
compress: true,
host: HOST || config.dev.host,
port: PORT || config.dev.port,
open: config.dev.autoOpenBrowser,
overlay: config.dev.errorOverlay
? { warnings: false, errors: true }
: false,
publicPath: config.dev.assetsPublicPath,
proxy: config.dev.proxyTable,
quiet: true, // necessary for FriendlyErrorsPlugin
watchOptions: {
poll: config.dev.poll,
}
},
plugins: [
new webpack.DefinePlugin({
'process.env': require('../config/dev.env')
}),
new webpack.HotModuleReplacementPlugin(),
new webpack.NamedModulesPlugin(), // HMR shows correct file names in console on update.
new webpack.NoEmitOnErrorsPlugin(),
// https://github.com/ampedandwired/html-webpack-plugin
new HtmlWebpackPlugin({
filename: 'index.html',
template: 'index.html',
inject: true
}),
// copy custom static assets
new CopyWebpackPlugin([
{
from: path.resolve(__dirname, '../static'),
to: config.dev.assetsSubDirectory,
ignore: ['.*']
}
])
]
})
module.exports = new Promise((resolve, reject) => {
portfinder.basePort = process.env.PORT || config.dev.port
portfinder.getPort((err, port) => {
if (err) {
reject(err)
} else {
// publish the new Port, necessary for e2e tests
process.env.PORT = port
// add port to devServer config
devWebpackConfig.devServer.port = port
// Add FriendlyErrorsPlugin
devWebpackConfig.plugins.push(new FriendlyErrorsPlugin({
compilationSuccessInfo: {
messages: [`Your application is running here: http://${devWebpackConfig.devServer.host}:${port}`],
},
onErrors: config.dev.notifyOnErrors
? utils.createNotifierCallback()
: undefined
}))
resolve(devWebpackConfig)
}
})
})
'use strict'
const path = require('path')
const utils = require('./utils')
const webpack = require('webpack')
const config = require('../config')
const merge = require('webpack-merge')
const baseWebpackConfig = require('./webpack.base.conf')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
const env = require('../config/prod.env')
const webpackConfig = merge(baseWebpackConfig, {
module: {
rules: utils.styleLoaders({
sourceMap: config.build.productionSourceMap,
extract: true,
usePostCSS: true
})
},
devtool: config.build.productionSourceMap ? config.build.devtool : false,
output: {
path: config.build.assetsRoot,
filename: utils.assetsPath('js/[name].[chunkhash].js'),
chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')
},
plugins: [
// http://vuejs.github.io/vue-loader/en/workflow/production.html
new webpack.DefinePlugin({
'process.env': env
}),
new UglifyJsPlugin({
uglifyOptions: {
compress: {
warnings: false
}
},
sourceMap: config.build.productionSourceMap,
parallel: true
}),
// extract css into its own file
new ExtractTextPlugin({
filename: utils.assetsPath('css/[name].[contenthash].css'),
// Setting the following option to `false` will not extract CSS from codesplit chunks.
// Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack.
// It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`,
// increasing file size: https://github.com/vuejs-templates/webpack/issues/1110
allChunks: true,
}),
// Compress extracted CSS. We are using this plugin so that possible
// duplicated CSS from different components can be deduped.
new OptimizeCSSPlugin({
cssProcessorOptions: config.build.productionSourceMap
? { safe: true, map: { inline: false } }
: { safe: true }
}),
// generate dist index.html with correct asset hash for caching.
// you can customize output by editing /index.html
// see https://github.com/ampedandwired/html-webpack-plugin
new HtmlWebpackPlugin({
filename: config.build.index,
template: 'index.html',
inject: true,
minify: {
removeComments: true,
collapseWhitespace: true,
removeAttributeQuotes: true
// more options:
// https://github.com/kangax/html-minifier#options-quick-reference
},
// necessary to consistently work with multiple chunks via CommonsChunkPlugin
chunksSortMode: 'dependency'
}),
// keep module.id stable when vendor modules does not change
new webpack.HashedModuleIdsPlugin(),
// enable scope hoisting
new webpack.optimize.ModuleConcatenationPlugin(),
// split vendor js into its own file
new webpack.optimize.CommonsChunkPlugin({
name: 'vendor',
minChunks (module) {
// any required modules inside node_modules are extracted to vendor
return (
module.resource &&
/\.js$/.test(module.resource) &&
module.resource.indexOf(
path.join(__dirname, '../node_modules')
) === 0
)
}
}),
// extract webpack runtime and module manifest to its own file in order to
// prevent vendor hash from being updated whenever app bundle is updated
new webpack.optimize.CommonsChunkPlugin({
name: 'manifest',
minChunks: Infinity
}),
// This instance extracts shared chunks from code splitted chunks and bundles them
// in a separate chunk, similar to the vendor chunk
// see: https://webpack.js.org/plugins/commons-chunk-plugin/#extra-async-commons-chunk
new webpack.optimize.CommonsChunkPlugin({
name: 'app',
async: 'vendor-async',
children: true,
minChunks: 3
}),
// copy custom static assets
new CopyWebpackPlugin([
{
from: path.resolve(__dirname, '../static'),
to: config.build.assetsSubDirectory,
ignore: ['.*']
}
])
]
})
if (config.build.productionGzip) {
const CompressionWebpackPlugin = require('compression-webpack-plugin')
webpackConfig.plugins.push(
new CompressionWebpackPlugin({
asset: '[path].gz[query]',
algorithm: 'gzip',
test: new RegExp(
'\\.(' +
config.build.productionGzipExtensions.join('|') +
')$'
),
threshold: 10240,
minRatio: 0.8
})
)
}
if (config.build.bundleAnalyzerReport) {
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
webpackConfig.plugins.push(new BundleAnalyzerPlugin())
}
module.exports = webpackConfig
'use strict'
const merge = require('webpack-merge')
const prodEnv = require('./prod.env')
module.exports = merge(prodEnv, {
NODE_ENV: '"development"'
})
"use strict";
// Template version: 1.3.1
// see http://vuejs-templates.github.io/webpack for documentation.
const path = require("path");
module.exports = {
dev: {
// Paths
assetsSubDirectory: "static",
assetsPublicPath: "/",
proxyTable: {},
// Various Dev Server settings
host: "0.0.0.0", // can be overwritten by process.env.HOST
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false,
errorOverlay: true,
notifyOnErrors: true,
poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
/**
* Source Maps
*/
// https://webpack.js.org/configuration/devtool/#development
devtool: "cheap-module-eval-source-map",
// If you have problems debugging vue-files in devtools,
// set this to false - it *may* help
// https://vue-loader.vuejs.org/en/options.html#cachebusting
cacheBusting: true,
cssSourceMap: true
},
// css: {
// loaderOptions: {
// postcss: {
// plugins: [
// require("postcss-pxtorem")({
// rootValue: 37.5,
// propList: ["*"]
// })
// ]
// }
// }
// },
build: {
// Template for index.html
index: path.resolve(__dirname, "../dist/index.html"),
// Paths
assetsRoot: path.resolve(__dirname, "../dist"),
assetsSubDirectory: "static",
assetsPublicPath: "/",
/**
* Source Maps
*/
productionSourceMap: true,
// https://webpack.js.org/configuration/devtool/#production
devtool: "#source-map",
// Gzip off by default as many popular static hosts such as
// Surge or Netlify already gzip all static assets for you.
// Before setting to `true`, make sure to:
// npm install --save-dev compression-webpack-plugin
productionGzip: false,
productionGzipExtensions: ["js", "css"],
// Run the build command with an extra argument to
// View the bundle analyzer report after build finishes:
// `npm run build --report`
// Set to `true` or `false` to always turn it on or off
bundleAnalyzerReport: process.env.npm_config_report
}
};
'use strict'
module.exports = {
NODE_ENV: '"production"'
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover, user-scalable=no"
/>
<title>聙采供应链平台</title>
</head>
<body>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"name": "jingcai-mobile",
"version": "1.0.0",
"description": "聙采供应链平台-手机端",
"author": "xiao <i@haozhai.me>",
"private": true,
"scripts": {
"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
"start": "npm run dev",
"build": "node build/build.js"
},
"dependencies": {
"amfe-flexible": "^2.2.1",
"lib-flexible": "^0.3.2",
"postcss-pxtorem": "^5.1.1",
"sass": "^1.54.0",
"sass-loader": "^7.3.1",
"vant": "^2.12.48",
"vue": "^2.5.2",
"vue-router": "^3.0.1"
},
"devDependencies": {
"autoprefixer": "^7.1.2",
"babel-core": "^6.22.1",
"babel-helper-vue-jsx-merge-props": "^2.0.3",
"babel-loader": "^7.1.1",
"babel-plugin-import": "^1.13.5",
"babel-plugin-syntax-jsx": "^6.18.0",
"babel-plugin-transform-runtime": "^6.22.0",
"babel-plugin-transform-vue-jsx": "^3.5.0",
"babel-preset-env": "^1.3.2",
"babel-preset-stage-2": "^6.22.0",
"chalk": "^2.0.1",
"copy-webpack-plugin": "^4.0.1",
"css-loader": "^0.28.11",
"extract-text-webpack-plugin": "^3.0.0",
"file-loader": "^1.1.4",
"friendly-errors-webpack-plugin": "^1.6.1",
"html-webpack-plugin": "^2.30.1",
"node-notifier": "^5.1.2",
"optimize-css-assets-webpack-plugin": "^3.2.0",
"ora": "^1.2.0",
"portfinder": "^1.0.13",
"postcss-import": "^11.0.0",
"postcss-loader": "^2.0.8",
"postcss-url": "^7.2.1",
"rimraf": "^2.6.0",
"semver": "^5.3.0",
"shelljs": "^0.7.6",
"uglifyjs-webpack-plugin": "^1.1.1",
"url-loader": "^0.5.8",
"vue-loader": "^13.3.0",
"vue-style-loader": "^3.1.2",
"vue-template-compiler": "^2.5.2",
"webpack": "^3.6.0",
"webpack-bundle-analyzer": "^2.9.0",
"webpack-dev-server": "^2.9.1",
"webpack-merge": "^4.1.0"
},
"engines": {
"node": ">= 6.0.0",
"npm": ">= 3.0.0"
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
]
}
<template>
<div id="app">
<router-view />
</div>
</template>
<script>
export default {
name: "App"
};
</script>
<style>
#app {
height: 100vh;
}
.container {
height: 100vh;
}
div {
box-sizing: border-box;
}
</style>
import Vue from "vue";
import App from "./App";
import router from "./router";
import "amfe-flexible";
import "./vant";
Vue.config.productionTip = false;
/* eslint-disable no-new */
new Vue({
el: "#app",
router,
render: h => h(App)
});
import Vue from "vue";
import Router from "vue-router";
import Welcome from "@/views/welcome/welcome.vue";
import Register from "@/views/register/register.vue";
import Success from "@/views/success/success.vue";
Vue.use(Router);
export default new Router({
routes: [
{
path: "/",
name: "Welcome",
component: Welcome
},
{
path: "/register",
name: "Register",
component: Register
},
{
path: "/success",
name: "Success",
component: Success
}
]
});
import Vue from "vue";
import { Button, Cell, CellGroup, Form, Field, Uploader } from "vant";
Vue.use(Button);
Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(Form);
Vue.use(Field);
Vue.use(Uploader);
<template>
<div class="container">
<div class="container-top">
<div class="top-tips">(企业信息填报)</div>
</div>
<div class="form-container">
<van-form @submit="onSubmit" label-align="top">
<div v-show="step == 0">
<div class="module-title">
店铺信息
</div>
<van-field
v-model="username"
name="店铺ID"
label="店铺ID"
placeholder="请输入店铺ID"
:rules="[{ required: true, message: '请输入店铺ID' }]"
/>
<van-field
v-model="password"
type="password"
name="店铺名称"
label="店铺名称"
placeholder="请输入店铺名称"
:rules="[{ required: true, message: '请输入店铺名称' }]"
/>
<div class="module-title">
企业信息
</div>
<van-field
v-model="username"
name="信用代码"
label="信用代码"
placeholder="请输入信用代码"
:rules="[{ required: true, message: '请输入信用代码' }]"
/>
<van-field
v-model="password"
type="password"
name="经营范围"
label="经营范围"
placeholder="请输入经营范围"
:rules="[{ required: true, message: '请输入经营范围' }]"
/>
<van-field
v-model="password"
type="password"
name="营业执照"
label="营业执照"
:rules="[{ required: true, message: '请上传营业执照' }]"
>
<div slot="input">
<van-uploader>
<div class="uploader-container">
<img class="license" src="../../assets/yingyezhizhao.png" />
<div class="tips">上传</div>
</div>
</van-uploader>
</div>
</van-field>
</div>
<div v-show="step == 1">
<div class="module-title">
法人信息
</div>
<van-field
v-model="username"
name="法人姓名"
label="法人姓名"
placeholder="请输入法人姓名"
:rules="[{ required: true, message: '请输入法人姓名' }]"
/>
<van-field
v-model="password"
type="password"
name="身份证号"
label="身份证号"
placeholder="请输入身份证号"
:rules="[{ required: true, message: '请输入法人身份证号' }]"
/>
<van-field
v-model="password"
type="password"
name="身份证正反面"
label="身份证正反面"
:rules="[{ required: true, message: '请上传身份证正反面' }]"
>
<div slot="input">
<van-uploader>
<div class="uploader-container">
<img
class="license"
src="../../assets/shenfenzhengzhengmian.png"
/>
<div class="tips">正面上传</div>
</div>
</van-uploader>
<van-uploader>
<div class="uploader-container">
<img
class="license"
src="../../assets/shenfenzhengfanmian.png"
/>
<div class="tips">反面上传</div>
</div>
</van-uploader>
</div>
</van-field>
<div class="module-title">
经办人信息
</div>
<van-field
v-model="username"
name="联系人姓名"
label="联系人姓名"
placeholder="请输入联系人姓名"
:rules="[{ required: true, message: '请输入联系人姓名' }]"
/>
<van-field
v-model="password"
name="身份证号"
label="身份证号"
placeholder="请输入身份证号"
:rules="[{ required: true, message: '请输入联系人身份证号' }]"
/>
<van-field
v-model="password"
name="联系电话"
label="联系电话"
placeholder="请输入联系电话"
:rules="[{ required: true, message: '请输入联系人电话' }]"
/>
</div>
<div style="margin: 16px;">
<van-button
round
block
type="info"
native-type="submit"
@click="onSubmit"
>
<!-- step == 0 ? clickStep : onSubmit -->
{{ step == 0 ? "下一步" : "提交" }}</van-button
>
</div>
</van-form>
</div>
</div>
</template>
<script>
export default {
name: "Register",
data() {
return {
username: "",
password: "",
step: 0
};
},
methods: {
clickStep() {
this.step += 1;
},
onSubmit(values) {
console.log("submit", values);
this.$router.push({ name: "Success" });
}
}
};
</script>
<style lang="scss" scoped>
.container {
background: #f2f3f7;
.container-top {
height: 189px;
background: #1277ee;
color: #ffffff;
.top-tips {
padding-top: 16px;
font-size: 15px;
text-align: center;
}
}
.form-container {
margin: -130px 12px 0;
width: 351px;
background: #ffffff;
border-radius: 13px;
padding: 20px 0;
.module-title {
font-size: 17px;
padding: 20px 0 20px 19px;
border-bottom: 1px solid #eaeaea;
margin-bottom: 10px;
&:first-child {
padding-top: 0;
}
}
}
}
.uploader-container {
width: 137px;
height: 90px;
background: #f8f8f8;
border-radius: 6px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
.license {
width: 81px;
height: 49px;
}
.tips {
font-size: 13px;
color: #888888;
}
}
.van-cell {
flex-direction: column;
}
.van-cell .van-field__label {
margin-bottom: 19px;
color: #242323;
}
</style>
<template>
<div class="container bg">
<div class="success"></div>
<div class="tips">授信成功</div>
<div class="description">详细额度请登录后台查看</div>
<van-button plain class="submit" size="large">确定</van-button>
</div>
</template>
<script>
export default {};
</script>
<style lang="scss" scoped>
.bg {
color: #ffffff;
padding-top: 129px;
background: url("../../assets/success_bg.png") no-repeat;
background-size: cover;
}
.success {
margin: 0 113px 15px 113px;
width: 149px;
height: 149px;
background: url("../../assets/success.png") no-repeat;
background-size: contain;
}
.tips {
text-align: center;
font-size: 22px;
font-weight: 600;
margin-bottom: 22px;
}
.description {
text-align: center;
margin-bottom: 182px;
font-size: 15px;
}
.submit {
margin: 0 35.5px;
width: 304px;
height: 43px;
background: #ffffff;
border-radius: 16px;
color: #0049c7;
}
</style>
<template>
<div class="container welcome">
<div class="logo"></div>
<div class="tips">聙采供应链平台</div>
<van-button plain class="login" size="large" @click="toPage"
>抖店授信</van-button
>
</div>
</template>
<script>
export default {
name: "Welcome",
methods: {
toPage() {
this.$router.push({ name: "Register" });
}
}
};
</script>
<style lang="scss" scoped>
.logo {
width: 156px;
height: 56px;
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAecAAACwCAMAAAACL1adAAAAAXNSR0IArs4c6QAAAtlQTFRFAAAA////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////F3uooQAAAPJ0Uk5TAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8gISIkJSYnKCkqLC0uLzAxMzQ1Njc5Ojs8PT9AQUJDREVGR0hKS0xNT1BRUlNUVVZXWFlaW1xdXl9gYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXp7fH1+f4CBgoOEhYeIiYqLjI6PkJGSk5SVlpeYmZqbnJ2en6ChoqOkpqeoqausra6vsLGys7S1tre4ubq7vL2+v8DBwsPExcbIycrLzM3Oz9DR0tPU1dbX2drb3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af8BxabDiqDWQPKOJfiVc3MHeowb5sZ72/xDEhEsWAYnL2Z0pahxdtbJJQwEJWMfVoV5qfGxPxTAHUeFNMnrDrgoefj7qxizgDcqOQWaOdGkJxUJWaX2N+JhVGxoKZTpmLOYOqm+DG/OhWkX2BB5dsKnivKVby6eenheCkfuqMZZJICmfZvcWL+xdRMw2mRBXvjorx3QabdFEnbN47EQfnwN9oy3aZLpj4xEDXlgR9mU3YK5bxnTkZJ+eTTH890mk75xJPHo6J8/MlPZPpMr0x+KBK/yQcPTc50mW4Ze+tvw1Le/A9jMj3WgVyw8s/BIf955axMg/UiLXPXHggC+f21c1oy7dWVjPrMI9vlIG9/BI7K9FaXu7KbVm09IYL4xNZVX8h2XnUt4+b+k/nmUcax6TefuGvOWZmeGmO9njbnS/d3bcA9vX19/a7b39fX24M3dN3/pTnTslhU0vL/J5j5J472HUkAAAAASUVORK5CYII=)
no-repeat;
background-size: contain;
}
.tips {
font-size: 27px;
margin-top: 30px;
color: #ffffff;
font-weight: bold;
}
.welcome {
display: flex;
flex-direction: column;
align-items: center;
padding-top: 142px;
height: 100vh;
background: url("../../assets/welcome.png") no-repeat;
background-size: cover;
}
.login {
margin-top: 279px;
width: 304px;
height: 43px;
border-radius: 16px;
color: #0049c7;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment