Authored by 郭成尧

user-center-mydetail-qrcode

... ... @@ -11,6 +11,7 @@ const api = global.yoho.API;
const singleAPI = global.yoho.SingleAPI;
const helpers = global.yoho.helpers;
const _ = require('lodash');
const crypto = global.yoho.crypto;
/**
* 个人详情数据
... ... @@ -147,6 +148,13 @@ const myDetails = (uid) => {
if (result.data) {
result.data.gender = (result.data.gender === '1' ? '男' : '女');
result.data.qrcodeLink = helpers.urlFormat('/home/user/qrcode', {
token: _.get(result, 'data.uid', null) ?
crypto.encryption('yoho9646yoho9646', _.get(result, 'data.uid', null) + '') : '',
icon: _.get(result, 'data.head_ico', ''),
uname: _.get(result, 'data.nickname', ''),
vip: _.get(result, 'data.vip_info.cur_level')
});
return result.data;
// {
... ...
... ... @@ -14,5 +14,14 @@
</a>
</span>
</li>
<li>
<span>我的二维码</span>
<span>
<a href="{{qrcodeLink}}" class="grade">
<span class="iconfont">&#xe64d;</span>
<span class="iconfont">&#xe604;</span>
</a>
</span>
</li>
</ul>
</div>
... ...
No preview for this file type
... ... @@ -2,7 +2,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
<svg xmlns="http://www.w3.org/2000/svg">
<metadata>
Created by FontForge 20120731 at Wed Jun 29 15:45:02 2016
Created by FontForge 20120731 at Tue Sep 27 17:51:00 2016
By admin
</metadata>
<defs>
... ... @@ -19,7 +19,7 @@ Created by FontForge 20120731 at Wed Jun 29 15:45:02 2016
bbox="-0.75 -128 3943 896.75"
underline-thickness="50"
underline-position="-100"
unicode-range="U+0078-E64C"
unicode-range="U+0078-E64D"
/>
<missing-glyph horiz-adv-x="374"
d="M34 0v682h272v-682h-272zM68 34h204v614h-204v-614z" />
... ... @@ -283,5 +283,8 @@ q3 -7 7.5 -12.5t8 -10t8.5 -10t7.5 -8t8 -7t7.5 -6.5t7.5 -6.5t6.5 -4.5q11 -9 16.5
d="M911 725h-242v123q0 21 -13.5 34.5t-34.5 13.5h-246q-20 0 -33.5 -13.5t-13.5 -34.5v-123h-246q-21 0 -34.5 -13.5t-13.5 -34t13.5 -34t34.5 -13.5h293h243h293q21 0 34.5 13.5t13.5 34t-13.5 34t-34.5 13.5zM423 725v72h147v-72h-147zM765 579q-21 0 -34.5 -14
t-13.5 -34v-560h-441v560q0 20 -13.5 34t-34 14t-34 -14t-13.5 -34v-611q0 -21 13.5 -34.5t34.5 -13.5h536q20 0 33.5 13.5t13.5 34.5v611q3 20 -11.5 34t-35.5 14zM447 67v389q0 20 -13.5 33.5t-34 13.5t-34 -13.5t-13.5 -33.5v-389q0 -21 13.5 -34.5t34 -13.5t34 13.5
t13.5 34.5zM645 67v389q0 20 -13.5 33.5t-34.5 13.5q-20 0 -35.5 -13.5t-15.5 -33.5v-389q0 -21 13.5 -34.5t34.5 -13.5t36 13.5t15 34.5z" />
<glyph glyph-name="uniE64D" unicode="&#xe64d;"
d="M562 224h109v-111h-109v111zM889 224h109v-111h-109v111zM562 113h109v-110h-109v110zM438 458h-438v438h438v-438zM111 569h216v216h-216v-216zM1000 458h-438v438h438v-438zM673 569h216v216h-216v-216zM438 -106h-438v438h438v-438zM111 5h216v216h-216v-216zM561 335
h222v-111h-222v111zM889 334h109v-111h-109v111zM780 113h109v-111h-109v111zM562 2h218v-110h-218v110zM889 2h109v-110h-109v110z" />
</font>
</defs></svg>
... ...
No preview for this file type
No preview for this file type