|
|
|
|
@ -112,6 +112,15 @@
|
|
|
|
|
<u-col span="8" v-if="info.member_sum">
|
|
|
|
|
{{info.member_sum}}
|
|
|
|
|
</u-col>
|
|
|
|
|
<u-col span="4">
|
|
|
|
|
<view>
|
|
|
|
|
<image mode="heightFix" src="../../static/icon_xingming@2x.png"></image>
|
|
|
|
|
已报名数:
|
|
|
|
|
</view>
|
|
|
|
|
</u-col>
|
|
|
|
|
<u-col span="8" v-if="info.member_sum">
|
|
|
|
|
{{info.start_member_sum+info.total}}
|
|
|
|
|
</u-col>
|
|
|
|
|
<u-col span="12">
|
|
|
|
|
<view>
|
|
|
|
|
报名信息:
|
|
|
|
|
@ -392,7 +401,7 @@
|
|
|
|
|
onShareAppMessage() {
|
|
|
|
|
return {
|
|
|
|
|
title: this.info.name,
|
|
|
|
|
path: "pages/active/detail/?id=" + this.info.id + "&promotion_id=" + this
|
|
|
|
|
path: "pages/active/detail?id=" + this.info.id + "&promotion_id=" + this
|
|
|
|
|
.user_info.id,
|
|
|
|
|
imageUrl: this.img
|
|
|
|
|
}
|
|
|
|
|
@ -424,17 +433,17 @@
|
|
|
|
|
onLoad(options) {
|
|
|
|
|
var that = this;
|
|
|
|
|
this.id = options.id;
|
|
|
|
|
|
|
|
|
|
console.log("this.id",this.id)
|
|
|
|
|
const scene = decodeURIComponent(options.scene);
|
|
|
|
|
console.log(scene)
|
|
|
|
|
if (!weixin.isNull(scene)) {
|
|
|
|
|
this.form.product_id = weixin.getParam(scene, "id");
|
|
|
|
|
this.form.active_id = weixin.getParam(scene, "id");
|
|
|
|
|
this.id = weixin.getParam(scene, "id");
|
|
|
|
|
this.form.promotion = this.promotion_id = weixin.getParam(scene, "promotion_id");
|
|
|
|
|
uni.setStorageSync("base_promotion_id", this.promotion_id);
|
|
|
|
|
}
|
|
|
|
|
if (!weixin.isNull(options.id))
|
|
|
|
|
this.form.product_id = options.id;
|
|
|
|
|
this.form.active_id = options.id;
|
|
|
|
|
|
|
|
|
|
if (!weixin.isNull(options.promotion_id)) {
|
|
|
|
|
this.form.promotion = options.promotion_id;
|
|
|
|
|
@ -593,7 +602,7 @@
|
|
|
|
|
url: this.baseUrl + '/api/member/get-wxa-qrcode',
|
|
|
|
|
method: 'GET',
|
|
|
|
|
data: {
|
|
|
|
|
path: 'packages/packageBuy/pages/shopDetail/shopDetail',
|
|
|
|
|
path: 'pages/active/detail',
|
|
|
|
|
scene: 'id=' + this.info.id + '&promotion_id=' + this.user_info.id
|
|
|
|
|
},
|
|
|
|
|
success: r => {
|
|
|
|
|
@ -645,9 +654,9 @@
|
|
|
|
|
// 绘制文字(参数:要写的字,x坐标,y坐标)
|
|
|
|
|
|
|
|
|
|
let packagesFirst = this.info
|
|
|
|
|
ctx.fillText("¥" + this.info.money + "" + this.info.active_name, 40, (h + 50) * 0.5 + 20 + 30);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ctx.fillText("" + this.info.active_name, 40, (h + 50) * 0.5 + 20 + 30);
|
|
|
|
|
ctx.fillText("报名时间:" + this.info.apply_start, 40, (h + 50) * 0.5 + 50 + 50);
|
|
|
|
|
ctx.fillText("报名截止:" + this.info.apply_end, 40, (h + 50) * 0.5 + 60 + 60);
|
|
|
|
|
let user_info = uni.getStorageSync("user_info_yunyubang");
|
|
|
|
|
|
|
|
|
|
let userProfile = uni.getStorageSync('user_profile');
|
|
|
|
|
@ -662,7 +671,7 @@
|
|
|
|
|
});
|
|
|
|
|
that.circleImg(ctx,
|
|
|
|
|
img,
|
|
|
|
|
40, h - 60 - w * 0.15,
|
|
|
|
|
40, h - 50 - w * 0.15,
|
|
|
|
|
w * 0.15 / 2);
|
|
|
|
|
|
|
|
|
|
ctx.font = "12rpx normal";
|
|
|
|
|
@ -843,6 +852,8 @@
|
|
|
|
|
this.form.merchant_id = this.info.shop_id
|
|
|
|
|
this.form.active_id = this.info.id
|
|
|
|
|
this.form.active_name = this.info.active_name
|
|
|
|
|
console.log(this.form)
|
|
|
|
|
return
|
|
|
|
|
weixin.request({
|
|
|
|
|
method: 'POST',
|
|
|
|
|
api: "/api/member/active-apply",
|
|
|
|
|
|