充值代理 - 修改对阿语区的RTL
This commit is contained in:
@@ -1 +1 @@
|
||||
<!DOCTYPE html><html><head><meta charset=UTF-8><meta name=viewport content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1"><title>molistar</title><link href=./static/css/app.f6f544e8bf98cd0f2b516a9ae4d41f07.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.a2a16081d2583a3ca402.js></script><script type=text/javascript src=./static/js/vendor.e47c3a7af2568c53d931.js></script><script type=text/javascript src=./static/js/app.a828f56731c42f7e9355.js></script></body></html>
|
||||
<!DOCTYPE html><html><head><meta charset=UTF-8><meta name=viewport content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1"><title>molistar</title><link href=./static/css/app.61eafd37528ee2adcf1c9b489c3438c3.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.395b7054712d792edcc2.js></script><script type=text/javascript src=./static/js/vendor.e47c3a7af2568c53d931.js></script><script type=text/javascript src=./static/js/app.4a6b7e8cd50410f6e33d.js></script></body></html>
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,2 @@
|
||||
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var i,u,f,s=0,l=[];s<r.length;s++)u=r[s],t[u]&&l.push(t[u][0]),t[u]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);for(n&&n(r,c,a);l.length;)l.shift()();if(a)for(s=0;s<a.length;s++)f=o(o.s=a[s]);return f};var r={},t={8:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var c=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,o.nc&&a.setAttribute("nonce",o.nc),a.src=o.p+"static/js/"+e+"."+{0:"59fba071cb391c8b29bc",1:"ec02e61e9dd55b5d4539",2:"39dc89b0a9036f2e7b3a",3:"03323cbf9a44eb718491",4:"44c137ced9418b3caaef",5:"5c89d5ac1b7c36e8da02"}[e]+".js";var i=setTimeout(u,12e4);function u(){a.onerror=a.onload=null,clearTimeout(i);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return a.onerror=a.onload=u,c.appendChild(a),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="./",o.oe=function(e){throw console.error(e),e}}([]);
|
||||
//# sourceMappingURL=manifest.395b7054712d792edcc2.js.map
|
@@ -73,4 +73,14 @@ export default {
|
||||
color: #333333;
|
||||
}
|
||||
}
|
||||
.arabic{
|
||||
.header .back{
|
||||
margin-left: 0;
|
||||
margin-right: 20px;
|
||||
img{
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
</style>
|
@@ -30,6 +30,22 @@ fastClick.prototype.focus = function (targetElement) {
|
||||
targetElement.focus();
|
||||
}
|
||||
};
|
||||
// 在应用挂载前设置RTL方向
|
||||
router.beforeEach((to, from, next) => {
|
||||
// 获取当前语言
|
||||
const language = window.sessionStorage.getItem('language') || 'en'
|
||||
|
||||
// 设置RTL方向
|
||||
if (language === 'ar') {
|
||||
document.documentElement.setAttribute('dir', 'rtl')
|
||||
document.documentElement.classList.add('arabic')
|
||||
} else {
|
||||
document.documentElement.setAttribute('dir', 'ltr')
|
||||
document.documentElement.classList.remove('arabic')
|
||||
}
|
||||
|
||||
next()
|
||||
})
|
||||
Vue.use(vant);
|
||||
new Vue({
|
||||
el: '#app',
|
||||
|
Reference in New Issue
Block a user