import Dialog from '@vant/weapp/dist/dialog/dialog'; Page({ data: { steps: [ { text: '【城市】物流状态1', desc: '2016-07-12 12:40', }, { text: '【城市】物流状态', desc: '2016-07-11 10:00', }, { text: '快件已发货', desc: '2016-07-10 09:30', }, { text: '步骤四', desc: '描述信息', }, ], active1: 2, password: '', username: '', active: 1, show: false, actions: [ { name: '选项', }, { name: '选项', }, { name: '选项', subname: '描述信息', openType: 'share', }, ], checked: true, }, onLoad() { Dialog.confirm({ title: '温馨提示', message: '订单满99元或满3个商品包邮哦,当前不符合包邮标准,请支付XXX元运费', confirmButtonText: '确认发货', cancelButtonText: '重新选择', }) .then(() => { // on confirm }) .catch(() => { // on cancel }); }, onReady() {}, onShow() {}, onHide() {}, onUnload() {}, onOpen() { this.setData({ show: true }); }, onClose() { this.setData({ show: false }); }, onSelect(event: WechatMiniprogram.TouchEvent) { console.log(event.detail); }, });