Browse Source

fix(fix #290): userinfo

userinfo
master
renxxing 5 years ago
parent
commit
80d67e157d
  1. 5
      src/controllers/constant.js
  2. 4
      src/index.html

5
src/controllers/constant.js

@ -22,9 +22,8 @@ const gridHTML = function(){
<div id="luckysheet_info_detail_update" class="luckysheet_info_detail_update"> ${locale_info.detailUpdate} </div>
<div id="luckysheet_info_detail_save" class="luckysheet_info_detail_save"> ${locale_info.wait} </div>
<div class="luckysheet_info_detail_user" style="display:${userInfo.isShow ? 'block' : 'none'};"> \${functionButton}
<span id="luckysheet_info_detail_user" style="display:${userInfo.str.length > 0 ? 'block' : 'none'};">${userInfo.str}</span>
<img src="${userInfo.url}" id="luckysheet_info_detail_user_img" style="display:${userInfo.str.length <= 0 ? 'block' : 'none'};">
<span id="luckysheet_info_detail_user" style="display:${userInfo.str.length <= 0 ? 'block' : 'none'};">${userInfo.username}</span>
<img src="${userInfo.url}" id="luckysheet_info_detail_user_img" style="display:${userInfo.str.length <= 0 ? 'inline-block' : 'none'};">
<span id="luckysheet_info_detail_user">${userInfo.str.length > 0 ? userInfo.str : userInfo.username}</span>
</div>
</div>
<div id="luckysheet-wa-editor" class="luckysheet-wa-editor toolbar"> \${menu} </div>

4
src/index.html

@ -79,7 +79,9 @@
forceCalculation:false,
userInfo: {
isShow:true,
str:'<i style="font-size:16px;color:#ff6a00;" class="fa fa-taxi" aria-hidden="true"></i> rabbit'
str:'<i style="font-size:16px;color:#ff6a00;" class="fa fa-taxi" aria-hidden="true"></i> rabbit',
url:'https://dss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1490464830,1853038030&fm=26&gp=0.jpg',
username:'lucky'
},
plugins: ['chart'],
fontList:[

Loading…
Cancel
Save