{"id":32489,"date":"2024-11-25T17:54:04","date_gmt":"2024-11-25T09:54:04","guid":{"rendered":"https:\/\/fwq.ai\/blog\/32489\/"},"modified":"2024-11-25T17:54:04","modified_gmt":"2024-11-25T09:54:04","slug":"%e5%be%ae%e4%bf%a1%e5%b0%8f%e7%a8%8b%e5%ba%8f%e5%a6%82%e4%bd%95%e5%ae%9e%e7%8e%b0%e8%8e%b7%e5%8f%96%e9%aa%8c%e8%af%81%e7%a0%81%e5%90%8e%e5%80%92%e8%ae%a1%e6%97%b6%e6%95%88%e6%9e%9c%ef%bc%9f%ef%bc%88","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/32489\/","title":{"rendered":"\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5982\u4f55\u5b9e\u73b0\u83b7\u53d6\u9a8c\u8bc1\u7801\u540e\u5012\u8ba1\u65f6\u6548\u679c\uff1f\uff08\u4ee3\u7801\u793a\u4f8b\uff09"},"content":{"rendered":"<p>\u672c\u7bc7\u6587\u7ae0\u7ed9\u5927\u5bb6\u5e26\u6765\u7684\u5185\u5bb9\u662f\u4ecb\u7ecd\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5982\u4f55\u5b9e\u73b0\u83b7\u53d6\u9a8c\u8bc1\u7801\u540e\u5012\u8ba1\u65f6\u6548\u679c\uff1f\uff08\u4ee3\u7801\u793a\u4f8b\uff09\u3002\u6709\u4e00\u5b9a\u7684\u53c2\u8003\u4ef7\u503c\uff0c\u6709\u9700\u8981\u7684\u670b\u53cb\u53ef\u4ee5\u53c2\u8003\u4e00\u4e0b\uff0c\u5e0c\u671b\u5bf9\u4f60\u4eec\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n<p>\u9996\u5148\u6211\u4eec\u6765\u770b\u770b\u6548\u679c\u56fe\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/\/upload\/image\/419\/654\/451\/1542094589318487.jpg\" style=\"max-width:90%\" class=\"aligncenter\" title=\"\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5982\u4f55\u5b9e\u73b0\u83b7\u53d6\u9a8c\u8bc1\u7801\u540e\u5012\u8ba1\u65f6\u6548\u679c\uff1f\uff08\u4ee3\u7801\u793a\u4f8b\uff09\u63d2\u56fe\" alt=\"\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5982\u4f55\u5b9e\u73b0\u83b7\u53d6\u9a8c\u8bc1\u7801\u540e\u5012\u8ba1\u65f6\u6548\u679c\uff1f\uff08\u4ee3\u7801\u793a\u4f8b\uff09\u63d2\u56fe\" \/><\/p>\n<p>wxml\u4ee3\u7801\uff1a<\/p>\n<pre>&lt;input class='input-pwd' placeholder=\"\u65b0\u5bc6\u7801\" placeholder-style='color: #000' password focus bindconfirm='getPwd'\/&gt;\n&lt;input class='input-tel' type='number' placeholder=\"\u624b\u673a\u53f7\" placeholder-style='color: #000' maxlength='11 confirm-type='done' \/&gt;\n&lt;input class='input-verify' type='number' placeholder-style='color: #000' placeholder='\u624b\u673a\u9a8c\u8bc1\u7801'&gt;&lt;\/input&gt;\n&lt;button class='verify-btn' disabled='{{disabled}}' bindtap=\"getVerificationCode\"&gt;{{time}}&lt;\/button&gt;\n\n&lt;button class='confirm-btn' bindtap='confirm_btn'&gt;\u786e\u8ba4\u4fee\u6539&lt;\/button&gt;<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>wxss\u4ee3\u7801\uff1a<\/p>\n<pre>\/* pages\/forgetpwd\/forgetpwd.wxss *\/\ninput{\n  padding-left: 20rpx;\n  border-bottom: 1rpx solid #ccc;\n  height: 80rpx;\n  line-height: 80rpx;\n  width: 95%;\n  margin: 0 auto;\n  font-size: 28rpx;\n}\n.input-verify{\n  width: 67%;\n  margin-left: 10rpx;\n  float: left;\n}\n.verify-btn{\n  width: 26%;\n  height: 65rpx;\n  float: right;\n  line-height: 65rpx;\n  background: #fff;    \n  color: #5FD79D;\n  margin: 20rpx 10rpx;\n  font-size: 28rpx;\n}\n.confirm-btn{\n  width: 80%;\n  height: 90rpx;\n  margin: 150rpx auto;\n  background: #5FD79D;    \n  color: #fff;\n}<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>js\u4ee3\u7801\uff1a<\/p>\n<pre>\/\/ pages\/forgetpwd\/forgetpwd.js\nvar interval = null \/\/\u5012\u8ba1\u65f6\u51fd\u6570\nPage({\n\n  \/**\n   * \u9875\u9762\u7684\u521d\u59cb\u6570\u636e\n   *\/\n  data: {\n    time: '\u83b7\u53d6\u9a8c\u8bc1\u7801', \/\/\u5012\u8ba1\u65f6 \n    currentTime: 60\n  },\n\n  \/**\n   * \u751f\u547d\u5468\u671f\u51fd\u6570--\u76d1\u542c\u9875\u9762\u52a0\u8f7d\n   *\/\n  onLoad: function (options) {\n\n  },\n\n  getPwd:function(e){\n    console.log(e.detail.value)\n  },\n\n  \/**\n   * \u786e\u8ba4\u4fee\u6539\n   *\/\n  confirm_btn:function(){\n    wx.redirectTo({\n      url: '\/pages\/login\/login',\n    })\n  },\n  \n  getCode: function (options){\n    var that = this;\n    var currentTime = that.data.currentTime\n    interval = setInterval(function () {\n      currentTime--;\n      that.setData({\n        time: currentTime+'\u79d2'\n      })\n      if (currentTime &lt;= 0) {\n        clearInterval(interval)\n        that.setData({\n          time: '\u91cd\u65b0\u53d1\u9001',\n          currentTime:60,\n          disabled: false   \n        })\n      }\n    }, 1000)  \n  },\n  getVerificationCode(){\n    this.getCode();\n    var that = this\n    that.setData({\n      disabled:true\n    })\n  },\n})<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u603b\u7ed3\uff1a\u4ee5\u4e0a\u5c31\u662f\u672c\u7bc7\u6587\u7ae0\u7684\u5168\u90e8\u5185\u5bb9\uff0c\u5e0c\u671b\u80fd\u5bf9\u5927\u5bb6\u7684\u5b66\u4e60\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5982\u4f55\u5b9e\u73b0\u83b7\u53d6\u9a8c\u8bc1\u7801\u540e\u5012\u8ba1\u65f6\u6548\u679c\uff1f\uff08\u4ee3\u7801\u793a\u4f8b\uff09\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u7bc7\u6587\u7ae0\u7ed9\u5927\u5bb6\u5e26\u6765\u7684\u5185\u5bb9\u662f\u4ecb\u7ecd\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u5982\u4f55\u5b9e\u73b0\u83b7\u53d6\u9a8c\u8bc1\u7801\u540e\u5012\u8ba1\u65f6\u6548\u679c\uff1f\uff08\u4ee3\u7801\u793a\u4f8b\uff09\u3002\u6709\u4e00\u5b9a\u7684\u53c2\u8003\u4ef7\u503c\uff0c\u6709\u9700\u8981\u7684\u670b\u53cb\u53ef\u4ee5\u53c2\u8003\u4e00\u4e0b\uff0c\u5e0c\u671b\u5bf9\u4f60\u4eec\u6709\u6240\u5e2e\u52a9\u3002 \u9996\u5148\u6211\u4eec\u6765\u770b\u770b\u6548\u679c\u56fe\uff1a wxml\u4ee3\u7801\uff1a &lt;input class=&#8217;input-pwd&#8217; placeholder=&#8221;\u65b0\u5bc6\u7801&#8221; placeholder-style=&#8217;color: #000&#8242; password focus bindconfirm=&#8217;getPwd&#8217;\/&gt; &lt;input class=&#8217;input-tel&#8217; type=&#8217;number&#8217; placeholder=&#8221;\u624b\u673a\u53f7&#8221; placeholder-style=&#8217;color: #000&#8242; maxlength=&#8217;11 confirm-type=&#8217;done&#8217; \/&gt; &lt;input class=&#8217;input-verify&#8217; type=&#8217;number&#8217; placeholder-style=&#8217;color: #000&#8242; placeholder=&#8217;\u624b\u673a\u9a8c\u8bc1\u7801&#8217;&gt;&lt;\/input&gt; &lt;button class=&#8217;verify-btn&#8217; disabled='{{disabled}}&#8217; bindtap=&#8221;getVerificationCode&#8221;&gt;{{time}}&lt;\/button&gt; &lt;button class=&#8217;confirm-btn&#8217; bindtap=&#8217;confirm_btn&#8217;&gt;\u786e\u8ba4\u4fee\u6539&lt;\/button&gt; \u767b\u5f55\u540e\u590d\u5236 wxss\u4ee3\u7801\uff1a \/* pages\/forgetpwd\/forgetpwd.wxss *\/ input{ padding-left: 20rpx; border-bottom: 1rpx solid #ccc; height: 80rpx; line-height: 80rpx; width: 95%; margin: 0 auto; font-size: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-32489","post","type-post","status-publish","format-standard","hentry","category-19"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/32489","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=32489"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/32489\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=32489"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=32489"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=32489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}