<%@ page import="org.springframework.web.context.WebApplicationContext" %> <%@ page import="org.springframework.web.context.support.WebApplicationContextUtils" %> <%@ page import="sxyx.hzxf.entity.SupplyMessage" %> <%@ page import="sxyx.hzxf.service.HomePageService" %> <%@ page import="java.util.ArrayList" %> <%@ page import="java.util.List" %> <%@ page import="org.jsoup.Connection" %> <%@ page import="sxyx.hzxf.constants.BaseConstants" %> <%@ page import="java.util.Map" %> <%@ page import="sxyx.hzxf.util.JsonUtil" %> <%@ page import="net.sf.json.JSONObject" %> <%@ page import="net.sf.json.JSONArray" %> <%@ page import="java.util.Iterator" %> <%@ page trimDirectiveWhitespaces="true" %> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> 供应商品详情 - 跨境宝 - 跨境供应链服务平台
<% WebApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(config.getServletContext()); HomePageService homePageService = context.getBean(HomePageService.class); Integer supply_id = Integer.valueOf(request.getParameter("id")); String token = BaseConstants.TOURIST_TOKEN; Map message = homePageService.getSupplyMessage(supply_id, token); String supply_title = ""; if (message.get("supply_title")!=null){ supply_title = message.get("supply_title").toString(); } String supply_descript = ""; if(message.get("supply_descript")!=null){ supply_descript = message.get("supply_descript").toString(); } String price =""; if (message.get("price") != null) { price = message.get("price").toString(); } else { price = "面议"; } String product_type = ""; if (message.get("product_type")!=null){ product_type = message.get("product_type").toString(); } String min_order = ""; if (message.get("min_order")!=null){ min_order=message.get("min_order").toString(); }else { min_order="无限制"; } String end_time = ""; if (message.get("end_time")!=null){ end_time = message.get("end_time").toString(); } String user_phone = ""; if(message.get("user_phone")!=null){ user_phone=message.get("user_phone").toString(); } String collectStatus= ""; if (message.get("collectStatus")!=null){ collectStatus = message.get("collectStatus").toString(); } //获取图片 JSONObject jsonObject = JSONObject.fromObject(message); JSONArray jsonArray = (JSONArray) jsonObject.get("pic_urls"); Iterator iterator = jsonArray.iterator(); List picList = new ArrayList(); while (iterator.hasNext()){ JSONObject jo = (JSONObject) iterator.next(); picList.add(jo.getString("thumbnail_pic")); } StringBuilder sb =new StringBuilder(); %>
<%="\"\""%>
<%--<%--%> <%--if (picList.size()>3){ sb.append("
"); }--%> <%--sb.append("
");--%> <%--for (Object pics:picList){--%> <%--sb.append("\"\"");--%> <%--}--%> <%--sb.append("
");--%> <%--if (picList.size()>3){ sb.append("
"); }--%> <%--%>--%> <%--<%=sb.toString()%>--%>

<%=supply_title%>

价格
<%=price%>
进口税
价格未包含进口税
商品分类
<%=product_type%>
起订量
<%=min_order%>
截止日期
<%=end_time%>
联系电话
<%=user_phone%>
<% sb=new StringBuilder(); if (collectStatus.equals("0")){ sb.append("
收藏
"); }else { sb.append("
已收藏 "); } %> <%=sb.toString()%>
商品介绍
商品描述
<% sb = new StringBuilder(); if (supply_title != null) { sb.append("
供应标题:
").append(supply_title).append("
\n"); } if (product_type != null) { sb.append("
商品分类:
").append(product_type).append("
\n"); } if (end_time != null) { sb.append("
截止日期:
").append(end_time).append("
\n"); } if (min_order != null) { sb.append("
起订量:
").append(min_order).append("
\n"); } if (price!=null){ sb.append("
单价:
").append(price).append("
\n"); } if (message.get("unit")!=null){ sb.append("
单位:
").append(message.get("unit")).append("
\n"); } if (message.get("product_name")!=null){ sb.append("
关联商品:
").append(message.get("product_name")).append("
\n"); } if (message.get("deposit")!=null){ sb.append("
定金:
").append(message.get("deposit")).append("
\n"); } if (message.get("source_address")!=null){ sb.append("
货源地:
").append(message.get("source_address")).append("
\n"); } if (message.get("accept_return")!=null){ sb.append("
是否接受退货:
").append(message.get("accept_return")).append("
\n"); } if (message.get("box_quantity")!=null){ sb.append("
装箱数:
").append(message.get("box_quantity")).append("
\n"); } if (message.get("volume")!=null){ sb.append("
体积:
").append(message.get("volume")).append("
\n"); } if (message.get("weight")!=null){ sb.append("
重量:
").append(message.get("weight")).append("
\n"); } if (message.get("material")!=null){ sb.append("
材质:
").append(message.get("material")).append("
\n"); } if (message.get("size")!=null){ sb.append("
尺寸:
").append(message.get("size")).append("
\n"); } %>
<%=sb.toString()%>
商品描述:
<%=supply_descript%>
{{detail.userMess.user_name}}
等级: 明星会员 普通会员
认证:
企业认证
认证:
个人认证
认证:
未认证
个人中心
关注
已关注
在线咨询

该商品已失效

关注成功

不可关注

最近联系人