Commit a711d57e authored by anxixi's avatar anxixi

Merge remote-tracking branch 'origin/master'

parents 1be54288 7610a392
...@@ -75,12 +75,13 @@ var that = this,imgData=""; ...@@ -75,12 +75,13 @@ var that = this,imgData="";
ctx.lineTo(x, y + l) ctx.lineTo(x, y + l)
ctx.arc(x + r - 2, y + l / 2, r + 0.4, 2.76 * PI, 1.24 * PI, true) ctx.arc(x + r - 2, y + l / 2, r + 0.4, 2.76 * PI, 1.24 * PI, true)
ctx.lineTo(x, y) ctx.lineTo(x, y)
ctx.lineWidth = 2 ctx.lineWidth = 2;
ctx.fillStyle = 'rgba(255, 255, 255, 0.7)' ctx.fillStyle = 'rgba(255, 255, 255,0.7)'
ctx.strokeStyle = 'rgba(255, 255, 255, 0.7)' ctx.strokeStyle = 'rgba(255, 255, 255,0.7)'
ctx.stroke() ctx.stroke()
ctx[operation]() ctx[operation]()
ctx.globalCompositeOperation = 'overlay' ctx.globalCompositeOperation = 'xor'
} }
function sum (x, y) { function sum (x, y) {
...@@ -171,7 +172,6 @@ var that = this,imgData=""; ...@@ -171,7 +172,6 @@ var that = this,imgData="";
clean () { clean () {
var issafariBrowser = /Safari/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent); var issafariBrowser = /Safari/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent);
console.log(issafariBrowser)
if(publicFunc.isWhichBrowe().ios||issafariBrowser){ if(publicFunc.isWhichBrowe().ios||issafariBrowser){
// location.reload() // location.reload()
}else{ }else{
......
...@@ -11,11 +11,20 @@ const i18n = new VueI18n({ ...@@ -11,11 +11,20 @@ const i18n = new VueI18n({
//this.$i18n.locale // 通过切换locale的值来实现语言切换 //this.$i18n.locale // 通过切换locale的值来实现语言切换
messages: { messages: {
'zh-CN': require('../common/lang/zh'), // 中文语言包 'zh-CN': require('../common/lang/zh'), // 中文语言包
'en': window.sessionStorage.getItem("language")=='zh-CN'?require('../common/lang/zh'):require('../common/lang/en') 'en': window.sessionStorage.getItem("language")=='en'?require('../common/lang/en'):require('../common/lang/zh')
} }
}) })
import { Loading,MessageBox } from 'element-ui'; import { Loading,MessageBox } from 'element-ui';
let base = "",isMobile = publicFunc.isWhichBrowe().mobile; let base = "",isMobile = publicFunc.isWhichBrowe().mobile;
var type = navigator.appName,language;
if(!window.sessionStorage.getItem("language")){
if(type=="Netscape"){
language =navigator.language;
}else{
language = navigator.userLanguage;
}
window.sessionStorage.setItem("language",language!='zh'&&language!='zh-CN'?'en':'zh-CN');
}
var lang = window.sessionStorage.getItem("language") == "en" ? "en_US" : "zh_CN"; var lang = window.sessionStorage.getItem("language") == "en" ? "en_US" : "zh_CN";
// import slider from '../components/common/errorSlider'; // import slider from '../components/common/errorSlider';
export default { export default {
......
...@@ -428,7 +428,7 @@ module.exports = { ...@@ -428,7 +428,7 @@ module.exports = {
look: " View", look: " View",
oneself: "Self-Recommendation", oneself: "Self-Recommendation",
hasGt: "Communicated", hasGt: "Communicated",
checkProgress:"查看沟通进展", checkProgress:"progress",
industry: "Industry", industry: "Industry",
webSite: "Website", webSite: "Website",
weChat: "WeChat Account", weChat: "WeChat Account",
...@@ -895,7 +895,7 @@ module.exports = { ...@@ -895,7 +895,7 @@ module.exports = {
viewed:'Views', viewed:'Views',
collected:'Followers', collected:'Followers',
Communicated:'Communicated', Communicated:'Communicated',
Communicattext:"View communication process", Communicattext:"progress",
projectbasic:'Basic Information', projectbasic:'Basic Information',
market:'Market Collaboration', market:'Market Collaboration',
overview:'Company Overview', overview:'Company Overview',
......
...@@ -6,7 +6,7 @@ const i18n = new VueI18n({ ...@@ -6,7 +6,7 @@ const i18n = new VueI18n({
//this.$i18n.locale // 通过切换locale的值来实现语言切换 //this.$i18n.locale // 通过切换locale的值来实现语言切换
messages: { messages: {
'zh-CN': require('./lang/zh'), // 中文语言包 'zh-CN': require('./lang/zh'), // 中文语言包
'en': window.sessionStorage.getItem("language")=='zh-CN'?require('./lang/zh'):require('./lang/en') 'en': window.sessionStorage.getItem("language")=='en'?require('./lang/en'):require('./lang/zh')
} }
}) })
export default { export default {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment