| | |
| | | <div class="form-horizontal"> |
| | | |
| | | <div class="row"> |
| | | <div class="col-sm-6 b-r"> |
| | | <#input id="id" name="主键" underline="true"/> |
| | | <#input id="code" name="编号" underline="true"/> |
| | | <#input id="userId" name="用户id" underline="true"/> |
| | | <#input id="driverId" name="司机id" underline="true"/> |
| | | <#input id="source" name="订单来源(1=小程序)" underline="true"/> |
| | | <#input id="agentId" name="代理商id" underline="true"/> |
| | | <#input id="branchOfficeId" name="分公司id" underline="true"/> |
| | | <#input id="startTime" name="开始服务时间" underline="true"/> |
| | | <#input id="startAddress" name="起点地址" underline="true"/> |
| | | <#input id="startLat" name="起点纬度" underline="true"/> |
| | | <#input id="startLng" name="起点经度" underline="true"/> |
| | | <#input id="endAddress" name="终点地址" underline="true"/> |
| | | <#input id="endLat" name="终点纬度"/> |
| | | </div> |
| | | |
| | | <div class="col-sm-6"> |
| | | <#input id="endLng" name="终点经度" underline="true"/> |
| | | <#input id="boardingTime" name="上车时间" underline="true"/> |
| | | <#input id="getoffTime" name="下车时间" underline="true"/> |
| | | <#input id="estimatedPrice" name="预估价" underline="true"/> |
| | | <#input id="orderMoney" name="订单金额" underline="true"/> |
| | | <#input id="payMoney" name="支付金额" underline="true"/> |
| | | <#input id="discountedPrice" name="优惠金额" underline="true"/> |
| | | <#input id="couponId" name="优惠券id" underline="true"/> |
| | | <#input id="payType" name="支付类型(1=线上)" underline="true"/> |
| | | <#input id="payTime" name="支付时间" underline="true"/> |
| | | <#input id="state" name="订单状态(1=待接单,2=已接单,3=)" underline="true"/> |
| | | <#input id="status" name="状态(1=正常,2=冻结,3=删除)" underline="true"/> |
| | | <#input id="createTime" name="添加时间" underline="true"/> |
| | | <div class="col-sm-12"> |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label">*乘客姓名:</label> |
| | | <div class="col-sm-6"> |
| | | <input type="text" class="form-control" id="userName" name="userName" placeholder="请输入"> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label">*乘客手机号:</label> |
| | | <div class="col-sm-6"> |
| | | <input type="text" class="form-control" id="userPhone" name="userPhone" placeholder="请输入"> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label">*起始地点:</label> |
| | | <div class="col-sm-6"> |
| | | <input type="text" id="tipinput1" class="form-control" id="startAddress" name="startAddress" placeholder="请输入"> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label"></label> |
| | | <div class="col-sm-6"> |
| | | <div id="container1" style="width: 100%;height: 300px;"></div> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label">目的地:</label> |
| | | <div class="col-sm-6"> |
| | | <input type="text" id="tipinput2" class="form-control" id="endAddress" name="endAddress"> |
| | | </div> |
| | | </div> |
| | | <div class="form-group"> |
| | | <label class="col-sm-2 control-label"></label> |
| | | <div class="col-sm-6"> |
| | | <div id="container2" style="width: 100%;height: 300px;"></div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | |
| | | </div> |
| | | </div> |
| | | <script type="text/javascript"> |
| | | window._AMapSecurityConfig = { |
| | | securityJsCode:'0e712f129051b8df19a7f81484009f28', |
| | | } |
| | | </script> |
| | | <script src="${ctxPath}/static/modular/system/tOrder/tOrder_info.js"></script> |
| | | <script type="text/javascript" src="https://webapi.amap.com/maps?v=2.0&key=99b1546635dac9d51440c9d5b1fde512"></script> |
| | | <script type="text/javascript"> |
| | | //地图加载 |
| | | var map1 = new AMap.Map("container1", { |
| | | zoom: 13, |
| | | center: [104.064, 30.6576], |
| | | resizeEnable: true |
| | | }); |
| | | //输入提示 |
| | | var autoOptions1 = { |
| | | input: "tipinput1" |
| | | }; |
| | | |
| | | AMap.plugin(['AMap.PlaceSearch','AMap.AutoComplete'], function(){ |
| | | var auto = new AMap.AutoComplete(autoOptions1); |
| | | var placeSearch = new AMap.PlaceSearch({ |
| | | map: map1 |
| | | }); //构造地点查询类 |
| | | auto.on("select", select);//注册监听,当选中某条记录时会触发 |
| | | function select(e) { |
| | | placeSearch.setCity(e.poi.adcode); |
| | | placeSearch.search(e.poi.name); //关键字查询查询 |
| | | TOrderInfoDlg.position = e.poi; |
| | | console.log(e.poi); |
| | | TOrderInfoDlg.startAddress = { |
| | | name:e.poi.name, |
| | | address: e.poi.district + e.poi.address, |
| | | lat: e.poi.location.lat, |
| | | lon: e.poi.location.lng, |
| | | }; |
| | | } |
| | | }); |
| | | |
| | | |
| | | var map2 = new AMap.Map("container2", { |
| | | zoom: 13, |
| | | center: [104.064, 30.6576], |
| | | resizeEnable: true |
| | | }); |
| | | //输入提示 |
| | | var autoOptions2 = { |
| | | input: "tipinput2" |
| | | }; |
| | | |
| | | AMap.plugin(['AMap.PlaceSearch','AMap.AutoComplete'], function(){ |
| | | var auto = new AMap.AutoComplete(autoOptions2); |
| | | var placeSearch = new AMap.PlaceSearch({ |
| | | map: map2 |
| | | }); //构造地点查询类 |
| | | auto.on("select", select);//注册监听,当选中某条记录时会触发 |
| | | function select(e) { |
| | | placeSearch.setCity(e.poi.adcode); |
| | | placeSearch.search(e.poi.name); //关键字查询查询 |
| | | TOrderInfoDlg.position = e.poi; |
| | | console.log(e.poi); |
| | | TOrderInfoDlg.endAddress = { |
| | | name:e.poi.name, |
| | | address: e.poi.district + e.poi.address, |
| | | lat: e.poi.location.lat, |
| | | lon: e.poi.location.lng, |
| | | }; |
| | | } |
| | | }); |
| | | </script> |
| | | @} |