From e3898caa56109a29f94e4dabc7db421a5bd4b730 Mon Sep 17 00:00:00 2001
From: xuxy <1059738716@qq.com>
Date: 星期一, 15 七月 2024 00:14:27 +0800
Subject: [PATCH] update fix bug
---
sub_pages/supplier/flower-manage/flower-add.vue | 34 ++++++++++++++++++----------------
1 files changed, 18 insertions(+), 16 deletions(-)
diff --git a/sub_pages/supplier/flower-manage/flower-add.vue b/sub_pages/supplier/flower-manage/flower-add.vue
index c7b79bf..e9dee4a 100644
--- a/sub_pages/supplier/flower-manage/flower-add.vue
+++ b/sub_pages/supplier/flower-manage/flower-add.vue
@@ -179,28 +179,24 @@
:columns="columns_levels"></u-picker>
- <uni-popup ref="popup_param" type="top">
- <view class="component-popup_input" v-if="dto.params">
+ <uni-popup ref="popup_param" type="bottom">
+ <view class="component-popup_input_all" v-if="dto.params">
<view class="text-center m-b-40" style="font-size: 48rpx;font-weight: 600;">商品参数设置</view>
<!-- 输入框-->
- <view v-for="(item,i) in dto.params" :key="i" class="m-b-20">
- <view class="title topic-font" style="font-size: 36rpx;font-weight: 600;">{{item.name}}</view>
- <view class="m-t-12">
- <u-radio-group v-model="item.value" placement="row">
- <u-radio
- :customStyle="{'margin-bottom': '16rpx','margin-right': '24rpx','font-size':'28rpx'}"
- v-for="(each, j) in item.values" :key="j" :label="each" :name="each">
- </u-radio>
- </u-radio-group>
+ <view v-for="(item,i) in dto.params" :key="i" class="m-t-20">
+ <view class="title topic-font" style="font-size: 40rpx;font-weight: 600;">{{item.name}}</view>
+ <view class="m-t-12 flex value-items">
+ <view class="value-item" @click="updateValue(item,each)" :class="[item.value===each?'cur':'']"
+ v-for="(each, j) in item.values" :key="j">
+ {{each || '-'}}
+ </view>
</view>
</view>
-
- <!-- 提交按钮 -->
+ <view class="button-space"></view>
<view class="button-green" @click="closeParamPop">确定</view>
</view>
</uni-popup>
- <!-- <dying318picker :picker-list="columns_categorys" ref="picker_category" @confirm="confirmPickerCategory">
- </dying318picker> -->
+
</view>
</template>
@@ -313,6 +309,12 @@
},
methods: {
+ updateValue(item, value) {
+ item.value = value
+ this.$set(item, 'value', value)
+ this.$forceUpdate()
+ console.log('updateValue')
+ },
async updateSearch(search) {
this.columns_categorys_search = search || ''
this.columns_categorys_picker = []
@@ -527,7 +529,7 @@
if (re.code == 2000 || re.code == 0) {
this.$message.showToast('操作成功')
//需要标记加一下
- // this.$store.dispatch('sign_add', 'application');
+ this.$store.dispatch('sign_add', 'flower');
this.backpage()
}
--
Gitblit v1.9.3