style: 💄 优化商品购买时商品数量显示问题 以及修改地址跳转问题

master
学习很差啦 2022-09-23 15:05:19 +08:00
parent 1e9df74034
commit 68dc960232
2 changed files with 10 additions and 7 deletions

View File

@ -99,10 +99,10 @@
</view> </view>
</view> </view>
<!-- 数量 --> <!-- 数量 -->
<view class="goods-skus-number"> <view class="goods-skus-number flex flex-a-c flex-j-sb">
<view class="view-class-title">数量</view> <view class="view-class-title">数量</view>
<u-input style='text-align: right;' v-model="num" type="number" /> <u-input class="view-class-input" v-model="num" type="number" />
</view> </view>
</scroll-view> </scroll-view>
<!-- 按钮 --> <!-- 按钮 -->
@ -183,7 +183,6 @@
num(val){ num(val){
if(val){ if(val){
if(val > this.goodsDetail.quantity){ if(val > this.goodsDetail.quantity){
console.log(val)
this.val = this.goodsDetail.quantity this.val = this.goodsDetail.quantity
} }
} }
@ -423,7 +422,13 @@
.goods-skus-number { .goods-skus-number {
justify-content: space-between; justify-content: space-between;
display: flex; display: flex;
text-align: right
>.view-class-title{
flex: 8;
}
>.view-class-input{
flex:1
}
} }
/deep/ .uni-scroll-view { /deep/ .uni-scroll-view {

View File

@ -162,9 +162,7 @@ export default {
delete this.form.updateTime; delete this.form.updateTime;
editAddress(this.form).then((res) => { editAddress(this.form).then((res) => {
if (res.data.success) { if (res.data.success) {
uni.navigateTo({ uni.navigateBack();
url: `/${beforePage.route}`,
});
} }
}); });
} }