Commit 522f8153 by 胡悦

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

2 parents 16b67659 1b220794
Showing 343 changed files with 8357 additions and 794 deletions
...@@ -2,20 +2,20 @@ ...@@ -2,20 +2,20 @@
* @Author: 前端 qianduan01@didihu.com.cn * @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-07 17:09:53 * @Date: 2024-04-07 17:09:53
* @LastEditors: 前端 qianduan01@didihu.com.cn * @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-18 17:59:32 * @LastEditTime: 2024-08-30 17:28:05
* @FilePath: \gl_tape\App.vue * @FilePath: \gl_tape\App.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
<script> <script>
var wv const PATH = ['/pages/common/caseDetail']
import { mapState } from 'vuex' import { mapState } from 'vuex'
export default { export default {
computed: { computed: {
...mapState('audio', ['isEnd', 'isStart']) ...mapState('audio', ['isEnd', 'isStart'])
}, },
onLoad() {},
onLaunch: async function () { onLaunch: async function () {
// this.init()
this.setAPPVersion() this.setAPPVersion()
setTimeout(() => { setTimeout(() => {
plus.screen.unlockOrientation() //解除锁定屏幕方向 plus.screen.unlockOrientation() //解除锁定屏幕方向
...@@ -26,6 +26,46 @@ export default { ...@@ -26,6 +26,46 @@ export default {
}) })
}, },
methods: { methods: {
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() { setAPPVersion() {
let version = plus.runtime.version let version = plus.runtime.version
let storageVersion = uni.$storage.get('storageVersion') let storageVersion = uni.$storage.get('storageVersion')
...@@ -60,6 +100,7 @@ export default { ...@@ -60,6 +100,7 @@ export default {
body { body {
// overflow: hidden; // overflow: hidden;
} }
page { page {
font-size: 28rpx; font-size: 28rpx;
height: 100%; height: 100%;
...@@ -121,6 +162,7 @@ button::after { ...@@ -121,6 +162,7 @@ button::after {
.button-hover { .button-hover {
transform: translate(1rpx, 1rpx); transform: translate(1rpx, 1rpx);
} }
.webview-container { .webview-container {
position: absolute; position: absolute;
width: 100rpx; width: 100rpx;
......
import http from "../request/http"; import http from '../request/http'
import environment from "@/env"; import environment from '@/env'
module.exports = { module.exports = {
/**获取APP更新 */ /**获取APP更新 */
getAPPVersion (data) { getAPPVersion(data) {
return http.post({ return http.post({
method: 'dj.api.smartcarlife.recepiton.findVersion', method: 'dj.api.smartcarlife.recepiton.findVersion',
projectName: "boutique", projectName: 'boutique',
...data, ...data
}); })
}, },
// 查询接待素材 // 查询接待素材
findSoureList (data) { findSoureList(data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.recepiton.soure.findSoureList", method: 'dj.api.smartcarlife.recepiton.soure.findSoureList',
projectName: "boutique", projectName: 'boutique',
...data ...data
}); })
}, },
// 查询门店支付配置 // 查询门店支付配置
findPayInfo (data) { findPayInfo(data) {
return http.post({ return http.post({
method: method: 'dj.api.smartcarlife.recepiton.pay.findPayInfoConfigListByMerchantId',
"dj.api.smartcarlife.recepiton.pay.findPayInfoConfigListByMerchantId", projectName: 'boutique',
projectName: "boutique", ...data
...data, })
});
}, },
// 接待客户信息保存 // 接待客户信息保存
saveRecCustomer (data) { saveRecCustomer(data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.recepiton.customer.saveRecCustomer", method: 'dj.api.smartcarlife.recepiton.customer.saveRecCustomer',
projectName: "boutique", projectName: 'boutique',
...data, ...data
}); })
}, },
getToken (data) { getToken(data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.recepiton.customer.oss.getToken", method: 'dj.api.smartcarlife.recepiton.customer.oss.getToken',
projectName: "boutique", projectName: 'boutique'
}); })
}, },
// 历史订单列表 // 历史订单列表
getQuotationList (data) { getQuotationList(data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page", method: 'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page',
projectName: "boutique", projectName: 'boutique',
...data, ...data
}); })
}, },
/** 获取门店主营车品牌 */ /** 获取门店主营车品牌 */
getMerchantCarBrandList (merchantIdList) { getMerchantCarBrandList(merchantIdList) {
return http.post({ return http.post(
{
method: 'merchants.api.open.merchant.info', method: 'merchants.api.open.merchant.info',
projectName: 'merchants', projectName: 'merchants',
merchantIdList, merchantIdList,
merchantInfoSwitch: { merchantInfoSwitch: {
brandFlag: true brandFlag: true
} }
}, false, 'merchant') },
false,
'merchant'
)
}, },
/** /**
* 车型 * 车型
* *
*/ */
getCarBrandsList (data) { getCarBrandsList(data) {
return http.post( return http.post(
{ {
method: "scrm.api.carlife.common.getCarSeriesList", method: 'scrm.api.carlife.common.getCarSeriesList',
...data, ...data
}, },
false, false,
"scrm" 'scrm'
); )
}, },
/** /**
* 推荐人 * 推荐人
*/ */
getEmployeeList (data) { getEmployeeList(data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.employee.getByMerchantId", method: 'dj.api.smartcarlife.employee.getByMerchantId',
projectName: "boutique", projectName: 'boutique',
sceneList: [0], sceneList: [0],
...data, ...data
}); })
}, },
/** 查询接待记录列表 */ /** 查询接待记录列表 */
getReceptionList (data) { getReceptionList(data) {
return http.post({ return http.post({
method: "dj.api.smartcarlife.reception.customer.page", method: 'dj.api.smartcarlife.reception.customer.page',
projectName: "boutique", projectName: 'boutique',
...data, ...data
}); })
}, },
/** 接待统计 */ /** 接待统计 */
getReceptionStatistics (data) { getReceptionStatistics(data) {
return http.post({
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({ return http.post({
method: "dj.api.smartcarlife.reception.customer.statistics", method: 'dj.api.customer.dynamic.record.leave',
projectName: "boutique", projectName: 'boutique',
...data, ...data
}); })
}, },
/**创建小程序码 */ /**创建小程序码 */
createQrcode (data) { createQrcode(data) {
const envVersion = { const envVersion = {
0: 'develop', 0: 'develop',
1: 'develop', 1: 'develop',
...@@ -112,10 +131,15 @@ module.exports = { ...@@ -112,10 +131,15 @@ module.exports = {
3: 'release', 3: 'release',
4: 'trial' 4: 'trial'
}[environment.index] }[environment.index]
data.projectName = "wechat" data.projectName = 'wechat'
return http.fetch("scrm.api.wechat.miniprogram.createQrcode", { return http.fetch(
'scrm.api.wechat.miniprogram.createQrcode',
{
envVersion, envVersion,
...data ...data
}, true, 'scrm');
}, },
}; true,
'scrm'
)
}
}
import http from "../request/http";
import environment from "@/env";
module.exports = {
/**查询当前门店是否有客户档案权限 */
haveCustomerAccess (data) {
return http.post({
method: 'dj.api.smartcarlife.customervisits.findPermissionsMerchantList',
projectName: "boutique",
...data,
});
},
/**查询当前门店客户档案列表 */
getCustomerFileList (data) {
return http.post({
method: 'dj.api.smartcarlife.customervisits.customerInfoPage',
projectName: "boutique",
...data,
});
},
/* 删除客户档案*/
delCustomerFile (data) {
return http.post({
method: 'dj.api.smartcarlife.customervisits.deleteVisitsInfo',
projectName: "boutique",
...data,
});
},
/** 根据业务查询接待场景 */
findAllSence (data) {
return http.post({
method: 'dj.api.smartcarlife.customervisits.findAllSence',
projectName: "boutique",
...data,
});
},
/**根据业务查询客户标签 */
findCustomerTags (data) {
return http.post({
method: 'dj.api.smartcarlife.customervisits.findSenceTag',
projectName: "boutique",
...data,
});
},
/**
* 查询客户档案详情
*/
findVisitsInfo (data) {
return http.post({
method: 'dj.api.smartcarlife.customervisits.findVisitsInfo',
projectName: "boutique",
...data,
});
},
/*
* 保存客户档案
*/
saveVisitsInfo (data) {
return http.post({
method: 'dj.api.smartcarlife.customervisits.saveVisitsInfo',
projectName: "boutique",
...data,
});
},
/**
* 更新客户档案
*/
updateVisitsInfo (data) {
return http.post({
method: 'dj.api.smartcarlife.customervisits.updateVisitsInfo',
projectName: "boutique",
...data,
});
},
/**查询客户档案列表 */
getCustomerInfoList (data) {
return http.post({
method: 'dj.api.smartcarlife.customervisits.customerInfoList',
projectName: "boutique",
...data,
});
},
/**接待客户素材
*
*/
getMaterialResponsePage (data) {
return http.post({
method: 'dj.api.smartcarlife.customervisits.getMaterialResponsePage',
projectName: "boutique",
...data,
});
},
/**素材详情 查询素材详情 */
getMaterialDetail (data) {
return http.post({
method: 'dj.api.smartcarlife.customervisits.getMaterialById',
projectName: "boutique",
...data,
});
},
}
\ No newline at end of file \ No newline at end of file
...@@ -2,9 +2,11 @@ import commonApi from "./common"; ...@@ -2,9 +2,11 @@ import commonApi from "./common";
import systemApi from "./systemApi"; import systemApi from "./systemApi";
import userApi from "./userApi"; import userApi from "./userApi";
import boutiqueApi from "./boutique"; import boutiqueApi from "./boutique";
import customerApi from "./customerApi";
module.exports = { module.exports = {
commonApi, commonApi,
systemApi, systemApi,
userApi, userApi,
boutiqueApi, boutiqueApi,
customerApi
}; };
...@@ -11,10 +11,17 @@ const serverConfig = { ...@@ -11,10 +11,17 @@ const serverConfig = {
mockTimer: {}, mockTimer: {},
mockCache: null, mockCache: null,
}, },
boutiqueServerConfig = {
mockRequestCount: null,
mockTimer: {},
mockCache: null,
},
configModule = 'app-tape', configModule = 'app-tape',
bydConfigModule = 'byd-pad-config', bydConfigModule = 'byd-pad-config',
boutiqueConfigModule = 'boutique-pad-config',
configUrl = `https://config-center-backend.glsx.com.cn/glsxAdmin/config?moduleUrl=${configModule}&env=${env}`, 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数据 */ /**获取mock数据 */
const getMockData = async (immediate = false) => { const getMockData = async (immediate = false) => {
...@@ -124,7 +131,44 @@ const getBydMockData = async (immediate = false) => { ...@@ -124,7 +131,44 @@ const getBydMockData = async (immediate = false) => {
bydServerConfig.mockRequestCount = null; bydServerConfig.mockRequestCount = null;
return Promise.reject(error); 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('byd_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 getImageVersion = async () => {
const accountInfo = await getMockData() const accountInfo = await getMockData()
...@@ -136,5 +180,6 @@ module.exports = { ...@@ -136,5 +180,6 @@ module.exports = {
getMockData, getMockData,
imgToBase64, imgToBase64,
updateMockData, updateMockData,
getBydMockData getBydMockData,
getBoutiqueMockData
} }
\ No newline at end of file \ No newline at end of file
.sprite-icon { background-image: url(@/assets/images/sprite.png);background-size: 1310rpx 1028rpx;} .sprite-icon { background-image: url(@/assets/images/sprite.png);background-size: 1310rpx 1044rpx;}
.icon-addr { width: 32rpx; height: 32rpx; background-position: -1240rpx -557rpx;} .icon-addr { width: 32rpx; height: 32rpx; background-position: -1165rpx -617rpx;}
.icon-aito { width: 320rpx; height: 36rpx; background-position: -830rpx -617rpx;} .icon-aito { width: 320rpx; height: 36rpx; background-position: -830rpx -617rpx;}
.icon-arrow-right { width: 32rpx; height: 32rpx; background-position: -1165rpx -617rpx;} .icon-arrow-right { width: 32rpx; height: 32rpx; background-position: -1212rpx -617rpx;}
.icon-avatar { width: 96rpx; height: 96rpx; background-position: -635rpx -726rpx;} .icon-avatar { width: 96rpx; height: 96rpx; background-position: -635rpx -726rpx;}
.icon-back { width: 128rpx; height: 50rpx; background-position: -333rpx -853rpx;} .icon-back { width: 128rpx; height: 50rpx; background-position: -333rpx -853rpx;}
.icon-bao { width: 196rpx; height: 220rpx; background-position: -830rpx -382rpx;} .icon-bao { width: 196rpx; height: 220rpx; background-position: -830rpx -382rpx;}
.icon-boutique-config-0 { width: 44rpx; height: 44rpx; background-position: -765rpx -621rpx;}
.icon-boutique-config-1 { width: 44rpx; height: 44rpx; background-position: -476rpx -853rpx;}
.icon-boutique-config-2 { width: 44rpx; height: 44rpx; background-position: -535rpx -853rpx;}
.icon-byd { width: 184rpx; height: 36rpx; background-position: -1041rpx -557rpx;} .icon-byd { width: 184rpx; height: 36rpx; background-position: -1041rpx -557rpx;}
.icon-change-account { width: 32rpx; height: 32rpx; background-position: -1212rpx -617rpx;} .icon-change-account { width: 32rpx; height: 32rpx; background-position: -1259rpx -617rpx;}
.icon-clone { width: 24rpx; height: 24rpx; background-position: -1285rpx -668rpx;} .icon-clone { width: 24rpx; height: 24rpx; background-position: -781rpx -509rpx;}
.icon-customer-1 { width: 400rpx; height: 400rpx; background-position: 0rpx 0rpx;} .icon-customer-1 { width: 400rpx; height: 400rpx; background-position: 0rpx 0rpx;}
.icon-customer-2 { width: 400rpx; height: 400rpx; background-position: -415rpx 0rpx;} .icon-customer-2 { width: 400rpx; height: 400rpx; background-position: -415rpx 0rpx;}
.icon-customer-detail { width: 40rpx; height: 40rpx; background-position: -830rpx -668rpx;} .icon-customer-detail { width: 40rpx; height: 40rpx; background-position: -830rpx -668rpx;}
...@@ -17,22 +20,22 @@ ...@@ -17,22 +20,22 @@
.icon-face-error { width: 96rpx; height: 96rpx; background-position: -857rpx -726rpx;} .icon-face-error { width: 96rpx; height: 96rpx; background-position: -857rpx -726rpx;}
.icon-face-success-active { width: 96rpx; height: 96rpx; background-position: -968rpx -726rpx;} .icon-face-success-active { width: 96rpx; height: 96rpx; background-position: -968rpx -726rpx;}
.icon-face-success { width: 96rpx; height: 96rpx; background-position: -1079rpx -726rpx;} .icon-face-success { width: 96rpx; height: 96rpx; background-position: -1079rpx -726rpx;}
.icon-feedback { width: 64rpx; height: 64rpx; background-position: -1216rpx -469rpx;} .icon-feedback { width: 64rpx; height: 64rpx; background-position: -1216rpx -477rpx;}
.icon-first-nav { width: 464rpx; height: 176rpx; background-position: -830rpx -191rpx;} .icon-first-nav { width: 464rpx; height: 176rpx; background-position: -830rpx -191rpx;}
.icon-home-active { width: 112rpx; height: 112rpx; background-position: -127rpx -726rpx;} .icon-home-active { width: 112rpx; height: 112rpx; background-position: -127rpx -726rpx;}
.icon-home { width: 112rpx; height: 112rpx; background-position: -254rpx -726rpx;} .icon-home { width: 112rpx; height: 112rpx; background-position: -254rpx -726rpx;}
.icon-icon-arrow { width: 32rpx; height: 32rpx; background-position: -1259rpx -617rpx;} .icon-icon-arrow { width: 32rpx; height: 32rpx; background-position: -1160rpx -668rpx;}
.icon-icon-close { width: 72rpx; height: 72rpx; background-position: -1216rpx -382rpx;} .icon-icon-close { width: 72rpx; height: 72rpx; background-position: -285rpx -964rpx;}
.icon-icon-female { width: 32rpx; height: 32rpx; background-position: -1050rpx -668rpx;} .icon-icon-female { width: 32rpx; height: 32rpx; background-position: -1207rpx -668rpx;}
.icon-icon-male { width: 32rpx; height: 32rpx; background-position: -1097rpx -668rpx;} .icon-icon-male { width: 32rpx; height: 32rpx; background-position: -1254rpx -668rpx;}
.icon-icon-shop { width: 32rpx; height: 32rpx; background-position: -1144rpx -668rpx;} .icon-icon-shop { width: 32rpx; height: 32rpx; background-position: -781rpx -415rpx;}
.icon-icon-upload { width: 128rpx; height: 128rpx; background-position: -503rpx -415rpx;} .icon-icon-upload { width: 128rpx; height: 128rpx; background-position: -503rpx -415rpx;}
.icon-icon-weixin { width: 32rpx; height: 32rpx; background-position: -1191rpx -668rpx;} .icon-icon-weixin { width: 32rpx; height: 32rpx; background-position: -781rpx -462rpx;}
.icon-invisible { width: 40rpx; height: 40rpx; background-position: -885rpx -668rpx;} .icon-invisible { width: 40rpx; height: 40rpx; background-position: -885rpx -668rpx;}
.icon-kf-0 { width: 32rpx; height: 32rpx; background-position: -1238rpx -668rpx;} .icon-kf-0 { width: 32rpx; height: 32rpx; background-position: -594rpx -853rpx;}
.icon-kf-1 { width: 32rpx; height: 32rpx; background-position: -781rpx -415rpx;} .icon-kf-1 { width: 32rpx; height: 32rpx; background-position: -641rpx -853rpx;}
.icon-kf-2 { width: 32rpx; height: 32rpx; background-position: -781rpx -462rpx;} .icon-kf-2 { width: 32rpx; height: 32rpx; background-position: -688rpx -853rpx;}
.icon-kf-3 { width: 32rpx; height: 32rpx; background-position: -765rpx -621rpx;} .icon-kf-3 { width: 32rpx; height: 32rpx; background-position: -735rpx -853rpx;}
.icon-logo { width: 160rpx; height: 160rpx; background-position: -1041rpx -382rpx;} .icon-logo { width: 160rpx; height: 160rpx; background-position: -1041rpx -382rpx;}
.icon-no-insurance-data { width: 488rpx; height: 296rpx; background-position: 0rpx -415rpx;} .icon-no-insurance-data { width: 488rpx; height: 296rpx; background-position: 0rpx -415rpx;}
.icon-pen-active { width: 120rpx; height: 120rpx; background-position: -646rpx -415rpx;} .icon-pen-active { width: 120rpx; height: 120rpx; background-position: -646rpx -415rpx;}
...@@ -41,15 +44,22 @@ ...@@ -41,15 +44,22 @@
.icon-qw { width: 48rpx; height: 48rpx; background-position: -765rpx -558rpx;} .icon-qw { width: 48rpx; height: 48rpx; background-position: -765rpx -558rpx;}
.icon-record-active { width: 112rpx; height: 112rpx; background-position: -381rpx -726rpx;} .icon-record-active { width: 112rpx; height: 112rpx; background-position: -381rpx -726rpx;}
.icon-record { width: 112rpx; height: 112rpx; background-position: -508rpx -726rpx;} .icon-record { width: 112rpx; height: 112rpx; background-position: -508rpx -726rpx;}
.icon-scan { width: 32rpx; height: 32rpx; background-position: -476rpx -853rpx;} .icon-scan { width: 32rpx; height: 32rpx; background-position: -782rpx -853rpx;}
.icon-scene-0 { width: 96rpx; height: 96rpx; background-position: 0rpx -853rpx;} .icon-scene-0 { width: 96rpx; height: 96rpx; background-position: 0rpx -853rpx;}
.icon-scene-1 { width: 96rpx; height: 96rpx; background-position: -111rpx -853rpx;} .icon-scene-1 { width: 96rpx; height: 96rpx; background-position: -111rpx -853rpx;}
.icon-search { width: 40rpx; height: 40rpx; background-position: -940rpx -668rpx;} .icon-search { width: 40rpx; height: 40rpx; background-position: -940rpx -668rpx;}
.icon-second-nav { width: 480rpx; height: 176rpx; background-position: -830rpx 0rpx;} .icon-second-nav { width: 480rpx; height: 176rpx; background-position: -830rpx 0rpx;}
.icon-setting { width: 64rpx; height: 64rpx; background-position: 0rpx -964rpx;} .icon-setting { width: 64rpx; height: 64rpx; background-position: -372rpx -964rpx;}
.icon-store { width: 96rpx; height: 96rpx; background-position: -222rpx -853rpx;} .icon-store { width: 96rpx; height: 96rpx; background-position: -222rpx -853rpx;}
.icon-tool-file { width: 60rpx; height: 60rpx; background-position: -79rpx -964rpx;} .icon-tool-file { width: 60rpx; height: 60rpx; background-position: -451rpx -964rpx;}
.icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -154rpx -964rpx;} .icon-tool-finish { width: 60rpx; height: 60rpx; background-position: -526rpx -964rpx;}
.icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -229rpx -964rpx;} .icon-tool-pay { width: 60rpx; height: 60rpx; background-position: -601rpx -964rpx;}
.icon-total { width: 32rpx; height: 32rpx; background-position: -523rpx -853rpx;} .icon-total { width: 32rpx; height: 32rpx; background-position: -829rpx -853rpx;}
.icon-visible { width: 40rpx; height: 40rpx; background-position: -995rpx -668rpx;} .icon-visible { width: 40rpx; height: 40rpx; background-position: -995rpx -668rpx;}
.icon-customer-add { width: 80rpx; height: 80rpx; background-position: -1216rpx -382rpx;}
.icon-detail-start { width: 80rpx; height: 80rpx; background-position: 0rpx -964rpx;}
.icon-mask-del { width: 80rpx; height: 80rpx; background-position: -95rpx -964rpx;}
.icon-mask-edit { width: 80rpx; height: 80rpx; background-position: -190rpx -964rpx;}
.icon-pause { width: 40rpx; height: 40rpx; background-position: -1050rpx -668rpx;}
.icon-play { width: 40rpx; height: 40rpx; background-position: -1105rpx -668rpx;}
.icon-tag-checked { width: 60rpx; height: 32rpx; background-position: -1240rpx -557rpx;}
\ No newline at end of file \ No newline at end of file
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

1.13 MB | W: | H:

1.2 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
<template>
<view :class="['customer-box',{'is-show':showCustomerBox}]">
<view class="customer-title">客户档案的记录</view>
<scroll-view
scroll-y
class="scroll-box"
>
<template v-if="loading">
<view class="loading flex">
<uni-icons
type="refreshempty"
:size="46"
color="#3773F8"
class="icon"
></uni-icons>
</view>
</template>
<template v-else>
<template v-if="searchList.length">
<template v-for="(i,index) in searchList">
<view
class="item flex"
:key="index"
hover-class="active"
@click="$emit('choose',i)"
>
{{ `${showType == 'tel'?i.ownerPhone:i.ownerName}`}}
</view>
</template>
</template>
<template v-else>
<view class="nothing flex">
<view class="icon"></view>
未匹配到客户信息
</view>
</template>
</template>
</scroll-view>
</view>
</template>
<script type='text/ecmascript-6'>
export default {
name: 'CustomerAutocomplete',
props: {
searchValue: String,
showType: String,
show: Boolean
},
data () {
return {
loading: true,
searchList: []
}
},
watch: {
showCustomerBox: {
immediate: true,
handler (newval) {
if (newval) this.getCustomerInfoList(this.searchValue, this.showType)
}
}
},
computed: {
showCustomerBox () {
return this.show && this.haveCustomerAccess && this.searchValue
},
haveCustomerAccess () {
return this.$store.state.user.haveCustomerAccess
}
},
mounted () {
},
methods: {
async getCustomerInfoList (val, type) {
try {
this.loading = true
const { shopMerchantId, sceneType } = uni.$storage.get("userInfo"),
params = {
merchantId: shopMerchantId,
bussinessScene: sceneType == 0 ? 1 : 2 // 1.延保 2.轻改
}
if (type == 'tel') params.ownerPhone = val
else params.ownerName = val
this.searchList = await uni.$api.customerApi.getCustomerInfoList(params)
this.loading = false
} catch (error) {
this.loading = false
}
}
}
}
</script>
<style scoped lang='scss'>
.customer-box {
position: absolute;
left: 0;
top: 88rpx;
width: 100%;
height: 352rpx;
background: #ffffff;
border-radius: 16rpx;
z-index: -1;
opacity: 0;
.customer-title {
font-size: 24rpx;
color: #999999;
line-height: 40rpx;
padding: 16rpx 24rpx 8rpx;
}
.scroll-box {
height: calc(100% - 64rpx);
.loading {
width: 100%;
height: 100%;
justify-content: center;
.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;
font-size: 28rpx;
color: #333333;
line-height: 40rpx;
padding-left: 24rpx;
margin-bottom: 8rpx;
}
.active {
background: #ecf1ff;
}
@keyframes rotate-loading {
0% {
transform: rotate(0);
}
100% {
transform: rotate(360deg);
}
}
}
}
.is-show {
z-index: 1;
opacity: 1;
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<MessageBox
ref="customerTagstVisible"
position="bottom"
:isFooter="false"
title="请选择客户标签"
:maxHeight="1000"
@close="$emit('close')"
>
<view class="select-views">
<template v-for="(i,index) in list">
<view
class="select-group"
:key="index"
>
<view class="select-title">{{ i.labelName }}</view>
<view class="select-box">
<view
class="select-item"
:class="{ checked: checkedItem(item) }"
@click="handleSelect(item)"
v-for="(item, ind) in i.nextList"
:key="ind"
>
<view class="sprite-icon icon-tag-checked"></view>
{{ item.labelName }}
</view>
</view>
</view>
</template>
</view>
<view class="footer-btns">
<view
class="btn cancel"
@click="close"
>取消</view>
<view
class="btn"
@click="choose"
>确定</view>
</view>
</MessageBox>
</template>
<script type='text/ecmascript-6'>
export default {
name: 'CustomerTags',
props: {
chooseList: Array
},
data () {
return {
list: [],
component_chooseList: [],
}
},
watch: {
watchStatus: {
immediate: true,
handler (newval) {
this.close()
}
},
chooseList: {
immediate: true,
handler (newval) {
this.component_chooseList = JSON.parse(JSON.stringify(newval))
}
}
},
computed: {
watchStatus () {
return this.$store.state.user.historyStatus
},
},
mounted () {
},
methods: {
open () {
this.$refs.customerTagstVisible.open()
const userInfo = uni.$storage.get("userInfo"),
{ sceneType } = userInfo;
uni.$api.customerApi
.findCustomerTags({
scene: sceneType,
})
.then((res) => {
this.list = res || []
})
},
handleSelect (item) {
let { component_chooseList } = this,
index = component_chooseList.findIndex(e => e.labelId == item.labelId)
if (index == -1) component_chooseList.push(item)
else component_chooseList.splice(index, 1)
this.component_chooseList = component_chooseList
this.$forceUpdate()
},
close () {
this.$refs?.customerTagstVisible?.close()
},
checkedItem (item) {
let { component_chooseList } = this
return component_chooseList.findIndex(e => e.labelId == item.labelId) != -1
},
choose () {
this.$emit('select', this.component_chooseList)
this.close();
}
}
}
</script>
<style scoped lang='scss'>
.select-views {
overflow-y: scroll;
max-height: 50vh;
position: relative;
padding-bottom: 128rpx;
.select-group {
margin: 32rpx 0;
.select-title {
font-size: 28rpx;
color: #999999;
margin-bottom: 10rpx;
}
.select-box {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20rpx;
.select-item {
text-align: center;
height: 68rpx;
line-height: 68rpx;
opacity: 1;
border: 2rpx solid #dce0e6;
color: #292d33;
font-size: 28rpx;
border-radius: 8rpx;
position: relative;
.sprite-icon {
display: none;
position: absolute;
right: -2rpx;
top: -2rpx;
}
}
.checked {
border: 2rpx solid #2c66f7;
background: #ecf1ff;
color: #2c66f7;
.sprite-icon {
display: block;
}
}
}
}
}
.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;
align-items: center;
font-weight: 500;
font-size: 32rpx;
color: #ffffff;
}
.cancel {
background: #dae9ff;
color: #2c66f7;
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<view class="record-box">
<view :class="['record-content',`${showInfo?'hide-record':'show-record'}`]">
<view
class="add-btn flex"
@click="editItem(false)"
>
<view class="sprite-icon icon-customer-add"></view>
新增档案
</view>
<view class="data-container">
<view :class="['type-box']">
<view
class="tab-item"
v-for="(i, index) in typeList"
:key="index"
@click="changeType(index)"
>
<view
class="sprite-icon"
:class="[
firstIndex == index ? `icon-${firstClass[index]} active` : '',
]"
:style="{ left: firstLeft[index] }"
></view>
<view
class="text"
:class="[firstIndex == index ? `active` : '']"
>{{ i.tabName}}</view>
</view>
</view>
<view class="tabs-bottom"></view>
<view
v-if="firstIndex == 0"
class="data-tabs-box"
>
<view class="data-tabs">
<template v-for="(i, index) in dateList">
<view
:class="['tab flex', { active: dateIndex == index }]"
:key="index"
@click="changeIndex(index)"
>{{ i.text }}</view>
</template>
<view
class="active-btn"
:style="activeBtnStyle"
></view>
</view>
</view>
<scroll-view
:class="['record-list', {'type-1':firstIndex == 1}]"
scroll-y
@scrolltolower="pageonReachBottom"
>
<view class="list">
<template v-if="flag">
<template v-if="list.length && list[0] && list[0].length">
<template v-for="(i,index) in list">
<template v-for="(item,cindex) in i">
<view
class="item"
:key="item.id"
@longpress="longPress(item,index,cindex)"
@click="jumpDetail(item.id)"
>
<view
v-if="firstIndex == 1"
:class="[
'status flex',
{ deal: item.receptionResult == 1 },
]"
>{{
{
1: "成交",
0: "战败",
}[item.receptionResult]
}}</view>
<view class="name">
{{ item.ownerName }}
</view>
<template v-for="(k, ind) in itemObject">
<view
class="info flex"
:key="`${item.id}-${ind}`"
v-if="showItem(k.key)"
>
<view class="label">{{ k.label }}</view>
<view class="value text-hide">{{ item[k.key] || "-" }}</view>
</view>
</template>
<view
:class="['mask',{'show-mask':item.maskStatus}]"
@click.stop
>
<view
class="mask-close"
@click.stop="closeMask(index,cindex)"
>
<uni-icons
type="closeempty"
:size="16"
color="#fff"
></uni-icons>
</view>
<template v-if="item.showDel">
<view class="mask-del-box flex">
是否删除该客户档案
<view class="btns flex">
<view
class="btn cancel"
@click.stop="switchDel(index,cindex)"
>取消</view>
<view
class="btn"
@click.stop="delItem(item.id,index,cindex)"
>确定</view>
</view>
</view>
</template>
<template v-else>
<view class="mask-box flex">
<view
class="mask-item"
@click="editItem(item)"
>
<view class="sprite-icon icon-mask-edit"></view>
编辑
</view>
<view
class="mask-item"
@click.stop="switchDel(index,cindex, true)"
>
<view class="sprite-icon icon-mask-del"></view>
删除
</view>
</view>
</template>
</view>
</view>
</template>
</template>
</template>
<template v-else>
<view class="nothing flex">
<image
class="icon"
src="../../../assets/images/home/nothing.webp"
/>
暂无接待记录
</view>
</template>
</template>
</view>
<template v-if="nothing">
<view class="end-text">到底了!</view>
</template>
</scroll-view>
</view>
</view>
<uni-popup
ref="successRef"
type="message"
>
<uni-popup-message
type="success"
message="删除成功"
:duration="1500"
></uni-popup-message>
</uni-popup>
<customer-info
:customerId="customerId"
:show.sync="showInfo"
@refresh="refresh"
/>
</view>
</template>
<script type="text/ecmascript-6">
import dayjs from 'dayjs'
import CustomerInfo from './CustomerInfo.vue'
export default {
components: {
CustomerInfo
},
name: '',
data () {
return {
typeList: [
{ tabName: '未接待' },
{ tabName: '已接待' },
],
firstIndex: 0,
firstLeft: ['0rpx', '352rpx', '756rpx'],
firstClass: ['first-nav', 'second-nav', 'second-nav'],
dateList: [
{ text: '今日' },
{ text: '本周' },
{ text: '本月' },
{ text: '全部' }
],
itemObject: [
{ label: '车主电话', key: 'ownerPhone' },
{ label: '品牌车型', key: 'brandModel' },
{ label: '客户标签', key: 'customerTagName' },
{ label: '到店日期', key: 'arrivalDate' },
{ label: '接待时间', key: 'receptionTime' },
{ label: '接待人员', key: 'receptionist' },
],
dateIndex: 0,
pageNum: 1,
total: 0,
list: [],
flag: false,
nothing: false,
pageSize: 18,
customerId: '',
showInfo: false,
}
},
computed: {
activeBtnStyle () {
let { dateIndex } = this
return {
transform: `translate(calc(${dateIndex * 184}rpx), -50%)`
}
}
},
mounted () {
this.init();
},
methods: {
refresh () {
this.flag = false
this.list = []
this.pageNum = 1;
this.nothing = false
this.getReceptionList()
},
changeType (index) {
if (this.firstIndex == index) return // 点击同一个
this.firstIndex = index
this.refresh()
},
init () {
this.dateList.map((e, index) => {
const tatget = ['day', 'week', 'month', 'all'][index]
const {
startTime,
endTime
} = this.getDateRange(tatget)
e.startTime = startTime
e.endTime = endTime
})
this.getReceptionList()
},
async getReceptionList () {
try {
uni.showLoading({
mask: true
})
let { dateList, dateIndex, pageNum, pageSize, firstIndex } = this,
{ shopMerchantId, sceneType } = uni.$storage.get("userInfo"),
{ startTime, endTime } = dateList[dateIndex],
params = {
pageNum,
pageSize,
receptionStatus: firstIndex == 0 ? 1 : 2,
merchantId: shopMerchantId,
bussinessScene: sceneType == 0 ? 1 : 2 // 1.延保 2.轻改
}
if (firstIndex == 0 && startTime && endTime) {
params.startTime = startTime
params.endTime = endTime
}
const { list, total } = await uni.$api.customerApi.getCustomerFileList(params)
uni.hideLoading()
list?.length && list.map(e => {
let ownerPhone = e.ownerPhone
e.arrivalDate = dayjs(e.arrivalDate).format("YYYY.MM.DD")
e.receptionTime = dayjs(e.receptionTime).format("YYYY.MM.DD HH:mm")
e.ownerPhone = ownerPhone.slice(0, 3) + " " + ownerPhone.slice(3, 7) + " " + ownerPhone.slice(7)
e.customerTagName = e.customerTagName ? e.customerTagName.replace(/,/g, '|') : ''
e.maskStatus = false
})
this.list[pageNum - 1] = list
this.flag = true
this.total = total
} catch (error) {
uni.hideLoading()
console.log(error)
this.flag = true
}
},
formatTime (num) {
let minutes = Math.floor(num / 60) || '0',
seconds = num % 60 || '0'
seconds = seconds < 10 ? `0${seconds}` : seconds
return {
minutes,
seconds
}
},
changeIndex (index, isType = false) {
if (this.dateIndex == index && !isType) return
this.dateIndex = index
this.refresh()
},
pageonReachBottom () {
let { pageNum, total, nothing, pageSize } = this
if (!nothing) nothing = 'nothing'
if (Math.ceil(total / pageSize) > pageNum) {
this.pageNum += 1
this.getReceptionList()
} else this.nothing = true
},
getDateRange (type) {
let now = new Date();
let startTime, endTime;
if (type === 'day') {
startTime = new Date(now.getFullYear(), now.getMonth(), now.getDate());
endTime = new Date(now.getFullYear(), now.getMonth(), now.getDate());
} else if (type === 'week') {
let dayOfWeek = now.getDay();
if (dayOfWeek == 0) dayOfWeek = 7
startTime = new Date(now.getFullYear(), now.getMonth(), now.getDate() - dayOfWeek + 1);
endTime = new Date(now.getFullYear(), now.getMonth(), now.getDate() + (7 - dayOfWeek));
} else if (type === 'month') {
startTime = new Date(now.getFullYear(), now.getMonth(), 1);
endTime = new Date(now.getFullYear(), now.getMonth() + 1, 0);
} else {
startTime = null
endTime = null
}
return {
startTime: startTime ? dayjs(startTime).format("YYYY-MM-DD") + ' 00:00:00' : '',
endTime: endTime ? dayjs(endTime).format("YYYY-MM-DD") + ' 23:59:59' : ''
};
},
showItem (key) {
let flag = true
if (this.firstIndex == 0 && ['receptionTime', 'receptionist'].includes(key)) flag = false
return flag
},
longPress (item, index, ind) {
if (this.firstIndex == 1 || item.maskStatus) return
this.list[index][ind].maskStatus = true
this.$forceUpdate()
},
closeMask (index, ind) {
this.list[index][ind].maskStatus = false
this.switchDel(index, ind, false)
},
switchDel (index, ind, result) {
this.list[index][ind].showDel = result
this.$forceUpdate()
},
editItem (item) {
this.customerId = item.id || ''
this.showInfo = true
},
async delItem (id, index, ind) {
try {
const res = await uni.$api.customerApi.delCustomerFile({ id })
if (res) {
this.list[index].splice(ind, 1)
this.$forceUpdate()
this.$refs.successRef.open()
}
} catch (error) {
uni.showToast({
title: error,
icon: 'none'
})
console.log(error)
}
},
jumpDetail (id) {
if (this.firstIndex == 1) return
uni.navigateTo({
url: `/pages/common/customerDetail?id=${id}`,
animationType: 'pop-in',
animationDuration: 100
})
}
}
}
</script>
<style scoped lang="scss">
.record-box {
box-sizing: border-box;
height: 100%;
.record-content {
height: 100%;
box-sizing: border-box;
padding-top: 96rpx;
.data-container {
background: #ffffff;
border-radius: 48rpx;
margin-top: 48rpx;
height: 1112rpx;
margin-right: 66rpx;
box-shadow: inset 0 0 16rpx 0 #ffffff;
border: 2rpx solid #fff;
box-sizing: border-box;
position: relative;
.type-box {
position: relative;
display: flex;
width: 100%;
background-color: #eef4fe;
height: 176rpx;
line-height: 128rpx;
border-radius: 48rpx 48rpx 0 0;
z-index: 0;
.tab-item {
width: 400rpx;
text-align: center;
font-weight: 500;
font-size: 40rpx;
color: #1f2133;
.text {
position: relative;
text-align: center;
width: 400rpx;
}
.active {
position: absolute;
top: 0;
z-index: -1;
font-weight: 700;
font-size: 40rpx;
color: #2c66f7;
&::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 48rpx;
height: 8rpx;
background-color: #2c66f7;
border-radius: 16rpx;
}
}
}
}
}
}
.hide-record {
opacity: 0;
}
.show-record {
opacity: 1;
position: relative;
animation: show-box 0.15s forwards;
}
@keyframes show-box {
0% {
left: 100%;
}
100% {
left: 0;
}
}
.record-list {
height: calc(100% - 248rpx);
position: relative;
z-index: 4;
}
.type-1 {
height: calc(100% - 128rpx);
margin-top: -48rpx;
.list {
padding-top: 48rpx;
.item {
.name {
max-width: 416rpx;
}
}
}
}
.list {
display: flex;
flex-wrap: wrap;
gap: 40rpx 44rpx;
padding: 40rpx 0 20rpx 64rpx;
.item {
width: 608rpx;
background: #ffffff;
box-sizing: border-box;
padding: 24rpx 32rpx;
position: relative;
box-shadow: 0 8rpx 24rpx 0 #2c66f71a;
border-radius: 16rpx;
.status {
position: absolute;
top: 24rpx;
right: 32rpx;
width: 88rpx;
height: 44rpx;
background: #fdece9;
color: #f24724;
border-radius: 4rpx;
font-weight: 500;
font-size: 24rpx;
justify-content: center;
}
.deal {
background: #eaf9f1;
color: #35c376;
}
.name {
font-weight: 500;
font-size: 32rpx;
color: #292d33;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
line-height: 44rpx;
max-width: 100%;
}
.info {
margin-top: 12rpx;
font-size: 24rpx;
color: #999ea8;
.value {
margin-left: auto;
color: #666666;
max-width: 388rpx;
}
}
.mask {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4);
border-radius: 16rpx;
opacity: 0;
pointer-events: none;
&-close {
position: absolute;
right: 16rpx;
top: 16rpx;
z-index: 8;
}
&-box {
width: 100%;
height: 100%;
justify-content: center;
gap: 0 96rpx;
.mask-item {
font-size: 26rpx;
color: #ffffff;
text-align: center;
line-height: 36rpx;
.sprite-icon {
margin-bottom: 8rpx;
}
}
}
&-del-box {
width: 100%;
height: 100%;
justify-content: center;
font-size: 28rpx;
color: #ffffff;
line-height: 36rpx;
flex-direction: column;
animation: opacity-0-1 0.5s forwards;
.btns {
justify-content: center;
gap: 0 16rpx;
margin-top: 56rpx;
.btn {
width: 192rpx;
height: 64rpx;
background-image: linear-gradient(0deg, #2c66f7 0%, #48a6ff 100%);
border-radius: 32rpx;
box-sizing: border-box;
text-align: center;
line-height: 64rpx;
font-size: 26rpx;
color: #ffffff;
}
.cancel {
border: 2rpx solid #ffffff;
background-image: none;
}
}
}
}
.show-mask {
pointer-events: auto;
opacity: 1;
}
}
}
}
.add-btn {
width: 2040rpx;
height: 200rpx;
background-image: url('@/assets/images/common/customer-btn.webp');
background-size: 100%;
font-weight: 700;
font-size: 48rpx;
color: #ffffff;
justify-content: center;
.sprite-icon {
margin-right: 32rpx;
}
}
.tabs-bottom {
background: #fff;
height: 48rpx;
position: relative;
z-index: 3;
border-radius: 24px 24px 0 0;
position: absolute;
width: 100%;
top: 128rpx;
}
.data-tabs-box {
position: relative;
top: 0;
z-index: 3;
margin-top: -8rpx;
.data-tabs {
display: flex;
justify-content: space-between;
width: fit-content;
height: 76rpx;
background-color: #f2f2f2;
border-radius: 16rpx;
margin-left: 64rpx;
position: relative;
padding: 4rpx;
box-sizing: content-box;
&::after {
position: absolute;
z-index: -2;
background: #ffffff;
width: 100%;
height: 100%;
left: 0;
top: 0;
content: '';
}
.tab {
width: 184rpx;
height: 76rpx;
justify-content: center;
font-size: 28rpx;
color: #1f2133;
z-index: 10;
opacity: 0.7;
}
.active {
opacity: 1;
}
.active-btn {
position: absolute;
width: 184rpx;
height: 76rpx;
background: #ffffff;
top: 50%;
transform: translateY(-50%);
border-radius: 16rpx;
transition: all 0.15s;
}
}
}
.nothing {
width: 100%;
flex-direction: column;
margin-top: 112rpx;
font-size: 28rpx;
color: #999999;
.icon {
width: 676rpx;
height: 284rpx;
margin-bottom: 24rpx;
}
}
.end-text {
color: #999;
text-align: center;
padding: 50rpx 0;
font-size: 24rpx;
}
@keyframes opacity-0-1 {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
</style>
<template>
<view :class="['fixed-page',{'show-box':show}]">
<view :class="['customer-info-box',backClass]">
<view class="nav-bar">
<view
class="back"
@click="back"
>
<uni-icons
type="left"
:size="20"
color="#000"
></uni-icons>
</view>
客户档案
</view>
<view class="form-box flex">
<template v-for="(i,index) in customerForm">
<view
class="form-item flex"
:key="index"
>
<view class="label flex">
<view
class="required"
v-if="i.required"
>*</view>{{i.label}}
</view>
<template v-if="i.type == 'input'">
<input
:type="i.inputType"
:maxlength="i.maxlength"
v-model="customerInfo[i.valueKey]"
:class="['input',{error:i.error}]"
placeholder="请选择"
placeholder-style="color:rgba(51, 51, 51, 0.2);"
confirm-type="done"
/>
</template>
<template v-else-if="i.type == 'date'">
<picker
mode="date"
fields="day"
:start="startDate"
:end="endDate"
@change="bindDateChange"
:value="customerInfo[i.valueKey]"
>
<view :class="['select flex',{placeholderStyle:!customerInfo[i.valueKey]}]">
<view class="value text-hide">{{customerInfo[i.valueKey] ||'请选择'}}</view>
<uni-icons
class="arrow"
type="right"
:size="16"
></uni-icons>
</view>
</picker>
</template>
<template v-else>
<view
:class="['select flex',{placeholderStyle:!customerInfo[i.valueKey]}]"
@click="showPopup(i.popKey)"
>
<view class="value text-hide">{{customerInfo[i.valueKey] ||'请选择'}}</view>
<uni-icons
class="arrow"
type="right"
:size="16"
></uni-icons>
</view>
</template>
</view>
</template>
</view>
<view class="btns flex">
<view
class="btn cancel"
@click="back"
>取消</view>
<view
:class="['btn',{disabled:check}]"
@click="submit"
>提交</view>
</view>
</view>
<view class="popup">
<car-brands
ref="carBrandVisible"
@select="handleSelect($event,'carBrandVisible')"
/>
<customer-tags
ref="customerTagstVisible"
@select="handleSelect($event,'customerTagstVisible')"
:chooseList="tagsList"
></customer-tags>
<reception-sence
ref="receptionSceneVisible"
@select="handleSelect($event,'receptionSceneVisible')"
:customerInfo="customerInfo"
></reception-sence>
</view>
<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'>
import CarBrands from '@/components/CarBrands.vue'
import dayjs from 'dayjs'
import CustomerTags from '../../CustomerTags.vue'
import ReceptionSence from '../../ReceptionSence.vue'
const phoneRex = /^[1]([3-9])[0-9]{9}$/,
default_customerForm = [{
label: '车主姓名',
valueKey: 'ownerName',
key: 'ownerName',
type: 'input',
inputType: 'text',
required: true,
maxlength: 50
},
{
label: '车主电话',
valueKey: 'ownerPhone',
key: 'ownerPhone',
type: 'input',
inputType: 'tel',
required: true,
maxlength: 11,
error: false
},
{
label: '品牌车型',
valueKey: 'brandModel',
key: 'brandModel',
type: 'select',
required: true,
popKey: 'carBrandVisible'
},
{
label: '接待场景',
valueKey: 'receptionSceneName',
key: 'receptionScene',
type: 'select',
required: true,
popKey: 'receptionSceneVisible'
},
{
label: '到店日期',
valueKey: 'arrivalDate',
key: 'arrivalDate',
type: 'date',
required: true,
},
{
label: '客户标签',
valueKey: 'customerTagName',
key: 'customerTagName',
type: 'select',
required: true,
popKey: 'customerTagstVisible'
}]
export default {
props: {
customerId: [Number, String],
show: Boolean
},
name: 'CustomerInfo',
components: { CarBrands, CustomerTags, ReceptionSence },
watch: {
show: {
immediate: true,
handler (newval) {
if (!newval) return
this.$store.dispatch("clearCustomerInfo");
this.$store.dispatch("clearHistory")
this.customerForm = JSON.parse(JSON.stringify(default_customerForm))
this.customerInfo = {
ownerName: '',
ownerPhone: '',
brandModel: '',
receptionScene: '',
arrivalDate: '',
customerTagName: '',
receptionSceneName: ''
}
if (this.customerId) this.findVisitsInfo()
}
}
},
computed: {
check () {
let { customerForm, customerInfo } = this,
result = false
try {
customerForm.map(e => {
if (e.required && !customerInfo[e.key]) throw true
})
} catch (error) {
result = error
}
return result
},
tagsList () {
let list = [],
{ customerInfo, customerTag } = this,
names = customerInfo.customerTagName ? customerInfo.customerTagName.split('|') : [],
isd = customerTag ? customerTag.split(',') : []
names.map((e, index) => {
list.push({
labelName: e,
labelId: isd[index]
})
})
return list
}
},
data () {
return {
customerForm: [],
customerInfo: {},
startDate: '',
endDate: '',
customerTag: '',
backClass: ''
}
},
mounted () {
this.startDate = dayjs(dayjs().subtract(7, 'day')).format("YYYY-MM-DD")
this.endDate = dayjs(dayjs().add(30, 'day')).format("YYYY-MM-DD")
},
methods: {
async findVisitsInfo () {
const res = await uni.$api.customerApi.findVisitsInfo({
id: this.customerId
})
if (res.customerTag) this.customerTag = res.customerTag
res.customerTagName = res.customerTagName.replace(/,/g, '|')
res.arrivalDate = dayjs(res.arrivalDate).format("YYYY-MM-DD")
this.customerInfo = res
console.log(res)
},
back () {
this.backClass = 'backClass'
setTimeout(() => {
this.backClass = ''
this.$emit('update:show', false)
}, 300)
},
showPopup (e) {
this.$refs[e].open()
},
handleSelect (item, popkey) {
this.$refs[popkey].close()
if (popkey == 'carBrandVisible') {
this.$refs.carBrandVisible.close()
this.customerInfo.brandModel = item.name
} else if (popkey == 'customerTagstVisible') {
let names = [],
ids = []
item.map(i => {
names.push(i.labelName)
ids.push(i.labelId)
})
this.customerInfo.customerTagName = names.join('|')
this.customerTag = ids.join(',')
} else {
this.customerInfo.receptionSceneName = item.receptionSceneName
this.customerInfo.receptionScene = item.id
}
},
bindDateChange (e) {
this.customerInfo.arrivalDate = e.detail.value
},
async submit () {
if (this.check) return
try {
this.customerForm.map(e => {
e.error = false
})
let { customerInfo, customerForm, customerTag } = this,
{ shopMerchantId, sceneType } = uni.$storage.get("userInfo"),
targetApi = customerInfo.id ? 'updateVisitsInfo' : 'saveVisitsInfo',
params = {
customerTag,
merchantId: shopMerchantId,
bussinessScene: sceneType == 0 ? 1 : 2 // 1.延保 2.轻改
}
if (!phoneRex.test(customerInfo.ownerPhone)) throw 'ownerPhone'
customerForm.map(e => {
params[e.key] = customerInfo[e.key]
})
if (customerInfo.id) params.id = customerInfo.id
params.customerTagName = params.customerTagName.replace(/|/g, ',')
const res = await uni.$api.customerApi[targetApi](params),
_this = this
if (res) {
/**1:成功,2:重复 */
if (res == '1') {
this.$refs.successRef.open()
setTimeout(() => {
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')
}
}
})
}
} catch (error) {
let index = this.customerForm.findIndex(e => e.key == error)
this.customerForm[index].error = true
}
}
}
}
</script>
<style scoped lang='scss'>
.fixed-page {
display: none;
width: 100vw;
height: 100vh;
position: fixed;
top: 0;
left: 0;
pointer-events: none;
z-index: 9;
.customer-info-box {
position: absolute;
top: 80rpx;
left: 240rpx;
width: 2042rpx;
height: 1376rpx;
background: #ffffff59;
box-shadow: inset 0 0 16rpx 0 #ffffff;
border-radius: 48rpx;
backdrop-filter: blur(8rpx);
pointer-events: auto;
animation: show-info-box 0.25s forwards;
.nav-bar {
width: 100%;
height: 96rpx;
z-index: 9;
text-align: center;
font-weight: 700;
font-size: 32rpx;
color: #1a1a1a;
line-height: 96rpx;
position: relative;
margin-top: 16rpx;
.back {
position: absolute;
left: 0;
top: 0;
height: 100%;
aspect-ratio: 1/1;
display: flex;
align-items: center;
justify-content: center;
}
}
.form-box {
flex-wrap: wrap;
padding: 32rpx 40rpx;
justify-content: space-between;
.form-item {
width: 934rpx;
height: 80rpx;
margin-bottom: 48rpx;
font-size: 28rpx;
}
.label {
width: 192rpx;
color: #292d33;
justify-content: center;
.required {
color: #f24724;
font-size: 28rpx;
}
}
.input,
.select {
width: 738rpx;
height: 76rpx;
background: #ffffff;
border-radius: 16rpx;
border: 2rpx solid transparent !important;
outline: none;
color: #333333;
border-radius: 16rpx;
box-sizing: border-box;
line-height: 76rpx;
padding: 0 32rpx !important;
box-sizing: border-box;
font-size: 28rpx;
&::placeholder {
color: #33333333;
}
.value {
max-width: 598rpx;
}
}
.placeholderStyle {
color: #33333333;
}
.arrow {
color: #999 !important;
margin-left: auto;
flex-shrink: 0;
}
.error {
border: 2rpx solid #f24724 !important;
}
}
.btns {
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;
}
.disabled {
background-image: linear-gradient(0deg, #2c66f799 0%, #48a6ff99 100%);
}
}
}
.backClass {
animation: back 0.25s forwards;
}
.popup {
pointer-events: auto;
}
@keyframes show-info-box {
0% {
left: 100%;
}
100% {
left: 240rpx;
}
}
@keyframes back {
0% {
left: 240rpx;
}
100% {
left: 100%;
}
}
}
.show-box {
display: block;
}
</style>
\ No newline at end of file \ No newline at end of file
<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 \ No newline at end of file
<template>
<view class="left-side">
<view class="user-info flex">
<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}]">
<template v-for="(i, index) in tabs">
<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>
{{ i.label }}
</view>
</template>
</view>
<view class="left-footer">
<view
class="btn"
@click="$refs.kfRef.open()"
>
<view class="sprite-icon icon-feedback"></view>
</view>
<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')"
/>
</view>
</template>
<script type='text/ecmascript-6'>
import KfBox from "./KfBox";
import SettingBox from "./SettingBox";
export default {
components: { KfBox, SettingBox },
props:{
tabIndex:Number,
userInfo:Object
},
name: '',
data () {
return {
tabs: [
{
label: "首页",
icon: "home",
},
{
label: "接待记录",
icon: "record",
},
],
}
},
watch:{
userInfo (n) {
if(n.shopMerchantId) this.haveCustomerAccess(n.shopMerchantId)
}
},
mounted () {
},
methods: {
changeIndex (index) {
if (this.tabIndex == index) return;
this.$emit('update:tabIndex',index)
this.$emit("changeTab", index)
},
async haveCustomerAccess (merchantId) {
const res = await uni.$api.customerApi.haveCustomerAccess({
merchantId
})
if (res && this.tabs.length == 2) this.tabs.push({
label: "客户档案",
icon: "customer-file",
})
this.$store.state.user.haveCustomerAccess = res
}
}
}
</script>
<style scoped lang='scss'>
.left-side {
display: flex;
flex-direction: column;
position: relative;
.left-tabs {
width: 240rpx;
height: 1080rpx;
display: flex;
flex-direction: column;
justify-content: center;
// align-items: center;
box-sizing: border-box;
padding: 16rpx 0;
position: absolute;
top: 50%;
left: 0;
transform: translateY(-50%);
margin: auto;
box-sizing: border-box;
padding-left: 32rpx;
&::after {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-image: url('@/assets/images/home/left.webp');
background-size: 100% 100%;
content: '';
z-index: -1;
}
.tab-item {
width: 112rpx;
font-size: 28rpx;
color: #8a98b5;
text-align: center;
padding-bottom: 96rpx;
.icon-box {
width: 112rpx;
height: 112rpx;
display: flex;
justify-content: center;
align-items: center;
border-radius: 100%;
}
}
.tabActive {
color: #3773f8;
.icon-box {
animation: arc-move 0.15s forwards;
}
}
@keyframes arc-move {
from {
transform: scale(0.1) rotate(0);
}
to {
transform: scale(1) rotate(360deg);
}
}
}
.three {
.tab-item {
padding-bottom: 64rpx;
}
}
.user-info {
width: 240rpx;
box-sizing: border-box;
padding-top: 92rpx;
flex-direction: column;
text-align: center;
position: relative;
z-index: 2;
.account-change {
width: 136rpx;
height: 32rpx;
background: #ffffff66;
border-radius: 16rpx;
font-size: 20rpx;
color: #9e9e9e;
justify-content: center;
margin-top: 10rpx;
}
}
.user-avatar {
width: 100rpx;
height: 100rpx;
border: 2rpx solid #ffffff;
box-shadow: 0 4rpx 8rpx 0 #0000001a;
border-radius: 100%;
}
.user-name {
font-weight: 500;
font-size: 28rpx;
color: #292d33;
margin-top: 16rpx;
padding: 0 24rpx;
}
.user-position {
font-size: 20rpx;
color: #9b9b9e;
margin-top: 8rpx;
}
.left-footer {
margin-top: auto;
padding: 0 0 80rpx 0;
}
.btn {
display: flex;
align-items: center;
margin: 48rpx auto 0;
box-sizing: border-box;
padding-left: 60rpx;
}
}
</style>
\ No newline at end of file \ No newline at end of file
...@@ -412,13 +412,24 @@ export default { ...@@ -412,13 +412,24 @@ export default {
.record-box { .record-box {
box-sizing: border-box; box-sizing: border-box;
height: 100%; height: 100%;
opacity: 1;
position: relative;
animation: show-box 0.15s forwards;
@keyframes show-box {
0% {
left: 100%;
}
100% {
left: 0;
}
}
.record-content { .record-content {
padding: 96rpx 0; padding: 96rpx 0;
.data-container { .data-container {
background: #ffffff; background: #ffffff;
border-radius: 48rpx; border-radius: 48rpx;
margin-top: 48rpx; margin-top: 48rpx;
height: calc(100vh - 440rpx); height: 1112rpx;
margin-right: 66rpx; margin-right: 66rpx;
box-shadow: inset 0 0 16rpx 0 #ffffff; box-shadow: inset 0 0 16rpx 0 #ffffff;
border: 2rpx solid #fff; border: 2rpx solid #fff;
...@@ -472,10 +483,10 @@ export default { ...@@ -472,10 +483,10 @@ export default {
position: relative; position: relative;
z-index: 4; z-index: 4;
} }
.type-1{ .type-1 {
height: calc(100% - 128rpx); height: calc(100% - 128rpx);
margin-top: -48rpx; margin-top: -48rpx;
.list{ .list {
padding-top: 48rpx; padding-top: 48rpx;
} }
} }
......
<template> <template>
<view class="container" @click="handleTouchStart">
<view :class="['home', { show: !id }]">
<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>
<view class="left-side">
<view class="user-info flex">
<view class="user-avatar sprite-icon icon-avatar"></view>
<view class="user-name">{{ userInfo.name }}</view>
</view>
<view class="left-tabs">
<template v-for="(i, index) in tabs">
<view <view
:class="['tab-item', { tabActive: tabIndex == index }]"
:key="index" class="container"
@click="changeIndex(index)"
@click="handleTouchStart"
> >
<view class="icon-box"> <view :class="['home', { show: !id }]">
<view <home-animation></home-animation>
:class="[ <left-side
'sprite-icon', :userInfo="userInfo"
`icon-${i.icon}${tabIndex == index ? '-active' : ''}`, :tabIndex.sync="tabIndex"
]" @changeTab="$emit('changeTab', $event)"
></view> @stopAudio="stopAudio"
</view> />
{{ i.label }}
</view>
</template>
</view>
<view class="left-footer">
<view class="btn" @click="$refs.kfRef.open()">
<view class="sprite-icon icon-feedback"></view>
</view>
<view class="btn" @click="$refs.settingRef.open()">
<view class="sprite-icon icon-setting"></view>
</view>
</view>
</view>
<view class="right-side"> <view class="right-side">
<template v-if="tabIndex == 0"> <template v-if="tabIndex == 0">
<view class="right-content"> <view class="right-content">
<view class="start" @click="$emit('start')"> <view
class="start"
@click="$emit('start')"
>
<image <image
class="start-btn" class="start-btn"
src="../../assets/images/home/start.gif" src="../../assets/images/home/start.gif"
alt="开始接待"
/> />
<image <image
class="start-border" class="start-border"
...@@ -63,7 +37,10 @@ ...@@ -63,7 +37,10 @@
</view> </view>
</template> </template>
<template v-else> <template v-else>
<record-list :userInfo="userInfo" /> <component
:is="componentName"
:userInfo="userInfo"
/>
</template> </template>
<view class="store-addr"> <view class="store-addr">
<view class="icon-addr sprite-icon icon-addr"></view> <view class="icon-addr sprite-icon icon-addr"></view>
...@@ -81,6 +58,7 @@ ...@@ -81,6 +58,7 @@
:popupW="704" :popupW="704"
content="直接点击素材可进行预览,若面向车主展示,请点击「开始接待」" content="直接点击素材可进行预览,若面向车主展示,请点击「开始接待」"
confirmBtnText="预览素材" confirmBtnText="预览素材"
@cancel="$emit('previewCancel')"
></MessageBox> ></MessageBox>
<!-- 停留弹框 --> <!-- 停留弹框 -->
<MessageBox <MessageBox
...@@ -99,23 +77,25 @@ ...@@ -99,23 +77,25 @@
:isFooter="false" :isFooter="false"
> >
<view class="footer"> <view class="footer">
<view class="footer-btn confirm flex" @click="$emit('openStep')"> <view
class="footer-btn confirm flex"
@click="$emit('openStep')"
>
<template v-if="finishDoneText"> <template v-if="finishDoneText">
{{ finishDoneText }} {{ finishDoneText }}
</template> </template>
<template v-else> 完成接待<text>(推荐)</text> </template> <template v-else> 完成接待<text>(推荐)</text> </template>
</view> </view>
<view class="footer-btn cancel flex" @click="$emit('backHome')"> <view
class="footer-btn cancel flex"
@click="$emit('backHome')"
>
仍要退出<text>(不推荐)</text> 仍要退出<text>(不推荐)</text>
</view> </view>
</view> </view>
</MessageBox> </MessageBox>
<!-- 升级弹框 --> <!-- 升级弹框 -->
<update-box /> <update-box />
<!-- 客服弹框 -->
<kf-box ref="kfRef" />
<!-- 设置弹框 -->
<setting-box ref="settingRef" @stopAudio="stopAudio" />
<slot name="content" /> <slot name="content" />
<web-view <web-view
@message="handlerMessage" @message="handlerMessage"
...@@ -125,14 +105,16 @@ ...@@ -125,14 +105,16 @@
</view> </view>
</template> </template>
<script> <script>
import KfBox from "./components/KfBox";
import SettingBox from "./components/SettingBox";
import RecordList from "./components/RecordList.vue"; import RecordList from "./components/RecordList.vue";
import myClick from "@/mixin/click"; import myClick from "@/mixin/click";
import uploader from "@/mixin/uploader.js"; import uploader from "@/mixin/uploader.js";
import HomeAnimation from './components/HomeAnimation.vue';
import CustomerFile from './components/CustomerFile.vue';
import LeftSide from './components/LeftSide.vue';
export default { export default {
mixins: [myClick,uploader], mixins: [myClick, uploader],
components: { KfBox, SettingBox, RecordList }, components: { RecordList, HomeAnimation, CustomerFile, LeftSide },
props: { props: {
id: [String, Number], id: [String, Number],
finishDoneText: String, finishDoneText: String,
...@@ -141,195 +123,36 @@ export default { ...@@ -141,195 +123,36 @@ export default {
default: "当前操作视为强制退出接待,若需正常流程完成接待请点击“完成接待”", default: "当前操作视为强制退出接待,若需正常流程完成接待请点击“完成接待”",
}, },
}, },
data() { data () {
return { return {
userInfo: {}, userInfo: {},
tabs: [ tabIndex: 0
{
label: "首页",
icon: "home",
},
{
label: "接待记录",
icon: "record",
},
],
tabIndex: 0,
dateKey: null,
}; };
}, },
mounted() { mounted () {
const userInfo = uni.$storage.get("userInfo") || {}; const userInfo = uni.$storage.get("userInfo") || {};
this.userInfo = userInfo; this.userInfo = userInfo;
setInterval(() => {
this.dateKey = Date.now();
}, 5e3);
}, },
computed: { computed: {
randomize() { previewRef () {
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};`;
},
previewRef() {
return this.$refs.previewRef; return this.$refs.previewRef;
}, },
finishRef() { finishRef () {
return this.$refs.finish; return this.$refs.finish;
}, },
componentName () {
if (this.tabIndex == 0) return 'HomeSlot'
else if (this.tabIndex == 1) return 'RecordList'
else return 'CustomerFile'
}, },
methods: {
changeIndex(index) {
if (this.tabIndex == index) return;
this.tabIndex = index;
this.$emit("changeTab", index);
}, },
methods: {
}, },
}; };
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.container { .container {
position: relative; position: relative;
.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;
}
}
}
@keyframes bottom-move {
0% {
transform: translate(0);
}
100% {
transform: translate(300%, -50%);
}
}
.home, .home,
.detail { .detail {
position: fixed; position: fixed;
...@@ -359,118 +182,6 @@ export default { ...@@ -359,118 +182,6 @@ export default {
left: 0; left: 0;
} }
} }
.left-side {
display: flex;
flex-direction: column;
position: relative;
.left-tabs {
width: 240rpx;
height: 1080rpx;
display: flex;
flex-direction: column;
justify-content: center;
// align-items: center;
box-sizing: border-box;
padding: 16rpx 0;
position: absolute;
top: 50%;
left: 0;
transform: translateY(-50%);
margin: auto;
box-sizing: border-box;
padding-left: 32rpx;
&::after {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-image: url("@/assets/images/home/left.webp");
background-size: 100% 100%;
content: "";
z-index: -1;
}
.tab-item {
width: 112rpx;
font-size: 28rpx;
color: #8a98b5;
text-align: center;
padding-bottom: 96rpx;
.icon-box {
width: 104rpx;
height: 104rpx;
display: flex;
justify-content: center;
align-items: center;
border-radius: 100%;
margin-bottom: 8rpx;
}
}
.tabActive {
color: #3773f8;
.icon-box {
animation: arc-move 0.15s forwards;
}
}
@keyframes arc-move {
from {
transform: scale(0.1) rotate(0);
}
to {
transform: scale(1) rotate(360deg);
}
}
}
.user-info {
width: 240rpx;
box-sizing: border-box;
padding-top: 92rpx;
flex-direction: column;
text-align: center;
position: relative;
z-index: 2;
.account-change {
width: 136rpx;
height: 32rpx;
background: #ffffff66;
border-radius: 16rpx;
font-size: 20rpx;
color: #9e9e9e;
justify-content: center;
margin-top: 10rpx;
}
}
.user-avatar {
width: 100rpx;
height: 100rpx;
border: 2rpx solid #ffffff;
box-shadow: 0 4rpx 8rpx 0 #0000001a;
border-radius: 100%;
}
.user-name {
font-weight: 500;
font-size: 28rpx;
color: #292d33;
margin-top: 16rpx;
padding: 0 24rpx;
}
.user-position {
font-size: 20rpx;
color: #9b9b9e;
margin-top: 8rpx;
}
.left-footer {
margin-top: auto;
padding: 0 0 80rpx 0;
}
.btn {
display: flex;
align-items: center;
margin: 48rpx auto 0;
box-sizing: border-box;
padding-left: 60rpx;
}
}
.right-side { .right-side {
flex: 1; flex: 1;
...@@ -479,32 +190,15 @@ export default { ...@@ -479,32 +190,15 @@ export default {
padding-top: 92rpx; padding-top: 92rpx;
height: 100vh; height: 100vh;
box-sizing: border-box; box-sizing: border-box;
position: relative;
animation: show-box 0.15s forwards;
} }
@keyframes moveAround { @keyframes show-box {
0%, 0% {
100% { left: 100%;
top: 0;
left: 0;
transform: translateX(0);
}
10%,
90% {
/* 调整这些百分比以适应长边移动 */
top: 0;
left: calc(100% - 20px);
transform: translateX(calc(100% - 20px));
}
50% {
top: calc(100% - 20px);
left: calc(100% - 20px);
transform: translateY(calc(100% - 20px)) translateX(calc(100% - 20px));
} }
40%, 100% {
60% {
/* 调整这些百分比以适应短边移动 */
top: calc(100% - 20px);
left: 0; left: 0;
transform: translateY(calc(100% - 20px)) translateX(0);
} }
} }
.start { .start {
...@@ -530,21 +224,6 @@ export default { ...@@ -530,21 +224,6 @@ export default {
position: relative; position: relative;
} }
.hover-class {
transform: scale(0.98);
.icon-start {
animation: rotate-icon 1.2s linear;
}
}
@keyframes rotate-icon {
0% {
transform: rotate(0);
}
100% {
transform: rotate(360deg);
}
}
.module-list { .module-list {
height: calc(100% - 336rpx); height: calc(100% - 336rpx);
} }
...@@ -572,7 +251,7 @@ export default { ...@@ -572,7 +251,7 @@ export default {
} }
&::before, &::before,
&::after { &::after {
content: ""; content: '';
width: 600rpx; width: 600rpx;
height: 2rpx; height: 2rpx;
...@@ -613,12 +292,4 @@ export default { ...@@ -613,12 +292,4 @@ export default {
font-size: 24rpx; font-size: 24rpx;
} }
} }
@keyframes shine {
0% {
background-position-x: 100%;
}
100% {
background-position-x: -100%;
}
}
</style> </style>
...@@ -35,6 +35,12 @@ ...@@ -35,6 +35,12 @@
@blur="resetFocusIndex" @blur="resetFocusIndex"
:data-key="i.key" :data-key="i.key"
/> />
<customer-autocomplete
:showType="i.inputType"
:searchValue="customerInfo[i.key]"
:show="focusIndex == index"
@choose="chooseCustomer"
/>
<template v-if="i.unit"> <template v-if="i.unit">
<view class="unit">{{i.unit}}</view> <view class="unit">{{i.unit}}</view>
</template> </template>
...@@ -75,8 +81,9 @@ ...@@ -75,8 +81,9 @@
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import CarBrands from '@/components/CarBrands.vue' import CarBrands from '@/components/CarBrands.vue'
import InsuranceTable from './components/InsuranceTable.vue' import InsuranceTable from './components/InsuranceTable.vue'
import CustomerAutocomplete from '@/components/CustomerAutocomplete.vue'
export default { export default {
components: { CarBrands, InsuranceTable }, components: { CarBrands, InsuranceTable, CustomerAutocomplete },
props: { props: {
penSwitch: Boolean, penSwitch: Boolean,
show: Boolean, show: Boolean,
...@@ -178,6 +185,15 @@ export default { ...@@ -178,6 +185,15 @@ export default {
} }
} }
}, },
chooseCustomer (e) {
this.customerInfo = {
...this.customerInfo,
phoneNumber: e.ownerPhone,
customerName: e.ownerName,
carModel: e.brandModel
}
this.inputCustomer()
}
} }
} }
</script> </script>
......
...@@ -155,7 +155,7 @@ export default { ...@@ -155,7 +155,7 @@ export default {
position: relative; position: relative;
width: 100%; width: 100%;
font-weight: 500; font-weight: 500;
font-size: 32rpx; font-size: 36rpx;
color: #292d33; color: #292d33;
text-align: center; text-align: center;
.icon-back { .icon-back {
......
<template>
<MessageBox
ref="receptionSceneVisible"
position="bottom"
:isFooter="false"
title="请选择接待场景"
:maxHeight="1000"
@close="$emit('close')"
>
<view class="select-box">
<view
class="select-item"
:class="{ checked: id == item.id }"
@click="handleSelect(item)"
v-for="(item, index) in list"
:key="index"
>
{{ item.receptionSceneName }}
</view>
</view>
</MessageBox>
</template>
<script type='text/ecmascript-6'>
export default {
name: 'ReceptionSence',
props: {
customerInfo:Object
},
data () {
return {
list:[],
id:''
}
},
watch: {
watchStatus: {
immediate: true,
handler (newval) {
this.close()
}
},
watchCustomerInfo: {
immediate: true,
handler (newval) {
console.log(newval)
this.id = newval.receptionScene
}
},
},
computed: {
watchStatus () {
return this.$store.state.user.historyStatus
},
watchCustomerInfo() {
return this.customerInfo
},
},
mounted () {
},
methods: {
open () {
this.$refs.receptionSceneVisible.open()
const userInfo = uni.$storage.get("userInfo"),
{ sceneType } = userInfo;
/**获取接待场景 */
uni.$api.customerApi
.findAllSence({
scene: sceneType,
})
.then((res) => {
this.list = res || []
}).catch(err =>{
this.list = []
})
},
handleSelect (item) {
this.close();
this.id = item.id
this.$emit('select', item)
},
close () {
this.$refs?.receptionSceneVisible?.close()
}
}
}
</script>
<style scoped lang='scss'>
.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>
\ No newline at end of file \ No newline at end of file
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
%%Copyright: -----------------------------------------------------------
%%Copyright: Copyright 1990-2009 Adobe Systems Incorporated.
%%Copyright: All rights reserved.
%%Copyright:
%%Copyright: Redistribution and use in source and binary forms, with or
%%Copyright: without modification, are permitted provided that the
%%Copyright: following conditions are met:
%%Copyright:
%%Copyright: Redistributions of source code must retain the above
%%Copyright: copyright notice, this list of conditions and the following
%%Copyright: disclaimer.
%%Copyright:
%%Copyright: Redistributions in binary form must reproduce the above
%%Copyright: copyright notice, this list of conditions and the following
%%Copyright: disclaimer in the documentation and/or other materials
%%Copyright: provided with the distribution.
%%Copyright:
%%Copyright: Neither the name of Adobe Systems Incorporated nor the names
%%Copyright: of its contributors may be used to endorse or promote
%%Copyright: products derived from this software without specific prior
%%Copyright: written permission.
%%Copyright:
%%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
%%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
%%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
%%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
%%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
%%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
%%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
%%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
%%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
%%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
%%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
%%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
%%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
%%Copyright: -----------------------------------------------------------
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
/* Copyright 2012 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint-disable no-var */
"use strict";
var FontInspector = (function FontInspectorClosure() {
var fonts;
var active = false;
var fontAttribute = "data-font-name";
function removeSelection() {
const divs = document.querySelectorAll(`span[${fontAttribute}]`);
for (const div of divs) {
div.className = "";
}
}
function resetSelection() {
const divs = document.querySelectorAll(`span[${fontAttribute}]`);
for (const div of divs) {
div.className = "debuggerHideText";
}
}
function selectFont(fontName, show) {
const divs = document.querySelectorAll(
`span[${fontAttribute}=${fontName}]`
);
for (const div of divs) {
div.className = show ? "debuggerShowText" : "debuggerHideText";
}
}
function textLayerClick(e) {
if (
!e.target.dataset.fontName ||
e.target.tagName.toUpperCase() !== "SPAN"
) {
return;
}
var fontName = e.target.dataset.fontName;
var selects = document.getElementsByTagName("input");
for (var i = 0; i < selects.length; ++i) {
var select = selects[i];
if (select.dataset.fontName !== fontName) {
continue;
}
select.checked = !select.checked;
selectFont(fontName, select.checked);
select.scrollIntoView();
}
}
return {
// Properties/functions needed by PDFBug.
id: "FontInspector",
name: "Font Inspector",
panel: null,
manager: null,
init: function init(pdfjsLib) {
var panel = this.panel;
var tmp = document.createElement("button");
tmp.addEventListener("click", resetSelection);
tmp.textContent = "Refresh";
panel.appendChild(tmp);
fonts = document.createElement("div");
panel.appendChild(fonts);
},
cleanup: function cleanup() {
fonts.textContent = "";
},
enabled: false,
get active() {
return active;
},
set active(value) {
active = value;
if (active) {
document.body.addEventListener("click", textLayerClick, true);
resetSelection();
} else {
document.body.removeEventListener("click", textLayerClick, true);
removeSelection();
}
},
// FontInspector specific functions.
fontAdded: function fontAdded(fontObj, url) {
function properties(obj, list) {
var moreInfo = document.createElement("table");
for (var i = 0; i < list.length; i++) {
var tr = document.createElement("tr");
var td1 = document.createElement("td");
td1.textContent = list[i];
tr.appendChild(td1);
var td2 = document.createElement("td");
td2.textContent = obj[list[i]].toString();
tr.appendChild(td2);
moreInfo.appendChild(tr);
}
return moreInfo;
}
var moreInfo = properties(fontObj, ["name", "type"]);
const fontName = fontObj.loadedName;
var font = document.createElement("div");
var name = document.createElement("span");
name.textContent = fontName;
var download = document.createElement("a");
if (url) {
url = /url\(['"]?([^\)"']+)/.exec(url);
download.href = url[1];
} else if (fontObj.data) {
download.href = URL.createObjectURL(
new Blob([fontObj.data], { type: fontObj.mimeType })
);
}
download.textContent = "Download";
var logIt = document.createElement("a");
logIt.href = "";
logIt.textContent = "Log";
logIt.addEventListener("click", function(event) {
event.preventDefault();
console.log(fontObj);
});
const select = document.createElement("input");
select.setAttribute("type", "checkbox");
select.dataset.fontName = fontName;
select.addEventListener("click", function() {
selectFont(fontName, select.checked);
});
font.appendChild(select);
font.appendChild(name);
font.appendChild(document.createTextNode(" "));
font.appendChild(download);
font.appendChild(document.createTextNode(" "));
font.appendChild(logIt);
font.appendChild(moreInfo);
fonts.appendChild(font);
// Somewhat of a hack, should probably add a hook for when the text layer
// is done rendering.
setTimeout(() => {
if (this.active) {
resetSelection();
}
}, 2000);
},
};
})();
var opMap;
// Manages all the page steppers.
var StepperManager = (function StepperManagerClosure() {
var steppers = [];
var stepperDiv = null;
var stepperControls = null;
var stepperChooser = null;
var breakPoints = Object.create(null);
return {
// Properties/functions needed by PDFBug.
id: "Stepper",
name: "Stepper",
panel: null,
manager: null,
init: function init(pdfjsLib) {
var self = this;
stepperControls = document.createElement("div");
stepperChooser = document.createElement("select");
stepperChooser.addEventListener("change", function(event) {
self.selectStepper(this.value);
});
stepperControls.appendChild(stepperChooser);
stepperDiv = document.createElement("div");
this.panel.appendChild(stepperControls);
this.panel.appendChild(stepperDiv);
if (sessionStorage.getItem("pdfjsBreakPoints")) {
breakPoints = JSON.parse(sessionStorage.getItem("pdfjsBreakPoints"));
}
opMap = Object.create(null);
for (var key in pdfjsLib.OPS) {
opMap[pdfjsLib.OPS[key]] = key;
}
},
cleanup: function cleanup() {
stepperChooser.textContent = "";
stepperDiv.textContent = "";
steppers = [];
},
enabled: false,
active: false,
// Stepper specific functions.
create: function create(pageIndex) {
var debug = document.createElement("div");
debug.id = "stepper" + pageIndex;
debug.setAttribute("hidden", true);
debug.className = "stepper";
stepperDiv.appendChild(debug);
var b = document.createElement("option");
b.textContent = "Page " + (pageIndex + 1);
b.value = pageIndex;
stepperChooser.appendChild(b);
var initBreakPoints = breakPoints[pageIndex] || [];
var stepper = new Stepper(debug, pageIndex, initBreakPoints);
steppers.push(stepper);
if (steppers.length === 1) {
this.selectStepper(pageIndex, false);
}
return stepper;
},
selectStepper: function selectStepper(pageIndex, selectPanel) {
var i;
pageIndex = pageIndex | 0;
if (selectPanel) {
this.manager.selectPanel(this);
}
for (i = 0; i < steppers.length; ++i) {
var stepper = steppers[i];
if (stepper.pageIndex === pageIndex) {
stepper.panel.removeAttribute("hidden");
} else {
stepper.panel.setAttribute("hidden", true);
}
}
var options = stepperChooser.options;
for (i = 0; i < options.length; ++i) {
var option = options[i];
option.selected = (option.value | 0) === pageIndex;
}
},
saveBreakPoints: function saveBreakPoints(pageIndex, bps) {
breakPoints[pageIndex] = bps;
sessionStorage.setItem("pdfjsBreakPoints", JSON.stringify(breakPoints));
},
};
})();
// The stepper for each page's IRQueue.
var Stepper = (function StepperClosure() {
// Shorter way to create element and optionally set textContent.
function c(tag, textContent) {
var d = document.createElement(tag);
if (textContent) {
d.textContent = textContent;
}
return d;
}
function simplifyArgs(args) {
if (typeof args === "string") {
var MAX_STRING_LENGTH = 75;
return args.length <= MAX_STRING_LENGTH
? args
: args.substring(0, MAX_STRING_LENGTH) + "...";
}
if (typeof args !== "object" || args === null) {
return args;
}
if ("length" in args) {
// array
var simpleArgs = [],
i,
ii;
var MAX_ITEMS = 10;
for (i = 0, ii = Math.min(MAX_ITEMS, args.length); i < ii; i++) {
simpleArgs.push(simplifyArgs(args[i]));
}
if (i < args.length) {
simpleArgs.push("...");
}
return simpleArgs;
}
var simpleObj = {};
for (var key in args) {
simpleObj[key] = simplifyArgs(args[key]);
}
return simpleObj;
}
function Stepper(panel, pageIndex, initialBreakPoints) {
this.panel = panel;
this.breakPoint = 0;
this.nextBreakPoint = null;
this.pageIndex = pageIndex;
this.breakPoints = initialBreakPoints;
this.currentIdx = -1;
this.operatorListIdx = 0;
}
Stepper.prototype = {
init: function init(operatorList) {
var panel = this.panel;
var content = c("div", "c=continue, s=step");
var table = c("table");
content.appendChild(table);
table.cellSpacing = 0;
var headerRow = c("tr");
table.appendChild(headerRow);
headerRow.appendChild(c("th", "Break"));
headerRow.appendChild(c("th", "Idx"));
headerRow.appendChild(c("th", "fn"));
headerRow.appendChild(c("th", "args"));
panel.appendChild(content);
this.table = table;
this.updateOperatorList(operatorList);
},
updateOperatorList: function updateOperatorList(operatorList) {
var self = this;
function cboxOnClick() {
var x = +this.dataset.idx;
if (this.checked) {
self.breakPoints.push(x);
} else {
self.breakPoints.splice(self.breakPoints.indexOf(x), 1);
}
StepperManager.saveBreakPoints(self.pageIndex, self.breakPoints);
}
var MAX_OPERATORS_COUNT = 15000;
if (this.operatorListIdx > MAX_OPERATORS_COUNT) {
return;
}
var chunk = document.createDocumentFragment();
var operatorsToDisplay = Math.min(
MAX_OPERATORS_COUNT,
operatorList.fnArray.length
);
for (var i = this.operatorListIdx; i < operatorsToDisplay; i++) {
var line = c("tr");
line.className = "line";
line.dataset.idx = i;
chunk.appendChild(line);
var checked = this.breakPoints.includes(i);
var args = operatorList.argsArray[i] || [];
var breakCell = c("td");
var cbox = c("input");
cbox.type = "checkbox";
cbox.className = "points";
cbox.checked = checked;
cbox.dataset.idx = i;
cbox.onclick = cboxOnClick;
breakCell.appendChild(cbox);
line.appendChild(breakCell);
line.appendChild(c("td", i.toString()));
var fn = opMap[operatorList.fnArray[i]];
var decArgs = args;
if (fn === "showText") {
var glyphs = args[0];
var newArgs = [];
var str = [];
for (var j = 0; j < glyphs.length; j++) {
var glyph = glyphs[j];
if (typeof glyph === "object" && glyph !== null) {
str.push(glyph.fontChar);
} else {
if (str.length > 0) {
newArgs.push(str.join(""));
str = [];
}
newArgs.push(glyph); // null or number
}
}
if (str.length > 0) {
newArgs.push(str.join(""));
}
decArgs = [newArgs];
}
line.appendChild(c("td", fn));
line.appendChild(c("td", JSON.stringify(simplifyArgs(decArgs))));
}
if (operatorsToDisplay < operatorList.fnArray.length) {
line = c("tr");
var lastCell = c("td", "...");
lastCell.colspan = 4;
chunk.appendChild(lastCell);
}
this.operatorListIdx = operatorList.fnArray.length;
this.table.appendChild(chunk);
},
getNextBreakPoint: function getNextBreakPoint() {
this.breakPoints.sort(function(a, b) {
return a - b;
});
for (var i = 0; i < this.breakPoints.length; i++) {
if (this.breakPoints[i] > this.currentIdx) {
return this.breakPoints[i];
}
}
return null;
},
breakIt: function breakIt(idx, callback) {
StepperManager.selectStepper(this.pageIndex, true);
var self = this;
var dom = document;
self.currentIdx = idx;
var listener = function(e) {
switch (e.keyCode) {
case 83: // step
dom.removeEventListener("keydown", listener);
self.nextBreakPoint = self.currentIdx + 1;
self.goTo(-1);
callback();
break;
case 67: // continue
dom.removeEventListener("keydown", listener);
var breakPoint = self.getNextBreakPoint();
self.nextBreakPoint = breakPoint;
self.goTo(-1);
callback();
break;
}
};
dom.addEventListener("keydown", listener);
self.goTo(idx);
},
goTo: function goTo(idx) {
var allRows = this.panel.getElementsByClassName("line");
for (var x = 0, xx = allRows.length; x < xx; ++x) {
var row = allRows[x];
if ((row.dataset.idx | 0) === idx) {
row.style.backgroundColor = "rgb(251,250,207)";
row.scrollIntoView();
} else {
row.style.backgroundColor = null;
}
}
},
};
return Stepper;
})();
var Stats = (function Stats() {
var stats = [];
function clear(node) {
while (node.hasChildNodes()) {
node.removeChild(node.lastChild);
}
}
function getStatIndex(pageNumber) {
for (var i = 0, ii = stats.length; i < ii; ++i) {
if (stats[i].pageNumber === pageNumber) {
return i;
}
}
return false;
}
return {
// Properties/functions needed by PDFBug.
id: "Stats",
name: "Stats",
panel: null,
manager: null,
init(pdfjsLib) {},
enabled: false,
active: false,
// Stats specific functions.
add(pageNumber, stat) {
if (!stat) {
return;
}
var statsIndex = getStatIndex(pageNumber);
if (statsIndex !== false) {
const b = stats[statsIndex];
this.panel.removeChild(b.div);
stats.splice(statsIndex, 1);
}
var wrapper = document.createElement("div");
wrapper.className = "stats";
var title = document.createElement("div");
title.className = "title";
title.textContent = "Page: " + pageNumber;
var statsDiv = document.createElement("div");
statsDiv.textContent = stat.toString();
wrapper.appendChild(title);
wrapper.appendChild(statsDiv);
stats.push({ pageNumber, div: wrapper });
stats.sort(function(a, b) {
return a.pageNumber - b.pageNumber;
});
clear(this.panel);
for (var i = 0, ii = stats.length; i < ii; ++i) {
this.panel.appendChild(stats[i].div);
}
},
cleanup() {
stats = [];
clear(this.panel);
},
};
})();
// Manages all the debugging tools.
window.PDFBug = (function PDFBugClosure() {
var panelWidth = 300;
var buttons = [];
var activePanel = null;
return {
tools: [FontInspector, StepperManager, Stats],
enable(ids) {
var all = false,
tools = this.tools;
if (ids.length === 1 && ids[0] === "all") {
all = true;
}
for (var i = 0; i < tools.length; ++i) {
var tool = tools[i];
if (all || ids.includes(tool.id)) {
tool.enabled = true;
}
}
if (!all) {
// Sort the tools by the order they are enabled.
tools.sort(function(a, b) {
var indexA = ids.indexOf(a.id);
indexA = indexA < 0 ? tools.length : indexA;
var indexB = ids.indexOf(b.id);
indexB = indexB < 0 ? tools.length : indexB;
return indexA - indexB;
});
}
},
init(pdfjsLib, container) {
/*
* Basic Layout:
* PDFBug
* Controls
* Panels
* Panel
* Panel
* ...
*/
var ui = document.createElement("div");
ui.id = "PDFBug";
var controls = document.createElement("div");
controls.setAttribute("class", "controls");
ui.appendChild(controls);
var panels = document.createElement("div");
panels.setAttribute("class", "panels");
ui.appendChild(panels);
container.appendChild(ui);
container.style.right = panelWidth + "px";
// Initialize all the debugging tools.
var tools = this.tools;
var self = this;
for (var i = 0; i < tools.length; ++i) {
var tool = tools[i];
var panel = document.createElement("div");
var panelButton = document.createElement("button");
panelButton.textContent = tool.name;
panelButton.addEventListener(
"click",
(function(selected) {
return function(event) {
event.preventDefault();
self.selectPanel(selected);
};
})(i)
);
controls.appendChild(panelButton);
panels.appendChild(panel);
tool.panel = panel;
tool.manager = this;
if (tool.enabled) {
tool.init(pdfjsLib);
} else {
panel.textContent =
tool.name +
" is disabled. To enable add " +
' "' +
tool.id +
'" to the pdfBug parameter ' +
"and refresh (separate multiple by commas).";
}
buttons.push(panelButton);
}
this.selectPanel(0);
},
cleanup() {
for (var i = 0, ii = this.tools.length; i < ii; i++) {
if (this.tools[i].enabled) {
this.tools[i].cleanup();
}
}
},
selectPanel(index) {
if (typeof index !== "number") {
index = this.tools.indexOf(index);
}
if (index === activePanel) {
return;
}
activePanel = index;
var tools = this.tools;
for (var j = 0; j < tools.length; ++j) {
if (j === index) {
buttons[j].setAttribute("class", "active");
tools[j].active = true;
tools[j].panel.removeAttribute("hidden");
} else {
buttons[j].setAttribute("class", "");
tools[j].active = false;
tools[j].panel.setAttribute("hidden", "true");
}
}
},
};
})();
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns="http://www.w3.org/2000/svg"
width="40"
height="40"
viewBox="0 0 40 40">
<path
d="M 1.5006714,23.536225 6.8925879,18.994244 14.585721,26.037937 34.019683,4.5410479 38.499329,9.2235032 14.585721,35.458952 z"
id="path4"
style="fill:#ffff00;fill-opacity:1;stroke:#000000;stroke-width:1.25402856;stroke-opacity:1" />
</svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns="http://www.w3.org/2000/svg"
height="40"
width="40"
viewBox="0 0 40 40">
<rect
style="fill:#ffff00;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
width="33.76017"
height="33.76017"
x="3.119915"
y="3.119915" />
<path
d="m 20.677967,8.54499 c -7.342801,0 -13.295293,4.954293 -13.295293,11.065751 0,2.088793 0.3647173,3.484376 1.575539,5.150563 L 6.0267418,31.45501 13.560595,29.011117 c 2.221262,1.387962 4.125932,1.665377 7.117372,1.665377 7.3428,0 13.295291,-4.954295 13.295291,-11.065753 0,-6.111458 -5.952491,-11.065751 -13.295291,-11.065751 z"
style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.93031836;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"/>
</svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns="http://www.w3.org/2000/svg"
width="40"
height="40"
viewBox="0 0 40 40">
<g
transform="translate(0,-60)"
id="layer1">
<rect
width="36.460953"
height="34.805603"
x="1.7695236"
y="62.597198"
style="fill:#ffff00;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.30826771;stroke-opacity:1" />
<g
transform="matrix(0.88763677,0,0,0.88763677,2.2472646,8.9890584)">
<path
d="M 20,64.526342 C 11.454135,64.526342 4.5263421,71.454135 4.5263421,80 4.5263421,88.545865 11.454135,95.473658 20,95.473658 28.545865,95.473658 35.473658,88.545865 35.473658,80 35.473658,71.454135 28.545865,64.526342 20,64.526342 z m -0.408738,9.488564 c 3.527079,0 6.393832,2.84061 6.393832,6.335441 0,3.494831 -2.866753,6.335441 -6.393832,6.335441 -3.527079,0 -6.393832,-2.84061 -6.393832,-6.335441 0,-3.494831 2.866753,-6.335441 6.393832,-6.335441 z"
style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:1.02768445;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
<path
d="m 7.2335209,71.819938 4.9702591,4.161823 c -1.679956,2.581606 -1.443939,6.069592 0.159325,8.677725 l -5.1263071,3.424463 c 0.67516,1.231452 3.0166401,3.547686 4.2331971,4.194757 l 3.907728,-4.567277 c 2.541952,1.45975 5.730694,1.392161 8.438683,-0.12614 l 3.469517,6.108336 c 1.129779,-0.44367 4.742234,-3.449633 5.416358,-5.003859 l -5.46204,-4.415541 c 1.44319,-2.424098 1.651175,-5.267515 0.557303,-7.748623 l 5.903195,-3.833951 C 33.14257,71.704996 30.616217,69.018606 29.02952,67.99296 l -4.118813,4.981678 C 22.411934,71.205099 18.900853,70.937534 16.041319,72.32916 l -3.595408,-5.322091 c -1.345962,0.579488 -4.1293881,2.921233 -5.2123901,4.812869 z m 8.1010311,3.426672 c 2.75284,-2.446266 6.769149,-2.144694 9.048998,0.420874 2.279848,2.56557 2.113919,6.596919 -0.638924,9.043185 -2.752841,2.446267 -6.775754,2.13726 -9.055604,-0.428308 -2.279851,-2.565568 -2.107313,-6.589485 0.64553,-9.035751 z"
style="fill:#000000;fill-opacity:1;stroke:none" />
</g>
</g>
</svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns="http://www.w3.org/2000/svg"
width="64"
height="64"
viewBox="0 0 64 64">
<path
d="M 32.003143,1.4044602 57.432701,62.632577 6.5672991,62.627924 z"
style="fill:#ffff00;fill-opacity:0.94117647;fill-rule:nonzero;stroke:#000000;stroke-width:1.00493038;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
</svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns="http://www.w3.org/2000/svg"
width="64"
height="64"
viewBox="0 0 64 64">
<path
d="M 25.470843,9.4933766 C 25.30219,12.141818 30.139101,14.445969 34.704831,13.529144 40.62635,12.541995 41.398833,7.3856498 35.97505,5.777863 31.400921,4.1549155 25.157674,6.5445892 25.470843,9.4933766 z M 4.5246282,17.652051 C 4.068249,11.832873 9.2742983,5.9270407 18.437379,3.0977088 29.751911,-0.87185184 45.495663,1.4008022 53.603953,7.1104009 c 9.275765,6.1889221 7.158128,16.2079421 -3.171076,21.5939521 -1.784316,1.635815 -6.380222,1.21421 -7.068351,3.186186 -1.04003,0.972427 -1.288046,2.050158 -1.232864,3.168203 1.015111,2.000108 -3.831548,1.633216 -3.270553,3.759574 0.589477,5.264544 -0.179276,10.53738 -0.362842,15.806257 -0.492006,2.184998 1.163456,4.574232 -0.734888,6.610642 -2.482919,2.325184 -7.30604,2.189143 -9.193497,-0.274767 -2.733688,-1.740626 -8.254447,-3.615254 -6.104247,-6.339626 3.468112,-1.708686 -2.116197,-3.449897 0.431242,-5.080274 5.058402,-1.39256 -2.393215,-2.304318 -0.146889,-4.334645 3.069198,-0.977415 2.056986,-2.518352 -0.219121,-3.540397 1.876567,-1.807151 1.484149,-4.868919 -2.565455,-5.942205 0.150866,-1.805474 2.905737,-4.136876 -1.679967,-5.20493 C 10.260902,27.882167 4.6872697,22.95045 4.5245945,17.652051 z"
id="path604"
style="fill:#ffff00;fill-opacity:1;stroke:#000000;stroke-width:1.72665179;stroke-opacity:1" />
</svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns="http://www.w3.org/2000/svg"
width="64"
height="64"
viewBox="0 0 64 64">
<path
d="M 32.003143,10.913072 57.432701,53.086929 6.567299,53.083723 z"
id="path2985"
style="fill:#ffff00;fill-opacity:0.94117647;fill-rule:nonzero;stroke:#000000;stroke-width:0.83403099;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
</svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns="http://www.w3.org/2000/svg"
width="40"
height="40"
viewBox="0 0 40 40">
</svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns="http://www.w3.org/2000/svg"
width="40"
height="40"
viewBox="0 0 40 40">
<rect
width="36.075428"
height="31.096582"
x="1.962286"
y="4.4517088"
id="rect4"
style="fill:#ffff00;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.23004246;stroke-opacity:1" />
<rect
width="27.96859"
height="1.5012145"
x="6.0157046"
y="10.285"
id="rect6"
style="fill:#000000;fill-opacity:1;stroke:none" />
<rect
width="27.96859"
height="0.85783684"
x="6.0157056"
y="23.21689"
id="rect8"
style="fill:#000000;fill-opacity:1;stroke:none" />
<rect
width="27.96859"
height="0.85783684"
x="5.8130345"
y="28.964394"
id="rect10"
style="fill:#000000;fill-opacity:1;stroke:none" />
<rect
width="27.96859"
height="0.85783684"
x="6.0157046"
y="17.426493"
id="rect12"
style="fill:#000000;fill-opacity:1;stroke:none" />
</svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns="http://www.w3.org/2000/svg"
width="40"
height="40"
viewBox="0 0 40 40">
<rect
width="33.76017"
height="33.76017"
x="3.119915"
y="3.119915"
style="fill:#ffff00;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
<path
d="m 17.692678,34.50206 0,-16.182224 c -1.930515,-0.103225 -3.455824,-0.730383 -4.57593,-1.881473 -1.12011,-1.151067 -1.680164,-2.619596 -1.680164,-4.405591 0,-1.992435 0.621995,-3.5796849 1.865988,-4.7617553 1.243989,-1.1820288 3.06352,-1.7730536 5.458598,-1.7730764 l 9.802246,0 0,2.6789711 -2.229895,0 0,26.3251486 -2.632515,0 0,-26.3251486 -3.45324,0 0,26.3251486 z"
style="font-size:29.42051125px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:1.07795751;stroke-opacity:1;font-family:Arial;-inkscape-font-specification:Arial" />
</svg>
No preview for this file type
No preview for this file type
# Copyright 2012 Mozilla Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Main toolbar buttons (tooltips and alt text for images)
previous.title=上一页
previous_label=上一页
next.title=下一页
next_label=下一页
# LOCALIZATION NOTE (page.title): The tooltip for the pageNumber input.
page.title=页面
# LOCALIZATION NOTE (of_pages): "{{pagesCount}}" will be replaced by a number
# representing the total number of pages in the document.
of_pages=/ {{pagesCount}}
# LOCALIZATION NOTE (page_of_pages): "{{pageNumber}}" and "{{pagesCount}}"
# will be replaced by a number representing the currently visible page,
# respectively a number representing the total number of pages in the document.
page_of_pages=({{pageNumber}} / {{pagesCount}})
zoom_out.title=缩小
zoom_out_label=缩小
zoom_in.title=放大
zoom_in_label=放大
zoom.title=缩放
presentation_mode.title=切换到演示模式
presentation_mode_label=演示模式
open_file.title=打开文件
open_file_label=打开
print.title=打印
print_label=打印
download.title=下载
download_label=下载
bookmark.title=当前在看的内容(复制或在新窗口中打开)
bookmark_label=当前在看
# Secondary toolbar and context menu
tools.title=工具
tools_label=工具
first_page.title=转到第一页
first_page.label=转到第一页
first_page_label=转到第一页
last_page.title=转到最后一页
last_page.label=转到最后一页
last_page_label=转到最后一页
page_rotate_cw.title=顺时针旋转
page_rotate_cw.label=顺时针旋转
page_rotate_cw_label=顺时针旋转
page_rotate_ccw.title=逆时针旋转
page_rotate_ccw.label=逆时针旋转
page_rotate_ccw_label=逆时针旋转
cursor_text_select_tool.title=启用文本选择工具
cursor_text_select_tool_label=文本选择工具
cursor_hand_tool.title=启用手形工具
cursor_hand_tool_label=手形工具
scroll_vertical.title=使用垂直滚动
scroll_vertical_label=垂直滚动
scroll_horizontal.title=使用水平滚动
scroll_horizontal_label=水平滚动
scroll_wrapped.title=使用平铺滚动
scroll_wrapped_label=平铺滚动
spread_none.title=不加入衔接页
spread_none_label=单页视图
spread_odd.title=加入衔接页使奇数页作为起始页
spread_odd_label=双页视图
spread_even.title=加入衔接页使偶数页作为起始页
spread_even_label=书籍视图
# Document properties dialog box
document_properties.title=文档属性…
document_properties_label=文档属性…
document_properties_file_name=文件名:
document_properties_file_size=文件大小:
# LOCALIZATION NOTE (document_properties_kb): "{{size_kb}}" and "{{size_b}}"
# will be replaced by the PDF file size in kilobytes, respectively in bytes.
document_properties_kb={{size_kb}} KB ({{size_b}} 字节)
# LOCALIZATION NOTE (document_properties_mb): "{{size_mb}}" and "{{size_b}}"
# will be replaced by the PDF file size in megabytes, respectively in bytes.
document_properties_mb={{size_mb}} MB ({{size_b}} 字节)
document_properties_title=标题:
document_properties_author=作者:
document_properties_subject=主题:
document_properties_keywords=关键词:
document_properties_creation_date=创建日期:
document_properties_modification_date=修改日期:
# LOCALIZATION NOTE (document_properties_date_string): "{{date}}" and "{{time}}"
# will be replaced by the creation/modification date, and time, of the PDF file.
document_properties_date_string={{date}}, {{time}}
document_properties_creator=创建者:
document_properties_producer=PDF 生成器:
document_properties_version=PDF 版本:
document_properties_page_count=页数:
document_properties_page_size=页面大小:
document_properties_page_size_unit_inches=英寸
document_properties_page_size_unit_millimeters=毫米
document_properties_page_size_orientation_portrait=纵向
document_properties_page_size_orientation_landscape=横向
document_properties_page_size_name_a3=A3
document_properties_page_size_name_a4=A4
document_properties_page_size_name_letter=文本
document_properties_page_size_name_legal=法律
# LOCALIZATION NOTE (document_properties_page_size_dimension_string):
# "{{width}}", "{{height}}", {{unit}}, and {{orientation}} will be replaced by
# the size, respectively their unit of measurement and orientation, of the (current) page.
document_properties_page_size_dimension_string={{width}} × {{height}} {{unit}}({{orientation}})
# LOCALIZATION NOTE (document_properties_page_size_dimension_name_string):
# "{{width}}", "{{height}}", {{unit}}, {{name}}, and {{orientation}} will be replaced by
# the size, respectively their unit of measurement, name, and orientation, of the (current) page.
document_properties_page_size_dimension_name_string={{width}} × {{height}} {{unit}}({{name}},{{orientation}})
# LOCALIZATION NOTE (document_properties_linearized): The linearization status of
# the document; usually called "Fast Web View" in English locales of Adobe software.
document_properties_linearized=快速 Web 视图:
document_properties_linearized_yes=是
document_properties_linearized_no=否
document_properties_close=关闭
print_progress_message=正在准备打印文档…
# LOCALIZATION NOTE (print_progress_percent): "{{progress}}" will be replaced by
# a numerical per cent value.
print_progress_percent={{progress}}%
print_progress_close=取消
# Tooltips and alt text for side panel toolbar buttons
# (the _label strings are alt text for the buttons, the .title strings are
# tooltips)
toggle_sidebar.title=切换侧栏
toggle_sidebar_notification.title=切换侧栏(文档所含的大纲/附件)
toggle_sidebar_label=切换侧栏
document_outline.title=显示文档大纲(双击展开/折叠所有项)
document_outline_label=文档大纲
attachments.title=显示附件
attachments_label=附件
thumbs.title=显示缩略图
thumbs_label=缩略图
findbar.title=在文档中查找
findbar_label=查找
# LOCALIZATION NOTE (page_canvas): "{{page}}" will be replaced by the page number.
page_canvas=页码 {{page}}
# Thumbnails panel item (tooltip and alt text for images)
# LOCALIZATION NOTE (thumb_page_title): "{{page}}" will be replaced by the page
# number.
thumb_page_title=页码 {{page}}
# LOCALIZATION NOTE (thumb_page_canvas): "{{page}}" will be replaced by the page
# number.
thumb_page_canvas=页面 {{page}} 的缩略图
# Find panel button title and messages
find_input.title=查找
find_input.placeholder=在文档中查找…
find_previous.title=查找词语上一次出现的位置
find_previous_label=上一页
find_next.title=查找词语后一次出现的位置
find_next_label=下一页
find_highlight=全部高亮显示
find_match_case_label=区分大小写
find_entire_word_label=字词匹配
find_reached_top=到达文档开头,从末尾继续
find_reached_bottom=到达文档末尾,从开头继续
# LOCALIZATION NOTE (find_match_count): The supported plural forms are
# [one|two|few|many|other], with [other] as the default value.
# "{{current}}" and "{{total}}" will be replaced by a number representing the
# index of the currently active find result, respectively a number representing
# the total number of matches in the document.
find_match_count={[ plural(total) ]}
find_match_count[one]=第 {{current}} 项,共匹配 {{total}} 项
find_match_count[two]=第 {{current}} 项,共匹配 {{total}} 项
find_match_count[few]=第 {{current}} 项,共匹配 {{total}} 项
find_match_count[many]=第 {{current}} 项,共匹配 {{total}} 项
find_match_count[other]=第 {{current}} 项,共匹配 {{total}} 项
# LOCALIZATION NOTE (find_match_count_limit): The supported plural forms are
# [zero|one|two|few|many|other], with [other] as the default value.
# "{{limit}}" will be replaced by a numerical value.
find_match_count_limit={[ plural(limit) ]}
find_match_count_limit[zero]=超过 {{limit}} 项匹配
find_match_count_limit[one]=超过 {{limit}} 项匹配
find_match_count_limit[two]=超过 {{limit}} 项匹配
find_match_count_limit[few]=超过 {{limit}} 项匹配
find_match_count_limit[many]=超过 {{limit}} 项匹配
find_match_count_limit[other]=超过 {{limit}} 项匹配
find_not_found=找不到指定词语
# Error panel labels
error_more_info=更多信息
error_less_info=更少信息
error_close=关闭
# LOCALIZATION NOTE (error_version_info): "{{version}}" and "{{build}}" will be
# replaced by the PDF.JS version and build ID.
error_version_info=PDF.js v{{version}} (build: {{build}})
# LOCALIZATION NOTE (error_message): "{{message}}" will be replaced by an
# english string describing the error.
error_message=信息:{{message}}
# LOCALIZATION NOTE (error_stack): "{{stack}}" will be replaced with a stack
# trace.
error_stack=堆栈:{{stack}}
# LOCALIZATION NOTE (error_file): "{{file}}" will be replaced with a filename
error_file=文件:{{file}}
# LOCALIZATION NOTE (error_line): "{{line}}" will be replaced with a line number
error_line=行号:{{line}}
rendering_error=渲染页面时发生错误。
# Predefined zoom values
page_scale_width=适合页宽
page_scale_fit=适合页面
page_scale_auto=自动缩放
page_scale_actual=实际大小
# LOCALIZATION NOTE (page_scale_percent): "{{scale}}" will be replaced by a
# numerical scale value.
page_scale_percent={{scale}}%
# Loading indicator messages
loading_error_indicator=错误
loading_error=载入 PDF 时发生错误。
invalid_file_error=无效或损坏的 PDF 文件。
missing_file_error=缺少 PDF 文件。
unexpected_response_error=意外的服务器响应。
# LOCALIZATION NOTE (annotation_date_string): "{{date}}" and "{{time}}" will be
# replaced by the modification date, and time, of the annotation.
annotation_date_string={{date}},{{time}}
# LOCALIZATION NOTE (text_annotation_type.alt): This is used as a tooltip.
# "{{type}}" will be replaced with an annotation type from a list defined in
# the PDF spec (32000-1:2008 Table 169 – Annotation types).
# Some common types are e.g.: "Check", "Text", "Comment", "Note"
text_annotation_type.alt=[{{type}} 注释]
password_label=输入密码以打开此 PDF 文件。
password_invalid=密码无效。请重试。
password_ok=确定
password_cancel=取消
printing_not_supported=警告:此浏览器尚未完整支持打印功能。
printing_not_ready=警告:此 PDF 未完成载入,无法打印。
web_fonts_disabled=Web 字体已被禁用:无法使用嵌入的 PDF 字体。
document_colors_not_allowed=PDF 文档无法使用自己的颜色:浏览器中“允许页面选择自己的颜色”的选项未被勾选。
<!DOCTYPE html>
<html dir="ltr" mozdisallowselectionprint>
<head>
<meta charset="utf-8">
<title>PDF下载</title>
</head>
<style type="text/css">
*{padding: 0;margin: 0;}
.tip {
background-color: #969696;
opacity: 2;
position: absolute;
right: 60px;
top: 20px;
}
.tip-img{
z-index: 9999;
width: 489px;
height: 326px;
}
</style>
<body class="tip">
<div style="width:100%;">
<image src="ttip.png" class="tip-img"></image>
</div>
<!-- <h1>下载方式:</h1>
<h2>第一步:请点击右上角-选择发送给朋友</h2>
<h2>第二步:选择在浏览器中打开</h2> -->
</body>
</html>
/* Copyright 2014 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.textLayer {
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
overflow: hidden;
opacity: 0.2;
line-height: 1.0;
}
.textLayer > span {
color: transparent;
position: absolute;
white-space: pre;
cursor: text;
-webkit-transform-origin: 0% 0%;
transform-origin: 0% 0%;
}
.textLayer .highlight {
margin: -1px;
padding: 1px;
background-color: rgba(180, 0, 170, 1);
border-radius: 4px;
}
.textLayer .highlight.begin {
border-radius: 4px 0px 0px 4px;
}
.textLayer .highlight.end {
border-radius: 0px 4px 4px 0px;
}
.textLayer .highlight.middle {
border-radius: 0px;
}
.textLayer .highlight.selected {
background-color: rgba(0, 100, 0, 1);
}
.textLayer ::-moz-selection {
background: rgba(0, 0, 255, 1);
}
.textLayer ::selection {
background: rgba(0, 0, 255, 1);
}
.textLayer .endOfContent {
display: block;
position: absolute;
left: 0px;
top: 100%;
right: 0px;
bottom: 0px;
z-index: -1;
cursor: default;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.textLayer .endOfContent.active {
top: 0px;
}
.annotationLayer section {
position: absolute;
}
.annotationLayer .linkAnnotation > a,
.annotationLayer .buttonWidgetAnnotation.pushButton > a {
position: absolute;
font-size: 1em;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.annotationLayer .linkAnnotation > a:hover,
.annotationLayer .buttonWidgetAnnotation.pushButton > a:hover {
opacity: 0.2;
background: rgba(255, 255, 0, 1);
box-shadow: 0px 2px 10px rgba(255, 255, 0, 1);
}
.annotationLayer .textAnnotation img {
position: absolute;
cursor: pointer;
}
.annotationLayer .textWidgetAnnotation input,
.annotationLayer .textWidgetAnnotation textarea,
.annotationLayer .choiceWidgetAnnotation select,
.annotationLayer .buttonWidgetAnnotation.checkBox input,
.annotationLayer .buttonWidgetAnnotation.radioButton input {
background-color: rgba(0, 54, 255, 0.13);
border: 1px solid transparent;
box-sizing: border-box;
font-size: 9px;
height: 100%;
margin: 0;
padding: 0 3px;
vertical-align: top;
width: 100%;
}
.annotationLayer .choiceWidgetAnnotation select option {
padding: 0;
}
.annotationLayer .buttonWidgetAnnotation.radioButton input {
border-radius: 50%;
}
.annotationLayer .textWidgetAnnotation textarea {
font: message-box;
font-size: 9px;
resize: none;
}
.annotationLayer .textWidgetAnnotation input[disabled],
.annotationLayer .textWidgetAnnotation textarea[disabled],
.annotationLayer .choiceWidgetAnnotation select[disabled],
.annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],
.annotationLayer .buttonWidgetAnnotation.radioButton input[disabled] {
background: none;
border: 1px solid transparent;
cursor: not-allowed;
}
.annotationLayer .textWidgetAnnotation input:hover,
.annotationLayer .textWidgetAnnotation textarea:hover,
.annotationLayer .choiceWidgetAnnotation select:hover,
.annotationLayer .buttonWidgetAnnotation.checkBox input:hover,
.annotationLayer .buttonWidgetAnnotation.radioButton input:hover {
border: 1px solid rgba(0, 0, 0, 1);
}
.annotationLayer .textWidgetAnnotation input:focus,
.annotationLayer .textWidgetAnnotation textarea:focus,
.annotationLayer .choiceWidgetAnnotation select:focus {
background: none;
border: 1px solid transparent;
}
.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,
.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,
.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {
background-color: rgba(0, 0, 0, 1);
content: '';
display: block;
position: absolute;
}
.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,
.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {
height: 80%;
left: 45%;
width: 1px;
}
.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before {
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after {
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg);
}
.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before {
border-radius: 50%;
height: 50%;
left: 30%;
top: 20%;
width: 50%;
}
.annotationLayer .textWidgetAnnotation input.comb {
font-family: monospace;
padding-left: 2px;
padding-right: 0;
}
.annotationLayer .textWidgetAnnotation input.comb:focus {
/*
* Letter spacing is placed on the right side of each character. Hence, the
* letter spacing of the last character may be placed outside the visible
* area, causing horizontal scrolling. We avoid this by extending the width
* when the element has focus and revert this when it loses focus.
*/
width: 115%;
}
.annotationLayer .buttonWidgetAnnotation.checkBox input,
.annotationLayer .buttonWidgetAnnotation.radioButton input {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
padding: 0;
}
.annotationLayer .popupWrapper {
position: absolute;
width: 20em;
}
.annotationLayer .popup {
position: absolute;
z-index: 200;
max-width: 20em;
background-color: rgba(255, 255, 153, 1);
box-shadow: 0px 2px 5px rgba(136, 136, 136, 1);
border-radius: 2px;
padding: 6px;
margin-left: 5px;
cursor: pointer;
font: message-box;
font-size: 9px;
word-wrap: break-word;
}
.annotationLayer .popup > * {
font-size: 9px;
}
.annotationLayer .popup h1 {
display: inline-block;
}
.annotationLayer .popup span {
display: inline-block;
margin-left: 5px;
}
.annotationLayer .popup p {
border-top: 1px solid rgba(51, 51, 51, 1);
margin-top: 2px;
padding-top: 2px;
}
.annotationLayer .highlightAnnotation,
.annotationLayer .underlineAnnotation,
.annotationLayer .squigglyAnnotation,
.annotationLayer .strikeoutAnnotation,
.annotationLayer .freeTextAnnotation,
.annotationLayer .lineAnnotation svg line,
.annotationLayer .squareAnnotation svg rect,
.annotationLayer .circleAnnotation svg ellipse,
.annotationLayer .polylineAnnotation svg polyline,
.annotationLayer .polygonAnnotation svg polygon,
.annotationLayer .caretAnnotation,
.annotationLayer .inkAnnotation svg polyline,
.annotationLayer .stampAnnotation,
.annotationLayer .fileAttachmentAnnotation {
cursor: pointer;
}
.pdfViewer .canvasWrapper {
overflow: hidden;
}
.pdfViewer .page {
direction: ltr;
width: 816px;
height: 1056px;
margin: 1px auto -8px auto;
position: relative;
overflow: visible;
border: 9px solid transparent;
background-clip: content-box;
-webkit-border-image: url(images/shadow.png) 9 9 repeat;
-o-border-image: url(images/shadow.png) 9 9 repeat;
border-image: url(images/shadow.png) 9 9 repeat;
background-color: rgba(255, 255, 255, 1);
}
.pdfViewer.removePageBorders .page {
margin: 0px auto 10px auto;
border: none;
}
.pdfViewer.singlePageView {
display: inline-block;
}
.pdfViewer.singlePageView .page {
margin: 0;
border: none;
}
.pdfViewer.scrollHorizontal, .pdfViewer.scrollWrapped, .spread {
margin-left: 3.5px;
margin-right: 3.5px;
text-align: center;
}
.pdfViewer.scrollHorizontal, .spread {
white-space: nowrap;
}
.pdfViewer.removePageBorders,
.pdfViewer.scrollHorizontal .spread,
.pdfViewer.scrollWrapped .spread {
margin-left: 0;
margin-right: 0;
}
.spread .page,
.pdfViewer.scrollHorizontal .page,
.pdfViewer.scrollWrapped .page,
.pdfViewer.scrollHorizontal .spread,
.pdfViewer.scrollWrapped .spread {
display: inline-block;
vertical-align: middle;
}
.spread .page,
.pdfViewer.scrollHorizontal .page,
.pdfViewer.scrollWrapped .page {
margin-left: -3.5px;
margin-right: -3.5px;
}
.pdfViewer.removePageBorders .spread .page,
.pdfViewer.removePageBorders.scrollHorizontal .page,
.pdfViewer.removePageBorders.scrollWrapped .page {
margin-left: 5px;
margin-right: 5px;
}
.pdfViewer .page canvas {
margin: 0;
display: block;
}
.pdfViewer .page canvas[hidden] {
display: none;
}
.pdfViewer .page .loadingIcon {
position: absolute;
display: block;
left: 0;
top: 0;
right: 0;
bottom: 0;
background: url('images/loading-icon.gif') center no-repeat;
}
.pdfPresentationMode .pdfViewer {
margin-left: 0;
margin-right: 0;
}
.pdfPresentationMode .pdfViewer .page,
.pdfPresentationMode .pdfViewer .spread {
display: block;
}
.pdfPresentationMode .pdfViewer .page,
.pdfPresentationMode .pdfViewer.removePageBorders .page {
margin-left: auto;
margin-right: auto;
}
.pdfPresentationMode:-ms-fullscreen .pdfViewer .page {
margin-bottom: 100% !important;
}
.pdfPresentationMode:-webkit-full-screen .pdfViewer .page {
margin-bottom: 100%;
border: 0;
}
.pdfPresentationMode:-moz-full-screen .pdfViewer .page {
margin-bottom: 100%;
border: 0;
}
.pdfPresentationMode:fullscreen .pdfViewer .page {
margin-bottom: 100%;
border: 0;
}
:root {
--sidebar-width: 200px;
--sidebar-transition-duration: 200ms;
--sidebar-transition-timing-function: ease;
}
* {
padding: 0;
margin: 0;
}
html {
height: 100%;
width: 100%;
/* Font size is needed to make the activity bar the correct size. */
font-size: 10px;
}
body {
height: 100%;
width: 100%;
background-color: rgba(64, 64, 64, 1);
background-image: url(images/texture.png);
}
body,
input,
button,
select {
font: message-box;
outline: none;
}
.hidden {
display: none !important;
}
[hidden] {
display: none !important;
}
#viewerContainer.pdfPresentationMode:-ms-fullscreen {
top: 0px !important;
overflow: hidden !important;
}
#viewerContainer.pdfPresentationMode:-ms-fullscreen::-ms-backdrop {
background-color: rgba(0, 0, 0, 1);
}
#viewerContainer.pdfPresentationMode:-webkit-full-screen {
top: 0px;
border-top: 2px solid rgba(0, 0, 0, 0);
background-color: rgba(0, 0, 0, 1);
width: 100%;
height: 100%;
overflow: hidden;
cursor: none;
-webkit-user-select: none;
user-select: none;
}
#viewerContainer.pdfPresentationMode:-moz-full-screen {
top: 0px;
border-top: 2px solid rgba(0, 0, 0, 0);
background-color: rgba(0, 0, 0, 1);
width: 100%;
height: 100%;
overflow: hidden;
cursor: none;
-moz-user-select: none;
user-select: none;
}
#viewerContainer.pdfPresentationMode:-ms-fullscreen {
top: 0px;
border-top: 2px solid rgba(0, 0, 0, 0);
background-color: rgba(0, 0, 0, 1);
width: 100%;
height: 100%;
overflow: hidden;
cursor: none;
-ms-user-select: none;
user-select: none;
}
#viewerContainer.pdfPresentationMode:fullscreen {
top: 0px;
border-top: 2px solid rgba(0, 0, 0, 0);
background-color: rgba(0, 0, 0, 1);
width: 100%;
height: 100%;
overflow: hidden;
cursor: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.pdfPresentationMode:-webkit-full-screen a:not(.internalLink) {
display: none;
}
.pdfPresentationMode:-moz-full-screen a:not(.internalLink) {
display: none;
}
.pdfPresentationMode:-ms-fullscreen a:not(.internalLink) {
display: none;
}
.pdfPresentationMode:fullscreen a:not(.internalLink) {
display: none;
}
.pdfPresentationMode:-webkit-full-screen .textLayer > span {
cursor: none;
}
.pdfPresentationMode:-moz-full-screen .textLayer > span {
cursor: none;
}
.pdfPresentationMode:-ms-fullscreen .textLayer > span {
cursor: none;
}
.pdfPresentationMode:fullscreen .textLayer > span {
cursor: none;
}
.pdfPresentationMode.pdfPresentationModeControls > *,
.pdfPresentationMode.pdfPresentationModeControls .textLayer > span {
cursor: default;
}
#outerContainer {
width: 100%;
height: 100%;
position: relative;
}
#sidebarContainer {
position: absolute;
top: 32px;
bottom: 0;
width: 200px;
width: var(--sidebar-width);
visibility: hidden;
z-index: 100;
border-top: 1px solid rgba(51, 51, 51, 1);
-webkit-transition-duration: 200ms;
transition-duration: 200ms;
-webkit-transition-duration: var(--sidebar-transition-duration);
transition-duration: var(--sidebar-transition-duration);
-webkit-transition-timing-function: ease;
transition-timing-function: ease;
-webkit-transition-timing-function: var(--sidebar-transition-timing-function);
transition-timing-function: var(--sidebar-transition-timing-function);
}
html[dir='ltr'] #sidebarContainer {
-webkit-transition-property: left;
transition-property: left;
left: -200px;
left: calc(0px - var(--sidebar-width));
}
html[dir='rtl'] #sidebarContainer {
-webkit-transition-property: right;
transition-property: right;
right: -200px;
right: calc(0px - var(--sidebar-width));
}
.loadingInProgress #sidebarContainer {
top: 36px;
}
#outerContainer.sidebarResizing #sidebarContainer {
/* Improve responsiveness and avoid visual glitches when the sidebar is resized. */
-webkit-transition-duration: 0s;
transition-duration: 0s;
/* Prevent e.g. the thumbnails being selected when the sidebar is resized. */
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
#outerContainer.sidebarMoving #sidebarContainer,
#outerContainer.sidebarOpen #sidebarContainer {
visibility: visible;
}
html[dir='ltr'] #outerContainer.sidebarOpen #sidebarContainer {
left: 0px;
}
html[dir='rtl'] #outerContainer.sidebarOpen #sidebarContainer {
right: 0px;
}
#mainContainer {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
min-width: 320px;
}
#sidebarContent {
top: 32px;
bottom: 0;
overflow: auto;
-webkit-overflow-scrolling: touch;
position: absolute;
width: 100%;
background-color: rgba(0, 0, 0, 0.1);
}
html[dir='ltr'] #sidebarContent {
left: 0;
box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.25);
}
html[dir='rtl'] #sidebarContent {
right: 0;
box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.25);
}
#viewerContainer {
overflow: auto;
-webkit-overflow-scrolling: touch;
position: absolute;
top: 32px;
right: 0;
bottom: 0;
left: 0;
outline: none;
}
#viewerContainer:not(.pdfPresentationMode) {
-webkit-transition-duration: 200ms;
transition-duration: 200ms;
-webkit-transition-duration: var(--sidebar-transition-duration);
transition-duration: var(--sidebar-transition-duration);
-webkit-transition-timing-function: ease;
transition-timing-function: ease;
-webkit-transition-timing-function: var(--sidebar-transition-timing-function);
transition-timing-function: var(--sidebar-transition-timing-function);
}
html[dir='ltr'] #viewerContainer {
box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.05);
}
html[dir='rtl'] #viewerContainer {
box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.05);
}
#outerContainer.sidebarResizing #viewerContainer {
/* Improve responsiveness and avoid visual glitches when the sidebar is resized. */
-webkit-transition-duration: 0s;
transition-duration: 0s;
}
html[dir='ltr'] #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode) {
-webkit-transition-property: left;
transition-property: left;
left: 200px;
left: var(--sidebar-width);
}
html[dir='rtl'] #outerContainer.sidebarOpen #viewerContainer:not(.pdfPresentationMode) {
-webkit-transition-property: right;
transition-property: right;
right: 200px;
right: var(--sidebar-width);
}
.toolbar {
position: relative;
left: 0;
right: 0;
z-index: 9999;
cursor: default;
}
#toolbarContainer {
width: 100%;
}
#toolbarSidebar {
width: 100%;
height: 32px;
background-color: rgba(66, 66, 66, 1); /* fallback */
background-image: url(images/texture.png),
-webkit-gradient(linear, left top, left bottom, from(rgba(77, 77, 77, 0.99)), to(rgba(64, 64, 64, 0.95)));
background-image: url(images/texture.png),
linear-gradient(rgba(77, 77, 77, 0.99), rgba(64, 64, 64, 0.95));
}
html[dir='ltr'] #toolbarSidebar {
box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.25),
inset 0 -1px 0 rgba(255, 255, 255, 0.05),
0 1px 0 rgba(0, 0, 0, 0.15),
0 0 1px rgba(0, 0, 0, 0.1);
}
html[dir='rtl'] #toolbarSidebar {
box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.25),
inset 0 1px 0 rgba(255, 255, 255, 0.05),
0 1px 0 rgba(0, 0, 0, 0.15),
0 0 1px rgba(0, 0, 0, 0.1);
}
#sidebarResizer {
position: absolute;
top: 0;
bottom: 0;
width: 6px;
z-index: 200;
cursor: ew-resize;
}
html[dir='ltr'] #sidebarResizer {
right: -6px;
}
html[dir='rtl'] #sidebarResizer {
left: -6px;
}
#toolbarContainer, .findbar, .secondaryToolbar {
position: relative;
height: 32px;
background-color: rgba(71, 71, 71, 1); /* fallback */
background-image: url(images/texture.png),
-webkit-gradient(linear, left top, left bottom, from(rgba(82, 82, 82, 0.99)), to(rgba(69, 69, 69, 0.95)));
background-image: url(images/texture.png),
linear-gradient(rgba(82, 82, 82, 0.99), rgba(69, 69, 69, 0.95));
}
html[dir='ltr'] #toolbarContainer, .findbar, .secondaryToolbar {
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.15),
inset 0 -1px 0 rgba(255, 255, 255, 0.05),
0 1px 0 rgba(0, 0, 0, 0.15),
0 1px 1px rgba(0, 0, 0, 0.1);
}
html[dir='rtl'] #toolbarContainer, .findbar, .secondaryToolbar {
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.15),
inset 0 -1px 0 rgba(255, 255, 255, 0.05),
0 1px 0 rgba(0, 0, 0, 0.15),
0 1px 1px rgba(0, 0, 0, 0.1);
}
#toolbarViewer {
height: 32px;
}
#loadingBar {
position: relative;
width: 100%;
height: 4px;
background-color: rgba(51, 51, 51, 1);
border-bottom: 1px solid rgba(51, 51, 51, 1);
}
#loadingBar .progress {
position: absolute;
top: 0;
left: 0;
width: 0%;
height: 100%;
background-color: rgba(221, 221, 221, 1);
overflow: hidden;
-webkit-transition: width 200ms;
transition: width 200ms;
}
@-webkit-keyframes progressIndeterminate {
0% { left: -142px; }
100% { left: 0; }
}
@keyframes progressIndeterminate {
0% { left: -142px; }
100% { left: 0; }
}
#loadingBar .progress.indeterminate {
background-color: rgba(153, 153, 153, 1);
-webkit-transition: none;
transition: none;
}
#loadingBar .progress.indeterminate .glimmer {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: calc(100% + 150px);
background: repeating-linear-gradient(135deg,
rgba(187, 187, 187, 1) 0, rgba(153, 153, 153, 1) 5px,
rgba(153, 153, 153, 1) 45px, rgba(221, 221, 221, 1) 55px,
rgba(221, 221, 221, 1) 95px, rgba(187, 187, 187, 1) 100px);
-webkit-animation: progressIndeterminate 950ms linear infinite;
animation: progressIndeterminate 950ms linear infinite;
}
.findbar, .secondaryToolbar {
top: 32px;
position: absolute;
z-index: 10000;
height: auto;
min-width: 16px;
padding: 0px 6px 0px 6px;
margin: 4px 2px 4px 2px;
color: rgba(217, 217, 217, 1);
font-size: 12px;
line-height: 14px;
text-align: left;
cursor: default;
}
.findbar {
min-width: 300px;
}
.findbar > div {
height: 32px;
}
.findbar.wrapContainers > div {
clear: both;
}
.findbar.wrapContainers > div#findbarMessageContainer {
height: auto;
}
html[dir='ltr'] .findbar {
left: 68px;
}
html[dir='rtl'] .findbar {
right: 68px;
}
.findbar label {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
#findInput {
width: 200px;
}
#findInput::-webkit-input-placeholder {
color: rgba(191, 191, 191, 1);
}
#findInput::-moz-placeholder {
font-style: italic;
}
#findInput:-ms-input-placeholder {
font-style: italic;
}
#findInput::-ms-input-placeholder {
font-style: italic;
}
#findInput::placeholder {
font-style: italic;
}
#findInput[data-status="pending"] {
background-image: url(images/loading-small.png);
background-repeat: no-repeat;
background-position: right;
}
html[dir='rtl'] #findInput[data-status="pending"] {
background-position: left;
}
.secondaryToolbar {
padding: 6px;
height: auto;
z-index: 30000;
}
html[dir='ltr'] .secondaryToolbar {
right: 4px;
}
html[dir='rtl'] .secondaryToolbar {
left: 4px;
}
#secondaryToolbarButtonContainer {
max-width: 200px;
max-height: 400px;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
margin-bottom: -4px;
}
#secondaryToolbarButtonContainer.hiddenScrollModeButtons > .scrollModeButtons,
#secondaryToolbarButtonContainer.hiddenSpreadModeButtons > .spreadModeButtons {
display: none !important;
}
.doorHanger,
.doorHangerRight {
border: 1px solid rgba(0, 0, 0, 0.5);
border-radius: 2px;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.doorHanger:after, .doorHanger:before,
.doorHangerRight:after, .doorHangerRight:before {
bottom: 100%;
border: solid rgba(0, 0, 0, 0);
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
}
.doorHanger:after,
.doorHangerRight:after {
border-bottom-color: rgba(82, 82, 82, 0.99);
border-width: 8px;
}
.doorHanger:before,
.doorHangerRight:before {
border-bottom-color: rgba(0, 0, 0, 0.5);
border-width: 9px;
}
html[dir='ltr'] .doorHanger:after,
html[dir='rtl'] .doorHangerRight:after {
left: 13px;
margin-left: -8px;
}
html[dir='ltr'] .doorHanger:before,
html[dir='rtl'] .doorHangerRight:before {
left: 13px;
margin-left: -9px;
}
html[dir='rtl'] .doorHanger:after,
html[dir='ltr'] .doorHangerRight:after {
right: 13px;
margin-right: -8px;
}
html[dir='rtl'] .doorHanger:before,
html[dir='ltr'] .doorHangerRight:before {
right: 13px;
margin-right: -9px;
}
#findResultsCount {
background-color: rgba(217, 217, 217, 1);
color: rgba(82, 82, 82, 1);
text-align: center;
padding: 3px 4px;
}
#findMsg {
font-style: italic;
color: rgba(166, 183, 208, 1);
}
#findMsg:empty {
display: none;
}
#findInput.notFound {
background-color: rgba(255, 102, 102, 1);
}
#toolbarViewerMiddle {
position: absolute;
left: 50%;
-webkit-transform: translateX(-50%);
transform: translateX(-50%);
}
html[dir='ltr'] #toolbarViewerLeft,
html[dir='rtl'] #toolbarViewerRight {
float: left;
}
html[dir='ltr'] #toolbarViewerRight,
html[dir='rtl'] #toolbarViewerLeft {
float: right;
}
html[dir='ltr'] #toolbarViewerLeft > *,
html[dir='ltr'] #toolbarViewerMiddle > *,
html[dir='ltr'] #toolbarViewerRight > *,
html[dir='ltr'] .findbar * {
position: relative;
float: left;
}
html[dir='rtl'] #toolbarViewerLeft > *,
html[dir='rtl'] #toolbarViewerMiddle > *,
html[dir='rtl'] #toolbarViewerRight > *,
html[dir='rtl'] .findbar * {
position: relative;
float: right;
}
html[dir='ltr'] .splitToolbarButton {
margin: 3px 2px 4px 0;
display: inline-block;
}
html[dir='rtl'] .splitToolbarButton {
margin: 3px 0 4px 2px;
display: inline-block;
}
html[dir='ltr'] .splitToolbarButton > .toolbarButton {
border-radius: 0;
float: left;
}
html[dir='rtl'] .splitToolbarButton > .toolbarButton {
border-radius: 0;
float: right;
}
.toolbarButton,
.secondaryToolbarButton,
.overlayButton {
border: 0 none;
background: none;
width: 32px;
height: 25px;
}
.toolbarButton > span {
display: inline-block;
width: 0;
height: 0;
overflow: hidden;
}
.toolbarButton[disabled],
.secondaryToolbarButton[disabled],
.overlayButton[disabled] {
opacity: .5;
}
.splitToolbarButton.toggled .toolbarButton {
margin: 0;
}
.splitToolbarButton:hover > .toolbarButton,
.splitToolbarButton:focus > .toolbarButton,
.splitToolbarButton.toggled > .toolbarButton,
.toolbarButton.textButton {
background-color: rgba(0, 0, 0, 0.12);
background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.05)), to(rgba(255, 255, 255, 0)));
background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
background-clip: padding-box;
border: 1px solid rgba(0, 0, 0, 0.35);
border-color: rgba(0, 0, 0, 0.32) rgba(0, 0, 0, 0.38) rgba(0, 0, 0, 0.42);
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset,
0 0 1px rgba(255, 255, 255, 0.15) inset,
0 1px 0 rgba(255, 255, 255, 0.05);
}
.splitToolbarButton > .toolbarButton:hover,
.splitToolbarButton > .toolbarButton:focus,
.dropdownToolbarButton:hover,
.overlayButton:hover,
.overlayButton:focus,
.toolbarButton.textButton:hover,
.toolbarButton.textButton:focus {
background-color: rgba(0,0,0,0.2);
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset,
0 0 1px rgba(255, 255, 255, 0.15) inset,
0 0 1px rgba(0, 0, 0, 0.05);
z-index: 199;
}
.dropdownToolbarButton:hover {
background-color: rgba(0, 0, 0, 0.26);
}
.splitToolbarButton > .toolbarButton {
position: relative;
}
html[dir='ltr'] .splitToolbarButton > .toolbarButton:first-child,
html[dir='rtl'] .splitToolbarButton > .toolbarButton:last-child {
position: relative;
margin: 0;
margin-right: -1px;
border-top-left-radius: 2px;
border-bottom-left-radius: 2px;
border-right-color: rgba(0, 0, 0, 0);
}
html[dir='ltr'] .splitToolbarButton > .toolbarButton:last-child,
html[dir='rtl'] .splitToolbarButton > .toolbarButton:first-child {
position: relative;
margin: 0;
margin-left: -1px;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
border-left-color: rgba(0, 0, 0, 0);
}
.splitToolbarButtonSeparator {
padding: 8px 0;
width: 1px;
background-color: rgba(0, 0, 0, 0.5);
z-index: 99;
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
display: inline-block;
margin: 5px 0;
}
html[dir='ltr'] .splitToolbarButtonSeparator {
float: left;
}
html[dir='rtl'] .splitToolbarButtonSeparator {
float: right;
}
.splitToolbarButton:hover > .splitToolbarButtonSeparator,
.splitToolbarButton.toggled > .splitToolbarButtonSeparator {
padding: 12px 0;
margin: 1px 0;
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.toolbarButton,
.dropdownToolbarButton,
.secondaryToolbarButton,
.overlayButton {
min-width: 16px;
padding: 2px 6px 0;
border: 1px solid rgba(0, 0, 0, 0);
border-radius: 2px;
color: rgba(255, 255, 255, 0.8);
font-size: 12px;
line-height: 14px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
/* Opera does not support user-select, use <... unselectable="on"> instead */
cursor: default;
}
html[dir='ltr'] .toolbarButton,
html[dir='ltr'] .overlayButton,
html[dir='ltr'] .dropdownToolbarButton {
margin: 3px 2px 4px 0;
}
html[dir='rtl'] .toolbarButton,
html[dir='rtl'] .overlayButton,
html[dir='rtl'] .dropdownToolbarButton {
margin: 3px 0 4px 2px;
}
.toolbarButton:hover,
.toolbarButton:focus,
.dropdownToolbarButton,
.overlayButton,
.secondaryToolbarButton:hover,
.secondaryToolbarButton:focus {
background-color: rgba(0, 0, 0, 0.12);
background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.05)), to(rgba(255, 255, 255, 0)));
background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
background-clip: padding-box;
border: 1px solid rgba(0, 0, 0, 0.35);
border-color: rgba(0, 0, 0, 0.32) rgba(0, 0, 0, 0.38) rgba(0, 0, 0, 0.42);
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset,
0 0 1px rgba(255, 255, 255, 0.15) inset,
0 1px 0 rgba(255, 255, 255, 0.05);
}
.toolbarButton:hover:active,
.overlayButton:hover:active,
.dropdownToolbarButton:hover:active,
.secondaryToolbarButton:hover:active {
background-color: rgba(0, 0, 0, 0.2);
background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.05)), to(rgba(255, 255, 255, 0)));
background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
border-color: rgba(0, 0, 0, 0.35) rgba(0, 0, 0, 0.4) rgba(0, 0, 0, 0.45);
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1) inset,
0 0 1px rgba(0, 0, 0, 0.2) inset,
0 1px 0 rgba(255, 255, 255, 0.05);
}
.toolbarButton.toggled,
.splitToolbarButton.toggled > .toolbarButton.toggled,
.secondaryToolbarButton.toggled {
background-color: rgba(0, 0, 0, 0.3);
background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.05)), to(rgba(255, 255, 255, 0)));
background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
border-color: rgba(0, 0, 0, 0.4) rgba(0, 0, 0, 0.45) rgba(0, 0, 0, 0.5);
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1) inset,
0 0 1px rgba(0, 0, 0, 0.2) inset,
0 1px 0 rgba(255, 255, 255, 0.05);
}
.toolbarButton.toggled:hover:active,
.splitToolbarButton.toggled > .toolbarButton.toggled:hover:active,
.secondaryToolbarButton.toggled:hover:active {
background-color: rgba(0, 0, 0, 0.4);
border-color: rgba(0, 0, 0, 0.4) rgba(0, 0, 0, 0.5) rgba(0, 0, 0, 0.55);
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2) inset,
0 0 1px rgba(0, 0, 0, 0.3) inset,
0 1px 0 rgba(255, 255, 255, 0.05);
}
.dropdownToolbarButton {
width: 140px;
padding: 0;
overflow: hidden;
}
.dropdownToolbarButton::after {
position: absolute;
display: inline-block;
top: 4px;
content: url(images/toolbarButton-menuArrows.png);
}
html[dir='ltr'] .dropdownToolbarButton::after {
right: 8px;
}
html[dir='rtl'] .dropdownToolbarButton::after {
left: 8px;
}
.dropdownToolbarButton > select {
width: 162px;
height: 23px;
font-size: 12px;
color: rgba(242, 242, 242, 1);
margin: 0;
padding: 3px 2px 2px;
border: none;
background: rgba(0,0,0,0); /* Opera does not support 'transparent' <select> background */
}
.dropdownToolbarButton > select > option {
background: rgba(61, 61, 61, 1);
}
#customScaleOption {
display: none;
}
#pageWidthOption {
border-bottom: 1px rgba(255, 255, 255, 0.5) solid;
}
html[dir='ltr'] .splitToolbarButton:first-child,
html[dir='ltr'] .toolbarButton:first-child,
html[dir='rtl'] .splitToolbarButton:last-child,
html[dir='rtl'] .toolbarButton:last-child {
margin-left: 4px;
}
html[dir='ltr'] .splitToolbarButton:last-child,
html[dir='ltr'] .toolbarButton:last-child,
html[dir='rtl'] .splitToolbarButton:first-child,
html[dir='rtl'] .toolbarButton:first-child {
margin-right: 4px;
}
.toolbarButtonSpacer {
width: 30px;
display: inline-block;
height: 1px;
}
html[dir='ltr'] #findPrevious {
margin-left: 3px;
}
html[dir='ltr'] #findNext {
margin-right: 3px;
}
html[dir='rtl'] #findPrevious {
margin-right: 3px;
}
html[dir='rtl'] #findNext {
margin-left: 3px;
}
.toolbarButton::before,
.secondaryToolbarButton::before {
/* All matching images have a size of 16x16
* All relevant containers have a size of 32x25 */
position: absolute;
display: inline-block;
top: 4px;
left: 7px;
}
html[dir="ltr"] .secondaryToolbarButton::before {
left: 4px;
}
html[dir="rtl"] .secondaryToolbarButton::before {
right: 4px;
}
html[dir='ltr'] .toolbarButton#sidebarToggle::before {
content: url(images/toolbarButton-sidebarToggle.png);
}
html[dir='rtl'] .toolbarButton#sidebarToggle::before {
content: url(images/toolbarButton-sidebarToggle-rtl.png);
}
html[dir='ltr'] .toolbarButton#secondaryToolbarToggle::before {
content: url(images/toolbarButton-secondaryToolbarToggle.png);
}
html[dir='rtl'] .toolbarButton#secondaryToolbarToggle::before {
content: url(images/toolbarButton-secondaryToolbarToggle-rtl.png);
}
html[dir='ltr'] .toolbarButton.findPrevious::before {
content: url(images/findbarButton-previous.png);
}
html[dir='rtl'] .toolbarButton.findPrevious::before {
content: url(images/findbarButton-previous-rtl.png);
}
html[dir='ltr'] .toolbarButton.findNext::before {
content: url(images/findbarButton-next.png);
}
html[dir='rtl'] .toolbarButton.findNext::before {
content: url(images/findbarButton-next-rtl.png);
}
html[dir='ltr'] .toolbarButton.pageUp::before {
content: url(images/toolbarButton-pageUp.png);
}
html[dir='rtl'] .toolbarButton.pageUp::before {
content: url(images/toolbarButton-pageUp-rtl.png);
}
html[dir='ltr'] .toolbarButton.pageDown::before {
content: url(images/toolbarButton-pageDown.png);
}
html[dir='rtl'] .toolbarButton.pageDown::before {
content: url(images/toolbarButton-pageDown-rtl.png);
}
.toolbarButton.zoomOut::before {
content: url(images/toolbarButton-zoomOut.png);
}
.toolbarButton.zoomIn::before {
content: url(images/toolbarButton-zoomIn.png);
}
.toolbarButton.presentationMode::before,
.secondaryToolbarButton.presentationMode::before {
content: url(images/toolbarButton-presentationMode.png);
}
.toolbarButton.print::before,
.secondaryToolbarButton.print::before {
content: url(images/toolbarButton-print.png);
}
.toolbarButton.openFile::before,
.secondaryToolbarButton.openFile::before {
content: url(images/toolbarButton-openFile.png);
}
.toolbarButton.download::before,
.secondaryToolbarButton.download::before {
content: url(images/toolbarButton-download.png);
}
.toolbarButton.bookmark,
.secondaryToolbarButton.bookmark {
box-sizing: border-box;
outline: none;
padding-top: 4px;
text-decoration: none;
}
.secondaryToolbarButton.bookmark {
padding-top: 5px;
}
.bookmark[href='#'] {
opacity: .5;
pointer-events: none;
}
.toolbarButton.bookmark::before,
.secondaryToolbarButton.bookmark::before {
content: url(images/toolbarButton-bookmark.png);
}
#viewThumbnail.toolbarButton::before {
content: url(images/toolbarButton-viewThumbnail.png);
}
html[dir="ltr"] #viewOutline.toolbarButton::before {
content: url(images/toolbarButton-viewOutline.png);
}
html[dir="rtl"] #viewOutline.toolbarButton::before {
content: url(images/toolbarButton-viewOutline-rtl.png);
}
#viewAttachments.toolbarButton::before {
content: url(images/toolbarButton-viewAttachments.png);
}
#viewFind.toolbarButton::before {
content: url(images/toolbarButton-search.png);
}
.toolbarButton.pdfSidebarNotification::after {
position: absolute;
display: inline-block;
top: 1px;
/* Create a filled circle, with a diameter of 9 pixels, using only CSS: */
content: '';
background-color: rgba(112, 219, 85, 1);
height: 9px;
width: 9px;
border-radius: 50%;
}
html[dir='ltr'] .toolbarButton.pdfSidebarNotification::after {
left: 17px;
}
html[dir='rtl'] .toolbarButton.pdfSidebarNotification::after {
right: 17px;
}
.secondaryToolbarButton {
position: relative;
margin: 0 0 4px 0;
padding: 3px 0 1px 0;
height: auto;
min-height: 25px;
width: auto;
min-width: 100%;
white-space: normal;
}
html[dir="ltr"] .secondaryToolbarButton {
padding-left: 24px;
text-align: left;
}
html[dir="rtl"] .secondaryToolbarButton {
padding-right: 24px;
text-align: right;
}
html[dir="ltr"] .secondaryToolbarButton.bookmark {
padding-left: 27px;
}
html[dir="rtl"] .secondaryToolbarButton.bookmark {
padding-right: 27px;
}
html[dir="ltr"] .secondaryToolbarButton > span {
padding-right: 4px;
}
html[dir="rtl"] .secondaryToolbarButton > span {
padding-left: 4px;
}
.secondaryToolbarButton.firstPage::before {
content: url(images/secondaryToolbarButton-firstPage.png);
}
.secondaryToolbarButton.lastPage::before {
content: url(images/secondaryToolbarButton-lastPage.png);
}
.secondaryToolbarButton.rotateCcw::before {
content: url(images/secondaryToolbarButton-rotateCcw.png);
}
.secondaryToolbarButton.rotateCw::before {
content: url(images/secondaryToolbarButton-rotateCw.png);
}
.secondaryToolbarButton.selectTool::before {
content: url(images/secondaryToolbarButton-selectTool.png);
}
.secondaryToolbarButton.handTool::before {
content: url(images/secondaryToolbarButton-handTool.png);
}
.secondaryToolbarButton.scrollVertical::before {
content: url(images/secondaryToolbarButton-scrollVertical.png);
}
.secondaryToolbarButton.scrollHorizontal::before {
content: url(images/secondaryToolbarButton-scrollHorizontal.png);
}
.secondaryToolbarButton.scrollWrapped::before {
content: url(images/secondaryToolbarButton-scrollWrapped.png);
}
.secondaryToolbarButton.spreadNone::before {
content: url(images/secondaryToolbarButton-spreadNone.png);
}
.secondaryToolbarButton.spreadOdd::before {
content: url(images/secondaryToolbarButton-spreadOdd.png);
}
.secondaryToolbarButton.spreadEven::before {
content: url(images/secondaryToolbarButton-spreadEven.png);
}
.secondaryToolbarButton.documentProperties::before {
content: url(images/secondaryToolbarButton-documentProperties.png);
}
.verticalToolbarSeparator {
display: block;
padding: 8px 0;
margin: 8px 4px;
width: 1px;
background-color: rgba(0, 0, 0, 0.5);
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
html[dir='ltr'] .verticalToolbarSeparator {
margin-left: 2px;
}
html[dir='rtl'] .verticalToolbarSeparator {
margin-right: 2px;
}
.horizontalToolbarSeparator {
display: block;
margin: 0 0 4px 0;
height: 1px;
width: 100%;
background-color: rgba(0, 0, 0, 0.5);
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.toolbarField {
padding: 3px 6px;
margin: 4px 0 4px 0;
border-radius: 2px;
background-color: rgba(255, 255, 255, 0.09);
background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.05)), to(rgba(255, 255, 255, 0)));
background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
background-clip: padding-box;
border-width: 1px;
border-style: solid;
border-color: rgba(0, 0, 0, 0.32) rgba(0, 0, 0, 0.38) rgba(0, 0, 0, 0.42);
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05) inset,
0 1px 0 rgba(255, 255, 255, 0.05);
color: rgba(242, 242, 242, 1);
font-size: 12px;
line-height: 14px;
outline-style: none;
}
.toolbarField[type=checkbox] {
display: inline-block;
margin: 8px 0px;
}
.toolbarField.pageNumber {
-moz-appearance: textfield; /* hides the spinner in moz */
min-width: 16px;
text-align: right;
width: 40px;
}
.toolbarField.pageNumber.visiblePageIsLoading {
background-image: url(images/loading-small.png);
background-repeat: no-repeat;
background-position: 1px;
}
.toolbarField.pageNumber::-webkit-inner-spin-button,
.toolbarField.pageNumber::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
.toolbarField:hover {
background-color: rgba(255, 255, 255, 0.11);
border-color: rgba(0, 0, 0, 0.4) rgba(0, 0, 0, 0.43) rgba(0, 0, 0, 0.45);
}
.toolbarField:focus {
background-color: rgba(255, 255, 255, 0.15);
border-color: rgba(77, 184, 255, 0.8) rgba(77, 184, 255, 0.85) rgba(77, 184, 255, 0.9);
}
.toolbarLabel {
min-width: 16px;
padding: 3px 6px 3px 2px;
margin: 4px 2px 4px 0;
border: 1px solid rgba(0, 0, 0, 0);
border-radius: 2px;
color: rgba(217, 217, 217, 1);
font-size: 12px;
line-height: 14px;
text-align: left;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
cursor: default;
}
#thumbnailView {
position: absolute;
width: calc(100% - 60px);
top: 0;
bottom: 0;
padding: 10px 30px 0;
overflow: auto;
-webkit-overflow-scrolling: touch;
}
#thumbnailView > a:active,
#thumbnailView > a:focus {
outline: 0;
}
.thumbnail {
margin: 0 10px 5px 10px;
}
html[dir='ltr'] .thumbnail {
float: left;
}
html[dir='rtl'] .thumbnail {
float: right;
}
#thumbnailView > a:last-of-type > .thumbnail {
margin-bottom: 10px;
}
#thumbnailView > a:last-of-type > .thumbnail:not([data-loaded]) {
margin-bottom: 9px;
}
.thumbnail:not([data-loaded]) {
border: 1px dashed rgba(255, 255, 255, 0.5);
margin: -1px 9px 4px 9px;
}
.thumbnailImage {
border: 1px solid rgba(0, 0, 0, 0);
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
opacity: 0.8;
z-index: 99;
background-color: rgba(255, 255, 255, 1);
background-clip: content-box;
}
.thumbnailSelectionRing {
border-radius: 2px;
padding: 7px;
}
a:focus > .thumbnail > .thumbnailSelectionRing > .thumbnailImage,
.thumbnail:hover > .thumbnailSelectionRing > .thumbnailImage {
opacity: .9;
}
a:focus > .thumbnail > .thumbnailSelectionRing,
.thumbnail:hover > .thumbnailSelectionRing {
background-color: rgba(255, 255, 255, 0.15);
background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.05)), to(rgba(255, 255, 255, 0)));
background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
background-clip: padding-box;
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset,
0 0 1px rgba(255, 255, 255, 0.2) inset,
0 0 1px rgba(0, 0, 0, 0.2);
color: rgba(255, 255, 255, 0.9);
}
.thumbnail.selected > .thumbnailSelectionRing > .thumbnailImage {
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
opacity: 1;
}
.thumbnail.selected > .thumbnailSelectionRing {
background-color: rgba(255, 255, 255, 0.3);
background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.05)), to(rgba(255, 255, 255, 0)));
background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
background-clip: padding-box;
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset,
0 0 1px rgba(255, 255, 255, 0.1) inset,
0 0 1px rgba(0, 0, 0, 0.2);
color: rgba(255, 255, 255,1);
}
#outlineView,
#attachmentsView {
position: absolute;
width: calc(100% - 8px);
top: 0;
bottom: 0;
overflow: auto;
-webkit-overflow-scrolling: touch;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
#outlineView {
padding: 4px 4px 0;
}
#attachmentsView {
padding: 3px 4px 0;
}
html[dir='ltr'] .outlineWithDeepNesting > .outlineItem,
html[dir='ltr'] .outlineItem > .outlineItems {
margin-left: 20px;
}
html[dir='rtl'] .outlineWithDeepNesting > .outlineItem,
html[dir='rtl'] .outlineItem > .outlineItems {
margin-right: 20px;
}
.outlineItem > a,
.attachmentsItem > button {
text-decoration: none;
display: inline-block;
min-width: 95%;
min-width: calc(100% - 4px); /* Subtract the right padding (left, in RTL mode)
of the container. */
height: auto;
margin-bottom: 1px;
border-radius: 2px;
color: rgba(255, 255, 255, 0.8);
font-size: 13px;
line-height: 15px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
white-space: normal;
}
.attachmentsItem > button {
border: 0 none;
background: none;
cursor: pointer;
width: 100%;
}
html[dir='ltr'] .outlineItem > a {
padding: 2px 0 5px 4px;
}
html[dir='ltr'] .attachmentsItem > button {
padding: 2px 0 3px 7px;
text-align: left;
}
html[dir='rtl'] .outlineItem > a {
padding: 2px 4px 5px 0;
}
html[dir='rtl'] .attachmentsItem > button {
padding: 2px 7px 3px 0;
text-align: right;
}
.outlineItemToggler {
position: relative;
height: 0;
width: 0;
color: rgba(255, 255, 255, 0.5);
}
.outlineItemToggler::before {
content: url(images/treeitem-expanded.png);
display: inline-block;
position: absolute;
}
html[dir='ltr'] .outlineItemToggler.outlineItemsHidden::before {
content: url(images/treeitem-collapsed.png);
}
html[dir='rtl'] .outlineItemToggler.outlineItemsHidden::before {
content: url(images/treeitem-collapsed-rtl.png);
}
.outlineItemToggler.outlineItemsHidden ~ .outlineItems {
display: none;
}
html[dir='ltr'] .outlineItemToggler {
float: left;
}
html[dir='rtl'] .outlineItemToggler {
float: right;
}
html[dir='ltr'] .outlineItemToggler::before {
right: 4px;
}
html[dir='rtl'] .outlineItemToggler::before {
left: 4px;
}
.outlineItemToggler:hover,
.outlineItemToggler:hover + a,
.outlineItemToggler:hover ~ .outlineItems,
.outlineItem > a:hover,
.attachmentsItem > button:hover {
background-color: rgba(255, 255, 255, 0.02);
background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.05)), to(rgba(255, 255, 255, 0)));
background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
background-clip: padding-box;
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset,
0 0 1px rgba(255, 255, 255, 0.2) inset,
0 0 1px rgba(0, 0, 0, 0.2);
border-radius: 2px;
color: rgba(255, 255, 255, 0.9);
}
.outlineItem.selected {
background-color: rgba(255, 255, 255, 0.08);
background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.05)), to(rgba(255, 255, 255, 0)));
background-image: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
background-clip: padding-box;
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset,
0 0 1px rgba(255, 255, 255, 0.1) inset,
0 0 1px rgba(0, 0, 0, 0.2);
color: rgba(255, 255, 255, 1);
}
.noResults {
font-size: 12px;
color: rgba(255, 255, 255, 0.8);
font-style: italic;
cursor: default;
}
/* TODO: file FF bug to support ::-moz-selection:window-inactive
so we can override the opaque grey background when the window is inactive;
see https://bugzilla.mozilla.org/show_bug.cgi?id=706209 */
::-moz-selection {
background: rgba(0, 0, 255, 0.3);
}
::selection {
background: rgba(0, 0, 255, 0.3);
}
#errorWrapper {
background: none repeat scroll 0 0 rgba(255, 85, 85, 1);
color: rgba(255, 255, 255, 1);
left: 0;
position: absolute;
right: 0;
z-index: 1000;
padding: 3px;
font-size: 0.8em;
}
.loadingInProgress #errorWrapper {
top: 37px;
}
#errorMessageLeft {
float: left;
}
#errorMessageRight {
float: right;
}
#errorMoreInfo {
background-color: rgba(255, 255, 255, 1);
color: rgba(0, 0, 0, 1);
padding: 3px;
margin: 3px;
width: 98%;
}
.overlayButton {
width: auto;
margin: 3px 4px 2px 4px !important;
padding: 2px 6px 3px 6px;
}
#overlayContainer {
display: table;
position: absolute;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.2);
z-index: 40000;
}
#overlayContainer > * {
overflow: auto;
-webkit-overflow-scrolling: touch;
}
#overlayContainer > .container {
display: table-cell;
vertical-align: middle;
text-align: center;
}
#overlayContainer > .container > .dialog {
display: inline-block;
padding: 15px;
border-spacing: 4px;
color: rgba(217, 217, 217, 1);
font-size: 12px;
line-height: 14px;
background-color: rgba(71, 71, 71, 1); /* fallback */
background-image: url(images/texture.png),
-webkit-gradient(linear, left top, left bottom, from(rgba(82, 82, 82,0.99)), to(rgba(69, 69, 69, 0.95)));
background-image: url(images/texture.png),
linear-gradient(rgba(82, 82, 82,0.99), rgba(69, 69, 69, 0.95));
border: 1px solid rgba(0, 0, 0, 0.5);
border-radius: 4px;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.dialog > .row {
display: table-row;
}
.dialog > .row > * {
display: table-cell;
}
.dialog .toolbarField {
margin: 5px 0;
}
.dialog .separator {
display: block;
margin: 4px 0 4px 0;
height: 1px;
width: 100%;
background-color: rgba(0, 0, 0, 0.5);
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.dialog .buttonRow {
text-align: center;
vertical-align: middle;
}
.dialog :link {
color: rgba(255, 255, 255, 1);
}
#passwordOverlay > .dialog {
text-align: center;
}
#passwordOverlay .toolbarField {
width: 200px;
}
#documentPropertiesOverlay > .dialog {
text-align: left;
}
#documentPropertiesOverlay .row > * {
min-width: 100px;
}
html[dir='ltr'] #documentPropertiesOverlay .row > * {
text-align: left;
}
html[dir='rtl'] #documentPropertiesOverlay .row > * {
text-align: right;
}
#documentPropertiesOverlay .row > span {
width: 125px;
word-wrap: break-word;
}
#documentPropertiesOverlay .row > p {
max-width: 225px;
word-wrap: break-word;
}
#documentPropertiesOverlay .buttonRow {
margin-top: 10px;
}
.clearBoth {
clear: both;
}
.fileInput {
background: rgba(255, 255, 255, 1);
color: rgba(0, 0, 0, 1);
margin-top: 5px;
visibility: hidden;
position: fixed;
right: 0;
top: 0;
}
#PDFBug {
background: none repeat scroll 0 0 rgba(255, 255, 255, 1);
border: 1px solid rgba(102, 102, 102, 1);
position: fixed;
top: 32px;
right: 0;
bottom: 0;
font-size: 10px;
padding: 0;
width: 300px;
}
#PDFBug .controls {
background: rgba(238, 238, 238, 1);
border-bottom: 1px solid rgba(102, 102, 102, 1);
padding: 3px;
}
#PDFBug .panels {
bottom: 0;
left: 0;
overflow: auto;
-webkit-overflow-scrolling: touch;
position: absolute;
right: 0;
top: 27px;
}
#PDFBug .panels > div {
padding: 5px;
}
#PDFBug button.active {
font-weight: bold;
}
.debuggerShowText {
background: none repeat scroll 0 0 rgba(255, 255, 0, 1);
color: rgba(0, 0, 255, 1);
}
.debuggerHideText:hover {
background: none repeat scroll 0 0 rgba(255, 255, 0, 1);
}
#PDFBug .stats {
font-family: courier;
font-size: 10px;
white-space: pre;
}
#PDFBug .stats .title {
font-weight: bold;
}
#PDFBug table {
font-size: 10px;
}
#viewer.textLayer-visible .textLayer {
opacity: 1.0;
}
#viewer.textLayer-visible .canvasWrapper {
background-color: rgba(128, 255, 128, 1);
}
#viewer.textLayer-visible .canvasWrapper canvas {
mix-blend-mode: screen;
}
#viewer.textLayer-visible .textLayer > span {
background-color: rgba(255, 255, 0, 0.1);
color: rgba(0, 0, 0, 1);
border: solid 1px rgba(255, 0, 0, 0.5);
box-sizing: border-box;
}
#viewer.textLayer-hover .textLayer > span:hover {
background-color: rgba(255, 255, 255, 1);
color: rgba(0, 0, 0, 1);
}
#viewer.textLayer-shadow .textLayer > span {
background-color: rgba(255, 255, 255, 0.6);
color: rgba(0, 0, 0, 1);
}
.grab-to-pan-grab {
cursor: url("images/grab.cur"), move !important;
cursor: -webkit-grab !important;
cursor: grab !important;
}
.grab-to-pan-grab *:not(input):not(textarea):not(button):not(select):not(:link) {
cursor: inherit !important;
}
.grab-to-pan-grab:active,
.grab-to-pan-grabbing {
cursor: url("images/grabbing.cur"), move !important;
cursor: -webkit-grabbing !important;
cursor: grabbing !important;
position: fixed;
background: rgba(0, 0, 0, 0);
display: block;
top: 0;
left: 0;
right: 0;
bottom: 0;
overflow: hidden;
z-index: 50000; /* should be higher than anything else in PDF.js! */
}
@page {
margin: 0;
}
#printContainer {
display: none;
}
@media screen and (-webkit-min-device-pixel-ratio: 1.1), screen and (min-resolution: 1.1dppx) {
/* Rules for Retina screens */
.toolbarButton::before {
-webkit-transform: scale(0.5);
transform: scale(0.5);
top: -5px;
}
.secondaryToolbarButton::before {
-webkit-transform: scale(0.5);
transform: scale(0.5);
top: -4px;
}
html[dir='ltr'] .toolbarButton::before,
html[dir='rtl'] .toolbarButton::before {
left: -1px;
}
html[dir='ltr'] .secondaryToolbarButton::before {
left: -2px;
}
html[dir='rtl'] .secondaryToolbarButton::before {
left: 186px;
}
.toolbarField.pageNumber.visiblePageIsLoading,
#findInput[data-status="pending"] {
background-image: url(images/loading-small@2x.png);
background-size: 16px 17px;
}
.dropdownToolbarButton::after {
-webkit-transform: scale(0.5);
transform: scale(0.5);
top: -5px;
content: url(images/toolbarButton-menuArrows@2x.png);
}
html[dir='ltr'] .dropdownToolbarButton::after {
right: 4px;
}
html[dir='rtl'] .dropdownToolbarButton::after {
left: 4px;
}
html[dir='ltr'] .toolbarButton#sidebarToggle::before {
content: url(images/toolbarButton-sidebarToggle@2x.png);
}
html[dir='rtl'] .toolbarButton#sidebarToggle::before {
content: url(images/toolbarButton-sidebarToggle-rtl@2x.png);
}
html[dir='ltr'] .toolbarButton#secondaryToolbarToggle::before {
content: url(images/toolbarButton-secondaryToolbarToggle@2x.png);
}
html[dir='rtl'] .toolbarButton#secondaryToolbarToggle::before {
content: url(images/toolbarButton-secondaryToolbarToggle-rtl@2x.png);
}
html[dir='ltr'] .toolbarButton.findPrevious::before {
content: url(images/findbarButton-previous@2x.png);
}
html[dir='rtl'] .toolbarButton.findPrevious::before {
content: url(images/findbarButton-previous-rtl@2x.png);
}
html[dir='ltr'] .toolbarButton.findNext::before {
content: url(images/findbarButton-next@2x.png);
}
html[dir='rtl'] .toolbarButton.findNext::before {
content: url(images/findbarButton-next-rtl@2x.png);
}
html[dir='ltr'] .toolbarButton.pageUp::before {
content: url(images/toolbarButton-pageUp@2x.png);
}
html[dir='rtl'] .toolbarButton.pageUp::before {
content: url(images/toolbarButton-pageUp-rtl@2x.png);
}
html[dir='ltr'] .toolbarButton.pageDown::before {
content: url(images/toolbarButton-pageDown@2x.png);
}
html[dir='rtl'] .toolbarButton.pageDown::before {
content: url(images/toolbarButton-pageDown-rtl@2x.png);
}
.toolbarButton.zoomIn::before {
content: url(images/toolbarButton-zoomIn@2x.png);
}
.toolbarButton.zoomOut::before {
content: url(images/toolbarButton-zoomOut@2x.png);
}
.toolbarButton.presentationMode::before,
.secondaryToolbarButton.presentationMode::before {
content: url(images/toolbarButton-presentationMode@2x.png);
}
.toolbarButton.print::before,
.secondaryToolbarButton.print::before {
content: url(images/toolbarButton-print@2x.png);
}
.toolbarButton.openFile::before,
.secondaryToolbarButton.openFile::before {
content: url(images/toolbarButton-openFile@2x.png);
}
.toolbarButton.download::before,
.secondaryToolbarButton.download::before {
content: url(images/toolbarButton-download@2x.png);
}
.toolbarButton.bookmark::before,
.secondaryToolbarButton.bookmark::before {
content: url(images/toolbarButton-bookmark@2x.png);
}
#viewThumbnail.toolbarButton::before {
content: url(images/toolbarButton-viewThumbnail@2x.png);
}
html[dir="ltr"] #viewOutline.toolbarButton::before {
content: url(images/toolbarButton-viewOutline@2x.png);
}
html[dir="rtl"] #viewOutline.toolbarButton::before {
content: url(images/toolbarButton-viewOutline-rtl@2x.png);
}
#viewAttachments.toolbarButton::before {
content: url(images/toolbarButton-viewAttachments@2x.png);
}
#viewFind.toolbarButton::before {
content: url(images/toolbarButton-search@2x.png);
}
.secondaryToolbarButton.firstPage::before {
content: url(images/secondaryToolbarButton-firstPage@2x.png);
}
.secondaryToolbarButton.lastPage::before {
content: url(images/secondaryToolbarButton-lastPage@2x.png);
}
.secondaryToolbarButton.rotateCcw::before {
content: url(images/secondaryToolbarButton-rotateCcw@2x.png);
}
.secondaryToolbarButton.rotateCw::before {
content: url(images/secondaryToolbarButton-rotateCw@2x.png);
}
.secondaryToolbarButton.selectTool::before {
content: url(images/secondaryToolbarButton-selectTool@2x.png);
}
.secondaryToolbarButton.handTool::before {
content: url(images/secondaryToolbarButton-handTool@2x.png);
}
.secondaryToolbarButton.scrollVertical::before {
content: url(images/secondaryToolbarButton-scrollVertical@2x.png);
}
.secondaryToolbarButton.scrollHorizontal::before {
content: url(images/secondaryToolbarButton-scrollHorizontal@2x.png);
}
.secondaryToolbarButton.scrollWrapped::before {
content: url(images/secondaryToolbarButton-scrollWrapped@2x.png);
}
.secondaryToolbarButton.spreadNone::before {
content: url(images/secondaryToolbarButton-spreadNone@2x.png);
}
.secondaryToolbarButton.spreadOdd::before {
content: url(images/secondaryToolbarButton-spreadOdd@2x.png);
}
.secondaryToolbarButton.spreadEven::before {
content: url(images/secondaryToolbarButton-spreadEven@2x.png);
}
.secondaryToolbarButton.documentProperties::before {
content: url(images/secondaryToolbarButton-documentProperties@2x.png);
}
.outlineItemToggler::before {
-webkit-transform: scale(0.5);
transform: scale(0.5);
top: -1px;
content: url(images/treeitem-expanded@2x.png);
}
html[dir='ltr'] .outlineItemToggler.outlineItemsHidden::before {
content: url(images/treeitem-collapsed@2x.png);
}
html[dir='rtl'] .outlineItemToggler.outlineItemsHidden::before {
content: url(images/treeitem-collapsed-rtl@2x.png);
}
html[dir='ltr'] .outlineItemToggler::before {
right: 0;
}
html[dir='rtl'] .outlineItemToggler::before {
left: 0;
}
}
@media print {
/* General rules for printing. */
body {
background: rgba(0, 0, 0, 0) none;
}
/* Rules for browsers that don't support mozPrintCallback. */
#sidebarContainer, #secondaryToolbar, .toolbar, #loadingBox, #errorWrapper, .textLayer {
display: none;
}
#viewerContainer {
overflow: visible;
}
#mainContainer, #viewerContainer, .page, .page canvas {
position: static;
padding: 0;
margin: 0;
}
.page {
float: left;
display: none;
border: none;
box-shadow: none;
background-clip: content-box;
background-color: rgba(255, 255, 255, 1);
}
.page[data-loaded] {
display: block;
}
.fileInput {
display: none;
}
/* Rules for browsers that support PDF.js printing */
body[data-pdfjsprinting] #outerContainer {
display: none;
}
body[data-pdfjsprinting] #printContainer {
display: block;
}
#printContainer {
height: 100%;
}
/* wrapper around (scaled) print canvas elements */
#printContainer > div {
position: relative;
top: 0;
left: 0;
width: 1px;
height: 1px;
overflow: visible;
page-break-after: always;
page-break-inside: avoid;
}
#printContainer canvas,
#printContainer img {
display: block;
}
}
.visibleLargeView,
.visibleMediumView,
.visibleSmallView {
display: none;
}
@media all and (max-width: 900px) {
#toolbarViewerMiddle {
display: table;
margin: auto;
left: auto;
position: inherit;
-webkit-transform: none;
transform: none;
}
}
@media all and (max-width: 840px) {
#sidebarContent {
background-color: rgba(0, 0, 0, 0.7);
}
html[dir='ltr'] #outerContainer.sidebarOpen #viewerContainer {
left: 0px !important;
}
html[dir='rtl'] #outerContainer.sidebarOpen #viewerContainer {
right: 0px !important;
}
#outerContainer .hiddenLargeView,
#outerContainer .hiddenMediumView {
display: inherit;
}
#outerContainer .visibleLargeView,
#outerContainer .visibleMediumView {
display: none;
}
}
@media all and (max-width: 770px) {
#outerContainer .hiddenLargeView {
display: none;
}
#outerContainer .visibleLargeView {
display: inherit;
}
}
@media all and (max-width: 700px) {
#outerContainer .hiddenMediumView {
display: none;
}
#outerContainer .visibleMediumView {
display: inherit;
}
}
@media all and (max-width: 640px) {
.hiddenSmallView, .hiddenSmallView * {
display: none;
}
.visibleSmallView {
display: inherit;
}
.toolbarButtonSpacer {
width: 0;
}
html[dir='ltr'] .findbar {
left: 38px;
}
html[dir='rtl'] .findbar {
right: 38px;
}
}
@media all and (max-width: 535px) {
#scaleSelectContainer {
display: none;
}
}
<!DOCTYPE html>
<!--
Copyright 2012 Mozilla Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Adobe CMap resources are covered by their own copyright but the same license:
Copyright 1990-2015 Adobe Systems Incorporated.
See https://github.com/adobe-type-tools/cmap-resources
-->
<html dir="ltr" mozdisallowselectionprint>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="google" content="notranslate">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>PDF.js viewer</title>
<link rel="stylesheet" href="viewer.css">
<!-- This snippet is used in production (included from viewer.html) -->
<link rel="resource" type="application/l10n" href="locale/locale.properties">
<script src="../build/pdf.js"></script>
<script src="viewer.js"></script>
</head>
<body tabindex="1" class="loadingInProgress">
<div id="outerContainer">
<div id="sidebarContainer">
<div id="toolbarSidebar">
<div class="splitToolbarButton toggled">
<button id="viewThumbnail" class="toolbarButton toggled" title="Show Thumbnails" tabindex="2" data-l10n-id="thumbs">
<span data-l10n-id="thumbs_label">Thumbnails</span>
</button>
<button id="viewOutline" class="toolbarButton" title="Show Document Outline (double-click to expand/collapse all items)" tabindex="3" data-l10n-id="document_outline">
<span data-l10n-id="document_outline_label">Document Outline</span>
</button>
<button id="viewAttachments" class="toolbarButton" title="Show Attachments" tabindex="4" data-l10n-id="attachments">
<span data-l10n-id="attachments_label">Attachments</span>
</button>
</div>
</div>
<div id="sidebarContent">
<div id="thumbnailView">
</div>
<div id="outlineView" class="hidden">
</div>
<div id="attachmentsView" class="hidden">
</div>
</div>
<div id="sidebarResizer" class="hidden"></div>
</div> <!-- sidebarContainer -->
<div id="mainContainer">
<div class="findbar hidden doorHanger" id="findbar">
<div id="findbarInputContainer">
<input id="findInput" class="toolbarField" title="Find" placeholder="Find in document…" tabindex="91" data-l10n-id="find_input">
<div class="splitToolbarButton">
<button id="findPrevious" class="toolbarButton findPrevious" title="Find the previous occurrence of the phrase" tabindex="92" data-l10n-id="find_previous">
<span data-l10n-id="find_previous_label">Previous</span>
</button>
<div class="splitToolbarButtonSeparator"></div>
<button id="findNext" class="toolbarButton findNext" title="Find the next occurrence of the phrase" tabindex="93" data-l10n-id="find_next">
<span data-l10n-id="find_next_label">Next</span>
</button>
</div>
</div>
<div id="findbarOptionsOneContainer">
<input type="checkbox" id="findHighlightAll" class="toolbarField" tabindex="94">
<label for="findHighlightAll" class="toolbarLabel" data-l10n-id="find_highlight">Highlight all</label>
<input type="checkbox" id="findMatchCase" class="toolbarField" tabindex="95">
<label for="findMatchCase" class="toolbarLabel" data-l10n-id="find_match_case_label">Match case</label>
</div>
<div id="findbarOptionsTwoContainer">
<input type="checkbox" id="findEntireWord" class="toolbarField" tabindex="96">
<label for="findEntireWord" class="toolbarLabel" data-l10n-id="find_entire_word_label">Whole words</label>
<span id="findResultsCount" class="toolbarLabel hidden"></span>
</div>
<div id="findbarMessageContainer">
<span id="findMsg" class="toolbarLabel"></span>
</div>
</div> <!-- findbar -->
<div id="secondaryToolbar" class="secondaryToolbar hidden doorHangerRight">
<div id="secondaryToolbarButtonContainer">
<button id="secondaryPresentationMode" class="secondaryToolbarButton presentationMode visibleLargeView" title="Switch to Presentation Mode" tabindex="51" data-l10n-id="presentation_mode">
<span data-l10n-id="presentation_mode_label">Presentation Mode</span>
</button>
<button id="secondaryOpenFile" class="secondaryToolbarButton openFile visibleLargeView" title="Open File" tabindex="52" data-l10n-id="open_file">
<span data-l10n-id="open_file_label">Open</span>
</button>
<button id="secondaryPrint" class="secondaryToolbarButton print visibleMediumView" title="Print" tabindex="53" data-l10n-id="print">
<span data-l10n-id="print_label">Print</span>
</button>
<button id="secondaryDownload" class="secondaryToolbarButton download visibleMediumView" title="Download" tabindex="54" data-l10n-id="download">
<span data-l10n-id="download_label">Download</span>
</button>
<a href="#" id="secondaryViewBookmark" class="secondaryToolbarButton bookmark visibleSmallView" title="Current view (copy or open in new window)" tabindex="55" data-l10n-id="bookmark">
<span data-l10n-id="bookmark_label">Current View</span>
</a>
<div class="horizontalToolbarSeparator visibleLargeView"></div>
<button id="firstPage" class="secondaryToolbarButton firstPage" title="Go to First Page" tabindex="56" data-l10n-id="first_page">
<span data-l10n-id="first_page_label">Go to First Page</span>
</button>
<button id="lastPage" class="secondaryToolbarButton lastPage" title="Go to Last Page" tabindex="57" data-l10n-id="last_page">
<span data-l10n-id="last_page_label">Go to Last Page</span>
</button>
<div class="horizontalToolbarSeparator"></div>
<button id="pageRotateCw" class="secondaryToolbarButton rotateCw" title="Rotate Clockwise" tabindex="58" data-l10n-id="page_rotate_cw">
<span data-l10n-id="page_rotate_cw_label">Rotate Clockwise</span>
</button>
<button id="pageRotateCcw" class="secondaryToolbarButton rotateCcw" title="Rotate Counterclockwise" tabindex="59" data-l10n-id="page_rotate_ccw">
<span data-l10n-id="page_rotate_ccw_label">Rotate Counterclockwise</span>
</button>
<div class="horizontalToolbarSeparator"></div>
<button id="cursorSelectTool" class="secondaryToolbarButton selectTool toggled" title="Enable Text Selection Tool" tabindex="60" data-l10n-id="cursor_text_select_tool">
<span data-l10n-id="cursor_text_select_tool_label">Text Selection Tool</span>
</button>
<button id="cursorHandTool" class="secondaryToolbarButton handTool" title="Enable Hand Tool" tabindex="61" data-l10n-id="cursor_hand_tool">
<span data-l10n-id="cursor_hand_tool_label">Hand Tool</span>
</button>
<div class="horizontalToolbarSeparator"></div>
<button id="scrollVertical" class="secondaryToolbarButton scrollModeButtons scrollVertical toggled" title="Use Vertical Scrolling" tabindex="62" data-l10n-id="scroll_vertical">
<span data-l10n-id="scroll_vertical_label">Vertical Scrolling</span>
</button>
<button id="scrollHorizontal" class="secondaryToolbarButton scrollModeButtons scrollHorizontal" title="Use Horizontal Scrolling" tabindex="63" data-l10n-id="scroll_horizontal">
<span data-l10n-id="scroll_horizontal_label">Horizontal Scrolling</span>
</button>
<button id="scrollWrapped" class="secondaryToolbarButton scrollModeButtons scrollWrapped" title="Use Wrapped Scrolling" tabindex="64" data-l10n-id="scroll_wrapped">
<span data-l10n-id="scroll_wrapped_label">Wrapped Scrolling</span>
</button>
<div class="horizontalToolbarSeparator scrollModeButtons"></div>
<button id="spreadNone" class="secondaryToolbarButton spreadModeButtons spreadNone toggled" title="Do not join page spreads" tabindex="65" data-l10n-id="spread_none">
<span data-l10n-id="spread_none_label">No Spreads</span>
</button>
<button id="spreadOdd" class="secondaryToolbarButton spreadModeButtons spreadOdd" title="Join page spreads starting with odd-numbered pages" tabindex="66" data-l10n-id="spread_odd">
<span data-l10n-id="spread_odd_label">Odd Spreads</span>
</button>
<button id="spreadEven" class="secondaryToolbarButton spreadModeButtons spreadEven" title="Join page spreads starting with even-numbered pages" tabindex="67" data-l10n-id="spread_even">
<span data-l10n-id="spread_even_label">Even Spreads</span>
</button>
<div class="horizontalToolbarSeparator spreadModeButtons"></div>
<button id="documentProperties" class="secondaryToolbarButton documentProperties" title="Document Properties…" tabindex="68" data-l10n-id="document_properties">
<span data-l10n-id="document_properties_label">Document Properties…</span>
</button>
</div>
</div> <!-- secondaryToolbar -->
<div class="toolbar">
<div id="toolbarContainer">
<div id="toolbarViewer">
<div id="toolbarViewerLeft">
<button id="sidebarToggle" class="toolbarButton" title="Toggle Sidebar" tabindex="11" data-l10n-id="toggle_sidebar">
<span data-l10n-id="toggle_sidebar_label">Toggle Sidebar</span>
</button>
<div class="toolbarButtonSpacer"></div>
<button id="viewFind" class="toolbarButton" title="Find in Document" tabindex="12" data-l10n-id="findbar">
<span data-l10n-id="findbar_label">Find</span>
</button>
<div class="splitToolbarButton hiddenSmallView">
<button class="toolbarButton pageUp" title="Previous Page" id="previous" tabindex="13" data-l10n-id="previous">
<span data-l10n-id="previous_label">Previous</span>
</button>
<div class="splitToolbarButtonSeparator"></div>
<button class="toolbarButton pageDown" title="Next Page" id="next" tabindex="14" data-l10n-id="next">
<span data-l10n-id="next_label">Next</span>
</button>
</div>
<input type="number" id="pageNumber" class="toolbarField pageNumber" title="Page" value="1" size="4" min="1" tabindex="15" data-l10n-id="page">
<span id="numPages" class="toolbarLabel"></span>
</div>
<div id="toolbarViewerRight">
<button id="presentationMode" class="toolbarButton presentationMode hiddenLargeView" title="Switch to Presentation Mode" tabindex="31" data-l10n-id="presentation_mode">
<span data-l10n-id="presentation_mode_label">Presentation Mode</span>
</button>
<button id="openFile" class="toolbarButton openFile hiddenLargeView" title="Open File" tabindex="32" data-l10n-id="open_file">
<span data-l10n-id="open_file_label">Open</span>
</button>
<button id="print" class="toolbarButton print hiddenMediumView" title="Print" tabindex="33" data-l10n-id="print">
<span data-l10n-id="print_label">Print</span>
</button>
<button id="download" class="toolbarButton download hiddenMediumView" title="Download" tabindex="34" data-l10n-id="download">
<span data-l10n-id="download_label">Download</span>
</button>
<a href="#" id="viewBookmark" class="toolbarButton bookmark hiddenSmallView" title="Current view (copy or open in new window)" tabindex="35" data-l10n-id="bookmark">
<span data-l10n-id="bookmark_label">Current View</span>
</a>
<div class="verticalToolbarSeparator hiddenSmallView"></div>
<button id="secondaryToolbarToggle" class="toolbarButton" title="Tools" tabindex="36" data-l10n-id="tools">
<span data-l10n-id="tools_label">Tools</span>
</button>
</div>
<div id="toolbarViewerMiddle">
<div class="splitToolbarButton">
<button id="zoomOut" class="toolbarButton zoomOut" title="Zoom Out" tabindex="21" data-l10n-id="zoom_out">
<span data-l10n-id="zoom_out_label">Zoom Out</span>
</button>
<div class="splitToolbarButtonSeparator"></div>
<button id="zoomIn" class="toolbarButton zoomIn" title="Zoom In" tabindex="22" data-l10n-id="zoom_in">
<span data-l10n-id="zoom_in_label">Zoom In</span>
</button>
</div>
<span id="scaleSelectContainer" class="dropdownToolbarButton">
<select id="scaleSelect" title="Zoom" tabindex="23" data-l10n-id="zoom">
<option id="pageAutoOption" title="" value="auto" selected="selected" data-l10n-id="page_scale_auto">Automatic Zoom</option>
<option id="pageActualOption" title="" value="page-actual" data-l10n-id="page_scale_actual">Actual Size</option>
<option id="pageFitOption" title="" value="page-fit" data-l10n-id="page_scale_fit">Page Fit</option>
<option id="pageWidthOption" title="" value="page-width" data-l10n-id="page_scale_width">Page Width</option>
<option id="customScaleOption" title="" value="custom" disabled="disabled" hidden="true"></option>
<option title="" value="0.5" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 50 }'>50%</option>
<option title="" value="0.75" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 75 }'>75%</option>
<option title="" value="1" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 100 }'>100%</option>
<option title="" value="1.25" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 125 }'>125%</option>
<option title="" value="1.5" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 150 }'>150%</option>
<option title="" value="2" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 200 }'>200%</option>
<option title="" value="3" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 300 }'>300%</option>
<option title="" value="4" data-l10n-id="page_scale_percent" data-l10n-args='{ "scale": 400 }'>400%</option>
</select>
</span>
</div>
</div>
<div id="loadingBar">
<div class="progress">
<div class="glimmer">
</div>
</div>
</div>
</div>
</div>
<menu type="context" id="viewerContextMenu">
<menuitem id="contextFirstPage" label="First Page"
data-l10n-id="first_page"></menuitem>
<menuitem id="contextLastPage" label="Last Page"
data-l10n-id="last_page"></menuitem>
<menuitem id="contextPageRotateCw" label="Rotate Clockwise"
data-l10n-id="page_rotate_cw"></menuitem>
<menuitem id="contextPageRotateCcw" label="Rotate Counter-Clockwise"
data-l10n-id="page_rotate_ccw"></menuitem>
</menu>
<div id="viewerContainer" tabindex="0">
<div id="viewer" class="pdfViewer"></div>
</div>
<div id="errorWrapper" hidden='true'>
<div id="errorMessageLeft">
<span id="errorMessage"></span>
<button id="errorShowMore" data-l10n-id="error_more_info">
More Information
</button>
<button id="errorShowLess" data-l10n-id="error_less_info" hidden='true'>
Less Information
</button>
</div>
<div id="errorMessageRight">
<button id="errorClose" data-l10n-id="error_close">
Close
</button>
</div>
<div class="clearBoth"></div>
<textarea id="errorMoreInfo" hidden='true' readonly="readonly"></textarea>
</div>
</div> <!-- mainContainer -->
<div id="overlayContainer" class="hidden">
<div id="passwordOverlay" class="container hidden">
<div class="dialog">
<div class="row">
<p id="passwordText" data-l10n-id="password_label">Enter the password to open this PDF file:</p>
</div>
<div class="row">
<input type="password" id="password" class="toolbarField">
</div>
<div class="buttonRow">
<button id="passwordCancel" class="overlayButton"><span data-l10n-id="password_cancel">Cancel</span></button>
<button id="passwordSubmit" class="overlayButton"><span data-l10n-id="password_ok">OK</span></button>
</div>
</div>
</div>
<div id="documentPropertiesOverlay" class="container hidden">
<div class="dialog">
<div class="row">
<span data-l10n-id="document_properties_file_name">File name:</span> <p id="fileNameField">-</p>
</div>
<div class="row">
<span data-l10n-id="document_properties_file_size">File size:</span> <p id="fileSizeField">-</p>
</div>
<div class="separator"></div>
<div class="row">
<span data-l10n-id="document_properties_title">Title:</span> <p id="titleField">-</p>
</div>
<div class="row">
<span data-l10n-id="document_properties_author">Author:</span> <p id="authorField">-</p>
</div>
<div class="row">
<span data-l10n-id="document_properties_subject">Subject:</span> <p id="subjectField">-</p>
</div>
<div class="row">
<span data-l10n-id="document_properties_keywords">Keywords:</span> <p id="keywordsField">-</p>
</div>
<div class="row">
<span data-l10n-id="document_properties_creation_date">Creation Date:</span> <p id="creationDateField">-</p>
</div>
<div class="row">
<span data-l10n-id="document_properties_modification_date">Modification Date:</span> <p id="modificationDateField">-</p>
</div>
<div class="row">
<span data-l10n-id="document_properties_creator">Creator:</span> <p id="creatorField">-</p>
</div>
<div class="separator"></div>
<div class="row">
<span data-l10n-id="document_properties_producer">PDF Producer:</span> <p id="producerField">-</p>
</div>
<div class="row">
<span data-l10n-id="document_properties_version">PDF Version:</span> <p id="versionField">-</p>
</div>
<div class="row">
<span data-l10n-id="document_properties_page_count">Page Count:</span> <p id="pageCountField">-</p>
</div>
<div class="row">
<span data-l10n-id="document_properties_page_size">Page Size:</span> <p id="pageSizeField">-</p>
</div>
<div class="separator"></div>
<div class="row">
<span data-l10n-id="document_properties_linearized">Fast Web View:</span> <p id="linearizedField">-</p>
</div>
<div class="buttonRow">
<button id="documentPropertiesClose" class="overlayButton"><span data-l10n-id="document_properties_close">Close</span></button>
</div>
</div>
</div>
<div id="printServiceOverlay" class="container hidden">
<div class="dialog">
<div class="row">
<span data-l10n-id="print_progress_message">Preparing document for printing…</span>
</div>
<div class="row">
<progress value="0" max="100"></progress>
<span data-l10n-id="print_progress_percent" data-l10n-args='{ "progress": 0 }' class="relative-progress">0%</span>
</div>
<div class="buttonRow">
<button id="printCancel" class="overlayButton"><span data-l10n-id="print_progress_close">Cancel</span></button>
</div>
</div>
</div>
</div> <!-- overlayContainer -->
</div> <!-- outerContainer -->
<div id="printContainer"></div>
</body>
</html>
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
...@@ -2,41 +2,41 @@ ...@@ -2,41 +2,41 @@
* @Author: 前端 qianduan01@didihu.com.cn * @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2024-04-07 17:09:53 * @Date: 2024-04-07 17:09:53
* @LastEditors: 前端 qianduan01@didihu.com.cn * @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2024-04-11 16:47:29 * @LastEditTime: 2024-08-30 14:49:02
* @FilePath: \gl_tape\main.js * @FilePath: \gl_tape\main.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
import Vue from "vue"; import Vue from 'vue'
import App from "./App"; import App from './App'
import config from "@/config.js"; import config from '@/config.js'
import store from "@/store"; import store from '@/store'
import api from "./api/index"; import api from './api/index'
import { Storage } from "./utils/cache/index"; import { Storage } from './utils/cache/index'
import GlsxImage from "./components/GlsxImage"; import GlsxImage from './components/GlsxImage'
import MessageBox from "./components/MessageBox/index"; import MessageBox from './components/MessageBox/index'
import wnCanvas from "./components/Canvas/wn-canvas"; import wnCanvas from './components/Canvas/wn-canvas'
import UpdateBox from "./components/UpdateBox"; import UpdateBox from './components/UpdateBox'
import webView from "./components/WebView"; import webView from './components/WebView'
import utils from "./utils/utils"; import utils from './utils/utils'
Vue.use(webView); Vue.use(webView)
Vue.component("GlsxImage", GlsxImage); Vue.component('GlsxImage', GlsxImage)
Vue.component("MessageBox", MessageBox); Vue.component('MessageBox', MessageBox)
Vue.component("wnCanvas", wnCanvas); Vue.component('wnCanvas', wnCanvas)
Vue.component("UpdateBox", UpdateBox); Vue.component('UpdateBox', UpdateBox)
import RecordManager from "@/utils/RecordManager"; import RecordManager from '@/utils/RecordManager'
const recordManager = RecordManager.getInstance(); const recordManager = RecordManager.getInstance()
recordManager.compatible(); recordManager.compatible()
uni.$recordManager = recordManager; uni.$recordManager = recordManager
uni.$api = api; uni.$api = api
uni.$lock = false; uni.$lock = false
uni.$storage = new Storage(); uni.$storage = new Storage()
uni.$throttle = utils.throttle; uni.$throttle = utils.throttle
uni.$isNetWork = utils.isNetWork; uni.$isNetWork = utils.isNetWork
Vue.config.productionTip = false; Vue.config.productionTip = false
App.mpType = "app"; App.mpType = 'app'
Vue.prototype.$ossDomain = config.OSS_DOMAIN; Vue.prototype.$ossDomain = config.OSS_DOMAIN
import permision from "@/js_sdk/wa-permission/permission.js"; import permision from '@/js_sdk/wa-permission/permission.js'
import { index } from "./env"; import { index } from './env'
// switch (uni.getSystemInfoSync().platform) { // switch (uni.getSystemInfoSync().platform) {
// case "android": // case "android":
// permision.requestAndroidPermission("android.permission.RECORD_AUDIO"); // permision.requestAndroidPermission("android.permission.RECORD_AUDIO");
...@@ -47,19 +47,19 @@ import { index } from "./env"; ...@@ -47,19 +47,19 @@ import { index } from "./env";
// permision.judgeIosPermission("camera"); // permision.judgeIosPermission("camera");
// break; // break;
// } // }
Vue.prototype.$permision = permision; Vue.prototype.$permision = permision
import sentryInit from "@/utils/sentryConfig/sentryInit"; import sentryInit from '@/utils/sentryConfig/sentryInit'
if (index == 3) { if (index == 3) {
const sentry = sentryInit(); const sentry = sentryInit()
Vue.prototype.$sendSentry = function (e) { Vue.prototype.$sendSentry = function (e) {
sentry.captureException(e); sentry.captureException(e)
}; }
} else { } else {
Vue.prototype.$sendSentry = function () {}; Vue.prototype.$sendSentry = function () {}
} }
const app = new Vue({ const app = new Vue({
store, store,
...App, ...App
}); })
app.$mount(); app.$mount()
...@@ -212,6 +212,7 @@ export default { ...@@ -212,6 +212,7 @@ export default {
}, },
//结束接待 //结束接待
stopAudio: utils.throttle(async function (status) { stopAudio: utils.throttle(async function (status) {
console.log('结束')
// const result = await this.$permision.requestAndroidPermission( // const result = await this.$permision.requestAndroidPermission(
// "android.permission.RECORD_AUDIO" // "android.permission.RECORD_AUDIO"
// ); // );
......
export default {
data() {
return {
goodsId: '',
visitsId: ''
}
},
onLoad(options) {
this.visitsId = options.visitsId
this.goodsId = options.id
this.addRecord()
},
methods: {
addRecord() {
const { shopMerchantId: merchantId, shopMerchantName: merchantName } = uni.$storage.get('userInfo')
const params = {
goodsId: this.goodsId,
goodsType: 0,
merchantId,
merchantName,
visitsId: this.visitsId
}
uni.$api.commonApi.addRecord(params).then(res => {
this.addId = res
})
}
},
onUnload() {
const params = {
id: this.addId,
visitsId: this.visitsId
}
uni.$api.commonApi.leaveRecord(params).then(res => {
console.log(res, 888)
})
}
}
...@@ -110,6 +110,18 @@ ...@@ -110,6 +110,18 @@
}, },
{ {
"path": "pages/common/webview" "path": "pages/common/webview"
},
{
"path": "pages/common/customerDetail",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/common/caseDetail",
"style": {
"navigationStyle": "custom"
}
} }
], ],
"globalStyle": { "globalStyle": {
......
...@@ -78,7 +78,7 @@ export default { ...@@ -78,7 +78,7 @@ export default {
list: [], list: [],
popupShow:false, popupShow:false,
isSearch:false, isSearch:false,
videoSrc: 'https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/2minute-demo.mp4', videoSrc: '',
} }
}, },
props: { props: {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<view class="layout"> <view class="layout">
<view class="title"> <view class="title">
<view class="sprite-icon icon-aito"></view> <view class="sprite-icon icon-aito"></view>
<view class="text">问界·精品加装服务说明</view> <view class="text">{{tabId}}-{{currentCar}}</view>
</view> </view>
<view <view
class="form-box" class="form-box"
...@@ -27,6 +27,12 @@ ...@@ -27,6 +27,12 @@
@focus="focusIndex = index" @focus="focusIndex = index"
@blur="resetFocusIndex" @blur="resetFocusIndex"
/> />
<customer-autocomplete
:showType="i.inputType"
:searchValue="customerInfo[i.key]"
:show="focusIndex == index"
@choose="chooseCustomer"
/>
</template> </template>
<template v-else> <template v-else>
<view <view
...@@ -165,15 +171,18 @@ import Employee from '@/components/Employee.vue' ...@@ -165,15 +171,18 @@ import Employee from '@/components/Employee.vue'
import CarBrands from '@/components/CarBrands.vue' import CarBrands from '@/components/CarBrands.vue'
import QrBox from './QrBox.vue' import QrBox from './QrBox.vue'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import CustomerAutocomplete from '@/components/CustomerAutocomplete.vue'
const phoneRex = /^[1]([3-9])[0-9]{9}$/; const phoneRex = /^[1]([3-9])[0-9]{9}$/;
export default { export default {
name: 'Reception', name: 'Reception',
components: { Employee, CarBrands, QrBox }, components: { Employee, CarBrands, QrBox, CustomerAutocomplete },
props: { props: {
views: Array, views: Array,
customerType: Number, customerType: Number,
show: Boolean, show: Boolean,
madiaId: Number madiaId: Number,
tabId: Number,
currentCar: String
}, },
data () { data () {
return { return {
...@@ -471,6 +480,15 @@ export default { ...@@ -471,6 +480,15 @@ export default {
merchantIdList merchantIdList
}) })
return list || [] return list || []
},
chooseCustomer (e) {
this.customerInfo = {
...this.customerInfo,
phoneNumber: e.ownerPhone,
customerName: e.ownerName,
carModel: e.brandModel
}
this.inputCustomer()
} }
} }
} }
...@@ -485,9 +503,9 @@ export default { ...@@ -485,9 +503,9 @@ export default {
top: 0; top: 0;
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
background-image: url("@/assets/images/boutique/reception-bg.webp"); background-image: url('@/assets/images/boutique/reception-bg.webp');
background-size: 100% 100%; background-size: 100% 100%;
content: ""; content: '';
z-index: -1; z-index: -1;
} }
.title { .title {
...@@ -559,7 +577,7 @@ export default { ...@@ -559,7 +577,7 @@ export default {
top: -2rpx; top: -2rpx;
width: calc(100% + 4rpx); width: calc(100% + 4rpx);
height: calc(100% + 4rpx); height: calc(100% + 4rpx);
content: ""; content: '';
background-image: linear-gradient(#2f6af7, #75bcff); background-image: linear-gradient(#2f6af7, #75bcff);
box-shadow: 0 0 0 8rpx #2c66f71a; box-shadow: 0 0 0 8rpx #2c66f71a;
border-radius: 16rpx; border-radius: 16rpx;
......
...@@ -22,19 +22,21 @@ ...@@ -22,19 +22,21 @@
</view> </view>
<template v-for="(item, index) in media"> <template v-for="(item, index) in media">
<view <view
:class="['view', { showView: id == item.sort }]" :class="['view', { showView: id == item.id }]"
:key="index" :key="index"
> >
<component <component
:is="componentName(item.sort)" :is="item.componentName"
:views="item.receptionSourceDetailList || []" :views="item.receptionSourceDetailList || []"
:ref="'media' + item.sort" :ref="'media' + item.id"
:title="item.detailTitle || ''" :title="item.detailTitle || ''"
:madiaId="item.sort" :madiaId="item.id"
:customerType="customerType" :customerType="customerType"
@jumpPage="jumpPage" @jumpPage="jumpPage"
:show="id == item.sort" :show="id == item.id"
@reception="reception" @reception="reception"
:tabId="tabId"
:currentCar="currentCar"
/> />
</view> </view>
</template> </template>
...@@ -46,7 +48,6 @@ ...@@ -46,7 +48,6 @@
@choose="choose" @choose="choose"
@finish="open" @finish="open"
:id="id" :id="id"
idKey="sort"
/> />
</template> </template>
<finish-step <finish-step
...@@ -85,7 +86,9 @@ export default { ...@@ -85,7 +86,9 @@ export default {
default: "preview", default: "preview",
}, },
customerType: Number, customerType: Number,
historyId: [Number, String] toolList: Array,
tabId: Number,
currentCar: String
}, },
data () { data () {
return { return {
...@@ -94,47 +97,31 @@ export default { ...@@ -94,47 +97,31 @@ export default {
computed: { computed: {
title () { title () {
let { id } = this, let { id } = this,
name = this.media.find((e) => e.sort == id)?.detailTitle || ""; name = this.media.find((e) => e.id == id)?.detailTitle || "";
return name; return name;
}, },
watchStatus () { watchStatus () {
return this.$store.state.user.historyStatus; return this.$store.state.user.historyStatus;
}, },
toolList () {
return JSON.parse(JSON.stringify(this.media)).sort(function (a, b) {
return a.shortSort - b.shortSort
})
}
}, },
mounted () { }, mounted () { },
methods: { methods: {
...mapMutations("audio", ["setReceptionStatus"]), ...mapMutations("audio", ["setReceptionStatus"]),
componentName (id) {
let name = "";
if ([2, 4, 5].includes(id)) name = "membranes";
else
name = {
1: "reception",
7: "invitation",
3: "Case",
6: 'history'
}[id];
return name;
},
open () { open () {
this.$refs.stepRef.open(); this.$refs.stepRef.open();
}, },
/**切换素材 */ /**切换素材 */
choose (e) { choose (e) {
if (this.id == 1) this.$refs.media1[0].closeAllPopup(); Object.keys(this.$refs).map(refKey => {
this.jumpPage({ id: e.sort }) let ref = this.$refs[refKey];
if (ref) {
if (Array.isArray(ref)) ref = ref[0]
ref.closeAllPopup && ref.closeAllPopup()
}
})
this.jumpPage({ id: e.id })
}, },
back () { back () {
if (this.historyId) {
this.jumpPage({ id: this.historyId })
this.$emit('update:historyId', '')
return
}
this.$refs?.toolRef?.hide(); this.$refs?.toolRef?.hide();
this.$emit("back"); this.$emit("back");
}, },
...@@ -143,8 +130,7 @@ export default { ...@@ -143,8 +130,7 @@ export default {
this.$refs.stepRef.close(); this.$refs.stepRef.close();
this.$emit("done", e); this.$emit("done", e);
}, },
jumpPage ({ id, historyId }) { jumpPage ({ id }) {
this.$emit('update:historyId', historyId || '')
this.$emit("update:id", Number(id)); this.$emit("update:id", Number(id));
}, },
/**回店客户 */ /**回店客户 */
...@@ -170,7 +156,7 @@ export default { ...@@ -170,7 +156,7 @@ export default {
this.$emit('reception') this.$emit('reception')
}, },
backInvitation () { backInvitation () {
this.jumpPage({ id: 7 }) this.jumpPage({ id: 3 })
setTimeout(() => { setTimeout(() => {
uni.showToast({ uni.showToast({
title: '请选择回店客户', title: '请选择回店客户',
......
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
</view> </view>
<view class="tabel-container"> <view class="tabel-container">
<table class="tabel-box" cellspacing="0" border="0" cellpadding="0"> <table class="tabel-box" cellspacing="0" border="0" cellpadding="0">
<tr v-for="i in goodsList"> <tr v-for="i in goodsList" :key="i.id">
<td>{{ i.goodsName }}</td> <td>{{ i.goodsName }}</td>
<td>{{ i.goodsPositionName || "-" }}</td> <td>{{ i.goodsPositionName || "-" }}</td>
<td>{{ i.number }}</td> <td>{{ i.number }}</td>
...@@ -248,7 +248,7 @@ export default { ...@@ -248,7 +248,7 @@ export default {
} }
.nav-title { .nav-title {
font-weight: 600; font-weight: 700;
font-size: 32rpx; font-size: 32rpx;
color: #1a1a1a; color: #1a1a1a;
text-align: center; text-align: center;
......
...@@ -9,38 +9,97 @@ ...@@ -9,38 +9,97 @@
@changeTab="changeTab" @changeTab="changeTab"
finishDoneText="下一步" finishDoneText="下一步"
finishContene="当前操作是为强制退出接待,若完成客户接待请点击下一步。" finishContene="当前操作是为强制退出接待,若完成客户接待请点击下一步。"
@previewCancel="cancel"
> >
<template slot="module">
<view class="module-box">
<view class="module-flex flex">
<template v-for="(i,index) in moduleList">
<view <view
class="module-box" class="item flex"
slot="module"
:key="moduleKey"
>
<template v-for="(i, index) in moduleList">
<view
:key="index" :key="index"
:class="['item', i.class]" v-if="!i.hide"
:style="i.style"
@click="toDetail(i)" @click="toDetail(i)"
> >
<image <image
class="item-img"
:src="i.thumbnail" :src="i.thumbnail"
mode="scaleToFill" class="icon"
/> />
{{i.title}}
</view> </view>
</template> </template>
</view> </view>
<view class="center-bg"></view>
<view class="banner-tab-box flex">
<template v-for="(item, index) in carBannerList">
<view
:key="index"
:class="['banner-tab',`${currentIndex == index ? 'active' : ''}`]"
@click="changeIndex(index)"
>
{{item.title}}
</view>
</template>
</view>
<swiper
class="swiper"
circular
:autoplay="bannerAutoplay"
interval="3000"
previous-margin="380rpx"
next-margin="448rpx"
@change="swiperChange"
:current="currentIndex"
>
<template v-for="(item, index) in carBannerList">
<swiper-item
:key="index"
:class="['swiper-item flex',carClass(index)]"
@click.prevent="toDetail({id:1,tabId:1})"
>
<image
:src="item.url"
class="car-item"
/>
<template v-if="currentIndex == index">
<view class="config-box">
<template v-for="(i,ind) in carConfigList">
<view
:class="['config-item',i.class]"
:key="ind"
@click.stop="toDetail({id:1,tabId:i.tabId})"
>
<view class="config-dots"></view>
<view class="config-name flex">
<view :class="['sprite-icon',`icon-${i.icon}`]"></view>
{{i.name}}
</view>
</view>
</template>
</view>
</template>
</swiper-item>
</template>
</swiper>
<view class="tips">
* 窗膜精品,更有整车搭配套餐火爆售卖。
<view>点击了解更多&gt;</view>
</view>
</view>
</template>
<template slot="detail"> <template slot="detail">
<detail <detail
:id.sync="id" :id.sync="id"
:media="moduleList" :media="moduleList"
:type.sync="type" :type.sync="type"
:toolList="toolList"
@back="back" @back="back"
@done="done" @done="done"
ref="detail" ref="detail"
:customerType.sync="customerType" :customerType.sync="customerType"
@reception="reception" @reception="reception"
:historyId.sync="historyId" :tabId.sync="tabId"
:currentCar="currentCar"
/> />
</template> </template>
<template slot="content"> <template slot="content">
...@@ -57,19 +116,55 @@ import HomeFrame from '@/components/HomeFrame/index.vue' ...@@ -57,19 +116,55 @@ import HomeFrame from '@/components/HomeFrame/index.vue'
import detail from './detail.vue' import detail from './detail.vue'
import CustomerType from './components/CustomerType.vue'; import CustomerType from './components/CustomerType.vue';
import { mapMutations } from "vuex"; import { mapMutations } from "vuex";
const m5 = require("@/assets/images/boutique/index/m5.webp")
const m7 = require("@/assets/images/boutique/index/m7.webp")
const m9 = require("@/assets/images/boutique/index/m9.webp")
export default { export default {
components: { HomeFrame, detail, CustomerType }, components: { HomeFrame, detail, CustomerType },
name: 'boutique', name: 'boutique',
data () { data () {
return { return {
moduleList: [], moduleList: [],
moduleKey: Date.now(), toolList: [],
chooseItem: {}, chooseItem: {},
id: '', id: '',
type: '', type: '',
customerType: -1, customerType: -1,
tabId: 1,
recording: false, recording: false,
historyId: '' carBannerList: [{
title: 'M5',
url: m5
}, {
title: 'M7',
url: m7
}, {
title: 'M9',
url: m9
}],
currentCar: 'M7',
currentIndex: 0,
bannerAutoplay: true,
carConfigList: [
{
name: '套餐火爆热卖',
icon: 'boutique-config-0',
class: 'config-0',
tabId: 1
},
{
name: '膜类专区',
icon: 'boutique-config-1',
class: 'config-1',
tabId: 2
},
{
name: '精品系列',
icon: 'boutique-config-2',
class: 'config-2',
tabId: 3
}
]
} }
}, },
onBackPress (options) { onBackPress (options) {
...@@ -96,6 +191,8 @@ export default { ...@@ -96,6 +191,8 @@ export default {
return; return;
} }
}, },
computed: {
},
methods: { methods: {
...mapMutations("audio", ["setReceptionStatus"]), ...mapMutations("audio", ["setReceptionStatus"]),
init () { init () {
...@@ -131,43 +228,30 @@ export default { ...@@ -131,43 +228,30 @@ export default {
}); });
}, },
// 查询素材 // 查询素材
async getSoure (merchantNo) { async getSoure () {
const moduleList = await uni.$api.commonApi.findSoureList({ let { moduleList, toolList } = await uni.$api.systemApi.getBoutiqueMockData(true)
bussinessType: 2,
merchantNo
});
moduleList.map((e, index) => {
if (index < 2) {
e.class = 'landscape'
e.style = {
0: 'width:936rpx;',
1: 'width:690rpx;'
}[index]
} else if (index == 2) e.class = 'square'
else e.class = 'vertical'
})
this.moduleList = moduleList this.moduleList = moduleList
this.toolList = toolList
console.log(moduleList) console.log(moduleList)
}, },
toDetail (item) { toDetail (item) {
this.chooseItem = item this.chooseItem = item
this.$refs.home.previewRef.open(); this.$refs.home.previewRef.open();
this.bannerAutoplay = false
}, },
cancel () { cancel () {
this.$refs.home.previewRef.close(); this.$refs.home.previewRef.close();
this.bannerAutoplay = true
}, },
preview () { preview () {
let { sort } = this.chooseItem; let { id, tabId } = this.chooseItem;
this.type = "preview"; this.type = "preview";
this.id = sort; this.id = id;
this.tabId = tabId
this.currentCar = this.carBannerList[this.currentIndex].title
this.cancel() this.cancel()
}, },
back () { back () {
if (this.historyId) {
this.id = this.historyId
this.historyId = ''
return
}
if (!this.id) return uni.navigateBack(); if (!this.id) return uni.navigateBack();
if (this.type != "preview") return this.$refs.home.finishRef.open(); if (this.type != "preview") return this.$refs.home.finishRef.open();
this.backHome(); this.backHome();
...@@ -177,8 +261,9 @@ export default { ...@@ -177,8 +261,9 @@ export default {
this.$refs.home.finishRef.close(); this.$refs.home.finishRef.close();
this.id = ""; this.id = "";
this.type = ""; this.type = "";
this.currentCar = this.carBannerList[1].title
this.bannerAutoplay = true
this.customerType = -1 this.customerType = -1
this.historyId = ''
this.clearHistory(); this.clearHistory();
this.init(); this.init();
this.recording = false this.recording = false
...@@ -200,7 +285,9 @@ export default { ...@@ -200,7 +285,9 @@ export default {
return true return true
}, },
jumpPage (id) { jumpPage (id) {
this.id = id ? id : this.moduleList[0].sort this.id = id ? id : this.moduleList[0].id
this.tabId = 1
this.currentCar = this.carBannerList[1].title
this.type = "edit" this.type = "edit"
}, },
clearHistory () { clearHistory () {
...@@ -217,8 +304,8 @@ export default { ...@@ -217,8 +304,8 @@ export default {
if (!flag) return if (!flag) return
this.customerType = index this.customerType = index
if (index == 0) { if (index == 0) {
const { sort } = moduleList[moduleList.length - 1] const { id } = moduleList[2]
this.jumpPage(sort) this.jumpPage(id)
} }
else this.jumpPage() else this.jumpPage()
}, },
...@@ -242,40 +329,262 @@ export default { ...@@ -242,40 +329,262 @@ export default {
if (customerType == -1) this.start(false) //开始接待 if (customerType == -1) this.start(false) //开始接待
this.customerType = 0 this.customerType = 0
this.jumpPage() this.jumpPage()
},
swiperChange (e) {
console.log(e)
this.currentIndex = e.detail.current
},
carClass (index) {
let className = this.currentIndex == index ? 'current-item' : ''
if (this.currentIndex == 1) {
if (index == 0) className += ' current-item-left'
else className += ' current-item-right'
}
if ((this.currentIndex == 2 && index == 1) || (this.currentIndex == 0 && index == 2)) className += ' current-item-left'
return className
},
changeIndex (index) {
this.currentIndex = index
this.bannerAutoplay = false
setTimeout(() => {
this.bannerAutoplay = true
}, 3e3)
} }
} }
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.module-box { .module-box {
display: flex; position: relative;
flex-wrap: wrap; width: 100%;
gap: 48rpx; height: 100%;
padding-top: 44rpx; .module-flex {
position: absolute;
top: 0;
right: 0;
padding: 46rpx 80rpx 0 0;
gap: 0 32rpx;
z-index: 2;
.item { .item {
display: flex; height: 56rpx;
flex-direction: column; background: #ffffff66;
border-radius: 48rpx; border: 2rpx solid #ffffff;
border-radius: 8rpx;
backdrop-filter: blur(4rpx);
padding: 0 20rpx;
font-weight: 500;
font-size: 32rpx;
color: #333333;
line-height: 40rpx;
.icon {
margin-right: 8rpx;
flex-shrink: 0;
width: 56rpx;
height: 56rpx;
}
}
}
.banner-tab-box {
padding-top: 50rpx;
.banner-tab {
padding: 0 32rpx;
font-weight: 500;
font-size: 36rpx;
color: #333333b3;
line-height: 44rpx;
width: 130rpx;
text-align: center;
position: relative;
}
.active {
font-weight: 700;
color: #333333;
transition: all 1s;
&::after {
content: '';
position: absolute;
left: 50%;
width: 8rpx;
height: 8rpx;
background: #333333;
border-radius: 100%;
transform: translateX(-50%);
animation: show-dot 0.15s forwards;
}
@keyframes show-dot {
0% {
bottom: 16rpx;
}
100% {
bottom: -16rpx;
}
}
}
}
&::before,
&::after {
content: '';
position: absolute;
top: 282rpx;
width: 380rpx;
height: 640rpx;
background-size: 100% 100%;
z-index: 2;
pointer-events: none;
}
&::before {
left: 0;
background-image: url('@/assets/images/boutique/index/left.webp');
}
&::after {
right: -4rpx;
background-image: url('@/assets/images/boutique/index/right.webp');
}
.swiper {
position: absolute;
left: 0;
top: 230rpx;
width: 100%;
height: 698rpx;
z-index: 1;
&-item {
position: relative;
padding-top: 58rpx;
.config-box {
animation: show-config-box 0.5s forwards;
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
}
@keyframes show-config-box {
0% {
transform: scale(10);
opacity: 0;
}
100% {
transform: scale(1);
opacity: 1;
}
}
.config-item {
position: absolute;
width: auto;
height: auto;
.config-dots {
width: 80rpx;
height: 80rpx;
background: #ffffff1a;
box-shadow: inset 0 0 8rpx 0 #ffffffe0;
border-radius: 100%;
position: relative; position: relative;
box-sizing: border-box; &::after {
&-img { position: absolute;
content: '';
width: 40rpx;
height: 40rpx;
background: #ffffff;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
border-radius: 100%;
}
animation: config-dots-breathe 3s infinite;
}
.config-name {
position: relative;
width: fit-content;
height: 56rpx;
background: #ffffff66;
border: 2rpx solid #ffffff;
border-radius: 8rpx;
backdrop-filter: blur(4rpx);
padding: 0 20rpx;
font-weight: 500;
font-size: 32rpx;
color: #333333;
line-height: 40rpx;
.sprite-icon {
margin-right: 8rpx;
flex-shrink: 0;
}
}
@keyframes config-dots-breathe {
0%,
100% {
transform: scale(0.9);
opacity: 0.85;
}
50% {
transform: scale(1.2);
opacity: 1;
}
}
}
.config-0 {
top: 108rpx;
left: 962rpx;
.config-name {
left: 20rpx;
top: -188rpx;
}
}
.config-1 {
top: 240rpx;
left: 262rpx;
.config-name {
left: -206rpx;
top: -186rpx;
}
}
.config-2 {
top: 352rpx;
left: 788rpx;
.config-name {
left: 22rpx;
top: 158rpx;
}
}
.car-item {
width: 639rpx;
height: 320rpx;
transition: all 0.5s;
transform-origin: left center;
}
}
.current-item {
.car-item {
width: 100%; width: 100%;
height: 100%; height: 100%;
vertical-align: top;
} }
} }
.landscape { .current-item-left {
height: 312rpx; justify-content: flex-end;
}
.current-item-right {
justify-content: flex-start;
}
} }
.square { .center-bg {
width: 318rpx; position: absolute;
height: 312rpx; left: 0;
top: 0;
width: 2036rpx;
height: 1026rpx;
background-image: url('@/assets/images/boutique/index/module-bg.webp');
background-size: 100% 100%;
pointer-events: none;
} }
.vertical { .tips {
width: 474rpx; position: absolute;
height: 624rpx; left: 32rpx;
bottom: 144rpx;
font-size: 24rpx;
color: #999999;
line-height: 36rpx;
z-index: 2;
} }
} }
</style> </style>
...@@ -224,7 +224,7 @@ export default { ...@@ -224,7 +224,7 @@ export default {
justify-content: center; justify-content: center;
} }
.nav-title { .nav-title {
font-weight: 600; font-weight: 700;
font-size: 32rpx; font-size: 32rpx;
color: #1a1a1a; color: #1a1a1a;
text-align: center; text-align: center;
......
...@@ -257,6 +257,7 @@ export default { ...@@ -257,6 +257,7 @@ export default {
.title { .title {
width: 100%; width: 100%;
text-align: center; text-align: center;
font-weight: 700;
} }
} }
.bg { .bg {
......
...@@ -7,19 +7,13 @@ ...@@ -7,19 +7,13 @@
<view class="title">{{ title }}</view> <view class="title">{{ title }}</view>
</view> </view>
<view class="popup-body"> <view class="popup-body">
<video <video ref="videoPlayer" :src="detailUrl" controls v-if="sourceType == 2"></video>
ref="videoPlayer" <view class="img-detail" v-else><image @click="back" :src="detailUrl" :style="{ width: width + 'px' }" /></view>
:src="detailUrl"
controls
v-if="sourceType == 2"
></video>
<view class="img-detail" v-else
><image @click="back" :src="detailUrl" :style="{ width: width + 'px' }"
/></view>
</view> </view>
</view> </view>
</template> </template>
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import report from "@/mixin/report.js";
export default { export default {
data () { data () {
return { return {
...@@ -29,6 +23,7 @@ export default { ...@@ -29,6 +23,7 @@ export default {
detailUrl: '' detailUrl: ''
} }
}, },
mixins:[report],
onLoad (options) { onLoad (options) {
const {tabName,sourceType,detailUrl} = options const {tabName,sourceType,detailUrl} = options
this.title = tabName this.title = tabName
...@@ -82,6 +77,7 @@ export default { ...@@ -82,6 +77,7 @@ export default {
color: #fff; color: #fff;
flex: 1; flex: 1;
font-size: 32rpx; font-size: 32rpx;
font-weight: 700;
text-align: center; text-align: center;
} }
} }
......
...@@ -7,8 +7,14 @@ ...@@ -7,8 +7,14 @@
mode="widthFix" mode="widthFix"
/> />
<view class="nav-bar"> <view class="nav-bar">
<view class="back" @click="back"> <view
<uni-icons type="left" :size="32"></uni-icons> class="back"
@click="back"
>
<uni-icons
type="left"
:size="32"
></uni-icons>
</view> </view>
</view> </view>
</view> </view>
...@@ -17,7 +23,7 @@ ...@@ -17,7 +23,7 @@
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
export default { export default {
name: '', name: '',
data() { data () {
return { return {
detailUrl: '' detailUrl: ''
} }
...@@ -27,7 +33,7 @@ export default { ...@@ -27,7 +33,7 @@ export default {
this.detailUrl = options.detailUrl this.detailUrl = options.detailUrl
}, },
methods: { methods: {
back() { back () {
uni.navigateBack({ uni.navigateBack({
delta: 1 delta: 1
}) })
...@@ -56,6 +62,7 @@ export default { ...@@ -56,6 +62,7 @@ export default {
.title { .title {
width: 100%; width: 100%;
text-align: center; text-align: center;
font-weight: 700;
} }
} }
.detail-img { .detail-img {
......
<template>
<view class="case-box">
<view class="nav-bar">
<view
class="back"
@click="back"
>
<uni-icons
type="left"
:size="20"
color="#000"
></uni-icons>
</view>
{{ caseObject.title }}
</view>
<view class="case-content">
<view class="left-menu">
<view class="title">方案目录</view>
<scroll-view
scroll-y
class="scroll"
:scroll-into-view="`menu-${currentId}`"
@scroll="menuScroll"
>
<view
class="scroll-content"
id="scroll-content"
>
<template v-for="(item, index) in detailInfo">
<view
class="item"
:key="index"
>
<view
:class="['name', isLast(index), isActive(item)]"
@click="menuClick(item)"
>
<view
class="text text-hide"
:id="`menu-${item.id}`"
>{{ item.headings }}</view>
</view>
<template v-if="item.children && item.children.length">
<template v-for="(i, j) in item.children">
<view
:class="['name', isLast(index, j, item.children), isActive(i)]"
:key="j"
@click="menuClick(i)"
>
<view
class="text"
:id="`menu-${i.id}`"
>
<view class="icon"></view>
<view class="text-hide">{{ i.headings }}</view>
</view>
</view>
</template>
</template>
</view>
</template>
<template v-if="currentId">
<view
class="block"
:style="blockTop"
></view>
</template>
</view>
</scroll-view>
</view>
<scroll-view
class="right-content"
scroll-y
:scroll-into-view="`case-${contentId}`"
@scroll="contentScroll"
enable-flex
>
<!-- scroll-with-animation -->
<template v-for="(item, index) in detailInfo">
<view
class="detail-item"
:key="item.id"
>
<view
class="item-title"
:id="`case-${item.id}`"
>{{ item.headings }}</view>
<template v-if="item.audio">
<audio-component
:src="item.audio"
@onPlay="onPlay(item)"
:ref="`audio-${item.id}`"
:audioKey="`key${item.id}`"
/>
</template>
<view class="item-content">
<rich-text :nodes="item.content"></rich-text>
</view>
<template v-for="(i, ind) in item.imgList">
<view
class="picture"
:key="`img-${index}-${ind}`"
:id="`img-${index}-${ind}`"
:data-item="item"
:data-index="ind"
>
<image
:src="i.url"
class="item-img"
mode="widthFix"
@load="imgLoad"
v-if="i.visible"
></image>
</view>
</template>
<template v-if="item.children && item.children.length">
<template v-for="(i, s) in item.children">
<view
class="sub-item-content"
:key="s"
>
<view
class="item-title sub-item-title flex"
:id="`case-${i.id}`"
>{{ i.headings }}</view>
<template v-if="i.audio">
<audio-component
:src="i.audio"
@onPlay="onPlay(i)"
:ref="`audio-${i.id}`"
:audioKey="`key${i.id}`"
/>
</template>
<view class="item-content">
<rich-text :nodes="i.content"></rich-text>
</view>
<template v-for="(c, k) in i.imgList">
<view
class="picture"
:key="`cimg-${s}-${k}`"
:id="`cimg-${s}-${k}`"
:data-item="i"
:data-index="k"
data-is-child
>
<image
:src="c.url"
class="item-img"
mode="widthFix"
@load="imgLoad"
v-if="c.visible"
></image>
</view>
</template>
</view>
</template>
</template>
</view>
</template>
<view class="content-end">到底了!</view>
</scroll-view>
</view>
</view>
</template>
<script type="text/ecmascript-6">
import AudioComponent from './components/AudioComponent.vue'
import report from "@/mixin/report.js";
const view_padding_top = 88,
menuHeight = 68
export default {
components: {
AudioComponent
},
mixins: [report],
data () {
return {
detailInfo: [],
currentId: '',
blockTop: '',
menuScrollTop: 0,
topList: [],
itemList: [],
contentId: '',
caseObject: {},
imgLength: 0,
contentScrollNumber: 0,
}
},
onLoad (options) {
this.getMaterialDetail(options.id)
},
watch: {
currentId (n) {
if (!n) return
const query = uni.createSelectorQuery()
query.select(`#menu-${n}`).boundingClientRect((data) => {
let top = data.top - (view_padding_top + menuHeight) + this.menuScrollTop
this.blockTop = `transform:translateY(${top}px);`
}).exec()
}
},
computed: {
},
methods: {
async getMaterialDetail (id) {
try {
uni.showLoading({
mask: true
})
const res = await uni.$api.customerApi.getMaterialDetail({
id
})
let detailInfo = []
, imgLength = 0
this.caseObject = res
res.richTextInfoList?.map(e => {
let imgList = []
if (e.content) e.content = this.highlightText(e.content)
if (e.pictureList && e.pictureList.length) {
imgLength += e.pictureList.length
e.pictureList.map(i => {
imgList.push({
// visible: false,
visible: true,
url: i
})
})
e.imgList = imgList
}
if (e.level == 1) detailInfo.push({
...e,
children: []
})
})
res.richTextInfoList?.map(e => {
if (e.level == 2) {
let index = detailInfo.findIndex(item => item.id == e.parentId)
if (index > -1) detailInfo[index].children.push(e)
}
})
this.imgLength = imgLength
this.detailInfo = detailInfo
this.$nextTick(() => {
this.initScrollListTop()
// this.observerPicture()
// uni.hideLoading()
})
if (imgLength == 0) uni.hideLoading()
} catch (error) {
uni.hideLoading()
console.log(error)
}
},
observerPicture () {
uni.createIntersectionObserver(this, {
observeAll: true
})
.relativeToViewport({
top: 0,
bottom: 300,
}).observe('.picture', res => {
const {
item,
index,
isChild
} = res.dataset,
currentItem = item.imgList[index]
if (!currentItem?.visible && res.intersectionRatio > 0) {
let parentIndex = this.detailInfo.findIndex(e => e.id == (isChild ? item.parentId : item.id))
if (isChild) {
let childIndex = this.detailInfo[parentIndex].children.findIndex(e => e.id == item.id)
console.log(this.detailInfo[parentIndex].children[childIndex], index)
this.detailInfo[parentIndex].children[childIndex].imgList[index].visible = true
} else this.detailInfo[parentIndex].imgList[index].visible = true
this.initScrollListTop()
this.$forceUpdate()
}
})
},
highlightText (text) {
text = text.replace(/<\/?br\s*\/?>|\n/g, '<br>')
const matches = text.match(/#/g)
if (!matches) return text
const spanCount = matches.length
let lastSpan = spanCount % 2 === 1,
parts = [],
currentIndex = 0
for (let i = 0; i < spanCount; i++) {
const matchIndex = text.indexOf('#', currentIndex)
parts.push(text.substring(currentIndex, matchIndex))
if (i === spanCount - 1 && lastSpan) parts.push('')
else {
if (i % 2 === 0) parts.push('<span style="color:#FF8D1A;font-weight: 500;">')
else parts.push('</span>')
}
currentIndex = matchIndex + 1
}
parts.push(text.substring(currentIndex))
return parts.join('')
},
back () {
uni.navigateBack({
delta: 1,
animationType: 'pop-out',
animationDuration: 100
})
},
async initScrollListTop () {
let { detailInfo, contentScrollNumber } = this,
topList = [],
itemList = [],
itemHeight = view_padding_top + 30
await detailInfo.map(async e => {
let query = uni.createSelectorQuery()
query.select(`#case-${e.id}`).boundingClientRect(data => {
if (data) {
topList.push(data.top - itemHeight + contentScrollNumber)
e.top = data.top - itemHeight + contentScrollNumber
itemList.push(e)
}
}).exec()
if (e.children) e.children.map(i => {
let c_query = uni.createSelectorQuery()
c_query.select(`#case-${i.id}`).boundingClientRect((data) => {
if (data) {
topList.push(data.top - itemHeight + contentScrollNumber)
i.top = data.top - itemHeight + contentScrollNumber
itemList.push(i)
}
}).exec()
})
})
this.topList = topList
this.itemList = itemList
this.detailInfo = detailInfo
if (!this.currentId) this.currentId = detailInfo[0].id
this.$forceUpdate()
},
isLast (index, ind, children) {
let result = false
if (ind > - 1 && children) result = ind == children.length - 1 && index == this.detailInfo.length - 1
else result = (index == this.detailInfo.length - 1 && !this.detailInfo[index].children.length)
return result ? 'last' : ''
},
isActive (item) {
return item.id == this.currentId ? 'active' : ''
},
menuScroll (e) {
this.menuScrollTop = e.detail.scrollTop
},
contentScroll (e) {
this.contentScrollNumber = e.detail.scrollTop
let { topList, itemList } = this,
targetNum = this.findClosestNotGreaterThan(e.detail.scrollTop, topList)
let item = itemList.find(i => i.top == targetNum)
if (item) this.currentId = item.id
},
findClosestNotGreaterThan (target, arr) {
let closest = arr[0]
for (let i = 0; i < arr.length; i++) {
if (arr[i] <= target) closest = arr[i]
else break
}
return closest
},
menuClick (item) {
this.currentId = item.id
this.contentId = item.id
},
onPlay (item) {
Object.keys(this.$refs).map(key => {
if (`audio-${item.id}` != key) this.$refs[key][0]?.stop()
})
let innerAudioContext = this.$refs[`audio-${item.id}`][0]?.innerAudioContext[`key${item.id}`]
if (innerAudioContext) innerAudioContext.play()
},
imgLoad () {
this.imgLength -= 1
if (this.imgLength == 0) uni.hideLoading()
this.initScrollListTop()
}
}
}
</script>
<style scoped lang="scss">
.case-box {
position: relative;
width: 100vw;
height: 100vh;
background-image: linear-gradient(0deg, #eef3ff 0%, #f3f6ff 100%);
box-sizing: border-box;
padding-top: 176rpx;
.nav-bar {
position: fixed;
width: 100%;
height: 96rpx;
left: 0;
top: 48rpx;
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;
}
}
.case-content {
height: calc(100vh - 176rpx);
position: relative;
.left-menu {
position: absolute;
top: 0;
left: 64rpx;
width: 480rpx;
height: 1296rpx;
border-radius: 16rpx;
background-color: #fff;
background-image: url('@/assets/images/common/left-menu.webp');
background-size: 100%;
.title {
padding: 48rpx 48rpx 32rpx;
font-weight: 500;
font-size: 36rpx;
color: #333333;
line-height: 56rpx;
}
.scroll {
height: calc(100% - 184rpx);
padding-left: 48rpx;
&-content {
position: relative;
&::after {
content: '';
position: absolute;
left: 0;
top: 0;
width: 6rpx;
height: 100%;
background: #0000001a;
}
.block {
position: absolute;
top: 0;
left: 0;
width: 6rpx;
height: 40rpx;
background-image: linear-gradient(173deg, #75bcff 6%, #2c66f7 100%);
box-shadow: 0 8rpx 16rpx 0 #2c66f759;
transition: all 0.15s;
}
}
.item {
padding: 0 20rpx 0 30rpx;
.name {
font-size: 30rpx;
color: #333333b3;
line-height: 40rpx;
padding-bottom: 48rpx;
.text {
display: flex;
align-items: center;
position: relative;
}
.icon {
width: 6rpx;
height: 6rpx;
border-radius: 100%;
background: #33333399;
margin: 0 12rpx;
flex-shrink: 0;
}
}
.active {
font-weight: 500;
color: #333;
position: relative;
.icon {
background: #333;
}
}
&:first-child {
.name {
&:first-child {
padding-top: 16rpx;
}
}
}
.last {
padding-bottom: 16rpx;
}
}
}
}
.right-content {
width: calc(100% - 624rpx);
height: 100%;
margin-left: 624rpx;
/deep/.uni-scroll-view-content {
display: flex;
flex-direction: column;
}
.detail-item {
padding-right: 64rpx;
.item-title {
font-weight: 500;
font-size: 40rpx;
color: #333333;
line-height: 56rpx;
margin-bottom: 24rpx;
}
.sub-item-title {
font-size: 32rpx;
line-height: 48rpx;
&::before {
content: '';
width: 8rpx;
height: 8rpx;
border-radius: 100%;
background: #333;
margin: 0 16rpx;
flex-shrink: 0;
}
}
.item-content {
color: #333333e6;
font-size: 28rpx;
line-height: 44rpx;
margin-bottom: 24rpx;
word-wrap: break-word;
}
.picture {
width: 1360rpx;
margin: 0 auto 24rpx;
min-height: 100rpx;
}
.item-img {
display: block;
width: 100%;
}
}
.content-end {
width: 100%;
text-align: center;
color: #999;
text-align: center;
padding: 24rpx 64rpx 24rpx 0;
font-size: 24rpx;
margin-top: auto;
}
}
}
}
</style>
<template>
<view class="audio-box flex">
<view
:class="['sprite-icon',`${paused? 'icon-play' : 'icon-pause'}`]"
@click="play"
></view>
<slider
@change="sliderChange"
backgroundColor="#D8D8D8"
block-color="#2C66F7"
block-size="5"
class="progress-box"
:max="innerAudioContext[audioKey].duration||10"
:value="innerAudioContext[audioKey].currentTime||0"
/>
<view class="duration">{{currentTime}}/{{duration}}</view>
</view>
</template>
<script type='text/ecmascript-6'>
export default {
name: 'AudioComponent',
props: {
src: String,
auto: Boolean,
audioKey: String
},
data () {
return {
innerAudioContext: {},
currentTime: '00:00',
duration: '00:00',
paused: true,
progress: ''
}
},
watch: {
src: {
immediate: true,
handler (newval) {
if (newval) this.init(newval)
}
},
},
computed: {
},
destroyed () {
this.innerAudioContext[this.audioKey].destroy()
},
mounted () {
},
methods: {
init (src) {
const innerAudioContext = uni.createInnerAudioContext(),
{ audioKey } = this
innerAudioContext.src = src
innerAudioContext.sessionCategory = 'soloAmbient'
innerAudioContext.onCanplay(this.onCanplay)
innerAudioContext.onPlay(() => this.paused = false)
innerAudioContext.onPause(() => this.paused = true)
innerAudioContext.onTimeUpdate(this.onTimeUpdate)
this.innerAudioContext[audioKey] = innerAudioContext
},
onCanplay () {
this.duration = this.formatTime(this.innerAudioContext[this.audioKey].duration)
},
onTimeUpdate () {
const {
duration,
currentTime
} = this.innerAudioContext[this.audioKey],
mergedOffset = Math.ceil(currentTime)
this.progress = mergedOffset / duration * 100
this.currentTime = this.formatTime(currentTime)
},
formatTime (num) {
num = Math.floor(num);
let minutes = Math.floor(num / 60) || '0',
seconds = num % 60 || '0'
seconds = seconds < 10 ? `0${seconds}` : seconds
return `${minutes}:${seconds}`
},
play () {
if (this.paused) {
if (this.auto) this.innerAudioContext[this.audioKey].play()
this.$emit('onPlay')
}
else this.innerAudioContext[this.audioKey].pause()
},
stop () {
this.currentTime = '00:00'
this.innerAudioContext[this.audioKey].stop()
},
seek (e) {
let query = uni.createSelectorQuery()
query.select('.progress-box').boundingClientRect(data => {
const seconds = (e.changedTouches[0].clientX - data.left) / data.width * this.innerAudioContext[this.audioKey].duration
this.innerAudioContext[this.audioKey].seek(seconds)
}).exec()
},
sliderChange (e) {
this.innerAudioContext[this.audioKey].seek(e.detail.value)
}
}
}
</script>
<style scoped lang='scss'>
.audio-box {
width: 1120rpx;
height: 80rpx;
background-image: url('@/assets/images/common/audio-bg.webp');
background-size: 100%;
margin-bottom: 24rpx;
box-sizing: border-box;
padding: 0 32rpx;
font-size: 28rpx;
color: #333333;
.sprite-icon {
margin-right: 16rpx;
}
.progress-box {
width: 796rpx;
margin: 0 !important;
/deep/.uni-slider-track {
background-image: linear-gradient(90deg, #2c66f7 0%, #75bcff 100%);
}
/deep/.uni-slider-thumb {
&::after {
width: 14rpx;
height: 14rpx;
border: 2rpx solid #f4f4f4;
content: '';
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
border-radius: 100%;
box-sizing: border-box;
}
}
}
.duration {
margin-left: auto;
flex-shrink: 0;
}
}
</style>
\ No newline at end of file \ No newline at end of file
<template>
<MessageBox
ref="packageVisible"
position="bottom"
:isFooter="false"
title="请选择适用套餐"
:maxHeight="1000"
@close="$emit('close')"
>
<view class="search-box">
<view class="search-input">
<template v-if="!edit">
<view
:class="['input', `${searchValue ? '' : 'placeholder'}`]"
@click="openInput"
>
<template v-if="searchValue">
{{searchValue}}
</template>
<template v-else>
请输入关键字搜索
<view class="sprite-icon icon-search"></view>
</template>
</view>
</template>
<template v-else>
<input
type="text"
class="input"
v-model="searchValue"
:focus='inputFocus'
confirm-type="search"
@confirm="search"
/>
</template>
</view>
<template v-if="searchValue">
<view
class="clear"
@click="clear"
>
<uni-icons
type="closeempty"
:size="16"
color="#1A1A1A"
></uni-icons>
</view>
</template>
</view>
<view class="select-box">
<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'>
export default {
name: 'Employee',
props: {
},
data () {
return {
searchValue: '',
edit: false,
}
},
watch: {
watchStatus: {
immediate: true,
handler (newval) {
this.close()
}
},
},
computed: {
watchStatus () {
return this.$store.state.user.historyStatus
},
salesUuid () {
return this.$store.state.user.customerInfo.salesUuid
},
employeeList () {
return this.$store.state.user.employeeList
}
},
mounted () {
},
methods: {
search () {
this.edit = false
console.log(this.searchValue)
},
openInput () {
this.edit = true
this.inputFocus = true
},
open () {
this.$refs.packageVisible.open()
const userInfo = uni.$storage.get("userInfo"),
{ shopMerchantId } = userInfo;
/**获取销售人员 */
uni.$api.commonApi
.getEmployeeList({
merchantId: shopMerchantId,
})
.then((res) => {
this.$store.dispatch("setEmployeeList", res);
uni.$storage.set("employeeList", res || []);
})
},
handleSelect (item) {
this.close();
this.$emit('select', item)
},
close () {
this.$emit('close')
this.$refs?.packageVisible?.close()
},
clear () {
this.searchValue = ''
this.search()
}
}
}
</script>
<style scoped lang='scss'>
.search-box {
margin: 32rpx 0;
position: relative;
z-index: 2;
.search-input {
width: 100%;
height: 80rpx;
background: #ffffff;
border: 3rpx solid #A8C1FF;;
border-radius: 16rpx;
box-sizing: border-box;
color: #333;
padding: 0 24rpx;
font-size: 28rpx;
position: relative;
.input {
display: flex;
align-items: center;
height: 100%;
width: 100%;
justify-content: center;
text-align: center;
font-size: 28rpx;
}
.icon-search {
margin-left: 16rpx;
}
.placeholder {
font-size: 28rpx;
color: #999999;
}
}
.clear {
position: absolute;
top: 50%;
right: 0;
transform: translateY(-50%);
padding: 0 32rpx;
height: 100%;
display: flex;
align-items: center;
}
}
.select-box {
margin: 32rpx 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>
\ No newline at end of file \ No newline at end of file
<template>
<view class="detail-box">
<view class="nav-bar">
<view
class="back"
@click="back"
>
<uni-icons
type="left"
:size="20"
color="#000"
></uni-icons>
</view>
车主详情
</view>
<view class="customer-box box">
<view class="title">车主信息</view>
<view class="customer-info">
<template v-for="(item, index) in customerForm">
<view
class="item flex"
:key="index"
>
<view class="label">{{ item.label }}</view>
<view class="value text-hide">{{ customerInfo[item.key] }}</view>
</view>
</template>
</view>
</view>
<view class="case-box box">
<view class="title flex">推荐套餐</view>
<scroll-view
class="case-scroll-box"
scroll-y
@scrolltolower="pageonReachBottom"
>
<view class="case-list">
<template v-if="flag">
<template v-if="list.length && list[0] && list[0].length">
<template v-for="i in list">
<template v-for="item in i">
<view
class="case-item"
:key="item.id"
@click="jumpDetail(item)"
>
<image
class="img"
:src="item.cover"
></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>
</template>
</template>
<template v-else>
<view class="nothing flex">
<image
class="icon"
src="@/assets/images/home/nothing.webp"
/>
暂无推荐套餐
</view>
</template>
</template>
<template v-if="nothing">
<view class="end-text">到底了!</view>
</template>
</view>
</scroll-view>
</view>
<!-- <package-popup
ref="packageVisible"
@select="handleSearch"
@close="arrowPopup = false"
></package-popup> -->
</view>
</template>
<script type="text/ecmascript-6">
import dayjs from 'dayjs'
import PackagePopup from './components/PackagePopup.vue'
export default {
components: {
PackagePopup
},
data () {
return {
customerForm: [{
label: '车主姓名',
key: 'ownerName',
},
{
label: '车主电话',
key: 'ownerPhone',
},
{
label: '品牌车型',
key: 'brandModel',
},
{
label: '接待场景',
key: 'receptionSceneName',
},
{
label: '到店日期',
key: 'arrivalDate',
},
{
label: '客户标签',
key: 'customerTagName',
}],
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'
},
],
customerInfo: {},
arrowPopup: false,
nothing: true,
list: [],
currentPage: 1,
total: 0,
flag: false,
nothing: false,
pageSize: 8,
}
},
onLoad (options) {
if (options.id) {
this.findVisitsInfo(options.id)
this.visitsId = options.id
}
else {
uni.showToast({
title: '客户id为空',
icon: 'none'
})
setTimeout(() => {
uni.navigateBack({
delta: 1,
animationType: 'pop-out',
animationDuration: 200
})
}, 1e3)
}
},
mounted () {
},
methods: {
async findVisitsInfo (id) {
const customerInfo = await uni.$api.customerApi.findVisitsInfo({
id
})
customerInfo.customerTagName = customerInfo.customerTagName.replace(/,/g, '|')
customerInfo.arrivalDate = dayjs(customerInfo.arrivalDate).format("YYYY.MM.DD")
this.customerInfo = customerInfo
this.getMaterialResponsePage()
},
showPopup () {
this.arrowPopup = true
this.$refs.packageVisible.open()
},
async getMaterialResponsePage () {
try {
uni.showLoading({
mask: true
})
let { shopMerchantId, sceneType } = uni.$storage.get("userInfo"),
{ customerInfo: { receptionScene, customerTag }, pageSize, currentPage } = this,
customerLabelList = []
customerTag.split(',')?.map(e => customerLabelList.push({
labelId: e
}))
let params = {
currentPage,
pageSize,
receptionScene,
status: 1,
receptionSceneInfoList: [
{ receptionSceneId: receptionScene }
],
customerLabelList,
merchantId: shopMerchantId,
showChannel: 2,
scene: sceneType
}
console.log(params)
const { list, total } = await uni.$api.customerApi.getMaterialResponsePage(params)
uni.hideLoading()
list.map(e => {
let tags = [],
goods = []
e.customerLabelInfoList?.map(item => {
tags.push(item.labelName)
})
e.productPackageInfoList?.map(item => {
goods.push(item.upgradeGoodsName)
})
e.tags = tags.join('、')
e.goods = goods.join('、')
if (!e.cover) e.cover = 'https://img02.glsx.com.cn/weapp/resource/app-tape/common/default-cover.webp'
})
this.list[currentPage - 1] = list
this.flag = true
this.total = total
this.$forceUpdate()
} catch (error) {
uni.hideLoading()
console.log(error)
this.flag = true
}
},
back () {
uni.navigateBack({
delta: 1,
animationType: 'pop-out',
animationDuration: 100
})
},
jumpDetail (item) {
// 类型:0-图片;1-视频;2-pdf;3-富文本
let url = `/pages/common/caseDetail?id=${item.id}&visitsId=${this.visitsId}`
if (item.type != 3) {
let fileUrl = item?.detailInfos[0]?.image
if (item.type == 2) {
// uni.downloadFile({
// url: fileUrl,
// success (res) {
// var filePath = res.tempFilePath;
// }
// })
// return
url = `/pages/common/webview?fileUrl=${fileUrl}&title=${item.title}`
}
if (item.type == 1 || item.type == 0) url = `/pages/boutique/preview?tabName=${item.title}&sourceType=${item.type == 1 ? 2 : 1}&detailUrl=${fileUrl}&id=${item.id}&visitsId=${this.visitsId}`
}
uni.navigateTo({
url: `${url}`
})
},
pageonReachBottom () {
let { currentPage, total, nothing, pageSize } = this
if (!nothing) nothing = 'nothing'
if (Math.ceil(total / pageSize) > currentPage) {
this.currentPage += 1
this.getMaterialResponsePage()
} else this.nothing = true
},
}
}
</script>
<style scoped lang="scss">
.detail-box {
position: relative;
width: 100vw;
height: 100vh;
background-image: url('@/assets/images/common/page-bg.webp');
background-size: 100%;
box-sizing: border-box;
padding-top: 176rpx;
.nav-bar {
position: fixed;
width: 100%;
height: 96rpx;
left: 0;
top: 48rpx;
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;
}
}
.box {
width: 2218rpx;
background: #ffffff59;
box-shadow: inset 0 0 16rpx 0 #ffffff;
border-radius: 48rpx;
backdrop-filter: blur(8rpx);
margin: 0 auto;
box-sizing: border-box;
.title {
font-weight: 500;
font-size: 32rpx;
color: #333333;
line-height: 44rpx;
padding: 32rpx 48rpx 28rpx;
.search-btn {
margin-left: auto;
position: relative;
&::after {
content: '';
display: block;
border: 16rpx solid transparent;
border-left-width: 12rpx;
border-right-width: 12rpx;
border-top-color: #000000e6;
position: relative;
top: 8rpx;
margin-left: 20rpx;
transition: all 0.15s;
}
}
.arrow-popup {
&::after {
transform: rotate(180deg);
top: -8rpx;
}
}
}
}
.customer-box {
height: 292rpx;
margin-bottom: 32rpx;
.customer-info {
display: flex;
flex-wrap: wrap;
padding: 0 48rpx;
.item {
width: 50%;
flex-shrink: 0;
font-size: 28rpx;
margin-bottom: 12rpx;
line-height: 44rpx;
.label {
color: #292d3399;
width: 160rpx;
flex-shrink: 0;
}
.value {
color: #292d33;
}
}
}
}
.case-box {
height: 1004rpx;
padding: 0 !important;
.case-scroll-box {
height: calc(100% - 104rpx);
}
.case-list {
display: flex;
flex-wrap: wrap;
gap: 32rpx 46rpx;
padding: 0 48rpx;
.case-item {
width: 496rpx;
height: 588rpx;
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: 2rpx;
}
.case-label {
width: 120rpx;
flex-shrink: 0;
}
}
}
}
}
.nothing {
width: 100%;
flex-direction: column;
margin-top: 112rpx;
font-size: 28rpx;
color: #999999;
.icon {
width: 676rpx;
height: 284rpx;
margin-bottom: 24rpx;
}
}
.end-text {
width: 100%;
text-align: center;
color: #999;
text-align: center;
padding: 50rpx 0;
font-size: 24rpx;
}
</style>
...@@ -3,23 +3,27 @@ ...@@ -3,23 +3,27 @@
</template> </template>
<script type='text/ecmascript-6'> <script type='text/ecmascript-6'>
export default { export default {
name: '', name: '',
data () { data () {
return { return {
url:'' url: '',
viewerUrl: '/hybrid/html/web/viewer.html',
} }
}, },
onLoad(options){ onLoad (options) {
this.url = options.url if(options.fileUrl) this.url = `${this.viewerUrl}?file=${options.fileUrl}`
else this.url = options.url
if (options.title) uni.setNavigationBarTitle({
title: options.title
})
}, },
mounted () { mounted () {
}, },
methods: { methods: {
} }
} }
</script> </script>
<style scoped lang='scss'> <style scoped lang='scss'>
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -10,9 +10,8 @@ ...@@ -10,9 +10,8 @@
</view> </view>
</template> </template>
<template v-if="list.length > 0"> <template v-if="list.length > 0">
<!-- {'has-tabs':views && views.length > 1} -->
<scroll-view <scroll-view
:class="['record-box']" :class="['record-box',{'has-tabs':views && views.length > 1} ]"
scroll-y scroll-y
:scroll-top="scrollTop" :scroll-top="scrollTop"
@scrolltolower="pageonReachBottom" @scrolltolower="pageonReachBottom"
...@@ -121,30 +120,11 @@ export default { ...@@ -121,30 +120,11 @@ export default {
}, 100); }, 100);
} }
}, },
watchCarModel: {
immediate: true,
handler (newval) {
if (this.madiaId == 4) {
// this.list = uni.$storage.get("historyList")
let index = {
'问界M5': 'M5',
'问界M7': 'M7',
'问界M9': 'M9'
}[newval]
this.list = []
this.pageNum = 1
return this.goodsName = index || null
}
}
}
}, },
computed: { computed: {
watchStatus () { watchStatus () {
return this.$store.state.user.historyStatus return this.$store.state.user.historyStatus
}, },
watchCarModel () {
return this.$store.state.user.customerInfo.carModel
}
}, },
mounted () { mounted () {
if (this.show) this.init() if (this.show) this.init()
...@@ -169,19 +149,7 @@ export default { ...@@ -169,19 +149,7 @@ export default {
goodsName, goodsName,
orderStatus: 3, orderStatus: 3,
}) })
if (pageNum == 1) { if (!goodsName && this.pageNum == 1 && this.list.length) uni.setStorageSync(`${shopMerchantId}-historyList`, this.list)
uni.setStorageSync(`${shopMerchantId}-historyList`, this.list)
if (goodsName && this.list.length == 0) {
await this.getList('getQuotationList', {
merchantId: shopMerchantId,
pageNum,
pageSize,
goodsName: null,
orderStatus: 3,
})
}
}
// if (!goodsName && this.pageNum == 1 && this.list.length) uni.setStorageSync(`${shopMerchantId}-historyList`, this.list)
} catch (error) { } catch (error) {
if (!goodsName && this.pageNum == 1) this.list = uni.getStorageSync(`${this.shopMerchantId}-historyList`) if (!goodsName && this.pageNum == 1) this.list = uni.getStorageSync(`${this.shopMerchantId}-historyList`)
} }
...@@ -303,10 +271,10 @@ export default { ...@@ -303,10 +271,10 @@ export default {
.value { .value {
font-size: 24rpx; font-size: 24rpx;
color: #666666; color: #666666;
// margin-left: auto; margin-left: auto;
} }
.price { .price {
// margin-left: auto; margin-left: auto;
display: flex; display: flex;
align-items: baseline; align-items: baseline;
font-weight: 500; font-weight: 500;
...@@ -318,15 +286,7 @@ export default { ...@@ -318,15 +286,7 @@ export default {
} }
} }
.image-box { .image-box {
display: block; display: none;
position: absolute;
right: 0rpx;
top: 0rpx;
width: 252rpx;
height: 364rpx;
border-radius: 0 32rpx 32rpx 0;
z-index: -1;
// display: none;
} }
.gradient-overlay { .gradient-overlay {
z-index: -1; z-index: -1;
......
<template> <template>
<view class="layout"> <view class="layout">
<!-- <template v-if="views.length>1"> <template v-if="views.length>1">
<view class="tabs-box"> <view class="tabs-box">
<tabs <tabs
:list="views" :list="views"
@tabclick="changeTab" @tabclick="changeTab"
></tabs> ></tabs>
</view> </view>
</template> --> </template>
<wnCanvas <wnCanvas
:drawStatus="penSwitch" :drawStatus="penSwitch"
:canvasId="`c-${madiaId}`" :canvasId="`c-${madiaId}`"
...@@ -47,24 +47,8 @@ export default { ...@@ -47,24 +47,8 @@ export default {
} }
}, },
watch: { watch: {
watchCarModel: {
immediate: true,
handler (newval) {
if (this.madiaId == 3) {
let index = {
'问界M5': 0,
'问界M7': 1,
'问界M9': 2
}[newval]
return this.viewIndex = index || 0
}
}
}
}, },
computed: { computed: {
watchCarModel () {
return this.$store.state.user.customerInfo.carModel
}
}, },
mounted () { mounted () {
}, },
......
<template> <template>
<view :class="['layout',`${isByd?'byd-layout':''}`]"> <view :class="['layout',`${isByd?'byd-layout':'aito-layout'}`]">
<wnCanvas <wnCanvas
saveImageType="3" saveImageType="3"
canvasId="c-1" canvasId="c-1"
...@@ -8,13 +8,6 @@ ...@@ -8,13 +8,6 @@
@scale="$emit('scale',$event)" @scale="$emit('scale',$event)"
> >
<template slot="customContent"> <template slot="customContent">
<view class="carType">
<image
:src="carImg"
class="img slide-bl"
:key="imgKey"
/>
</view>
<view class="title"> <view class="title">
<view :class="['sprite-icon',`${isByd?'icon-byd':'icon-aito'}`]"></view> <view :class="['sprite-icon',`${isByd?'icon-byd':'icon-aito'}`]"></view>
<view class="text">{{title}}</view> <view class="text">{{title}}</view>
...@@ -42,6 +35,12 @@ ...@@ -42,6 +35,12 @@
@focus="focusIndex = index" @focus="focusIndex = index"
@blur="resetFocusIndex" @blur="resetFocusIndex"
/> />
<customer-autocomplete
:showType="i.inputType"
:searchValue="customerInfo[i.key]"
:show="focusIndex == index"
@choose="chooseCustomer"
/>
</template> </template>
<template v-else> <template v-else>
<view <view
...@@ -90,15 +89,15 @@ ...@@ -90,15 +89,15 @@
<script type="text/ecmascript-6"> <script type="text/ecmascript-6">
import CarBrands from '@/components/CarBrands.vue' import CarBrands from '@/components/CarBrands.vue'
import CustomerAutocomplete from '@/components/CustomerAutocomplete.vue'
export default { export default {
components: { CarBrands }, components: { CarBrands, CustomerAutocomplete },
props: { props: {
penSwitch: Boolean, penSwitch: Boolean,
show: Boolean, show: Boolean,
title: String, title: String,
views: Array, views: Array,
isByd: Boolean, isByd: Boolean,
carTypeList: Array
}, },
name: 'Reception', name: 'Reception',
data () { data () {
...@@ -127,7 +126,6 @@ export default { ...@@ -127,7 +126,6 @@ export default {
], ],
customerInfo: {}, customerInfo: {},
focusIndex: -1, focusIndex: -1,
imgKey: Date.now(),
} }
}, },
watch: { watch: {
...@@ -148,14 +146,6 @@ export default { ...@@ -148,14 +146,6 @@ export default {
watchStatus () { watchStatus () {
return this.$store.state.user.historyStatus return this.$store.state.user.historyStatus
}, },
carImg () {
let name = {
'问界M5': 0,
'问界M7': 1,
'问界M9': 2
}[this.customerInfo.carModel]
return this.carTypeList[name || 0].url
}
}, },
methods: { methods: {
inputCustomer () { inputCustomer () {
...@@ -170,7 +160,6 @@ export default { ...@@ -170,7 +160,6 @@ export default {
this.$refs.carBrandListVisible.close() this.$refs.carBrandListVisible.close()
this.customerInfo.carModel = item.name this.customerInfo.carModel = item.name
} }
this.imgKey = Date.now()
this.resetFocusIndex() this.resetFocusIndex()
this.$store.dispatch('setCustomerInfo', this.customerInfo) this.$store.dispatch('setCustomerInfo', this.customerInfo)
}, },
...@@ -185,6 +174,15 @@ export default { ...@@ -185,6 +174,15 @@ export default {
resetFocusIndex () { resetFocusIndex () {
this.focusIndex = -1 this.focusIndex = -1
}, },
chooseCustomer (e) {
this.customerInfo = {
...this.customerInfo,
phoneNumber: e.ownerPhone,
customerName: e.ownerName,
carModel: e.brandModel
}
this.inputCustomer()
}
} }
} }
</script> </script>
...@@ -196,19 +194,6 @@ export default { ...@@ -196,19 +194,6 @@ export default {
height: 100vh; height: 100vh;
background-image: url('@/assets/images/media/reception-bg.webp'); background-image: url('@/assets/images/media/reception-bg.webp');
background-size: 100%; background-size: 100%;
.carType {
width: 864rpx;
height: 707rpx;
position: absolute;
right: 0;
top: 0;
z-index: 2;
.img {
width: 100%;
height: 100%;
vertical-align: top;
}
}
.title { .title {
padding: 160rpx 0 32rpx 110rpx; padding: 160rpx 0 32rpx 110rpx;
.sprite-icon { .sprite-icon {
...@@ -225,6 +210,8 @@ export default { ...@@ -225,6 +210,8 @@ export default {
.form-box { .form-box {
height: 80rpx; height: 80rpx;
padding: 0 110rpx; padding: 0 110rpx;
position: relative;
z-index: 1;
.form { .form {
display: flex; display: flex;
gap: 0 28rpx; gap: 0 28rpx;
...@@ -306,50 +293,6 @@ export default { ...@@ -306,50 +293,6 @@ export default {
} }
} }
} }
// 车动画
/* ----------------------------------------------
* Generated by Animista on 2024-6-26 14:45:52
* Licensed under FreeBSD License.
* See http://animista.net/license for more info.
* w: http://animista.net, t: @cssanimista
* ---------------------------------------------- */
/**
* ----------------------------------------
* animation slide-bl
* ----------------------------------------
*/
@-webkit-keyframes slide-bl {
0% {
-webkit-transform: translateY(-100%) translateX(-100%);
transform: translateY(-100%) translateX(-100%);
opacity: 0.2;
filter: blur(0.5px);
}
100% {
-webkit-transform: translateY(0) translateX(0);
transform: translateY(0) translateX(0);
opacity: 1;
filter: blur(0);
}
}
@keyframes slide-bl {
0% {
-webkit-transform: translateY(-100%) translateX(100%) scale(0.5);
transform: translateY(-100%) translateX(100%) scale(0.5);
opacity: 0.2;
filter: blur(0.5px);
}
100% {
-webkit-transform: translateY(0) translateX(0);
transform: translateY(0) translateX(0);
opacity: 1;
filter: blur(0);
}
}
.slide-bl {
-webkit-animation: slide-bl 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
animation: slide-bl 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.byd-layout { .byd-layout {
background-image: url('@/assets/images/media/byd-reception-bg.webp') !important; background-image: url('@/assets/images/media/byd-reception-bg.webp') !important;
.content .views-box { .content .views-box {
...@@ -368,7 +311,7 @@ export default { ...@@ -368,7 +311,7 @@ export default {
.content { .content {
.form-box { .form-box {
position: fixed; position: fixed;
right: 72rpx; right: 184rpx;
top: 188rpx; top: 188rpx;
padding: 0; padding: 0;
} }
......
...@@ -206,7 +206,7 @@ export default { ...@@ -206,7 +206,7 @@ export default {
top: 50%; top: 50%;
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
font-weight: 500; font-weight: 700;
font-size: 32rpx; font-size: 32rpx;
color: #1a1a1a; color: #1a1a1a;
} }
......
...@@ -43,7 +43,6 @@ ...@@ -43,7 +43,6 @@
@onProductModel="productModelStatus = $event" @onProductModel="productModelStatus = $event"
:isPreview="type == 'preview'" :isPreview="type == 'preview'"
:isByd="isByd" :isByd="isByd"
:carTypeList="item.carTypeList || []"
/> />
</view> </view>
</template> </template>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
// import { setToken, getToken, removeToken } from '@/utils/token';; // import { setToken, getToken, removeToken } from '@/utils/token';;
export default { export default {
state() { state () {
return { return {
customerInfo: { customerInfo: {
customerName: "", customerName: "",
...@@ -17,24 +17,25 @@ export default { ...@@ -17,24 +17,25 @@ export default {
phoneNumber: "", phoneNumber: "",
salesUuid: "", salesUuid: "",
staffName: "", staffName: "",
newCarFare:'' newCarFare: ''
}, },
historyStatus: Date.now(), historyStatus: Date.now(),
carBrands: [], carBrands: [],
employeeList: [], employeeList: [],
paymentType: [], paymentType: [],
haveCustomerAccess: false,
}; };
}, },
mutations: { mutations: {
getCustomerInfo(state) { getCustomerInfo (state) {
return state.customerInfo; return state.customerInfo;
}, },
setCustomerInfo(state, data) { setCustomerInfo (state, data) {
// state.customerInfo = data; // state.customerInfo = data;
uni.$storage.set("customerInfo", JSON.stringify(data)); uni.$storage.set("customerInfo", JSON.stringify(data));
state.customerInfo = JSON.parse(uni.$storage.get("customerInfo") || "{}"); state.customerInfo = JSON.parse(uni.$storage.get("customerInfo") || "{}");
}, },
clearCustomerInfo(state) { clearCustomerInfo (state) {
const info = { const info = {
customerName: "", customerName: "",
carBrand: "", carBrand: "",
...@@ -42,7 +43,7 @@ export default { ...@@ -42,7 +43,7 @@ export default {
phoneNumber: "", phoneNumber: "",
salesUuid: "", salesUuid: "",
staffName: "", staffName: "",
newCarFare:'' newCarFare: ''
}; };
uni.$storage.set("customerInfo", JSON.stringify(info)); uni.$storage.set("customerInfo", JSON.stringify(info));
state.customerInfo = JSON.parse(uni.$storage.get("customerInfo") || "{}"); state.customerInfo = JSON.parse(uni.$storage.get("customerInfo") || "{}");
...@@ -50,25 +51,25 @@ export default { ...@@ -50,25 +51,25 @@ export default {
}, },
actions: { actions: {
// 获取用户详情 // 获取用户详情
getCustomerInfo({ state }) { getCustomerInfo ({ state }) {
return state.customerInfo; return state.customerInfo;
}, },
setCustomerInfo({ commit }, value) { setCustomerInfo ({ commit }, value) {
commit("setCustomerInfo", value); commit("setCustomerInfo", value);
}, },
clearCustomerInfo({ commit }) { clearCustomerInfo ({ commit }) {
commit("clearCustomerInfo"); commit("clearCustomerInfo");
}, },
clearHistory({ state }) { clearHistory ({ state }) {
state.historyStatus = Date.now(); state.historyStatus = Date.now();
}, },
setPaymentType({ state }, value) { setPaymentType ({ state }, value) {
state.paymentType = value; state.paymentType = value;
}, },
setCarBrandsList({ state }, value) { setCarBrandsList ({ state }, value) {
state.carBrands = value; state.carBrands = value;
}, },
setEmployeeList({ state }, value) { setEmployeeList ({ state }, value) {
state.employeeList = value; state.employeeList = value;
}, },
}, },
......
...@@ -21,5 +21,6 @@ export const STORAGE_OBJECTkEY = { ...@@ -21,5 +21,6 @@ export const STORAGE_OBJECTkEY = {
recordSuccessList: "recordSuccessList", recordSuccessList: "recordSuccessList",
historyList: "historyList", historyList: "historyList",
storageVersion: "storageVersion", storageVersion: "storageVersion",
byd_mock_data:'byd_mock_data' byd_mock_data:'byd_mock_data',
boutique_mock_data:'boutique_mock_data'
}; };
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!