|
@@ -53,7 +53,7 @@
|
|
<div class="form-group row">
|
|
<div class="form-group row">
|
|
<div class="col-sm-8 col-sm-offset-3">
|
|
<div class="col-sm-8 col-sm-offset-3">
|
|
<button type="submit" class="btn btn-sm btn-primary">保存设置</button>
|
|
<button type="submit" class="btn btn-sm btn-primary">保存设置</button>
|
|
- <a href="{{ $pre_uri . 'generateSharePhoto' }}" class="btn btn-sm btn-success">测试生成</a>
|
|
|
|
|
|
+ <button type="button" href="{{ $pre_uri . 'generateSharePhoto' }}" class="btn btn-sm btn-success" id="generate-photo-btn">测试生成</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</form>
|
|
@@ -68,7 +68,20 @@
|
|
@section('footer')
|
|
@section('footer')
|
|
<script type="text/javascript">
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$(function () {
|
|
-
|
|
|
|
|
|
+ $('#generate-photo-btn').on('click', function () {
|
|
|
|
+ layer.open({
|
|
|
|
+ type: 2,
|
|
|
|
+ title: '测试生成的图片',
|
|
|
|
+ shadeClose: true,
|
|
|
|
+ shade: 0.8,
|
|
|
|
+ area: ['80%', '90%'],
|
|
|
|
+ content: "{{ $pre_uri . 'generateSharePhoto' }}",
|
|
|
|
+ btn: ['确定'],
|
|
|
|
+ yes: function(index) {
|
|
|
|
+ layer.close(index);
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ });
|
|
})
|
|
})
|
|
</script>
|
|
</script>
|
|
@endsection
|
|
@endsection
|