|
@@ -28,6 +28,7 @@ Page({
|
|
|
* 生命周期函数--监听页面加载
|
|
|
*/
|
|
|
onLoad(options) {
|
|
|
+ console.log(options);
|
|
|
this.storeBindings = createStoreBindings(this, {
|
|
|
store,
|
|
|
fields: {
|
|
@@ -41,7 +42,6 @@ Page({
|
|
|
this.innerAudioContext = wx.createInnerAudioContext()
|
|
|
},
|
|
|
compareScore() {
|
|
|
- console.log(this.data);
|
|
|
let pkData = this.data.pkData
|
|
|
let score = pkData.score
|
|
|
let myResult = {
|
|
@@ -152,7 +152,6 @@ Page({
|
|
|
canvas.height = res[0].height * dpr;
|
|
|
ctx.scale(dpr, dpr);
|
|
|
ctx.font = '16px PingFang';
|
|
|
- console.log(this.data.victory, this.data.defeated, this.data.equal);
|
|
|
let bgImg = canvas.createImage();
|
|
|
bgImg.src = this.data.equal ? 'https://reader-wx.ai160.com/images/reader/v3/equal.png' : 'https://reader-wx.ai160.com/images/reader/v3/victory.png'
|
|
|
bgImg.onload = () => {
|
|
@@ -209,7 +208,7 @@ Page({
|
|
|
success(res) {
|
|
|
resolve({
|
|
|
title: '请欣赏我的课文朗读作品,点赞+评论。',
|
|
|
- path: `/pages/index/index?&uid=${wx.getStorageSync('uid')}`,
|
|
|
+ path: `/pages/pkResult/index?&uid=${wx.getStorageSync('uid')}`,
|
|
|
imageUrl: res.tempFilePath
|
|
|
})
|
|
|
},
|
|
@@ -226,7 +225,7 @@ Page({
|
|
|
success(res) {
|
|
|
resolve({
|
|
|
title: '请欣赏我的课文朗读作品,点赞+评论。',
|
|
|
- path: `/pages/index/index?&uid=${wx.getStorageSync('uid')}`,
|
|
|
+ path: `/pages/pkResult/index?&uid=${wx.getStorageSync('uid')}`,
|
|
|
imageUrl: res.tempFilePath
|
|
|
})
|
|
|
},
|
|
@@ -248,7 +247,6 @@ Page({
|
|
|
if (from == 'button') {
|
|
|
const promise = new Promise(resolve => {
|
|
|
this.creatShare().then(res => {
|
|
|
- console.log(res);
|
|
|
resolve(res)
|
|
|
})
|
|
|
})
|