默认中文,怎么将头部状态栏的名字设置成姓在前名在后

问题咨询 · resetl · 于 5年前 发布 · 1854 次阅读

设置默认中文后,名在前姓在后,这个怎么调

共收到 1 条回复 问题提问
Fecmall#15年前 0 个赞

顶部的名字显示,是ajax异步加载显示的,js是

https://github.com/fecshop/yii2_fecshop/blob/master/app/appfront/theme/base/front/assets/js/js.js

loginInfoUrl = currentBaseUrl+"/customer/ajax";
	logoutUrl 	 = $(".logoutUrl").val();
	product_id   = $(".product_view_id").val();
	product_id	 = product_id ? product_id : null;
	jQuery.ajax({
		async:true,
		timeout: 6000,
		dataType: 'json', 
		type:'get',
		data: {
			'currentUrl':window.location.href,
			'product_id':product_id
		},
		url:loginInfoUrl,
...
...

可以看到ajax的是/customer/ajax

因此,就是:https://github.com/fecshop/yii2_fecshop/blob/master/app/appfront/modules/Customer/controllers/AjaxController.php

35行处代码

添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics