From d61d56c9632885b960a895e6f7413c22e5d621e9 Mon Sep 17 00:00:00 2001 From: GJW200011 <2399547226@qq.com> Date: Tue, 14 Dec 2021 14:52:17 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E5=89=A7=E7=85=A7=E5=88=86=E4=BA=AB?= =?UTF-8?q?=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/opera/show/show_detail.js | 3 ++- pages/opera/stage/stage_photo.js | 21 ++++++++++++--------- project.config.json | 5 +++-- 3 files changed, 17 insertions(+), 12 deletions(-) diff --git a/pages/opera/show/show_detail.js b/pages/opera/show/show_detail.js index c7a5046..d14bf53 100644 --- a/pages/opera/show/show_detail.js +++ b/pages/opera/show/show_detail.js @@ -146,8 +146,9 @@ Page({ }, stage_click() { let { abb_id } = this.data.Xshow_detail + console.log(this.data.show_detail.show_name); wx.navigateTo({ - url: '/pages/opera/stage/stage_photo?abb_id=' + abb_id, + url: '/pages/opera/stage/stage_photo?abb_id=' + abb_id+"&show_title="+this.data.show_detail.show_name, }) }, diff --git a/pages/opera/stage/stage_photo.js b/pages/opera/stage/stage_photo.js index 3499eb6..1250034 100644 --- a/pages/opera/stage/stage_photo.js +++ b/pages/opera/stage/stage_photo.js @@ -11,25 +11,23 @@ Page({ */ data: { picture_list: [], - // picture_list:[ - // { - // url:'https://mahuaimage.oss-cn-qingdao.aliyuncs.com/mini_app/video/6151925930ce307d3e76d552c946236e07918c526dc0d.jpg' - // }, - // { - // url:'https://mahuaimage.oss-cn-qingdao.aliyuncs.com/mini_app/video/6151924d6e398e1590603cd713bc3750f90be18d2c2fd.jpg' - // }, - // ], + show_title: '开心麻花', }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { + console.log(options); + this.setData({ + show_title: options.show_title, + abb_id: options.abb_id + }) http("/api/v1/share-picture-list", "get", { abb_id: options.abb_id }).then(res => { this.setData({ - picture_list: res.picture_list + picture_list: res.picture_list, }) }) }, @@ -86,5 +84,10 @@ Page({ */ onShareAppMessage: function () { + return { + title: this.data.show_title, + path: '/pages/opera/stage/stage_photo?abb_id=' + this.data.abb_id + "&show_title=" + this.data.show_title, + imageUrl: '' + } } }) \ No newline at end of file diff --git a/project.config.json b/project.config.json index 13d8bee..291b5df 100644 --- a/project.config.json +++ b/project.config.json @@ -37,10 +37,11 @@ "userConfirmedBundleSwitch": false, "packNpmManually": false, "packNpmRelationList": [], - "minifyWXSS": true + "minifyWXSS": true, + "minifyWXML": true }, "compileType": "miniprogram", - "libVersion": "2.21.0", + "libVersion": "2.21.1", "appid": "wx35bc60d481961c1d", "projectname": "miniprogram2", "debugOptions": {