1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- @{
- ViewBag.Title = "参数设置";
- Layout = "~/Views/Shared/_Form.cshtml";
- }
- <script>
- $(function () {
- resize();
- })
- function resize() {
- $('#pageayout').height($(window).height() - 20);
- $(window).resize(function (e) {
- window.setTimeout(function () {
- $('#pageayout').height($(window).height() - 20);
- }, 200);
- e.stopPropagation();
- });
- }
- //保存表单
- function AcceptClick() {
- if (!$('#form1').Validform()) {
- return false;
- }
- var postData = $("#form1").GetWebControls("");
- dialogConfirm("注:您确定要修改微信公众号的参数吗?", function (r) {
- if (r) {
- $.SaveForm({
- url: "../../WeChatManage/SetParams/SaveForm",
- param: postData,
- loading: "正在保存数据...",
- success: function () {
- reload();
- }
- })
- }
- });
- }
- </script>
- <style>
- body {
- margin: 10px;
- margin-bottom: 0px;
- }
- </style>
- <div id="pageayout" class="border" style="background: #fff; overflow: auto;">
- <div class="alert alert-danger" style="text-align: left; margin: 20px;">
- <i class="fa fa-question-circle" style="position: relative; top: 1px; font-size: 15px; padding-right: 5px;"></i>
- 注:AppID和Secret密钥关系微信公众号安全,请不要告诉不信任的人!
- </div>
- <table class="form" style="margin-top: 20px; width: 600px; margin-left: 25px;">
- <tr>
- <td class="formTitle" style="width: 100px;">AppID<font face="宋体">*</font></td>
- <td class="formValue">
- <input id="CorpId" type="text" class="form-control" placeholder="请输入AppID" isvalid="yes" checkexpession="NotNull" value="@ViewBag.AppId" />
- </td>
- </tr>
- <tr>
- <td class="formTitle" style="width: 100px;">Secret密钥<font face="宋体">*</font></td>
- <td class="formValue">
- <input id="CorpSecret" type="text" class="form-control" placeholder="请输入凭证密钥" isvalid="yes" checkexpession="NotNull" value="@ViewBag.Secret"/>
- </td>
- </tr>
- <tr>
- <td class="formTitle" style="width: 100px;">Token<font face="宋体">*</font></td>
- <td class="formValue">
- <input id="Token" type="text" class="form-control" placeholder="请输入Token" isvalid="yes" checkexpession="NotNull" value="@ViewBag.Token"/>
- </td>
- </tr>
- <tr>
- <td class="formTitle"></td>
- <td class="formValue">
- <br />
- <a id="btn_RevisePassword" class="btn btn-primary" onclick="AcceptClick()"><i class="fa fa-save"></i> 保 存</a>
- </td>
- </tr>
- </table>
- </div>
|