Authored by 李靖

上传图片

... ... @@ -495,9 +495,9 @@ class familyModel extends global.yoho.BaseModel {
result[0].data.qrcodeLink = helpers.urlFormat('/home/user/qrcode', {
token: _.get(result[0], 'data.uid', null) ?
crypto.encryption('yoho9646yoho9646', _.get(result, 'data.uid', null) + '') : '',
icon: _.get(result[0], 'data.head_ico', ''),
uname: _.get(result[0], 'data.nickname', ''),
vip: _.get(result[0], 'data.vip_info.cur_level')
icon: _.get(result[0], 'data.headIco', ''),
uname: _.get(result[0], 'data.nickName', ''),
vip: 0 // 从family进入二维码,暂时显示0
});
resu = camelCase(result[0].data);
}
... ...
import 'home/family-userInfo.page.css';
import 'home/family/city-swiper.css';
import CitySwiper from './family/city-swiper';
import CitySwiper from 'plugin/city-swiper';
import $ from 'yoho-jquery';
import Page from 'yoho-page';
import tip from 'plugin/tip';
... ... @@ -67,9 +67,9 @@ class UserInfo extends Page {
userPic() {
if (yoho.isApp) {
yoho.ready(function() {
yoho.ready(() => {
yoho.invokeMethod('go.setAvatar', {}, (data) => {
console.log(data);
this.selector.$userAvatar.css('background-image', `url(${data})`);
});
});
}
... ...
... ... @@ -72,7 +72,7 @@ let functions = {
if (!yoho.isLogin()) {
let preInfo = `${sku}_${skn}_${buyNum}`;
let actCkOpthn = {
path: '/',
path: '/product',
expires: 1
};
... ...