mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
ExpressWay: adjust doc
This commit is contained in:
parent
3a642fce0c
commit
cfa0f649b6
@ -67,19 +67,13 @@ export default {
|
|||||||
'postage_desc': '由商家门店提供配送服务, 起送价 0.01 元',
|
'postage_desc': '由商家门店提供配送服务, 起送价 0.01 元',
|
||||||
'postage_title': '同城配送',
|
'postage_title': '同城配送',
|
||||||
'express_type': 1
|
'express_type': 1
|
||||||
}, {
|
|
||||||
'postage': 0,
|
|
||||||
'postage_desc': '由商家选择合作快递为您服务',
|
|
||||||
'postage_title': '快递发货',
|
|
||||||
'express_type': 2,
|
|
||||||
'postage_warn_desc': '3天后发货'
|
|
||||||
}]
|
}]
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
onChange(item, index) {
|
onChange(item) {
|
||||||
Toast('配送方式更换为:' + item.postage_title);
|
Toast(`配送方式更换为:${item.postage_title}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -93,7 +87,7 @@ export default {
|
|||||||
```html
|
```html
|
||||||
<van-cell-group>
|
<van-cell-group>
|
||||||
<van-express-way
|
<van-express-way
|
||||||
:value="-1"
|
:value="1"
|
||||||
:express-list="expressList"
|
:express-list="expressList"
|
||||||
:editable="false"
|
:editable="false"
|
||||||
@change="onChange"
|
@change="onChange"
|
||||||
|
@ -19,10 +19,10 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Option from './Option.vue';
|
import Option from './Option';
|
||||||
import Actionsheet from '../actionsheet';
|
|
||||||
import Cell from '../cell';
|
import Cell from '../cell';
|
||||||
import CellGroup from '../cell-group';
|
import CellGroup from '../cell-group';
|
||||||
|
import Actionsheet from '../actionsheet';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'van-express-way',
|
name: 'van-express-way',
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
import Picker from 'packages/picker';
|
import Picker from 'packages/picker';
|
||||||
import PickerColumn from 'packages/picker/picker-column';
|
import PickerColumn from 'packages/picker/picker-column';
|
||||||
import { mount } from 'avoriaz';
|
import { mount } from 'avoriaz';
|
||||||
import Wrapper from 'avoriaz/dist/Wrapper';
|
|
||||||
|
|
||||||
const itemHeight = 44;
|
const itemHeight = 44;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user