Browse Source

修改了本地存储流程

feature/feature-compatible
wangkesi 7 years ago
parent
commit
bf4be3d0f5
1 changed files with 17 additions and 17 deletions
  1. 34
      src/view/home.vue

34
src/view/home.vue

@ -328,23 +328,23 @@ export default {
data.userAddress.type != 1 &&
data.userAddress.type != -1
) {
this.addressValue = [
this.provinceId +
"&" +
data.userAddress.provinceName,
this.cityId +
"&" +
data.userAddress.cityName,
this.districtId +
"&" +
data.userAddress.districtName +
"&" +
data.userAddress.merchantNo
];
localStorage.setItem(
"cityName",
this.addressValue.slice()
);
// this.addressValue = [
// this.provinceId +
// "&" +
// data.userAddress.provinceName,
// this.cityId +
// "&" +
// data.userAddress.cityName,
// this.districtId +
// "&" +
// data.userAddress.districtName +
// "&" +
// data.userAddress.merchantNo
// ];
// localStorage.setItem(
// "cityName",
// this.addressValue.slice()
// );
}
// console.log(data.userAddress)
if (data.userAddress.type == 1) {

Loading…
Cancel
Save