493 lines
12 KiB
JavaScript
493 lines
12 KiB
JavaScript
/**
|
||
* 页面静态数据
|
||
*/
|
||
const moduleBarInfos = [{
|
||
id: 1,
|
||
cuIcon: 'homefill',
|
||
pageCode: 'indexPage',
|
||
name: '首页'
|
||
}, {
|
||
id: 2,
|
||
cuIcon: 'shop',
|
||
pageCode: 'shopingMallPage',
|
||
name: '商城'
|
||
}, {
|
||
id: 3,
|
||
cuIcon: 'message',
|
||
pageCode: 'msgPage',
|
||
name: '消息',
|
||
countTag: 100
|
||
}, {
|
||
id: 4,
|
||
cuIcon: 'my',
|
||
pageCode: 'myPage',
|
||
name: '我的'
|
||
}]
|
||
|
||
const myInfo = {
|
||
id: 1,
|
||
picUrl: 'https://ossweb-img.qq.com/images/lol/web201310/skin/big5000.jpg',
|
||
name: '叮咚任务师傅端',
|
||
entryType: null,
|
||
hasCheckedRule: true,
|
||
order: {
|
||
noReservation: 5,
|
||
noSchedule: 6,
|
||
onsiteTimeout: 3,
|
||
onsiteToday: [{
|
||
id: 1,
|
||
work: '灯具维修-灯泡射灯',
|
||
address: '广东省 广州市 白云区 xx街道',
|
||
datetime: '2022-4-22 10:00:00'
|
||
}, {
|
||
id: 2,
|
||
work: '冰箱维修',
|
||
address: '广东省 广州市 天河区 xx街道',
|
||
datetime: '2022-4-22 14:00:00'
|
||
}]
|
||
},
|
||
weekNotice: {
|
||
id: 1,
|
||
title: '您的一笔订单金额已到帐',
|
||
ifHasNoReadNotice: true
|
||
},
|
||
rate: '4.5',
|
||
balance: '200',
|
||
door24h: true,
|
||
warranty72h: true,
|
||
certification: true,
|
||
deposit: false
|
||
}
|
||
|
||
const myTeamInfo = {
|
||
takeRate: 0.5,
|
||
members: [{
|
||
id: '1sdfasdf',
|
||
name: '师傅1',
|
||
avatarUrl: 'https://ossweb-img.qq.com/images/lol/web201310/skin/big5001.jpg',
|
||
noteName: '备注名称1',
|
||
phoneNum: '13455444567',
|
||
showEditInput: false
|
||
}, {
|
||
id: 'dfsdfsdfds',
|
||
name: '师傅2',
|
||
avatarUrl: 'https://ossweb-img.qq.com/images/lol/web201310/skin/big5002.jpg',
|
||
noteName: '',
|
||
phoneNum: '13655455434',
|
||
showEditInput: true
|
||
}, {
|
||
id: 'sdcec',
|
||
name: '师傅3',
|
||
avatarUrl: 'https://ossweb-img.qq.com/images/lol/web201310/skin/big5002.jpg',
|
||
noteName: '',
|
||
phoneNum: '13655455422',
|
||
showEditInput: true
|
||
}]
|
||
}
|
||
|
||
const masterRules = [
|
||
'0规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容',
|
||
'1规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容',
|
||
'2规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容',
|
||
'3规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容',
|
||
'4规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容',
|
||
'5规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容',
|
||
'6规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容',
|
||
'7规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容',
|
||
'8规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容规则内容'
|
||
]
|
||
|
||
// type: 0=升降序,1=功能按钮;order: 0=升序,1=降序;
|
||
const taskConditions = [{
|
||
code: 'area',
|
||
title: '区域'
|
||
}, {
|
||
code: 'category',
|
||
title: '品类'
|
||
}, {
|
||
code: 'distance',
|
||
title: '距离',
|
||
type: 0,
|
||
value: 0,
|
||
}, {
|
||
code: 'time',
|
||
title: '时间',
|
||
type: 0,
|
||
value: 0,
|
||
}, {
|
||
code: 'reset',
|
||
type: 1,
|
||
title: '重置'
|
||
}]
|
||
|
||
const tasks = [{
|
||
id: 1,
|
||
title: '清洗-油烟机/油烟机全拆洗+空调挂机',
|
||
tag: ['油烟机全拆洗+空调挂机', '京东店铺'],
|
||
address: '广东省惠州市惠城区小金口街道兴华街10号',
|
||
doorTime: '2022-01-17 12:00:00-12:15:00',
|
||
price: '170.00',
|
||
expeditedPrice: '70.00',
|
||
phoneNum: '13455635441',
|
||
canQuote: true
|
||
}, {
|
||
id: 2,
|
||
title: '清洗-油烟机/油烟机全拆洗+空调挂机',
|
||
tag: ['油烟机全拆洗+空调挂机', '京东店铺'],
|
||
address: '广东省惠州市惠城区小金口街道兴华街10号',
|
||
doorTime: '2022-01-17 12:00:00-12:15:00',
|
||
price: '170.00',
|
||
expeditedPrice: '70.00',
|
||
phoneNum: '13455635442',
|
||
canQuote: true
|
||
}, {
|
||
id: 3,
|
||
title: '清洗-油烟机/油烟机全拆洗+空调挂机',
|
||
tag: ['油烟机全拆洗+空调挂机', '京东店铺'],
|
||
address: '广东省惠州市惠城区小金口街道兴华街10号',
|
||
doorTime: '2022-01-17 12:00:00-12:15:00',
|
||
price: '170.00',
|
||
expeditedPrice: '70.00',
|
||
phoneNum: '13455635443',
|
||
canQuote: true
|
||
}];
|
||
|
||
const takeCertify = true;
|
||
|
||
const areaList = [
|
||
[{
|
||
id: 100,
|
||
name: '广东'
|
||
}, {
|
||
id: 101,
|
||
name: '海南'
|
||
}],
|
||
[{
|
||
id: 200,
|
||
name: '广州'
|
||
}],
|
||
[{
|
||
id: 300,
|
||
name: '天河'
|
||
}]
|
||
]
|
||
|
||
const regionList = [
|
||
[{
|
||
id: 100,
|
||
name: '广东'
|
||
}, {
|
||
id: 101,
|
||
name: '海南'
|
||
}],
|
||
[{
|
||
id: 200,
|
||
name: '广州'
|
||
}]
|
||
]
|
||
|
||
const districtList = [{
|
||
id: 0,
|
||
name: '天河区',
|
||
checked: false
|
||
}, {
|
||
id: 1,
|
||
name: '番禺区',
|
||
checked: false
|
||
}, {
|
||
id: 2,
|
||
name: '南沙区',
|
||
checked: false
|
||
}, {
|
||
id: 3,
|
||
name: '黄浦区',
|
||
checked: false
|
||
}]
|
||
|
||
const categoryList = [
|
||
[{
|
||
id: 100,
|
||
name: '电器类'
|
||
}, {
|
||
id: 101,
|
||
name: '家政类'
|
||
}],
|
||
[{
|
||
id: 200,
|
||
name: '全部'
|
||
}],
|
||
[{
|
||
id: 300,
|
||
name: '全部'
|
||
}]
|
||
];
|
||
|
||
const order = {
|
||
id: 1,
|
||
title: '清洗-油烟机/油烟机全拆洗+空调挂机',
|
||
tag: ['油烟机全拆洗+空调挂机', '京东店铺'],
|
||
address: '广东省惠州市惠城区小金口街道兴华街10号',
|
||
doorTime: '2022-01-17 12:00:00-12:15:00',
|
||
price: '170.00',
|
||
expeditedPrice: '70.00',
|
||
phoneNum: '13455635441',
|
||
contactPerson: '周梅',
|
||
picUrl: 'https://ossweb-img.qq.com/images/lol/web201310/skin/big6001.jpg',
|
||
spec: '200*300cm',
|
||
servType: '空调清洗',
|
||
serialId: '12233342345223',
|
||
createTime: '2022-01-17 15:44:32',
|
||
comments: '上门前10分钟先电话联系'
|
||
}
|
||
|
||
const myOrders = {
|
||
summary: {
|
||
overtimeOrderNum: 336,
|
||
todayOrderNum: 1,
|
||
tomorrowOrderNum: 0,
|
||
urgentMsgOrderNum: 0,
|
||
newOrderNum: 1
|
||
},
|
||
orderList: [{
|
||
id: 1,
|
||
title: '清洗空调/挂机内机拆洗(不分匹)',
|
||
state: '',
|
||
subState: 'waitServing',
|
||
tags: [{
|
||
level: 'info',
|
||
content: '商城订单'
|
||
}, {
|
||
level: 'error',
|
||
content: '超时未预约'
|
||
}],
|
||
name: 'cc',
|
||
address: '广东省广州市天河区。。。。。。',
|
||
servTime: '2022-06-01 08:00-08:30',
|
||
doorTime: '2022-06-01 08:15:00',
|
||
comments: '备注内容。。。。。。',
|
||
phoneNum: '13233433467',
|
||
deadlineDate: '2022-06-01 08:30:00',
|
||
product: {
|
||
id: 1,
|
||
picUrl: 'https://ossweb-img.qq.com/images/lol/web201310/skin/big20000.jpg',
|
||
name: '柜机空调清洗1',
|
||
comments: '备---------注',
|
||
salePrice: 199,
|
||
price: 250,
|
||
type: '空调/清洗',
|
||
servArea: ['天河区', '黄埔区', '荔湾区'],
|
||
pickedList: [{
|
||
id: 101,
|
||
name: '挂机内机拆洗1(不分匹)',
|
||
valColArr: [{
|
||
value: 3
|
||
}, {
|
||
numberBox: true,
|
||
max: 3
|
||
}]
|
||
}]
|
||
}
|
||
}]
|
||
}
|
||
|
||
const timeRangeList = [
|
||
'08:00-08:30',
|
||
'08:30-09:00',
|
||
'09:00-09:30',
|
||
'09:30-10:00',
|
||
'10:00-10:30',
|
||
'10:30-11:00',
|
||
'11:00-11:30',
|
||
'11:30-12:00',
|
||
'12:00-12:30',
|
||
'12:30-13:00',
|
||
'13:00-13:30',
|
||
'13:30-14:00',
|
||
'14:00-14:30',
|
||
'14:30-15:00',
|
||
'14:30-15:00',
|
||
'15:00-15:30',
|
||
'15:30-16:00',
|
||
'16:00-16:30',
|
||
'16:30-17:00',
|
||
'17:00-17:30',
|
||
'17:30-18:00',
|
||
'18:00-18:30',
|
||
'18:30-19:00',
|
||
'19:00-19:30',
|
||
'19:30-20:00'
|
||
]
|
||
|
||
const servDetail = {
|
||
taskTraceLine: [{
|
||
time: '2022-01-09 16:45:28',
|
||
action: '上门'
|
||
}, {
|
||
time: '2022-01-07 16:45:28',
|
||
action: '预约时间'
|
||
}],
|
||
mainServOrder: {
|
||
servTitle: '清洗-空调',
|
||
orderTag: ['挂机', '到付试单', '到付款单'],
|
||
address: '北京市东城区东华街道0.1到付+0.1代收',
|
||
person2Contact: {
|
||
name: '杨先生',
|
||
phone: '12222233222'
|
||
},
|
||
bookTime: '2022-01-07 16:45:28',
|
||
boodTime: '2022-01-07 16:45:28',
|
||
doorTime: '2022-01-07 16:45:28',
|
||
taskPrice: '-5.91',
|
||
gratuityRecord: [{
|
||
type: '服务费',
|
||
price: '-3.00'
|
||
}, {
|
||
type: '加急费',
|
||
price: '-3.00'
|
||
}]
|
||
},
|
||
product: {
|
||
id: 1,
|
||
// indexPath: '0-0',
|
||
picUrl: 'https://ossweb-img.qq.com/images/lol/web201310/skin/big20000.jpg',
|
||
name: '空调挂机柜机清洗服务',
|
||
comments: '高温清洗拆洗空调部分挂机柜机',
|
||
pickedNum: 1,
|
||
salePrice: 199,
|
||
price: 250,
|
||
type: '空调/清洗',
|
||
servArea: ['天河区', '黄埔区', '荔湾区'],
|
||
pickedList: [{
|
||
id: 101,
|
||
// indexPath: '0-0-0',
|
||
name: '直径5.5mm黑色5米价',
|
||
pickedNum: 1,
|
||
toServNum: 1
|
||
}, {
|
||
id: 102,
|
||
// indexPath: '0-0-1',
|
||
name: '直径6.5mm黑色5米价',
|
||
pickedNum: 1,
|
||
toServNum: 1
|
||
}]
|
||
},
|
||
finishRecord: [{
|
||
finishTime: '2022-08-18 16:45:28',
|
||
finishList: [{
|
||
id: 101,
|
||
// indexPath: '0-0-0',
|
||
name: '直径5.5mm黑色5米价',
|
||
pickedNum: 1,
|
||
servedNum: 1
|
||
}]
|
||
}, {
|
||
finishTime: '2022-08-20 16:45:28',
|
||
finishList: [{
|
||
id: 102,
|
||
// indexPath: '0-0-1',
|
||
name: '直径6.5mm黑色5米价',
|
||
pickedNum: 1,
|
||
servedNum: 1
|
||
}]
|
||
}],
|
||
talkMsgNum: 1,
|
||
serialCode: '20211007859098945',
|
||
createTime: '2021-10-07 16:15:46'
|
||
}
|
||
|
||
const goodsList = [{
|
||
id: 1,
|
||
picUrl: '',
|
||
name: '高温清洗油烟机清洗服务',
|
||
comments: '侧吸式T形机油烟机清洗服务',
|
||
servArea: ['惠州市'],
|
||
salePrice: 165,
|
||
groupBuyDate: ["", ""],
|
||
isGoldenServ: true
|
||
}, {
|
||
id: 1,
|
||
picUrl: '',
|
||
name: '高温清洗油烟机清洗服务',
|
||
comments: '侧吸式T形机油烟机清洗服务',
|
||
servArea: ['惠州市'],
|
||
salePrice: 165,
|
||
groupBuyDate: ["2021-03-20 20:10:10", "2021-05-10 10:10:10"],
|
||
isGoldenServ: false
|
||
}, {
|
||
id: 1,
|
||
picUrl: '',
|
||
name: '高温清洗油烟机清洗服务',
|
||
comments: '侧吸式T形机油烟机清洗服务',
|
||
servArea: ['惠州市'],
|
||
salePrice: 165,
|
||
groupBuyDate: ["2021-03-20 20:10:10", "2021-05-10 10:10:10"],
|
||
isGoldenServ: false
|
||
}, {
|
||
id: 1,
|
||
picUrl: '',
|
||
name: '高温清洗油烟机清洗服务',
|
||
comments: '侧吸式T形机油烟机清洗服务',
|
||
servArea: ['惠州市'],
|
||
salePrice: 165,
|
||
groupBuyDate: ["2021-03-20 20:10:10", "2021-05-10 10:10:10"],
|
||
isGoldenServ: false
|
||
}]
|
||
|
||
const areaObj = {
|
||
provinceList: [{
|
||
id: 1,
|
||
name: '广东省'
|
||
}],
|
||
cityList: [{
|
||
id: 1,
|
||
name: '深圳市'
|
||
}],
|
||
districtList: [{
|
||
id: 1,
|
||
name: '宝安区'
|
||
}],
|
||
streetList: [{
|
||
id: 1,
|
||
name: '松岗镇'
|
||
}],
|
||
communityList: [{
|
||
id: 1,
|
||
name: '意乐小区'
|
||
}]
|
||
};
|
||
|
||
const specsList = [{
|
||
id: 1,
|
||
checked: true,
|
||
name: '电脑式'
|
||
}, {
|
||
id: 2,
|
||
checked: false,
|
||
name: '小修(压敏/盘管/传感器/接收器/定时器)'
|
||
}, {
|
||
id: 3,
|
||
checked: false,
|
||
name: '小修(压敏/盘管/传感器/接收器/定时器)'
|
||
}]
|
||
|
||
export default {
|
||
moduleBarInfos,
|
||
myInfo,
|
||
myTeamInfo,
|
||
masterRules,
|
||
taskConditions,
|
||
tasks,
|
||
takeCertify,
|
||
categoryList,
|
||
areaList,
|
||
order,
|
||
myOrders,
|
||
timeRangeList,
|
||
servDetail,
|
||
goodsList,
|
||
areaObj,
|
||
specsList,
|
||
regionList,
|
||
districtList
|
||
}
|