Authored by xuqi

Merge branch 'release/1.0' of http://git.yoho.cn/fe/yoho-blk into release/1.0

@@ -498,6 +498,12 @@ const getOrderDetail = (uid, code) => { @@ -498,6 +498,12 @@ const getOrderDetail = (uid, code) => {
498 title: '订单详情' 498 title: '订单详情'
499 }; 499 };
500 500
  501 + detail.orderGoods.forEach(good => {
  502 + let cnAlphabet = good.cnAlphabet ? good.cnAlphabet : '';
  503 +
  504 + good.goodUrl = helpers.urlFormat(`/product/pro_${good.productId}_${good.goodsId}/${cnAlphabet}.html`);
  505 + });
  506 +
501 detail.createTime = _convertUnixTime(detail.createTime); 507 detail.createTime = _convertUnixTime(detail.createTime);
502 508
503 if (detail.isCancel === 'N' && 509 if (detail.isCancel === 'N' &&
@@ -148,14 +148,24 @@ const _editInfo = (uid, nickName, username, gender, birthday)=> { @@ -148,14 +148,24 @@ const _editInfo = (uid, nickName, username, gender, birthday)=> {
148 * @private 148 * @private
149 */ 149 */
150 const _editUserContactInfo = (uid, areaCode, mobile, fullAddress, zipCode)=> { 150 const _editUserContactInfo = (uid, areaCode, mobile, fullAddress, zipCode)=> {
151 - return api.get('', { 151 + let param = {
152 method: 'web.passport.modifyUserContacts', 152 method: 'web.passport.modifyUserContacts',
153 - uid: uid,  
154 - area_code: areaCode,  
155 - mobile: mobile,  
156 - full_address: fullAddress,  
157 - zip_code: zipCode  
158 - }).then(result => result); 153 + uid: uid
  154 + };
  155 +
  156 + if (mobile) {
  157 + param.mobile = mobile;
  158 + }
  159 + if (zipCode) {
  160 + param.zip_code = zipCode;
  161 + }
  162 + if (areaCode) {
  163 + param.area_code = areaCode;
  164 + }
  165 + if (fullAddress) {
  166 + param.full_address = fullAddress;
  167 + }
  168 + return api.get('', param).then(result => result);
159 }; 169 };
160 170
161 /** 171 /**
@@ -170,7 +180,9 @@ const editUserInfo = (uid, info) => { @@ -170,7 +180,9 @@ const editUserInfo = (uid, info) => {
170 _editUserContactInfo(uid, info.area_code, info.mobile, info.full_address, info.zip_code) 180 _editUserContactInfo(uid, info.area_code, info.mobile, info.full_address, info.zip_code)
171 ]; 181 ];
172 182
173 - return Promise.all(getData).then(result => result); 183 + return Promise.all(getData).then(result => {
  184 + return result;
  185 + });
174 }; 186 };
175 187
176 /** 188 /**
@@ -43,7 +43,7 @@ @@ -43,7 +43,7 @@
43 43
44 <div class="success-text"> 44 <div class="success-text">
45 <div class="small-title">恭喜您设置完成,请妥善保存您的密码!</div> 45 <div class="small-title">恭喜您设置完成,请妥善保存您的密码!</div>
46 - <div class="time">页面将在&nbsp;<span id="count-down" class="blue">5</span>&nbsp;秒后将跳转至首页</div> 46 + <div class="time">页面将在&nbsp;<span id="count-down" class="blue">5</span>&nbsp;秒后将跳转至登录页面</div>
47 </div> 47 </div>
48 </ul> 48 </ul>
49 </div> 49 </div>
@@ -4,6 +4,7 @@ var _alert = dialog.Alert; @@ -4,6 +4,7 @@ var _alert = dialog.Alert;
4 4
5 5
6 require('../../common/foreach-polyfill'); 6 require('../../common/foreach-polyfill');
  7 +
7 // 添加.check方法 8 // 添加.check方法
8 require('../../plugins/check'); 9 require('../../plugins/check');
9 10