Authored by Rock Zhang

Merge branch 'develop/wap' into feature/wap/girlsday

  1 +{{> cuxiao/xinshili/header}}
  2 + <div class="main-wrap home">
  3 + <div class="header"></div>
  4 + <a class="coupon" href="{{couponUrl}}"></a>
  5 + <div class="share">
  6 + 快去分享给小伙伴吧 <span class="arrow"></span>
  7 + </div>
  8 + <a class="banner" href="{{banner.url}}">
  9 + <img src="{{banner.img}}">
  10 + </a>
  11 + <div class="download">
  12 + <a class="weixin" href="{{weixinUrl}}">
  13 + 关注有货微信 <span class="arrow"></span>
  14 + </a>
  15 + <a class="app" href="{{appUrl}}">
  16 + 下载YOHO!BUY有货APP <span class="arrow"></span>
  17 + </a>
  18 + </div>
  19 + <div class="footer">
  20 + </div>
  21 + </div>
  22 + <div class="tip hide fail">
  23 + <div class="title">
  24 + 领取失败<br>
  25 + 请刷新重新领取
  26 + </div>
  27 + <div class="desc">
  28 + 如多次领取失败,请联系客服人员<br>
  29 + 带来不便敬请谅解
  30 + </div>
  31 + <a class="button" href="">
  32 + 刷新
  33 + </a>
  34 + </div>
  35 + <div class="tip hide geted">
  36 + <div class="title">
  37 + 你已领取过优惠券
  38 + </div>
  39 + <div class="sub-title">
  40 + 快去分享给更多<br>
  41 + 喜爱<span class="title">潮流</span>的小伙伴吧!
  42 + </div>
  43 + <a class="button close" href="">
  44 + 返回
  45 + </a>
  46 + </div>
  47 +{{> cuxiao/xinshili/footer}}
  1 +<input type="hidden" id="shareTitle" value="{{shareTitle}}">
  2 +<input type="hidden" id="shareDesc" value="{{shareDesc}}">
  3 +<input type="hidden" id="shareImg" value="{{shareImg}}">
  4 +<input type="hidden" id="shareLink" value="{{shareLink}}">
  5 +<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>
  6 +<script type="text/javascript" src="{{staticFile}}/js/libs.js"></script>
  7 +{{#staticJS}}
  8 +<script type="text/javascript" src="{{../staticFile}}/js/{{.}}"></script>
  9 +{{/staticJS}}
  10 +</body>
  1 +<!DOCTYPE html>
  2 +<html>
  3 +<head>
  4 + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5 + <meta charset="utf-8">
  6 + <title>{{staticTitle}}</title>
  7 + <meta name="format-detection" content="telephone=no">
  8 + <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui">
  9 + <meta name="apple-mobile-web-app-capable" content="yes">
  10 + <meta name="apple-mobile-web-app-status-bar-style" content="grey">
  11 + <script type="text/javascript">
  12 + (function(d,c){var e=d.documentElement,a="orientationchange" in window?"orientationchange":"resize",b=function(){var f=e.clientWidth;if(!f){return}if(f>=640){e.style.fontSize="40px"}else{e.style.fontSize=40*(f/640)+"px"}};if(!d.addEventListener){return}b();c.addEventListener(a,b,false);d.addEventListener("DOMContentLoaded",b,false)})(document,window);
  13 + </script>
  14 + <link rel="stylesheet" href="{{staticFile}}/css/style.css">
  15 +</head>
  16 +<body>
  1 +<?php
  2 +
  3 +use Action\HuodongAction;
  4 +use Plugin\Helpers;
  5 +
  6 +/**
  7 + * 元宵抽签活动
  8 + */
  9 +class XinshiliController extends HuodongAction
  10 +{
  11 + // const STATIC_FILE = 'http://localhost:2222/1.0.0';
  12 + const STATIC_FILE = 'http://cdn.yoho.cn/huodong/2016xinshili/1.0.0';
  13 +
  14 + /**
  15 + * 元宵抽签
  16 + */
  17 + public function indexAction()
  18 + {
  19 + $this->_view->display('index', array(
  20 + 'staticTitle' => '新势力',
  21 + 'staticFile' => self::STATIC_FILE,
  22 + 'staticJS' => array(
  23 + 'home.js'
  24 + ),
  25 + 'couponUrl' => '', // 个人中心优惠券地址
  26 + 'banner' => array(
  27 + 'img' => '',
  28 + 'url' => ''
  29 + ),
  30 + 'weixinUrl' => '', // 微信关注地址
  31 + 'appUrl' => '', // APP 下载地址
  32 + 'shareTitle' => '新势力',
  33 + 'shareDesc' => '新势力领券',
  34 + 'shareImg' => 'http://img02.yohoboys.com/staticimg/2016/02/19/16/02dbd38c84eccf1097b7e240452f0de856.png',
  35 + 'shareLink' => Helpers::url('/cuxiao/yuanxiao/index')
  36 + ));
  37 + }
  38 +
  39 +}