团购详情页构建
This commit is contained in:
@@ -202,7 +202,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path" : "pages/order/order_groupdetail",
|
"path" : "pages/group_order/order_groupdetail",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "订单详情"
|
"navigationBarTitleText": "订单详情"
|
||||||
}
|
}
|
||||||
|
|||||||
22
pages/group_order/components/groupCoupons.vue
Normal file
22
pages/group_order/components/groupCoupons.vue
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
<template>
|
||||||
|
<view>
|
||||||
|
2
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
||||||
22
pages/group_order/components/groupMerchants.vue
Normal file
22
pages/group_order/components/groupMerchants.vue
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
<template>
|
||||||
|
<view>
|
||||||
|
3
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
||||||
22
pages/group_order/components/groupPay.vue
Normal file
22
pages/group_order/components/groupPay.vue
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
<template>
|
||||||
|
<view>
|
||||||
|
6
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
||||||
22
pages/group_order/components/groupPrompt.vue
Normal file
22
pages/group_order/components/groupPrompt.vue
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
<template>
|
||||||
|
<view>
|
||||||
|
5
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
||||||
22
pages/group_order/components/groupStore.vue
Normal file
22
pages/group_order/components/groupStore.vue
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
<template>
|
||||||
|
<view>
|
||||||
|
4
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
||||||
22
pages/group_order/components/groupTitle.vue
Normal file
22
pages/group_order/components/groupTitle.vue
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
<template>
|
||||||
|
<view>
|
||||||
|
1
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
||||||
74
pages/group_order/order_groupdetail.vue
Normal file
74
pages/group_order/order_groupdetail.vue
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
<template>
|
||||||
|
<!-- 团购订单详情 -->
|
||||||
|
<view>
|
||||||
|
<!-- 头部 -->
|
||||||
|
<groupTitle></groupTitle>
|
||||||
|
<!-- 券 -->
|
||||||
|
<groupCoupons></groupCoupons>
|
||||||
|
<!-- 商家信息 -->
|
||||||
|
<groupMerchants></groupMerchants>
|
||||||
|
<!-- 到店 -->
|
||||||
|
<groupStore></groupStore>
|
||||||
|
<!-- 提示 -->
|
||||||
|
<groupPrompt></groupPrompt>
|
||||||
|
<!-- 实付 -->
|
||||||
|
<groupPay></groupPay>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import groupTitle from './components/groupTitle.vue'
|
||||||
|
import groupCoupons from './components/groupCoupons.vue'
|
||||||
|
import groupMerchants from './components/groupMerchants.vue'
|
||||||
|
import groupStore from './components/groupStore.vue'
|
||||||
|
import groupPrompt from './components/groupPrompt.vue'
|
||||||
|
import groupPay from './components/groupPay.vue'
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
groupTitle,
|
||||||
|
groupCoupons,
|
||||||
|
groupMerchants,
|
||||||
|
groupStore,
|
||||||
|
groupPrompt,
|
||||||
|
groupPay
|
||||||
|
},
|
||||||
|
onLoad(e) {
|
||||||
|
this.orderId = e.orderId
|
||||||
|
this.orderorderInfo()
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
orderId: "",
|
||||||
|
listinfo: null
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
orderorderInfo() {
|
||||||
|
let _this = this
|
||||||
|
uni.getStorage({
|
||||||
|
key: "getLocationstorage",
|
||||||
|
success: function(data) {
|
||||||
|
let {
|
||||||
|
lat,
|
||||||
|
lng
|
||||||
|
} = data.data
|
||||||
|
let res = _this.api.groupOrderInfoDetail({
|
||||||
|
id: _this.orderId,
|
||||||
|
lat,
|
||||||
|
lng
|
||||||
|
})
|
||||||
|
if (res.code == 0) {
|
||||||
|
_this.listinfo = res.data
|
||||||
|
// this.mountedcreateSelectorQuery()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
|
||||||
|
</style>
|
||||||
@@ -213,7 +213,7 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
orderinfoTo(e) {
|
orderinfoTo(e) {
|
||||||
uni.pro.navigateTo('order/order_groupdetail', {
|
uni.pro.navigateTo('group_order/order_groupdetail', {
|
||||||
orderId: e.id
|
orderId: e.id
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,45 +0,0 @@
|
|||||||
<template>
|
|
||||||
<view>
|
|
||||||
|
|
||||||
</view>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
onLoad(e) {
|
|
||||||
this.orderId = e.orderId
|
|
||||||
this.orderorderInfo()
|
|
||||||
},
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
orderId:"",
|
|
||||||
listinfo:null
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
orderorderInfo() {
|
|
||||||
let _this = this
|
|
||||||
uni.getStorage({
|
|
||||||
key: "getLocationstorage",
|
|
||||||
success: function (data) {
|
|
||||||
let {lat , lng} = data.data
|
|
||||||
let res = _this.api.groupOrderInfoDetail({
|
|
||||||
id: _this.orderId,
|
|
||||||
lat,
|
|
||||||
lng
|
|
||||||
})
|
|
||||||
if (res.code == 0) {
|
|
||||||
_this.listinfo = res.data
|
|
||||||
// this.mountedcreateSelectorQuery()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style>
|
|
||||||
|
|
||||||
</style>
|
|
||||||
Reference in New Issue
Block a user