Commit fac5d812 by 前端

Merge branch 'v1.0.0' into 'master'

上线合并

See merge request !4
2 parents a965c5be 38a577ad
Showing 357 changed files with 1387 additions and 0 deletions
> 1%
last 2 versions
# http://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[*.md]
insert_final_newline = false
trim_trailing_whitespace = false
NODE_ENV='development'
# must start with VUE_APP_
VUE_APP_ENV = 'development'
NODE_ENV='production'
# must start with VUE_APP_
VUE_APP_ENV = 'production'
\ No newline at end of file
NODE_ENV='production'
# must start with VUE_APP_
VUE_APP_ENV = 'staging'
build/*.js
src/assets
src/config
public
dist
module.exports = {
root: true,
env: {
node: true
},
extends: ['plugin:vue/essential', 'eslint:recommended'],
parserOptions: {
parser: 'babel-eslint'
},
rules: {
'vue/max-attributes-per-line': [
2,
{
singleline: 10,
multiline: {
max: 1,
allowFirstLine: false
}
}
],
'vue/singleline-html-element-content-newline': 'off',
'vue/multiline-html-element-content-newline': 'off',
'vue/name-property-casing': ['error', 'PascalCase'],
'vue/no-v-html': 'off',
'accessor-pairs': 2,
'arrow-spacing': [
2,
{
before: true,
after: true
}
],
'block-spacing': [2, 'always'],
'brace-style': [
2,
'1tbs',
{
allowSingleLine: true
}
],
camelcase: [
0,
{
properties: 'always'
}
],
'comma-dangle': [2, 'never'],
'comma-spacing': [
2,
{
before: false,
after: true
}
],
'comma-style': [2, 'last'],
'constructor-super': 2,
curly: [2, 'multi-line'],
'dot-location': [2, 'property'],
'eol-last': 2,
eqeqeq: ['error', 'always', { null: 'ignore' }],
'generator-star-spacing': [
2,
{
before: true,
after: true
}
],
'handle-callback-err': [2, '^(err|error)$'],
indent: [
2,
2,
{
SwitchCase: 1
}
],
'jsx-quotes': [2, 'prefer-single'],
'key-spacing': [
2,
{
beforeColon: false,
afterColon: true
}
],
'keyword-spacing': [
2,
{
before: true,
after: true
}
],
'new-cap': [
2,
{
newIsCap: true,
capIsNew: false
}
],
'new-parens': 2,
'no-array-constructor': 2,
'no-caller': 2,
'no-console': 'off',
'no-class-assign': 2,
'no-cond-assign': 2,
'no-const-assign': 2,
'no-control-regex': 0,
'no-delete-var': 2,
'no-dupe-args': 2,
'no-dupe-class-members': 2,
'no-dupe-keys': 2,
'no-duplicate-case': 2,
'no-empty-character-class': 2,
'no-empty-pattern': 2,
'no-eval': 2,
'no-ex-assign': 2,
'no-extend-native': 2,
'no-extra-bind': 2,
'no-extra-boolean-cast': 2,
'no-extra-parens': [2, 'functions'],
'no-fallthrough': 2,
'no-floating-decimal': 2,
'no-func-assign': 2,
'no-implied-eval': 2,
'no-inner-declarations': [2, 'functions'],
'no-invalid-regexp': 2,
'no-irregular-whitespace': 2,
'no-iterator': 2,
'no-label-var': 2,
'no-labels': [
2,
{
allowLoop: false,
allowSwitch: false
}
],
'no-lone-blocks': 2,
'no-mixed-spaces-and-tabs': 2,
'no-multi-spaces': 2,
'no-multi-str': 2,
'no-multiple-empty-lines': [
2,
{
max: 1
}
],
'no-native-reassign': 2,
'no-negated-in-lhs': 2,
'no-new-object': 2,
'no-new-require': 2,
'no-new-symbol': 2,
'no-new-wrappers': 2,
'no-obj-calls': 2,
'no-octal': 2,
'no-octal-escape': 2,
'no-path-concat': 2,
'no-proto': 2,
'no-redeclare': 2,
'no-regex-spaces': 2,
'no-return-assign': [2, 'except-parens'],
'no-self-assign': 2,
'no-self-compare': 2,
'no-sequences': 2,
'no-shadow-restricted-names': 2,
'no-spaced-func': 2,
'no-sparse-arrays': 2,
'no-this-before-super': 2,
'no-throw-literal': 2,
'no-trailing-spaces': 2,
'no-undef': 2,
'no-undef-init': 2,
'no-unexpected-multiline': 2,
'no-unmodified-loop-condition': 2,
'no-unneeded-ternary': [
2,
{
defaultAssignment: false
}
],
'no-unreachable': 2,
'no-unsafe-finally': 2,
'no-unused-vars': [
2,
{
vars: 'all',
args: 'none'
}
],
'no-useless-call': 2,
'no-useless-computed-key': 2,
'no-useless-constructor': 2,
'no-useless-escape': 0,
'no-whitespace-before-property': 2,
'no-with': 2,
'one-var': [
2,
{
initialized: 'never'
}
],
'operator-linebreak': [
2,
'after',
{
overrides: {
'?': 'before',
':': 'before'
}
}
],
'padded-blocks': [2, 'never'],
quotes: [
2,
'single',
{
avoidEscape: true,
allowTemplateLiterals: true
}
],
semi: [2, 'never'],
'semi-spacing': [
2,
{
before: false,
after: true
}
],
'space-before-blocks': [2, 'always'],
'space-before-function-paren': [2, 'never'],
'space-in-parens': [2, 'never'],
'space-infix-ops': 2,
'space-unary-ops': [
2,
{
words: true,
nonwords: false
}
],
'spaced-comment': [
2,
'always',
{
markers: ['global', 'globals', 'eslint', 'eslint-disable', '*package', '!', ',']
}
],
'template-curly-spacing': [2, 'never'],
'use-isnan': 2,
'valid-typeof': 2,
'wrap-iife': [2, 'any'],
'yield-star-spacing': [2, 'both'],
yoda: [2, 'never'],
'prefer-const': 2,
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'object-curly-spacing': [
2,
'always',
{
objectsInObjects: false
}
],
'array-bracket-spacing': [2, 'never']
}
}
.DS_Store
node_modules
/dist
/docs
# local env files
.env.local
.env.*.local
# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
package-lock.json
yarn.lock
\ No newline at end of file
/*
* @Author: yangming yangming@didihu.com.cn
* @Date: 2024-01-26 09:50:09
* @LastEditors: huyue
* @LastEditTime: 2024-01-26 16:39:25
* @FilePath: \glsk-data-view-scene\.postcssrc.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
// https://github.com/michael-ciniawsky/postcss-load-config
module.exports = {
plugins: {
autoprefixer: {
overrideBrowserslist: ['Android 4.1', 'iOS 7.1', 'Chrome > 31', 'ff > 31', 'ie >= 8']
},
// 'postcss-pxtorem': {
// rootValue: 37.5,
// propList: ['*'],
// selectorBlackList: ['van-','ignore','ign-','.hairlines']
// },
'postcss-px-to-viewport': {
viewportWidth: 1920, // 视窗的宽度,对应的是我们设计稿的宽度,一般是750
unitPrecision: 3, // 指定`px`转换为视窗单位值的小数位数(很多时候无法整除)
viewportUnit: 'vw', // 指定需要转换成的视窗单位,建议使用vw
selectorBlackList: ['.ignore', '.hairlines', 'ign-'], // 指定不转换为视窗单位的类,可以自定义,可以无限添加,建议定义一至两个通用的类名
minPixelValue: 1, // 小于或等于`1px`不转换为视窗单位,你也可以设置为你想要的值
mediaQuery: false // 允许在媒体查询中转换`px`
}
}
}
{
"printWidth": 200,
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "none",
"semi": false,
"wrap_line_length": 120,
"wrap_attributes": "auto",
"proseWrap": "always",
"arrowParens": "avoid",
"bracketSpacing": true,
"htmlWhitespaceSensitivity": "ignore",
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
"jsxBracketSameLine": true,
"files.insertFinalNewline": true,
"useTabs": false,
"eslintIntegration": true,
"overrides": [
{
"files": ".prettierrc",
"options": {
"parser": "json"
}
}
],
"endOfLine": "auto"
}
File mode changed
// 获取 VUE_APP_ENV 非 NODE_ENV,测试环境依然 console
const IS_PROD = ['production', 'prod'].includes(process.env.VUE_APP_ENV)
const plugins = [
[
'import',
{
libraryName: 'vant',
libraryDirectory: 'es',
style: true
},
'vant'
]
]
// 去除 console.log
if (IS_PROD) {
plugins.push('transform-remove-console')
}
module.exports = {
presets: [['@vue/cli-plugin-babel/preset', { useBuiltIns: 'usage', corejs: 3 }]],
plugins
}
{
"name": "glsk-data-view-scene",
"version": "1.0.0",
"description": "glsk-data-view-scene for BI",
"author": "limin <limin.mail@qq.com>",
"private": true,
"scripts": {
"serve": "vue-cli-service serve --open",
"build": "vue-cli-service build",
"stage": "vue-cli-service build --mode staging",
"lint": "vue-cli-service lint --fix",
"dev": "npm run serve"
},
"dependencies": {
"TagCloud": "^2.4.0",
"autoprefixer": "^8.0.0",
"core-js": "^3.6.4",
"dayjs": "^1.10.5",
"echarts": "^5.3.3",
"element-ui": "^2.15.13",
"lib-flexible": "^0.3.2",
"postcss-loader": "^6.2.0",
"sha1": "^1.1.1",
"storejs": "^1.1.0",
"vconsole": "^3.7.0",
"vue": "^2.6.11",
"vue-router": "^3.2.0",
"vuex": "^3.4.0"
},
"devDependencies": {
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-plugin-eslint": "~4.5.0",
"@vue/cli-plugin-router": "~4.5.0",
"@vue/cli-plugin-vuex": "~4.5.0",
"@vue/cli-service": "~4.5.0",
"babel-eslint": "^10.1.0",
"babel-plugin-import": "^1.13.0",
"babel-plugin-transform-remove-console": "^6.9.4",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^6.2.2",
"node-sass": "^4.14.1",
"postcss-px-to-viewport": "^1.1.1",
"postcss-pxtorem": "^5.1.1",
"sass-loader": "^8.0.2",
"script-ext-html-webpack-plugin": "^2.1.4",
"vue-loader": "^15.9.8",
"vue-template-compiler": "^2.6.11",
"webpack-bundle-analyzer": "^3.8.0"
}
}
<!--
* @Description:
* @Author: huyue
* @Date: 2023-07-04 11:48:53
* @LastEditors: huyue
* @LastEditTime: 2023-07-04 11:49:00
-->
<template>
<div id="app">
<router-view />
</div>
</template>
<script>
export default {
name: 'App'
}
</script>
<style lang="scss">
.tagcloud--item{
color: #fff !important;
}
</style>
/*
* @Descripttion:API 统一外部调用入口
* @version: 1.0.0
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @LastEditors: huyue
* @LastEditTime: 2023-07-13 15:06:41
*/
const modulesFiles = require.context('./modules', true, /\.js$/)
const modules = modulesFiles.keys().reduce((modules, modulePath) => {
const moduleName = modulePath.replace(/^\.\/(.*)\.\w+$/, '$1')
const value = modulesFiles(modulePath)
modules[moduleName] = value.default
return modules
}, {})
export default modules
// 总 - 获取门店总产值、客单价、转化率排行
const getAllMerchantRank = params => {
return window.$HTTP.get('upgrade/getAllMerchantRank', params)
}
// 总 - 获取业务开始事件、总门店数等
const getAllOverview = params => {
return window.$HTTP.get('upgrade/getAllOverview', params)
}
// 总 - 获取门店员工业绩、客单价、转化率排行
const getAllStaffRank = params => {
return window.$HTTP.get('upgrade/getAllStaffRank', params)
}
// 总 - 获取门店的总产值、客单价、转化率趋势
const getAllTrend = params => {
return window.$HTTP.get('upgrade/getAllTrend', params)
}
// 单 - 获取门店列表
const getMerchant = params => {
return window.$HTTP.get('upgrade/getMerchant', params)
}
// 单 - 获取门店商品销售排行
const getMerchantGoodsRank = params => {
return window.$HTTP.get('upgrade/getMerchantGoodsRank', params)
}
// 单 - 获取门店的总展业时间&最近订单时间、总产值&本月产值等
const getMerchantOverview = params => {
return window.$HTTP.get('upgrade/getMerchantOverview', params)
}
// 单 - 获取门店支付方式占比
const getMerchantPay = params => {
return window.$HTTP.get('upgrade/getMerchantPay', params)
}
// 单 - 获取门店商品供应方占比
const getMerchantSupply = params => {
return window.$HTTP.get('upgrade/getMerchantSupply', params)
}
// 单 - 获取门店产值、客单价、转化率趋势
const getMerchantTrend = params => {
return window.$HTTP.get('upgrade/getMerchantTrend', params)
}
// 总 - 获取区域门店数据
const getRegionMerchant = params => {
return window.$HTTP.get('upgrade/getRegionMerchant', params)
}
// 总 - 获取春雷行动业务趋势
const getSpringbudTrend = params => {
return window.$HTTP.get('upgrade/getSpringbudTrend', params)
}
// 总 - 获取年份
const getYears = params => {
return window.$HTTP.get('upgrade/getYears', params)
}
// 总体----获取上月新增门店
const getIncreMerchant = params => {
return window.$HTTP.get('upgrade/getIncreMerchant', params)
}
// 总体----获取新增门店趋势
const getIncreMerchantTrend = params => {
return window.$HTTP.get('upgrade/getIncreMerchantTrend', params)
}
export default {
getAllMerchantRank,
getAllOverview,
getAllStaffRank,
getAllTrend,
getMerchant,
getMerchantGoodsRank,
getMerchantOverview,
getMerchantPay,
getMerchantSupply,
getMerchantTrend,
getRegionMerchant,
getSpringbudTrend,
getYears,
getIncreMerchant,
getIncreMerchantTrend
}
// 单店----获取门店的活动明细数据
const getActivityDetail = params => {
return window.$HTTP.get('crowdFunding/getActivityDetail', params)
}
// 总体(广联维度)----获取近一年活动趋势
const getActivityTrend = params => {
return window.$HTTP.get('crowdFunding/getActivityTrend', params)
}
// 总体----获取总产值、总场次、总订单数
const getAllOverview = params => {
return window.$HTTP.get('crowdFunding/getAllOverview', params)
}
// 总体(品牌品类维度)----获取各品牌下各品牌的 场次、产值 、平均转化率 、平均退单率排名
const getBrandRank = params => {
return window.$HTTP.get('crowdFunding/getBrandRank', params)
}
// 总体(广联维度)----获取所有门店总览:总场次、进行中场次、已完成场次、产值、订单数、转换率、退单率
const getGLOverview = params => {
return window.$HTTP.get('crowdFunding/getGLOverview', params)
}
// 单店----获取门店列表
const getMerchant = params => {
return window.$HTTP.get('crowdFunding/getMerchant', params)
}
// 总体(广联维度)----获取近一年门店活动排名
const getMerchantActivityRank = params => {
return window.$HTTP.get('crowdFunding/getMerchantActivityRank', params)
}
// 单店----获取门店的总产值(周同比&日环比)、总场次、平均客单价、平均转化率、平均退单率
const getMerchantOverview = params => {
return window.$HTTP.get('crowdFunding/getMerchantOverview', params)
}
// 总体(广联维度)----获取 产值、转换率、退单率 门店排名
const getMerchantRank = params => {
return window.$HTTP.get('crowdFunding/getMerchantRank', params)
}
// 总体----获取月份
const getMonth = params => {
return window.$HTTP.get('crowdFunding/getMonth', params)
}
// 总体(广联维度)----获取 总场次、进行中、已完成的支付方式占比
const getPaymentModel = params => {
return window.$HTTP.get('crowdFunding/getPaymentModel', params)
}
export default {
getActivityDetail,
getActivityTrend,
getAllOverview,
getBrandRank,
getGLOverview,
getMerchant,
getMerchantActivityRank,
getMerchantOverview,
getMerchantRank,
getMonth,
getPaymentModel
}
// 驻店零售权益----获取总产值(周同比&日环比)、推荐量、成交量(周同比&日环比)、转化率、客单价
const getRetailOverview = params => {
return window.$HTTP.get('member/getRetailOverview', params)
}
// 驻店零售权益----获取产值、转换率、客单价门店排名
const getRetailRank = params => {
return window.$HTTP.get('member/getRetailRank', params)
}
// 驻店零售权益----获取产值、订单量趋势
const getRetailTrend = params => {
return window.$HTTP.get('member/getRetailTrend', params)
}
// 驻店零售权益----获取年份和区域
const getRetailYearsArea = params => {
return window.$HTTP.get('member/getRetailYearsArea', params)
}
// 批发销售权益----获取提单门店、提单量占比
const getWholesaleNum = params => {
return window.$HTTP.get('member/getWholesaleNum', params)
}
// 批发销售权益----获取广汇/非广汇提单门店排名
const getWholesaleRank = params => {
return window.$HTTP.get('member/getWholesaleRank', params)
}
// 批发销售权益----获取广汇/非广汇提单门店、提单量趋势
const getWholesaleTrend = params => {
return window.$HTTP.get('member/getWholesaleTrend', params)
}
// 批发销售权益----获取年份
const getWholesaleYears = params => {
return window.$HTTP.get('member/getWholesaleYears', params)
}
// 延保权益----获取总产值(周同比&日环比)、推荐量、成交量(周同比&日环比)、转化率、客单价
const getExtendinsurOverview = params => {
return window.$HTTP.get('member/getExtendinsurOverview', params)
}
// 延保权益----获取产值、转换率、客单价门店排名
const getExtendinsurRank = params => {
return window.$HTTP.get('member/getExtendinsurRank', params)
}
// 延保权益----获取产值、订单量趋势
const getExtendinsurTrend = params => {
return window.$HTTP.get('member/getExtendinsurTrend', params)
}
// 延保权益----获取年份和区域
const getExtendinsurYearsArea = params => {
return window.$HTTP.get('member/getExtendinsurYearsArea', params)
}
// 批发销售权益----获取营业门店、停业门店占比
const getWholesaleOpenCloseNum = params => {
return window.$HTTP.get('member/getWholesaleOpenCloseNum', params)
}
export default {
getRetailOverview,
getRetailRank,
getRetailTrend,
getRetailYearsArea,
getWholesaleNum,
getWholesaleRank,
getWholesaleTrend,
getWholesaleYears,
getExtendinsurOverview,
getExtendinsurRank,
getExtendinsurTrend,
getExtendinsurYearsArea,
getWholesaleOpenCloseNum
}
// 总览数据:核心指标、数字化连接、数字化管理(线索服务/会员权益/虎哥E盾)、数字化营销(1.1精品升级/1.3售后众筹)
const getAllOverview = params => {
return window.$HTTP.get('inner/getAllOverview', params)
}
// 核心指标:门店活跃统计
const getCoreActiveMerchant = params => {
return window.$HTTP.get('inner/getCoreActiveMerchant', params)
}
// 核心指标:SAAS门店留存率
const getCoreRetention = params => {
return window.$HTTP.get('inner/getCoreRetention', params)
}
// 数字化链接:成品设备激活趋势
const getLinkFinishedProductTrend = params => {
return window.$HTTP.get('inner/getLinkFinishedProductTrend', params)
}
// 数字化管理(线索服务):设备订阅数量和线索相关性分析
const getManageClueAnalysis = params => {
return window.$HTTP.get('inner/getManageClueAnalysis', {})
}
// 数字化管理(线索服务):按年统计销售金额的合理性
const getManageClueSalesAmountRationality = params => {
return window.$HTTP.get('inner/getManageClueSalesAmountRationality', params)
}
// 数字化管理(线索服务):注册门店趋势 && 活跃门店势 && 月收入趋势 && 销售渠道趋势
const getManageClueTrend = params => {
return window.$HTTP.get('inner/getManageClueTrend', {})
}
// 数字化管理(虎哥E盾):按年统计客户销售金额的合理性
const getManageESalesAmountRationality = params => {
return window.$HTTP.get('inner/getManageESalesAmountRationality', params)
}
// 数字化管理(虎哥E盾):月收入趋势
const getManageETrend = params => {
return window.$HTTP.get('inner/getManageETrend', params)
}
// 数字化管理(会员权益):按年统计客户销售金额的合理性
const getManageMemberSalesAmountRationality = params => {
return window.$HTTP.get('inner/getManageMemberSalesAmountRationality', params)
}
// 数字化管理(会员权益):月收入趋势
const getManageMemberTrend = params => {
return window.$HTTP.get('inner/getManageMemberTrend', params)
}
// 数字化营销(1.3售后众筹): 活动订单分布
const getMarketingCrowdFundingActivityDistr = params => {
return window.$HTTP.get('inner/getMarketingCrowdFundingActivityDistr', params)
}
// 数字化营销(1.3售后众筹):活动订单金额分布
const getMarketingCrowdFundingActivityMoneyDistr = params => {
return window.$HTTP.get('inner/getMarketingCrowdFundingActivityMoneyDistr', params)
}
// 数字化营销(1.3售后众筹):门店订单分布
const getMarketingCrowdFundingMerDistr = params => {
return window.$HTTP.get('inner/getMarketingCrowdFundingMerDistr', params)
}
// 数字化营销(1.3售后众筹):活动趋势 && 订单趋势 && 客单价趋势
const getMarketingCrowdFundingTrend = params => {
return window.$HTTP.get('inner/getMarketingCrowdFundingTrend', params)
}
// 数字化营销(1.1精品升级):门店订单金额分布 && 门店订单量分布
const getMarketingDistribution = params => {
return window.$HTTP.get('inner/getMarketingDistribution', params)
}
// 数字化营销(1.1精品升级):注册门店/活跃门店/月订单量收入趋势
const getMarketingTrend = params => {
return window.$HTTP.get('inner/getMarketingTrend', params)
}
// 数字化营销(1.3售后众筹):门店 && 订单 && 活动 && 订单金额 分布
const getMarketingCrowdFundingDistr = params => {
return window.$HTTP.get('inner/getMarketingCrowdFundingDistr', params)
}
export default {
getAllOverview,
getCoreActiveMerchant,
getCoreRetention,
getLinkFinishedProductTrend,
getManageClueAnalysis,
getManageClueSalesAmountRationality,
getManageClueTrend,
getManageESalesAmountRationality,
getManageETrend,
getManageMemberSalesAmountRationality,
getManageMemberTrend,
getMarketingCrowdFundingActivityDistr,
getMarketingCrowdFundingActivityMoneyDistr,
getMarketingCrowdFundingMerDistr,
getMarketingCrowdFundingTrend,
getMarketingDistribution,
getMarketingTrend,
getMarketingCrowdFundingDistr
}
// 运营版接口
// 企业客户总览接口---获取企业客户总览数据-区域(省份前5)/品牌(品牌前5)/门店类型分布(门店类型:豪华、合资、新能源、自主品牌)
const getEnterpriseDistribution = params => {
return window.$HTTP.get('dj/overview/getEnterpriseDistribution', params)
}
// 企业客户总览接口---获取企业客户总览数据(包括:总客户数、新增客户数、留存率、单店产值)
const getEnterpriseOverview = params => {
return window.$HTTP.get('dj/overview/getEnterpriseOverview', params)
}
// 企业客户总览接口---获取企业客户数据近12个月趋势图(包括:总客户数、新增客户数)
const getEnterpriseOverviewTrend = params => {
return window.$HTTP.get('dj/overview/getEnterpriseOverviewTrend', params)
}
// 企业客户总览接口---获取路演版本三项新的指标
const getRoadShowNewIndicators = params => {
return window.$HTTP.get('dj/overview/getRoadShowNewIndicators', params)
}
// 客户数字化业务---门店会员的权益(线索订阅门店数(累计)、线索订阅门店数(当年新增)、活跃使用门店、留存率、自店权益、数字权益、自店权益_产值、数字权益_产值)
const getMerchantMemberEquity = params => {
return window.$HTTP.get('dj/digit/getMerchantMemberEquity', params)
}
// 客户数字化业务---智慧车管线索订阅(线索订阅门店数(累计)、线索订阅门店数(当年新增)、活跃使用门店、留存率、高危点、高危报警、挽回损失)
const getSmartCarManageClueSubscription = params => {
return window.$HTTP.get('dj/digit/getSmartCarManageClueSubscription', params)
}
// 客户数字化业务---智慧门店线索订阅(线索订阅门店数(累计)、线索订阅门店数(当年新增)、活跃使用门店、留存率、到店线索、送修线索、续保线索、到店线索_产值、送修线索_产值、续保线索_产值)
const getSmartMerchantClueSubscription = params => {
return window.$HTTP.get('dj/digit/getSmartMerchantClueSubscription', params)
}
// 私域用户池总览接口---客户价值分析
const getCustomerValueAnalysis = params => {
return window.$HTTP.get('dj/private/getCustomerValueAnalysis', params)
}
// 私域用户池总览接口---客户年龄分布/车价占比/购车年限分布/里程分布
const getDistribution = params => {
return window.$HTTP.get('dj/private/getDistribution', params)
}
// 私域用户池总览接口---用户数、企微客户数、企微群数、小程序、个微客户数 趋势图
const getTrend = params => {
return window.$HTTP.get('dj/private/getTrend', params, false, true)
}
// 私域用户池总览接口---客户价值分析--品牌分布/区域分布
const getValueDistribution = params => {
return window.$HTTP.get('dj/private/getValueDistribution', params, false, true)
}
// 私域用户池总览接口---用户数:总数/当年新增,企微客户数:总数/当年新增,企微群数:总数/当年新增,小程序:总数/当年新增,个微客户数:总数/当年新增
const getoverview = params => {
return window.$HTTP.get('dj/private/getoverview', params)
}
// 营销增值服务业务接口---1.0新车权益销售、1.1新车精品升级、1.2新车线上转化、1.3存量用户众筹(累计展业门店数、当年新增、转化率、客单价、产值)
const getBusinessType = params => {
return window.$HTTP.get('dj/saasAdded/getBusinessType', params)
}
// 营销增值服务业务接口---累计展业门店数、当年新增门店数、产值_当月、产值_当年、客单价、业务品类_权益类、业务品类_膜类、业务品类_电子类
const getSaasValueaddedTransformationOverview = params => {
return window.$HTTP.get('dj/saasAdded/getSaasValueaddedTransformationOverview', params)
}
export default {
getEnterpriseDistribution,
getEnterpriseOverview,
getEnterpriseOverviewTrend,
getRoadShowNewIndicators,
getMerchantMemberEquity,
getSmartCarManageClueSubscription,
getSmartMerchantClueSubscription,
getCustomerValueAnalysis,
getDistribution,
getTrend,
getValueDistribution,
getoverview,
getBusinessType,
getSaasValueaddedTransformationOverview
}
/*
* @Description: 1.0 太阳膜接口
* @Author: huyue
* @Date: 2023-07-12 16:17:18
* @LastEditors: huyue
* @LastEditTime: 2023-07-17 10:15:45
*/
// 总 - 商品采购占比
const getAllGoodsRatio = params => {
return window.$HTTP.get('solarfilm/getAllGoodsRatio', params)
}
// 总 - 开通商户数和使用商户数 趋势
const getAllOpenBuyTrend = params => {
return window.$HTTP.get('solarfilm/getAllOpenBuyTrend', params)
}
// 总 - 获取所有门店的 总采购额(总计、本月) 、商城采购额(总计、本月) 、自采采购额(总计、本月)、开通商户数(总计、本月)、购买商户数(总计、本月)、入库使用商户数、业务时间
const getAllPurchase = params => {
return window.$HTTP.get('solarfilm/getAllPurchase', params)
}
// 总 - 商城采购额(占比)、自采采购额(占比) 趋势
const getAllPurchaseTrend = params => {
return window.$HTTP.get('solarfilm/getAllPurchaseTrend', params)
}
// 总 - 商品采购额排名
const getAllRanking = params => {
return window.$HTTP.get('solarfilm/getAllRanking', params)
}
// 单店 - 获取每个门店的商品采购占比
const getMerchantGoodsRatio = params => {
return window.$HTTP.get('solarfilm/getMerchantGoodsRatio', params)
}
// 单店 - 获取每个门店的 总采购额(总计、本月) 、商城采购额(总计、本月) 、自采采购额(总计、本月)
const getMerchantPurchase = params => {
return window.$HTTP.get('solarfilm/getMerchantPurchase', params)
}
// 单店 - 获取每个门店的商城采购额(占比)、自采采购额(占比) 趋势
const getMerchantPurchaseTrend = params => {
return window.$HTTP.get('solarfilm/getMerchantPurchaseTrend', params)
}
// 总体----获取所有门店入库使用情况
const getUsedWarehousing = params => {
return window.$HTTP.get('solarfilm/getUsedWarehousing', params)
}
// 总体----获取商品采购进度占比
const getBugProgress = params => {
return window.$HTTP.get('solarfilm/getBugProgress', params)
}
// 获取年份接口
const getYears = params => {
return window.$HTTP.get('solarfilm/getYears', params)
}
// 获取门店列表
const getMerchant = params => {
return window.$HTTP.get('solarfilm/getMerchant', params)
}
// 单店----获取每个门店的门店采购额和入库情况
const getMerchantMer = params => {
return window.$HTTP.get('solarfilm/getMerchantMer', params)
}
// 单店----获取每个门店的服务中心的采购额和入库情况
const getMerchantServiceCenter = params => {
return window.$HTTP.get('solarfilm/getMerchantServiceCenter', params)
}
export default {
getAllGoodsRatio,
getAllOpenBuyTrend,
getAllPurchase,
getAllPurchaseTrend,
getAllRanking,
getMerchantGoodsRatio,
getMerchantPurchase,
getMerchantPurchaseTrend,
getUsedWarehousing,
getBugProgress,
getYears,
getMerchant,
getMerchantMer,
getMerchantServiceCenter
}
/*
* @Description:
* @Author: huyue
* @Date: 2023-07-04 11:40:34
* @LastEditors: huyue
* @LastEditTime: 2023-07-13 17:55:25
*/
class Request {
DOMAIN = '/dev'
constructor(_request_) {
this.DOMAIN = _request_ ? _request_.baseURL : this.DOMAIN
}
get(url, params, returnAll, typeFlag) {
return this.request('GET', url, params, returnAll, typeFlag)
}
post(url, params, returnAll) {
return this.request('POST', url, params, returnAll)
}
request(method, url, params, returnAll, typeFlag) {
var requestConfig = {
headers: {
// 'Content-Type': method == 'GET' ? 'application/json' : 'application/x-www-form-urlencoded; charset=UTF-8'
'Content-Type': 'application/json'
},
method
}
var paramsArray = []
if (method === 'GET' && typeFlag) {
// var paramsArray = []
params && Object.keys(params.req).forEach(key => paramsArray.push('req.' + key + '=' + params.req[key]))
if (url.search(/\?/) === -1) {
url += '?' + paramsArray.join('&')
} else {
url += '&' + paramsArray.join('&')
}
}
if (method === 'GET' && !typeFlag) {
// var paramsArray = []
params && Object.keys(params).forEach(key => paramsArray.push(key + '=' + params[key]))
if (url.search(/\?/) === -1) {
url += '?' + paramsArray.join('&')
} else {
url += '&' + paramsArray.join('&')
}
}
if (method === 'POST') {
Object.defineProperty(requestConfig, 'body', {
value: JSON.stringify(params)
})
}
return window
.fetch(this.DOMAIN + `/${url}`, requestConfig)
.then(res => {
return res.json()
})
// .catch(error => {
// alert(error)
// })
}
}
export default Request
@import './normalize.scss';
@font-face {
font-family: 'PingFangSC-Regular';
src: url('../font/PingFang-Regular.ttf');
}
html,
body .app {
color: #333333;
font-family: 'PingFangSC-Regular', Arial, Helvetica, 'STHeiti STXihei', 'Microsoft YaHei', Tohoma, sans-serif;
background-color: #fff;
-webkit-overflow-scrolling: touch;
height: 100%;
// overflow: hidden;
--themeColor: #3975c6;
}
div {
user-select: none;
}
img {
width: 100%;
height: 100%;
vertical-align: top;
}
.flex {
display: flex;
align-items: center;
}
.flex-around {
display: flex;
align-items: center;
justify-content: space-around;
}
.flex-between {
display: flex;
align-items: center;
justify-content: space-between;
}
.flex-column {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.text-hide {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.text-two-line {
overflow: hidden;
text-overflow: ellipsis;
-webkit-line-clamp: 2;
display: -webkit-box;
-webkit-box-orient: vertical;
}
.text-center {
display: flex;
align-items: center;
justify-content: center;
}
.x-center {
position: absolute;
left: 50%;
transform: translateX(-50%);
}
.y-center {
position: absolute;
top: 50%;
transform: translateY(-50%);
}
.box-center {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
.user-select {
user-select: none;
}
.pointer {
cursor: pointer;
}
.box {
background: #061422;
box-shadow: inset 0 0 10.42px 0 #3d57ff69;
}
.inline {
display: inline-block;
}
.icon-title {
display: inline-block;
width:0.94vw;
height: 0.93vh;
background: url(../images/operation//icon-title.png) no-repeat;
background-size: 100%;
}
.title {
font-size: 0.75vw;
font-weight: 400;
font-size: 11px;
color: #ffffff;
user-select: none;
box-sizing: border-box;
height: 2.07vh;
// margin-top: 4px;
.title-bg {
display: inline-block;
height: 1.71vh;
padding-left: 0.21vw;
// transform: rotate(-360deg);
// background-image: linear-gradient(90deg, #003F57 0%, #111056 54%, #07173500 100%);
}
}
.operational-box {
background-color: rgba(11, 44, 142, 0.28);
}
.container {
height: 8.54vh;
margin: 8px 6px 8px 8px;
}
.user-container{
height:6.1vh;
margin: 5px 6px 5px 6px;
}
.empty {
display: flex;
width: 100%;
height: calc(100% - 4.1vh);
align-items: center;
justify-content: center;
img {
max-width: 20vh;
height: 9.5vh;
}
}
.text-linear {
display: inline-block;
color: #5894FF;
background-image:-webkit-linear-gradient(left,#24D8FF,#7787FF);
-webkit-background-clip:text;
-webkit-text-fill-color:transparent;
}
.user-box {
height: 9.63vh;
width:13.26vw;
background: #071735;
}
.patch-title {
position: relative;
height: 2.22vh;
color: #fff;
line-height: 2.22vh;
padding-left: 0.83vw;
font-size: 14px;
z-index: 1;
&::before {
content: '';
position: absolute;
left: 0;
width: 7.5vw;
height: 2.22vh;
background-image: linear-gradient(269deg, #5663ff00 10%, #6578ffd4 49%, #079FF1 100%);
z-index: -1;
}
}
.linear-gradient-text {
color: #5894FF;
background-image: -webkit-linear-gradient(left, #0185F9, #53FAFF);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
\ No newline at end of file
.top_head {
display: flex;
justify-content: space-between;
background: url('../assets/images/top_bg.png') no-repeat center bottom;
background-size: 100% auto;
//height: 9.44vh;
height: 102px;
.logo,
.right_box {
flex: 1;
flex-shrink: 0;
box-sizing: border-box;
}
.logo {
.img {
width: 8.65vw;
height: 3.33vh;
margin: 1.67vh 0 0 1.67vw;
}
}
.title_box {
box-sizing: border-box;
padding-top: 1.76vh;
text-align: center;
.title {
position: relative;
flex: 2;
font-family: SourceHanSansCN-Bold;
font-weight: 700;
font-size: 44px;
letter-spacing: 0px;
line-height: 44px;
// background: linear-gradient(left right, #00c8ff 0%, #0069f2 100%);
// background-clip: text;
// -webkit-background-clip: text;
// -webkit-text-fill-color: transparent;
background: linear-gradient(to right,
#00c8ff 0%,
#0069f2 100%);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.title:before,
.title:after{
position: absolute;
display: block;
content:"";
width: 64px;
height: 21px;
top:50%;
transform: translateY(-50%);
}
.title:before{
background:url('../assets/images/title_left.png') no-repeat;
background-size:64px auto;
left:-110px;
}
.title:after{
background:url('../assets/images/title_right.png') no-repeat;
background-size:64px auto;
right:-110px;
}
}
.right_box {
display: flex;
justify-content: flex-end;
.time_box {
display: flex;
flex-direction: column;
margin-top: 1.76vh;
.date {
font-family: SourceHanSansCN-Medium;
font-weight: 500;
font-size: 10px;
color: #56FEFE;
letter-spacing: 0;
line-height: 15px;
}
.time {
font-family: SourceHanSansCN-Medium;
font-weight: 500;
font-size: 20px;
color: #56FEFE;
letter-spacing: 2px;
line-height: 29px;
}
}
.welcome {
width: 10.21vw;
height: 4.81vh;
background: url('../assets/images/top_user.png') no-repeat top center;
background-size: 100% auto;
text-align: center;
margin: 0.93vh 1.25vw 0 3.54vw;
line-height: 52px;
span {
font-family: SourceHanSansCN-Regular;
font-weight: 400;
font-size: 14px;
color: #56FEFE;
letter-spacing: 0;
// margin-top:16px;
line-height: 0;
}
}
}
}
\ No newline at end of file
No preview for this file type
No preview for this file type
This file is too large to display.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!