Commit 77fb9c50 by 前端

Merge branch 'SAAS+V4.46' of http://192.168.3.233:8090/glsx/gl_tape into feature_v1.1.0

2 parents 6f9f6034 190dece2
Showing 363 changed files with 1354 additions and 703 deletions
......@@ -4,20 +4,24 @@
"version" : "0.0",
"configurations" : [
{
"app-plus" : {
"launchtype" : "remote"
},
"default" : {
"launchtype" : "local"
},
"h5" : {
"launchtype" : "local"
},
"mp-weixin" : {
"launchtype" : "local"
},
"provider" : "aliyun",
"type" : "uniCloud"
"app-plus" :
{
"launchtype" : "local"
},
"default" :
{
"launchtype" : "local"
},
"h5" :
{
"launchtype" : "local"
},
"mp-weixin" :
{
"launchtype" : "local"
},
"provider" : "aliyun",
"type" : "uniCloud"
},
{
"playground" : "standard",
......
......@@ -7,18 +7,18 @@
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<script>
var wv
const PATH = ['/pages/common/caseDetail']
import checkUpdate from '@/uni_modules/uni-upgrade-center-app/utils/check-update-nvue.js'
import { mapState } from 'vuex'
import { Ws } from '@/ws/Ws.js'
import utils from '@/utils/utils'
export default {
computed: {
...mapState('audio', ['isEnd', 'isStart'])
},
onLoad() {
},
onLoad() {},
onLaunch: async function () {
// this.init()
this.setAPPVersion()
setTimeout(() => {
plus.screen.unlockOrientation() //解除锁定屏幕方向
......@@ -30,6 +30,66 @@ export default {
new Ws().connect()
},
methods: {
async handleCheck() {
const { textList, tempFileURL, version } = uni.$storage.get('mock_data')
const res = utils.compareVersions(plus?.runtime?.version, version)
if (res > -1) {
return
}
const e = {
result: {
is_silently: false,
is_mandatory: true,
name: '',
title: '',
contents: textList.join('\n'),
version: version,
url: tempFileURL,
stable_publish: true
}
}
checkUpdate(e)
},
init() {
uni.addInterceptor('navigateTo', {
//监听跳转
invoke(e) {
console.log('******** invoke-navigateTo ********', e.url.split('?').shift())
if (PATH.includes(e.url.split('?').shift())) {
console.log(888)
}
}
})
//2
uni.addInterceptor('redirectTo', {
//监听关闭本页面跳转
invoke(e) {
console.log('******** redirectTo ********', e.url)
}
})
uni.addInterceptor('switchTab', {
//监听tabBar跳转
invoke(e) {
console.log('******** switchTab ********', e.url)
}
})
//4
uni.addInterceptor('navigateBack', {
//监听返回
invoke(e) {
console.log('******** navigateBack ********', e)
}
})
},
setAPPVersion() {
let version = plus.runtime.version
let storageVersion = uni.$storage.get('storageVersion')
......@@ -43,6 +103,7 @@ export default {
},
onShow: async function () {
this.handleCheck()
// const systemInfo = await uni.$api.systemApi.getMockData();
// if (systemInfo.isCheckedUpdate) {
// checkUpdate();
......@@ -68,6 +129,7 @@ export default {
body {
// overflow: hidden;
}
page {
font-size: 28rpx;
height: 100%;
......@@ -129,6 +191,7 @@ button::after {
.button-hover {
transform: translate(1rpx, 1rpx);
}
.webview-container {
position: absolute;
width: 100rpx;
......
/*
* @Description:
* @Author: huyue
* @Date: 2024-09-05 14:05:25
* @LastEditors: huyue
* @LastEditTime: 2024-09-13 11:08:55
*/
import http from "../request/http";
module.exports = {
......@@ -55,4 +62,31 @@ module.exports = {
...data,
});
},
/**轻改素材配置 */
getBoutiqueMaterialConfig (data) {
return http.post({
method: "dj.api.boutique.recepiton.material.merchant.detail",
projectName: "boutique",
...data,
});
},
/** 案例视频 */
getCaseList(data) {
return http.post({
method: "dj.api.smartcarlife.recepiton.material.case.find",
projectName: "boutique",
...data
})
},
/** 获取类目 */
getCategory(data) {
return http.post({
method: "dj.api.boutique.recepiton.material.merchant.category",
projectName: "boutique",
...data
})
}
};
import http from "../request/http";
import environment from "@/env";
import http from '../request/http'
import environment from '@/env'
module.exports = {
/**获取APP更新 */
getAPPVersion (data) {
getAPPVersion(data) {
return http.post({
method: 'dj.api.smartcarlife.recepiton.findVersion',
projectName: "boutique",
...data,
});
projectName: 'boutique',
...data
})
},
// 查询接待素材
findSoureList (data) {
findSoureList(data) {
return http.post({
method: "dj.api.smartcarlife.recepiton.soure.findSoureList",
projectName: "boutique",
method: 'dj.api.smartcarlife.recepiton.soure.findSoureList',
projectName: 'boutique',
...data
});
})
},
// 查询门店支付配置
findPayInfo (data) {
findPayInfo(data) {
return http.post({
method:
"dj.api.smartcarlife.recepiton.pay.findPayInfoConfigListByMerchantId",
projectName: "boutique",
...data,
});
method: 'dj.api.smartcarlife.recepiton.pay.findPayInfoConfigListByMerchantId',
projectName: 'boutique',
...data
})
},
// 接待客户信息保存
saveRecCustomer (data) {
saveRecCustomer(data) {
return http.post({
method: "dj.api.smartcarlife.recepiton.customer.saveRecCustomer",
projectName: "boutique",
...data,
});
method: 'dj.api.smartcarlife.recepiton.customer.saveRecCustomer',
projectName: 'boutique',
...data
})
},
getToken (data) {
searchRecordingEndTime(data) {
return http.post({
method: 'dj.api.smartcarlife.recepiton.customer.searchRecordingEndTime',
projectName: 'boutique',
...data
})
},
getToken(data) {
return http.post({
method: "dj.api.smartcarlife.recepiton.customer.oss.getToken",
projectName: "boutique",
});
method: 'dj.api.smartcarlife.recepiton.customer.oss.getToken',
projectName: 'boutique'
})
},
// 历史订单列表
getQuotationList (data) {
getQuotationList(data) {
return http.post({
method: "dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page",
projectName: "boutique",
...data,
});
method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page',
projectName: 'boutique',
...data
})
},
/** 获取门店主营车品牌 */
getMerchantCarBrandList (merchantIdList) {
return http.post({
method: 'merchants.api.open.merchant.info',
projectName: 'merchants',
merchantIdList,
merchantInfoSwitch: {
brandFlag: true
}
}, false, 'merchant')
getMerchantCarBrandList(merchantIdList) {
return http.post(
{
method: 'merchants.api.open.merchant.info',
projectName: 'merchants',
merchantIdList,
merchantInfoSwitch: {
brandFlag: true
}
},
false,
'merchant'
)
},
/**
* 车型
*
*/
getCarBrandsList (data) {
getCarBrandsList(data) {
return http.post(
{
method: "scrm.api.carlife.common.getCarSeriesList",
...data,
method: 'scrm.api.carlife.common.getCarSeriesList',
...data
},
false,
"scrm"
);
'scrm'
)
},
/**
* 推荐人
*/
getEmployeeList (data) {
getEmployeeList(data) {
return http.post({
method: "dj.api.smartcarlife.employee.getByMerchantId",
projectName: "boutique",
method: 'dj.api.smartcarlife.employee.getByMerchantId',
projectName: 'boutique',
sceneList: [0],
...data,
});
...data
})
},
/** 查询接待记录列表 */
getReceptionList (data) {
getReceptionList(data) {
return http.post({
method: "dj.api.smartcarlife.reception.customer.page",
projectName: "boutique",
...data,
});
method: 'dj.api.smartcarlife.reception.customer.page',
projectName: 'boutique',
...data
})
},
/** 接待统计 */
getReceptionStatistics (data) {
getReceptionStatistics(data) {
return http.post({
method: "dj.api.smartcarlife.reception.customer.statistics",
projectName: "boutique",
...data,
});
method: 'dj.api.smartcarlife.reception.customer.statistics',
projectName: 'boutique',
...data
})
},
/** 埋点进入 */
addRecord(data) {
return http.post({
method: 'dj.api.customer.dynamic.record.add',
projectName: 'boutique',
...data
})
},
/** 埋点离开 */
leaveRecord(data) {
return http.post({
method: 'dj.api.customer.dynamic.record.leave',
projectName: 'boutique',
...data
})
},
/**创建小程序码 */
createQrcode (data) {
createQrcode(data) {
const envVersion = {
0: 'develop',
1: 'develop',
......@@ -112,10 +139,15 @@ module.exports = {
3: 'release',
4: 'trial'
}[environment.index]
data.projectName = "wechat"
return http.fetch("scrm.api.wechat.miniprogram.createQrcode", {
envVersion,
...data
}, true, 'scrm');
},
};
data.projectName = 'wechat'
return http.fetch(
'scrm.api.wechat.miniprogram.createQrcode',
{
envVersion,
...data
},
true,
'scrm'
)
}
}
......@@ -90,4 +90,12 @@ module.exports = {
...data,
});
},
/**素材详情 查询素材详情 */
getMaterialDetail (data) {
return http.post({
method: 'dj.api.smartcarlife.customervisits.getMaterialById',
projectName: "boutique",
...data,
});
},
}
\ No newline at end of file
......@@ -11,10 +11,17 @@ const serverConfig = {
mockTimer: {},
mockCache: null,
},
boutiqueServerConfig = {
mockRequestCount: null,
mockTimer: {},
mockCache: null,
},
configModule = 'app-tape',
bydConfigModule = 'byd-pad-config',
boutiqueConfigModule = 'boutique-pad-config',
configUrl = `https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=${configModule}&env=${env}`,
bydConfigUrl = `https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=${bydConfigModule}&env=${env}`
bydConfigUrl = `https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=${bydConfigModule}&env=${env}`,
boutiqueConfigUrl = `https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=${boutiqueConfigModule}&env=${env}`
/**获取mock数据 */
const getMockData = async (immediate = false) => {
......@@ -124,7 +131,44 @@ const getBydMockData = async (immediate = false) => {
bydServerConfig.mockRequestCount = null;
return Promise.reject(error);
}
};
}
/**
*获取轻改配置
*/
const getBoutiqueMockData = async (immediate = false) => {
const MOCKDATA = uni.$storage.get('boutique_mock_data')
try {
if (!immediate && MOCKDATA && Date.now() - MOCKDATA.createTime < 5 * 60e3) {
return Promise.resolve(MOCKDATA);
} else {
if (!boutiqueServerConfig.mockRequestCount || immediate) {
boutiqueServerConfig.mockCache = null;
boutiqueServerConfig.mockRequestCount = Date.now();
const data = await http.uni_request({ url: boutiqueConfigUrl });
data.createTime = Date.now();
boutiqueServerConfig.mockCache = data;
uni.$storage.set('boutique_mock_data', data);
return Promise.resolve(data);
} else {
const key = Date.now();
return new Promise((resolve) => {
boutiqueServerConfig.mockTimer[key] = setInterval(() => {
if (boutiqueServerConfig.mockCache) {
clearInterval(boutiqueServerConfig.mockTimer[key]);
boutiqueServerConfig.mockRequestCount = null;
resolve(boutiqueServerConfig.mockCache);
}
}, 1e3);
});
}
}
} catch (error) {
console.log(error)
if (boutiqueServerConfig.mockTimer[key]) clearInterval(boutiqueServerConfig.mockTimer[key]);
boutiqueServerConfig.mockRequestCount = null;
return Promise.reject(error);
}
}
// 图片版本号
const getImageVersion = async () => {
const accountInfo = await getMockData()
......@@ -136,5 +180,6 @@ module.exports = {
getMockData,
imgToBase64,
updateMockData,
getBydMockData
getBydMockData,
getBoutiqueMockData
}
\ No newline at end of file
......@@ -14,13 +14,13 @@ const HOST = {
ip: "http://192.168.1.169:8292",
};
class Request {
get(params, returnAll = false, hostType) {
get (params, returnAll = false, hostType) {
return this.request("GET", params, returnAll, hostType);
}
post(params, returnAll = false, hostType) {
post (params, returnAll = false, hostType) {
return this.request("POST", params, returnAll, hostType);
}
fetch(method, data, returnAll = true, hostType) {
fetch (method, data, returnAll = true, hostType) {
return this.post(
{
method,
......@@ -30,11 +30,11 @@ class Request {
hostType
);
}
request(RequestMethods, params, returnAll, hostType = "dj") {
request (RequestMethods, params, returnAll, hostType = "dj") {
return new Promise((resolve, reject) => {
let _this = this;
uni.getNetworkType({
success(res) {
success (res) {
if (res.networkType == "none") {
uni.hideLoading();
// uni.showToast({
......@@ -47,11 +47,11 @@ class Request {
let header =
RequestMethods === "POST"
? {
"content-type": "application/x-www-form-urlencoded",
}
"content-type": "application/x-www-form-urlencoded",
}
: {
"Cache-Control": "no-cache",
};
"Cache-Control": "no-cache",
};
let projectName = params.projectName;
if (!projectName) projectName = _this.getRopProject(params.method);
const path = pathEnum[projectName];
......@@ -63,10 +63,16 @@ class Request {
header,
dataType: "json",
responseType: "text",
success(response) {
success (response) {
/**业务代码 */
let { data } = response;
if (!data) return reject();
let { data, statusCode } = response;
if (!data || statusCode != 200) {
uni.hideLoading()
let errMsg = ''
if (!data) errMsg = '获取数据失败,请重试。'
else errMsg = '服务器暂时不可用,请稍后再次尝试。'
return reject(errMsg);
}
let { code, message } = data;
if (returnAll) {
resolve(data);
......@@ -89,7 +95,7 @@ class Request {
}
}
},
fail(error) {
fail (error) {
uni.hideLoading();
console.error(`${params.method}接口异常:`, error);
uni.showToast({
......@@ -97,13 +103,13 @@ class Request {
typeof error == "string"
? error
: error.errMsg
? error.errMsg
: JSON.stringify(error) || "系统异常",
? error.errMsg
: JSON.stringify(error) || "系统异常",
icon: "error",
});
reject(error);
},
complete() {
complete () {
uni.stopPullDownRefresh();
},
});
......@@ -111,7 +117,7 @@ class Request {
});
});
}
getData(params, hostType = "scrm") {
getData (params, hostType = "scrm") {
let projectName = params.projectName;
if (!projectName) projectName = this.getRopProject(params.method);
else delete params.projectName;
......@@ -143,11 +149,11 @@ class Request {
params.appKey = appKey;
return sign(params, secret, noSignAttr);
}
getRopProject(method) {
getRopProject (method) {
const projectName = method.split(".")[2];
return projectName;
}
uni_request({
uni_request ({
url,
method = "GET",
data = {},
......@@ -163,7 +169,7 @@ class Request {
header,
dataType,
responseType,
success(response) {
success (response) {
resolve(response.data);
},
});
......
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -970,7 +970,7 @@ export default {
position: absolute;
background: rgba(0, 0, 0, 0);
pointer-events: none;
z-index: 9;
z-index: 99;
}
.draw-canvas {
pointer-events: auto;
......
......@@ -47,6 +47,21 @@
<script type='text/ecmascript-6'>
export default {
name: 'CarBrands',
props: {
carBrandKey: {//品牌key
type: String,
default: 'carBrand'
},
carModelKey: {//车型key
type: String,
default: 'carModel'
},
echoData: {
type: Object,
default: () => ({})
},
customBoolean: Boolean
},
data () {
return {
carlist: [],
......@@ -68,21 +83,30 @@ export default {
return this.$store.state.user.historyStatus
},
carModel () {
return this.$store.state.user.customerInfo.carModel
return this.customBoolean ? this.echoData[this.carModelKey] : this.$store.state.user.customerInfo.carModel
},
carBrandList () {
return this.$store.state.user.carBrands || []
},
carBrand () {
return this.$store.state.user.customerInfo.carBrand
return this.customBoolean ? this.echoData[this.carBrandKey] : this.$store.state.user.customerInfo.carBrand
},
boutiqueDefaultCarBrandId () {
return this.$store.state.user.boutiqueDefaultCarBrandId
}
},
mounted () {
},
methods: {
autoSelect () {
const { carBrandList } = this
if (carBrandList.length) this.selectCar(carBrandList[0], true)
autoSelect (index = 0, autoHideLoading = true) {
const { carBrandList, boutiqueDefaultCarBrandId } = this
let carIndex = 0
if (boutiqueDefaultCarBrandId) {
carIndex = carBrandList.findIndex(e => e.id == boutiqueDefaultCarBrandId)
if (carIndex < 0) carIndex = 0
}
if (index < 0) index = 0
if (carBrandList.length) this.selectCar(carBrandList[carIndex], true, index, autoHideLoading)
},
open () {
const userInfo = uni.$storage.get("userInfo"),
......@@ -116,7 +140,7 @@ export default {
this.$refs.carBrandListVisible.open()
this.carBrandListOff = true
},
selectCar (e, auto = false) {
selectCar (e, auto = false, index, autoHideLoading = true) {
let { clickFlga } = this
if (clickFlga) return
this.clickFlga = true
......@@ -128,8 +152,9 @@ export default {
}
const carList = uni.getStorageSync(`${e.id}_${e.brandId}_carlist`)
if (carList) {
this.clickFlga = false
this.carlist = carList
if (auto && carList.length) this.handleSelect(carList[0])
if (auto && carList.length) this.handleSelect(carList[index])
else this.$refs.carBoxVisible.open()
} else {
if (!auto) uni.showLoading({
......@@ -137,14 +162,14 @@ export default {
})
}
uni.$api.commonApi.getCarBrandsList({
brandId: 2978||e.brandId,
childBrandId:3454|| e.id
brandId: e.brandId,
childBrandId: e.id
}).then(res => {
uni.hideLoading()
if (autoHideLoading) uni.hideLoading()
this.carlist = res
if (res) uni.setStorageSync(`${e.id}_${e.brandId}_carlist`, res)
if (!carList) {
if (auto && res.length) this.handleSelect(res[0])
if (auto && res.length) this.handleSelect(res[index])
else this.$refs.carBoxVisible.open()
}
this.clickFlga = false
......@@ -182,19 +207,19 @@ export default {
.select-box {
margin: 40rpx 0;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20rpx;
grid-template-columns: repeat(4, 1fr);
gap: 32rpx;
overflow-y: scroll;
max-height: 50vh;
padding-bottom: 60rpx;
.select-item {
text-align: center;
height: 68rpx;
line-height: 68rpx;
line-height: 44rpx;
opacity: 1;
border: 2rpx solid #dce0e6;
color: #292d33;
font-size: 28rpx;
color: #333;
font-size: 32rpx;
border-radius: 8rpx;
&.checked {
border: 2rpx solid #292d33;
......
......@@ -30,8 +30,9 @@
</template>
</template>
<template v-else>
<view class="loading flex">
暂无
<view class="nothing flex">
<view class="icon"></view>
未匹配到客户信息
</view>
</template>
</template>
......@@ -98,13 +99,13 @@ export default {
left: 0;
top: 88rpx;
width: 100%;
height: 236rpx;
height: 352rpx;
background: #ffffff;
border-radius: 16rpx;
opacity: 0;
z-index: -1;
opacity: 0;
.customer-title {
font-size: 28rpx;
font-size: 24rpx;
color: #999999;
line-height: 40rpx;
padding: 16rpx 24rpx 8rpx;
......@@ -115,11 +116,25 @@ export default {
width: 100%;
height: 100%;
justify-content: center;
color: #999999;
.icon {
animation: rotate-loading 1s linear infinite;
}
}
.nothing {
width: 100%;
height: 100%;
font-size: 24rpx;
color: #c7ccd7;
flex-direction: column;
.icon {
margin-top: 52rpx;
width: 96rpx;
height: 96rpx;
background-image: url('@/assets/images/common/nothing.webp');
background-size: 100%;
}
}
.item {
width: 100%;
height: 48rpx;
......@@ -143,7 +158,7 @@ export default {
}
}
.is-show {
z-index: 1;
opacity: 1;
z-index: 2;
}
</style>
\ No newline at end of file
......@@ -3,13 +3,11 @@
ref="customerTagstVisible"
position="bottom"
:isFooter="false"
title="请选择客户标签"
:maxHeight="1000"
:title="title"
:maxHeight="1040"
@close="$emit('close')"
>
<view
class="select-views"
>
<view class="select-views">
<template v-for="(i,index) in list">
<view
class="select-group"
......@@ -18,7 +16,7 @@
<view class="select-title">{{ i.labelName }}</view>
<view class="select-box">
<view
class="select-item"
class="select-item flex"
:class="{ checked: checkedItem(item) }"
@click="handleSelect(item)"
v-for="(item, ind) in i.nextList"
......@@ -31,18 +29,17 @@
</view>
</template>
<view class="footer-btns flex">
<view
class="btn cancel"
@click="close"
>取消</view>
<view
class="btn"
@click="choose"
>确定</view>
</view>
</view>
<view class="footer-btns">
<view
class="btn cancel"
@click="clearSwitch ? clear() : close()"
>{{cancelText}}</view>
<view
:class="['btn',{disabled: disabled}]"
@click="choose"
>确定</view>
</view>
</MessageBox>
</template>
......@@ -50,7 +47,27 @@
export default {
name: 'CustomerTags',
props: {
chooseList: Array
chooseList: Array,
title: {
type: String,
default: '请选择客户标签'
},
disabledSwitch: {
type: Boolean,
default: true
},
cancelText: {
type: String,
default: '取消'
},
clearSwitch: {
type: Boolean,
default: false
},
sceneNumber: {
type: [Number, String],
default: -1
}
},
data () {
return {
......@@ -76,6 +93,9 @@ export default {
watchStatus () {
return this.$store.state.user.historyStatus
},
disabled () {
return this.disabledSwitch && this.component_chooseList.length == 0
}
},
mounted () {
},
......@@ -83,10 +103,11 @@ export default {
open () {
this.$refs.customerTagstVisible.open()
const userInfo = uni.$storage.get("userInfo"),
{ sceneType } = userInfo;
{ sceneType } = userInfo,
{ sceneNumber } = this
uni.$api.customerApi
.findCustomerTags({
scene: sceneType,
scene: sceneNumber > -1 ? sceneNumber : sceneType,
})
.then((res) => {
this.list = res || []
......@@ -108,8 +129,13 @@ export default {
return component_chooseList.findIndex(e => e.labelId == item.labelId) != -1
},
choose () {
if (this.disabled) return
this.$emit('select', this.component_chooseList)
this.close();
},
clear () {
this.component_chooseList = []
this.$forceUpdate()
}
}
}
......@@ -120,6 +146,7 @@ export default {
overflow-y: scroll;
max-height: 60vh;
position: relative;
padding-bottom: 128rpx;
.select-group {
margin: 32rpx 0;
.select-title {
......@@ -130,18 +157,21 @@ export default {
.select-box {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20rpx;
grid-template-columns: repeat(4, 1fr);
gap: 32rpx;
.select-item {
text-align: center;
height: 68rpx;
line-height: 68rpx;
justify-content: center;
opacity: 1;
border: 2rpx solid #dce0e6;
color: #292d33;
font-size: 28rpx;
color: #333;
font-size: 32rpx;
border-radius: 8rpx;
position: relative;
box-sizing: border-box;
padding: 13rpx 40rpx;
word-break: break-all;
line-height: 44rpx;
.sprite-icon {
display: none;
position: absolute;
......@@ -159,33 +189,37 @@ export default {
}
}
}
.footer-btns {
position: sticky;
left: 0;
bottom: 0;
width: 100%;
height: 176rpx;
background: #ffffff;
box-sizing: border-box;
padding-top: 32rpx;
}
.footer-btns {
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 176rpx;
background: #ffffff;
box-sizing: border-box;
padding-top: 32rpx;
display: flex;
justify-content: center;
gap: 0 34rpx;
.btn {
width: 718rpx;
height: 80rpx;
background-image: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
border-radius: 48rpx;
display: flex;
justify-content: center;
gap: 0 34rpx;
.btn {
width: 718rpx;
height: 80rpx;
background-image: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
border-radius: 48rpx;
display: flex;
justify-content: center;
align-items: center;
font-weight: 500;
font-size: 32rpx;
color: #ffffff;
}
.cancel {
background: #dae9ff;
color: #2c66f7;
}
align-items: center;
font-weight: 500;
font-size: 32rpx;
color: #ffffff;
}
.cancel {
background: #dae9ff;
color: #2c66f7;
}
.disabled {
background-image: linear-gradient(0deg, #2c66f799 0%, #48a6ff99 100%);
}
}
</style>
\ No newline at end of file
<template>
<MessageBox
ref="employeeBoxVisible"
position="bottom"
:isFooter="false"
:title="`请选择${title}`"
:maxHeight="1000"
@close="$emit('close')"
>
<MessageBox ref="employeeBoxVisible" position="bottom" :isFooter="false" :title="`请选择${title}`" :maxHeight="1000" @close="$emit('close')">
<view class="select-box">
<view
class="select-item"
:class="{ checked: salesUuid == item.uuid }"
@click="handleSelect(item)"
v-for="(item, index) in employeeList"
:key="index"
>
<view class="select-item" :class="{ checked: salesUuid == item.uuid }" @click="handleSelect(item)" v-for="(item, index) in employeeList" :key="index">
{{ item.staffName }}
</view>
</view>
</MessageBox>
</template>
<script type='text/ecmascript-6'>
<script type="text/ecmascript-6">
export default {
name: 'Employee',
props: {
title: {
type: String,
default: '销售'
},
salesPropsUuid: {
type: String,
default: ''
}
},
data () {
......@@ -47,7 +38,7 @@ export default {
return this.$store.state.user.historyStatus
},
salesUuid () {
return this.$store.state.user.customerInfo.salesUuid
return this.$store.state.user.customerInfo.salesUuid || this.salesPropsUuid
},
employeeList () {
return this.$store.state.user.employeeList
......@@ -81,27 +72,27 @@ export default {
}
</script>
<style scoped lang='scss'>
<style scoped lang="scss">
.select-box {
margin: 40rpx 0;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20rpx;
grid-template-columns: repeat(4, 1fr);
gap: 32rpx;
overflow-y: scroll;
max-height: 50vh;
padding-bottom: 60rpx;
.select-item {
text-align: center;
height: 68rpx;
line-height: 68rpx;
line-height: 44rpx;
opacity: 1;
border: 2rpx solid #dce0e6;
color: #292d33;
font-size: 28rpx;
color: #333;
font-size: 32rpx;
border-radius: 8rpx;
&.checked {
border: 2rpx solid #292d33;
}
}
}
</style>
\ No newline at end of file
</style>
<template>
<view class="step">
<MessageBox
ref="formRef"
@cancel="cancel"
@confirm="submit"
:cancelBtnText="`${step == 1? '取消' : '上一步'}`"
:confirmBtnText="`${sceneType == 0 ?step == 1? '下一步' : '完成接待': '完成接待'}`"
:title="`${step == 1? '客户信息完善' : '结果反馈'}`"
:popupW="820"
:maxHeight="820"
:isAutoClose="false"
>
<MessageBox ref="formRef" @cancel="cancel" @confirm="submit" :cancelBtnText="`${step == 1 ? '取消' : '上一步'}`" :confirmBtnText="`${sceneType == 0 ? (step == 1 ? '下一步' : '完成接待') : '完成接待'}`" :title="`${step == 1 ? '客户信息完善' : '结果反馈'}`" :popupW="820" :maxHeight="820" :isAutoClose="false">
<view name="content">
<template v-if="step == 1">
<template v-if="!check(true)">
<view
class="error-tip"
v-if="errorTip"
>以下信息不能为空,请完善信息后保存</view>
<view
class="pop-tips"
v-else
>{{tips}}</view>
<view class="error-tip" v-if="errorTip">以下信息不能为空,请完善信息后保存</view>
<view class="pop-tips" v-else>{{ tips }}</view>
</template>
<view class="form">
<template v-for="(i, index) in formObject">
<view
class="form-item"
:key="index"
>
<view :class="['label',{required:i.required}]">{{ i.label }}</view>
<view :class="['value', { error: showError(i.key) && i.required },{disabled:customerType == 0}]">
<view class="form-item" :key="index">
<view :class="['label', { required: i.required }]">{{ i.label }}</view>
<view :class="['value', { error: showError(i.key) && i.required }, { disabled: customerType == 0 || i.disabled }]">
<template v-if="i.type == 'input'">
<input
:type="i.inputType"
:maxlength="i.maxlength"
v-model="formData[i.key]"
class="input"
:placeholder="i.placeholder"
:disabled="customerType == 0"
@input="inputCustomer"
placeholder-style="color:#c9c9c9;"
/>
<input :type="i.inputType" :maxlength="i.maxlength" v-model="formData[i.key]" class="input" :placeholder="i.placeholder" :disabled="customerType == 0" @input="inputCustomer" placeholder-style="color:#c9c9c9;" />
</template>
<template v-else>
<view
:class="['select', `${formData[i.key]? '' : 'placeholder'}`]"
@click="showPopup(i.popKey)"
>
<view :class="['select', `${formData[i.key] ? '' : 'placeholder'}`]" @click="showPopup(i)">
{{ formData[i.key] || i.placeholder }}
<uni-icons
class="arrow"
type="down"
:size="16"
></uni-icons>
<uni-icons class="arrow" type="down" :size="16"></uni-icons>
</view>
</template>
</view>
......@@ -64,42 +29,25 @@
<template v-else>
<view class="pop-tips">请完善本次接待结果</view>
<view class="choose-box">
<template v-for="(i,index) in resultList">
<view
:class="['choose-item', `${i.status == receptionStatus ? i.status == 1 ? 'success' : 'error' : ''}`]"
:key="index"
@click="chooseResult(i.status)"
>
<view :class="['sprite-icon' , `icon-face-${i.status == receptionStatus ? `${i.icon}-active` : i.icon }`]"></view>
{{ i.text}}
<template v-for="(i, index) in resultList">
<view :class="['choose-item', `${i.status == receptionStatus ? (i.status == 1 ? 'success' : 'error') : ''}`]" :key="index" @click="chooseResult(i.status)">
<view :class="['sprite-icon', `icon-face-${i.status == receptionStatus ? `${i.icon}-active` : i.icon}`]"></view>
{{ i.text }}
</view>
</template>
</view>
</template>
</view>
</MessageBox>
<car-brands
ref="carBrandListVisible"
@select="handleSelect($event,'carBrandListVisible')"
/>
<employee
ref="employeeBoxVisible"
@select="handleSelect($event,'employeeBoxVisible')"
/>
<uni-popup
ref="successRef"
type="message"
>
<uni-popup-message
type="success"
message="数据保存成功"
:duration="1500"
></uni-popup-message>
<car-brands ref="carBrandListVisible" @select="handleSelect($event, 'carBrandListVisible')" />
<employee ref="employeeBoxVisible" @select="handleSelect($event, 'employeeBoxVisible')" />
<uni-popup ref="successRef" type="message">
<uni-popup-message type="success" message="数据保存成功" :duration="1500"></uni-popup-message>
</uni-popup>
</view>
</template>
<script type='text/ecmascript-6'>
<script type="text/ecmascript-6">
import Employee from '@/components/Employee.vue'
import CarBrands from '@/components/CarBrands.vue'
import { mapMutations } from "vuex";
......@@ -109,8 +57,8 @@ const formObject_boutique = [{
key: "customerName",
type: "input",
inputType: "text",
maxlength: 50,
placeholder: '请输入姓名',
maxlength: 20,
placeholder: '请输入车主姓名',
required: true
},
{
......@@ -118,7 +66,8 @@ const formObject_boutique = [{
key: "carModel",
type: "select",
popKey: "carBrandListVisible",
placeholder: '请选择品牌车型'
placeholder: '请选择品牌车型',
disabled: true
},
{
label: "车主电话",
......@@ -126,7 +75,7 @@ const formObject_boutique = [{
type: "input",
inputType: "tel",
maxlength: 11,
placeholder: '请输入电话',
placeholder: '请输入车主电话',
required: true
},
{
......@@ -161,7 +110,7 @@ export default {
type: "input",
inputType: "text",
maxlength: 50,
placeholder: '请输入姓名',
placeholder: '请输入车主姓名',
required: true
},
{
......@@ -170,7 +119,7 @@ export default {
type: "input",
inputType: "tel",
maxlength: 11,
placeholder: '请输入电话',
placeholder: '请输入车主电话',
required: true
},
{
......@@ -221,7 +170,7 @@ export default {
tips () {
let { sceneType, titleTips } = this,
text = titleTips || '检测到“交车告知书”中未填写客户档案,请填写后再完成接待。'
if (sceneType == 1) text = '请确认“精品加装服务说明页”中的客户信息,并点击完成接待结束客户接待。'
if (sceneType == 1) text = '请确认“车型加装选购页”中的客户信息,并点击「完成接待」结束客户接待。'
return text
}
},
......@@ -245,10 +194,10 @@ export default {
if (key == 'phoneNumber' && this.formData[key]) flag = !phoneRex.test(this.formData[key])
return this.errorTip && flag
},
showPopup (e) {
showPopup ({ popKey, disabled }) {
let { customerType } = this
if (customerType == 0) return
this.$refs[e].open();
if (customerType == 0 || disabled) return
this.$refs[popKey].open();
},
// 取消
cancel () {
......@@ -266,7 +215,13 @@ export default {
this.formObject.map(e => {
if (e.required) {
if (!this.formData[e.key]) throw false
if (!all && e.key == 'phoneNumber' && !phoneRex.test(this.formData[e.key])) throw false
if (!all && e.key == 'phoneNumber' && !phoneRex.test(this.formData[e.key])) {
uni.showToast({
title: "请输入正确的车主电话",
icon: "none",
});
throw false
}
}
})
} catch (error) {
......@@ -298,7 +253,6 @@ export default {
},
success (receptionStatus) {
this.$refs.successRef.open();
this.setReceptionStatus(receptionStatus);
this.$emit('submit', receptionStatus)
},
inputCustomer () {
......@@ -339,12 +293,13 @@ export default {
},
chooseResult (val) {
this.receptionStatus = val
this.setReceptionStatus(val);
}
}
}
</script>
<style scoped lang='scss'>
<style scoped lang="scss">
.pop-tips {
background: rgba(44, 102, 247, 0.1);
color: #2c66f7;
......@@ -463,4 +418,4 @@ export default {
border-color: #f247241a;
}
}
</style>
\ No newline at end of file
</style>
<template>
<view
class="case-item"
@click="jumpDetail(item)"
>
<image
class="img"
:src="item.cover || 'https://img02.glsx.com.cn/weapp/resource/app-tape/common/default-cover.webp'"
:style="imgStyle"
mode="aspectFill"
></image>
<view class="case-info">
<view class="case-name text-hide">{{ item.title }}</view>
<template v-for="(j, ind) in caseInfo">
<view
class="case-text flex"
:key="ind"
>
<view class="case-label">{{ j.label }}:</view>
<view :class="['case-value', j.class]">
<template v-if="j.format">
{{ j.format(item) }}
</template>
<template v-else>
{{ item[j.key] || '--' }}
</template>
</view>
</view>
</template>
</view>
</view>
</template>
<script type='text/ecmascript-6'>
export default {
name: 'CaseItem',
props: {
item: Object,
source: {
type: Number,
default: 1
},
visitsId: [Number, String],
imgStyle: String
},
data () {
return {
caseInfo: [
{
label: '业务场景',
class: 'text-hide',
format: (val) => {
// 业务场景:0-会员权益/升级;1-精品升级;2-次新车转化;3-售后众筹;4-积分商城
return val ? {
0: '会员权益/升级',
1: '精品升级',
2: '次新车转化',
3: '售后众筹',
4: '积分商城'
}[val.scene] : '--'
}
},
{
label: '客户标签',
key: 'tags',
class: 'text-hide'
},
{
label: '适用套餐',
key: 'goods',
class: 'text-two-line'
},
],
}
},
mounted () {
},
methods: {
jumpDetail (item) {
const { source, visitsId } = this
let params = `id=${item.id}&source=${source}`
if (visitsId) params += `&visitsId=${visitsId}`
// 类型:0-图片;1-视频;2-pdf;3-富文本
let url = `/pages/common/caseDetail?${params}`
if (item.type != 3) {
let fileUrl = item?.detailInfos[0]?.image
if (item.type == 2) url = `/pages/common/webview?fileUrl=${fileUrl}&title=${item.title}&${params}`
if (item.type == 1 || item.type == 0) url = `/pages/boutique/preview?tabName=${item.title}&sourceType=${item.type == 1 ? 2 : 1}&detailUrl=${fileUrl}&${params}`
}
uni.navigateTo({
url: `${url}`
})
},
}
}
</script>
<style scoped lang='scss'>
.case-item {
width: 100%;
height: 100%;
background: #ffffff;
box-shadow: 0 8rpx 24rpx 0 #2c66f71a;
border-radius: 16rpx;
display: flex;
flex-direction: column;
overflow: hidden;
.img {
width: 100%;
height: 324rpx;
}
.case-name {
font-weight: 500;
font-size: 28rpx;
color: #333333;
line-height: 48rpx;
padding: 16rpx 32rpx 8rpx;
}
.case-text {
align-items: flex-start;
font-size: 24rpx;
color: #666666;
line-height: 40rpx;
padding: 0 32rpx;
margin-bottom: 4rpx;
}
.case-label {
width: 120rpx;
flex-shrink: 0;
}
}
</style>
\ No newline at end of file
......@@ -89,6 +89,10 @@
<car-brands
ref="carBrandVisible"
@select="handleSelect($event,'carBrandVisible')"
:echoData="customerInfo"
carBrandKey="carBrand"
carModelKey="brandModel"
customBoolean
/>
<customer-tags
ref="customerTagstVisible"
......@@ -182,6 +186,8 @@ export default {
immediate: true,
handler (newval) {
if (!newval) return
const { sceneType } = uni.$storage.get("userInfo");
default_customerForm[0].maxlength = sceneType == 1 ? 20 : 50
this.$store.dispatch("clearCustomerInfo");
this.$store.dispatch("clearHistory")
this.customerForm = JSON.parse(JSON.stringify(default_customerForm))
......@@ -266,6 +272,7 @@ export default {
if (popkey == 'carBrandVisible') {
this.$refs.carBrandVisible.close()
this.customerInfo.brandModel = item.name
this.customerInfo.carBrand = item.carChildsBrandName
} else if (popkey == 'customerTagstVisible') {
let names = [],
ids = []
......@@ -290,11 +297,11 @@ export default {
e.error = false
})
let { customerInfo, customerForm, customerTag } = this,
{ shopMerchantId,sceneType } = uni.$storage.get("userInfo"),
{ shopMerchantId, sceneType } = uni.$storage.get("userInfo"),
targetApi = customerInfo.id ? 'updateVisitsInfo' : 'saveVisitsInfo',
params = {
customerTag,
merchantId: shopMerchantId,
merchantId: shopMerchantId,
bussinessScene: sceneType == 0 ? 1 : 2 // 1.延保 2.轻改
}
if (!phoneRex.test(customerInfo.ownerPhone)) throw 'ownerPhone'
......@@ -303,17 +310,44 @@ export default {
})
if (customerInfo.id) params.id = customerInfo.id
params.customerTagName = params.customerTagName.replace(/|/g, ',')
const res = await uni.$api.customerApi[targetApi](params)
uni.showLoading({
mask: true
})
const res = await uni.$api.customerApi[targetApi](params),
_this = this
if (res) {
this.$refs.successRef.open()
setTimeout(() => {
this.back()
this.$emit('refresh')
}, 1e3)
/**1:成功,2:重复 */
if (res == '1') {
this.$refs.successRef.open()
setTimeout(() => {
uni.hideLoading()
this.back()
this.$emit('refresh')
}, 1e3)
} else {
uni.showModal({
content: '存在与该手机号相同的接待记录,系统将自动归类到已接待',
showCancel: false,
confirmText: '确认',
confirmColor: '#347BFF',
success (res) {
if (res.confirm) {
_this.back()
_this.$emit('refresh')
}
}
})
uni.hideLoading()
}
} else {
uni.hideLoading()
}
} catch (error) {
let index = this.customerForm.findIndex(e => e.key == error)
this.customerForm[index].error = true
this.clickFlag = false
uni.hideLoading()
}
}
}
......@@ -347,7 +381,7 @@ export default {
height: 96rpx;
z-index: 9;
text-align: center;
font-weight: 500;
font-weight: 700;
font-size: 32rpx;
color: #1a1a1a;
line-height: 96rpx;
......
<template>
<view class="bg">
<view class="top">
<view
class="top-one"
:style="randomize"
></view>
</view>
<view class="bottom">
<view
class="bottom-one"
:style="randomize"
></view>
<view
class="bottom-two"
:style="randomize"
></view>
<view
class="bottom-three"
:style="randomize"
></view>
</view>
</view>
</template>
<script type='text/ecmascript-6'>
export default {
name: '',
data () {
return {
dateKey: null,
}
},
computed:{
randomize () {
let { dateKey } = this;
const maxX = uni.getSystemInfoSync().windowWidth - 300,
maxY = uni.getSystemInfoSync().windowHeight - 100,
x = Math.floor(Math.random() * maxX),
y = Math.floor(Math.random() * maxY);
return `transform:translate(${x}px,${y}px);${dateKey};`;
},
},
mounted () {
setInterval(() => {
this.dateKey = Date.now();
}, 5e3);
},
methods: {
}
}
</script>
<style scoped lang='scss'>
.bg {
position: absolute;
z-index: -2;
left: 0;
top: 0;
width: 100vw;
height: 100vh;
background-image: linear-gradient(180deg, #f2f6ff 0%, #f7f9ff 100%);
overflow: hidden;
.top {
position: absolute;
top: 0;
left: 0;
width: 100%;
&-one {
position: absolute;
top: -1600rpx;
right: 128rpx;
width: 2012rpx;
height: 2012rpx;
opacity: 0.3;
background: #fff;
box-shadow: inset 2rpx 2rpx 0 2rpx #ffffff80;
border-radius: 50% / 25%;
transition: all 2s;
z-index: 2;
&::before {
position: absolute;
width: 856.56rpx;
height: 153.54rpx;
right: 150rpx;
top: 0;
opacity: 0.6;
background: #ebfdff;
filter: blur(36rpx);
content: '';
}
}
&::before {
position: absolute;
content: '';
right: 0;
top: 0;
width: 890.36rpx;
height: 174.84rpx;
opacity: 0.2;
background: #3582ee;
filter: blur(100rpx);
}
&::after {
width: 274.32rpx;
height: 410.02rpx;
opacity: 0.16;
background-image: linear-gradient(125deg, #65b8f7 36%, #3582ee 79%);
filter: blur(74rpx);
position: absolute;
content: '';
right: 0;
top: 24rpx;
}
}
.bottom {
position: absolute;
width: 1291.3rpx;
height: 316rpx;
left: 0;
bottom: 0;
z-index: 2;
&::before {
content: '';
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
opacity: 0.11;
background: #3582ee;
filter: blur(100rpx);
}
&::after {
width: 1484.32rpx;
height: 160.02rpx;
opacity: 0.12;
background-image: linear-gradient(125deg, #65b8f8 36%, #3582ee 79%);
filter: blur(74rpx);
position: absolute;
left: 480rpx;
bottom: 0;
content: '';
}
&-one {
position: absolute;
left: 0;
bottom: 44rpx;
width: 643.02rpx;
height: 258.78rpx;
opacity: 0.4;
background: #ebfffd;
filter: blur(36rpx);
transition: all 2s;
}
&-two {
position: absolute;
width: 450rpx;
height: 450rpx;
opacity: 0.24;
background: #ffffff;
box-shadow: inset 2rpx 2rpx 0 2rpx #ffffff80;
border: 100%;
left: -225rpx;
bottom: -225rpx;
border-radius: 100%;
transition: all 2s;
}
&-three {
width: 762.7rpx;
height: 210.92rpx;
opacity: 0.16;
box-shadow: inset 2rpx 2rpx 0 2rpx #ffffff80;
background-color: fff;
position: fixed;
left: 0;
top: 0;
border-radius: 50%;
transition: all 2s;
z-index: 2;
}
}
}
</style>
\ No newline at end of file
......@@ -4,50 +4,36 @@
<view class="user-avatar sprite-icon icon-avatar"></view>
<view class="user-name">{{ userInfo.name }}</view>
</view>
<view :class="['left-tabs', {'three':tabs.length == 3}]">
<view :class="['left-tabs', { three: tabs.length == 3 }]">
<template v-for="(i, index) in tabs">
<view
:class="['tab-item', { tabActive: tabIndex == index }]"
:key="index"
@click="changeIndex(index)"
>
<view :class="['tab-item', { tabActive: tabIndex == index }]" :key="index" @click="changeIndex(index)">
<view class="icon-box">
<view :class="[
'sprite-icon',
`icon-${i.icon}${tabIndex == index ? '-active' : ''}`,
]"></view>
<view :class="['sprite-icon', `icon-${i.icon}${tabIndex == index ? '-active' : ''}`]"></view>
</view>
{{ i.label }}
<view class="dot" v-if="i.icon == 'record' && perRecordNumber"></view>
</view>
</template>
</view>
<view class="left-footer">
<view
class="btn"
@click="$refs.kfRef.open()"
>
<view class="btn" @click="$refs.kfRef.open()">
<view class="sprite-icon icon-feedback"></view>
</view>
<view
class="btn"
@click="$refs.settingRef.open()"
>
<view class="btn" @click="$refs.settingRef.open()">
<view class="sprite-icon icon-setting"></view>
</view>
</view>
<!-- 客服弹框 -->
<!-- 客服弹框 -->
<kf-box ref="kfRef" />
<!-- 设置弹框 -->
<setting-box
ref="settingRef"
@stopAudio="$emit('stopAudio')"
/>
<setting-box ref="settingRef" @stopAudio="$emit('stopAudio')" />
</view>
</template>
<script type='text/ecmascript-6'>
<script type="text/ecmascript-6">
import KfBox from "./KfBox";
import SettingBox from "./SettingBox";
import { STORAGE_OBJECTkEY } from '@/utils/cache/constantData'
export default {
components: { KfBox, SettingBox },
props:{
......@@ -74,6 +60,11 @@ export default {
if(n.shopMerchantId) this.haveCustomerAccess(n.shopMerchantId)
}
},
computed: {
perRecordNumber() {
return this.$store.state.audio.perRecordNumber
}
},
mounted () {
},
methods: {
......@@ -96,7 +87,7 @@ export default {
}
</script>
<style scoped lang='scss'>
<style scoped lang="scss">
.left-side {
display: flex;
flex-direction: column;
......@@ -134,6 +125,16 @@ export default {
color: #8a98b5;
text-align: center;
padding-bottom: 96rpx;
position: relative;
.dot {
width: 16rpx;
height: 16rpx;
background: #f24724;
border-radius: 50%;
position: absolute;
right: 20rpx;
top: 20rpx;
}
.icon-box {
width: 112rpx;
height: 112rpx;
......@@ -213,5 +214,4 @@ export default {
padding-left: 60rpx;
}
}
</style>
\ No newline at end of file
</style>
......@@ -29,101 +29,127 @@
<script type="text/ecmascript-6">
import checkUpdate from "@/uni_modules/uni-upgrade-center-app/utils/check-update-nvue.js";
import utils from '@/utils/utils'
export default {
name: 'SettingBox',
data () {
return {
version: '',
deviceId:''
}
},
mounted () {
this.version = plus?.runtime?.version || '1.0.0'
const {deviceId} = uni.getDeviceInfo()
this.deviceId = deviceId
},
methods: {
copyText() {
uni.setClipboardData({
data: this.deviceId,
success: function() {
uni.showToast({
title: '复制成功',
icon: 'success'
});
}
});
},
async handleCheck() {
try {
await checkUpdate()
this.close()
} catch (error) {
name: 'SettingBox',
data() {
return {
version: '',
deviceId: ''
}
},
mounted() {
this.version = plus?.runtime?.version || '1.0.0'
const {
deviceId
} = uni.getDeviceInfo()
this.deviceId = deviceId
},
methods: {
copyText() {
uni.setClipboardData({
data: this.deviceId,
success: function() {
uni.showToast({
title: '复制成功',
icon: 'success'
});
}
});
},
async handleCheck() {
const {
textList,
tempFileURL,
version
} = uni.$storage.get('mock_data')
const res = utils.compareVersions(this.version,version)
if(res > -1) {
uni.showToast({
title: '目前已是最新版本',
duration: 2000,
icon: 'none'
});
}
},
open () {
this.$refs.popup.open("center");
},
close () {
this.$refs.popup.close()
},
changeAccount () {
uni.reLaunch({
url: '/pages/common/accountItems'
})
},
// 退出
logout () {
let _this = this
uni.showModal({
title: '温馨提示',
content: '是否退出当前账号?',
confirmColor: '#347BFF',
async success (res) {
if (res.confirm) {
_this.$emit('stopAudio')
try {
uni.showLoading({
mask: true
})
const { code, message } = await uni.$api.userApi.logout(),
userInfo = uni.$storage.get("userInfo")
console.log(code)
if (code == 0) {
uni.$storage.rm("userInfo");
uni.$storage.rm("sessionId");
uni.$storage.rm("noSignInUuid");
setTimeout(() => {
uni.hideLoading()
uni.reLaunch({
url: `/pages/common/login?mobile=${userInfo.phone}`,
});
}, 500)
} else throw message
} catch (error) {
console.log(error)
uni.hideLoading()
uni.showToast({
title: error,
icon: "none",
});
}
}
}
})
},
jump (type) {
let url = type == 'icp' ? 'https://beian.miit.gov.cn/' : 'https://img01.glsx.com.cn/weapp/resource/saas/app/privacy.html'
uni.navigateTo({
url: `/pages/common/webview?url=${url}`
})
}
}
return
}
this.close()
const e = {
result: {
"is_silently": false,
"is_mandatory": true,
"name": "",
"title": "",
"contents": textList.join('\n'),
"version": version,
"url": tempFileURL,
"stable_publish": true,
},
}
checkUpdate(e)
},
open() {
this.$refs.popup.open("center");
},
close() {
this.$refs.popup.close()
},
changeAccount() {
uni.reLaunch({
url: '/pages/common/accountItems'
})
},
// 退出
logout() {
let _this = this
uni.showModal({
title: '温馨提示',
content: '是否退出当前账号?',
confirmColor: '#347BFF',
async success(res) {
if (res.confirm) {
_this.$emit('stopAudio')
try {
uni.showLoading({
mask: true
})
const {
code,
message
} = await uni.$api.userApi.logout(),
userInfo = uni.$storage.get("userInfo")
console.log(code)
if (code == 0) {
uni.$storage.rm("userInfo");
uni.$storage.rm("sessionId");
uni.$storage.rm("noSignInUuid");
setTimeout(() => {
uni.hideLoading()
uni.reLaunch({
url: `/pages/common/login?mobile=${userInfo.phone}`,
});
}, 500)
} else throw message
} catch (error) {
console.log(error)
uni.hideLoading()
uni.showToast({
title: error,
icon: "none",
});
}
}
}
})
},
jump(type) {
let url = type == 'icp' ? 'https://beian.miit.gov.cn/' :
'https://img01.glsx.com.cn/weapp/resource/saas/app/privacy.html'
uni.navigateTo({
url: `/pages/common/webview?url=${url}`
})
}
}
}
</script>
......@@ -139,6 +165,7 @@ export default {
align-items: center;
justify-content: center;
flex-direction: column;
.close {
position: absolute;
width: 120rpx;
......@@ -147,20 +174,24 @@ export default {
right: 0;
justify-content: center;
}
.app-info {
flex-direction: column;
font-size: 32rpx;
color: #333333;
.sprite-icon {
margin-bottom: 12rpx;
box-shadow: 0 0 24rpx 0 #3682ef33;
border-radius: 40rpx;
}
.version {
margin-top: 8rpx;
font-size: 24rpx;
color: #999999;
}
.check-box {
width: 120rpx;
padding: 10rpx 0rpx 4rpx;
......@@ -173,8 +204,10 @@ export default {
box-sizing: border-box;
}
}
.btn-box {
margin-top: 120rpx;
.btn {
width: 384rpx;
height: 64rpx;
......@@ -186,25 +219,30 @@ export default {
color: #3b73ff;
margin-bottom: 16rpx;
}
.logout {
background: #ffffff;
color: #333333;
border: 2rpx solid #e8e8e8;
}
}
.a {
font-size: 24rpx;
color: #2c66f7;
margin: 48rpx 0 16rpx;
}
.icp {
font-size: 24rpx;
color: #999999;
}
.app-code {
font-size: 24rpx;
color: #999999;
line-height: 40rpx;
.icon-clone {
width: 24rpx;
height: 24rpx;
......
<template>
<view class="data-container">
<view class="nav-bar" @click="$emit('cancel')">
<view class="back" @click="$emit('update:showPayPage', false)">
<uni-icons type="left" :size="20" color="#000"></uni-icons>
</view>
<view class="title">接待记录</view>
</view>
<view class="error-tip" v-if="errorTip">以下信息不能为空,请完善信息后保存</view>
<view class="form">
<template v-for="(i, index) in formObject">
<view :class="['form-item', { active: focusIndex == index }]" :key="index">
<view class="label required">{{ i.label }}</view>
<view :class="['value', { error: showError(i.key) }]">
<template v-if="i.type == 'input'">
<input :type="i.inputType" :maxlength="i.maxlength" v-model="customerInfo[i.key]" class="input" :placeholder="i.placeholder" @focus="focusIndex = index" @blur="resetFocusIndex" />
</template>
<template v-else>
<view :class="['select flex', { placeholderStyle: !customerInfo[i.key] }]" @click="showPopup(i.popKey, index)">
<view class="text-hide">{{ customerInfo[i.key] || i.placeholder }}</view>
<uni-icons class="arrow" type="right" :size="16"></uni-icons>
</view>
</template>
</view>
</view>
</template>
</view>
<view class="footer-box">
<view class="cancel-btn" @click="$emit('cancel')">取消</view>
<view class="submit-btn" @click="handleSave">提交</view>
</view>
<car-brands ref="carBrandListVisible" @select="handleSelect($event, 'carBrandListVisible')" />
<employee ref="employeeBoxVisible" :salesPropsUuid="customerInfo.salesUuid" @select="handleSelect($event, 'employeeBoxVisible')" />
<MessageBox ref="receptionStatusVisible" position="bottom" :isFooter="false" title="请选择接待结果" :maxHeight="1000">
<view class="select-box">
<view class="select-item" :class="{ checked: customerInfo.receptionStatus == item.label }" @click="selectReception(item.label)" v-for="(item, index) in receptionList" :key="index">
{{ item.label }}
</view>
</view>
</MessageBox>
</view>
</template>
<script type="text/ecmascript-6">
import CarBrands from '@/components/CarBrands.vue'
import Employee from '@/components/Employee.vue'
import CustomerAutocomplete from '@/components/CustomerAutocomplete.vue'
const phoneRex = /^[1]([3-9])[0-9]{9}$/;
import utils from "@/utils/utils";
export default {
components: {
CarBrands,
Employee,
CustomerAutocomplete
},
props: {
customerInfoVal: {
type: Object,
default: () => ({})
}
},
data() {
return {
errorTip:false,
receptionList: [{
label: '成交',
value: 1
},
{
label: '战败',
value: 0
}
],
formObject: [{
label: "车主姓名",
placeholder: '车主姓名',
key: 'customerName',
type: 'input',
inputType: 'text',
maxlength: 50
},
{
label: "车主电话",
placeholder: '车主电话',
key: 'phoneNumber',
type: 'input',
inputType: 'tel',
maxlength: 11
},
{
label: "品牌车型",
placeholder: '品牌车型',
key: 'carModel',
type: 'select',
popKey: 'carBrandListVisible'
},
{
label: "接待结果",
key: "receptionStatus",
type: "select",
popKey: "receptionStatusVisible",
placeholder: '请选择',
},
{
label: "销售姓名",
key: "salesName",
type: "select",
popKey: "employeeBoxVisible",
placeholder: '请选择',
},
],
focusIndex: -1,
customerInfo:{}
}
},
mounted() {
this.customerInfo = utils.deepClone(this.customerInfoVal)
console.log(this.customerInfo)
const i = this.receptionList.findIndex(e => e.value === this.customerInfo.receptionStatus)
this.$set(this.customerInfo, 'receptionStatus', i == -1?'':this.receptionList[i].label)
},
methods: {
selectReception(value) {
this.customerInfo.receptionStatus = value
this.$refs.receptionStatusVisible.close()
},
showError(key) {
let flag = !this.customerInfo[key]
if (key == 'phoneNumber' && this.customerInfo[key]) flag = !phoneRex.test(this.customerInfo[key])
return flag
},
handleSave() {
const result = this.check(true)
if (!result) return this.errorTip = true
const i = this.receptionList.findIndex(e => e.label == this.customerInfo.receptionStatus)
this.customerInfo.receptionStatus = this.receptionList[i].value
this.$emit('submit',this.customerInfo)
},
check(all = false) {
let flag = true
try {
this.formObject.map(e => {
if (!this.customerInfo[e.key]) throw false
if (!all && e.key == 'phoneNumber' && !phoneRex.test(this.customerInfo[e.key])) {
uni.showToast({
title: "请输入正确的车主电话",
icon: "none",
});
throw false
}
})
} catch (error) {
flag = error
}
return flag
},
handleSelect(item, popkey) {
this.$refs[popkey].close()
console.log(item, popkey)
if (popkey == 'employeeBoxVisible') {
this.customerInfo.salesUuid = item.uuid
this.customerInfo.salesName = item.staffName
} else {
this.$refs.carBrandListVisible.close()
this.customerInfo.carModel = item.name
}
this.resetFocusIndex()
this.errorTip = false
},
showPopup(e, index) {
this.focusIndex = index
this.$refs[e].open()
},
resetFocusIndex() {
this.focusIndex = -1
this.errorTip = false
}
}
}
</script>
<style scoped lang="scss">
.error-tip {
font-size: 28rpx;
padding: 32rpx 60rpx 24rpx;
margin-top: 100rpx;
margin-bottom: -80rpx;
text-align: center;
background-color: rgb(254, 237, 234);
color: #f45c3d;
}
.data-container {
background: #ffffff59;
border-radius: 48rpx;
margin: 80rpx 66rpx 80rpx 0;
height: calc(100% - 160rpx);
box-shadow: inset 0 0 16rpx 0 #ffffff;
border: 2rpx solid #fff;
box-sizing: border-box;
position: relative;
.nav-bar {
position: absolute;
width: 100%;
height: 96rpx;
left: 0;
top: 28rpx;
z-index: 9;
text-align: center;
font-weight: 700;
font-size: 32rpx;
color: #1a1a1a;
line-height: 96rpx;
.back {
position: absolute;
left: 0;
top: 0;
height: 100%;
aspect-ratio: 1/1;
display: flex;
align-items: center;
justify-content: center;
}
}
.form {
display: flex;
flex-wrap: wrap;
gap: 80rpx 160rpx;
padding: 80rpx;
margin-top: 60rpx;
&-item {
width: calc(50% - 80rpx);
display: flex;
align-items: center;
color: #6c6c70;
font-size: 30rpx;
height: 80rpx;
box-sizing: border-box;
.label {
position: relative;
margin-left: auto;
flex-shrink: 0;
width: 124rpx;
margin-right: 30rpx;
}
.required {
&::before {
content: '*';
color: #ff0000;
position: absolute;
left: -20rpx;
top: 50%;
transform: translate(0, -50%);
}
}
.value {
height: 80rpx;
flex: 1;
border: 2rpx solid #e8e8ea;
background: #ffffff;
margin-left: 32rpx;
box-sizing: border-box;
padding: 0 40rpx;
border-radius: 8rpx;
&.error {
border: 2rpx solid #f24724;
border-radius: 8rpx;
}
.input,
.select {
width: 100%;
height: 100%;
border: none !important;
outline: none;
padding: 0 !important;
font-size: 30rpx;
color: #333;
&::placeholder {
color: #c9c9c9;
}
}
.placeholderStyle {
color: #999999;
}
.arrow {
color: #999 !important;
margin-left: auto;
flex-shrink: 0;
}
}
}
// .active {
// &::after {
// position: absolute;
// left: -2rpx;
// top: -2rpx;
// width: calc(100% + 4rpx);
// height: calc(100% + 4rpx);
// content: '';
// background-image: linear-gradient(#2f6af7, #75bcff);
// box-shadow: 0 0 0 8rpx #2c66f71a;
// border-radius: 16rpx;
// }
// }
}
.footer-box {
display: flex;
align-items: center;
justify-content: center;
gap: 34rpx;
padding: 0 280rpx;
.cancel-btn {
height: 80rpx;
background: #dae9ff;
border-radius: 48rpx;
line-height: 80rpx;
text-align: center;
color: #2c66f7;
flex: 1;
}
.submit-btn {
height: 80rpx;
background-image: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
border-radius: 48rpx;
line-height: 80rpx;
text-align: center;
flex: 1;
color: #ffffff;
}
}
}
.select-box {
margin: 40rpx 0;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20rpx;
overflow-y: scroll;
max-height: 50vh;
padding-bottom: 60rpx;
.select-item {
text-align: center;
height: 68rpx;
line-height: 68rpx;
opacity: 1;
border: 2rpx solid #dce0e6;
color: #292d33;
font-size: 28rpx;
border-radius: 8rpx;
&.checked {
border: 2rpx solid #292d33;
}
}
}
</style>
<template>
<view class="container" @click="handleTouchStart">
<view :class="['home', { show: !id }]">
<home-animation></home-animation>
<left-side :userInfo="userInfo" :tabIndex.sync="tabIndex" @changeTab="$emit('changeTab', $event)" @stopAudio="stopAudio" />
<view class="right-side">
<template v-if="tabIndex == 0">
......@@ -28,7 +27,7 @@
<slot name="detail" />
</view>
<!-- 未点击开始接待,弹窗 -->
<MessageBox ref="previewRef" @confirm="$emit('preview')" :popupW="704" content="直接点击素材可进行预览,若面向车主展示,请点击「开始接待」" confirmBtnText="预览素材"></MessageBox>
<MessageBox ref="previewRef" @confirm="$emit('preview')" :popupW="704" content="直接点击素材可进行预览,若面向车主展示,请点击「开始接待」" confirmBtnText="预览素材" @cancel="$emit('previewCancel')" @close="$emit('previewClose')"></MessageBox>
<!-- 停留弹框 -->
<MessageBox ref="tipBox" @cancel="tipCancel" @confirm="tipConfirm" content="系统检测到您在当前页面停留较久,是否仍在客户接待中?" cancelBtnText="否" confirmBtnText="是"></MessageBox>
<!-- 退出弹框 -->
......@@ -59,20 +58,17 @@
import RecordList from './components/RecordList.vue'
import myClick from '@/mixin/click'
import uploader from '@/mixin/uploader.js'
import HomeAnimation from './components/HomeAnimation.vue'
import CustomerFile from './components/CustomerFile.vue'
import LeftSide from './components/LeftSide.vue'
import { Ws } from '@/ws/Ws.js'
import config from '@/config.js'
export default {
mixins: [myClick, uploader],
components: { RecordList, HomeAnimation, CustomerFile, LeftSide },
components: { RecordList, CustomerFile, LeftSide },
props: {
id: [String, Number],
finishDoneText: String,
finishContene: {
type: String,
default: '当前操作视为强制退出接待,若需正常流程完成接待请点击“完成接待”'
default: '当前操作视为强制退出接待,若需正常流程完成接待请点击「完成接待」'
}
},
data() {
......@@ -99,13 +95,22 @@ export default {
else return 'CustomerFile'
}
},
methods: {
}
methods: {}
}
</script>
<style scoped lang="scss">
.container {
position: relative;
&::after {
content: '';
position: absolute;
left: 0;
top: 0;
width: 100vw;
height: 100vh;
background-image: url('@/assets/images/common/home-bg.webp');
background-size: 100% 100%;
}
.home,
.detail {
position: fixed;
......@@ -143,6 +148,16 @@ export default {
padding-top: 92rpx;
height: 100vh;
box-sizing: border-box;
position: relative;
animation: show-box 0.15s forwards;
}
@keyframes show-box {
0% {
left: 100%;
}
100% {
left: 0;
}
}
.start {
&-btn {
......
......@@ -35,6 +35,12 @@
@blur="resetFocusIndex"
:data-key="i.key"
/>
<customer-autocomplete
:showType="i.inputType"
:searchValue="customerInfo[i.key]"
:show="focusIndex == index"
@choose="chooseCustomer"
/>
<template v-if="i.unit">
<view class="unit">{{i.unit}}</view>
</template>
......@@ -75,8 +81,9 @@
<script type="text/ecmascript-6">
import CarBrands from '@/components/CarBrands.vue'
import InsuranceTable from './components/InsuranceTable.vue'
import CustomerAutocomplete from '@/components/CustomerAutocomplete.vue'
export default {
components: { CarBrands, InsuranceTable },
components: { CarBrands, InsuranceTable, CustomerAutocomplete },
props: {
penSwitch: Boolean,
show: Boolean,
......@@ -178,6 +185,15 @@ export default {
}
}
},
chooseCustomer (e) {
this.customerInfo = {
...this.customerInfo,
phoneNumber: e.ownerPhone,
customerName: e.ownerName,
carModel: e.brandModel
}
this.inputCustomer()
}
}
}
</script>
......
......@@ -126,14 +126,10 @@ export default {
handler (newval) {
this.$refs.popupRef?.close()
this.flag = false
this.scrollTop = 1000
this.scrollTop = -1
setTimeout(() => {
this.scrollTop = 0
}, 100);
}
},
show (n) {
if (n) {
const { storageKey } = this,
insuranceList = uni.getStorageSync(storageKey)
if (insuranceList) {
......@@ -141,6 +137,11 @@ export default {
this.insuranceList = JSON.parse(JSON.stringify(insuranceList))
this.flag = true
}
}
},
show (n) {
if (n) {
this.getMerchantInsuranceList()
}
},
......@@ -258,8 +259,8 @@ export default {
return processedString
},
choose(item, index) {
if(this.isPreview) return
choose (item, index) {
if (this.isPreview) return
this.insuranceList[index].checked = !item.checked
},
}
......
......@@ -25,12 +25,12 @@
export default {
name: 'ReceptionSence',
props: {
customerInfo:Object
customerInfo: Object
},
data () {
return {
list:[],
id:''
list: [],
id: ''
}
},
watch: {
......@@ -52,7 +52,7 @@ export default {
watchStatus () {
return this.$store.state.user.historyStatus
},
watchCustomerInfo() {
watchCustomerInfo () {
return this.customerInfo
},
},
......@@ -70,7 +70,7 @@ export default {
})
.then((res) => {
this.list = res || []
}).catch(err =>{
}).catch(err => {
this.list = []
})
},
......@@ -90,15 +90,15 @@ export default {
.select-box {
margin: 40rpx 0;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20rpx;
grid-template-columns: repeat(4, 1fr);
gap: 32rpx;
overflow-y: scroll;
max-height: 50vh;
padding-bottom: 60rpx;
.select-item {
text-align: center;
height: 68rpx;
line-height: 68rpx;
line-height: 44rpx;
opacity: 1;
border: 2rpx solid #dce0e6;
color: #292d33;
......
<template>
<view class="tool-box">
<view class="tool-box" :style="toolStyle">
<view
:class="['btn', {hideIcon:!show}]"
@click="show = false"
......@@ -64,13 +64,27 @@ export default {
idKey: {
type: String,
default: 'id'
}
},
toolStyle:String
},
data () {
return {
show: true
}
},
computed: {
watchStatus () {
return this.$store.state.user.historyStatus
},
},
watch: {
watchStatus: {
immediate: true,
handler (newval) {
this.show = true
}
},
},
methods: {
hide () {
this.show = true
......@@ -97,7 +111,7 @@ export default {
right: 40rpx;
top: calc(5% + 140rpx);
z-index: 998;
width: 128rpx;
width: 120rpx;
.btn {
width: 100%;
height: 120rpx;
......
const target = ["ip", "dev", "uat", "prod", "beta"];
const index = 2;
const target = ['ip', 'dev', 'uat', 'prod', 'beta']
const index = 2
/**
*
0本地
......@@ -12,110 +12,110 @@ const secretKey = {
ip: {},
dev: {
sso: {
appKey: "8b31ae1009ccb0f96130ca4bd90e3d89",
secret: "02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b",
},
appKey: '8b31ae1009ccb0f96130ca4bd90e3d89',
secret: '02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b'
}
},
uat: {
sso: {
appKey: "8b31ae1009ccb0f96130ca4bd90e3d89",
secret: "02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b",
},
appKey: '8b31ae1009ccb0f96130ca4bd90e3d89',
secret: '02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b'
}
},
prod: {
sso: {
appKey: "8b31ae1009ccb0f96130ca4bd90e3d89",
secret: "02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b",
},
appKey: '8b31ae1009ccb0f96130ca4bd90e3d89',
secret: '02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b'
}
},
beta: {
sso: {
appKey: "8b31ae1009ccb0f96130ca4bd90e3d89",
secret: "02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b",
},
},
}[target[index]];
appKey: '8b31ae1009ccb0f96130ca4bd90e3d89',
secret: '02d60f17ae714872845d2aa9d3b087e109ccb0f96130ca4b'
}
}
}[target[index]]
const domain = {
// ip: 'http://192.168.2.94:8558',
// ip: 'http://192.168.2.3:8315',
ip: "http://192.168.1.170:8315",
ip: 'http://192.168.1.170:8315',
/**登录: 192.168.2.3:8315
商城: 192.168.2.3:8558 */
dev: "https://scrm.dev.glsx.com.cn",
uat: "https://scrm.test.glsx.com.cn",
beta: "https://scrm.beta.glsx.com.cn",
prod: "https://scrm.glsx.com.cn",
}[target[index]];
dev: 'https://scrm.dev.glsx.com.cn',
uat: 'https://scrm.test.glsx.com.cn',
beta: 'https://scrm.beta.glsx.com.cn',
prod: 'https://scrm.glsx.com.cn'
}[target[index]]
const djDomain = {
ip: "http://192.168.2.59:8292",
ip: 'http://192.168.2.59:8292',
// ip: 'http://192.168.2.80:8558',
dev: "http://dj.dev.glsx.com.cn",
beta: "https://dj.beta.glsx.com.cn", //预发布 appid: wx9f91c1ec493eb425
uat: "https://dj.test.glsx.com.cn", //测试 appid: wxe10067a63c1856ac
prod: "https://dj.glsx.com.cn",
pet: "https://cdptest.glsx.com.cn", //压测 appid: wx7ce755e425603084
}[target[index]];
dev: 'http://dj.dev.glsx.com.cn',
beta: 'https://dj.beta.glsx.com.cn', //预发布 appid: wx9f91c1ec493eb425
uat: 'https://dj.test.glsx.com.cn', //测试 appid: wxe10067a63c1856ac
prod: 'https://dj.glsx.com.cn',
pet: 'https://cdptest.glsx.com.cn' //压测 appid: wx7ce755e425603084
}[target[index]]
const merchantDomain = {
ip: "http://rop-merchant.dev.glsx.com.cn",
dev: "http://rop-merchant.dev.glsx.com.cn",
beta: "https://rop-merchant.beta.glsx.com.cn",
uat: "https://rop-merchant.test.glsx.com.cn",
prod: "https://commodity.glsx.com.cn",
pet: "",
}[target[index]];
ip: 'http://rop-merchant.dev.glsx.com.cn',
dev: 'http://rop-merchant.dev.glsx.com.cn',
beta: 'https://rop-merchant.beta.glsx.com.cn',
uat: 'https://rop-merchant.test.glsx.com.cn',
prod: 'https://commodity.glsx.com.cn',
pet: ''
}[target[index]]
const djSecretKey = {
ip: {},
dev: {
appKey: "48e5e13229b82c1b4e6e8c96151f0637",
secret: "c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b",
appKey: '48e5e13229b82c1b4e6e8c96151f0637',
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
},
uat: {
appKey: "48e5e13229b82c1b4e6e8c96151f0637",
secret: "c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b",
appKey: '48e5e13229b82c1b4e6e8c96151f0637',
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
},
beta: {
appKey: "48e5e13229b82c1b4e6e8c96151f0637",
secret: "c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b",
appKey: '48e5e13229b82c1b4e6e8c96151f0637',
secret: 'c24619ed7fef02a0ae16328146bca5f97cc6493957a2137b'
},
prod: {
appKey: "d7ffc3346fc9a45bccaaa35300d59022",
secret: "4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353",
appKey: 'd7ffc3346fc9a45bccaaa35300d59022',
secret: '4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353'
},
pet: {
appKey: "d7ffc3346fc9a45bccaaa35300d59022",
secret: "4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353",
},
}[target[index]];
appKey: 'd7ffc3346fc9a45bccaaa35300d59022',
secret: '4bc07f8868374c49a4661d603377e3106fc9a45bccaaa353'
}
}[target[index]]
const pathEnum = {
sso: "/rop-scrm-sso/",
shopmall: "/rop-scrm-shopmall/",
coupon: "/rop-scrm-coupon/",
carlife: "/rop-scrm-carlife/",
live: "/rop-scrm-live/",
equity: "/rop-scrm-equity/",
entmicro: "/rop-scrm-entmicro/",
wechat: "/rop-scrm-wechat/",
boutiquecoupon: "/rop-scrm-boutiquecoupon/",
material: "/rop-scrm-marketing/", //素材
sop: "/rop-scrm-sop/",
customercollect: "/rop-scrm-bigdatautil/",
mindworkplate: "/rop-dj-smartcarlife/",
drac: "/rop-scrm-entmicro/",
busassistant: "/rop-scrm-busassistant/",
boutique: "/rop-dj-car-boutique/",
merchants: "/rop-merchants/",
};
sso: '/rop-scrm-sso/',
shopmall: '/rop-scrm-shopmall/',
coupon: '/rop-scrm-coupon/',
carlife: '/rop-scrm-carlife/',
live: '/rop-scrm-live/',
equity: '/rop-scrm-equity/',
entmicro: '/rop-scrm-entmicro/',
wechat: '/rop-scrm-wechat/',
boutiquecoupon: '/rop-scrm-boutiquecoupon/',
material: '/rop-scrm-marketing/', //素材
sop: '/rop-scrm-sop/',
customercollect: '/rop-scrm-bigdatautil/',
mindworkplate: '/rop-dj-smartcarlife/',
drac: '/rop-scrm-entmicro/',
busassistant: '/rop-scrm-busassistant/',
boutique: '/rop-dj-car-boutique/',
merchants: '/rop-merchants/'
}
const CONFIG_ENV_MAP = {
1: "develop",
2: "test",
3: "production",
4: "beta",
};
1: 'develop',
2: 'test',
3: 'production',
4: 'beta'
}
module.exports = {
index,
domain,
......@@ -124,5 +124,5 @@ module.exports = {
env: CONFIG_ENV_MAP[index],
djDomain,
merchantDomain,
djSecretKey,
};
djSecretKey
}
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
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
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.
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!