master
lion 3 years ago
parent 8f44cd4e2d
commit 1106ff01c1

@ -1068,7 +1068,8 @@
.banner { .banner {
display: block; display: block;
width: 100%; width: 100%;
height: 500rpx; height: 535rpx;
// height: 500rpx;
} }
} }
@ -1200,6 +1201,7 @@
font-size: 36rpx; font-size: 36rpx;
font-weight: 500; font-weight: 500;
color: #333333; color: #333333;
width:90%;
} }
.dataGroup { .dataGroup {

@ -21,6 +21,13 @@
detail: {} detail: {}
} }
}, },
onShareAppMessage() {
return {
title: this.detail.name,
path: "packages/packageCarecenter/pages/careCenter/strategyDetail?id=" + this.detail.id,
imageUrl: this.img
}
},
methods: { methods: {
getDetail(id) { getDetail(id) {
weixin.request({ weixin.request({

@ -103,7 +103,7 @@
</view> </view>
</view> </view>
<view class="facility u-skeleton-rect"> <!-- <view class="facility u-skeleton-rect">
<view class="facility-title"> <view class="facility-title">
设备详情 设备详情
</view> </view>
@ -113,7 +113,7 @@
<view class="facility-content-item-name">{{item.value}}</view> <view class="facility-content-item-name">{{item.value}}</view>
</view> </view>
</view> </view>
</view> </view> -->
<view style="width: 100%;background: #fff;padding: 20rpx 28rpx;"> <view style="width: 100%;background: #fff;padding: 20rpx 28rpx;">
<u-parse :html="detail.content"></u-parse> <u-parse :html="detail.content"></u-parse>
@ -150,7 +150,7 @@
toService(id) { toService(id) {
this.$u.throttle(() => { this.$u.throttle(() => {
uni.navigateTo({ uni.navigateTo({
url: `/packages/packageCarecenter/pages/careCenter/serviceDetail?id=${id}` url: `/packages/packageCarecenter/pages/commonService/serviceDetail?id=${id}`
}) })
}) })
}, },

@ -52,6 +52,7 @@
</view> </view>
</view> </view>
<view class="subInfo">{{item.address}}</view> <view class="subInfo">{{item.address}}</view>
<view class="subInfo">已报名数:{{item.start_member_sum+item.total}}</view>
<view class="menu">{{$u.timeFormat(item.start_date+' 00:00:00', 'yyyy年mm月dd日')}}{{$u.timeFormat(item.end_date+' 00:00:00', 'yyyy年mm月dd日')}}</view> <view class="menu">{{$u.timeFormat(item.start_date+' 00:00:00', 'yyyy年mm月dd日')}}{{$u.timeFormat(item.end_date+' 00:00:00', 'yyyy年mm月dd日')}}</view>
</view> </view>
</view> </view>

@ -112,6 +112,15 @@
<u-col span="8" v-if="info.member_sum"> <u-col span="8" v-if="info.member_sum">
{{info.member_sum}} {{info.member_sum}}
</u-col> </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"> <u-col span="12">
<view> <view>
报名信息: 报名信息:
@ -392,7 +401,7 @@
onShareAppMessage() { onShareAppMessage() {
return { return {
title: this.info.name, 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, .user_info.id,
imageUrl: this.img imageUrl: this.img
} }
@ -424,17 +433,17 @@
onLoad(options) { onLoad(options) {
var that = this; var that = this;
this.id = options.id; this.id = options.id;
console.log("this.id",this.id)
const scene = decodeURIComponent(options.scene); const scene = decodeURIComponent(options.scene);
console.log(scene) console.log(scene)
if (!weixin.isNull(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.id = weixin.getParam(scene, "id");
this.form.promotion = this.promotion_id = weixin.getParam(scene, "promotion_id"); this.form.promotion = this.promotion_id = weixin.getParam(scene, "promotion_id");
uni.setStorageSync("base_promotion_id", this.promotion_id); uni.setStorageSync("base_promotion_id", this.promotion_id);
} }
if (!weixin.isNull(options.id)) if (!weixin.isNull(options.id))
this.form.product_id = options.id; this.form.active_id = options.id;
if (!weixin.isNull(options.promotion_id)) { if (!weixin.isNull(options.promotion_id)) {
this.form.promotion = options.promotion_id; this.form.promotion = options.promotion_id;
@ -593,7 +602,7 @@
url: this.baseUrl + '/api/member/get-wxa-qrcode', url: this.baseUrl + '/api/member/get-wxa-qrcode',
method: 'GET', method: 'GET',
data: { data: {
path: 'packages/packageBuy/pages/shopDetail/shopDetail', path: 'pages/active/detail',
scene: 'id=' + this.info.id + '&promotion_id=' + this.user_info.id scene: 'id=' + this.info.id + '&promotion_id=' + this.user_info.id
}, },
success: r => { success: r => {
@ -645,9 +654,9 @@
// xy // xy
let packagesFirst = this.info 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 user_info = uni.getStorageSync("user_info_yunyubang");
let userProfile = uni.getStorageSync('user_profile'); let userProfile = uni.getStorageSync('user_profile');
@ -662,7 +671,7 @@
}); });
that.circleImg(ctx, that.circleImg(ctx,
img, img,
40, h - 60 - w * 0.15, 40, h - 50 - w * 0.15,
w * 0.15 / 2); w * 0.15 / 2);
ctx.font = "12rpx normal"; ctx.font = "12rpx normal";
@ -843,6 +852,8 @@
this.form.merchant_id = this.info.shop_id this.form.merchant_id = this.info.shop_id
this.form.active_id = this.info.id this.form.active_id = this.info.id
this.form.active_name = this.info.active_name this.form.active_name = this.info.active_name
console.log(this.form)
return
weixin.request({ weixin.request({
method: 'POST', method: 'POST',
api: "/api/member/active-apply", api: "/api/member/active-apply",

Loading…
Cancel
Save