diff --git a/api/lottery.js b/api/lottery.js index 834be88..3064ea8 100644 --- a/api/lottery.js +++ b/api/lottery.js @@ -49,6 +49,18 @@ export function getActivityWinRecord(activityId) { return request.get('/draw/activityWinRecord', { activityId }) } +/** + * 获取最新中奖名单 + * @param activityId 抽奖活动ID(可选) + */ +export function getDrawLatestWinners(activityId) { + const params = {} + if (activityId !== undefined && activityId !== null && activityId !== '') { + params.activityId = activityId + } + return request.get('/draw/latestWinners', params) +} + /** * 历史抽奖活动列表 * 用于在中奖名单页面切换历史抽奖活动 diff --git a/pages/order/MyOrder/index.vue b/pages/order/MyOrder/index.vue index ca308c4..b610b6f 100644 --- a/pages/order/MyOrder/index.vue +++ b/pages/order/MyOrder/index.vue @@ -375,6 +375,7 @@ 联系客服 @@ -1055,6 +1056,19 @@ export default { force2Decimal(v) { return this.$force2Decimal(v) }, + callMerPhone(order) { + const phone = String((order && order.merPhone) || '').trim() + if (!phone) { + uni.showToast({ + title: '暂无电话', + icon: 'none' + }) + return + } + uni.makePhoneCall({ + phoneNumber: phone + }) + }, goRoom(order) { console.log(order); if (order.experienceOrderInfo) { diff --git a/pages/order/OrderDetails/index.vue b/pages/order/OrderDetails/index.vue index 0b7b088..c72f3a8 100644 --- a/pages/order/OrderDetails/index.vue +++ b/pages/order/OrderDetails/index.vue @@ -489,7 +489,7 @@