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,19 +90,23 @@ swiper {
90 } */ 90 } */
91 .progress_box{ 91 .progress_box{
92 position: relative; 92 position: relative;
  93 + height: 40rpx;
93 } 94 }
  95 +
94 .progress::after{ 96 .progress::after{
95 content: attr(data-content); 97 content: attr(data-content);
96 position: absolute; 98 position: absolute;
97 right: 20px; 99 right: 20px;
98 font-size: 24rpx; 100 font-size: 24rpx;
99 color: #fff; 101 color: #fff;
  102 + line-height: 40rpx;
100 } 103 }
101 .on_sale{ 104 .on_sale{
102 position: absolute; 105 position: absolute;
103 font-size: 24rpx; 106 font-size: 24rpx;
104 left: 40%; 107 left: 40%;
105 - top: 2rpx; 108 + line-height: 40rpx;
  109 + /* top: 2rpx; */
106 color: #fff; 110 color: #fff;
107 } 111 }
108 112
pages/template/index.js
@@ -11,7 +11,7 @@ var t = getApp(), @@ -11,7 +11,7 @@ var t = getApp(),
11 Page({ 11 Page({
12 data: { 12 data: {
13 url: os.imghost, 13 url: os.imghost,
14 - temp_id:0, 14 + temp_id:0,
15 }, 15 },
16 16
17 onLoad: function(e) { 17 onLoad: function(e) {
@@ -45,13 +45,12 @@ Page({ @@ -45,13 +45,12 @@ Page({
45 var data = res.data.data; 45 var data = res.data.data;
46 if (data) { 46 if (data) {
47 var temp_data = data; 47 var temp_data = data;
48 -  
49 wx.setNavigationBarTitle({ 48 wx.setNavigationBarTitle({
50 title: temp_data.page_title, 49 title: temp_data.page_title,
51 }); 50 });
52 -  
53 var t_arr = JSON.parse(temp_data.json_str); 51 var t_arr = JSON.parse(temp_data.json_str);
54 th.setData({ 52 th.setData({
  53 + share_title:temp_data.page_title,
55 template_arr: t_arr, 54 template_arr: t_arr,
56 isTemplate: 1, 55 isTemplate: 1,
57 bgcolor_t: temp_data.bkcolor 56 bgcolor_t: temp_data.bkcolor
@@ -98,6 +97,26 @@ Page({ @@ -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 onReachBottom: function() { 121 onReachBottom: function() {
103 if(getApp().globalData.func_list) 122 if(getApp().globalData.func_list)