高章伟
2022-03-18 4bfe21c4b5ddc089ae5a95f4b10f6cff148b690d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<apex:page docType="html-5.0" applyHtmlTag="false" showHeader="false" sidebar="false" standardStylesheets="false">
<head>
    <title>土地登録 写真選択+サムネイル</title>
<style type="text/css">
/*.angular-google-map-container { height: 400px; }*/
</style>
</head>
 
<div class="header">
  <div class="uploadButton" style="{{(editMode ? 'background-color: #dcdcdc;':'')}}">选择...&nbsp;<i class="fa fa-camera" style="font-size: 20px; "></i>
    <!-- <input type="file" multifile-model="imageFiles" multiple="multiple" accept="image/*;capture=camera" ng-disabled="editMode || disableInput"/> -->
    <input type="file" multifile-model="imageFiles"  accept="image/*;capture=camera" ng-disabled="editMode || disableInput || photos.length>0"/>
  </div>
</div>
 
<div class="container">
  <div class="file-preview-thumbnails" ng-repeat="p in photos">
    <div class="file-preview-frame" style="padding-bottom: 3px;">
      <img ng-src="{{p.data}}" class="file-preview-image" style="width:auto;height:150px;"/>
      <div class="file-thumbnail-footer">
      <div class="file-actions">
        <div class="file-footer-buttons" style="margin-top: 3px;" ng-show="editMode">
          <button type="button" class="kv-file-remove btn btn-xs btn-default" title="删除" ng-click="removePhoto($index)">
            <i class="glyphicon glyphicon-trash text-danger"></i>
          </button>
        </div>
        </div>
      </div>
    </div>
  </div>
</div>
 
<script id="loadingWindow.html" type="text/ng-template">
<div style ="padding: 20px;
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  text-align: center;
  text-overflow: ellipsis;
  font-size: 15px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left:-20px;
  ">
  <i class="fa fa-spinner fa-pulse"></i>
</div>
</script>
 
<script id="imageWindow.html" type="text/ng-template">
<div class="modal-body" ng-swipe-left="nextImage()" ng-swipe-right="prevImage()">
  <div class="container">
    <img ng-src={{imageUrl}} alt="">
  </div>
</div>
</script>
 
</apex:page>