diff --git a/src/pages.json b/src/pages.json index d4fdccf..df53b6e 100644 --- a/src/pages.json +++ b/src/pages.json @@ -18,6 +18,14 @@ "navigationBarTitleText": "一键预约", } }, + { + "path": "pages/booking/booking-success", + "style": { + "navigationBarTitleText": "预约成功", + } + }, + + //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages { "path": "pages/index/index", diff --git a/src/pages/booking/booking-success.vue b/src/pages/booking/booking-success.vue new file mode 100644 index 0000000..5c323dd --- /dev/null +++ b/src/pages/booking/booking-success.vue @@ -0,0 +1,72 @@ + + + + + + \ No newline at end of file diff --git a/src/pages/booking/booking.vue b/src/pages/booking/booking.vue index 42b0766..207c444 100644 --- a/src/pages/booking/booking.vue +++ b/src/pages/booking/booking.vue @@ -45,20 +45,16 @@ const leiList = [ const weightMenuList = [ { id: 1, - name: '5-10kg', + name: '10kg以下', }, { id: 2, - name: '10-15kg', + name: '10-20kg', }, { id: 3, - name: '15-20kg', - }, - { - id: 4, - name: '20-50kg', - }, + name: '20kg以上', + } ] const handleMenuChange = (val) => { @@ -68,11 +64,7 @@ const handleWeightChange = (val) => { activeWeightKey.value = val } const handleToto = () => { - uni.showToast({ - title: 'todo...', - icon: 'none', - duration: 1000, - }) + uni.navigateTo({ url: '/pages/booking/booking-success' }) } // 微信 - 获取当前经纬度 @@ -152,10 +144,10 @@ const openAdressPop = () => { } const handleTimePopChange = (val) => { - timdeLabel.value ='取件时间: ' + val + timdeLabel.value ='收货时间: ' + val } -const handleAddressPopChange = (e) => { - debugger +const handleAddressPopChange = (val) => { + addressLabel.value ='收货地址: ' + val }