Authored by weiqingting

添加 app_version 到 User-Agent

@@ -237,7 +237,8 @@ exports.index = (req, res, next) => { @@ -237,7 +237,8 @@ exports.index = (req, res, next) => {
237 title: '有货学生专享优惠', 237 title: '有货学生专享优惠',
238 http: req.__USER__.http, 238 http: req.__USER__.http,
239 uid: req.__USER__.uid, 239 uid: req.__USER__.uid,
240 - app_version: req.__USER__.app_version 240 + app_version: req.__USER__.app_version,
  241 + isAppNoLogin:req.__USER__.isApp && !req.__USER__.isLogin
241 }; 242 };
242 if (!req.__USER__.isApp) { 243 if (!req.__USER__.isApp) {
243 options.pageHeader = headerModel.setNav({ 244 options.pageHeader = headerModel.setNav({
@@ -39,20 +39,21 @@ @@ -39,20 +39,21 @@
39 <div class="floor-main" style="background-image: url({{image image.src 0 0}});"> 39 <div class="floor-main" style="background-image: url({{image image.src 0 0}});">
40 <a href='{{image.url}}' class="main-left"></a> 40 <a href='{{image.url}}' class="main-left"></a>
41 {{#isEqual status 1}} 41 {{#isEqual status 1}}
42 - {{#if @root.isLogin}}  
43 - <div class="main-right-use" > 42 + {{#if @root.isAppNoLogin}}
  43 + <a href='{{../image.url}}' class="main-right-use" >
44 <span class="on-receive on-lingqu no-bg"> 44 <span class="on-receive on-lingqu no-bg">
45 <p>点击</p> 45 <p>点击</p>
46 <p>领取</p> 46 <p>领取</p>
47 </span> 47 </span>
48 - </div> 48 + </a>
49 {{else}} 49 {{else}}
50 - <a href='{{../image.url}}' class="main-right-use" > 50 + <div class="main-right-use" >
51 <span class="on-receive on-lingqu no-bg"> 51 <span class="on-receive on-lingqu no-bg">
52 <p>点击</p> 52 <p>点击</p>
53 <p>领取</p> 53 <p>领取</p>
54 </span> 54 </span>
55 - </a> 55 + </div>
  56 +
56 {{/if}} 57 {{/if}}
57 {{/isEqual}} 58 {{/isEqual}}
58 {{#isEqual status 2}} 59 {{#isEqual status 2}}
@@ -62,7 +62,7 @@ function getUrlParam(name) { @@ -62,7 +62,7 @@ function getUrlParam(name) {
62 62
63 63
64 64
65 -$('.on-lingqu').on('click', function() { 65 +$('.on-lingqu',"div.main-right-use").on('click', function() {
66 var $curDom = $(this), 66 var $curDom = $(this),
67 req = ''; 67 req = '';
68 68