southnote-mini-sdk 1.0.8 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -391,7 +391,7 @@ Component({
|
|
|
391
391
|
this.triggerEvent('pauseAllVideo')
|
|
392
392
|
if (!checkLogin()) return;
|
|
393
393
|
|
|
394
|
-
this.triggerEvent('
|
|
394
|
+
this.triggerEvent('myShareTap', {
|
|
395
395
|
item: this.data.item
|
|
396
396
|
})
|
|
397
397
|
|
|
@@ -400,10 +400,11 @@ Component({
|
|
|
400
400
|
commonTap() {
|
|
401
401
|
this.triggerEvent('pauseAllVideo')
|
|
402
402
|
if (!checkLogin()) return;
|
|
403
|
-
|
|
404
|
-
this.
|
|
405
|
-
|
|
406
|
-
|
|
403
|
+
|
|
404
|
+
const postId = this.data.item.post.id;
|
|
405
|
+
wx.navigateTo({
|
|
406
|
+
url: `../../pages/post/post?id=${postId}&isCommentIn=true`
|
|
407
|
+
});
|
|
407
408
|
},
|
|
408
409
|
// 点赞点击
|
|
409
410
|
likeTap(e) {
|
package/package.json
CHANGED
package/pages/game/game.js
CHANGED
|
@@ -39,6 +39,9 @@ Page({
|
|
|
39
39
|
gameWikiJson: [],
|
|
40
40
|
wikiUsers: [],
|
|
41
41
|
wiki_created_at: '',
|
|
42
|
+
showSheet: false,
|
|
43
|
+
sheetMode: 'forward',
|
|
44
|
+
originPost: {},
|
|
42
45
|
|
|
43
46
|
postTabs: [{
|
|
44
47
|
title: "最新",
|
|
@@ -1260,6 +1263,7 @@ Page({
|
|
|
1260
1263
|
});
|
|
1261
1264
|
},
|
|
1262
1265
|
onCommentTap(e) {
|
|
1266
|
+
debugger
|
|
1263
1267
|
// this.setData({
|
|
1264
1268
|
// sheetMode: 'comment',
|
|
1265
1269
|
// showSheet: true,
|
|
@@ -1274,6 +1278,24 @@ Page({
|
|
|
1274
1278
|
},
|
|
1275
1279
|
|
|
1276
1280
|
|
|
1281
|
+
onCloseSheet() {
|
|
1282
|
+
this.setData({
|
|
1283
|
+
showSheet: false
|
|
1284
|
+
});
|
|
1285
|
+
},
|
|
1286
|
+
|
|
1287
|
+
onSubmitSheet() {
|
|
1288
|
+
this.setData({
|
|
1289
|
+
showSheet: false
|
|
1290
|
+
});
|
|
1291
|
+
},
|
|
1292
|
+
|
|
1293
|
+
chooseTopic(e) {
|
|
1294
|
+
this.onPauseAllVideo()
|
|
1295
|
+
wx.navigateTo({
|
|
1296
|
+
url: '../addSubject/addSubject',
|
|
1297
|
+
});
|
|
1298
|
+
},
|
|
1277
1299
|
|
|
1278
1300
|
|
|
1279
1301
|
|
package/pages/game/game.json
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
"experience-item": "../../components/experience-item/experience-item",
|
|
5
5
|
"wiki-renderer": "../../components/wiki-renderer/wiki-renderer",
|
|
6
6
|
"van-tab": "@vant/weapp/tab/index",
|
|
7
|
-
"van-tabs": "@vant/weapp/tabs/index"
|
|
7
|
+
"van-tabs": "@vant/weapp/tabs/index",
|
|
8
|
+
"bottomSheet": "../../components/bottomSheet/bottomSheet"
|
|
8
9
|
},
|
|
9
10
|
"enablePullDownRefresh": true
|
|
10
11
|
}
|
package/pages/game/game.wxml
CHANGED
|
@@ -182,7 +182,7 @@
|
|
|
182
182
|
<van-tab title="{{item.title}}">
|
|
183
183
|
<view class="post-list">
|
|
184
184
|
<block wx:for="{{posts[item.filter]}}" wx:for-item="post" wx:key="item">
|
|
185
|
-
<post-item item="{{post}}" bind:moreTap="onMoreTap" data-index="{{index}}" bind:
|
|
185
|
+
<post-item item="{{post}}" bind:moreTap="onMoreTap" data-index="{{index}}" bind:myShareTap="onShareTap" bind:commentTap="onCommentTap" bind:followChanged="onFollowChanged" bind:videoPlay="onVideoPlay" id="postItem-{{item.filter}}-{{index}}" bind:pauseAllVideo="onPauseAllVideo" />
|
|
186
186
|
</block>
|
|
187
187
|
|
|
188
188
|
<!-- 无数据 -->
|
|
@@ -368,4 +368,7 @@
|
|
|
368
368
|
<view class="sheet-divider"></view>
|
|
369
369
|
<view class="sheet-cancel" bindtap="onCloseMoreSheet">取消</view>
|
|
370
370
|
</view>
|
|
371
|
-
</view>
|
|
371
|
+
</view>
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
<bottomSheet id="bottomSheet" insertSubject="{{selectedTopic}}" visible="{{showSheet}}" mode="{{sheetMode}}" originData="{{originPost}}" bind:close="onCloseSheet" bind:submit="onSubmitSheet" bind:chooseTopic="chooseTopic" />
|