Commit 229777a0 by ym

mock

1 parent 3500785f
This diff could not be displayed because it is too large.
{
"name": "scrm-sub-blog",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"axios": "^0.21.1",
"core-js": "^3.4.4",
"echarts": "^5.2.0",
"el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.4",
"glsx-components": "^1.0.4",
"glsx-table": "^1.0.9",
"vue": "^2.6.10",
"vue-router": "^3.1.3",
"vuex": "^3.1.2"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^4.1.0",
"@vue/cli-plugin-eslint": "^4.1.0",
"@vue/cli-plugin-router": "^4.1.0",
"@vue/cli-plugin-vuex": "^4.1.0",
"@vue/cli-service": "^4.1.0",
"@vue/eslint-config-prettier": "^5.0.0",
"babel-eslint": "^10.0.3",
"babel-plugin-component": "^1.1.1",
"element-theme-chalk": "^2.15.6",
"eslint": "^5.16.0",
"eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-vue": "^5.0.0",
"node-sass": "^4.14.1",
"prettier": "^1.19.1",
"sass-loader": "^8.0.0",
"vue-cli-plugin-element": "^1.0.1",
"vue-template-compiler": "^2.6.10"
},
"browserslist": [
"> 1%",
"last 2 versions"
]
}
"name": "home",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"axios": "^0.21.1",
"core-js": "^3.4.4",
"el-tree-transfer": "^2.2.6",
"glsx-common": "^1.4.4",
"glsx-components": "^1.0.4",
"glsx-table": "^1.0.9"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^4.1.0",
"@vue/cli-plugin-eslint": "^4.1.0",
"@vue/cli-plugin-router": "^4.1.0",
"@vue/cli-plugin-vuex": "^4.1.0",
"@vue/cli-service": "^4.1.0",
"@vue/eslint-config-prettier": "^5.0.0",
"babel-eslint": "^10.0.3",
"babel-plugin-component": "^1.1.1",
"element-theme-chalk": "^2.15.6",
"eslint": "^5.16.0",
"eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-vue": "^5.0.0",
"node-sass": "^4.14.1",
"prettier": "^1.19.1",
"sass-loader": "^8.0.0",
"vue-cli-plugin-element": "^1.0.1",
"vue-template-compiler": "^2.6.10"
},
"browserslist": [
"> 1%",
"last 2 versions"
]
}
\ No newline at end of file
<template>
<div id="app">
<!-- <h2>
报表子应用
<span class="right">{{ gs }}</span>
</h2>
<div id="nav">
<span>切换路由:</span>
<el-button-group class="right">
<el-button type="primary" size="medium" @click="routerChange('/')">报表</el-button>
<el-button type="primary" size="medium" @click="routerChange('/about')">穿梭框</el-button>
<el-button type="primary" size="medium" @click="toAppReport('1-1')">表格</el-button>
<el-button type="primary" size="medium" @click="toAppReport('1-2')">日历</el-button>
<el-button type="primary" size="medium" @click="toAppReport('3-1')">aaaa</el-button>
</el-button-group>
</div>
<div class="parent-child-communication">
<h3>父子应用通信:</h3>
<div style="margin-bottom: 20px;">
<span>rxjs通信方案:{{ myMsg }}</span>
<el-button class="right" type="primary" size="medium" @click="callParentChange('rxjs')">通知父应用变天了</el-button>
</div>
<div>
<span>官方通信方案:{{ myMessage }}</span>
<el-button class="right" type="primary" size="medium" @click="callParentChange('default')">通知父应用收到</el-button>
</div>
<img src="./assets/logo.png" alt="" srcset="" />
</div> -->
<router-view />
</div>
</template>
......@@ -59,5 +32,12 @@ export default {
#app {
background: #F4F5FA;
padding: 0px 20px 20px 40px;
position: absolute;
box-sizing: border-box;
width: 100%;
top: 0px;
left: 0px;
overflow-y: auto;
height: 100%;
}
</style>
\ No newline at end of file
......@@ -68,11 +68,22 @@ const findLoginCount = params => {
sign: true
})
}
const findMerchantInfoByMerchantNo = params => {
params.method = 'org.ore.api.common.findMerchantInfoByMerchantNo.list'
return http({
url,
method: 'POST',
data: params,
sign: true
})
}
export default {
getChart,
getView,
getSort,
getShop,
getStore,
findLoginCount
findLoginCount,
findMerchantInfoByMerchantNo
}
\ No newline at end of file
* {
font-family: PingFangSC-Regular, PingFang SC;
margin: 0;
padding: 0;
}
img {
width: 100%;
height: 100%;
......
/*
* @Descripttion:
* @version:
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @LastEditors: limin
* @LastEditTime: 2021-09-06 17:38:28
*/
// 本地环境配置
module.exports = {
title: 'gh-hall',
title: 'scrm-sub-blog',
response: {
data_key: 'data',
message_key: 'message',
code_key: 'code',
code_success_value: '0',
code_message_map: {}
},
request: {
// baseURL: 'http://ghwx.cgacar.com/scrm-wechat' // 生产
baseURL: 'http://cim.chinagrandauto.com/scrm-wechat1111' // 生产
// baseURL: 'http://cim.chinagrandauto.com' // 生产
baseURL: 'https://scrm.test.glsx.com.cn',
// 设置超时时间
timeout: 180000,
// 携带凭证
withCredentials: true,
// 返回数据类型
responseType: 'json'
},
sign: {
app_key: '48e5e13229b82c1b4e6e8c96151f0637',
appKey: '48e5e13229b82c1b4e6e8c96151f0637',
v: '1.0.0',
format: 'json',
source: 'glsx'
}
source: ''
},
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b',
cdn: 'https://www.xxx.cn/static'
}
\ No newline at end of file
......@@ -9,18 +9,18 @@
// 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js')
let cfg = require('./conf.js')
import { Http } from 'glsx-common'
let timeout = 30000 //超时时间
export const fetchConfig = function(isEnv = true) {
if (isEnv) {
let { request } = cfg
Object.assign(request, { timeout })
return Promise.resolve(cfg)
}
//return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
// if (isEnv) {
// let { request } = cfg
// Object.assign(request, { timeout })
// return Promise.resolve(cfg)
// }
return new Http().get('https://oss-config.test.glsx.com.cn/mock/616d28231072f92988f059fb/home/config')
}
export const config = {
install(vue, cfg) {
vue.prototype.$config = cfg
}
}
install(vue, cfg) {
vue.prototype.$config = cfg
}
}
\ No newline at end of file
......@@ -15,6 +15,7 @@ let router = null
let instance = null
export async function bootstrap({ name, id, history, common, messenger, globalState }) {
const { response, request, sign, secret } = await fetchConfig()
console.log(request)
Vue.prototype.$history = history
Vue.prototype.$messenger = messenger
Vue.prototype.$globalState = globalState
......
<template>
<div class="summary-ranking-panel">
<div class="scrm-box-f summary-ranking-box">
<div class="scrm-box-f summary-ranking-box" :style="{
height: rankHeight + 'px',
}">
<div class="summary-ranking-title scrm-c3">
<span>门店企微客户数排行</span>
<el-radio-group v-model="radioStore" @change="tabRank" size="mini">
......@@ -20,9 +22,6 @@
</div>
<div
class="ranking-td-panel"
:style="{
height: rankHeight + 'px',
}"
v-else
>
<div
......@@ -50,7 +49,9 @@
</div>
</div>
</div>
<div class="scrm-box-f summary-ranking-box">
<div class="scrm-box-f summary-ranking-box" :style="{
height: rankHeight + 'px',
}">
<div class="summary-ranking-title scrm-c3">
<span>各门店产值排行 </span>
<el-radio-group v-model="radioOutput" size="mini">
......@@ -70,9 +71,6 @@
</div>
<div
class="ranking-td-panel"
:style="{
height: rankHeight + 'px',
}"
v-else
>
<div class="summary-ranking-td" v-for="(item, index) in summaryArr" :key="index">
......@@ -152,7 +150,10 @@ export default {
mounted() {
let clientHeight = document.documentElement.clientHeight;
this.rankHeight = clientHeight - 520;
this.rankHeight = clientHeight - 480;
window.addEventListener(resize=>{
})
this.getSort();
},
};
......@@ -164,6 +165,7 @@ export default {
.summary-ranking-box {
width: 50%;
margin-right: 20px;
min-height: 100px;
}
.summary-ranking-title {
height: 64px;
......@@ -193,6 +195,8 @@ export default {
}
.ranking-td-panel {
overflow-y: auto;
height: calc(100% - 110px);
background: #fff;
}
.summary-ranking-td {
display: flex;
......@@ -266,7 +270,7 @@ export default {
.chart-empty {
width: 100px;
height: 100px;
margin: 100px auto;
margin: 50px auto;
text-align: center;
&-d {
font-size: 14px;
......
......@@ -339,7 +339,6 @@ export default {
width: 14px;
height: 14px;
margin-left: 6px;
margin-top: 4px;
}
}
.summary-item-total {
......
......@@ -239,6 +239,7 @@
class="footer-panel"
:style="{
left: footerLeft + 'px',
width: footerWidth+ 'px'
}"
>
<el-button type="primary" v-show="active == 2" @click="handlePrev"
......@@ -294,7 +295,7 @@ export default {
entryStatus: true,
qrcodeUrl: "",
dialogTime: 5,
active: 2,
active: 0,
dialogStatus: false,
Secret: "",
SecretContact: "",
......@@ -452,10 +453,10 @@ export default {
this.checkResult = this.applicationList[index].checkResult;
}
if (this.statusQrcode == "NEVER") {
this.active = 1;
this.dialogStatus = true;
this.timer = setInterval(this.closeDalog, 1000);
this.getQrcode();
this.getReportStatus();
} else if (this.statusQrcode == "SUCCESS") {
this.active = 3;
} else if (this.statusQrcode == "SERVER_CHECK") {
......@@ -495,6 +496,7 @@ export default {
mounted() {
let clientHeight = document.documentElement.clientHeight;
this.footerLeft = document.querySelector(".base-container-right").offsetLeft;
this.footerWidth = document.documentElement.clientWidth - this.footerLeft;
this.boxHeight = clientHeight - 200;
this.getStatus();
},
......@@ -558,7 +560,6 @@ export default {
}
}
.footer-panel {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
......@@ -611,10 +612,14 @@ export default {
&-h3 {
margin: 30px 0px 10px 0px;
font-size: 14px;
font-weight: 500;
font-weight: 600;
color: #333333;
line-height: 20px;
letter-spacing: 1px;
margin-left: 10px;
}
.config-box-form {
margin-left: 10px;
}
&-h4 {
font-weight: 500;
......@@ -687,9 +692,8 @@ export default {
justify-content: space-between;
}
.config-box-form {
margin-left: 30px;
.config-box-input {
width: 660px;
width: 400px;
height: 32px;
background: #ffffff;
border-radius: 2px;
......@@ -704,7 +708,7 @@ export default {
> label {
font-weight: 500;
color: #333333;
line-height: 17px;
line-height: 28px;
letter-spacing: 1px;
font-size: 12px;
}
......@@ -732,7 +736,7 @@ export default {
}
}
.config-box-link {
width: 390px;
width: 410px;
font-size: 12px;
text-align: right;
font-weight: 400;
......
......@@ -153,9 +153,13 @@ export default {
this.$message.error("请输入类型名称");
return;
}
if(this.empType.length == 32) {
this.$message.error("跟进员工类型最多新增30个");
return;
}
let params = {
followName: this.empTypeValue,
merchantid: 10001001,
merchantid: this.$globalState.session.merchantId,
};
this.$apis.emp.saveFollowerType(params).then((res) => {
this.listEntFollowerType();
......
......@@ -66,7 +66,11 @@
:direction="direction"
:before-close="handleClose"
>
<add-sale ref="drawerForm" @closeDrawer="closeDrawer" @handSelectdEmp="handSelectdEmp"></add-sale>
<add-sale
ref="drawerForm"
@closeDrawer="closeDrawer"
@handSelectdEmp="handSelectdEmp"
></add-sale>
</el-drawer>
</div>
</template>
......@@ -149,11 +153,17 @@ export default {
tableTotal: 0,
};
},
watch: {
drawer(val) {
if (!val) {
this.listEntFollowerType();
}
},
},
methods: {
openDrawer() {
this.drawer = true;
// this.$refs.drawerForm.init();
this.$refs.drawerForm.init();
},
beforeSearchFn() {
return new Promise((resolve) => {
......@@ -186,9 +196,11 @@ export default {
pageNum: this.$refs.table.page.pageNum,
};
this.$apis.emp.listFollowerStaffByPage(params).then((res) => {
console.log(res);
this.tableData = res.data;
this.tableTotal = res.total;
this.tableTotal = res.count;
if (res.data && res.data.length == []) {
this.$refs.table.setTableHeightFun();
}
});
},
listEntFollowerType() {
......@@ -225,7 +237,6 @@ export default {
},
mounted() {
this.$refs.table.setTableHeightFun();
this.listEntFollowerType();
this.handleSearch();
},
......@@ -235,7 +246,6 @@ export default {
<style scoped lang="scss">
.follow-header {
background: #ffffff;
border-radius: 4px;
line-height: 20px;
padding: 10px 20px;
font-size: 15px;
......@@ -265,6 +275,5 @@ export default {
}
}
.drawer-panel {
}
</style>
\ No newline at end of file
......@@ -5,7 +5,7 @@
<div class="view-title-desc">
<span>总产值</span>
</div>
<div class="view-title-num">- -人</div>
<div class="view-title-num"><span>- -</span>人</div>
</div>
<div class="view-chart">
<div class="view-chart-empty">
......@@ -50,7 +50,8 @@ export default {
},
},
};
</script>
</script>
<style lang="scss" scoped>
.chart-home-panel {
display: flex;
......@@ -106,6 +107,12 @@ export default {
font-weight: 600;
color: #333333;
line-height: 18px;
.view-title-num {
font-size: 14px;
>span {
font-size: 26px;
}
}
.view-title-desc {
display: flex;
}
......@@ -117,4 +124,4 @@ export default {
}
}
}
</style>
</style>
\ No newline at end of file
<template>
<div class="scrm-main">
<div class="info-border">
<div class="info-title">企业信息 <span>门店</span></div>
<div class="info-content">
<p>所属企业:- -</p>
<p>所属门店:- -</p>
<p>关联企微:- -</p>
<p>企微成员:- -</p>
<div class="info-title">
企业信息 <span v-if="info.merchantModelName">{{ info.merchantModelName.substring(0,2) }}</span>
</div>
<div class="merchant-info">
<p>
<span>所属企业:</span
><span class="text-hide-2">{{ info.parentName ? info.parentName : "- -" }}</span>
</p>
<p>
<span>所属门店:</span
><span class="text-hide-2">{{ info.merchantName ? info.merchantName : "- -" }}</span>
</p>
<p>
<span>关联企微:</span
><span><span class="text-hide-2">{{ info.entmicroName ? info.entmicroName : "- -" }}</span>
<span class="info-succ-btn" v-if="info.entmicroName">已授权</span></span>
</p>
<p>
<span>企微成员:</span
><span>{{ info.numberStores ? info.numberStores : "- -" }}</span>
</p>
</div>
</div>
<div class="info-border consult-box">
......@@ -20,8 +35,7 @@
<div class="info-qrcode-desc">扫码添加您的专属顾问</div>
</div>
<div class="info-consult-icon">
<i class="el-icon-chat-dot-round">
</i><span>联系客服</span>
<i class="el-icon-chat-dot-round"> </i><span>联系客服</span>
</div>
<div class="info-time">
<span>工作时间:9:00-18:00</span>
......@@ -31,17 +45,21 @@
<div class="info-border">
<div class="info-title">赢销学院</div>
<div class="info-content">
<p>子账户的注册和管理>></p>
<p>老客户引流企微操作流程>></p>
<p>企微授权流程>></p>
<p>权益裂变操作流程>></p>
<p>优惠券营销使用手册>></p>
<p><span>子账户的注册和管理</span><span>>></span></p>
<p><span>老客户引流企微操作流程</span><span>>></span></p>
<p><span>企微授权流程</span><span>>></span></p>
<p><span>权益裂变操作流程</span><span>>></span></p>
<p><span>优惠券营销使用手册</span><span>>></span></p>
</div>
<div class="info-more">了解更多</div>
</div>
<div class="info-border">
<div class="info-title">版本更新</div>
<div class="info-content"></div>
<div class="info-content">
<div class="info-content-title">2021年7月20日更新</div>
<div class="info-content-desc">1、新增赢销微店2.0</div>
<div class="info-content-desc">2、新增赢销微店2.0</div>
</div>
<div class="info-more">了解更多</div>
</div>
</div>
......@@ -50,17 +68,24 @@
<script>
export default {
name: "enterpriseInformation",
data() {
return {
permissions: [1211],
info: {},
};
},
methods: {
test() {
console.log("点击了按钮");
this.$messenger.send({ from: 11, message: "11111" });
getInfo() {
this.$apis.home.findMerchantInfoByMerchantNo({}).then((res) => {
this.info = res;
});
},
},
mounted() {
this.getInfo();
},
};
</script>
......@@ -70,7 +95,6 @@ export default {
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
margin-bottom: 20px;
padding: 20px;
width: 218px;
box-sizing: border-box;
.info-title {
font-size: 20px;
......@@ -91,19 +115,64 @@ export default {
}
}
}
.merchant-info {
margin: 20px 0px 6px;
p {
display: flex;
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
margin-bottom: 10px;
.info-succ-btn {
display: inline-block;
font-size: 14px;
font-weight: 400;
color: #5850ff;
line-height: 20px;
padding: 0px 5px;
border-radius: 2px;
vertical-align: top;
border: 1px solid #5850ff;
}
span {
&:first-child {
min-width: 70px;
}
}
}
}
.info-content {
margin-top: 20px;
margin: 20px 0px 6px;
&-title {
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
}
&-desc {
font-size: 14px;
font-weight: 400;
color: #666666;
line-height: 20px;
}
p {
display: flex;
justify-content: space-between;
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
margin-bottom: 10px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
span {
color: #666666;
&:first-child {
display: inline-block;
width: 170px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
}
}
......@@ -138,6 +207,7 @@ export default {
color: #333333;
line-height: 20px;
letter-spacing: 1px;
margin-top: 5px;
}
.info-consult-icon {
font-size: 14px;
......@@ -148,7 +218,7 @@ export default {
text-align: center;
i {
font-size: 20px;
color: #FE911A;
color: #fe911a;
vertical-align: middle;
margin-right: 5px;
}
......
......@@ -46,6 +46,7 @@ export default {
padding: 20px 55px;
margin-right: 30px;
text-align: center;
width: 33.33%;
&:last-child {
margin-right: 0px;
}
......
......@@ -15,60 +15,58 @@
<img src="@/assets/img/question.png" slot="reference" />
</el-popover>
</div>
<div class="view-title-num">{{ customerCount ? customerCount : "- -" }}人</div>
<div class="view-title-num"><span class="f26">{{ customerCount ? customerCount : "- -" }}</span>人</div>
</div>
<div class="view-num-panel">
<div class="view-num-y">
<img class="accurate-img" src="@/assets/img/home/count1.png" alt="" />
<div class="view-customer-desc">企微客户数</div>
<div class="view-customer-num">
{{ addEntmicroCount ? addEntmicroCount : "- -" }}人
<span class="f26">{{ addEntmicroCount ? addEntmicroCount : "- -" }}</span>人
</div>
</div>
<div class="view-num-n">
<img class="accurate-img" src="@/assets/img/home/count2.png" alt="" />
<div class="view-customer-desc">未加企微客户数</div>
<div class="view-customer-num">
{{ notAddEntmicroCount ? notAddEntmicroCount : "- -" }}人
<span class="f26">{{ notAddEntmicroCount ? notAddEntmicroCount : "- -" }}</span>人
</div>
</div>
</div>
<div class="view-l-loss">
<div class="view-loss-desc">
企微流失客户总数<span>{{
企微流失客户总数<span class="f26">{{
entmicroLoseCount ? entmicroLoseCount : "- -"
}}</span
>人
</div>
<div class="view-loss-btn">
<el-button type="primary" size="small">立即召回</el-button>
<el-button type="primary" size="small" :class="{'emp-btn': !notAddEntmicroCount}">立即召回</el-button>
</div>
</div>
</div>
<div class="view-prise-r">
<div class="view-prise-h">
<div class="view-h-title">
当日新增客户数<span>{{ newCustomerCount ? newCustomerCount : "- -" }}人</span>
当日新增客户数<div><span class="f26">{{ newCustomerCount ? newCustomerCount : "- -" }}</span>人</div>
</div>
<div class="view-h-desc">
当日新增企微客户数:{{ addEntmicroCount ? addEntmicroCount : "- -" }}人
当日新增企微客户数:<span class="f26">{{ newEntmicroCount ? newEntmicroCount : "- -" }}</span>人
</div>
</div>
<div class="view-prise-h">
<div class="view-h-title">
当日新增群客户数<span
>{{ todayAddPackmenberCount ? todayAddPackmenberCount : "- -" }}人</span
>
当日新增群客户数<div><span class="f26"
>{{ todayAddPackmenberCount ? todayAddPackmenberCount : "- -" }}</span>人</div>
</div>
<div class="view-h-desc">
群客户总数:{{ packmenberCount ? packmenberCount : "- -" }}人
群客户总数:<span class="f26">{{ packmenberCount ? packmenberCount : "- -" }}</span>人
</div>
</div>
<div class="view-prise-f">
<div class="view-h-title">
当日企微流失数<span
>{{ todayEntmicroLoseCount ? todayEntmicroLoseCount : "- -" }}人</span
>
当日企微流失数<div><span class="f26"
>{{ todayEntmicroLoseCount ? todayEntmicroLoseCount : "- -" }}</span>人</div>
</div>
</div>
</div>
......@@ -129,6 +127,13 @@ export default {
</script>
<style lang="scss" scoped>
.f26{
font-size: 26px!important;
}
.emp-btn {
background: #999999;
border: none;
}
.view-prise-panel {
display: flex;
.view-prise-l {
......@@ -145,6 +150,9 @@ export default {
.view-title-desc {
display: flex;
}
.view-title-num {
font-size: 14px;
}
img {
width: 14px;
height: 14px;
......@@ -163,8 +171,9 @@ export default {
display: inline-block;
}
.view-num-y {
width: 25%;
width: 35%;
text-align: center;
border-right: 1px solid rgba(0,0,0,.06);
.view-customer-desc {
font-size: 14px;
font-weight: 400;
......@@ -172,7 +181,7 @@ export default {
line-height: 20px;
}
.view-customer-num {
font-size: 22px;
font-size: 14px;
font-weight: 600;
color: #333333;
line-height: 30px;
......@@ -180,7 +189,7 @@ export default {
}
}
.view-num-n {
width: 25%;
width: 35%;
text-align: center;
.view-customer-desc {
font-size: 14px;
......@@ -189,7 +198,7 @@ export default {
line-height: 20px;
}
.view-customer-num {
font-size: 22px;
font-size: 14px;
font-weight: 600;
color: #333333;
line-height: 30px;
......@@ -200,6 +209,7 @@ export default {
.view-l-loss {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 16px;
font-weight: 500;
color: #333333;
......@@ -222,6 +232,7 @@ export default {
margin-bottom: 10px;
}
.view-prise-f {
margin-top: 50px;
padding-bottom: 10px;
margin-bottom: 10px;
}
......@@ -233,8 +244,11 @@ export default {
line-height: 22px;
display: flex;
justify-content: space-between;
>div {
font-size: 14px;
}
span {
font-size: 26px;
font-size: 14px;
font-weight: 500;
color: #333333;
}
......
<template>
<div class="main">
<div class="main-panel" :class="{ 'main-isScroll2': guideStatus }">
<div class="scrm-main">
<div class="main-panel" :class="{ 'main-isScroll': guideStatus }">
<div class="main-left">
<div class="header-panel" :style="{
height: headHeight + 'px'}">
height: headHeight + 'px',
'font-size': headHeight / 5+'px'}">
<img
class="info-consulting-icon"
src="@/assets/img/home/home-header.png"
alt=""
/>
<div class="jump-mf-btn">立即使用</div>
<div class="jump-mf-btn" :style="{
left: headWidth/1.36 + 'px'
}">立即使用</div>
</div>
<div class="summary-panel">
<div class="home-statistics-title">企业数据概览</div>
......@@ -60,7 +63,7 @@
class="guide-btn"
:style="{
left: guideLeft - imgWidth / 2 - borderLeft + 'px',
top: guideTop + imgHeight - 30 + 'px',
top: guideTop + 30 + 'px',
}"
>
我知道了
......@@ -175,6 +178,7 @@ export default {
guideStatus: false,
step: 1,
headHeight: 0,
headWidth: 0,
guideWidth: "",
guideHeight: "",
guideLeft: 0,
......@@ -200,7 +204,7 @@ export default {
this.borderLeft = document.querySelector(".el-main").offsetLeft + 38;
this.borderTop = document.querySelector(".el-main").offsetTop;
if (this.step == 1) {
this.guideWidth = document.querySelector(".header-panel").offsetWidth + 20;
this.guideWidth = document.querySelector(".header-panel").offsetWidth + 5;
this.guideHeight = this.headHeight;
this.imgWidth = this.guideWidth / 2;
this.imgHeight = (this.imgWidth * 246) / 541;
......@@ -213,18 +217,18 @@ export default {
this.imgHeight = this.guideHeight;
this.imgWidth = (this.imgHeight * 614) / 222;
this.guideLeft =
document.querySelector(".consult-box").offsetLeft + this.borderLeft;
document.querySelector(".consult-box").offsetLeft + this.borderLeft - 44;
this.guideTop = document.querySelector(".consult-box").offsetTop + this.borderTop;
} else {
let top = document.querySelector(".accurate-sercives").offsetTop + 150;
this.guideLeft =
document.querySelector(".operational-panel-s").offsetLeft + this.borderLeft;
document.querySelector(".operational-panel-s").offsetLeft + this.borderLeft - 40;
this.guideTop =
document.querySelector(".operational-panel-s").offsetTop -
top -
10 +
this.borderTop;
this.guideWidth = document.querySelector(".operational-panel-s").offsetWidth;
this.guideWidth = document.querySelector(".operational-panel-s").offsetWidth + 5;
this.guideHeight =
document.querySelector(".operational-panel-s").offsetHeight + 10;
document.querySelector(".main-panel").scrollTop = top;
......@@ -247,6 +251,11 @@ export default {
mounted() {
this.headHeight = document.querySelector(".header-panel").offsetWidth / 8;
this.headWidth = document.querySelector(".header-panel").offsetWidth;
window.addEventListener("resize", () => {
this.headHeight = document.querySelector(".header-panel").offsetWidth / 8;
this.headWidth = document.querySelector(".header-panel").offsetWidth;
});
this.findLogin();
},
};
......@@ -268,24 +277,28 @@ export default {
position: absolute;
background: #f4c647;
border-radius: 4px;
padding: 6px 10px;
padding: 0.6em 0.9em;
font-size: 10px;
font-weight: 500;
color: #ffffff;
line-height: 12px;
cursor: pointer;
bottom: 15px;
right: 20.6%;
bottom: 7px;
}
> img {
width: 100%;
height: auto;
}
}
.main-isScroll2 {
.main-isScroll {
position: absolute;
overflow-y: hidden;
height: 100%;
padding: 0px 20px 20px 40px;
box-sizing: border-box;
width: 100%;
top: 0px;
left: 0px;
}
.main-panel {
display: flex;
......@@ -313,7 +326,7 @@ export default {
}
.main-left {
flex: 1;
margin-right: 10px;
margin-right: 20px;
}
.main-right {
width: 230px;
......
......@@ -47,8 +47,7 @@
<hr />
</div>
</div>
<div class="service-footer">
<div class="service-footer">
<div class="service-footer-title">嘀加智慧门店——功能服务清单</div>
<table cellspacing="0" cellpadding="0" border="0" class="service-footer-table">
<tr>
......@@ -85,6 +84,7 @@
</div>
</div>
</div>
</div>
</div>
</template>
......@@ -238,11 +238,7 @@ export default {
}
.service-footer {
background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
padding: 30px 40px;
width: 100%;
box-sizing: border-box;
padding: 20px 0px 30px;
&-title {
font-size: 32px;
font-weight: 600;
......
const path = require('path')
const packageName = require('./package.json').name
const node_env = process.env.NODE_ENV === 'production'
// const baseUrl = process.env.VUE_APP_BASE_URL;
const baseUrl = '/'
const publicPath = node_env ? `/child/${packageName}/` : '/'
const resolve = dir => path.join(__dirname, dir)
const CDN_DOMAIN = 'https://cdn.bootcss.com'
const CDN_DOMAIN = 'https://cdn.bootcdn.net/'
const cdn = {
css: [
`${CDN_DOMAIN}/element-ui/2.11.1/theme-chalk/index.css`
`${CDN_DOMAIN}ajax/libs/element-ui/2.11.1/theme-chalk/index.css`
],
js: [
`${CDN_DOMAIN}/vue/2.6.10/vue.min.js`,
`${CDN_DOMAIN}/vue-router/3.0.6/vue-router.min.js`,
`${CDN_DOMAIN}/element-ui/2.11.1/index.js`,
`${CDN_DOMAIN}/vuex/3.1.1/vuex.min.js`,
`${CDN_DOMAIN}/axios/0.19.0/axios.min.js`,
`${CDN_DOMAIN}/echarts/4.3.0-rc.1/echarts.min.js`
`${CDN_DOMAIN}ajax/libs/vue/2.6.11/vue.min.js`,
`${CDN_DOMAIN}ajax/libs/vue-router/3.2.0/vue-router.min.js`,
`${CDN_DOMAIN}ajax/libs/element-ui/2.11.1/index.js`,
`${CDN_DOMAIN}ajax/libs/vuex/3.6.2/vuex.min.js`,
`${CDN_DOMAIN}ajax/libs/echarts/5.1.2/echarts.min.js`
]
}
module.exports = {
outputDir: `../dist/${packageName}`,
// publicPath: node_env ? baseUrl : '/',
publicPath,
assetsDir: 'static',
productionSourceMap: false,
configureWebpack: {
resolve: {
alias: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!