Commit e038682f by yangchao

update

1 parent d39f471d
Showing with 2121 additions and 0 deletions
{
"presets": [
[
"env",
{
"modules": false,
"targets": {
"browsers": [
"> 1%",
"last 2 versions",
"not ie <= 8"
]
}
}
],
"stage-2"
],
"plugins": [
"transform-vue-jsx",
"transform-runtime"
]
}
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 4
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
.DS_Store
node_modules/
/dist/
package-lock.json
yarn.lock
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": {}
}
}
'use strict'
require('./check-versions')()
process.env.NODE_ENV = process.env.NODE_ENV?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: {
'vue$': 'vue/dist/vue.esm.js',
'@': 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)
function resolve(dir) {
return path.join(__dirname, '..', dir)
}
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,
//添加允许外网访问
disableHostCheck: 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,
ignored: ['/.git/', '/node_modules/']
}
},
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,
favicon: resolve('favicon.ico'),
}),
// 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 dev = require('../config/dev.env')
const isProd = process.env.NODE_ENV === 'production'
function resolve(dir) {
return path.join(__dirname, '..', dir)
}
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': isProd ? env : dev
}),
new UglifyJsPlugin({
uglifyOptions: {
compress: {
warnings: false,
// drop_debugger: true,
// drop_console: true
}
},
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,
favicon: resolve('favicon.ico'),
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: 'localhost', // can be overwritten by process.env.HOST
host: '0.0.0.0', // can be overwritten by process.env.HOST
port: 8003, // 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
},
build: {
// Template for index.html
index: path.resolve(__dirname, '../dist/index.html'),
// Paths
assetsRoot: path.resolve(__dirname, '../dist'),
assetsSubDirectory: 'static',
assetsPublicPath: '/',
/**
* Source Maps
*/
productionSourceMap: false,
// 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"'
}
[0111/141441.542:ERROR:crash_report_database_win.cc(428)] unexpected header
No preview for this file type
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>师享家招聘后台</title>
<link rel="icon" href="./favicon.ico" type="image/x-icon">
</head>
<body>
<script type="text/javascript" src="https://webapi.amap.com/maps?v=1.3&key=32f0886b00a477c6acf7aeedadb10069"></script>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
{
"name": "lestore-pc",
"version": "1.0.0",
"description": "lestore-pc",
"author": "ldy <dev@ledouya.com>",
"private": true,
"scripts": {
"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
"start": "npm run dev",
"build": "node build/build.js",
"build:dev": "cross-env NODE_ENV=development node build/build.js"
},
"dependencies": {
"axios": "^0.18.0",
"countup.js": "^1.9.3",
"crypto-js": "^3.1.9-1",
"echarts": "^4.0.4",
"element-china-area-data": "^4.1.0",
"element-ui": "^2.4.7",
"file-saver": "^2.0.2",
"html2canvas": "^1.0.0-alpha.12",
"jquery": "3.3.1",
"js-cookie": "^2.2.0",
"jszip": "^3.2.1",
"ldy-vue-wxparse": "^0.0.3",
"less": "^3.7.1",
"less-loader": "^4.1.0",
"moment": "^2.22.2",
"nprogress": "^0.2.0",
"print-js": "^1.0.47",
"v-viewer": "^1.2.1",
"vue": "^2.5.2",
"vue-append": "^1.1.4",
"vue-awesome-swiper": "^3.1.3",
"vue-countup-v2": "^1.0.3",
"vue-quill-editor": "^3.0.6",
"vue-router": "^3.0.1",
"vuex": "^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-syntax-jsx": "^6.18.0",
"babel-plugin-transform-runtime": "^6.22.0",
"babel-plugin-transform-vue-jsx": "^3.7.0",
"babel-preset-env": "^1.7.0",
"babel-preset-stage-2": "^6.22.0",
"chalk": "^2.0.1",
"copy-webpack-plugin": "^4.0.1",
"cropperjs": "^1.4.3",
"cross-env": "^5.2.0",
"css-loader": "^0.28.0",
"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.0.1",
"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" v-loading="loading" element-loading-text="拼命加载中">
<router-view v-if="!loading"></router-view>
</div>
</template>
<script>
import '@/styles/app.css'
import '@/styles/index.css'
import '@/styles/common.css'
import '@/assets/iconfont/iconfont.css';
import $ from "jquery";
export default {
name: 'App' ,
data(){
return{
loading : true
}
},
beforeMount(){
this.loading = false;
},
async created() {
window.$ = window.jQuery = $;
},
}
</script>
<style>
.el-dialog__title {
font-size: 16px;
}
.el-cascader-menu {
height: auto;
max-height: 200px;
overflow: auto;
min-width:172px;
}
.swiper-button-prev, .swiper-button-next {
width: 24px;
height: 25px;
}
.goods-content .goods-table td, .goods-table th{
padding: 0;
}
.goods-content .goods-table .cell, .goods-table th div {
padding: 0;
}
/*滚动条*/
.dialog-table .el-table__body-wrapper::-webkit-scrollbar {/*滚动条整体样式*/
width: 4px;
height: 4px;
background-color: #F5F5F5;
display: block;
}
.dialog-table .el-table__body-wrapper::-webkit-scrollbar-thumb { /*滚动条里面小方块*/
border-radius: 10px;
background-color: #A3D0FD;
}
.dialog-table .el-table__body-wrapper::-webkit-scrollbar-track {/*滚动条里面轨道*/
border-radius: 10px;
background-color: #F5F5F5;
}
.swiper-slide {
padding: 0 2px;
}
</style>
import request from '../utils/request'
export function getCurrentEdition (data) {
return request({
url : 'business/mall/permission' ,
data ,
source : 'cm'
})
}
import axios from 'axios'
export default function getUpToken(key) {
let data = new FormData();
data.append('key', key);
return axios.get( 'https://api.ledianyun.com/api/get/qiniuUploadToken', data).then(res => res.data)
}
import request from '@/utils/request'
// //获取数据概况
// export function getDataProfile(data) {
// return request({
// url: '/datacenter/dataProfile/dataProfile',
// method: 'post',
// data: data
// });
// }
// 获取店铺概况 -- 实时概况数据
export function getRealtimeData() {
return request({
url: '/datacenter/general/realtime',
method: 'post'
})
}
// 获取店铺概况 -- 重要提醒
export function getRemindData() {
return request({
url: '/datacenter/general/remind',
method: 'post'
})
}
// 获取店铺概况 -- 流量数据
export function getFlowData() {
return request({
url: '/datacenter/general/flow',
method: 'post'
})
}
// 获取店铺概况 -- 客户数据
export function getCustomerData() {
return request({
url: '/datacenter/general/user',
method: 'post'
})
}
//获取等级列表
export function levelList() {
return request({
url: '/cateringusers/StoreUsersLevel/levelList',
method: 'post',
source : 'cm'
})
}
// 店铺积分列表
export function storePointsList() {
return request({
url: '/cateringusers/StoreUsersPoint/storePointsList',
method: 'post',
source : 'cm'
})
}
//获取更新公告
//lestore/notices/noticeDetails
export function newestDetails(data) {
return request({
url: 'lestore/notices/noticeDetails',
method: 'post',
data,
source : 'xuetang'
})
}
//公告列表
export function noticeLists(data) {
return request({
url: 'lestore/notices/noticeLists',
method: 'post',
data,
source : 'xuetang'
})
}
import request from '@/utils/request'
export function newestDetails(data) {
return request({
url: 'lestore/notices/noticeDetails',
method: 'post',
data,
})
}
import request from '@/utils/request'
//获取我的模板列表
export function getMyTemplateList (data) {
return request({
url: 'design/myTemplate/lists' ,
method : 'post' ,
data : data ,
source : 'cm'
})
}
//修改创建模板
export function editMyTemplate (data) {
return request({
url: 'design/myTemplate/baseSave' ,
method : 'post' ,
data : data ,
source : 'cm'
})
}
//删除我的模板
export function deleteMyTemplate (data) {
return request({
url: 'design/myTemplate/delete' ,
method : 'post' ,
data : data ,
source : 'cm'
})
}
//发布我的模板
export function publishMyTemplate (data) {
return request({
url: 'design/myTemplate/release' ,
method : 'post' ,
data : data ,
source : 'cm'
})
}
//获取我的单页列表
export function getMyPageList (data) {
return request({
url: 'design/myPage/lists' ,
method : 'post' ,
data : data ,
source : 'cm'
})
}
//修改我的单页
export function editMyPage (data) {
return request({
url: 'design/myPage/baseSave' ,
method : 'post' ,
data : data ,
source : 'cm'
})
}
//删除我的单页
export function deleteMyPage (data) {
return request({
url : 'design/myPage/delete' ,
method : 'post' ,
data : data ,
source : 'cm'
})
}
\ No newline at end of file
import request from '@/utils/request'
//获取支付信息
export function getPayConfigs() {
return request({
url: 'payments/api/getPayConfig',
method: 'post',
source : 'cm'
})
}
//获取店铺唯一标识码
export function getIdentifier() {
return request({
url: 'business/mall/identifier',
method: 'post',
source : 'cm'
})
}
// 支付中心扩展设置
export function settingExtends() {
return request({
url: 'payments/api/settingExtends',
method: 'post',
source : 'cm'
})
}
// 银行分支行记录(联行号信息)
export function bankBranch(data) {
return request({
url: 'payments/api/bankBranch',
method: 'post',
source : 'cm',
data:data
})
}
// 商户报备(资质提交)
export function meepay(data) {
return request({
url: 'payments/meepay/create',
method: 'post',
source : 'cm',
data:data
})
}
//商户报备资料及状态查询
export function meepayDetails(data) {
return request({
url: 'payments/meepay/details',
method: 'post',
source : 'cm',
data:data
})
}
//获取基础支付配置
export function getBaseConfig(data) {
return request({
url: 'payments/api/baseConfig/get',
method: 'post',
source : 'cm',
data:data
})
}
export function saveBaseConfig(data) {
return request({
url: 'payments/api/baseConfig/save',
method: 'post',
source : 'cm',
data:data
})
}
//微信支付配置
export function wxpayConfigSave(data) {
return request({
url: 'payments/wxpay/config/save',
method: 'post',
source : 'cm',
data:data,
headers: {
'Content-Type': 'multipart/form-data'
}
})
}
//支付配置获取
export function wxpayConfigGet(data) {
return request({
url: 'payments/wxpay/config',
method: 'post',
source : 'cm',
data:data,
})
}
export function fupayAreaLists(data) {
return request({
url: 'payments/fupay/areaLists',
method: 'post',
source : 'cm',
data:data,
})
}
//行业类目
export function fyIndustryCategoryLists(data) {
return request({
url: 'payments/fupay/industryCategoryLists',
method: 'post',
source : 'cm',
data:data,
})
}
export function fupayCheckName(data) {
return request({
url: 'payments/fupay/checkName',
method: 'post',
source : 'cm',
data:data,
})
}
export function fybankBranchLists(data) {
return request({
url: 'payments/fupay/bankBranchLists',
method: 'post',
source : 'cm',
data:data,
})
}
//富有支付创建
export function fupaySave(data) {
return request({
url: 'payments/fupay/save',
method: 'post',
source : 'cm',
data:data,
})
}
export function fupayDetails(data) {
return request({
url: 'payments/fupay/details',
method: 'post',
source : 'cm',
data:data,
})
}
\ No newline at end of file
import request from '@/utils/request'
//获取体验者列表
let getTestUserList = function (data) {
return request({
url: 'business/MallLiteManager/getTestUserList',
method: 'post',
data: data,
source: 'cm'
})
};
let addTestUser = function (data) {
return request({
url: 'business/MallLiteManager/addTestUser',
method: 'post',
data: data,
source: 'cm'
})
};
let deleteTestUser = function (data) {
return request({
url: 'business/MallLiteManager/deleteTestUser',
method: 'post',
data: data,
source: 'cm'
})
};
//获取授权链接
let toDoAuth = function (data) {
return request({
url: 'business/MallLiteManager/toDoAuth',
method: 'post',
data: data,
source: 'cm'
})
};
//上传代码
let upLoadCode = function (data) {
return request({
url: 'business/MallLiteManager/upLoadCode',
method: 'post',
data: data,
source: 'cm'
})
};
//提交审核
let submitAudi = function (data) {
return request({
url: 'business/MallLiteManager/submitAudit',
method: 'post',
data: data,
source: 'cm'
})
};
//查询审核状态
let saveLastestAuditStatus = function (data) {
return request({
url: 'business/MallLiteManager/saveLastestAuditStatus',
method: 'post',
data: data,
source: 'cm'
})
};
//发布审核代码
let releaseCode = function (data) {
return request({
url: 'business/MallLiteManager/releaseCode',
method: 'post',
data: data,
source: 'cm'
})
};
//重新授权
let refreshAuth = function (data) {
return request({
url: 'business/MallLiteManager/refreshAuth',
method: 'post',
data: data,
source: 'cm'
})
};
//取消授权
let deleteAuth = function (data) {
return request({
url: 'business/MallLiteManager/deleteAuth',
method: 'post',
data: data,
source: 'cm'
})
};
//取消授权
let baseInfo = function (data) {
return request({
url: 'business/mall/baseInfo',
method: 'post',
data: data,
source: 'cm'
})
};
//基础版伪授权
let basisAuth = function (data) {
return request({
url: 'business/mall/basisAuth/auth',
method: 'post',
data: data,
source: 'cm'
})
};
//获取基础版店铺信息
let getBasisAuth = function (data) {
return request({
url: 'business/mall/basisAuth/get',
method: 'post',
data: data,
source: 'cm'
})
};
//获取基础版店铺信息
let refresh = function (data) {
return request({
url: 'business/mall/basisAuth/refresh',
method: 'post',
data: data,
source: 'cm'
})
};
//获取基础版店铺信息
let getBaseInfo = function (data) {
return request({
url: 'business/mall/baseInfo',
method: 'post',
data: data,
source: 'cm'
})
};
//小程序信息获取类目
let mallLiteManagerCategory = function (data) {
return request({
url: 'business/mallLiteManager/lite/category',
method: 'post',
data: data,
source: 'cm'
})
};
//撤回小程序审核
let reviewWithdrawal = function (data) {
return request({
url: 'business/mallLiteManager/reviewWithdrawal',
method: 'post',
data: data,
source: 'cm'
})
};
export {
getTestUserList,
addTestUser,
deleteTestUser,
toDoAuth,
upLoadCode,
submitAudi,
saveLastestAuditStatus,
releaseCode,
deleteAuth,
refreshAuth,
baseInfo,
basisAuth,
getBasisAuth,
refresh,
getBaseInfo,
mallLiteManagerCategory,
reviewWithdrawal
}
\ No newline at end of file
import request from '@/utils/request'
//展示小程序分享
export function getShareApp(data) {
return request({
url: 'storemalls/mallInfo/showShare',
method: 'post',
data: data
})
}
//设置小程序分享
export function setShareApp(data) {
return request({
url: 'storemalls/mallInfo/share',
method: 'post',
data: data
})
}
import request from '@/utils/request'
//获取我的店铺信息
export function getMyStoreInfo() {
return request({
url: 'storemalls/mallInfo/setInfoShow',
method: 'post',
})
}
//设置我的店铺信息
export function setMyStoreInfo(data) {
return request({
url: 'storemalls/mallInfo/setInfo',
method: 'post',
data: data
})
}
//设置店铺访问密码
export function setAccessPassword(data) {
return request({
url: '/business/mall/accessPassword/set',
method: 'post',
data: data,
source:'cm'
})
}
//设置店铺访问密码
export function getAccessPassword(data) {
return request({
url: '/business/mall/accessPassword/get',
method: 'post',
data: data,
source:'cm'
})
}
/**
*模板市场相关接口
*/
import request from '@/utils/request'
//获取分类列表
export function getCategoryList (data) {
return request({
url: 'design/api/templateCategoryLists',
method: 'post',
data: data,
source: 'ds'
})
}
//获取模版列表
export function getTemplateList (data) {
return request({
url: 'design/template/lists',
method: 'post',
data: data,
source: 'ds'
})
}
//获取单页列表
export function getPageList (data) {
return request({
url: 'design/page/lists',
method: 'post',
data: data,
source: 'ds'
})
}
//使用模板
export function useSimpleTemplate (data) {
return request({
url : 'design/myTemplate/useTemplate' ,
method : 'post' ,
data : data ,
source : 'ds'
})
}
//使用单页
export function useSimplePage (data) {
return request({
url : 'design/myPage/usePage' ,
method : 'post' ,
data : data ,
source : 'ds'
})
}
//生成套装模板
export function createTemplate (data) {
return request({
url : 'design/template/builder' ,
method : 'post' ,
data ,
source : 'ds'
})
}
//删除套装模板
export function deleteTemplate (data) {
return request({
url : 'design/api/suitTemplateDelete' ,
method : 'post' ,
data ,
source : 'ds'
})
}
//获取访问权限
export function getUserAuth (data) {
return request({
url : 'design/api/checkAccountTokenPermission' ,
method : 'post' ,
data ,
source : 'ds'
})
}
\ No newline at end of file
import request from '@/utils/request'
export function addressLibraryList(data) {
return request({
url: 'logistics/addressLibrary/list',
method: 'post',
data: data,
source: 'cm'
})
};
export function addressLibraryCreate(data) {
return request({
url: 'logistics/AddressLibrary/create',
method: 'post',
data: data,
source: 'cm'
})
};
export function addressLibraryEdit(data) {
return request({
url: 'logistics/AddressLibrary/edit',
method: 'post',
data: data,
source: 'cm'
})
};
export function addressLibraryDetail(data) {
return request({
url: 'logistics/addressLibrary/detail',
method: 'post',
data: data,
source: 'cm'
})
};
export function addressLibraryDelete(data) {
return request({
url: 'logistics/addressLibrary/delete',
method: 'post',
data: data,
source: 'cm'
})
};
export function evaluationList(data) {
return request({
url: 'logistics/evaluation/list',
method: 'post',
data: data,
source: 'cm'
})
};
export function evaluationHidden(data) {
return request({
url: 'logistics/evaluation/hidden',
method: 'post',
data: data,
source: 'cm'
})
};
export function createCommonly(data) {
return request({
url: 'logistics/commonly/create',
method: 'post',
data: data,
source: 'cm'
})
};
export function listCommonly(data) {
return request({
url: 'logistics/commonly/list',
method: 'post',
data: data,
source: 'cm'
})
};
export function deleteCommonly(data) {
return request({
url: 'logistics/commonly/delete',
method: 'post',
data: data,
source: 'cm'
})
};
export function detailCommonly(data) {
return request({
url: 'logistics/commonly/detail',
method: 'post',
data: data,
source: 'cm'
})
};
export function editCommonly(data) {
return request({
url: '/logistics/commonly/edit',
method: 'post',
data: data,
source: 'cm'
})
};
export function autoEvaluationSet(data) {
return request({
url: 'storemalls/api/autoEvaluationSet',
method: 'post',
data: data,
})
}
import request from '@/utils/request'
//设置库存预警
export function createAgainst (data) {
return request({
url: 'storemalls/MallInfo/stockUpdate',
method: 'post',
data: data
})
};
//获取库存预警
export function getAgainst (data) {
return request({
url: 'storemalls/MallInfo/stockShow',
method: 'post',
data: data
})
};
import request from '@/utils/request'
//打印机列表
export function billList(data) {
return request({
url: '/printers/manager/lists',
method: 'post',
data: data,
source: 'cm'
})
}
//打印机新增编辑
export function save(data) {
return request({
url: '/printers/manager/save',
method: 'post',
data: data,
source: 'cm'
})
}
//打印机详情
export function details(data) {
return request({
url: '/printers/manager/details',
method: 'post',
data: data,
source: 'cm'
})
}
//打印机删除
export function deleteData(data) {
return request({
url: '/printers/manager/operation/delete',
method: 'post',
data: data,
source: 'cm'
})
}
//打印机启用
export function enable(data) {
return request({
url: '/printers/manager/operation/enable',
method: 'post',
data: data,
source: 'cm'
})
}
//打印机禁用
export function disable(data) {
return request({
url: '/printers/manager/operation/disable',
method: 'post',
data: data,
source: 'cm'
})
}
//打印机音量
export function setSound(data) {
return request({
url: '/printers/manager/setSound',
method: 'post',
data: data,
source: 'cm'
})
}
import request from '@/utils/request'
//创建运费模板
export function createProductFreight(data) {
return request({
url: 'storeproducts/ProductFreight/create',
method: 'post',
data: data
})
};
//获取运费模板列表
export function listProductFreight(data) {
return request({
url: 'storeproducts/ProductFreight/list',
method: 'post',
data: data
})
};
//删除运费模板
export function delProductFreight(data) {
return request({
url: 'storeproducts/ProductFreight/delete',
method: 'post',
data: data
})
};
//编辑运费模板
export function editProductFreight(data) {
return request({
url: 'storeproducts/ProductFreight/edit',
method: 'post',
data: data
})
}
//获取运费模板详情
export function detailProductFreight(data) {
return request({
url: 'storeproducts/ProductFreight/detail',
method: 'post',
data: data
})
}
export function listNProductFreight(data) {
return request({
url: 'storeproducts/ProductFreight/listN',
method: 'post',
data: data
})
};
export function createNProductFreight(data) {
return request({
url: 'storeproducts/productFreight/createN',
method: 'post',
data: data
})
};
export function editNProductFreight(data) {
return request({
url: 'storeproducts/productFreight/editN',
method: 'post',
data: data
})
};
export function deleteNProductFreight(data) {
return request({
url: 'storeproducts/ProductFreight/deleteN',
method: 'post',
data: data
})
};
export function copyProductFreight(data) {
return request({
url: 'storeproducts/productFreight/copy',
method: 'post',
data: data
})
};
export function detailNProductFreight(data) {
return request({
url: 'storeproducts/ProductFreight/detailN',
method: 'post',
data: data
})
}
\ No newline at end of file
import request from '@/utils/request'
//编辑设置订单取消时间
export function orderTimerSetting (data) {
return request({
url: '/storemalls/mallInfo/orderDue',
method: 'post',
data: data
})
}
//获取设置的时间
export function getOrderTimerSetting () {
return request({
url: '/storemalls/mallInfo/orderDueShow',
method: 'post'
})
}
//查询指定店铺信息
export function getMallInfo () {
return request({
url: '/storemalls/api/mallInfo',
method: 'post'
})
}
//修改支付后维权时间
export function setAfterActivist (data) {
return request({
url: '/storemalls/mallInfo/afterActivist',
method: 'post',
data: data
})
}
import request from '@/utils/request'
import axios from 'axios'
//设置logo
export function saveCustomSupport(data) {
return request({
url: 'business/mall/customSupport/save',
method: 'post',
data: data,
source: 'cm'
})
}
//获取存储
export function customSupport(data) {
return request({
url: 'business/mall/customSupport',
method: 'post',
data: data,
source: 'cm'
})
}
export function uploadImg({token,key,file}) {
let data = new FormData();
data.append('token',token);
data.append('key',key);
data.append('file',file);
return axios.post('https://upload.qiniup.com', data,).then(res => res.data)
}
//功能操作(状态、开启或关闭)
export function statusInfo(data) {
return request({
url: 'business/mallLiteManager/goodThing/status/info',
method: 'post',
data: data,
source: 'cm'
})
}
export function statusStart(data) {
return request({
url: 'business/mallLiteManager/goodThing/status/start',
method: 'post',
data: data,
source: 'cm'
})
}
export function statusClose(data) {
return request({
url: 'business/mallLiteManager/goodThing/status/close',
method: 'post',
data: data,
source: 'cm'
})
}
import request from '@/utils/request'
//编辑设置订单取消时间
export function passwordChange (data) {
return request({
url: '/business/api/passwordChange',
method: 'post',
data: data
})
};
import request from '@/utils/request'
export function getProlist(data) {
return request({
url: '/business/mallLiteManager/navigateToMiniProgram/lists',
method: 'post',
data: data,
source: 'cm'
})
}
export function saveProlist(data) {
return request({
url: '/business/mallLiteManager/navigateToMiniProgram/save',
method: 'post',
data: data,
source: 'cm'
})
}
export function deleteProlist(data) {
return request({
url: '/business/mallLiteManager/navigateToMiniProgram/operation/delete',
method: 'post',
data: data,
source: 'cm'
})
}
export function getInformation(data) {
return request({
url: '/business/mallLiteManager/navigateToMiniProgram/info',
method: 'post',
data: data,
source: 'cm'
})
}
export function upLoadCode() {
return request({
url: '/business/MallLiteManager/upLoadCode',
method: 'post',
source: 'cm'
})
}
import request from '@/utils/request'
//编辑设置订单取消时间
export function subAccountLists(data) {
return request({
url: '/business/mall/subAccountLists',
method: 'post',
data: data,
source: 'cm'
})
}
//员工角色创建
export function subAccountSave(data) {
return request({
url: '/business/mall/subAccountSave',
method: 'post',
data: data,
source: 'cm'
})
}
//验证是不是添加过账号
export function checkBusinessAccount(data) {
return request({
url: 'business/api/checkBusinessAccount',
method: 'post',
data: data,
source: 'cm'
})
}
//发送短信验证码
export function subAccountSmsSend(data) {
return request({
url: 'business/mall/subAccountSmsSend',
method: 'post',
data: data,
source: 'cm'
})
}
//员工详情
export function subAccountDetails(data) {
return request({
url: 'business/mall/subAccountDetails',
method: 'post',
data: data,
source: 'cm'
})
}
//角色列表
export function subAccountRole(data) {
return request({
url: 'business/mall/subAccountRole',
method: 'post',
data: data,
source: 'cm'
})
}
//操作
export function todoUser(type, data) {
return request({
url: `business/mall/subAccountOperation/${type}`,
method: 'post',
data: data,
source: 'cm'
})
}
//店铺子账号创建权限信息
export function subAccountAuthInfo(type, data) {
return request({
url:'business/mall/subAccountAuthInfo',
method: 'post',
data: data,
source: 'cm'
})
}
\ No newline at end of file
import request from '@/utils/request'
//编辑设置订单取消时间
export function subscribeCurrencySetting (data) {
return request({
url: '/storeproducts/ProductSubscribe/subscribeCurrencySetting',
method: 'post',
data: data
})
}
//编辑设置订单取消时间
export function getSetting (data) {
return request({
url: '/storeproducts/ProductSubscribe/getSetting',
method: 'post',
data: data
})
}
\ No newline at end of file
No preview for this file type
No preview for this file type
No preview for this file type
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
No preview for this file type
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
This diff could not be displayed because it is too large.
No preview for this file type
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!