收货地址报错修复

master
Eratosici 5 years ago
parent ef8076aec2
commit ec8eebb128

@ -8,7 +8,7 @@
</view>
<view class="txt">您还没有收货地址</view>
</view>
<radio-group class="radio-group" @change="radioChange">
<radio-group class="radio-group">
<block v-for="(item, index) in addressList" :key="index">
<view class="address">
<view class="personal" @tap="selAddrToOrder(item)">

@ -168,7 +168,7 @@ export default {
for (var index in res) {
if (res[index].areaId == provinceId) {
ths.setData({
value: [index, ths.value[1], ths.value[2]]
value: [parseInt(index), ths.value[1], ths.value[2]]
});
}
}
@ -275,7 +275,7 @@ export default {
for (var index in res) {
if (res[index].areaId == cityId) {
ths.setData({
value: [ths.value[0], index, ths.value[2]]
value: [ths.value[0], parseInt(index), ths.value[2]]
});
}
}
@ -309,7 +309,7 @@ export default {
for (var _index in res) {
if (res[_index].areaId == areaId) {
ths.setData({
value: [ths.value[0], ths.value[1], _index]
value: [ths.value[0], ths.value[1], parseInt(_index)]
});
}
}

@ -9,7 +9,7 @@
<view class="login-form">
<view :class="['item',errorTips==1? 'error':'']">
<view class="account">
<text class="input-item">注册账号</text>
<text class="input-item">账号</text>
<input type="text" @input="getInputVal" data-type="account" placeholder-class="inp-palcehoder" placeholder="请输入账号名称"></input>
</view>
<view class="error-text" v-if="errorTips==1"><text class="warning-icon">!</text>请输入账号</view>

Loading…
Cancel
Save