src/SSCMS.Web/wwwroot/sitefiles/assets/js/admin/wx/chatSend.js
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
var $url = "/wx/chatSend";
var $urlUpload = "/wx/chatSend/actions/upload";
var data = utils.init({
success: false,
errorMessage: null,
user: null,
chats: null,
message: null,
image: null,
audio: null,
video: null,
form: {
siteId: utils.getQueryInt("siteId"),
openId: utils.getQueryString("openId"),
materialType: 'Text',
materialId: 0,
text: null
}
});
var methods = {
runLayerMessage: function(message) {
this.form.materialId = message.id;
this.message = message;
},
runLayerImage: function(image) {
this.form.materialId = image.id;
this.image = image;
},
runLayerAudio: function(audio) {
this.form.materialId = audio.id;
this.audio = audio;
},
runLayerVideo: function(video) {
this.form.materialId = video.id;
this.video = video;
},
apiGet: function() {
var $this = this;
utils.loading(this, true);
$api.get($url, {
params: {
siteId: this.form.siteId,
openId: this.form.openId
}
}).then(function(response) {
var res = response.data;
$this.success = res.success;
$this.errorMessage = res.errorMessage;
$this.user = res.user;
$this.chats = res.chats;
})
.catch(function(error) {
后面还有 112 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
