Commit ce646f4d0db18e5aabb5ef2a7092caa8421980c5

Authored by yvan.ni
1 parent 23107995

OA单的优化

packageA/pages/distribution/shop/shop.js
... ... @@ -84,6 +84,15 @@ Page({
84 84 })
85 85 // this.getData(true, '/api/weshop/users/distribut/pagemyshop', this.data.currentQuery);
86 86 }
  87 +
  88 + getApp().promiseGet("/api/weshop/storeDistribut/get/"+os.stoid,{}).then(rs=>{
  89 + var dis=rs.data.data;
  90 + if( dis){
  91 + self.setData({storeDistribut:dis})
  92 + }
  93 + })
  94 +
  95 +
87 96 },
88 97  
89 98 /**
... ... @@ -318,10 +327,17 @@ Page({
318 327 * 用户点击右上角分享
319 328 *--点击分享事件--分享我的小店
320 329 *--*/
321   - onShareAppMessage: function (t) { getApp().globalData.no_clear=1;
  330 + onShareAppMessage: function (t) {
322 331  
  332 + getApp().globalData.no_clear=1;
323 333 var th = this;
324 334 var title = "我的小店";
  335 +
  336 + if(this.data.storeDistribut){
  337 + title=this.data.storeDistribut.distributSharetitle;
  338 + title+=" "+this.data.storeDistribut.distributShareremark;
  339 + }
  340 +
325 341 var user_id = this.data.first_leader;
326 342 if (!user_id) {
327 343 user_id = getApp().globalData.user_id
... ...