Authored by lea guo

Merge branch 'develop' of git.yoho.cn:fe/xianyu-ufo-app-web into develop

... ... @@ -3,20 +3,20 @@
<template>
<div class="customSelectWrapper">
<div class="customSelectTextWrapper">
<div class="customSelectTextWrapper" @click="showPicker">
<span class="leftText">求购期限:</span>
<div class="rightWrapper">
<span class="rightText">{{value}}</span>
<i class="cubeic-arrow" ></i>
</div>
</div>
<Select
v-model="chooseday"
:title="title"
:options="options"
@change="change"
class="customSelect"
/>
<!--<Select-->
<!--v-model="chooseday"-->
<!--:title="title"-->
<!--:options="options"-->
<!--@change="change"-->
<!--class="customSelect"-->
<!--/>-->
</div>
</template>
... ... @@ -65,7 +65,22 @@ export default {
methods: {
change(value, index, text) {
console.log('change', value, index, text);
this.choose && this.choose(value);
this.choose && this.choose(value[0]);
},
showPicker() {
console.log(this.options)
this.$createPicker({
title: '选择求购时限',
data: [this.options],
onSelect: this.change,
selectedIndex: [2],
onCancel: () => {
}
}).show();
}
}
... ... @@ -113,7 +128,8 @@ export default {
.customSelect {
position: relative;
opacity: 0 !important;
opacity: 1 !important;
z-index: 1;
}
</style>
... ...
... ... @@ -130,7 +130,10 @@ export default function() {
let orginallist = get(state, ['configTip', 'timeLimit', 'items'], []);
return orginallist.map(item => {
return get(item, ['desc'], '');
return {
text: get(item, ['desc'], ''),
value: get(item, ['desc'], ''),
};
});
},
... ...