Commit a27b0ef5 authored by xieyishang's avatar xieyishang

addxx

parent b11c86b3
<link rel="stylesheet" href="/assets/addons/simditor/css/simditor.min.css">
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
{:token()}
......@@ -14,7 +12,8 @@
<div class="form-group">
<label for="c-nickname" class="control-label col-xs-12 col-sm-2">二级标题:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-nickname" data-rule="required" class="form-control" name="row[secondary_title]" type="text" value="">
<input id="c-nickname" data-rule="required" class="form-control" name="row[secondary_title]" type="text"
value="">
</div>
</div>
......@@ -24,8 +23,13 @@
<div class="input-group">
<input id="c-image" class="form-control" size="35" name="row[news_img]" type="text" value="">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
<span><button type="button" id="faupload-image" class="btn btn-danger faupload"
data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp"
data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i>
{:__('Upload')}</button></span>
<span><button type="button" id="fachoose-image" class="btn btn-primary fachoose"
data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i
class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right"></span>
</div>
......@@ -36,7 +40,15 @@
<div class="form-group">
<label for="c-description" class="control-label col-xs-12 col-sm-2">详情:</label>
<div class="col-xs-12 col-sm-8">
<textarea id="news_comtent" class="form-control" name="row[news_comtent]"></textarea>
<!-- <textarea id="news_comtent" class="form-control" name="row[news_comtent]"></textarea> -->
<!-- <textarea id="news_comtent1" name="row[news_comtent]" style="width:100%; height:200px;"></textarea> -->
<div id="div1">
</div>
<textarea style="display: none;" id="text1" name="row[news_comtent]" style="width:100%; height:200px;"></textarea>
</div>
</div>
<div class="form-group">
......@@ -60,64 +72,69 @@
</div>
</form>
<script src="/static/js/jquery-3.3.1.min.js"></script>
<script src="/assets/addons/simditor/js/simditor.min.js"></script>
<!-- <script src="https://cdn.jsdelivr.net/npm/wangeditor@latest/dist/wangEditor.min.js"></script> -->
<script src="/assets/addons/wangEditor/wangEditor.min.js"></script>
<script>
$(function(){
//news_comtent
var editor = new Simditor({
toolbar: [
'title', 'bold', 'italic', 'underline', 'strikethrough', 'fontScale',
'color', '|', 'ol', 'ul', 'blockquote', 'code', 'table', '|', 'link',
'image', 'hr', '|', 'alignment'
],
textarea: '#news_comtent',
placeholder: '写点什么...',
defaultImage: '/static/home/images/logo.png',
imageButton: ['upload'],
upload: {
url: '../ajax/upload',
params: {_token: ""},
fileKey: 'file',
leaveConfirm: '正在上传文件..',
connectionCount: 1
},
$(function () {
});
//配置路径
editor.uploader.on('uploadsuccess', (function(_this) {
return function(e, file, result) {
console.log(_this,"_this");
console.log(e,"e");
console.log(file,"file");
console.log(result,"result");
const E = window.wangEditor
const editor = new E('#div1')
editor.config.uploadImgServer = '../ajax/upload'
editor.config.uploadImgMaxLength = 1;//一次最多多少张
editor.config.uploadFileName = 'file';
editor.config.uploadImgHooks = {
// 上传图片之前
before: function (xhr) {
console.log(xhr)
// 可阻止图片上传
// return {
// prevent: true,
// msg: '需要提示给用户的错误信息'
// }
},
// 图片上传并返回了结果,图片插入已成功
success: function (xhr) {
console.log('success', xhr)
},
// 图片上传并返回了结果,但图片插入时出错了
fail: function (xhr, editor, resData) {
console.log('fail', resData)
},
// 上传图片出错,一般为 http 请求的错误
error: function (xhr, editor, resData) {
console.log('error', xhr, resData)
},
// 上传图片超时
timeout: function (xhr) {
console.log('timeout')
},
// 图片上传并返回了结果,想要自己把图片插入到编辑器中
// 例如服务器端返回的不是 { errno: 0, data: [...] } 这种格式,可使用 customInsert
customInsert: function (insertImgFn, result) {
// result 即服务端返回的接口
console.log('customInsert', result)
var $img, $mask, msg;
if (!file.inline) {
return;
}
$img = file.img;
$img.removeData('file');
$img.removeClass('uploading');
$mask = $img.data('mask');
if ($mask) {
$mask.remove();
}
$img.removeData('mask');
if (result.code != 1) {
$img.attr('src', result.data.url);
console.log("上传错误");
} else {
$img.attr('src', result.data.url);
}
editor.trigger('valuechanged');
var rns = editor.uploader.trigger('uploadready', [file, result]);
console.log(rns,"rns");
return rns;
// insertImgFn 可把图片插入到编辑器,传入图片 src ,执行函数即可
let obj = new Object;
obj.url = result.data.url;
obj.alt = result.data.url;
obj.href = result.data.url;
console.info(obj,"obj");
insertImgFn(obj.url)
}
}
const $text1 = $('#text1')
editor.config.onchange = function (html) {
// 第二步,监控变化,同步更新到 textarea
$text1.val(html)
}
editor.create()
};
})(this));
// 第一步,初始化 textarea 的值
$text1.val(editor.txt.html())
})
</script>
</script>
\ No newline at end of file
......@@ -38,7 +38,13 @@
<label for="c-description" class="control-label col-xs-12 col-sm-2">详情:</label>
<div class="col-xs-12 col-sm-8">
<!-- value="{$row.news_comtent}" -->
<textarea id="news_comtent" class="form-control" name="row[news_comtent]" placeholder="{$row.news_comtent}" ></textarea>
<!-- <textarea id="news_comtent" class="form-control" name="row[news_comtent]" placeholder="{$row.news_comtent}" ></textarea> -->
<div id="div1">
{$row.news_comtent}
</div>
<textarea style="display: none;" id="text1" name="row[news_comtent]" style="width:100%; height:200px;">{$row.news_comtent}</textarea>
</div>
</div>
<div class="form-group">
......@@ -62,64 +68,68 @@
</div>
</form>
<script src="/static/js/jquery-3.3.1.min.js"></script>
<script src="/assets/addons/simditor/js/simditor.min.js"></script>
<!-- <script src="https://cdn.jsdelivr.net/npm/wangeditor@latest/dist/wangEditor.min.js"></script> -->
<script src="/assets/addons/wangEditor/wangEditor.min.js"></script>
<script>
$(function(){
//news_comtent
var editor = new Simditor({
toolbar: [
'title', 'bold', 'italic', 'underline', 'strikethrough', 'fontScale',
'color', '|', 'ol', 'ul', 'blockquote', 'code', 'table', '|', 'link',
'image', 'hr', '|', 'alignment'
],
textarea: '#news_comtent',
placeholder: '写点什么...',
defaultImage: '/static/home/images/logo.png',
imageButton: ['upload'],
upload: {
url: '../ajax/upload',
params: {_token: ""},
fileKey: 'file',
leaveConfirm: '正在上传文件..',
connectionCount: 1
},
$(function () {
});
//配置路径
editor.uploader.on('uploadsuccess', (function(_this) {
return function(e, file, result) {
console.log(_this,"_this");
console.log(e,"e");
console.log(file,"file");
console.log(result,"result");
const E = window.wangEditor
const editor = new E('#div1')
editor.config.uploadImgServer = '../ajax/upload'
editor.config.uploadImgMaxLength = 1;//一次最多多少张
editor.config.uploadFileName = 'file';
editor.config.uploadImgHooks = {
// 上传图片之前
before: function (xhr) {
console.log(xhr)
var $img, $mask, msg;
if (!file.inline) {
return;
}
$img = file.img;
$img.removeData('file');
$img.removeClass('uploading');
$mask = $img.data('mask');
if ($mask) {
$mask.remove();
}
$img.removeData('mask');
if (result.code != 1) {
$img.attr('src', result.data.url);
console.log("上传错误");
} else {
$img.attr('src', result.data.url);
}
editor.trigger('valuechanged');
var rns = editor.uploader.trigger('uploadready', [file, result]);
console.log(rns,"rns");
return rns;
// 可阻止图片上传
// return {
// prevent: true,
// msg: '需要提示给用户的错误信息'
// }
},
// 图片上传并返回了结果,图片插入已成功
success: function (xhr) {
console.log('success', xhr)
},
// 图片上传并返回了结果,但图片插入时出错了
fail: function (xhr, editor, resData) {
console.log('fail', resData)
},
// 上传图片出错,一般为 http 请求的错误
error: function (xhr, editor, resData) {
console.log('error', xhr, resData)
},
// 上传图片超时
timeout: function (xhr) {
console.log('timeout')
},
// 图片上传并返回了结果,想要自己把图片插入到编辑器中
// 例如服务器端返回的不是 { errno: 0, data: [...] } 这种格式,可使用 customInsert
customInsert: function (insertImgFn, result) {
// result 即服务端返回的接口
console.log('customInsert', result)
};
})(this));
// insertImgFn 可把图片插入到编辑器,传入图片 src ,执行函数即可
let obj = new Object;
obj.url = result.data.url;
obj.alt = result.data.url;
obj.href = result.data.url;
console.info(obj,"obj");
insertImgFn(obj.url)
}
}
const $text1 = $('#text1')
editor.config.onchange = function (html) {
// 第二步,监控变化,同步更新到 textarea
$text1.val(html)
}
editor.create()
// 第一步,初始化 textarea 的值
$text1.val(editor.txt.html())
})
</script>
<link rel="stylesheet" href="/assets/addons/simditor/css/simditor.min.css">
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
{:token()}
......@@ -14,7 +12,8 @@
<div class="form-group">
<label for="c-nickname" class="control-label col-xs-12 col-sm-2">二级标题:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-nickname" data-rule="required" class="form-control" name="row[secondary_title]" type="text" value="">
<input id="c-nickname" data-rule="required" class="form-control" name="row[secondary_title]" type="text"
value="">
</div>
</div>
......@@ -24,8 +23,13 @@
<div class="input-group">
<input id="c-image" class="form-control" size="35" name="row[news_img]" type="text" value="">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
<span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
<span><button type="button" id="faupload-image" class="btn btn-danger faupload"
data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp"
data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i>
{:__('Upload')}</button></span>
<span><button type="button" id="fachoose-image" class="btn btn-primary fachoose"
data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i
class="fa fa-list"></i> {:__('Choose')}</button></span>
</div>
<span class="msg-box n-right"></span>
</div>
......@@ -36,7 +40,15 @@
<div class="form-group">
<label for="c-description" class="control-label col-xs-12 col-sm-2">详情:</label>
<div class="col-xs-12 col-sm-8">
<textarea id="news_comtent" class="form-control" name="row[news_comtent]"></textarea>
<!-- <textarea id="news_comtent" class="form-control" name="row[news_comtent]"></textarea> -->
<!-- <textarea id="news_comtent1" name="row[news_comtent]" style="width:100%; height:200px;"></textarea> -->
<div id="div1">
</div>
<textarea style="display: none;" id="text1" name="row[news_comtent]" style="width:100%; height:200px;"></textarea>
</div>
</div>
<div class="form-group">
......@@ -60,64 +72,69 @@
</div>
</form>
<script src="/static/js/jquery-3.3.1.min.js"></script>
<script src="/assets/addons/simditor/js/simditor.min.js"></script>
<!-- <script src="https://cdn.jsdelivr.net/npm/wangeditor@latest/dist/wangEditor.min.js"></script> -->
<script src="/assets/addons/wangEditor/wangEditor.min.js"></script>
<script>
$(function(){
//news_comtent
var editor = new Simditor({
toolbar: [
'title', 'bold', 'italic', 'underline', 'strikethrough', 'fontScale',
'color', '|', 'ol', 'ul', 'blockquote', 'code', 'table', '|', 'link',
'image', 'hr', '|', 'alignment'
],
textarea: '#news_comtent',
placeholder: '写点什么...',
defaultImage: '/static/home/images/logo.png',
imageButton: ['upload'],
upload: {
url: '../ajax/upload',
params: {_token: ""},
fileKey: 'file',
leaveConfirm: '正在上传文件..',
connectionCount: 1
},
$(function () {
});
//配置路径
editor.uploader.on('uploadsuccess', (function(_this) {
return function(e, file, result) {
console.log(_this,"_this");
console.log(e,"e");
console.log(file,"file");
console.log(result,"result");
const E = window.wangEditor
const editor = new E('#div1')
editor.config.uploadImgServer = '../ajax/upload'
editor.config.uploadImgMaxLength = 1;//一次最多多少张
editor.config.uploadFileName = 'file';
editor.config.uploadImgHooks = {
// 上传图片之前
before: function (xhr) {
console.log(xhr)
// 可阻止图片上传
// return {
// prevent: true,
// msg: '需要提示给用户的错误信息'
// }
},
// 图片上传并返回了结果,图片插入已成功
success: function (xhr) {
console.log('success', xhr)
},
// 图片上传并返回了结果,但图片插入时出错了
fail: function (xhr, editor, resData) {
console.log('fail', resData)
},
// 上传图片出错,一般为 http 请求的错误
error: function (xhr, editor, resData) {
console.log('error', xhr, resData)
},
// 上传图片超时
timeout: function (xhr) {
console.log('timeout')
},
// 图片上传并返回了结果,想要自己把图片插入到编辑器中
// 例如服务器端返回的不是 { errno: 0, data: [...] } 这种格式,可使用 customInsert
customInsert: function (insertImgFn, result) {
// result 即服务端返回的接口
console.log('customInsert', result)
var $img, $mask, msg;
if (!file.inline) {
return;
}
$img = file.img;
$img.removeData('file');
$img.removeClass('uploading');
$mask = $img.data('mask');
if ($mask) {
$mask.remove();
}
$img.removeData('mask');
if (result.code != 1) {
$img.attr('src', result.data.url);
console.log("上传错误");
} else {
$img.attr('src', result.data.url);
}
editor.trigger('valuechanged');
var rns = editor.uploader.trigger('uploadready', [file, result]);
console.log(rns,"rns");
return rns;
// insertImgFn 可把图片插入到编辑器,传入图片 src ,执行函数即可
let obj = new Object;
obj.url = result.data.url;
obj.alt = result.data.url;
obj.href = result.data.url;
console.info(obj,"obj");
insertImgFn(obj.url)
}
}
const $text1 = $('#text1')
editor.config.onchange = function (html) {
// 第二步,监控变化,同步更新到 textarea
$text1.val(html)
}
editor.create()
};
})(this));
// 第一步,初始化 textarea 的值
$text1.val(editor.txt.html())
})
</script>
</script>
\ No newline at end of file
......@@ -38,7 +38,13 @@
<label for="c-description" class="control-label col-xs-12 col-sm-2">详情:</label>
<div class="col-xs-12 col-sm-8">
<!-- value="{$row.news_comtent}" -->
<textarea id="news_comtent" class="form-control" name="row[news_comtent]" placeholder="{$row.news_comtent}" ></textarea>
<!-- <textarea id="news_comtent" class="form-control" name="row[news_comtent]" placeholder="{$row.news_comtent}" ></textarea> -->
<div id="div1">
{$row.news_comtent}
</div>
<textarea style="display: none;" id="text1" name="row[news_comtent]" style="width:100%; height:200px;">{$row.news_comtent}</textarea>
</div>
</div>
<div class="form-group">
......@@ -62,64 +68,68 @@
</div>
</form>
<script src="/static/js/jquery-3.3.1.min.js"></script>
<script src="/assets/addons/simditor/js/simditor.min.js"></script>
<!-- <script src="https://cdn.jsdelivr.net/npm/wangeditor@latest/dist/wangEditor.min.js"></script> -->
<script src="/assets/addons/wangEditor/wangEditor.min.js"></script>
<script>
$(function(){
//news_comtent
var editor = new Simditor({
toolbar: [
'title', 'bold', 'italic', 'underline', 'strikethrough', 'fontScale',
'color', '|', 'ol', 'ul', 'blockquote', 'code', 'table', '|', 'link',
'image', 'hr', '|', 'alignment'
],
textarea: '#news_comtent',
placeholder: '写点什么...',
defaultImage: '/static/home/images/logo.png',
imageButton: ['upload'],
upload: {
url: '../ajax/upload',
params: {_token: ""},
fileKey: 'file',
leaveConfirm: '正在上传文件..',
connectionCount: 1
},
$(function () {
});
//配置路径
editor.uploader.on('uploadsuccess', (function(_this) {
return function(e, file, result) {
console.log(_this,"_this");
console.log(e,"e");
console.log(file,"file");
console.log(result,"result");
const E = window.wangEditor
const editor = new E('#div1')
editor.config.uploadImgServer = '../ajax/upload'
editor.config.uploadImgMaxLength = 1;//一次最多多少张
editor.config.uploadFileName = 'file';
editor.config.uploadImgHooks = {
// 上传图片之前
before: function (xhr) {
console.log(xhr)
var $img, $mask, msg;
if (!file.inline) {
return;
}
$img = file.img;
$img.removeData('file');
$img.removeClass('uploading');
$mask = $img.data('mask');
if ($mask) {
$mask.remove();
}
$img.removeData('mask');
if (result.code != 1) {
$img.attr('src', result.data.url);
console.log("上传错误");
} else {
$img.attr('src', result.data.url);
}
editor.trigger('valuechanged');
var rns = editor.uploader.trigger('uploadready', [file, result]);
console.log(rns,"rns");
return rns;
// 可阻止图片上传
// return {
// prevent: true,
// msg: '需要提示给用户的错误信息'
// }
},
// 图片上传并返回了结果,图片插入已成功
success: function (xhr) {
console.log('success', xhr)
},
// 图片上传并返回了结果,但图片插入时出错了
fail: function (xhr, editor, resData) {
console.log('fail', resData)
},
// 上传图片出错,一般为 http 请求的错误
error: function (xhr, editor, resData) {
console.log('error', xhr, resData)
},
// 上传图片超时
timeout: function (xhr) {
console.log('timeout')
},
// 图片上传并返回了结果,想要自己把图片插入到编辑器中
// 例如服务器端返回的不是 { errno: 0, data: [...] } 这种格式,可使用 customInsert
customInsert: function (insertImgFn, result) {
// result 即服务端返回的接口
console.log('customInsert', result)
};
})(this));
// insertImgFn 可把图片插入到编辑器,传入图片 src ,执行函数即可
let obj = new Object;
obj.url = result.data.url;
obj.alt = result.data.url;
obj.href = result.data.url;
console.info(obj,"obj");
insertImgFn(obj.url)
}
}
const $text1 = $('#text1')
editor.config.onchange = function (html) {
// 第二步,监控变化,同步更新到 textarea
$text1.val(html)
}
editor.create()
// 第一步,初始化 textarea 的值
$text1.val(editor.txt.html())
})
</script>
......@@ -50,10 +50,10 @@
<div class="synopsis">
<div class=" container">
<div class="abouttit wow bounceInDown">
<div class="abouttit ">
<img src="__CDN__/static/images/abouttit.png" alt="">
</div>
<div class="synopsistext wow bounceInDown">
<div class="synopsistext ">
<h3>选择鹿马事业,就是选择挑战,因为机遇与困难同在,我们才有前行的方向和奋斗的勇气。</h3>
<h3>这个世界上从来就不缺理想主义者,更不缺批评抱怨者,</h3>
<h3>最需要那些对现实有着清醒的认识而砥砺前行者。以创业者为中心的互联网经济发展理念,</h3>
......@@ -69,7 +69,7 @@
<div class="abouts">
<div class="container">
<div class="row">
<div class="wow bounceInLeft abouts_l col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12">
<div class=" abouts_l col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12">
<h4>关于我们</h4>
<p>江西多思盈信息科技有限公司成立于2013年坐落于美丽的英雄城南昌。注 册资金贰仟万元。是一家集电商互联网+实体服务的综合性互联网交易大平台公司。</p>
<p>公司凭借卓越的创新思维、专业的研发团队和丰富的互联网行业技术成立多思盈研发部。公司以服务消费为导向、资源整合为策略移动互联网为平台,充分利用市场资源,集中打造一个国际化,系统化的移动互联网创业平台。
......@@ -81,7 +81,7 @@
<a class="mores">more</a>
</div>
</div>
<div class="wow bounceInRight abouts_r col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12">
<div class=" abouts_r col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12">
<img class="rigimg" src="__CDN__/static/images/aboutimgs.png" alt="">
</div>
</div>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:80:"D:\phpstudy_pro\WWW\www.fa.com\public/../application/index\view\index\index.html";i:1615340150;s:72:"D:\phpstudy_pro\WWW\www.fa.com\application\index\view\layout\topnav.html";i:1615337283;s:72:"D:\phpstudy_pro\WWW\www.fa.com\application\index\view\layout\footer.html";i:1615284851;}*/ ?>
<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:80:"D:\phpstudy_pro\WWW\www.fa.com\public/../application/index\view\index\index.html";i:1615423469;s:72:"D:\phpstudy_pro\WWW\www.fa.com\application\index\view\layout\topnav.html";i:1615337283;s:72:"D:\phpstudy_pro\WWW\www.fa.com\application\index\view\layout\footer.html";i:1615284851;}*/ ?>
<!DOCTYPE html>
<html lang="zh-cn">
<!-- 完美兼容所有屏幕 基于 bootstrap4.1 -->
......@@ -108,10 +108,10 @@
<div class="synopsis">
<div class=" container">
<div class="abouttit wow bounceInDown">
<div class="abouttit ">
<img src="/static/images/abouttit.png" alt="">
</div>
<div class="synopsistext wow bounceInDown">
<div class="synopsistext ">
<h3>选择鹿马事业,就是选择挑战,因为机遇与困难同在,我们才有前行的方向和奋斗的勇气。</h3>
<h3>这个世界上从来就不缺理想主义者,更不缺批评抱怨者,</h3>
<h3>最需要那些对现实有着清醒的认识而砥砺前行者。以创业者为中心的互联网经济发展理念,</h3>
......@@ -127,7 +127,7 @@
<div class="abouts">
<div class="container">
<div class="row">
<div class="wow bounceInLeft abouts_l col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12">
<div class=" abouts_l col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12">
<h4>关于我们</h4>
<p>江西多思盈信息科技有限公司成立于2013年坐落于美丽的英雄城南昌。注 册资金贰仟万元。是一家集电商互联网+实体服务的综合性互联网交易大平台公司。</p>
<p>公司凭借卓越的创新思维、专业的研发团队和丰富的互联网行业技术成立多思盈研发部。公司以服务消费为导向、资源整合为策略移动互联网为平台,充分利用市场资源,集中打造一个国际化,系统化的移动互联网创业平台。
......@@ -139,7 +139,7 @@
<a class="mores">more</a>
</div>
</div>
<div class="wow bounceInRight abouts_r col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12">
<div class=" abouts_r col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12">
<img class="rigimg" src="/static/images/aboutimgs.png" alt="">
</div>
</div>
......
<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:78:"D:\phpstudy_pro\WWW\www.fa.com\public/../application/admin\view\news\edit.html";i:1615281136;s:73:"D:\phpstudy_pro\WWW\www.fa.com\application\admin\view\layout\default.html";i:1611580233;s:70:"D:\phpstudy_pro\WWW\www.fa.com\application\admin\view\common\meta.html";i:1611580233;s:72:"D:\phpstudy_pro\WWW\www.fa.com\application\admin\view\common\script.html";i:1611580233;}*/ ?>
<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:78:"D:\phpstudy_pro\WWW\www.fa.com\public/../application/admin\view\news\edit.html";i:1615599415;s:73:"D:\phpstudy_pro\WWW\www.fa.com\application\admin\view\layout\default.html";i:1611580233;s:70:"D:\phpstudy_pro\WWW\www.fa.com\application\admin\view\common\meta.html";i:1611580233;s:72:"D:\phpstudy_pro\WWW\www.fa.com\application\admin\view\common\script.html";i:1611580233;}*/ ?>
<!DOCTYPE html>
<html lang="<?php echo $config['language']; ?>">
<head>
......@@ -98,7 +98,13 @@
<label for="c-description" class="control-label col-xs-12 col-sm-2">详情:</label>
<div class="col-xs-12 col-sm-8">
<!-- value="<?php echo $row['news_comtent']; ?>" -->
<textarea id="news_comtent" class="form-control" name="row[news_comtent]" placeholder="<?php echo $row['news_comtent']; ?>" ></textarea>
<!-- <textarea id="news_comtent" class="form-control" name="row[news_comtent]" placeholder="<?php echo $row['news_comtent']; ?>" ></textarea> -->
<div id="div1">
<?php echo $row['news_comtent']; ?>
</div>
<textarea style="display: none;" id="text1" name="row[news_comtent]" style="width:100%; height:200px;"><?php echo $row['news_comtent']; ?></textarea>
</div>
</div>
<div class="form-group">
......@@ -122,65 +128,68 @@
</div>
</form>
<script src="/static/js/jquery-3.3.1.min.js"></script>
<script src="/assets/addons/simditor/js/simditor.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/wangeditor@latest/dist/wangEditor.min.js"></script>
<script>
$(function(){
//news_comtent
var editor = new Simditor({
toolbar: [
'title', 'bold', 'italic', 'underline', 'strikethrough', 'fontScale',
'color', '|', 'ol', 'ul', 'blockquote', 'code', 'table', '|', 'link',
'image', 'hr', '|', 'alignment'
],
textarea: '#news_comtent',
placeholder: '写点什么...',
defaultImage: '/static/home/images/logo.png',
imageButton: ['upload'],
upload: {
url: '../ajax/upload',
params: {_token: ""},
fileKey: 'file',
leaveConfirm: '正在上传文件..',
connectionCount: 1
$(function () {
const E = window.wangEditor
const editor = new E('#div1')
editor.config.uploadImgServer = '../ajax/upload'
editor.config.uploadImgMaxLength = 1;//一次最多多少张
editor.config.uploadFileName = 'file';
editor.config.uploadImgHooks = {
// 上传图片之前
before: function (xhr) {
console.log(xhr)
// 可阻止图片上传
// return {
// prevent: true,
// msg: '需要提示给用户的错误信息'
// }
},
// 图片上传并返回了结果,图片插入已成功
success: function (xhr) {
console.log('success', xhr)
},
// 图片上传并返回了结果,但图片插入时出错了
fail: function (xhr, editor, resData) {
console.log('fail', resData)
},
// 上传图片出错,一般为 http 请求的错误
error: function (xhr, editor, resData) {
console.log('error', xhr, resData)
},
// 上传图片超时
timeout: function (xhr) {
console.log('timeout')
},
// 图片上传并返回了结果,想要自己把图片插入到编辑器中
// 例如服务器端返回的不是 { errno: 0, data: [...] } 这种格式,可使用 customInsert
customInsert: function (insertImgFn, result) {
// result 即服务端返回的接口
console.log('customInsert', result)
});
//配置路径
editor.uploader.on('uploadsuccess', (function(_this) {
return function(e, file, result) {
console.log(_this,"_this");
console.log(e,"e");
console.log(file,"file");
console.log(result,"result");
var $img, $mask, msg;
if (!file.inline) {
return;
}
$img = file.img;
$img.removeData('file');
$img.removeClass('uploading');
$mask = $img.data('mask');
if ($mask) {
$mask.remove();
}
$img.removeData('mask');
if (result.code != 1) {
$img.attr('src', result.data.url);
console.log("上传错误");
} else {
$img.attr('src', result.data.url);
}
editor.trigger('valuechanged');
var rns = editor.uploader.trigger('uploadready', [file, result]);
console.log(rns,"rns");
return rns;
};
})(this));
// insertImgFn 可把图片插入到编辑器,传入图片 src ,执行函数即可
let obj = new Object;
obj.url = result.data.url;
obj.alt = result.data.url;
obj.href = result.data.url;
console.info(obj,"obj");
insertImgFn(obj.url)
}
}
const $text1 = $('#text1')
editor.config.onchange = function (html) {
// 第二步,监控变化,同步更新到 textarea
$text1.val(html)
}
editor.create()
// 第一步,初始化 textarea 的值
$text1.val(editor.txt.html())
})
</script>
......
<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:77:"D:\phpstudy_pro\WWW\www.fa.com\public/../application/admin\view\news\add.html";i:1615275331;s:73:"D:\phpstudy_pro\WWW\www.fa.com\application\admin\view\layout\default.html";i:1611580233;s:70:"D:\phpstudy_pro\WWW\www.fa.com\application\admin\view\common\meta.html";i:1611580233;s:72:"D:\phpstudy_pro\WWW\www.fa.com\application\admin\view\common\script.html";i:1611580233;}*/ ?>
<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:77:"D:\phpstudy_pro\WWW\www.fa.com\public/../application/admin\view\news\add.html";i:1615599849;s:73:"D:\phpstudy_pro\WWW\www.fa.com\application\admin\view\layout\default.html";i:1611580233;s:70:"D:\phpstudy_pro\WWW\www.fa.com\application\admin\view\common\meta.html";i:1611580233;s:72:"D:\phpstudy_pro\WWW\www.fa.com\application\admin\view\common\script.html";i:1611580233;}*/ ?>
<!DOCTYPE html>
<html lang="<?php echo $config['language']; ?>">
<head>
......@@ -58,9 +58,7 @@
<!-- END RIBBON -->
<?php endif; ?>
<div class="content">
<link rel="stylesheet" href="/assets/addons/simditor/css/simditor.min.css">
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<?php echo token(); ?>
<!-- 文章添加 -->
......@@ -74,7 +72,8 @@
<div class="form-group">
<label for="c-nickname" class="control-label col-xs-12 col-sm-2">二级标题:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-nickname" data-rule="required" class="form-control" name="row[secondary_title]" type="text" value="">
<input id="c-nickname" data-rule="required" class="form-control" name="row[secondary_title]" type="text"
value="">
</div>
</div>
......@@ -84,8 +83,13 @@
<div class="input-group">
<input id="c-image" class="form-control" size="35" name="row[news_img]" type="text" value="">
<div class="input-group-addon no-border no-padding">
<span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> <?php echo __('Upload'); ?></button></span>
<span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> <?php echo __('Choose'); ?></button></span>
<span><button type="button" id="faupload-image" class="btn btn-danger faupload"
data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp"
data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i>
<?php echo __('Upload'); ?></button></span>
<span><button type="button" id="fachoose-image" class="btn btn-primary fachoose"
data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i
class="fa fa-list"></i> <?php echo __('Choose'); ?></button></span>
</div>
<span class="msg-box n-right"></span>
</div>
......@@ -96,7 +100,15 @@
<div class="form-group">
<label for="c-description" class="control-label col-xs-12 col-sm-2">详情:</label>
<div class="col-xs-12 col-sm-8">
<textarea id="news_comtent" class="form-control" name="row[news_comtent]"></textarea>
<!-- <textarea id="news_comtent" class="form-control" name="row[news_comtent]"></textarea> -->
<!-- <textarea id="news_comtent1" name="row[news_comtent]" style="width:100%; height:200px;"></textarea> -->
<div id="div1">
</div>
<textarea style="display: none;" id="text1" name="row[news_comtent]" style="width:100%; height:200px;"></textarea>
</div>
</div>
<div class="form-group">
......@@ -120,68 +132,72 @@
</div>
</form>
<script src="/static/js/jquery-3.3.1.min.js"></script>
<script src="/assets/addons/simditor/js/simditor.min.js"></script>
<!-- <script src="https://cdn.jsdelivr.net/npm/wangeditor@latest/dist/wangEditor.min.js"></script> -->
<script src="/assets/addons/wangEditor/wangEditor.min.js"></script>
<script>
$(function(){
//news_comtent
var editor = new Simditor({
toolbar: [
'title', 'bold', 'italic', 'underline', 'strikethrough', 'fontScale',
'color', '|', 'ol', 'ul', 'blockquote', 'code', 'table', '|', 'link',
'image', 'hr', '|', 'alignment'
],
textarea: '#news_comtent',
placeholder: '写点什么...',
defaultImage: '/static/home/images/logo.png',
imageButton: ['upload'],
upload: {
url: '../ajax/upload',
params: {_token: ""},
fileKey: 'file',
leaveConfirm: '正在上传文件..',
connectionCount: 1
$(function () {
const E = window.wangEditor
const editor = new E('#div1')
editor.config.uploadImgServer = '../ajax/upload'
editor.config.uploadImgMaxLength = 1;//一次最多多少张
editor.config.uploadFileName = 'file';
editor.config.uploadImgHooks = {
// 上传图片之前
before: function (xhr) {
console.log(xhr)
// 可阻止图片上传
// return {
// prevent: true,
// msg: '需要提示给用户的错误信息'
// }
},
// 图片上传并返回了结果,图片插入已成功
success: function (xhr) {
console.log('success', xhr)
},
// 图片上传并返回了结果,但图片插入时出错了
fail: function (xhr, editor, resData) {
console.log('fail', resData)
},
// 上传图片出错,一般为 http 请求的错误
error: function (xhr, editor, resData) {
console.log('error', xhr, resData)
},
// 上传图片超时
timeout: function (xhr) {
console.log('timeout')
},
// 图片上传并返回了结果,想要自己把图片插入到编辑器中
// 例如服务器端返回的不是 { errno: 0, data: [...] } 这种格式,可使用 customInsert
customInsert: function (insertImgFn, result) {
// result 即服务端返回的接口
console.log('customInsert', result)
});
//配置路径
editor.uploader.on('uploadsuccess', (function(_this) {
return function(e, file, result) {
console.log(_this,"_this");
console.log(e,"e");
console.log(file,"file");
console.log(result,"result");
// insertImgFn 可把图片插入到编辑器,传入图片 src ,执行函数即可
let obj = new Object;
obj.url = result.data.url;
obj.alt = result.data.url;
obj.href = result.data.url;
console.info(obj,"obj");
insertImgFn(obj.url)
}
}
const $text1 = $('#text1')
editor.config.onchange = function (html) {
// 第二步,监控变化,同步更新到 textarea
$text1.val(html)
}
editor.create()
var $img, $mask, msg;
if (!file.inline) {
return;
}
$img = file.img;
$img.removeData('file');
$img.removeClass('uploading');
$mask = $img.data('mask');
if ($mask) {
$mask.remove();
}
$img.removeData('mask');
if (result.code != 1) {
$img.attr('src', result.data.url);
console.log("上传错误");
} else {
$img.attr('src', result.data.url);
}
editor.trigger('valuechanged');
var rns = editor.uploader.trigger('uploadready', [file, result]);
console.log(rns,"rns");
return rns;
};
})(this));
// 第一步,初始化 textarea 的值
$text1.val(editor.txt.html())
})
</script>
</div>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment