|
@@ -110,13 +110,16 @@ Page({
|
|
|
}
|
|
|
},
|
|
|
goToWorks: function (e) {
|
|
|
- this.videoCtx = wx.createVideoContext('myVideo', this);
|
|
|
- this.videoCtx.stop();
|
|
|
+ console.log(this.data.works)
|
|
|
+ // this.videoCtx = wx.createVideoContext('myVideo', this);
|
|
|
+ if(this.videoCtx){
|
|
|
+ this.videoCtx.stop();
|
|
|
+ }
|
|
|
console.log(e);
|
|
|
- let readId = e.target.dataset.uid;
|
|
|
+ let readId = e.target.dataset.id;
|
|
|
let title = this.data.title;
|
|
|
wx.navigateTo({
|
|
|
- url: `../../social/works/works?id=${readId}&tilte=${title}`
|
|
|
+ url: `../../social/works/works?id=${readId}&title=${title}`
|
|
|
})
|
|
|
},
|
|
|
collect: function (e) {
|