From ce646f4d0db18e5aabb5ef2a7092caa8421980c5 Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Tue, 13 Sep 2022 10:40:49 +0800 Subject: [PATCH] OA单的优化 --- packageA/pages/distribution/shop/shop.js | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/packageA/pages/distribution/shop/shop.js b/packageA/pages/distribution/shop/shop.js index f9452e5..fb36af6 100644 --- a/packageA/pages/distribution/shop/shop.js +++ b/packageA/pages/distribution/shop/shop.js @@ -84,6 +84,15 @@ Page({ }) // this.getData(true, '/api/weshop/users/distribut/pagemyshop', this.data.currentQuery); } + + getApp().promiseGet("/api/weshop/storeDistribut/get/"+os.stoid,{}).then(rs=>{ + var dis=rs.data.data; + if( dis){ + self.setData({storeDistribut:dis}) + } + }) + + }, /** @@ -318,10 +327,17 @@ Page({ * 用户点击右上角分享 *--点击分享事件--分享我的小店 *--*/ - onShareAppMessage: function (t) { getApp().globalData.no_clear=1; + onShareAppMessage: function (t) { + getApp().globalData.no_clear=1; var th = this; var title = "我的小店"; + + if(this.data.storeDistribut){ + title=this.data.storeDistribut.distributSharetitle; + title+=" "+this.data.storeDistribut.distributShareremark; + } + var user_id = this.data.first_leader; if (!user_id) { user_id = getApp().globalData.user_id -- libgit2 0.21.4