|
|
@@ -11,14 +11,19 @@
|
|
|
</van-cell>
|
|
|
<van-cell title="昵称" value="粉条" is-link />
|
|
|
<van-cell title="性别" is-link @click="chooseSex" />
|
|
|
- <van-cell title="地区" is-link @click="$refs.area.init()">
|
|
|
- <span>{{ province }}{{ city }}{{ region }}</span>
|
|
|
+ <van-cell title="地区" is-link :class="{ not: !city }" @click="$refs.area.init()">
|
|
|
+ <span>{{ province }}{{ city || '未设置' }}</span>
|
|
|
</van-cell>
|
|
|
<van-cell title="收货地址" is-link />
|
|
|
- <van-cell title="手机号" class="not" value="未绑定" is-link />
|
|
|
+ <van-cell title="手机号" class="not" is-link>
|
|
|
+ <span>未绑定</span>
|
|
|
+ <van-button type="primary" open-type="getPhoneNumber" @getphonenumber="getphonenumber"
|
|
|
+ >授权手机号</van-button
|
|
|
+ >
|
|
|
+ </van-cell>
|
|
|
</van-cell-group>
|
|
|
|
|
|
- <area-select ref="area" :province.sync="province" :city.sync="city" :region.sync="region"></area-select>
|
|
|
+ <area-select ref="area" :province.sync="province" :city.sync="city" :columnsNum="2"></area-select>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -45,6 +50,9 @@ export default {
|
|
|
console.log(res.errMsg);
|
|
|
}
|
|
|
});
|
|
|
+ },
|
|
|
+ getphonenumber(e) {
|
|
|
+ console.log(e);
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
@@ -59,6 +67,16 @@ export default {
|
|
|
.van-cell__value {
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
+
|
|
|
+ .van-button {
|
|
|
+ position: absolute;
|
|
|
+ top: 12px;
|
|
|
+ right: 0;
|
|
|
+ bottom: 0;
|
|
|
+ left: 0;
|
|
|
+ opacity: 0;
|
|
|
+ --button-small-height: 64px !important;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/deep/ .not {
|