| | |
| | | package com.stylefeng.guns.modular.system.controller.general; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.stylefeng.guns.core.base.controller.BaseController; |
| | | import com.stylefeng.guns.modular.system.controller.util.LabelReplaceUtil; |
| | |
| | | public String startingFareExplain(Model model) { |
| | | THtml html = queryHtmlByType(HtmlTypeEnum.SPECIFICATION_STARTING_PRICE.getCode()); |
| | | model.addAttribute("html",html); |
| | | return PREFIX + "estimatedPriceExplain.html"; |
| | | return PREFIX + "startingFareExplain.html"; |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | /** |
| | | * 跳转到加盟基本要求 |
| | | */ |
| | | @RequestMapping("/requirementsJoinExplain") |
| | | public String requirementsJoinExplain(Model model) { |
| | | THtml tHtml = queryHtmlByType(HtmlTypeEnum.BASIC_REQUIREMENTS_JOINING.getCode()); |
| | | JSONObject jsonObject = JSONObject.parseObject(tHtml.getHtml()); |
| | | JSONArray rules = jsonObject.getJSONArray("rules"); |
| | | JSONArray objects = new JSONArray(); |
| | | for (int i = 0; i < rules.size(); i++) { |
| | | JSONObject jsonObject1 = JSONObject.parseObject(JSONObject.toJSONString(rules.get(i))); |
| | | if(i == 0){ |
| | | jsonObject1.put("key",0); |
| | | }else { |
| | | jsonObject1.put("key",1); |
| | | } |
| | | objects.add(jsonObject1); |
| | | } |
| | | model.addAttribute("array",objects); |
| | | model.addAttribute("id",tHtml.getId()); |
| | | return PREFIX + "requirementsJoinExplain.html"; |
| | | } |
| | | |
| | | /** |
| | | * 跳转到代驾服务协议与隐私政策保护,法律条款,个人信息处理规则 |
| | | */ |
| | | @RequestMapping("/agreement") |