Commit 66a45744 authored by zhengke's avatar zhengke

修改

parent bdfe9dc3
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
:safeAreaInsetBottom="true" :safeAreaInsetBottom="true"
@close="popupClose" @close="popupClose"
:z-index="9999" :z-index="9999"
close-icon="cross" close-icon="close"
> >
<view class="goodsku"> <view class="goodsku">
<view class="goods"> <view class="goods">
...@@ -21,6 +21,9 @@ ...@@ -21,6 +21,9 @@
</view> </view>
<view class="amount">库存 {{ goodamount }} {{ g.unit }}</view> <view class="amount">库存 {{ goodamount }} {{ g.unit }}</view>
<view class="sku">{{ skuObj ? '已选择' : '选择' }} {{ sku }}</view> <view class="sku">{{ skuObj ? '已选择' : '选择' }} {{ sku }}</view>
<view class="sku_close">
<u-icon name="cross" color="#9F9F9F" @click="cloGood()" size="40"/>
</view>
</view> </view>
</view> </view>
<view class="sku-box"> <view class="sku-box">
...@@ -172,8 +175,8 @@ export default { ...@@ -172,8 +175,8 @@ export default {
this.g.attr_groups.forEach(x => { this.g.attr_groups.forEach(x => {
if (!this.skuObj) { if (!this.skuObj) {
//(x.checkId = 0), (x.checkName = x.attr_group_name); //(x.checkId = 0), (x.checkName = x.attr_group_name);
(x.checkId = 0), (x.checkName = x.attr_list[0].attr_name); (x.checkId = 0), (x.checkName = x.attr_list[0].attr_name);
x.checkId = x.attr_list[0].attr_id; x.checkId = x.attr_list[0].attr_id;
} else { } else {
let sign = `:${this.skuObj.sign_id}:`; let sign = `:${this.skuObj.sign_id}:`;
x.attr_list.forEach(y => { x.attr_list.forEach(y => {
...@@ -267,7 +270,8 @@ export default { ...@@ -267,7 +270,8 @@ export default {
}); });
} }
}, },
close() { //关闭弹窗
cloGood() {
this.popupClose(); this.popupClose();
}, },
clickSkuItemHandler(index, groupRow) { clickSkuItemHandler(index, groupRow) {
...@@ -417,6 +421,12 @@ export default { ...@@ -417,6 +421,12 @@ export default {
margin-left: 15px; margin-left: 15px;
flex: 1; flex: 1;
width: 1px; width: 1px;
position: relative;
}
.goodsku .chosen-info .sku_close{
position: absolute;
right: 4px;
top: 5px;
} }
.goodsku .goods .chosen-info .price { .goodsku .goods .chosen-info .price {
font-size: 24px; font-size: 24px;
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
<view class="label">选择</view> <view class="label">选择</view>
<view class="content"> <view class="content">
<view class="sku-chosen" @click="chosenSku"> <view class="sku-chosen" @click="chosenSku">
<view class="sku">{{ currentSku ? "已" : "" }}选择 {{ sku }} </view> <view class="sku">{{ currentSku.attr_list.length>0 ? "已" : "请" }}选择 {{ sku }} </view>
<view class="arrow"> <view class="arrow">
<u-icon name="arrow" :size="32" color="#111"></u-icon> <u-icon name="arrow" :size="32" color="#111"></u-icon>
</view> </view>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment