diff --git a/pages/active/course.vue b/pages/active/course.vue index d78e1f8..95da3bc 100644 --- a/pages/active/course.vue +++ b/pages/active/course.vue @@ -9,10 +9,10 @@ 时间 -

地址

+

上课地址

-

名称

+

主题

主讲 报名 @@ -64,14 +64,21 @@ infolist: [] } }, - // onShareAppMessage() { - // return { - // title: this.info.name, - // path: "pages/active/detail?id=" + this.info.id + "&promotion_id=" + this - // .user_info.id, - // imageUrl: this.img - // } - // }, + onShareAppMessage() { + return { + title: this.info.title, + path: "pages/active/course?id=" + this.info.id, + imageUrl: this.img + } + }, + onShareTimeline() { + var url = "pages/active/course?id=" + this.info.id; + var title = this.info.title; + return { + title: title, + path: url, + } + }, onShow() { }, diff --git a/pages/active/detail.vue b/pages/active/detail.vue index 3f63389..9dc8613 100644 --- a/pages/active/detail.vue +++ b/pages/active/detail.vue @@ -457,7 +457,7 @@ 性别* - - 核销码 + 核销码 查看 @@ -74,7 +74,10 @@ - 核销码:{{codetext}} + 活动:{{activeName}} + 报名人:{{applyName}} + 手机号:{{applyMobile}} + 核销码:{{codetext}} @@ -137,7 +140,10 @@ is_used:"", showview:false, showCodes:false, - codetext:"", + codetext:"", + activeName:'', + applyName:'', + applyMobile:"", statusLabels: [{ state: "", txt: "全部", @@ -201,13 +207,16 @@ url: "/pages/active/detail?id=" + id }) }, - showCode(apply){ + showCode(item,apply){ if(apply.length<1){ return } - let text = "1234" + this.activeName = item.active_name + let text = "" for(var k of apply){ text = k.code + this.applyName = k.name + this.applyMobile = k.phone } if(!text){ uni.showModal({ @@ -218,6 +227,8 @@ return } this.codetext = text + + console.log("text",text) var id = "qrcode"; // if (qrcode) {