Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
xianyu-ufo-app-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
lea guo
5 years ago
Commit
7aa0ff0007c70ffab784b3cf0b389bc58d0a7afe
2 parents
41b6cdae
df52db30
Merge branch 'develop' of git.yoho.cn:fe/xianyu-ufo-app-web into develop
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
11 deletions
apps/pages/order/components/askorder/day-choose.vue
apps/store/order/buyer-ask-order.js
apps/pages/order/components/askorder/day-choose.vue
View file @
7aa0ff0
...
...
@@ -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>
...
...
apps/store/order/buyer-ask-order.js
View file @
7aa0ff0
...
...
@@ -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'
],
''
),
};
});
},
...
...
Please
register
or
login
to post a comment