| | |
| | | :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>
|
| | |
|
| | |
| | | },
|
| | |
|
| | | 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 = []
|