bhq@iemsoft.cn
2018-11-27 e2b48dac099e43f4b3243cdf19a7522e4b5eccbe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>{$page_title}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no" />
<link href="images/touch-icon.png" rel="apple-touch-icon-precomposed" />
<link href="images/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link href="css/pt_1.css" rel="stylesheet" type="text/css" /><!--P-->
<link href="css/pt_2.css" rel="stylesheet" type="text/css" /><!--P-->
{* 包含脚本文件 *}
{insert_scripts files='common.js,lefttime.js'}
<script type="text/javascript" src="js/common1.js"></script>
<script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
<script type="text/javascript">
// 筛选商品属性
jQuery(function($) {
    $(".info").click(function(){
        $('.goodsBuy .fields').slideToggle("fast");
    });
})
 
 
onload = function(){
        document.getElementById('number').value = 1;//更新数量
}
 
function changenum(diff) {
    var num = parseInt(document.getElementById('goods_number').value);
    var goods_number = num + Number(diff);
    if( goods_number >= 1){
        document.getElementById('goods_number').value = goods_number;//更新数量
        document.getElementById('number').value = goods_number;//更新数量
        changePrice();
    }
}
</script>
{insert_scripts files='common.js,lefttime.js'}
<script type="text/javascript">
  {foreach from=$lang.js_languages item=item key=key}
    var {$key} = "{$item}";
  {/foreach}
</script>
</head>
<body>
<div id="page" style="right: 0px; left: 0px; display: block;">
  <header id="header" style="z-index:1;background-color:#F2F4CA; padding-top:5px; border-bottom:solid 1px #D2C253; color:#666; text-align:center; font-size:12px;">
     {$pintuan.user_nickname}正在拼团<br />小伙伴们快来参加吧
  </header>
  <!--商品图 s--->
  <section class="goods_slider">
    <a href="pintuan.php?act=view&act_id={$pintuan.act_id}&u={$userid}">
    <table>
    <tr>
    <td rowspan="2" >
    <img style="margin-left:5px; margin-top:5px;" alt="{$pintuan.goods_name|escape:html}" src="{if strpos($pintuan.goods_thumb,'ttp')>0}{else}{$site_url}{/if}{$pintuan.goods_thumb}" width="80"/>
    </td>
    <td style="margin-top:5px; font-size:12px; line-height:15px;padding:5px; " > {$pintuan.act_name|escape:html}
    </tr>
    <tr>
    <td style="font-size:15px;"> {$pintuan.need_people}人团:<em style="color:#FF0000">{$pintuan.price}/件</em>
    </td>
    </tr>
    </table></a>
    <!-- {if $pintuan.status eq 1 } -->
    <div class="pt_gs_status"><img src="images/pt_success.png" /></div>
    <!-- {elseif $pintuan.status eq 2 } -->
    <div class="pt_gs_status"><img src="images/pt_fail.png" /></div>
    <!-- {/if } -->
  </section>
  <!--商品图 end---> 
 
 
 
 
 
 
    <!-- {if $pintuan.choose_number eq 1 } -->
    <section class="goodsBuy " style="margin-top:-10px;border-bottom:solid 1px #999;" >
        <div class="fields" style=" display:block;">
          <ul class="quantity">
            <div class="items">  <span style="color:#999">购买数量:</span> <span class="ui-number radius5">
              <button type="button" class="decrease radius5" onclick="changenum(-1)">-</button>
              <input class="num" name="number" id="goods_number" autocomplete="off" value="1" min="1" max="" type="number" />
              <button type="button" class="increase radius5" onclick="changenum(1)">+</button>
              </span> </div>
          </ul>
        </div>
    </section>         
 
    <!-- {/if}  -->
  <section style="text-align:center; min-height:100px;">
         <!-- {if $pintuan_orders } -->
             <!-- {foreach from=$pintuan_orders item=item} -->
                <!-- {if $item.follow_user_head } -->
                <img src="{$item.follow_user_head}" style="width:40px;margin-left:5px; margin-top:3px;" >
                <!--{else}-->
                <img src="images/pt_icon_indexn_03.png" style="width:40px;margin-left:5px; margin-top:3px;" >
 
                <!--{/if }-->
              <!-- {/foreach} --> 
         <!--{else}-->
                <!-- {if !empty($pintuan.user_head) } -->
                <img src="{$pintuan.user_head}" style="width:40px;margin-left:5px; margin-top:3px;" >
                <!--{else}-->
                <img src="images/pt_icon_indexn_03.png" style="width:40px;margin-left:5px; margin-top:3px;" >
                <!--{/if }-->
        <!--{/if }-->
  </section>         
 
  <section style="text-align:center">
      <!-- {if $pintuan.available_people } -->
      <div style="font-size:14px">
      还差&nbsp;<em style="color:#FF0000; font-size:16px;">{$pintuan.available_people}</em>&nbsp;人,盼你如北方人盼暖气
      </div>       
      <!--{/if }-->
 
  
              <div class="hdsysj" >
                <p style="width:100%; text-align:center; "> <font class="f3">剩余时间:<span id="leftTime">{$lang.please_waiting}</span></font><br /></p>
               </div>
  
  <div style="height:15px;"><img src="images/pt_sanjiao.png"  /></div>
  <div style="height:35px; line-height:35px;background:#202020; float:left; width:100%;">
   <table width="98%" >
      <tr>
        <td align="left" height="35" >
          <!--{if $pintuan.user_head}-->
         <img src="{$pintuan.user_head}" style="width:30px;margin-left:5px; " >
         <!--{else}-->
         <img src="images/pt_icon_indexn_03.png"  style="width:30px; margin-left:5px; ">
        <!--{/if }-->
        </td>
        <td align="left" height="35"  style="font-size:10px; color:#999; margin-left:5px;padding-bottom:12px;">
        &nbsp;&nbsp; 团长:{$pintuan.user_nickname}
       </td>
        <td align="right" height="35" style="font-size:10px; color:#999; margin-left:5px;padding-bottom:12px;">
        <em style="font-size:10px; color:#999;">发起时间:{$pintuan.create_time}</em></td>
      </tr>
    </table>
  </div>
  </section>
 
<div class="hdjs" id=product>
       <p>玩法介绍:</p>
</div> 
<div class="s-detail" >
      <div class="desc wrap" >
       <img src="images/pt_desc.jpg" style="width:100%;height:auto"  />
      </div>
</div>
<!--商品详情 E  P-->  
  <div class="hdsysj" ><p style="width:100%; text-align:center; color:#FFFFFF"> <a href="pintuan.php" style="color:#FFF">更多拼团活动请点击这里>></a></p></div>
 <br /><br /><br /><br /><br />
 
<form action="pintuan.php?act=buy" method="post" name="buy_form">
                          <input type="hidden" name="pt_id" value="{$pintuan.pt_id}" />
                          <input type="hidden" name="act_id" value="{$pintuan.act_id}" />
                          <input type="hidden" name="level" value="{$pintuan.need_people}" />
                          <input type="hidden" id="number" name="number" value="1" />
</form>
 
<div class="activity_nav">
 <ul> 
 <li class="activity_bian"><a href="index.php"><em class="goods_nav1"></em><span>首页</span></a> </li>
 <li style=" width:66%; line-height:50px; text-align:center; color:#FF0000;" >
 <a  href="pintuan.php?act=userlist" style="color:#FF0000;">我的拼团</a>  
 </li>
 </ul>
 <dl>
        {if $center_click}
  <dd class="flow"><a class="button active_button" onclick="showFDiv();">{$center_action}</a> </dd>
         {else}
  <dd class="flow"><a class="button active_button" onclick="">{$center_action}</a> </dd>
       {/if}
 
  <!--{if $pintuan.need_login && ($userid eq 0)   }-->
     <dd class="goumai"><a style="display:block;" onclick="showReg();">立即参团</a> </dd>
  <!--{else}-->
       {if $right_click}
        <dd class="goumai"><a style="display:block;" onclick="buy_form.submit();">{$right_action}</a> </dd>
       {else}
        <dd class="goumai"><a style="display:block;" href="{$right_url}">{$right_action}</a> </dd>
       {/if}
  <!--{/if}-->
 
 
 
 </dl>                
</div>
 
</div>
 
    <!--关注+分享+返回顶部-Start  P-->
         <!--弹出层 S-->
        <script type="text/javascript">
            function showFDiv(){
                document.getElementById('popDiv').style.display = 'block';
                document.getElementById('hidDiv').style.display = 'block';
                document.getElementById('cartNum').innerHTML = document.getElementById('goods_number').value;
                document.getElementById('cartPrice').innerHTML = document.getElementById('ECS_GOODS_AMOUNT').innerHTML;
            }
            function closeFDiv(){
                document.getElementById('popDiv').style.display = 'none';
                document.getElementById('hidDiv').style.display = 'none';
                document.getElementById('joinDiv').style.display = 'none';
            }
            function showReg(){
                document.getElementById('popReg').style.display = 'block';
                document.getElementById('hidReg').style.display = 'block';
            }
            function closeReg(){
                document.getElementById('popReg').style.display = 'none';
                document.getElementById('hidReg').style.display = 'none';
            }
         </script>
        <script>
        function goTop(){
            $('html,body').animate({'scrollTop':0},600);
        }
        </script>
        <div class="tipMask" id="hidDiv" style="display:none; z-index:9000; background-color:#000; opacity:0.5;" ></div>
        <div class="popGeneral" id="popDiv" style="background:none; top:0px; ">
        <img src="images/share_guide.png" onClick="closeFDiv()"  width="100%" height="100%"/>
        </div>
        
        <!--关注弹出框 S-->
        <div class="tipMask" id="hidReg" style="display:none; z-index:9000; background-color:#000; opacity:0.5;" ></div>
        <div class="popGeneral" id="popReg"  style=" display:none; background:none; bottom:50px;text-align:center;" onclick="closeReg()">
          <!--{if $qr_path}-->
         <img src="{$_SERVER[HTTP_HOST]}/wechat/qrcode/{$qr_path}" style="width:80%;height:auto" >
         <!--{elseif $pintuan.qrcode_img}-->
                <img src="{$pintuan.qrcode_img}" style="width:80%;height:auto"  />
         <!--{else}-->
                <img src="{$_SERVER[HTTP_HOST]}/mobile/images/weixin/pt_qrcode.jpg" style="width:80%;height:auto"  />
         <!--{/if }-->
        </div>
        <!--关注弹出框 E-->
  
 
    <!--关注+分享+返回顶部-End  P-->
 
 
{insert_scripts files='transport.js,utils.js'}
<!--商品参数 E--> 
<script type="text/javascript" src="js/zepto.min.js"></script> 
<script type="text/javascript">
var gmt_end_time = "{$pintuan.end_time|default:0}";
{foreach from=$lang.goods_js item=item key=key}
var {$key} = "{$item}";
var now_time = {$now_time};
{/foreach}
<!-- {literal} -->
 
onload = function()
{
  try
  {
    onload_leftTime(now_time);
    document.getElementById('number').value = 1;//更新数量
  }
  catch (e)
  {}
}
<!-- {/literal} -->
</script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script>
<!-- {/literal} -->
  wx.config({
    debug: false,
    appId: '{$signPackage.appId}',
    timestamp: {$signPackage.timestamp},
    nonceStr: '{$signPackage.nonceStr}',
    signature: '{$signPackage.signature}',
    jsApiList: [
        'onMenuShareTimeline',
        'onMenuShareAppMessage' 
    ]
  });
 wx.ready(function () {
    //监听“分享给朋友”
    wx.onMenuShareAppMessage({
      title: '{if $pintuan.share_title }{$pintuan.share_title }{else}{$pintuan.act_name }{/if}',
      desc: '{if $pintuan.share_brief }{$pintuan.share_brief }{else}{$pintuan.act_name }{/if}',
      link: '{$site_url}mobile/{$pintuan.share_url}',
      imgUrl: '{if strpos($pintuan.share_img,'ttp')>0}{else}{$site_url}{/if}{$pintuan.share_img}', //--P
      trigger: function (res) {        
      },
      success: function (res) {
      },
      cancel: function (res) {
      },
      fail: function (res) {
        alert(JSON.stringify(res));
      }
    });
    
    //分享到朋友圈
    wx.onMenuShareTimeline({
      title: '{if $pintuan.share_title }{$pintuan.share_title }{else}{$pintuan.act_name }{/if}',
      link: '{$site_url}mobile/{$pintuan.share_url}',
      imgUrl: '{if strpos($pintuan.share_img,'ttp')>0}{else}{$site_url}{/if}{$pintuan.share_img}', //--P
      trigger: function (res) {        
      },
      success: function (res) {
      },
      cancel: function (res) {
      },
      fail: function (res) {
        alert(JSON.stringify(res));
      }
    });
    
});
<!-- {literal} -->
</script>
</body>
</html>