Enford %!s(int64=5) %!d(string=hai) anos
pai
achega
cc95eeb5c4
Modificáronse 32 ficheiros con 44487 adicións e 369 borrados
  1. 3 0
      src/main/java/com/jeeplus/modules/sys/dao/OfficeDao.java
  2. 0 13
      src/main/java/com/jeeplus/modules/wexinpackage/access/entity/ChangeParty.java
  3. 5 0
      src/main/java/com/jeeplus/modules/wexinpackage/access/service/WeChatCallbackService.java
  4. 0 2
      src/main/java/com/jeeplus/modules/wexinpackage/access/util/access/AccessTokenUtil.java
  5. 2 2
      src/main/java/com/jeeplus/modules/wexinpackage/access/util/access/AddressBookUtil.java
  6. 0 38
      src/main/java/com/jeeplus/modules/wexinpackage/access/web/MessageController.java
  7. 10 0
      src/main/java/com/jeeplus/modules/wexintheorder/entity/TheOrder.java
  8. 75 29
      src/main/java/com/jeeplus/modules/wexintheorder/web/TheOrderController.java
  9. 15 2
      src/main/java/com/jeeplus/modules/workstaff/web/WorkStaffBasicInfoController.java
  10. 4 0
      src/main/resources/mappings/modules/sys/OfficeDao.xml
  11. 5 2
      src/main/resources/mappings/modules/wexintheorder/TheLeadershipDao.xml
  12. 1 1
      src/main/resources/spring-mvc.xml
  13. 63 0
      src/main/webapp/static/wechat/wechat-btn.css
  14. 44 0
      src/main/webapp/static/weixin/css/demos.css
  15. 2304 0
      src/main/webapp/static/weixin/css/jquery-weui.css
  16. 6 0
      src/main/webapp/static/weixin/css/jquery-weui.min.css
  17. 374 0
      src/main/webapp/static/weixin/css/style.css
  18. 16713 0
      src/main/webapp/static/weixin/js/city-picker.js
  19. 5 0
      src/main/webapp/static/weixin/js/city-picker.min.js
  20. 6276 0
      src/main/webapp/static/weixin/js/jquery-weui.js
  21. 13 0
      src/main/webapp/static/weixin/js/jquery-weui.min.js
  22. 42 0
      src/main/webapp/static/weixin/js/jquery.Spinner.js
  23. 4160 0
      src/main/webapp/static/weixin/js/swiper.js
  24. 17 0
      src/main/webapp/static/weixin/js/swiper.min.js
  25. 841 0
      src/main/webapp/static/weixin/lib/fastclick.js
  26. 9210 0
      src/main/webapp/static/weixin/lib/jquery-2.1.4.js
  27. 2462 0
      src/main/webapp/static/weixin/lib/weui.css
  28. 5 0
      src/main/webapp/static/weixin/lib/weui.min.css
  29. 1587 0
      src/main/webapp/static/weixin/lib/zepto.js
  30. 22 0
      src/main/webapp/webpage/modules/weixin/theorder/error.jsp
  31. 0 280
      src/main/webapp/webpage/modules/weixin/theorder/home.jsp
  32. 223 0
      src/main/webapp/webpage/modules/weixin/theorder/orderMeal.jsp

+ 3 - 0
src/main/java/com/jeeplus/modules/sys/dao/OfficeDao.java

@@ -77,4 +77,7 @@ public interface OfficeDao extends TreeDao<Office> {
     List<String> findChildOfficeId(String parentId);
 
     List<Office> findAllList1(String comId);
+
+    //根据id获取微信id
+	public Integer findWechatId(String officeId);
 }

+ 0 - 13
src/main/java/com/jeeplus/modules/wexinpackage/access/entity/ChangeParty.java

@@ -1,13 +0,0 @@
-package com.jeeplus.modules.wexinpackage.access.entity;
-
-public class ChangeParty {
-
-
-
-
-
-
-
-
-
-}

+ 5 - 0
src/main/java/com/jeeplus/modules/wexinpackage/access/service/WeChatCallbackService.java

@@ -244,4 +244,9 @@ public class WeChatCallbackService {
         user.setFirstFlag("0");
         return user;
     }
+
+    //获取企业微信部门id
+    public Integer findWeChatId(String officeId){
+        return officeDao.findWechatId(officeId);
+    }
 }

+ 0 - 2
src/main/java/com/jeeplus/modules/wexinpackage/access/util/access/AccessTokenUtil.java

@@ -15,7 +15,6 @@ public class AccessTokenUtil {
     //获取redis中得access_token
     public static String getAccessToken(String corpId,String corpSecret){
         String access_token = "";
-//        boolean flag = JedisUtils.exists("access_token");
             access_token = JedisUtils.get("access_token");
         if (null==access_token){
             AccessToken accessTokenUtil = getAccessTokenUtil(corpId, corpSecret);
@@ -27,7 +26,6 @@ public class AccessTokenUtil {
     //获取全过程action
     public static String getAccessTokenTotal(String corpId,String corpSecret){
         String access_token = "";
-//        boolean flag = JedisUtils.exists("access_token");
         access_token = JedisUtils.get("access_token_total");
         if (null==access_token){
             AccessToken accessTokenUtil = getAccessTokenUtil(corpId, corpSecret);

+ 2 - 2
src/main/java/com/jeeplus/modules/wexinpackage/access/util/access/AddressBookUtil.java

@@ -10,11 +10,11 @@ import org.slf4j.LoggerFactory;
 public class AddressBookUtil {
     private static Logger log = (Logger) LoggerFactory.getLogger(RequestAccess.class);
 
-    public static WeChatUser replaceUser(WorkStaffBasicInfo workStaffBasicInfo){
+    public static WeChatUser replaceUser(WorkStaffBasicInfo workStaffBasicInfo,Integer weChatId){
         WeChatUser user1 = new WeChatUser();
         user1.setUserid(workStaffBasicInfo.getNo());
         user1.setName(workStaffBasicInfo.getName());
-        user1.setDepartment(2);
+        user1.setDepartment(weChatId);
         user1.setMobile(workStaffBasicInfo.getMobile());
         user1.setEmail(workStaffBasicInfo.getEmail());
         user1.setGender(workStaffBasicInfo.getGender());

+ 0 - 38
src/main/java/com/jeeplus/modules/wexinpackage/access/web/MessageController.java

@@ -84,42 +84,4 @@ public class MessageController extends BaseController {
         return "modules/weixin/departmentList";
     }
 
-//    public String
-
-
-
-
-//    // 微信加密签名
-//    ${adminPath}/wxMessage/** = anon
-//    String msg_signature = request.getParameter("msg_signature");
-//    // 时间戳
-//    String timestamp = request.getParameter("timestamp");
-//    // 随机数
-//    String nonce = request.getParameter("nonce");
-//    // 随机字符串
-//    String echoStr = request.getParameter("echostr");
-//    //回调key值
-//    String sEchoStr = null;
-//
-//    String contacts_token = "MYTVsHqnNnAwvNJXn6";
-//    String contacts_encodingaeskey = "fnM1vuVzzTdpk8b6EOVto4JMvb7F9ybOmC60R7Lrqy7";
-//    String corpId = "wwb8c36b4b35675fe9";
-//    WXBizMsgCrypt wxcpt;
-//        try {
-//        PrintWriter writer = response.getWriter();
-//        wxcpt = new WXBizMsgCrypt(contacts_token,contacts_encodingaeskey,corpId);
-//        sEchoStr = wxcpt.VerifyURL(msg_signature, timestamp, nonce, echoStr);
-//        if (StringUtils.isBlank(sEchoStr)){
-//            logger.error("url验证失败");
-//        }
-//        writer.write(sEchoStr+"111111111111111");
-//        System.out.println(msg_signature+"111111111111111");
-//        System.out.println(timestamp+"111111111111111");
-//        System.out.println(nonce+"111111111111111");
-//        System.out.println(echoStr+"111111111111111");
-//        System.out.println("连接成功-------------");
-//        writer.close();
-//    }catch (Exception e){
-//        logger.error("企业微信回调验证错误",e);
-//    }
 }

+ 10 - 0
src/main/java/com/jeeplus/modules/wexintheorder/entity/TheOrder.java

@@ -18,6 +18,16 @@ public class TheOrder extends DataEntity<TheOrder> {
     private Date beginDate;
     private Date EndDate;
 
+    private String exits;
+
+    public String getExits() {
+        return exits;
+    }
+
+    public void setExits(String exits) {
+        this.exits = exits;
+    }
+
     public Date getEndDate() {
         return EndDate;
     }

+ 75 - 29
src/main/java/com/jeeplus/modules/wexintheorder/web/TheOrderController.java

@@ -33,25 +33,46 @@ public class TheOrderController extends BaseController {
     //页面显示
     @RequestMapping(value = "orderFrom")
     public String getOrderFrom(Model model, HttpServletRequest request,@RequestParam String code){
-        String userId = OrderUtils.findUserId(code);//获取useerid
-        String weChatUserId = "00000011";
-        TheOrder userOrderEcho = getUserOrderEcho(weChatUserId);
-        model.addAttribute("theOrder",userOrderEcho);
-        return "modules/weixin/theorder/orderMeal";//返回一个界面
+        try {
+            if(null!=code){
+                DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
+                String userId = OrderUtils.findUserId(code);//获取useerid
+                //回显
+                TheOrder userOrderEcho = getUserOrderEcho(userId);
+                //验证今天是否预定过餐
+                //获取工作日 -- 第二天
+                String addOrMinusDayString = OrderUtils.getAddOrMinusDayString(1, dateFormat);
+                //验证是否存在订单  --true未为存在
+                boolean planOrder = getPlanOrder(userId, addOrMinusDayString);
+                if (planOrder){
+                    userOrderEcho.setExits("0");//已经选择过了
+                }else {
+                    userOrderEcho.setExits("1");//未预定
+                }
+                model.addAttribute("theOrder",userOrderEcho);
+                return "modules/weixin/theorder/orderMeal";//返回一个界面
+            }
+        }catch (Exception e){
+            e.printStackTrace();
+        }
+        return "modules/weixin/theorder/error";//返回一个界面
     }
 
     //获取部门以及分管领导信息--回显FROM
     public TheOrder getUserOrderEcho(String weChatUserId){
         TheOrder theOrder = new TheOrder();
+        //查询用户
         User user = theLeadershipService.findUser(weChatUserId);
         String userId = user.getId();//获取用户id
         //获取用户user
         //添加回显对象
         theOrder.setName(user.getName());//姓名
-        theOrder.setCorrelationId(userId);
+        theOrder.setCorrelationId(userId);//添加用户id
+        //查询是否为第一次
         TheLeadership theLeadership = new TheLeadership();
         theLeadership.setCorrelationId(userId);
         List<TheLeadership> listUserId = theLeadershipService.findListUserId(theLeadership);
+        //如果不是第一次
         if (listUserId.size()>0){
             theOrder.setTeam(listUserId.get(0).getTeam());
             theOrder.setSpecific(listUserId.get(0).getSpecific());
@@ -70,6 +91,7 @@ public class TheOrderController extends BaseController {
     @ResponseBody
     @RequestMapping(value = "noSureTem")
     public AjaxJson getReservation(TheOrder theOrder) throws Exception{
+        getTheOrder(theOrder);//判空
         DateFormat dateFormat1 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
         DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
         Date date = new Date();//当前时间
@@ -84,10 +106,10 @@ public class TheOrderController extends BaseController {
                 ajaxJson.setMsg("您已经预定过餐");
                 return ajaxJson;
             }
-            //修改分管领导
-//            updateLeader(theOrder);
             //保存团队信息,如果status为1,说明是回显信息,无需保存
             saveLeader(theOrder);
+            //修改分管领导
+            updateLeader(theOrder);
             addOrMinusDayString = addOrMinusDayString+" 12:00:00";
             Date parse = dateFormat1.parse(addOrMinusDayString);
             theOrder.setScheduled(parse);//添加预定时间
@@ -116,6 +138,39 @@ public class TheOrderController extends BaseController {
             theLeadershipService.insertLeaderShip(theLeadership);
         }
     }
+    //修改任务
+    public void updateLeader(TheOrder theOrder){
+        //如果时回显
+        if (theOrder.getStatus().equals("0")){
+           try{
+               TheLeadership theLeadership = new TheLeadership();
+               //添加管理id
+               theLeadership.setCorrelationId(theOrder.getCorrelationId());
+               List<TheLeadership> list = theLeadershipService.findListUserId(theLeadership);
+               boolean flag = false;
+               for (TheLeadership theLeadership1:list){
+                   if (!theLeadership1.getTeam().equals(theOrder.getTeam())){
+                       flag = true;
+                   }
+                   if (!theLeadership1.getDepartment().equals(theOrder.getDepartment())){
+                       flag = true;
+                   }
+                   if (!theLeadership1.getSpecific().equals(theOrder.getSpecific())){
+                       flag = true;
+                   }
+               }
+               if (flag){
+                   theLeadership.setTeam(theOrder.getTeam());
+                   theLeadership.setDepartment(theOrder.getDepartment());
+                   theLeadership.setSpecific(theOrder.getSpecific());
+                   theLeadershipService.updateLeaderShip(theLeadership);
+               }
+           }catch (Exception e){
+               e.printStackTrace();
+           }
+        }
+    }
+
     //确定是否预定过餐
     public boolean getPlanOrder(String userId,String addOrMinusDayString){
         boolean flag = false;
@@ -135,25 +190,16 @@ public class TheOrderController extends BaseController {
        return flag;
     }
 
-    //验证是否订过餐
-//    public boolean getSureOrder(String userid){
-//        boolean flag = false;
-//        try {
-//            DateFormat dateFormat=new SimpleDateFormat("yyyy-MM-dd");
-//            //查询今天是否订过餐
-//            TheOrder sureOrder = new TheOrder();
-//            Date date = new Date();
-//            sureOrder.setDateEnd(dateFormat.format(date));
-//            List<TheOrder> list1 = theOrderService.findList(sureOrder);
-//            for (TheOrder theOrder:list1){
-//                if (theOrder.getCorrelationId().equals(userid)){
-//                    flag =true;
-//                    break;
-//                }
-//            }
-//        }catch (Exception e){
-//            e.printStackTrace();
-//        }
-//        return  flag;
-//    }
+    //判断theorder
+    public void getTheOrder(TheOrder theOrder){
+        if (null == theOrder.getTeam()){
+            theOrder.setTeam("");
+        }
+        if (null == theOrder.getDepartment()){
+            theOrder.setDepartment("");
+        }
+        if (null == theOrder.getSpecific()){
+            theOrder.setSpecific("");
+        }
+    }
 }

+ 15 - 2
src/main/java/com/jeeplus/modules/workstaff/web/WorkStaffBasicInfoController.java

@@ -30,6 +30,7 @@ import com.jeeplus.modules.sysimportinfo.entity.SysImportInfo;
 import com.jeeplus.modules.sysimportinfo.service.SysImportInfoService;
 import com.jeeplus.modules.wexinpackage.access.entity.AccessToken;
 import com.jeeplus.modules.wexinpackage.access.entity.WeChatUser;
+import com.jeeplus.modules.wexinpackage.access.service.WeChatCallbackService;
 import com.jeeplus.modules.wexinpackage.access.util.access.AccessTokenUtil;
 import com.jeeplus.modules.wexinpackage.access.util.access.AddressBookUtil;
 import com.jeeplus.modules.wexinpackage.access.util.access.WeChatParamsUtil;
@@ -86,6 +87,8 @@ public class WorkStaffBasicInfoController extends BaseController {
     private SysImportInfoService sysImportInfoService;
     @Autowired
     private  RoleService roleService;
+    @Autowired
+	private WeChatCallbackService weChatCallbackService;
 
 	@ModelAttribute
 	public WorkStaffBasicInfo get(@RequestParam(required=false) String id) {
@@ -258,13 +261,23 @@ public class WorkStaffBasicInfoController extends BaseController {
 			WorkStaffBasicInfo t = workStaffBasicInfoService.get(workStaffBasicInfo.getId());//从数据库取出记录的值
 			MyBeanUtils.copyBeanNotNull2Bean(workStaffBasicInfo, t);//将编辑表单中的非NULL值覆盖数据库记录中的值
 			workStaffBasicInfoService.save(t,request);//保存
+			String officeId = workStaffBasicInfo.getOffice().getId();
+			Integer weChatId = 1;
+			if (null!=officeId){
+				weChatId = weChatCallbackService.findWeChatId(officeId);
+			}
 			String accessToken = AccessTokenUtil. getAccessToken(WeChatParamsUtil.corpId, WeChatParamsUtil.contactsSecret);
-			WeChatUser weChatUser = AddressBookUtil.replaceUser(workStaffBasicInfo);
+			WeChatUser weChatUser = AddressBookUtil.replaceUser(workStaffBasicInfo,weChatId);
 			AddressBookUtil.updateUser(accessToken,weChatUser);
 		}else{//新增表单保存
 			workStaffBasicInfoService.save(workStaffBasicInfo,request);//保存
+			String officeId = workStaffBasicInfo.getOffice().getId();
+			Integer weChatId = 1;
+			if (null!=officeId){
+				weChatId = weChatCallbackService.findWeChatId(officeId);
+			}
 			String accessToken = AccessTokenUtil. getAccessToken(WeChatParamsUtil.corpId, WeChatParamsUtil.contactsSecret);
-			WeChatUser weChatUser = AddressBookUtil.replaceUser(workStaffBasicInfo);
+			WeChatUser weChatUser = AddressBookUtil.replaceUser(workStaffBasicInfo,weChatId);
 			AddressBookUtil.createUser(accessToken,weChatUser);
 		}
 		addMessage(redirectAttributes, "保存员工信息成功");

+ 4 - 0
src/main/resources/mappings/modules/sys/OfficeDao.xml

@@ -745,4 +745,8 @@
             AND a.type = '2'
             AND a.del_flag = '0'
     </select>
+
+	<select id="findWechatId" resultType="java.lang.Integer">
+		SELECT wx_office_id FROM sys_office where id = #{officeId}
+	</select>
 </mapper>

+ 5 - 2
src/main/resources/mappings/modules/wexintheorder/TheLeadershipDao.xml

@@ -95,8 +95,11 @@
 
 	<update id="updateLeaderShip">
 		UPDATE the_order_information SET
-			leadership = #{leadership}
-		WHERE user_id = #{userId}
+			update_date = #{updateDate},
+			team = #{team},
+			department = #{department},
+			`specific` = #{specific}
+		WHERE correlationId = #{correlationId}
 	</update>
 
 

+ 1 - 1
src/main/resources/spring-mvc.xml

@@ -141,5 +141,5 @@
 		</property>
 		<property name="maxUploadSize" value="${web.maxUploadSize}" />
 	</bean>
-	
+
 </beans>

+ 63 - 0
src/main/webapp/static/wechat/wechat-btn.css

@@ -0,0 +1,63 @@
+		.blue {
+			color: #d9eef7;
+			border: solid 1px #0076a3;
+			background: #0095cd;
+			height: 20px;
+			background: -webkit-gradient(linear, left top, left bottom, from(#00adee), to(#0078a5));
+			background: -moz-linear-gradient(top,  #00adee,  #0078a5);
+			filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#00adee', endColorstr='#0078a5');
+		}
+		.blue:hover {
+			background: #007ead;
+			height: 20px;
+			background: -webkit-gradient(linear, left top, left bottom, from(#0095cc), to(#00678e));
+			background: -moz-linear-gradient(top,  #0095cc,  #00678e);
+			filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#0095cc', endColorstr='#00678e');
+		}
+		.blue:active {
+			color: #80bed6;
+			height: 20px;
+			background: -webkit-gradient(linear, left top, left bottom, from(#0078a5), to(#00adee));
+			background: -moz-linear-gradient(top,  #0078a5,  #00adee);
+			filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#0078a5', endColorstr='#00adee');
+		}
+		.button {
+			display: inline-block;
+			outline: none;
+			cursor: pointer;
+			text-align: center;
+			height: 20px;
+			text-decoration: none;
+			font: 11px/100% 'Microsoft yahei',Arial, Helvetica, sans-serif;
+			padding: .5em 2em .55em;
+			text-shadow: 0 1px 1px rgba(0,0,0,.3);
+			-webkit-border-radius: .5em; 
+			-moz-border-radius: .5em;
+			border-radius: 50%;
+			-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.2);
+			-moz-box-shadow: 0 1px 2px rgba(0,0,0,.2);
+			box-shadow: 0 1px 2px rgba(0,0,0,.2);
+		}
+		.button:hover {
+			text-decoration: none;
+			height: 20px;
+		}
+		.button:active {
+			height: 20px;
+			position: relative;
+			top: 1px;
+		}
+
+
+
+
+
+
+
+
+
+
+
+
+
+

+ 44 - 0
src/main/webapp/static/weixin/css/demos.css

@@ -0,0 +1,44 @@
+body, html {
+  height: 100%;
+  -webkit-tap-highlight-color: transparent;
+}
+.demos-title {
+  text-align: center;
+  font-size: 34px;
+  color: #3cc51f;
+  font-weight: 400;
+  margin: 0 15%;
+}
+
+.demos-sub-title {
+  text-align: center;
+  color: #888;
+  font-size: 14px;
+}
+
+.demos-header {
+  padding: 35px 0;
+}
+
+.demos-content-padded {
+  padding: 15px;
+}
+
+.demos-second-title {
+  text-align: center;
+  font-size: 24px;
+  color: #3cc51f;
+  font-weight: 400;
+  margin: 0 15%;
+}
+
+footer {
+  text-align: center;
+  font-size: 14px;
+  padding: 20px;
+}
+
+footer a {
+  color: #999;
+  text-decoration: none;
+}

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 2304 - 0
src/main/webapp/static/weixin/css/jquery-weui.css


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 6 - 0
src/main/webapp/static/weixin/css/jquery-weui.min.css


+ 374 - 0
src/main/webapp/static/weixin/css/style.css

@@ -0,0 +1,374 @@
+@charset "utf-8";
+/* CSS Document */
+
+html { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color :rgba(0, 0, 0, 0); -moz-tap-highlight-color :rgba(0, 0, 0, 0);}
+body {font-family: Helvetica,STHeiti STXihei, Microsoft JhengHei, Microsoft YaHei, Arial; margin: 0; background-color: #fff; height: 100%; overflow-x: hidden; -webkit-overflow-scrolling: touch;  margin:0 auto;}
+
+article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary { display: block; }
+audio, canvas, progress, video { display: inline-block; vertical-align: baseline; }
+audio:not([controls]) { display: none; height: 0; }
+[hidden], template { display: none; }
+svg:not(:root) { overflow: hidden; }
+
+em,s,i{font-style:normal;}
+sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
+sup { top: -0.5em; }
+sub { bottom: -0.25em; }
+img { border: 0; vertical-align: middle; }
+hr { -moz-box-sizing: content-box; box-sizing: content-box; height: 0; }
+pre { overflow: auto; white-space: pre; white-space: pre-wrap; word-wrap: break-word; }
+code, kbd, pre, samp { font-family: monospace, monospace; font-size: 1em; }
+
+button, input, optgroup, select, textarea { color: inherit; font: inherit; margin: 0; outline:none; border:0;}
+button { overflow: visible; }
+button, select { text-transform: none; }
+button, html input[type="button"], input[type="reset"], input[type="submit"] { -webkit-appearance: button; cursor: pointer; }
+button[disabled], html input[disabled] { cursor: default; }
+button::-moz-focus-inner, input::-moz-focus-inner { border: 0; padding: 0; }
+input { line-height: normal; }
+input[type="checkbox"], input[type="radio"] { box-sizing: border-box; padding: 0; }
+input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { height: auto; }
+input[type="search"] { -webkit-appearance: textfield; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }
+input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
+fieldset { border: 1px solid #c0c0c0; margin: 0 2px; padding: 0.35em 0.625em 0.75em; }
+legend { border: 0; padding: 0; }
+textarea { overflow: auto; resize: vertical; }
+optgroup { font-weight: bold; }
+
+table { border-collapse: collapse; border-spacing: 0; }
+td, th { padding: 0; }
+
+button, input, select, textarea { font-family: "Helvetica Neue", Helvetica, STHeiTi, Arial, sans-serif; }
+h1, h2, h3, h4, h5, h6, p, figure, form, blockquote { margin: 0; }
+ul, ol, li, dl, dd { margin: 0; padding: 0; }
+ul, ol { list-style: none outside none; }
+
+.pd-10{padding:10px;}
+
+.mg-t-10{margin-top:10px;}
+.mg10-0{margin:10px 0;}
+.mg-r-10{margin-right:10px;}
+.mg10{margin:10px;}
+.weui-content{background:#f5f5f5;}
+.clearfix{clear:both; display:block;}
+.clear:after,.clear:before{clear:both; display:block; content:"";}
+.num{font-family:Arial, Helvetica, sans-serif;}
+.t-c{text-align:center;}
+.t-r{text-align:right;}
+
+
+.txt-color-ml{color:#586c94;}
+.txt-color-red{color:#e21323;}
+.yellow-color{background-color:#ffb03f;}
+.gray-color{background-color:#ddd;}
+.red-color{background-color:#e21323;}
+.weui-icon-success{color:#15C8DA;}
+
+.font-b{font-weight:bold;}
+.font-12{font-size:12px;}
+.font-13{font-size:12px;}
+.font-14{font-size:14px; font-weight:normal;}
+.font-15{font-size:15px;}
+.font-16{font-size:16px;}
+.font-20{font-size:20px;}
+.mg-tb-5{margin:5px 0 !important;}
+
+
+.w-100{width:100px;}
+.w-90{width:90px;}
+.w-80{width:80px;}
+
+.fl{float:left;}
+.fr{float:right;}
+.radius{border-radius:50%; -moz-border-radius:50%; -ms-border-radius:50%; -o-border-radius:50%; -webkit-border-radius:50%;}
+header,.weui-navbar{
+	background: -moz-linear-gradient(top, #fff 0%, #efefef 100%);
+    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fff), color-stop(100%,#efefef));
+    background: -webkit-linear-gradient(top, #fff 0%,#efefef 100%);
+    background: -o-linear-gradient(top, #fff 0%,#efefef 100%);
+    background: -ms-linear-gradient(top, #fff 0%,#efefef 100%);
+    background: linear-gradient(to bottom, #fff 0%,#efefef 100%);
+	}
+/*滚动条样式*/
+.scrollbar-none::-webkit-scrollbar {/*滚动条宽度设置*/
+    width: 0px;height: 0;
+}
+/*底部导航*/
+.foot-black{height:48px; clear:both;}
+.weui-tabbar.wy-foot-menu{position:fixed;}
+.weui-tabbar__item.weui-bar__item--on .weui-tabbar__label{color:#e21323;}
+.weui-tabbar__label{color:#666;}
+.weui-tabbar__icon{width:22px; height:22px;}
+.weui-tabbar__item .foot-menu-home{background:url(../images/footer01.png) no-repeat; background-size:22px;}
+.weui-tabbar__item.weui-bar__item--on .foot-menu-home{background:url(../images/footer001.png) no-repeat; background-size:22px;}
+.weui-tabbar__item .foot-menu-list{background:url(../images/footer02.png) no-repeat; background-size:22px;}
+.weui-tabbar__item.weui-bar__item--on .foot-menu-list{background:url(../images/footer002.png) no-repeat; background-size:22px;}
+.weui-tabbar__item .foot-menu-cart{background:url(../images/footer03.png) no-repeat; background-size:22px;}
+.weui-tabbar__item.weui-bar__item--on .foot-menu-cart{background:url(../images/footer003.png) no-repeat; background-size:22px;}
+.weui-tabbar__item .foot-menu-member{background:url(../images/footer04.png) no-repeat; background-size:22px;}
+.weui-tabbar__item.weui-bar__item--on .foot-menu-member{background:url(../images/footer004.png) no-repeat; background-size:22px;}
+/*首页轮播*/
+.swiper-container {width: 100%;} 
+.swiper-container img {display: block;width: 100%;}
+/*首页图标链接*/
+.wy-iconlist-box{background:#fff; padding:0 10px;}
+.wy-links-iconlist{display:block; text-align:center; margin:10px 0;}
+.wy-links-iconlist .img{margin:0 23px;}
+.wy-links-iconlist img{width:100%;}
+.wy-links-iconlist p{font-size:11px; color:#454545; margin-top:5px;}
+/*首页新闻切换*/
+.wy-ind-news{padding:10px 40px; height:18px; line-height:18px; overflow:hidden; background:#fff; border-top:1px solid #e9e9e9; border-bottom:1px solid #e9e9e9; font-size:12px; position:relative;}
+.wy-ind-news a{color:#888; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical;}
+.wy-ind-news a.newsmore{display:block; width:40px; height:34px; position:absolute; right:0; top:0; }
+.news-icon-laba{width:18px; height:18px; display:inline-block; position:absolute; left:10px; top:10px; background:url(../images/news-icon.png) no-repeat; background-size:18px;}
+.news-icon-more{width:18px; height:18px; display:inline-block; position:absolute; right:10px; top:10px; background:url(../images/icon-more.png) no-repeat; background-size:18px;}
+
+/*首页模块*/
+.wy-Module{margin:0; position:relative;}
+.wy-Module-tit{padding:8px 10px; line-height:18px; position:absolute; left:0; top:0;}
+.wy-Module-tit span{font-size:12px; font-weight:bold; color:#333; padding-left:5px; line-height:18px;}
+.wy-Module-tit span:after{position:absolute; left:0; top:9px; height:16px; width:3px; background:#e21323; content:"";}
+.swiper-pagination-fraction.jingxuan-pagination{top:0; right:10px; padding-right:10px; bottom:auto; left:auto; text-align:right; font-size:8px;}
+.swiper-pagination-fraction.jingxuan-pagination span{font-size:10px; line-height:34px; color:#999;}
+.wy-Module-tit-line{padding:10px; line-height:18px; text-align:center;}
+.wy-Module-tit-line span{font-size:12px; color:#333; position:relative;}
+.wy-Module-tit-line span:after{position:absolute; left:-20px; top:6px; height:2px; width:10px; background:#e21323; content:"";}
+.wy-Module-tit-line span:before{position:absolute; right:-20px; top:6px; height:2px; width:10px; background:#e21323; content:"";}
+/*产品列表*/
+.wy-pro-list{margin:0; background:#f5f5f5;}
+.wy-pro-list li{width:47%; float:left; margin-bottom:2%; margin-left:2%; position:relative; background:#fff;}
+.wy-pro-list li a{display:block;}
+.wy-pro-list .proimg{height:47vw; position: relative;}
+.wy-pro-list .proimg img{display:block; position:absolute; top:50%; left:50%; height:100%; width:auto; transform-origin: 50% 50% 0px; transform: translate3d(-50%, -50%, 0px);}
+.wy-pro-list .protxt{margin-top:5px; padding:5px 8px;}
+.wy-pro-list .protxt .name{font-size:10px; color:#454545; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;}
+.wy-pro-pri{color:#e21323; font-size:10px; margin-top:3px; line-height:20px;}
+.wy-pro-pri span{font-family:Arial, Helvetica, sans-serif; padding-left:3px; font-size:13px;}
+.morelinks{padding:10px 0; text-align:center;}
+.morelinks a{color:#666; font-size:12px;}
+
+/*商品分类页*/
+.padding-all{padding:10px}
+.w-3{width:33.33%;  float:left; padding:.6rem .4rem; box-sizing: border-box; position: relative;}
+
+.category-top{border-bottom:1px solid #e8e8e8;position:fixed; left:0; top:0; right:0; z-index: 1; background:#F6F6F9}
+.menu-left,.menu-right{position:fixed; left:0;top:44px; bottom:0; overflow-y: scroll;}
+.menu-right #loading{left:11px; top:44px;}
+
+.menu-left{background:#F6F6F9;}
+.menu-left ul li{box-sizing: border-box;  font-size:12px; color:#333; width:76px; height:42px; line-height:42px; text-align: center;}
+.menu-left ul li.active{background:#fff; position:relative;}
+.menu-left ul li.active:before{content: " "; position: absolute;display: block; width:2px; height:100%; background:#e21323; top:0; left:0;}
+.menu-right{background:#fff; position:inherit; margin-left:76px; margin-top:44px; right:0; bottom:0;}
+.menu-right h5{font-size:12px; padding-top:2px; color:#666; margin-top:12px; margin-bottom:4px; border-bottom:1px solid #f5f5f5; padding-bottom:8px;}
+.menu-right h5:first-child{margin-top:0;}
+
+.menu-right ul{overflow: hidden;}
+.menu-right ul li{text-align: center;}
+.menu-right ul li a{display:block; position: absolute; left:3px; top:7px; bottom:7px; right:3px;}
+.menu-right ul li:nth-child(3n+1) a{left:0; right:7px;}
+.menu-right ul li:nth-child(3n) a{right:0; left:7px;}
+.menu-right ul li span{display:block;height:26px; line-height:26px; overflow: hidden; text-align: center; font-size:10px; color:#888;}
+.menu-right ul li img{width:50px; height:50px;	}
+.mune-no-img img{display:none}
+.mune-no-img span{border:1px solid #efefef; color:#555; border-radius:4px;}
+
+/*商品列表*/
+.fixed-top{position:fixed; top:0; left:0; right:0; z-index:100;}
+.pro-sort{text-align:center; background:#f5f5f5; border-bottom:1px solid #efeff4;}
+.pro-sort .weui-flex__item .placeholder{height:40px; line-height:40px; position:relative; font-size:14px;}
+.pro-sort .weui-flex__item .placeholder:before{content:""; height:20px; width:1px; background:#dedede; position:absolute; left:0; top:10px;}
+.pro-sort .weui-flex__item:first-child .placeholder:before{width:0;}
+.pro-sort .weui-flex__item .placeholder.NormalCss,.pro-sort .weui-flex__item .placeholder.SortAscCss,.pro-sort .weui-flex__item .placeholder.SortDescCss{color:#e21323;}
+.pro-sort .weui-flex__item .placeholder.SortAscCss:after{content:""; border:4px solid transparent; border-top:4px solid #e21323; font-size:0; line-height:0; width:0; height:0; position:absolute; right:20px; top:18px;}
+.pro-sort .weui-flex__item .placeholder.SortDescCss:after{content:""; border:4px solid transparent; border-bottom:4px solid #e21323; font-size:0; line-height:0; width:0; height:0; position:absolute; right:20px; top:14px;}
+
+.proListWrap .pro-items{margin-bottom:1px; background:#fff;}
+.weui-media-box__desc{color:#454545;}
+.wy-pro-pri em{font-weight:bold; margin-left:2px;}
+.weui-media-box__info.prolist-ul{margin-top:5px;}
+.weui-media-box_appmsg .weui-media-box__hd{width:82px; height:82px; margin-right:10px;}
+.weui-media-box__desc{line-height:1.4;}
+
+/*商品详情tab切换*/
+.weui-navbar__item.proinfo-tab-tit{padding:10px 0;}
+.weui-navbar__item.proinfo-tab-tit:after{display:none;}
+.weui-navbar__item.proinfo-tab-tit.weui-bar__item--on:before{content:""; width:34px; height:3px; background:#e21323; position:absolute; left:50%; margin-left:-17px; bottom:-1px; z-index:10;}
+.weui-navbar__item.weui-bar__item--on{color:#e21323; font-weight:bold; background-color:inherit;}
+.weui-navbar + .weui-tab__bd.proinfo-tab-con{padding-top:44px;}
+.swiper-zhutu-pagination{width:40px; height:40px; border-radius:50%; background:rgba(0,0,0,.3); color:#fff; font-family:Arial, Helvetica, sans-serif; text-align:center; line-height:40px; font-size:12px;}
+.swiper-zhutu-pagination .swiper-pagination-current{font-size:14px;}
+.swiper-zhutu-pagination .swiper-pagination-total{font-size:12px;}
+.swiper-pagination-fraction.swiper-zhutu-pagination{left:auto; right:20px;}
+
+/*商品信息*/
+.wy-media-box{margin:10px 0; background:#fff; padding:12px 10px; border-top:1px solid #e1e1e1; border-bottom:1px solid #e1e1e1;}
+.wy-media-box-nomg{background:#fff; padding:12px 10px; border-top:1px solid #e1e1e1; border-bottom:1px solid #e1e1e1;}
+.wy-media-box2{margin:10px 0; background:#fff; padding:5px 10px; border-top:1px solid #e1e1e1; border-bottom:1px solid #e1e1e1;}
+.wy-media-box__title{font-size:14px; font-weight:normal; overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 2; line-height:1.5;}
+.weui-media-box_appmsg .weui-media-box__hd.proinfo-txt-l{width:30px; height:auto; vertical-align:top;}
+.promotion-label-tit{font-size:13px; color:#81838e; line-height:15px;}
+.promotion-message{margin: 8px 0;line-height: 15px;text-overflow: ellipsis;white-space: nowrap;overflow: hidden;}
+.promotion-message .yhq{font-style: normal;display: inline-block;height: 13px;border: 1px solid #e21323;font-size: 0;border-radius: 2px;width: auto;overflow: hidden; margin-right:5px; float:left;}
+.label-text {padding: 0 1px;font-size: 10px;color: #e21323;line-height: 13px;height: 13px; display:inline-block;}
+.promotion-item-text{font-size: 13px;color: #222;line-height: 15px;}
+.yhq-btn{margin-bottom:8px; text-align:right;}
+.yhq-btn a{float:left; display:block; border:1px solid #e1e1e1; color:#fff; background:#e21323; font-size:12px; line-height:20px; padding:0 8px; border-radius:4px;}
+/*sku*/
+.promotion-sku{padding:8px 0 5px 0;}
+.promotion-sku li{float:left; margin:0 5px 5px 0;}
+.promotion-sku li a{display:block;border:1px solid #ddd; border-radius:3px; background-color:#fff;min-width:20px;padding:5px 12px; max-width:100%;text-align: center; font-size:13px; color:#222; position:relative;}
+.promotion-sku li.active a:after{content:""; width:12px; height:12px; background:url(../images/xuanze.png) no-repeat; background-size:12px; position:absolute; right:0; bottom:0;}
+.promotion-sku li.active a{border:2px solid #e21323; margin:-1px;}
+
+.wy-media-box2 .weui-media-box_appmsg{border-top:1px solid #ededed; padding-top:5px;}
+.wy-media-box2 .weui-media-box_appmsg:first-child{border:0; padding-top:0; }
+.wy-media-box2.txtpd .weui-media-box_appmsg{padding-top:0; border:0;}
+
+.pro-detail{margin:0; padding:10px; overflow:hidden;}
+.pro-detail img{display:block; width:100%;}
+
+.weui-cell.nopd{padding:0 0 8px 0; border-bottom:1px solid #ededed; margin-bottom:8px;}
+.weui-media-box__info.pinlun{margin-top:8px; padding-bottom:0;}
+.weui-cell__time{float:right; font-size:12px; color:#999;}
+/*五星评价*/
+.comment-item-star {display: inline-block;overflow: hidden;width: 75px;height: 11px;margin-top:5px;margin-bottom:5px;background: url(../images/comment-star.png) repeat-x 0 -11px;background-size: 15px 22px;}
+.comment-item-star .real-star {display: inline-block;height: 22px;background: url(../images/comment-star.png) repeat-x 0 0;background-size: 15px 22px;}
+.comment-stars-width5 {width: 100%;}
+.comment-stars-width4 {width: 80%;}
+.comment-stars-width3 {width: 60%;}
+.comment-stars-width2 {width: 40%;}
+.comment-stars-width1 {width: 20%;}
+
+.mg-com-img{margin-top:8px; margin-bottom:-9px;}
+.list-more{margin:10px 0; background:#fff; border-top:1px solid #e1e1e1; border-bottom:1px solid #e1e1e1;}
+.weui-cell.list-more:before{display:none;}
+/*商品详情底部按钮*/
+.promotion-foot-menu-items{position:relative; padding:5px 10px 0; text-align:center;}
+.promotion-foot-menu-kefu{background:url(../images/icon-kefu.png) no-repeat; background-size:22px;}
+.promotion-foot-menu-cart{background:url(../images/footer03.png) no-repeat; background-size:22px;}
+.promotion-foot-menu-collection{background:url(../images/icon-collection.png) no-repeat; background-size:22px;}
+.promotion-foot-menu-label{line-height:40px; font-size:15px; color:#fff;}
+/*返回顶部*/
+#tophovertree{display:block;position:fixed;width:36px;height:36px;right:10px;bottom:60px;cursor:pointer;background-image:url(../images/tophovertree.gif);opacity:0.9;display:none}
+
+
+/*订单详情*/
+.wy-header{ height:44px; border-bottom:1px solid #e1e1e1; position:relative;}
+.wy-header-icon-back{position: absolute; left:0; top:0; width: 40px;height: 44px; }
+.wy-header-icon-back span {width:20px;height:20px; margin: 12px 0 0 10px; background:url(../images/icon-back.png) no-repeat; background-size:20px; display:block;}
+.wy-header-title{margin: 0 50px;text-align: center;height: 44px;line-height: 44px;font-size: 16px; color:#252525;}
+.promotion-label-tit img{width:80%;}
+.wy-media-box.address-select{margin-top:0; background:url(../images/location-border.png) repeat-x left bottom #fff; border-bottom:0; background-size:auto 3px;}
+
+.address-txt{font-size:13px; color:#232323; line-height:18px;}
+.address-name{font-size:15px; font-weight:bold; color:#232323;}
+.address-name span{margin-right:10px;}
+
+.ord-pro-link{font-size:14px; font-weight:normal; color:#232323;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;word-wrap: normal;word-wrap: break-word;word-break: break-all; line-height:1.8; display:block;}
+.wy-pro-pri.ord-pri{padding:0 0 5px 0;}
+.sitem-tip{padding:2px 6px;background: #e21323;color: #fff;font-size:12px;font-style: normal;}
+/*--订单详情---spinner--*/
+.Spinner{display:block;overflow:hidden;width:84px;margin:0;}
+.Spinner .Amount{width:26px;height:14px;padding:4px 5px;line-height:14px;border-top:1px solid #d9d9d9; border-bottom:1px solid #d9d9d9;float:left;text-align:center;color:#333;outline:0; font-size:14px;}
+.Spinner a{display:inline-block;width:22px;height:22px;border:1px solid #d9d9d9;background-color:#f7f7f7;float:left;cursor:pointer;outline:0;}
+.Spinner a i{font-style:normal;background:url(../images/BuynBtn.png) no-repeat;display:block;width:12px;height:12px;margin:5px;text-indent:999999%;overflow:hidden;}
+.Spinner .Decrease i{background-position:-12px -12px;}
+.Spinner .Increase i{background-position:-12px -0px;}
+.Spinner .DisDe i{background-position:-0px -12px;}
+.Spinner .DisIn i{background-position:-0px -0px;}
+
+.weui-media-box__bd .ord-pro-list{margin-top:8px; padding-top:8px; border-top:1px solid #ededed;}
+.weui-media-box__bd .ord-pro-list:first-child{margin-top:0; padding-top:0; border-top:0;}
+
+.weui-media-box_appmsg .weui-media-box__hd.check-w{width:33px; margin-right:5px;}
+.weui-cell__hd.cat-check{margin-top:29px;}
+.weui-cell__hd.cat-check2{margin-top:0; display:inline-block;}
+
+.weui-tabbar__item.npd,.wy-foot-menu .npd{padding:2px 0;}
+.cart-total-txt{font-size:15px; color:#222; line-height:40px;}
+.cart-total-txt em{font-size:16px; font-weight:bold; color:#e21323;}
+.cart-total-txt i{color:#e21323; font-size:13px;}
+.cart-foot-check-item{padding:0 10px; line-height:40px; background:#ddd; text-align:center;}
+
+.wy-dele{width:20px; height:20px; float:right; background:url(../images/icon-dele.png) no-repeat; display:block; background-size:20px;}
+.weui-cell.allsec-well{padding:0 10px;}
+/*--我的---*/
+.wy-center-top{width:100%; overflow:hidden; background:url(../images/center-top-bj.jpg) no-repeat; background-size:cover;}
+.wy-center-top .userinfo{padding:0}
+.wy-center-top .xx-menu{height:44px; background:rgba(0,0,0,.3);}
+.user-name{color:#fff; font-weight:600; font-size:16px;}
+.user-grade{color:#FC0; margin:2px 0; font-size:13px;}
+.user-integral{font-size:13px; color:#fafafa;}
+.xx-menu-list{padding:5px 0; text-align:center; color:#fff; line-height:17px; position:relative;}
+.xx-menu-list em{font-size:14px; font-family:Arial, Helvetica, sans-serif;}
+.xx-menu-list p{font-size:12px;}
+.xx-menu .weui-flex__item .xx-menu-list:after{content:""; height:24px; width:1px; background:rgba(255,255,255,.5); position:absolute; left:0; top:10px; display:block;}
+.xx-menu .weui-flex__item:first-child .xx-menu-list:after{display:none;}
+.center-alloder{padding:0; font-size:14px; color:#333;}
+.center-list-txt{font-size:14px; color:#333; line-height:20px;}
+.wy-cell{display:-webkit-box;display:-webkit-flex;display:flex;}
+.center-list-icon{width:20px; height:auto;}
+.center-ordersModule{text-align:center; display:block; padding:10px 0; position:relative;}
+.center-ordersModule .imgicon{display:inline-block; height:24px; text-align:center; margin-bottom:5px;}
+.center-ordersModule .imgicon img{height:24px; width:auto;}
+.center-ordersModule .name{font-size:12px; color:#333;}
+.center-money{font-size:15px; color:#000; font-family:Arial, Helvetica, sans-serif;}
+.pro-amount span.font-13{line-height:24px; padding-right:10px;}
+
+.ord-status-txt-ts{font-size:13px; color:#ee7800;}
+.weui-panel__hd{padding:10px 15px 10px 10px;}
+.weui-panel__hd:after{left:10px;}
+
+.ords-btn-dele{display:inline-block; margin-left:10px; padding:2px 15px; font-size:14px; border:1px solid #333; border-radius:3px; color:#333;}
+.ords-btn-com{display:inline-block; margin-left:10px; padding:2px 15px; font-size:14px; border:1px solid #e07100; border-radius:3px; color:#e07100;}
+
+.weui-cell.oder-opt-btnbox{display:block; text-align:right;}
+.ord-statistics{padding:10px 15px; border-top:1px solid #e5e5e5; font-size:13px; text-align:right;}
+.ord-statistics span{margin-left:5px;}
+
+.jyjl .weui-panel__bd{border-top:8px solid #f5f5f5}
+.address-opt{margin-top:10px;}
+.address-list-box{position:relative;}
+.weui-media-box__desc.address-txt{-webkit-line-clamp:10;}
+.address-edit{width:24px; height:24px; display:block; position:absolute; right:15px; top:15px; background:url(../images/icon-edit.png) no-repeat; background-size:24px;}
+.address-box .weui-panel__bd{border-bottom:10px solid #f5f5f5;}
+.default-add{color:#fff; padding:0 5px; font-size:13px; margin-top:5px; display:inline-block; background:#e21323;}
+
+.wy-address-edit{font-size:14px;}
+.weui-label.wy-lab{width:70px;}
+
+.cardlist{font-size:15px;}
+/*--发表评价---*/
+.order-list-Below {height:17px; padding:15px;position: relative; background:#fff;}
+.order-list-Below h1 {font-size:13px;color: #333; height:17px;float:left; line-height:17px;}
+.order-list-Below ul {float:left;height:17px; padding-left:5px;}
+.order-list-Below ul li {float: left;width:17px;height:17px;background: url("../images/pic_heart01.png") no-repeat left top;background-size: 17px 17px; margin:0 10px;}
+.order-list-Below ul li.on {background: url("../images/pic_heart02.png") no-repeat left top;background-size: 17px 17px;}
+.com-txt-area{margin:0;}
+.weui-textarea.txt-area{ font-size:13px; font-family:Helvetica,STHeiti STXihei, Microsoft JhengHei, Microsoft YaHei, Arial; font-weight:normal;}
+.com-button {position:fixed;z-index: 999;bottom: 0;left: 0;clear: both;width: 100%;height:60px;padding-top: 10px;background: #fff;;text-align: center;}
+.com-button a {margin: 0 auto;display: block;width: 90%;height: 39px;line-height: 39px;background: #fff;border: 1px solid #ff4d55;border-radius: 4px;color: #ff4d55;font-size: 14px;}
+
+/*--login---*/
+.login-box{width:100%;overflow:hidden;margin:0 auto;}
+.lg-title{width:100%;height:auto;overflow:hidden;font-size:20px;text-align:center; line-height:100px; color:#fff;}
+
+.login-form{width:100%;height:auto; padding:20px 30px; box-sizing:border-box; -moz-box-sizing:border-box; -webkit-box-sizing:border-box; -o-box-sizing:border-box;}
+.common-div{width:100%;height:40px;overflow:hidden;border-radius:4px;-webkit-border-radius:4px;margin-bottom:20px; position:relative;}
+.login-user-name,.login-user-pasw{background-color:rgba(255,255,255,0.1);}
+.common-div >.common-icon{float:left;width:20px;height:20px;overflow:hidden;margin:10px;}
+.common-div >.common-icon img{width:100%;height:auto;}
+.common-div >input{width:100%;height:40px; padding:6px 10px 6px 46px;background-color:transparent;border:none;outline:none;font-size:15px;color:#fff; box-sizing:border-box; -moz-box-sizing:border-box; -webkit-box-sizing:border-box; -o-box-sizing:border-box; position:absolute; left:0; top:0; font-family:Helvetica,STHeiti STXihei, Microsoft JhengHei, Microsoft YaHei, Arial;}
+.login-btn{background-color:#e21323;color:#fff;font-size:16px;text-align:center;line-height:40px; display:block;}
+.forgets{width:100%;height:auto;margin:0 auto; padding:0 30px;  box-sizing:border-box; -moz-box-sizing:border-box; -webkit-box-sizing:border-box; -o-box-sizing:border-box;}
+.forgets >a{color:#fff;opacity:0.2;font-size:14px;}
+.forgets >a +a{float:right;}
+.login-oth-btn{border:1px solid #9598a5; color:#9598a5;font-size:16px;text-align:center;line-height:40px; display:block;}
+
+.wy-news-list{font-size:15px; color:#232323;}
+.wy-news-time{font-size:12px; color:#888;}
+.wy-news-info{color:#333;}
+.commg{margin:0; font-size:14px;}
+.weui-cells.commg:before{display:none;}
+

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 16713 - 0
src/main/webapp/static/weixin/js/city-picker.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 5 - 0
src/main/webapp/static/weixin/js/city-picker.min.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 6276 - 0
src/main/webapp/static/weixin/js/jquery-weui.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 13 - 0
src/main/webapp/static/weixin/js/jquery-weui.min.js


+ 42 - 0
src/main/webapp/static/weixin/js/jquery.Spinner.js

@@ -0,0 +1,42 @@
+/* jQuery.Spinner V1.0 CopyRight (c) 2014 by:Loyaoo Taobao:http://isseven.taobao.com */
+
+(function($) {
+	
+	$.fn.Spinner = function (opts) {
+	
+		var defaults = {value:1, min:1, len:3, max:99}
+		var options = $.extend(defaults, opts)
+		var keyCodes = {up:38, down:40}
+		return this.each(function() {
+		
+			var a = $('<a></a>'); f(a,0,"Decrease","-");	//加
+			var c = $('<a></a>'); f(c,0,"Increase","+");	//减
+			var b = $('<input/>');f(b,1,"Amount");cv(0);	//值
+			
+			$(this).append(a).append(b).append(c);
+			a.click(function(){cv(-1)});
+			b.keyup(function(){cv(0)});
+			c.click(function(){cv(+1)});
+			b.bind('keyup paste change',function(e){
+				e.keyCode==keyCodes.up&&cv(+1);
+				e.keyCode==keyCodes.down&&cv(-1);
+			});
+			
+			function cv(n){
+				b.val(b.val().replace(/[^\d]/g,''));
+				bv=parseInt(b.val()||options.min)+n;
+				bv>=options.min&&bv<=options.max&&b.val(bv);
+				if(bv<=options.min){b.val(options.min);f(a,2,"DisDe","Decrease");}else{f(a,2,"Decrease","DisDe");}
+				if(bv>=options.max){b.val(options.max);f(c,2,"DisIn","Increase");}else{f(c,2,"Increase","DisIn");}
+			}
+			
+		});
+
+		function f(o,t,c,s){
+			t==0&&o.addClass(c).attr("href","javascript:void(0)").append("<i></i>").find("i").append(s);
+			t==1&&o.addClass(c).attr({"value":options.value,"autocomplete":"off","maxlength":options.len});
+			t==2&&o.addClass(c).removeClass(s);
+		}
+	}
+	
+})(jQuery);

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 4160 - 0
src/main/webapp/static/weixin/js/swiper.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 17 - 0
src/main/webapp/static/weixin/js/swiper.min.js


+ 841 - 0
src/main/webapp/static/weixin/lib/fastclick.js

@@ -0,0 +1,841 @@
+;(function () {
+	'use strict';
+
+	/**
+	 * @preserve FastClick: polyfill to remove click delays on browsers with touch UIs.
+	 *
+	 * @codingstandard ftlabs-jsv2
+	 * @copyright The Financial Times Limited [All Rights Reserved]
+	 * @license MIT License (see LICENSE.txt)
+	 */
+
+	/*jslint browser:true, node:true*/
+	/*global define, Event, Node*/
+
+
+	/**
+	 * Instantiate fast-clicking listeners on the specified layer.
+	 *
+	 * @constructor
+	 * @param {Element} layer The layer to listen on
+	 * @param {Object} [options={}] The options to override the defaults
+	 */
+	function FastClick(layer, options) {
+		var oldOnClick;
+
+		options = options || {};
+
+		/**
+		 * Whether a click is currently being tracked.
+		 *
+		 * @type boolean
+		 */
+		this.trackingClick = false;
+
+
+		/**
+		 * Timestamp for when click tracking started.
+		 *
+		 * @type number
+		 */
+		this.trackingClickStart = 0;
+
+
+		/**
+		 * The element being tracked for a click.
+		 *
+		 * @type EventTarget
+		 */
+		this.targetElement = null;
+
+
+		/**
+		 * X-coordinate of touch start event.
+		 *
+		 * @type number
+		 */
+		this.touchStartX = 0;
+
+
+		/**
+		 * Y-coordinate of touch start event.
+		 *
+		 * @type number
+		 */
+		this.touchStartY = 0;
+
+
+		/**
+		 * ID of the last touch, retrieved from Touch.identifier.
+		 *
+		 * @type number
+		 */
+		this.lastTouchIdentifier = 0;
+
+
+		/**
+		 * Touchmove boundary, beyond which a click will be cancelled.
+		 *
+		 * @type number
+		 */
+		this.touchBoundary = options.touchBoundary || 10;
+
+
+		/**
+		 * The FastClick layer.
+		 *
+		 * @type Element
+		 */
+		this.layer = layer;
+
+		/**
+		 * The minimum time between tap(touchstart and touchend) events
+		 *
+		 * @type number
+		 */
+		this.tapDelay = options.tapDelay || 200;
+
+		/**
+		 * The maximum time for a tap
+		 *
+		 * @type number
+		 */
+		this.tapTimeout = options.tapTimeout || 700;
+
+		if (FastClick.notNeeded(layer)) {
+			return;
+		}
+
+		// Some old versions of Android don't have Function.prototype.bind
+		function bind(method, context) {
+			return function() { return method.apply(context, arguments); };
+		}
+
+
+		var methods = ['onMouse', 'onClick', 'onTouchStart', 'onTouchMove', 'onTouchEnd', 'onTouchCancel'];
+		var context = this;
+		for (var i = 0, l = methods.length; i < l; i++) {
+			context[methods[i]] = bind(context[methods[i]], context);
+		}
+
+		// Set up event handlers as required
+		if (deviceIsAndroid) {
+			layer.addEventListener('mouseover', this.onMouse, true);
+			layer.addEventListener('mousedown', this.onMouse, true);
+			layer.addEventListener('mouseup', this.onMouse, true);
+		}
+
+		layer.addEventListener('click', this.onClick, true);
+		layer.addEventListener('touchstart', this.onTouchStart, false);
+		layer.addEventListener('touchmove', this.onTouchMove, false);
+		layer.addEventListener('touchend', this.onTouchEnd, false);
+		layer.addEventListener('touchcancel', this.onTouchCancel, false);
+
+		// Hack is required for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2)
+		// which is how FastClick normally stops click events bubbling to callbacks registered on the FastClick
+		// layer when they are cancelled.
+		if (!Event.prototype.stopImmediatePropagation) {
+			layer.removeEventListener = function(type, callback, capture) {
+				var rmv = Node.prototype.removeEventListener;
+				if (type === 'click') {
+					rmv.call(layer, type, callback.hijacked || callback, capture);
+				} else {
+					rmv.call(layer, type, callback, capture);
+				}
+			};
+
+			layer.addEventListener = function(type, callback, capture) {
+				var adv = Node.prototype.addEventListener;
+				if (type === 'click') {
+					adv.call(layer, type, callback.hijacked || (callback.hijacked = function(event) {
+						if (!event.propagationStopped) {
+							callback(event);
+						}
+					}), capture);
+				} else {
+					adv.call(layer, type, callback, capture);
+				}
+			};
+		}
+
+		// If a handler is already declared in the element's onclick attribute, it will be fired before
+		// FastClick's onClick handler. Fix this by pulling out the user-defined handler function and
+		// adding it as listener.
+		if (typeof layer.onclick === 'function') {
+
+			// Android browser on at least 3.2 requires a new reference to the function in layer.onclick
+			// - the old one won't work if passed to addEventListener directly.
+			oldOnClick = layer.onclick;
+			layer.addEventListener('click', function(event) {
+				oldOnClick(event);
+			}, false);
+			layer.onclick = null;
+		}
+	}
+
+	/**
+	* Windows Phone 8.1 fakes user agent string to look like Android and iPhone.
+	*
+	* @type boolean
+	*/
+	var deviceIsWindowsPhone = navigator.userAgent.indexOf("Windows Phone") >= 0;
+
+	/**
+	 * Android requires exceptions.
+	 *
+	 * @type boolean
+	 */
+	var deviceIsAndroid = navigator.userAgent.indexOf('Android') > 0 && !deviceIsWindowsPhone;
+
+
+	/**
+	 * iOS requires exceptions.
+	 *
+	 * @type boolean
+	 */
+	var deviceIsIOS = /iP(ad|hone|od)/.test(navigator.userAgent) && !deviceIsWindowsPhone;
+
+
+	/**
+	 * iOS 4 requires an exception for select elements.
+	 *
+	 * @type boolean
+	 */
+	var deviceIsIOS4 = deviceIsIOS && (/OS 4_\d(_\d)?/).test(navigator.userAgent);
+
+
+	/**
+	 * iOS 6.0-7.* requires the target element to be manually derived
+	 *
+	 * @type boolean
+	 */
+	var deviceIsIOSWithBadTarget = deviceIsIOS && (/OS [6-7]_\d/).test(navigator.userAgent);
+
+	/**
+	 * BlackBerry requires exceptions.
+	 *
+	 * @type boolean
+	 */
+	var deviceIsBlackBerry10 = navigator.userAgent.indexOf('BB10') > 0;
+
+	/**
+	 * Determine whether a given element requires a native click.
+	 *
+	 * @param {EventTarget|Element} target Target DOM element
+	 * @returns {boolean} Returns true if the element needs a native click
+	 */
+	FastClick.prototype.needsClick = function(target) {
+		switch (target.nodeName.toLowerCase()) {
+
+		// Don't send a synthetic click to disabled inputs (issue #62)
+		case 'button':
+		case 'select':
+		case 'textarea':
+			if (target.disabled) {
+				return true;
+			}
+
+			break;
+		case 'input':
+
+			// File inputs need real clicks on iOS 6 due to a browser bug (issue #68)
+			if ((deviceIsIOS && target.type === 'file') || target.disabled) {
+				return true;
+			}
+
+			break;
+		case 'label':
+		case 'iframe': // iOS8 homescreen apps can prevent events bubbling into frames
+		case 'video':
+			return true;
+		}
+
+		return (/\bneedsclick\b/).test(target.className);
+	};
+
+
+	/**
+	 * Determine whether a given element requires a call to focus to simulate click into element.
+	 *
+	 * @param {EventTarget|Element} target Target DOM element
+	 * @returns {boolean} Returns true if the element requires a call to focus to simulate native click.
+	 */
+	FastClick.prototype.needsFocus = function(target) {
+		switch (target.nodeName.toLowerCase()) {
+		case 'textarea':
+			return true;
+		case 'select':
+			return !deviceIsAndroid;
+		case 'input':
+			switch (target.type) {
+			case 'button':
+			case 'checkbox':
+			case 'file':
+			case 'image':
+			case 'radio':
+			case 'submit':
+				return false;
+			}
+
+			// No point in attempting to focus disabled inputs
+			return !target.disabled && !target.readOnly;
+		default:
+			return (/\bneedsfocus\b/).test(target.className);
+		}
+	};
+
+
+	/**
+	 * Send a click event to the specified element.
+	 *
+	 * @param {EventTarget|Element} targetElement
+	 * @param {Event} event
+	 */
+	FastClick.prototype.sendClick = function(targetElement, event) {
+		var clickEvent, touch;
+
+		// On some Android devices activeElement needs to be blurred otherwise the synthetic click will have no effect (#24)
+		if (document.activeElement && document.activeElement !== targetElement) {
+			document.activeElement.blur();
+		}
+
+		touch = event.changedTouches[0];
+
+		// Synthesise a click event, with an extra attribute so it can be tracked
+		clickEvent = document.createEvent('MouseEvents');
+		clickEvent.initMouseEvent(this.determineEventType(targetElement), true, true, window, 1, touch.screenX, touch.screenY, touch.clientX, touch.clientY, false, false, false, false, 0, null);
+		clickEvent.forwardedTouchEvent = true;
+		targetElement.dispatchEvent(clickEvent);
+	};
+
+	FastClick.prototype.determineEventType = function(targetElement) {
+
+		//Issue #159: Android Chrome Select Box does not open with a synthetic click event
+		if (deviceIsAndroid && targetElement.tagName.toLowerCase() === 'select') {
+			return 'mousedown';
+		}
+
+		return 'click';
+	};
+
+
+	/**
+	 * @param {EventTarget|Element} targetElement
+	 */
+	FastClick.prototype.focus = function(targetElement) {
+		var length;
+
+		// Issue #160: on iOS 7, some input elements (e.g. date datetime month) throw a vague TypeError on setSelectionRange. These elements don't have an integer value for the selectionStart and selectionEnd properties, but unfortunately that can't be used for detection because accessing the properties also throws a TypeError. Just check the type instead. Filed as Apple bug #15122724.
+		if (deviceIsIOS && targetElement.setSelectionRange && targetElement.type.indexOf('date') !== 0 && targetElement.type !== 'time' && targetElement.type !== 'month') {
+			length = targetElement.value.length;
+			targetElement.setSelectionRange(length, length);
+		} else {
+			targetElement.focus();
+		}
+	};
+
+
+	/**
+	 * Check whether the given target element is a child of a scrollable layer and if so, set a flag on it.
+	 *
+	 * @param {EventTarget|Element} targetElement
+	 */
+	FastClick.prototype.updateScrollParent = function(targetElement) {
+		var scrollParent, parentElement;
+
+		scrollParent = targetElement.fastClickScrollParent;
+
+		// Attempt to discover whether the target element is contained within a scrollable layer. Re-check if the
+		// target element was moved to another parent.
+		if (!scrollParent || !scrollParent.contains(targetElement)) {
+			parentElement = targetElement;
+			do {
+				if (parentElement.scrollHeight > parentElement.offsetHeight) {
+					scrollParent = parentElement;
+					targetElement.fastClickScrollParent = parentElement;
+					break;
+				}
+
+				parentElement = parentElement.parentElement;
+			} while (parentElement);
+		}
+
+		// Always update the scroll top tracker if possible.
+		if (scrollParent) {
+			scrollParent.fastClickLastScrollTop = scrollParent.scrollTop;
+		}
+	};
+
+
+	/**
+	 * @param {EventTarget} targetElement
+	 * @returns {Element|EventTarget}
+	 */
+	FastClick.prototype.getTargetElementFromEventTarget = function(eventTarget) {
+
+		// On some older browsers (notably Safari on iOS 4.1 - see issue #56) the event target may be a text node.
+		if (eventTarget.nodeType === Node.TEXT_NODE) {
+			return eventTarget.parentNode;
+		}
+
+		return eventTarget;
+	};
+
+
+	/**
+	 * On touch start, record the position and scroll offset.
+	 *
+	 * @param {Event} event
+	 * @returns {boolean}
+	 */
+	FastClick.prototype.onTouchStart = function(event) {
+		var targetElement, touch, selection;
+
+		// Ignore multiple touches, otherwise pinch-to-zoom is prevented if both fingers are on the FastClick element (issue #111).
+		if (event.targetTouches.length > 1) {
+			return true;
+		}
+
+		targetElement = this.getTargetElementFromEventTarget(event.target);
+		touch = event.targetTouches[0];
+
+		if (deviceIsIOS) {
+
+			// Only trusted events will deselect text on iOS (issue #49)
+			selection = window.getSelection();
+			if (selection.rangeCount && !selection.isCollapsed) {
+				return true;
+			}
+
+			if (!deviceIsIOS4) {
+
+				// Weird things happen on iOS when an alert or confirm dialog is opened from a click event callback (issue #23):
+				// when the user next taps anywhere else on the page, new touchstart and touchend events are dispatched
+				// with the same identifier as the touch event that previously triggered the click that triggered the alert.
+				// Sadly, there is an issue on iOS 4 that causes some normal touch events to have the same identifier as an
+				// immediately preceeding touch event (issue #52), so this fix is unavailable on that platform.
+				// Issue 120: touch.identifier is 0 when Chrome dev tools 'Emulate touch events' is set with an iOS device UA string,
+				// which causes all touch events to be ignored. As this block only applies to iOS, and iOS identifiers are always long,
+				// random integers, it's safe to to continue if the identifier is 0 here.
+				if (touch.identifier && touch.identifier === this.lastTouchIdentifier) {
+					event.preventDefault();
+					return false;
+				}
+
+				this.lastTouchIdentifier = touch.identifier;
+
+				// If the target element is a child of a scrollable layer (using -webkit-overflow-scrolling: touch) and:
+				// 1) the user does a fling scroll on the scrollable layer
+				// 2) the user stops the fling scroll with another tap
+				// then the event.target of the last 'touchend' event will be the element that was under the user's finger
+				// when the fling scroll was started, causing FastClick to send a click event to that layer - unless a check
+				// is made to ensure that a parent layer was not scrolled before sending a synthetic click (issue #42).
+				this.updateScrollParent(targetElement);
+			}
+		}
+
+		this.trackingClick = true;
+		this.trackingClickStart = event.timeStamp;
+		this.targetElement = targetElement;
+
+		this.touchStartX = touch.pageX;
+		this.touchStartY = touch.pageY;
+
+		// Prevent phantom clicks on fast double-tap (issue #36)
+		if ((event.timeStamp - this.lastClickTime) < this.tapDelay) {
+			event.preventDefault();
+		}
+
+		return true;
+	};
+
+
+	/**
+	 * Based on a touchmove event object, check whether the touch has moved past a boundary since it started.
+	 *
+	 * @param {Event} event
+	 * @returns {boolean}
+	 */
+	FastClick.prototype.touchHasMoved = function(event) {
+		var touch = event.changedTouches[0], boundary = this.touchBoundary;
+
+		if (Math.abs(touch.pageX - this.touchStartX) > boundary || Math.abs(touch.pageY - this.touchStartY) > boundary) {
+			return true;
+		}
+
+		return false;
+	};
+
+
+	/**
+	 * Update the last position.
+	 *
+	 * @param {Event} event
+	 * @returns {boolean}
+	 */
+	FastClick.prototype.onTouchMove = function(event) {
+		if (!this.trackingClick) {
+			return true;
+		}
+
+		// If the touch has moved, cancel the click tracking
+		if (this.targetElement !== this.getTargetElementFromEventTarget(event.target) || this.touchHasMoved(event)) {
+			this.trackingClick = false;
+			this.targetElement = null;
+		}
+
+		return true;
+	};
+
+
+	/**
+	 * Attempt to find the labelled control for the given label element.
+	 *
+	 * @param {EventTarget|HTMLLabelElement} labelElement
+	 * @returns {Element|null}
+	 */
+	FastClick.prototype.findControl = function(labelElement) {
+
+		// Fast path for newer browsers supporting the HTML5 control attribute
+		if (labelElement.control !== undefined) {
+			return labelElement.control;
+		}
+
+		// All browsers under test that support touch events also support the HTML5 htmlFor attribute
+		if (labelElement.htmlFor) {
+			return document.getElementById(labelElement.htmlFor);
+		}
+
+		// If no for attribute exists, attempt to retrieve the first labellable descendant element
+		// the list of which is defined here: http://www.w3.org/TR/html5/forms.html#category-label
+		return labelElement.querySelector('button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea');
+	};
+
+
+	/**
+	 * On touch end, determine whether to send a click event at once.
+	 *
+	 * @param {Event} event
+	 * @returns {boolean}
+	 */
+	FastClick.prototype.onTouchEnd = function(event) {
+		var forElement, trackingClickStart, targetTagName, scrollParent, touch, targetElement = this.targetElement;
+
+		if (!this.trackingClick) {
+			return true;
+		}
+
+		// Prevent phantom clicks on fast double-tap (issue #36)
+		if ((event.timeStamp - this.lastClickTime) < this.tapDelay) {
+			this.cancelNextClick = true;
+			return true;
+		}
+
+		if ((event.timeStamp - this.trackingClickStart) > this.tapTimeout) {
+			return true;
+		}
+
+		// Reset to prevent wrong click cancel on input (issue #156).
+		this.cancelNextClick = false;
+
+		this.lastClickTime = event.timeStamp;
+
+		trackingClickStart = this.trackingClickStart;
+		this.trackingClick = false;
+		this.trackingClickStart = 0;
+
+		// On some iOS devices, the targetElement supplied with the event is invalid if the layer
+		// is performing a transition or scroll, and has to be re-detected manually. Note that
+		// for this to function correctly, it must be called *after* the event target is checked!
+		// See issue #57; also filed as rdar://13048589 .
+		if (deviceIsIOSWithBadTarget) {
+			touch = event.changedTouches[0];
+
+			// In certain cases arguments of elementFromPoint can be negative, so prevent setting targetElement to null
+			targetElement = document.elementFromPoint(touch.pageX - window.pageXOffset, touch.pageY - window.pageYOffset) || targetElement;
+			targetElement.fastClickScrollParent = this.targetElement.fastClickScrollParent;
+		}
+
+		targetTagName = targetElement.tagName.toLowerCase();
+		if (targetTagName === 'label') {
+			forElement = this.findControl(targetElement);
+			if (forElement) {
+				this.focus(targetElement);
+				if (deviceIsAndroid) {
+					return false;
+				}
+
+				targetElement = forElement;
+			}
+		} else if (this.needsFocus(targetElement)) {
+
+			// Case 1: If the touch started a while ago (best guess is 100ms based on tests for issue #36) then focus will be triggered anyway. Return early and unset the target element reference so that the subsequent click will be allowed through.
+			// Case 2: Without this exception for input elements tapped when the document is contained in an iframe, then any inputted text won't be visible even though the value attribute is updated as the user types (issue #37).
+			if ((event.timeStamp - trackingClickStart) > 100 || (deviceIsIOS && window.top !== window && targetTagName === 'input')) {
+				this.targetElement = null;
+				return false;
+			}
+
+			this.focus(targetElement);
+			this.sendClick(targetElement, event);
+
+			// Select elements need the event to go through on iOS 4, otherwise the selector menu won't open.
+			// Also this breaks opening selects when VoiceOver is active on iOS6, iOS7 (and possibly others)
+			if (!deviceIsIOS || targetTagName !== 'select') {
+				this.targetElement = null;
+				event.preventDefault();
+			}
+
+			return false;
+		}
+
+		if (deviceIsIOS && !deviceIsIOS4) {
+
+			// Don't send a synthetic click event if the target element is contained within a parent layer that was scrolled
+			// and this tap is being used to stop the scrolling (usually initiated by a fling - issue #42).
+			scrollParent = targetElement.fastClickScrollParent;
+			if (scrollParent && scrollParent.fastClickLastScrollTop !== scrollParent.scrollTop) {
+				return true;
+			}
+		}
+
+		// Prevent the actual click from going though - unless the target node is marked as requiring
+		// real clicks or if it is in the whitelist in which case only non-programmatic clicks are permitted.
+		if (!this.needsClick(targetElement)) {
+			event.preventDefault();
+			this.sendClick(targetElement, event);
+		}
+
+		return false;
+	};
+
+
+	/**
+	 * On touch cancel, stop tracking the click.
+	 *
+	 * @returns {void}
+	 */
+	FastClick.prototype.onTouchCancel = function() {
+		this.trackingClick = false;
+		this.targetElement = null;
+	};
+
+
+	/**
+	 * Determine mouse events which should be permitted.
+	 *
+	 * @param {Event} event
+	 * @returns {boolean}
+	 */
+	FastClick.prototype.onMouse = function(event) {
+
+		// If a target element was never set (because a touch event was never fired) allow the event
+		if (!this.targetElement) {
+			return true;
+		}
+
+		if (event.forwardedTouchEvent) {
+			return true;
+		}
+
+		// Programmatically generated events targeting a specific element should be permitted
+		if (!event.cancelable) {
+			return true;
+		}
+
+		// Derive and check the target element to see whether the mouse event needs to be permitted;
+		// unless explicitly enabled, prevent non-touch click events from triggering actions,
+		// to prevent ghost/doubleclicks.
+		if (!this.needsClick(this.targetElement) || this.cancelNextClick) {
+
+			// Prevent any user-added listeners declared on FastClick element from being fired.
+			if (event.stopImmediatePropagation) {
+				event.stopImmediatePropagation();
+			} else {
+
+				// Part of the hack for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2)
+				event.propagationStopped = true;
+			}
+
+			// Cancel the event
+			event.stopPropagation();
+			event.preventDefault();
+
+			return false;
+		}
+
+		// If the mouse event is permitted, return true for the action to go through.
+		return true;
+	};
+
+
+	/**
+	 * On actual clicks, determine whether this is a touch-generated click, a click action occurring
+	 * naturally after a delay after a touch (which needs to be cancelled to avoid duplication), or
+	 * an actual click which should be permitted.
+	 *
+	 * @param {Event} event
+	 * @returns {boolean}
+	 */
+	FastClick.prototype.onClick = function(event) {
+		var permitted;
+
+		// It's possible for another FastClick-like library delivered with third-party code to fire a click event before FastClick does (issue #44). In that case, set the click-tracking flag back to false and return early. This will cause onTouchEnd to return early.
+		if (this.trackingClick) {
+			this.targetElement = null;
+			this.trackingClick = false;
+			return true;
+		}
+
+		// Very odd behaviour on iOS (issue #18): if a submit element is present inside a form and the user hits enter in the iOS simulator or clicks the Go button on the pop-up OS keyboard the a kind of 'fake' click event will be triggered with the submit-type input element as the target.
+		if (event.target.type === 'submit' && event.detail === 0) {
+			return true;
+		}
+
+		permitted = this.onMouse(event);
+
+		// Only unset targetElement if the click is not permitted. This will ensure that the check for !targetElement in onMouse fails and the browser's click doesn't go through.
+		if (!permitted) {
+			this.targetElement = null;
+		}
+
+		// If clicks are permitted, return true for the action to go through.
+		return permitted;
+	};
+
+
+	/**
+	 * Remove all FastClick's event listeners.
+	 *
+	 * @returns {void}
+	 */
+	FastClick.prototype.destroy = function() {
+		var layer = this.layer;
+
+		if (deviceIsAndroid) {
+			layer.removeEventListener('mouseover', this.onMouse, true);
+			layer.removeEventListener('mousedown', this.onMouse, true);
+			layer.removeEventListener('mouseup', this.onMouse, true);
+		}
+
+		layer.removeEventListener('click', this.onClick, true);
+		layer.removeEventListener('touchstart', this.onTouchStart, false);
+		layer.removeEventListener('touchmove', this.onTouchMove, false);
+		layer.removeEventListener('touchend', this.onTouchEnd, false);
+		layer.removeEventListener('touchcancel', this.onTouchCancel, false);
+	};
+
+
+	/**
+	 * Check whether FastClick is needed.
+	 *
+	 * @param {Element} layer The layer to listen on
+	 */
+	FastClick.notNeeded = function(layer) {
+		var metaViewport;
+		var chromeVersion;
+		var blackberryVersion;
+		var firefoxVersion;
+
+		// Devices that don't support touch don't need FastClick
+		if (typeof window.ontouchstart === 'undefined') {
+			return true;
+		}
+
+		// Chrome version - zero for other browsers
+		chromeVersion = +(/Chrome\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1];
+
+		if (chromeVersion) {
+
+			if (deviceIsAndroid) {
+				metaViewport = document.querySelector('meta[name=viewport]');
+
+				if (metaViewport) {
+					// Chrome on Android with user-scalable="no" doesn't need FastClick (issue #89)
+					if (metaViewport.content.indexOf('user-scalable=no') !== -1) {
+						return true;
+					}
+					// Chrome 32 and above with width=device-width or less don't need FastClick
+					if (chromeVersion > 31 && document.documentElement.scrollWidth <= window.outerWidth) {
+						return true;
+					}
+				}
+
+			// Chrome desktop doesn't need FastClick (issue #15)
+			} else {
+				return true;
+			}
+		}
+
+		if (deviceIsBlackBerry10) {
+			blackberryVersion = navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/);
+
+			// BlackBerry 10.3+ does not require Fastclick library.
+			// https://github.com/ftlabs/fastclick/issues/251
+			if (blackberryVersion[1] >= 10 && blackberryVersion[2] >= 3) {
+				metaViewport = document.querySelector('meta[name=viewport]');
+
+				if (metaViewport) {
+					// user-scalable=no eliminates click delay.
+					if (metaViewport.content.indexOf('user-scalable=no') !== -1) {
+						return true;
+					}
+					// width=device-width (or less than device-width) eliminates click delay.
+					if (document.documentElement.scrollWidth <= window.outerWidth) {
+						return true;
+					}
+				}
+			}
+		}
+
+		// IE10 with -ms-touch-action: none or manipulation, which disables double-tap-to-zoom (issue #97)
+		if (layer.style.msTouchAction === 'none' || layer.style.touchAction === 'manipulation') {
+			return true;
+		}
+
+		// Firefox version - zero for other browsers
+		firefoxVersion = +(/Firefox\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1];
+
+		if (firefoxVersion >= 27) {
+			// Firefox 27+ does not have tap delay if the content is not zoomable - https://bugzilla.mozilla.org/show_bug.cgi?id=922896
+
+			metaViewport = document.querySelector('meta[name=viewport]');
+			if (metaViewport && (metaViewport.content.indexOf('user-scalable=no') !== -1 || document.documentElement.scrollWidth <= window.outerWidth)) {
+				return true;
+			}
+		}
+
+		// IE11: prefixed -ms-touch-action is no longer supported and it's recomended to use non-prefixed version
+		// http://msdn.microsoft.com/en-us/library/windows/apps/Hh767313.aspx
+		if (layer.style.touchAction === 'none' || layer.style.touchAction === 'manipulation') {
+			return true;
+		}
+
+		return false;
+	};
+
+
+	/**
+	 * Factory method for creating a FastClick object
+	 *
+	 * @param {Element} layer The layer to listen on
+	 * @param {Object} [options={}] The options to override the defaults
+	 */
+	FastClick.attach = function(layer, options) {
+		return new FastClick(layer, options);
+	};
+
+
+	if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {
+
+		// AMD. Register as an anonymous module.
+		define(function() {
+			return FastClick;
+		});
+	} else if (typeof module !== 'undefined' && module.exports) {
+		module.exports = FastClick.attach;
+		module.exports.FastClick = FastClick;
+	} else {
+		window.FastClick = FastClick;
+	}
+}());

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 9210 - 0
src/main/webapp/static/weixin/lib/jquery-2.1.4.js


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 2462 - 0
src/main/webapp/static/weixin/lib/weui.css


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 5 - 0
src/main/webapp/static/weixin/lib/weui.min.css


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 1587 - 0
src/main/webapp/static/weixin/lib/zepto.js


+ 22 - 0
src/main/webapp/webpage/modules/weixin/theorder/error.jsp

@@ -0,0 +1,22 @@
+<%@ page contentType="text/html;charset=UTF-8" %>
+<%@ include file="/webpage/include/taglib.jsp"%>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <title>失败页面</title>
+    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,viewport-fit=cover">
+    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
+    <meta content="yes" name="apple-mobile-web-app-capable">
+    <meta content="black" name="apple-mobile-web-app-status-bar-style">
+    <meta content="telephone=no" name="format-detection">
+    <link rel="stylesheet" href="https://res.wx.qq.com/open/libs/weui/1.1.2/weui-for-work.min.css"/>
+    <script src="/static/jquery/jquery-2.1.1.min.js"></script>
+    <script src="/static/weixin/js/jquery-weui.min.js"></script>
+    <link rel="stylesheet" href="/static/weixin/css/jquery-weui.min.css"/>
+    <link rel="stylesheet" href="/static/wechat/wechat-btn.css"/>
+    <link rel="stylesheet" href="${ctx}/static/weixin/example/example.css"/>
+</head>
+<body>
+请求失败,请重新访问。
+</body>
+</html>

+ 0 - 280
src/main/webapp/webpage/modules/weixin/theorder/home.jsp

@@ -1,280 +0,0 @@
-<%@ page contentType="text/html;charset=UTF-8" %>
-<%@ include file="/webpage/include/taglib.jsp"%>
-<html>
-<head>
-    <title>全过程系统</title>
-    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,viewport-fit=cover">
-    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
-    <meta content="yes" name="apple-mobile-web-app-capable">
-    <meta content="black" name="apple-mobile-web-app-status-bar-style">
-    <meta content="telephone=no" name="format-detection">
-    <link rel="stylesheet" href="https://res.wx.qq.com/open/libs/weui/1.1.2/weui-for-work.min.css"/>
-    <%--<link rel="stylesheet" href="/static/weixin/style/weui.min.css">--%>
-    <link rel="stylesheet" href="${ctx}/static/weixin/example/example.css"/>
-</head>
-<style>
-</style>
-<body>
-<div class="container" id="container"></div>
-<div class="page">
-    <div class="page__hd">
-    </div>
-    <div class="page__bd page__bd_spacing">
-        <ul>
-            <li>
-                <div class="weui-flex js_category">
-                    <p class="weui-flex__item">全过程系统</p>
-                    <img src="/static/weixin/example/images/icon_nav_form.png" alt="">
-                </div>
-                <div class="page__category js_categoryInner">
-                    <div class="weui-cells page__category-content">
-                        <a class="weui-cell weui-cell_access js_item" data-id="button" href="javascript:;">
-                            <div class="weui-cell__bd">
-                                <p>Button</p>
-                            </div>
-                            <div class="weui-cell__ft"></div>
-                        </a>
-                        <a class="weui-cell weui-cell_access js_item" data-id="input" href="${ctx}/wxMessage/messageController/departmentList">
-                            <div class="weui-cell__bd">
-                                <p>部门列表</p>
-                            </div>
-                            <div class="weui-cell__ft"></div>
-                        </a>
-                        <a class="weui-cell weui-cell_access js_item" data-id="list" href="${ctx}/wxMessage/messageController/contactList">
-                            <div class="weui-cell__bd">
-                                <p>联系人列表</p>
-                            </div>
-                            <div class="weui-cell__ft"></div>
-                        </a>
-                        <a class="weui-cell weui-cell_access js_item" data-id="slider" href="javascript:;">
-                            <div class="weui-cell__bd">
-                                <p>Slider</p>
-                            </div>
-                            <div class="weui-cell__ft"></div>
-                        </a>
-                        <a class="weui-cell weui-cell_access js_item" data-id="uploader" href="javascript:;">
-                            <div class="weui-cell__bd">
-                                <p>Uploader</p>
-                            </div>
-                            <div class="weui-cell__ft"></div>
-                        </a>
-                    </div>
-                </div>
-            </li>
-            <li>
-                <div class="weui-flex js_category">
-                    <p class="weui-flex__item">基础组件</p>
-                    <img src="/static/weixin/example/images/icon_nav_layout.png" alt="">
-                </div>
-                <div class="page__category js_categoryInner">
-                    <div class="weui-cells page__category-content">
-                        <a class="weui-cell weui-cell_access js_item" data-id="article" href="javascript:;">
-                            <div class="weui-cell__bd">
-                                <p>Article</p>
-                            </div>
-                            <div class="weui-cell__ft"></div>
-                        </a>
-                        <a class="weui-cell weui-cell_access js_item" data-id="badge" href="javascript:;">
-                            <div class="weui-cell__bd">
-                                <p>Badge</p>
-                            </div>
-                            <div class="weui-cell__ft"></div>
-                        </a>
-                        <a class="weui-cell weui-cell_access js_item" data-id="flex" href="javascript:;">
-                            <div class="weui-cell__bd">
-                                <p>Flex</p>
-                            </div>
-                            <div class="weui-cell__ft"></div>
-                        </a>
-                        <a class="weui-cell weui-cell_access js_item" data-id="footer" href="javascript:;">
-                            <div class="weui-cell__bd">
-                                <p>Footer</p>
-                            </div>
-                            <div class="weui-cell__ft"></div>
-                        </a>
-                        <a class="weui-cell weui-cell_access js_item" data-id="gallery" href="javascript:;">
-                            <div class="weui-cell__bd">
-                                <p>Gallery</p>
-                            </div>
-                            <div class="weui-cell__ft"></div>
-                        </a>
-                        <a class="weui-cell weui-cell_access js_item" data-id="grid" href="javascript:;">
-                            <div class="weui-cell__bd">
-                                <p>Grid</p>
-                            </div>
-                            <div class="weui-cell__ft"></div>
-                        </a>
-                        <a class="weui-cell weui-cell_access js_item" data-id="icons" href="javascript:;">
-                            <div class="weui-cell__bd">
-                                <p>Icons</p>
-                            </div>
-                            <div class="weui-cell__ft"></div>
-                        </a>
-                        <a class="weui-cell weui-cell_access js_item" data-id="loadmore" href="javascript:;">
-                            <div class="weui-cell__bd">
-                                <p>Loadmore</p>
-                            </div>
-                            <div class="weui-cell__ft"></div>
-                        </a>
-                        <a class="weui-cell weui-cell_access js_item" data-id="panel" href="javascript:;">
-                            <div class="weui-cell__bd">
-                                <p>Panel</p>
-                            </div>
-                            <div class="weui-cell__ft"></div>
-                        </a>
-                        <a class="weui-cell weui-cell_access js_item" data-id="preview" href="javascript:;">
-                            <div class="weui-cell__bd">
-                                <p>Preview</p>
-                            </div>
-                            <div class="weui-cell__ft"></div>
-                        </a>
-                        <a class="weui-cell weui-cell_access js_item" data-id="progress" href="javascript:;">
-                            <div class="weui-cell__bd">
-                                <p>Progress</p>
-                            </div>
-                            <div class="weui-cell__ft"></div>
-                        </a>
-                    </div>
-                </div>
-            </li>
-            <li>
-                <div class="weui-flex js_category">
-                    <p class="weui-flex__item">操作反馈</p>
-                    <img src="/static/weixin/example/images/icon_nav_feedback.png" alt="">
-                </div>
-                <div class="page__category js_categoryInner">
-                    <div class="weui-cells page__category-content">
-                        <a class="weui-cell weui-cell_access js_item" data-id="actionsheet" href="javascript:;">
-                            <div class="weui-cell__bd">
-                                <p>Actionsheet</p>
-                            </div>
-                            <div class="weui-cell__ft"></div>
-                        </a>
-                        <a class="weui-cell weui-cell_access js_item" data-id="dialog" href="javascript:;">
-                            <div class="weui-cell__bd">
-                                <p>Dialog</p>
-                            </div>
-                            <div class="weui-cell__ft"></div>
-                        </a>
-                        <a class="weui-cell weui-cell_access js_item" data-id="msg" href="javascript:;">
-                            <div class="weui-cell__bd">
-                                <p>Msg</p>
-                            </div>
-                            <div class="weui-cell__ft"></div>
-                        </a>
-                        <a class="weui-cell weui-cell_access js_item" data-id="picker" href="javascript:;">
-                            <div class="weui-cell__bd">
-                                <p>Picker</p>
-                            </div>
-                            <div class="weui-cell__ft"></div>
-                        </a>
-                        <a class="weui-cell weui-cell_access js_item" data-id="toast" href="javascript:;">
-                            <div class="weui-cell__bd">
-                                <p>Toast</p>
-                            </div>
-                            <div class="weui-cell__ft"></div>
-                        </a>
-                    </div>
-                </div>
-            </li>
-            <li>
-                <div class="weui-flex js_category">
-                    <p class="weui-flex__item">导航相关</p>
-                    <img src="/static/weixin/example/images/icon_nav_nav.png" alt="">
-                </div>
-                <div class="page__category js_categoryInner">
-                    <div class="weui-cells page__category-content">
-                        <a class="weui-cell weui-cell_access js_item" data-id="navbar" href="javascript:;">
-                            <div class="weui-cell__bd">
-                                <p>Navbar</p>
-                            </div>
-                            <div class="weui-cell__ft"></div>
-                        </a>
-                        <a class="weui-cell weui-cell_access js_item" data-id="tabbar" href="javascript:;">
-                            <div class="weui-cell__bd">
-                                <p>Tabbar</p>
-                            </div>
-                            <div class="weui-cell__ft"></div>
-                        </a>
-                    </div>
-                </div>
-            </li>
-            <li>
-                <div class="weui-flex js_category">
-                    <p class="weui-flex__item">搜索相关</p>
-                    <img src="${ctx}/static/weixin/example/images/icon_nav_search.png" alt="">
-                </div>
-                <div class="page__category js_categoryInner">
-                    <div class="weui-cells page__category-content">
-                        <a class="weui-cell weui-cell_access js_item" data-id="searchbar" href="javascript:;">
-                            <div class="weui-cell__bd">
-                                <p>Search Bar</p>
-                            </div>
-                            <div class="weui-cell__ft"></div>
-                        </a>
-                    </div>
-                </div>
-            </li>
-            <li>
-                <div class="weui-flex js_item" data-id="layers">
-                    <p class="weui-flex__item">层级规范</p>
-                    <img src="${ctx}/static/weixin/example/images/icon_nav_z-index.png" alt="">
-                </div>
-            </li>
-        </ul>
-    </div>
-    <div class="page__ft">
-        <a href="javascript:home()"><img src="${ctx}/static/weixin/example/images/icon_footer.png" /></a>
-    </div>
-</div>
-</body>
-<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js">W</script>
-<script src="${ctx}/static/weixin/example/zepto.min.js"></script>
-<script type="text/javascript" src="${ctx}/static/weixin/style/jweixin-1.0.0.js"></script>
-<script src="${ctx}/static/weixin/style/weui.js"></script>
-<script src="https://res.wx.qq.com/open/libs/weuijs/1.0.0/weui.min.js"></script>
-<script src="${ctx}/static/weixin/example/example.js"></script>
-<script type="text/javascript">
-    $(function(){
-        var winH = $(window).height();
-        var categorySpace = 10;
-
-        $('.js_item').on('click', function(){
-            var id = $(this).data('id');
-            window.pageManager.go(id);
-        });
-        $('.js_category').on('click', function(){
-            var $this = $(this),
-                $inner = $this.next('.js_categoryInner'),
-                $page = $this.parents('.page'),
-                $parent = $(this).parent('li');
-            var innerH = $inner.data('height');
-            bear = $page;
-
-            if(!innerH){
-                $inner.css('height', 'auto');
-                innerH = $inner.height();
-                $inner.removeAttr('style');
-                $inner.data('height', innerH);
-            }
-
-            if($parent.hasClass('js_show')){
-                $parent.removeClass('js_show');
-            }else{
-                $parent.siblings().removeClass('js_show');
-
-                $parent.addClass('js_show');
-                if(this.offsetTop + this.offsetHeight + innerH > $page.scrollTop() + winH){
-                    var scrollTop = this.offsetTop + this.offsetHeight + innerH - winH + categorySpace;
-
-                    if(scrollTop > this.offsetTop){
-                        scrollTop = this.offsetTop - categorySpace;
-                    }
-
-                    $page.scrollTop(scrollTop);
-                }
-            }
-        });
-    });
-</script>
-</html>

+ 223 - 0
src/main/webapp/webpage/modules/weixin/theorder/orderMeal.jsp

@@ -0,0 +1,223 @@
+<%@ page contentType="text/html;charset=UTF-8" %>
+<%@ include file="/webpage/include/taglib.jsp"%>
+<html>
+<head>
+    <title>预订餐</title>
+    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,viewport-fit=cover">
+    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
+    <meta content="yes" name="apple-mobile-web-app-capable">
+    <meta content="black" name="apple-mobile-web-app-status-bar-style">
+    <meta content="telephone=no" name="format-detection">
+    <link rel="stylesheet" href="https://res.wx.qq.com/open/libs/weui/1.1.2/weui-for-work.min.css"/>
+    <script src="/static/jquery/jquery-2.1.1.min.js"></script>
+    <script src="/static/weixin/js/jquery-weui.min.js"></script>
+    <link rel="stylesheet" href="/static/weixin/css/jquery-weui.min.css"/>
+    <link rel="stylesheet" href="${ctx}/static/weixin/example/example.css"/>
+    <link rel="stylesheet" href="/static/wechat/wechat-btn.css"/>
+</head>
+<style>
+
+</style>
+<body>
+    <%--<div class="weui-cells weui-cells_form">--%>
+        <form id="subForm" method="post">
+            <div class="weui-cell">
+                <div class="weui-cell__hd"><label class="weui-label">姓名</label></div>
+                <div class="weui-cell__bd">
+                    <input class="weui-input" name="name" value="${theOrder.name}" placeholder="姓名">
+                </div>
+            </div>
+            <div class="weui-cell" id="divTeam">
+                <div class="weui-cell__hd"><label class="weui-label">团队</label></div>
+                <c:if test="${theOrder.status == '0'}">
+                    <div class="weui-cell__bd">
+                        <label><input type="radio" name="team" onchange="teamCg()" value="盛小兰" <c:if test="${theOrder.team != '盛小兰'}">disabled</c:if> <c:if test="${theOrder.team == '盛小兰'}">checked</c:if> />盛小兰</label>&nbsp;&nbsp;
+                        <label><input type="radio" id="isAdmin"  onchange="teamCg()" name="team" value="潘中"   <c:if test="${theOrder.team != '潘中'}">disabled</c:if>  <c:if test="${theOrder.team == '潘中'}">checked</c:if> />潘中</label><br>
+                        <label><input type="radio" name="team" onchange="teamCg()" value="王春生" <c:if test="${theOrder.team != '王春生'}">disabled</c:if> <c:if test="${theOrder.team == '王春生'}">checked</c:if> />王春生</label>&nbsp;&nbsp;
+                        <label><input type="radio" name="team" onchange="teamCg()" value="其他" <c:if test="${theOrder.team != '其他'}">disabled</c:if>  <c:if test="${theOrder.team == '其他'}">checked</c:if> />其他</label>
+                        <%--<label><input type="button" onclick="updateStatus()" value="修改"></label>--%>
+                    </div>
+                    <div class="weui-cell__ft">
+                        <i onclick="updateStatus()" class="weui-icon-cancel"></i>
+                        <%--<input type="button" onclick="updateStatus()" class="weui-btn" value="修改"/>--%>
+                    </div>
+                </c:if>
+
+                <c:if test="${theOrder.status == '1'}">
+                    <div class="weui-cell__bd">
+                        <label><input type="radio" name="team" onchange="teamCg()" value="盛小兰" />盛小兰</label>&nbsp;&nbsp;
+                        <label><input type="radio" id="isAdmin"  onchange="teamCg()" name="team" value="潘中"   <c:if test="${theOrder.team == '潘中'}">checked</c:if> />潘中</label><br>
+                        <label><input type="radio" name="team" onchange="teamCg()" value="王春生" />王春生</label>&nbsp;&nbsp;
+                        <label><input type="radio" name="team" onchange="teamCg()" value="其他"  checked />其他</label>
+                    </div>
+                </c:if>
+            </div>
+                    <div class="weui-cell" id="divDepartment">
+                        <div class="weui-cell__hd"><label class="weui-label">部门</label></div>
+                        <div class="weui-cell__bd">
+                            <input class="weui-input" onChange="departmentChange()" type="text"  id='department' value="${theOrder.department}"/>
+                        </div>
+                    </div>
+                    <input type="text" value="" name="department" id="departmentSure" hidden>
+                    <div class="weui-cell" id="spc1">
+                        <div class="weui-cell__hd"><label class="weui-label">工程部门</label></div>
+                        <div class="weui-cell__bd">
+                            <input class="weui-input" type="text" name="specific1" id='specific1' value="${theOrder.specific}"/>
+                        </div>
+                    </div>
+                    <div class="weui-cell" id="spc2">
+                        <div class="weui-cell__hd"><label class="weui-label">财务部门</label></div>
+                        <div class="weui-cell__bd">
+                            <input class="weui-input" type="text" name="specific2" id='specific2' value="${theOrder.specific}"/>
+                        </div>
+                    </div>
+                    <input type="text" value="" name="specific" id="specific" hidden>
+            <input type="text" value="${theOrder.status}" hidden name="status"/>
+            <input type="text" value="${theOrder.correlationId}" hidden name="correlationId"/>
+            <%--<input class="weui-input" type="text" name="team" id='team' value="${theOrder.team}" onChange="teamChange()"/>--%>
+        </form>
+        <div class="weui-cell">
+        </div>
+        <div style="height: 10px"></div>
+    <%--</div>--%>
+    <div class="" style="text-align: center">
+        <div class="weui-cells__title"><h4>预订餐</h4></div>
+        <div class="weui-cells__tips">请预定工作日的用餐,0-16点可以预订</div>
+        <c:if test="${theOrder.exits == '1'}">
+            <button class="button blue" id="buttonPlan" onclick="plan()"><span id="plan">预订餐</span><br><span id="spantime"></span></button>
+        </c:if>
+        <c:if test="${theOrder.exits == '0'}">
+            <button class="button blue" id="buttonPlan" style="background:#999999;height: 7em;width: 7em" disabled><span>已预定</span></button>
+        </c:if>
+    </div>
+</body>
+<script type="text/javascript">
+    var d=new Date();
+    d.setHours(16);
+    d.setMinutes(0);
+    d.setSeconds(0);
+
+    var d2 = new Date();
+    var maxtime = (d.getTime()-d2.getTime())/1000; //
+    var flag = true;
+    function CountDown() {
+        if (maxtime >= 0) {
+            hours = Math.floor(maxtime /60 /60 % 24);
+            minutes = Math.floor(maxtime / 60 % 60);
+            seconds = Math.floor(maxtime % 60);
+            msg = hours + ":" +minutes + ":" + seconds;
+            document.all["spantime"].innerHTML = msg;
+            if (maxtime <= 5 * 60){
+                if (flag){
+                    $.toast("距离预定结束不到5分钟!", "text");
+                    flag = false;
+                }
+            };
+            --maxtime;
+        } else{
+            clearInterval(timer);
+            changeStatus();
+            $.toast("订餐时间已结束!", "text");
+        }
+    }
+    timer = setInterval("CountDown()", 1000);
+</script>
+<script>
+//订餐方法
+    function plan() {
+        changeStatus();
+        sureDepart();
+        $.post("/weXin/theOrder/noSureTem",$('#subForm').serialize(),function(data){
+            if(data.success){
+                $("#plan").text("已预定");
+                $("#spantime").attr("style","display: none");
+                $.toast(data.msg);
+            }else{
+                $.toast(data.msg, "cancel");
+                $("#button2").attr("disabled",false);
+                $("#button2").attr("background","#0095cd");
+            }
+        })
+    }
+    $('#team').select({
+        input:undefined,
+        title: "选择团队",
+        items: ["潘中", "盛小兰", "王春生","其他"]
+    });
+    $("#department").select({
+        title: "选择部门",
+        items: ["工程", "财务","管理咨询","资产评估","其他"]
+    });
+    $("#specific2").select({
+        title: "选择级联部门(财务)",
+        items: ["审计部", "证券一部", "证券二部","证券三部","其他"]
+    });
+
+    $("#specific1").select({
+        title: "选择级联部门(工程)",
+        items: ["工程一部", "工程二部", "工程三部","其他"]
+    });
+
+    function teamCg() {
+        if ($("#isAdmin").is(":checked")) {
+            $("#divDepartment").attr("style","display:''");
+            departmentChange();
+        }else {
+            $("#divDepartment").attr("style","display: none");
+            $("#spc1").attr("style","display: none");
+            $("#spc2").attr("style","display: none");
+        }
+    }
+    teamCg();
+    //联动效果
+    function teamChange() {
+       var team =  $("#team").val();
+       if (team == '潘中'){
+           $("#divDepartment").attr("style","display: ''");
+       }else {
+           $("#divDepartment").attr("style","display: none");
+           $("#spc1").attr("style","display: none");
+           $("#spc2").attr("style","display: none");
+       }
+    }
+    function departmentChange(){
+        var department = $("#department").val();
+        if (department == '财务'){
+            $("#spc1").attr("style","display: none");
+            $("#spc2").attr("style","display: ''");
+            $("#specific2").val("其他")
+        }else if (department == '工程') {
+            $("#spc2").attr("style","display: none");
+            $("#spc1").attr("style","display: ''");
+            $("#specific1").val("其他")
+        }else {
+            $("#spc1").attr("style","display: none");
+            $("#spc2").attr("style","display: none");
+        }
+    }
+    function changeStatus() {
+        $("#buttonPlan").attr("disabled","true");
+        $("#buttonPlan").attr("style","background:#999999");
+    }
+
+    function updateStatus() {
+        $("input[name='team']").attr("disabled",false);
+    }
+    function sureDepart() {
+        if ($("#isAdmin").is(":checked")){
+            var department = $("#department").val();
+            $("#departmentSure").val(department);
+            if (department == '财务'){
+               $("#specific").val($("#specific2").val());
+            }else if (department == '工程') {
+                $("#specific").val($("#specific1").val());
+            }else {
+                $("#specific").val("");
+            }
+        }else {
+            $("#departmentSure").val("");
+            $("#specific").val("");
+        }
+    }
+</script>
+</html>