瀏覽代碼

收货地址报错修复

Eratosici 4 年之前
父節點
當前提交
3cc0ca7f51

+ 1 - 1
mall4uni/pages/delivery-address/delivery-address.vue

@@ -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)">

+ 3 - 3
mall4uni/pages/editAddress/editAddress.vue

@@ -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)]
                 });
               }
             }

+ 1 - 1
mall4uni/pages/register/register.vue

@@ -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>