This commit is contained in:
2020-06-10 16:06:01 +08:00
parent 660413e929
commit e9bf1641c3
5 changed files with 659 additions and 67 deletions

View File

@@ -18,11 +18,7 @@
<view class="name u-line-2">木糖少女小紫薯西装领连衣裙夏季新款女装夏收腰格子格纹裙子</view>
<view class="cart-info">
<view class="price">99</view>
<view class="num">
<view class="reduce">-</view>
<view class="value">2</view>
<view class="increase">+</view>
</view>
<u-number-box :input-width="38" :input-height="39" :size="22" bg-color="#FFFFFF" color="#FF780F" :index="g_index" @minus="reduce($event, s_index)" @plus="plus($event, s_index)"></u-number-box>
</view>
</view>
</view>
@@ -40,7 +36,7 @@
<view class="title">合计</view>
<view class="value">9.80</view>
</view>
<view class="cart-btn" v-if="status == '编辑'">结算</view>
<view class="cart-btn" v-if="status == '编辑'" @click="settlement">结算</view>
<view class="delete-btn" v-if="status == '完成'">删除</view>
</view>
</view>
@@ -78,6 +74,17 @@ export default {
}
},
methods: {
reduce(value, store) {
console.log(value, store)
},
plus(value, store) {
console.log(value, store)
},
settlement() {
uni.navigateTo({
url: './ConfirmOrder'
});
},
totalChange(e) {
// 切换所有商品的状态
this.list.forEach(store => {
@@ -215,31 +222,43 @@ export default {
font-weight: 500;
color: rgba(255,49,49,1);
}
.num {
display: flex;
width: 118rpx;
height: 39rpx;
.u-numberbox {
border: 1rpx solid rgba(217,215,215,1);
border-radius:4px;
.reduce, .increase {
flex: 1;
font-size: 11rpx;
color: #FF780F;
line-height: 39rpx;
text-align: center;
}
.value {
flex: 1;
font-size: 22rpx;
color:rgba(51,51,51,1);
line-height: 39rpx;
text-align: center;
/deep/ .u-number-input {
margin: 0;
color: #333 !important;
border: 1rpx #D9D7D7 solid {
top: 0px;
bottom: 0px;
}
}
}
// .num {
// display: flex;
// width: 118rpx;
// height: 39rpx;
// border: 1rpx solid rgba(217,215,215,1);
// border-radius:4px;
// .reduce, .increase {
// flex: 1;
// font-size: 11rpx;
// color: #FF780F;
// line-height: 39rpx;
// text-align: center;
// }
// .value {
// flex: 1;
// font-size: 22rpx;
// color:rgba(51,51,51,1);
// line-height: 39rpx;
// text-align: center;
// border: 1rpx #D9D7D7 solid {
// top: 0px;
// bottom: 0px;
// }
// }
// }
}
}
}