Authored by 李靖

上传图片

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