From 898f2f02b308db9fedfb33573b99a8d7df0fee35 Mon Sep 17 00:00:00 2001 From: Anyon Date: Mon, 8 May 2017 15:32:43 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E6=95=B4=E7=90=86=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/view/auth.apply.html | 46 ++-- application/admin/view/auth.index.html | 5 + application/admin/view/config.file.html | 9 +- application/admin/view/config.index.html | 17 +- application/admin/view/log.index.html | 7 +- application/admin/view/login.index.html | 10 +- application/admin/view/menu.form.html | 11 +- application/admin/view/node.index.html | 9 +- application/admin/view/plugs.icon.html | 13 +- application/admin/view/plugs.upfile.html | 271 ++++++++++++++------- application/admin/view/user.index.html | 124 +++++----- application/extra/view/admin.main.top.html | 12 +- application/index/view/wap.payjs.html | 98 ++++---- application/index/view/wap.payqrc.html | 86 +++---- application/wechat/view/config.index.html | 14 +- application/wechat/view/config.pay.html | 56 +++-- application/wechat/view/fans.index.html | 3 +- application/wechat/view/keys.form.html | 60 +++-- application/wechat/view/keys.index.html | 32 ++- application/wechat/view/menu.index.html | 103 +++++--- application/wechat/view/news.form.html | 60 +++-- application/wechat/view/news.index.html | 15 +- application/wechat/view/news.push.html | 25 +- application/wechat/view/review.index.html | 4 +- vendor/autoload.php | 2 +- vendor/composer/autoload_real.php | 14 +- vendor/composer/autoload_static.php | 8 +- 27 files changed, 684 insertions(+), 430 deletions(-) diff --git a/application/admin/view/auth.apply.html b/application/admin/view/auth.apply.html index b63e4af4b..30ae678ab 100644 --- a/application/admin/view/auth.apply.html +++ b/application/admin/view/auth.apply.html @@ -39,14 +39,19 @@ callback: { beforeClick: function (treeId, treeNode) { if (treeNode.children.length < 1) { - window.roleForm.ztree.checkNode(treeNode, !treeNode.checked, null, true);} else { - window.roleForm.ztree.expandNode(treeNode);} - return false;}}}; - this.listen();} + window.roleForm.ztree.checkNode(treeNode, !treeNode.checked, null, true); + } else { + window.roleForm.ztree.expandNode(treeNode); + } + return false; + }}}; + this.listen(); + } showTree.prototype = { constructor: showTree, listen: function () { - this.getData(this);}, + this.getData(this); + }, getData: function (self) { $.msg.loading(); jQuery.get('{:url()}?id={$vo.id}', {action: 'getNode'}, function (ret) { @@ -60,28 +65,41 @@ children.name = data[i].title || data[i].node; children.checked = data[i].checked || false; children.children = renderChildren(data[i]._sub_, level + 1); - childrenData.push(children);} - return childrenData;} + childrenData.push(children); + } + return childrenData; + } self.data = renderChildren(ret.data, 1); - self.showTree();}, 'JSON');}, + self.showTree(); + }, 'JSON'); + }, showTree: function () { this.ztree = jQuery.fn.zTree.init(jQuery("#zTree"), this.setting, this.data); while (true) { var reNodes = this.ztree.getNodesByFilter(function (node) { - return (!node.node && node.children.length < 1);}); + return (!node.node && node.children.length < 1); + }); if (reNodes.length < 1) { - break;} + break; + } for (var i in reNodes) { - this.ztree.removeNode(reNodes[i]);}}}, + this.ztree.removeNode(reNodes[i]); + } + } + }, submit: function () { var nodes = []; var data = this.ztree.getCheckedNodes(true); for (var i in data) { - (data[i].node) && nodes.push(data[i].node);} - $.form.load('{:url()}?id={$vo.id}&action=save', {nodes: nodes}, 'POST');}}; + (data[i].node) && nodes.push(data[i].node); + } + $.form.load('{:url()}?id={$vo.id}&action=save', {nodes: nodes}, 'POST'); + }}; window.roleForm = new showTree(); $('[data-submit-role]').on('click', function () { - window.roleForm.submit();});}); + window.roleForm.submit(); + }); + }); {/block} \ No newline at end of file diff --git a/application/admin/view/auth.index.html b/application/admin/view/auth.index.html index c741f22e2..576882b67 100644 --- a/application/admin/view/auth.index.html +++ b/application/admin/view/auth.index.html @@ -44,14 +44,17 @@ {/if} + {if auth("$classuri/edit")} | 编辑 {/if} + {if auth("$classuri/apply")} | 授权 {/if} + {if $vo.status eq 1 and auth("$classuri/forbid")} | 禁用 @@ -59,10 +62,12 @@ | 启用 {/if} + {if auth("$classuri/del")} | 删除 {/if} + {/foreach} diff --git a/application/admin/view/config.file.html b/application/admin/view/config.file.html index b4318ae9f..6f7eba8de 100644 --- a/application/admin/view/config.file.html +++ b/application/admin/view/config.file.html @@ -30,26 +30,31 @@

七牛云存储空间所在区域,需要严格对应储存所在区域才能上传文件

@@ -127,6 +132,8 @@ {/block} \ No newline at end of file diff --git a/application/admin/view/config.index.html b/application/admin/view/config.index.html index 74e61348c..42bfe07b0 100644 --- a/application/admin/view/config.index.html +++ b/application/admin/view/config.index.html @@ -1,14 +1,12 @@ {extend name="extra@admin/content"} {block name="content"} -
+
- +

网站名称,显示在浏览器标签上

@@ -16,8 +14,7 @@
- +

程序的版权信息设置,在后台登录页面显示

@@ -25,8 +22,7 @@
- +

当前程序名称,在后台主标题上显示

@@ -35,8 +31,7 @@
- +

当前程序版本号,在后台主标题上标显示

@@ -68,8 +63,6 @@ - -
diff --git a/application/admin/view/log.index.html b/application/admin/view/log.index.html index 30d19493c..9b48798a5 100644 --- a/application/admin/view/log.index.html +++ b/application/admin/view/log.index.html @@ -3,8 +3,8 @@ {block name="button"}
{if auth("$classuri/del")} - {/if}
@@ -39,8 +39,7 @@
- +
diff --git a/application/admin/view/login.index.html b/application/admin/view/login.index.html index 18d2a2ea8..19e787b76 100644 --- a/application/admin/view/login.index.html +++ b/application/admin/view/login.index.html @@ -87,12 +87,16 @@ {block name="script"} {/block} \ No newline at end of file diff --git a/application/admin/view/menu.form.html b/application/admin/view/menu.form.html index 35bcbc760..11c918b56 100644 --- a/application/admin/view/menu.form.html +++ b/application/admin/view/menu.form.html @@ -1,4 +1,5 @@ +
@@ -13,18 +14,21 @@
+
+
+
@@ -35,15 +39,20 @@
+
+
{if isset($vo['id'])}{/if}
+ + diff --git a/application/admin/view/node.index.html b/application/admin/view/node.index.html index 03cc39831..335a5092e 100644 --- a/application/admin/view/node.index.html +++ b/application/admin/view/node.index.html @@ -55,10 +55,15 @@ $(function () { $('input.title-input').on('blur', function () { $.form.load('{:url("save")}', {name: this.name, value: this.value}, 'POST', function (ret) { - return false;});}); + return false; + }); + }); $('input.check-box').on('click', function () { $.form.load('{:url("save")}', {name: this.name, value: this.checked ? 1 : 0}, 'POST', function (ret) { - return false;});});}); + return false; + }); + }); + }); {/if} {/block} \ No newline at end of file diff --git a/application/admin/view/plugs.icon.html b/application/admin/view/plugs.icon.html index 606e86609..a0b9127ce 100644 --- a/application/admin/view/plugs.icon.html +++ b/application/admin/view/plugs.icon.html @@ -1908,16 +1908,23 @@ /* global top */ if (document.all) { document.onselectstart = function () { - return false;};} else { + return false; + }; + } else { document.onmouseup = document.onmousedown = function () { - return false;};} + return false; + }; + } document.onselectstart = new Function('event.returnValue=false;'); $('li').on('click', function () { var className = $(this).find('span.glyphicon,span.fa').get(0).className; if (className) { top.$('[name="{$field}"]').val(className).trigger('change'); var index = top.layer.getFrameIndex(window.name); - top.layer.close(index);}});}); + top.layer.close(index); + } + }); + });
diff --git a/application/admin/view/plugs.upfile.html b/application/admin/view/plugs.upfile.html index 781bef798..5c50e3f94 100644 --- a/application/admin/view/plugs.upfile.html +++ b/application/admin/view/plugs.upfile.html @@ -45,11 +45,13 @@ $('#' + file.id).attr('data-md5', file.md5).attr('data-src', url); /* {if $mode === 'one'} */ top.$('[name="{$field}"]').map(function () { - top.$(this).attr('data-srcs', ret.url).attr('data-md5', file.md5).val(url).trigger('change');}); + top.$(this).attr('data-srcs', ret.url).attr('data-md5', file.md5).val(url).trigger('change'); + }); //top.$.msg.tips('文件上传成功!'); var index = top.layer.getFrameIndex(window.name); top.layer.close(index); - /* {/if} {$mode}*/} + /* {/if} {$mode}*/ + } function confirmSelected() { var srcs = new Array(); @@ -57,19 +59,26 @@ $('[data-md5] .success').map(function () { var $li = $(this).parents('[data-md5]'); md5s.push($li.attr('data-md5')); - srcs.push($li.attr('data-src'));}); + srcs.push($li.attr('data-src')); + }); if (srcs.length < 1) { - return top.$.msg.tips('还没有选择文件,请勾选需要使用的文件!');} + return top.$.msg.tips('还没有选择文件,请勾选需要使用的文件!'); + } top.$('[name="{$field}"]').map(function () { - top.$(this).attr('data-srcs', srcs.join('|')).attr('data-md5', md5s.join('|')).val(srcs.join('|')).trigger('change');}); + top.$(this).attr('data-srcs', srcs.join('|')).attr('data-md5', md5s.join('|')).val(srcs.join('|')).trigger('change'); + }); var index = top.layer.getFrameIndex(window.name); - top.layer.close(index);} + top.layer.close(index); + } function completed() { var btnHTML = '完成上传'; $('.uploadBtn').on('click', function () { if (this.innerHTML === btnHTML) { - confirmSelected.call(this);}}).html(btnHTML);} + confirmSelected.call(this); + } + }).html(btnHTML); + } // 当domReady的时候开始初始化 $(function () { @@ -104,24 +113,33 @@ var support = true; data.onload = data.onerror = function () { if (this.width != 1 || this.height != 1) { - support = false;}}; + support = false; + } + }; data.src = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw=="; - return support;}.call(this)), + return support; + }.call(this)), /*检测是否已经安装flash,检测flash的版本*/ flashVersion = (function () { var version; try { version = navigator.plugins[ 'Shockwave Flash' ]; - version = version.description;} catch (ex) { + version = version.description; + } catch (ex) { try { - version = new ActiveXObject('ShockwaveFlash.ShockwaveFlash').GetVariable('$version');} catch (ex2) { - version = '0.0';}} + version = new ActiveXObject('ShockwaveFlash.ShockwaveFlash').GetVariable('$version'); + } catch (ex2) { + version = '0.0'; + } + } version = version.match(/\d+/g); - return parseFloat(version[ 0 ] + '.' + version[ 1 ], 10);})(), + return parseFloat(version[ 0 ] + '.' + version[ 1 ], 10); + })(), supportTransition = (function () { var s = document.createElement('p').style, r = 'transition' in s || 'WebkitTransition' in s || 'MozTransition' in s || 'msTransition' in s || 'OTransition' in s; s = null; - return r;})(), + return r; + })(), uploader; if (!WebUploader.Uploader.support('flash') && WebUploader.browser.ie) { /*flash 安装了但是版本过低*/ @@ -137,27 +155,36 @@ break; default: alert('安装已成功,请刷新!'); - break;} - delete window['expressinstallcallback'];}; + break; + } + delete window['expressinstallcallback']; + }; var swf = '__PUBLIC__/static/plugs/uploader/expressInstall.swf'; var html = '' + '' + '' + ''; - container.html(html);})($wrap);} else { - $wrap.html('get flash player');} - return;} else if (!WebUploader.Uploader.support()) { + container.html(html); + })($wrap); + } else { + $wrap.html('get flash player'); + } + return; + } else if (!WebUploader.Uploader.support()) { alert('Web Uploader 不支持您的浏览器!'); - return;} + return; + } WebUploader.Uploader.register({'before-send-file': 'preupload'}, {preupload: function (file) { var me = this, owner = this.owner, deferred = WebUploader.Deferred(); owner.md5File(file.source).fail(function () { - deferred.reject();}).then(function (md5) { + deferred.reject(); + }).then(function (md5) { file.md5 = md5; var data = {id: file.id, md5: md5, uptype: '{$uptype}', filename: file.name}; $.ajax("{:url('admin/plugs/upstate')}", {dataType: 'json', method: 'post', data: data, success: function (ret) { @@ -166,29 +193,38 @@ uploaded.call(uploader, ret.data, file); percentages[file.id] = [file.size, 1]; updateTotalProgress(); - console.log('文件秒传成功 --> ' + file.name);} else { + console.log('文件秒传成功 --> ' + file.name); + } else { file.md5 = md5; file.token = ret.data.token; file.key = ret.data.file_url; - me.options.server = ret.data.server;} - deferred.resolve();}});}); - return deferred.promise();}}); + me.options.server = ret.data.server; + } + deferred.resolve(); + } + }); + }); + return deferred.promise(); + } + }); // 实例化 uploader = WebUploader.create({ pick: { id: '#filePicker', label: '点击选择文件', - multiple: false}, + multiple: false + }, accept: { title: '选择文件', extensions: '{$types}', //'gif,jpg,jpeg,bmp,png', - mimeTypes: '{$mimes}'}, + mimeTypes: '{$mimes}' + }, formData: {}, /*{if $mode === 'one'}*/ fileNumLimit: 1, auto: true, - /* {else} */ + /* {else /} */ auto: false, fileNumLimit: 300, /* {/if} */ @@ -201,7 +237,8 @@ server: '{:url("admin/plugs/upload")}', disableGlobalDnd: true, fileSizeLimit: 200 * 1024 * 1024, // 200 M - fileSingleSizeLimit: 200 * 1024 * 1024 // 200 M}); + fileSingleSizeLimit: 200 * 1024 * 1024 // 200 M + }); /** * 处理上传后的结果 @@ -211,8 +248,10 @@ uploader.on('uploadAccept', function (fieldata, ret) { if (ret.code === 'SUCCESS') { uploaded.call(uploader, ret.data, fieldata.file); - return true;} - return false;}); + return true; + } + return false; + }); // 拖拽时不接受 js, txt 文件。 uploader.on('dndAccept', function (items) { @@ -221,8 +260,11 @@ for (var i = 0; i < len; i++) { if (~unAllowed.indexOf(items[ i ].type)) { denied = true; - break;}} - return !denied;}); + break; + } + } + return !denied; + }); /* 上传开始前的处理 */ uploader.on('uploadBeforeSend', function (file, data, header) { @@ -230,15 +272,18 @@ data['allowed_types'] = this.options.accept[0].extensions.split(',').join('|'); data['md5'] = file.file.md5; data['key'] = file.file.key; - data['token'] = file.file.token;}); + data['token'] = file.file.token; + }); // 添加“添加文件”的按钮, uploader.addButton({ id: '#filePicker2', - label: '继续添加'}); + label: '继续添加' + }); uploader.on('ready', function () { - window.uploader = uploader;}); + window.uploader = uploader; + }); // 当有文件添加进来时执行,负责view的创建 function addFile(file) { @@ -264,51 +309,72 @@ break; default: text = '上传失败,请重试'; - break;} - $info.text(text).appendTo($li);}; + break; + } + $info.text(text).appendTo($li); + }; if (file.getStatus() === 'invalid') { - showError(file.statusText);} else { + showError(file.statusText); + } else { // @todo lazyload $wrap.text('预览中'); uploader.makeThumb(file, function (error, src) { var img; if (error) { $wrap.text('不能预览'); - return;} + return; + } if (isSupportBase64) { img = $(''); - $wrap.empty().append(img);} else { + $wrap.empty().append(img); + } else { $.ajax('{"plugs/file/preview"|url}', {method: 'POST', data: src, dataType: 'json'}).done(function (response) { if (response.result) { img = $(''); - $wrap.empty().append(img);} else { - $wrap.text("预览出错");}});}}, thumbnailWidth, thumbnailHeight); + $wrap.empty().append(img); + } else { + $wrap.text("预览出错"); + } + }); + } + }, thumbnailWidth, thumbnailHeight); percentages[ file.id ] = [file.size, 0]; file.rotation = 0; - $upload.html('开始上传');} + $upload.html('开始上传'); + } file.on('statuschange', function (cur, prev) { if (prev === 'progress') { - $prgress.hide().width(0);} else if (prev === 'queued') { + $prgress.hide().width(0); + } else if (prev === 'queued') { $li.off('mouseenter mouseleave'); - $btns.remove();} + $btns.remove(); + } // 成功 if (cur === 'error' || cur === 'invalid') { showError(file.statusText); - percentages[ file.id ][ 1 ] = 1;} else if (cur === 'interrupt') { - showError('interrupt');} else if (cur === 'queued') { - percentages[ file.id ][ 1 ] = 0;} else if (cur === 'progress') { + percentages[ file.id ][ 1 ] = 1; + } else if (cur === 'interrupt') { + showError('interrupt'); + } else if (cur === 'queued') { + percentages[ file.id ][ 1 ] = 0; + } else if (cur === 'progress') { $info.remove(); - $prgress.css('display', 'block');} else if (cur === 'complete') { - $li.append('');} + $prgress.css('display', 'block'); + } else if (cur === 'complete') { + $li.append(''); + } - $li.removeClass('state-' + prev).addClass('state-' + cur);}); + $li.removeClass('state-' + prev).addClass('state-' + cur); + }); $li.on('mouseenter', function () { - $btns.stop().animate({height: 30});}); + $btns.stop().animate({height: 30}); + }); $li.on('mouseleave', function () { - $btns.stop().animate({height: 0});}); + $btns.stop().animate({height: 0}); + }); $btns.on('click', 'span', function () { var index = $(this).index(), deg; @@ -321,47 +387,62 @@ break; case 2: file.rotation -= 90; - break;} + break; + } if (supportTransition) { deg = 'rotate(' + file.rotation + 'deg)'; - $wrap.css({'-webkit-transform': deg, '-mos-transform': deg, '-o-transform': deg, 'transform': deg});} else { - $wrap.css('filter', 'progid:DXImageTransform.Microsoft.BasicImage(rotation=' + (~~((file.rotation / 90) % 4 + 4) % 4) + ')');}}); - $li.appendTo($queue);} + $wrap.css({'-webkit-transform': deg, '-mos-transform': deg, '-o-transform': deg, 'transform': deg}); + } else { + $wrap.css('filter', 'progid:DXImageTransform.Microsoft.BasicImage(rotation=' + (~~((file.rotation / 90) % 4 + 4) % 4) + ')'); + } + }); + $li.appendTo($queue); + } // 负责view的销毁 function removeFile(file) { var $li = $('#' + file.id); delete percentages[ file.id ]; updateTotalProgress(); - $li.off().find('.file-panel').off().end().remove();} + $li.off().find('.file-panel').off().end().remove(); + } function updateTotalProgress() { var loaded = 0, total = 0, spans = $progress.children(), percent; $.each(percentages, function (k, v) { total += v[ 0 ]; - loaded += v[ 0 ] * v[ 1 ];}); + loaded += v[ 0 ] * v[ 1 ]; + }); percent = total ? loaded / total : 0; spans.eq(0).text(Math.round(percent * 100) + '%'); spans.eq(1).css('width', Math.round(percent * 100) + '%'); - updateStatus();} + updateStatus(); + } function updateStatus() { var text = '', stats; if (state === 'ready') { - text = '选中' + fileCount + '个文件,共' + WebUploader.formatSize(fileSize) + '。';} else if (state === 'confirm') { + text = '选中' + fileCount + '个文件,共' + WebUploader.formatSize(fileSize) + '。'; + } else if (state === 'confirm') { stats = uploader.getStats(); if (stats.uploadFailNum) { - text = '已成功上传' + stats.successNum + '个文件,' + stats.uploadFailNum + '个文件上传失败,重新上传失败文件'}} else { + text = '已成功上传' + stats.successNum + '个文件,' + stats.uploadFailNum + '个文件上传失败,重新上传失败文件' + } + } else { stats = uploader.getStats(); text = '共' + fileCount + '个(' + WebUploader.formatSize(fileSize) + '),已上传' + stats.successNum + '个'; if (stats.uploadFailNum) { - text += ',失败' + stats.uploadFailNum + '个';}} - $info.html(text);} + text += ',失败' + stats.uploadFailNum + '个'; + } + } + $info.html(text); + } function setState(val) { var file, stats; if (val === state) { - return;} + return; + } $upload.removeClass('state-' + state); $upload.addClass('state-' + val); state = val; @@ -395,41 +476,51 @@ stats = uploader.getStats(); if (stats.successNum && !stats.uploadFailNum) { setState('finish'); - return;} + return; + } break; case 'finish': stats = uploader.getStats(); if (stats.successNum) { - completed.call(this);} else { + completed.call(this); + } else { // 没有成功的文件,重设 state = 'done'; - location.reload();} - break;} - updateStatus();} + location.reload(); + } + break; + } + updateStatus(); + } uploader.onUploadProgress = function (file, percentage) { var $li = $('#' + file.id), $percent = $li.find('.progress span'); $percent.css('width', percentage * 100 + '%'); percentages[ file.id ][ 1 ] = percentage; - updateTotalProgress();}; + updateTotalProgress(); + }; uploader.onFileQueued = function (file) { fileCount++; fileSize += file.size; if (fileCount === 1) { $placeHolder.addClass('element-invisible'); - $statusBar.show();} + $statusBar.show(); + } addFile(file); setState('ready'); - updateTotalProgress();}; + updateTotalProgress(); + }; uploader.onfieldequeued = function (file) { fileCount--; fileSize -= file.size; if (!fileCount) { - setState('pedding');} + setState('pedding'); + } removeFile(file); - updateTotalProgress();}; + updateTotalProgress(); + }; uploader.on('all', function (type) { switch (type) { @@ -441,24 +532,34 @@ break; case 'stopUpload': setState('paused'); - break;}}); + break; + } + }); uploader.onError = function (code) { - //alert('Eroor: ' + code);}; + //alert('Eroor: ' + code); + }; $upload.on('click', function () { if ($(this).hasClass('disabled')) { - return false;} + return false; + } if (state === 'ready') { - uploader.upload();} else if (state === 'paused') { - uploader.upload();} else if (state === 'uploading') { - uploader.stop();}}); + uploader.upload(); + } else if (state === 'paused') { + uploader.upload(); + } else if (state === 'uploading') { + uploader.stop(); + } + }); $info.on('click', '.retry', function () { - uploader.retry();}); + uploader.retry(); + }); $upload.addClass('state-' + state); - updateTotalProgress();}); + updateTotalProgress(); + }); diff --git a/application/admin/view/user.index.html b/application/admin/view/user.index.html index 07423278b..9df0772d0 100644 --- a/application/admin/view/user.index.html +++ b/application/admin/view/user.index.html @@ -19,15 +19,13 @@
- +
- +
@@ -44,67 +42,67 @@ - - - - - - - - - - + + + + + + + + + + - {foreach $list as $key=>$vo} - - - - - - - - - - - {/foreach} + {foreach $list as $key=>$vo} + + + + + + + + + + + {/foreach}
- - 用户账号手机号电子邮箱登录次数最后登录状态操作
+ + 用户账号手机号电子邮箱登录次数最后登录状态操作
- - {$vo.username}{$vo.phone|default="还没有设置手机号"}{$vo.mail|default="还没有设置邮箱"}{$vo.login_num|default="从未登录"}{$vo.login_at|default="从未登录"} - {if $vo.status eq 0} - 已禁用 - {elseif $vo.status eq 1} - 使用中 - {/if} - - {if auth("$classuri/edit")} - | - 编辑 - {/if} - {if auth("$classuri/auth")} - | - 授权 - {/if} - {if auth("$classuri/pass")} - | - 密码 - {/if} - {if $vo.status eq 1 and auth("$classuri/forbid")} - | - 禁用 - {elseif auth("$classuri/resume")} - | - 启用 - {/if} - {if auth("$classuri/del")} - | - 删除 - {/if} -
+ + {$vo.username}{$vo.phone|default="还没有设置手机号"}{$vo.mail|default="还没有设置邮箱"}{$vo.login_num|default="从未登录"}{$vo.login_at|default="从未登录"} + {if $vo.status eq 0} + 已禁用 + {elseif $vo.status eq 1} + 使用中 + {/if} + + {if auth("$classuri/edit")} + | + 编辑 + {/if} + {if auth("$classuri/auth")} + | + 授权 + {/if} + {if auth("$classuri/pass")} + | + 密码 + {/if} + {if $vo.status eq 1 and auth("$classuri/forbid")} + | + 禁用 + {elseif auth("$classuri/resume")} + | + 启用 + {/if} + {if auth("$classuri/del")} + | + 删除 + {/if} +
{if isset($page)}

{$page}

{/if} diff --git a/application/extra/view/admin.main.top.html b/application/extra/view/admin.main.top.html index c2f0fba57..87259a604 100644 --- a/application/extra/view/admin.main.top.html +++ b/application/extra/view/admin.main.top.html @@ -26,12 +26,12 @@
diff --git a/application/index/view/wap.payjs.html b/application/index/view/wap.payjs.html index acdd6512b..93d771f4d 100644 --- a/application/index/view/wap.payjs.html +++ b/application/index/view/wap.payjs.html @@ -1,57 +1,57 @@ - - - JSAPI支付DEMO - - - - - + + + JSAPI支付DEMO + + + + + -
-

JSAPI支付DEMO

-
-

金额: 0.01元

-
-

-
-
-
- +
+

JSAPI支付DEMO

+
+

金额: 0.01元

+
+

+
+
+
+ +
+
+ 扫码支付测试
-
- 扫码支付测试 -
- - - - - + + + + + \ No newline at end of file diff --git a/application/index/view/wap.payqrc.html b/application/index/view/wap.payqrc.html index b16290f0a..9cdad91c2 100644 --- a/application/index/view/wap.payqrc.html +++ b/application/index/view/wap.payqrc.html @@ -1,53 +1,53 @@ - - - 扫码支付DEMO - - - - - + + + 扫码支付DEMO + + + + + -
-

扫码支付DEMO

-
-

-

请使用其它手机微信扫描二维码。

-
-

金额: 0.01元

-
-

-
- - JSAPI支付测试 -
+
+

扫码支付DEMO

+
+

+

请使用其它手机微信扫描二维码。

+
+

金额: 0.01元

+
+

+
+ + JSAPI支付测试 +
- - - - + + + + \ No newline at end of file diff --git a/application/wechat/view/config.index.html b/application/wechat/view/config.index.html index c48cf4714..2c5e6d85a 100644 --- a/application/wechat/view/config.index.html +++ b/application/wechat/view/config.index.html @@ -19,8 +19,7 @@
- +

公众号应用ID是所有接口必要参数,可以在公众号平台 [ 开发 >> 基本配置 ] 页面获取。

@@ -31,9 +30,7 @@
- +

公众号应用密钥是所有接口必要参数,可以在公众号平台 [ 开发 >> 基本配置 ] 页面授权后获取。

@@ -44,8 +41,7 @@
- +

公众号平台与系统对接认证Token,请优先填写此参数并保存,然后再在微信公众号平台操作对接。

@@ -56,9 +52,7 @@
- +

公众号平台接口设置为加密模式,消息加密密钥必需填写并保持与公众号平台一致。

diff --git a/application/wechat/view/config.pay.html b/application/wechat/view/config.pay.html index a6b2c7d58..b5302d00b 100644 --- a/application/wechat/view/config.pay.html +++ b/application/wechat/view/config.pay.html @@ -10,19 +10,17 @@ .refund-qrc-test { text-align: center; padding: 8px} - -{/block} + + {/block} -{block name="content"} -
+ {block name="content"} +
- +

注意:商户ID必需与微信接口配置公众号APPID对应,否则无法使用支付功能!

@@ -33,9 +31,7 @@
- +

微信支付商户密钥需要在商户平台配置,必需填写密钥之后才能正常使用微信支付功能。

@@ -49,16 +45,14 @@
- -
diff --git a/application/wechat/view/review.index.html b/application/wechat/view/review.index.html index 996255eca..3d13255b7 100644 --- a/application/wechat/view/review.index.html +++ b/application/wechat/view/review.index.html @@ -170,7 +170,9 @@ {/if} diff --git a/vendor/autoload.php b/vendor/autoload.php index 497b0c5f2..fbcec486e 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -4,4 +4,4 @@ require_once __DIR__ . '/composer/autoload_real.php'; -return ComposerAutoloaderInit100512daef0328603db43c7860e1b81c::getLoader(); +return ComposerAutoloaderInit5cb6a9364227ba2158c05a13f4655c4b::getLoader(); diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index ad4bd6ede..d39a5d1db 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -2,7 +2,7 @@ // autoload_real.php @generated by Composer -class ComposerAutoloaderInit100512daef0328603db43c7860e1b81c +class ComposerAutoloaderInit5cb6a9364227ba2158c05a13f4655c4b { private static $loader; @@ -19,15 +19,15 @@ class ComposerAutoloaderInit100512daef0328603db43c7860e1b81c return self::$loader; } - spl_autoload_register(array('ComposerAutoloaderInit100512daef0328603db43c7860e1b81c', 'loadClassLoader'), true, true); + spl_autoload_register(array('ComposerAutoloaderInit5cb6a9364227ba2158c05a13f4655c4b', 'loadClassLoader'), true, true); self::$loader = $loader = new \Composer\Autoload\ClassLoader(); - spl_autoload_unregister(array('ComposerAutoloaderInit100512daef0328603db43c7860e1b81c', 'loadClassLoader')); + spl_autoload_unregister(array('ComposerAutoloaderInit5cb6a9364227ba2158c05a13f4655c4b', 'loadClassLoader')); $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION'); if ($useStaticLoader) { require_once __DIR__ . '/autoload_static.php'; - call_user_func(\Composer\Autoload\ComposerStaticInit100512daef0328603db43c7860e1b81c::getInitializer($loader)); + call_user_func(\Composer\Autoload\ComposerStaticInit5cb6a9364227ba2158c05a13f4655c4b::getInitializer($loader)); } else { $map = require __DIR__ . '/autoload_namespaces.php'; foreach ($map as $namespace => $path) { @@ -48,19 +48,19 @@ class ComposerAutoloaderInit100512daef0328603db43c7860e1b81c $loader->register(true); if ($useStaticLoader) { - $includeFiles = Composer\Autoload\ComposerStaticInit100512daef0328603db43c7860e1b81c::$files; + $includeFiles = Composer\Autoload\ComposerStaticInit5cb6a9364227ba2158c05a13f4655c4b::$files; } else { $includeFiles = require __DIR__ . '/autoload_files.php'; } foreach ($includeFiles as $fileIdentifier => $file) { - composerRequire100512daef0328603db43c7860e1b81c($fileIdentifier, $file); + composerRequire5cb6a9364227ba2158c05a13f4655c4b($fileIdentifier, $file); } return $loader; } } -function composerRequire100512daef0328603db43c7860e1b81c($fileIdentifier, $file) +function composerRequire5cb6a9364227ba2158c05a13f4655c4b($fileIdentifier, $file) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { require $file; diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index ac4bceeab..a95ba247b 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -4,7 +4,7 @@ namespace Composer\Autoload; -class ComposerStaticInit100512daef0328603db43c7860e1b81c +class ComposerStaticInit5cb6a9364227ba2158c05a13f4655c4b { public static $files = array ( '9b552a3cc426e3287cc811caefa3cf53' => __DIR__ . '/..' . '/topthink/think-helper/src/helper.php', @@ -314,9 +314,9 @@ class ComposerStaticInit100512daef0328603db43c7860e1b81c public static function getInitializer(ClassLoader $loader) { return \Closure::bind(function () use ($loader) { - $loader->prefixLengthsPsr4 = ComposerStaticInit100512daef0328603db43c7860e1b81c::$prefixLengthsPsr4; - $loader->prefixDirsPsr4 = ComposerStaticInit100512daef0328603db43c7860e1b81c::$prefixDirsPsr4; - $loader->classMap = ComposerStaticInit100512daef0328603db43c7860e1b81c::$classMap; + $loader->prefixLengthsPsr4 = ComposerStaticInit5cb6a9364227ba2158c05a13f4655c4b::$prefixLengthsPsr4; + $loader->prefixDirsPsr4 = ComposerStaticInit5cb6a9364227ba2158c05a13f4655c4b::$prefixDirsPsr4; + $loader->classMap = ComposerStaticInit5cb6a9364227ba2158c05a13f4655c4b::$classMap; }, null, ClassLoader::class); }