You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
V3D-nodejs/views/createScheme.html

177 lines
7.2 KiB

6 years ago
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>3D MODELS SYSTEM - CREATE</title>
6 years ago
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>
<!-- three.js -->
<script src="/js/three/three.js"></script>
<script src="/js/three/OrbitControls.js"></script>
<!-- 加载器 -->
<script src="/js/three/OBJLoader.js"></script>
<script src="/js/three/FBXLoader.js"></script>
<script src="/js/three/TGALoader.js"></script>
<script src='/js/three/inflate.min.js'></script>
<!-- ZUI -->
6 years ago
<link rel="stylesheet" href="https://cdn.bootcss.com/zui/1.8.1/css/zui.min.css">
<script src="https://cdn.bootcss.com/zui/1.8.1/js/zui.min.js"></script>
6 years ago
<style>
* {
margin: 0px;
padding: 0px;
}
html,
body {
width: 100%;
height: 100%;
overflow: hidden;
}
#viewField {
width: 80%;
height: 100%;
position: absolute;
top: 0px;
right: 0px;
}
#editField {
background-color: #fafafa;
padding: 10px;
width: 20%;
height: 100%;
position: absolute;
top: 0px;
left: 0px;
}
6 years ago
#textureField{
width:40px;
position: absolute;
top:10px;
right: 10px;
}
#textureField>img{
margin-top:5px;
}
6 years ago
</style>
</head>
<body>
<!-- threejs容器 -->
6 years ago
<div id="viewField">
</div>
<!-- 材质选择 -->
<div id="textureField">
</div>
6 years ago
<!-- 编辑栏 -->
<div id="editField">
<div class="panel">
<div class="panel-heading">
<div class="input-control has-label-left">
<input id="schemeName" type="text" class="form-control" placeholder="">
<label for="schemeName" class="input-control-label-left"><i class="icon icon-edit"></i>方案名</label>
</div>
</div>
<div class="panel-body">
<div class="dropdown">
<button class="btn btn-block" data-toggle="dropdown">组件选择 <span class="caret"></span></button>
<ul class="dropdown-menu" id="componentList">
<li><a data-toggle="modal" data-target="#addComponentModal"><i class="icon icon-plus"></i>添加新组件</a></li>
6 years ago
</ul>
</div>
6 years ago
<div>
6 years ago
<div class="page-header">
6 years ago
<h4 id="componentTitle">请先选择部件</h3>
6 years ago
</div>
<div class="list-group" id="modelList">
</div>
6 years ago
<button id="delComponent" class="btn btn-danger pull-right" style="display: none;margin-left:10px;">删除该组件</button>
<button id="textureManagerment" class="btn pull-right" style="display: none">贴图管理</button>
6 years ago
</div>
</div>
<div class="panel-footer">
<form id="uploadForm" enctype="multipart/form-data">
<input type="file" name="file" id="file" style="display: none" />
</form>
<button class="btn btn-primary btn-block disabled" id="upload">上传模型</button>
<button class="btn btn-success btn-block" id="saveScheme">保存方案</button>
</div>
</div>
<!-- 模态框:添加组件 -->
<div class="modal fade" id="addComponentModal">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span
class="sr-only">关闭</span></button>
<h4 class="modal-title">添加新组件</h4>
</div>
<div class="modal-body">
<input type="text" class="form-control" id="componentName" placeholder="组件名称">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
<button type="button" class="btn btn-primary" id="addComponent">添加</button>
</div>
</div>
</div>
</div>
<!-- 模态框:材质管理 -->
<div class="modal fade" id="textureManagermentModal">
6 years ago
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span
class="sr-only">关闭</span></button>
6 years ago
<h4 class="modal-title">贴图管理</h4>
</div>
<div class="modal-body">
6 years ago
<div id="textureList">
6 years ago
6 years ago
</div>
</div>
<div class="modal-footer">
6 years ago
<form id="uploadTextureForm" enctype="multipart/form-data">
<input type="file" name="file" id="textureFile" style="display: none" />
</form>
<button class="btn btn-primary" id="textureUpload">上传贴图</button>
<button type="button" class="btn btn-default" data-dismiss="modal" style="margin-left: 10px">确定</button>
</div>
</div>
</div>
</div>
6 years ago
<!-- 模态框:修改模型名字 -->
<div class="modal fade" id="changeModelNameModal">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span
class="sr-only">关闭</span></button>
<h4 class="modal-title">修改</h4>
</div>
<div class="modal-body">
<div id="textureList">
<input type="text" class="form-control" id="modelName" placeholder="模型名称">
</div>
</div>
<div class="modal-footer">
<form id="uploadTextureForm" enctype="multipart/form-data">
<input type="file" name="file" id="textureFile" style="display: none" />
</form>
<button class="btn btn-primary" id="changeModelName">确定修改</button>
<button type="button" class="btn btn-default" data-dismiss="modal" style="margin-left: 10px">取消</button>
</div>
</div>
</div>
</div>
6 years ago
<script src="/js/createScheme.js"></script>
</body>
</html>