Skip to content

Commit 753b2bd

Browse files
author
sanfordsun
committed
fix: demo
1 parent 9b42a15 commit 753b2bd

File tree

5 files changed

+32
-9
lines changed

5 files changed

+32
-9
lines changed

miniprogram/packageChatTool/pages/activity_create/index.wxml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454

5555
<t-button
5656
style="margin-top: 20px;"
57+
class="btn"
5758
bind:tap="chooseParticipant"
5859
theme="primary"
5960
size="large"
@@ -81,7 +82,8 @@
8182
</view>
8283

8384
<view class="card" style="margin-bottom: 30px;">
84-
<t-button
85+
<t-button
86+
class="btn"
8587
bind:tap="publish"
8688
theme="primary"
8789
size="large"

miniprogram/packageChatTool/pages/activity_create/index.wxss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,7 @@ page {
3434
line-height: 48rpx;
3535
padding: 32rpx;
3636
}
37+
38+
.btn {
39+
width: 100% !important;
40+
}

miniprogram/packageChatTool/pages/activity_detail/index.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ Page({
157157
type: 'participate',
158158
members: notSignIn,
159159
entrancePath: `chatTool-2/activity_detail/index?activityId=${activityId}`,
160+
complete(res) {
161+
console.info('notifyGroupMembers: ', res)
162+
}
160163
})
161164
},
162165

@@ -276,11 +279,14 @@ Page({
276279

277280
sendProgress() {
278281
const { progressImage, activityId } = this.data
279-
const entrancePath = `chatTool-2/activity_detail/index?activityId=${activityId}`
282+
const entrancePath = `packageChatTool/pages/activity_detail/index?activityId=${activityId}`
280283
wx.shareImageToGroup({
281284
imagePath: progressImage,
282285
needShowEntrance: true,
283286
entrancePath,
287+
complete(res) {
288+
console.info('shareImageToGroup: ', res)
289+
}
284290
})
285291
},
286292

@@ -294,7 +300,7 @@ Page({
294300
wx.shareAppMessageToGroup({
295301
title: activityInfo.title,
296302
imageUrl: res.tempFilePath,
297-
path: `chatTool-2/activity_detail/index?activityId=${activityId}`,
303+
path: `packageChatTool/pages/activity_detail/index?activityId=${activityId}`,
298304
})
299305
},
300306
fail: console.error

miniprogram/packageChatTool/pages/activity_detail/index.wxml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@
8383
</view>
8484

8585
<view class="card" wx:if="{{notSignIn.length}}">
86-
<t-button
86+
<t-button
87+
class="btn"
8788
bind:tap="notifyNotSignIn"
8889
theme="primary"
8990
size="large"
@@ -93,7 +94,8 @@
9394
</view>
9495

9596
<view class="card">
96-
<t-button
97+
<t-button
98+
class="btn"
9799
bind:tap="sendProgress"
98100
theme="primary"
99101
size="large"
@@ -106,7 +108,8 @@
106108
<block wx:if="{{role === 'participant' && !signInStatus}}">
107109
<view class="card">
108110
<view class="card-title">活动签到</view>
109-
<t-button
111+
<t-button
112+
class="btn"
110113
bind:tap="signIn"
111114
theme="primary"
112115
size="large"
@@ -119,7 +122,8 @@
119122
<block wx:if="{{role === 'nonParticipant'}}">
120123
<view class="card">
121124
<view class="card-title">活动签到</view>
122-
<t-button
125+
<t-button
126+
class="btn"
123127
theme="light"
124128
disabled
125129
size="large"
@@ -132,7 +136,8 @@
132136
<block wx:if="{{role === 'unkown'}}">
133137
<view class="card">
134138
<view class="card-title">活动签到</view>
135-
<t-button
139+
<t-button
140+
class="btn"
136141
theme="light"
137142
disabled
138143
size="large"
@@ -148,6 +153,7 @@
148153
<view class="card">
149154
<view class="card-title">系统消息指令</view>
150155
<t-button
156+
class="btn"
151157
bind:tap="remindExpiration"
152158
theme="primary"
153159
size="large"
@@ -156,6 +162,7 @@
156162
</t-button>
157163

158164
<t-button
165+
class="btn"
159166
style="margin-top: 24rpx;"
160167
bind:tap="earlyTerminate"
161168
theme="primary"

miniprogram/packageChatTool/pages/activity_detail/index.wxss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,8 @@ page {
8080
margin-right: 32rpx;
8181
width: 56px;
8282
height: 56px;
83-
}
83+
}
84+
85+
.btn {
86+
width: 100% !important;
87+
}

0 commit comments

Comments
 (0)