Repository navigation
Expand file tree
/
Copy pathindex.php
More file actions
121 lines (111 loc) · 3.28 KB
/
Copy pathindex.php
File metadata and controls
121 lines (111 loc) · 3.28 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>GIF小程序</title>
<!-- Latest compiled and minified CSS -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<script type="text/javascript" src="../../../public/js/jquery.min.js"></script>
<script src="../../../public/js/zalyjsNative.js"></script>
<script src="../../../public/js/template-web.js"></script>
<style>
body, html {
font-size: 10.66px;
width: 100%;
}
.zaly_container {
height: 18rem;
}
.gif {
width:5rem;
height:5rem;
}
.gif_sub_div{
display: flex;
}
.gif_div_hidden {
display: none;
}
.sliding {
margin-right: 1rem;
width:5px;
}
.slide_div {
margin-top: 3rem;
text-align: center;
}
.add_gif{
height: 5rem;
cursor: pointer;
}
.del_gif{
width: 2rem;
height: 2rem;
margin-top: -1rem;
position: absolute;
margin-left: 4.5rem;
display: none;
}
.gif_content_div{
position: relative;
width: 5rem;
height: 5rem;
display: flex;
margin-left: 2rem;
margin-top: 3rem;
}
</style>
</head>
<body>
<div class="zaly_container" >
<input type="hidden" class="roomType" value='<?php echo $roomType;?>'>
<input type="hidden" class="toId" value='<?php echo $toId;?>'>
<input type="hidden" class="fromUserId" value='<?php echo $fromUserId;?>'>
</div>
<div class="slide_div">
<button class="text">text</button>
</div>
<script src="../../../public/js/im/zalyKey.js"></script>
<script src="../../../public/js/im/zalyAction.js"></script>
<script src="../../../public/js/im/zalyClient.js"></script>
<script src="../../../public/js/im/zalyBaseWs.js"></script>
<script id="tpl-gif" type="text/html">
<div class='gif_content_div'>
<img id="gifId_{{num}}" src='{{gifUrl}}' class='gif' gifId='{{gifId}}' isDefault='{{isDefault}}'>
<img src='../../public/img/msg/btn-x.png' class='del_gif {{gifId}}' gifId="{{gifId}}">
</div>
</script>
<script type="text/javascript">
var line = 0;
roomType = $(".roomType").val();
fromUserId = $(".fromUserId").val();
toId = $(".toId").val();
var startX, startY, moveEndX,moveEndY,timeOut;
var imgObject={};
var addGifType = "add_gif";
var delGifType = "del_gif";
var languageNum = getLanguage();
$(".text").on("click", function () {
var reqData = {
"type":"text",
};
sendPostToServer(reqData);
});
function sendPostToServer(reqData,)
{
$.ajax({
method: "POST",
url:"./index.php?action=miniProgram.test.index&lang="+languageNum,
data: reqData,
success:function (data) {
data = JSON.parse(data);
if(data.errorCode == 'error.alert') {
zalyjsAlert(data.errorInfo);
return false;
}
}
});
}
</script>
</body>
</html>