Commit 287535c6111fcb1d27621b7ff566380a46dd2ef4

Authored by taiyuan
2 parents 1aabacdf 06a8c320

Merge branch 'dev' of http://git.vipzhuang.cn/wxd/MShopWeApp into dev

components/diy_groupbuy/diy_groupbuy.wxss
... ... @@ -90,19 +90,23 @@ swiper {
90 90 } */
91 91 .progress_box{
92 92 position: relative;
  93 + height: 40rpx;
93 94 }
  95 +
94 96 .progress::after{
95 97 content: attr(data-content);
96 98 position: absolute;
97 99 right: 20px;
98 100 font-size: 24rpx;
99 101 color: #fff;
  102 + line-height: 40rpx;
100 103 }
101 104 .on_sale{
102 105 position: absolute;
103 106 font-size: 24rpx;
104 107 left: 40%;
105   - top: 2rpx;
  108 + line-height: 40rpx;
  109 + /* top: 2rpx; */
106 110 color: #fff;
107 111 }
108 112  
... ...
pages/template/index.js
... ... @@ -11,7 +11,7 @@ var t = getApp(),
11 11 Page({
12 12 data: {
13 13 url: os.imghost,
14   - temp_id:0,
  14 + temp_id:0,
15 15 },
16 16  
17 17 onLoad: function(e) {
... ... @@ -45,13 +45,12 @@ Page({
45 45 var data = res.data.data;
46 46 if (data) {
47 47 var temp_data = data;
48   -
49 48 wx.setNavigationBarTitle({
50 49 title: temp_data.page_title,
51 50 });
52   -
53 51 var t_arr = JSON.parse(temp_data.json_str);
54 52 th.setData({
  53 + share_title:temp_data.page_title,
55 54 template_arr: t_arr,
56 55 isTemplate: 1,
57 56 bgcolor_t: temp_data.bkcolor
... ... @@ -98,6 +97,26 @@ Page({
98 97  
99 98 },
100 99  
  100 + /**
  101 + * 用户分享朋友圈
  102 + */
  103 + async onShareTimeline(){
  104 + getApp().getConfig(await function(e){
  105 + this.setData({
  106 + store_config:e
  107 + })
  108 + }.bind(this))
  109 + var {share_title,temp_id,store_config} = this.data;
  110 + // var url= `pages/template/index?sence=${temp_id}`;
  111 + var ob = {
  112 + title:share_title,
  113 + // path: url,
  114 + query:`sence=${temp_id}`,
  115 + imageUrl:this.data.url+store_config.store_logo,
  116 + };
  117 + console.log(ob);
  118 + return ob;
  119 +},
101 120 //---加载更多是靠这个函数----
102 121 onReachBottom: function() {
103 122 if(getApp().globalData.func_list)
... ...