{"id":3563,"date":"2022-03-16T17:24:59","date_gmt":"2022-03-16T09:24:59","guid":{"rendered":"https:\/\/egonlin.com\/?p=3563"},"modified":"2022-04-26T14:04:21","modified_gmt":"2022-04-26T06:04:21","slug":"%e7%ac%ac%e4%b9%9d%e8%8a%82%ef%bc%9a%e6%8a%bd%e5%a5%96%e7%bb%93%e6%9e%9c%e9%a1%b5%e4%bb%a5%e5%8f%8a%e5%a1%ab%e5%86%99%e5%9c%b0%e5%9d%80","status":"publish","type":"post","link":"https:\/\/egonlin.com\/?p=3563","title":{"rendered":"\u7b2c\u4e5d\u8282\uff1a\u62bd\u5956\u7ed3\u679c\u9875\u4ee5\u53ca\u586b\u5199\u5730\u5740"},"content":{"rendered":"<h3>\u62bd\u5956\u7ed3\u679c\u9875\u4ee5\u53ca\u586b\u5199\u5730\u5740<\/h3>\n<p><strong>\u9700\u6c42\uff1a<\/strong>\u7528\u6237\u8fdb\u5165\u8be5\u9875\u9762\uff0c\u5224\u65ad\u662f\u5426\u5df2\u7ecf\u5f00\u5956\uff0c\u5982\u679c\u672a\u5f00\u5956\u7b49\u5f85\u5f00\u5956\uff0c\u5982\u679c\u5df2\u7ecf\u5f00\u5956\uff0c\u5219\u663e\u793a\u5f00\u5956\u7ed3\u679c\uff0c\u5982\u679c\u7528\u6237\u4e2d\u5c06\u53ef\u4ee5\u586b\u5199\u6536\u8d27\u5730\u5740\u3002<\/p>\n<h4>\u5c0f\u7a0b\u5e8f\u7aef<\/h4>\n<p>1\u5728\u5f00\u5956\u9875\u9762\u663e\u793a\u540e\u7aef\u8fd4\u56de\u7684\u6570\u636e\u663e\u793a\u5f00\u5956\u7ed3\u679c\uff0c\u6839\u636e\u4e0d\u540c\u7684\u72b6\u6001\u663e\u793a\u4e0d\u540c\u7684\u4fe1\u606f\uff0c\u5982\u679c\u4e2d\u5956\u7528\u6237\u53ef\u4ee5\u586b\u5199\u6536\u8d27\u5730\u5740\u3002\u5982\u679c\u672a\u4e2d\u5956\u6216\u8005\u672a\u5f00\u5956\u5219\u663e\u793a\u76f8\u5e94\u7684\u7ed3\u679c\u3002<\/p>\n<p>app.json<\/p>\n<pre><code class=\"language-json\"> {\n  &quot;pages&quot;: [\n    &quot;pages\/index\/index&quot;,\n    &quot;pages\/list\/list&quot;,\n    &quot;pages\/item\/item&quot;,\n    &quot;pages\/login\/login&quot;,    \n    &quot;pages\/payment\/payresult\/payresult&quot;,\n     &quot;pages\/gift\/join\/join&quot;,\n     &quot;pages\/gift\/openresult\/openresult&quot;,\n  ],\n  &quot;window&quot;: {\n    &quot;backgroundTextStyle&quot;: &quot;light&quot;,\n    &quot;navigationBarBackgroundColor&quot;: &quot;#e50e38&quot;,\n    &quot;navigationBarTitleText&quot;: &quot;\u767e\u6b65\u751f\u6d3b&quot;,\n    &quot;navigationBarTextStyle&quot;: &quot;#fff&quot;,\n    &quot;enablePullDownRefresh&quot;: false,\n    &quot;backgroundColor&quot;: &quot;#e50e38&quot;\n  },\n}<\/code><\/pre>\n<p>openresult.wxml<\/p>\n<pre><code class=\"language-html\">  &lt;view class=&quot;container&quot;&gt;\n    &lt;view class=&quot;success-status&quot;&gt;\n      &lt;block wx:if=&quot;{{message==&#039;200&#039;}}&quot;&gt;\n          &lt;view class=&quot;tip&quot;&gt;\u606d\u559c\u4f60\uff0c\u4e2d\u5956\u4e86&lt;\/view&gt;\n          &lt;view class=&quot;open-condition&quot;&gt;\u83b7\u5f97&quot;{{item_data[0].name}}&quot;&lt;\/view&gt;\n      &lt;\/block&gt;\n      &lt;block wx:elif=&quot;{{message==&#039;201&#039;}}&quot;&gt;\n          &lt;view class=&quot;tip&quot;&gt;\u5f88\u9057\u61be\uff0c\u4f60\u672a\u4e2d\u5956&lt;\/view&gt;\n          &lt;view class=&quot;open-condition&quot;&gt;\u795d\u4f60\u4e0b\u6b21\u597d\u8fd0&lt;\/view&gt;\n      &lt;\/block&gt;\n      &lt;block wx:elif=&quot;{{message==&#039;202&#039;}}&quot;&gt;\n          &lt;view class=&quot;tip&quot;&gt;\u53c2\u4e0e\u6210\u529f\uff0c\u7b49\u5f85\u5f00\u5956&lt;\/view&gt;\n          &lt;view class=&quot;open-condition&quot;&gt;\n              &lt;block wx:if=&quot;{{methodType.get_method==&#039;\u6ee1\u4eba\u5f00\u5956&#039;}}&quot;&gt;\u6ee1{{methodType.open_number}}\u4eba\u5f00\u5956&lt;\/block&gt;\n              &lt;block wx:if=&quot;{{methodType.get_method==&#039;\u5b9a\u65f6\u5f00\u5956&#039;}}&quot;&gt;{{methodType.opentime}}\u5f00\u5956&lt;\/block&gt;\n          &lt;\/view&gt;\n      &lt;\/block&gt;\n      &lt;block wx:elif=&quot;{{message==&#039;203&#039;}}&quot;&gt;\n          &lt;view class=&quot;tip&quot;&gt;\u793c\u5305\u5df2\u8fc7\u671f&lt;\/view&gt;\n      &lt;\/block&gt;\n    &lt;\/view&gt;\n    &lt;image class=&#039;avatar&#039; src=&#039;{{buy_member.avatar}}&#039;&gt;&lt;\/image&gt;\n    &lt;scroll-view class=&quot;detail-box&quot; scroll-y=&quot;true&quot;&gt;\n        &lt;view class=&quot;u-info&quot;&gt;{{buy_member.name}}\u9001\u51fa{{total_number}}\u4efd\u793c\u7269&lt;\/view&gt;\n        &lt;view class=&quot;wish&quot;&gt;{{order_data.memo}}&lt;\/view&gt;\n        &lt;block wx:if=&quot;{{message==&#039;200&#039;}}&quot;&gt;\n            &lt;view class=&quot;product-wrap&quot;&gt;\n                &lt;image src=&quot;{{item_data[0].image_id.m_url}}&quot;&gt;&lt;\/image&gt;\n                &lt;view class=&quot;name&quot;&gt;{{item_data[0].name}}&lt;\/view&gt;\n            &lt;\/view&gt;\n        &lt;\/block&gt;\n        &lt;block wx:if=&quot;{{message==&#039;201&#039;}}&quot;&gt;\n            &lt;block wx:for=&quot;{{item_data}}&quot; wx:for-index=&quot;index&quot; wx:key=&quot;key&quot;&gt;\n                &lt;view class=&quot;item-wrap&quot;&gt;\n                    &lt;image class=&quot;item-img&quot; src=&quot;{{item.image_id.m_url}}&quot;&gt;&lt;\/image&gt;\n                    &lt;view class=&quot;text&quot;&gt;\n                        &lt;view class=&quot;name&quot;&gt;{{item.name}}&lt;\/view&gt;\n                        &lt;view class=&quot;num&quot;&gt;\u5171{{item.number}}\u4efd&lt;\/view&gt;\n                    &lt;\/view&gt;\n                    &lt;view class=&quot;tip&quot;&gt;\u672a\u4e2d\u5956&lt;\/view&gt;\n                &lt;\/view&gt;\n            &lt;\/block&gt;\n        &lt;\/block&gt;\n        &lt;block wx:if=&quot;{{message==&#039;202&#039;}}&quot;&gt;\n            &lt;block wx:if=&quot;{{item_data.length&gt;1}}&quot;&gt;\n                &lt;view class=&quot;product-wrap&quot;&gt;\n                    &lt;image src=&quot;{{giftBox}}&quot;&gt;&lt;\/image&gt;\n                &lt;\/view&gt;\n            &lt;\/block&gt;\n            &lt;block wx:else&gt;\n                &lt;view class=&quot;product-wrap&quot;&gt;\n                    &lt;image src=&quot;{{item_data[0].image_id.m_url}}&quot;&gt;&lt;\/image&gt;\n                    &lt;view class=&quot;name&quot;&gt;{{item_data[0].name}}&lt;\/view&gt;\n                &lt;\/view&gt;\n            &lt;\/block&gt;\n            &lt;view class=&quot;join-total&quot;&gt;\u5df2\u6709{{join_member.length}}\u4eba\u53c2\u4e0e&lt;\/view&gt;\n            &lt;view class=&quot;avatarsLists&quot;&gt;\n                &lt;block wx:for=&quot;{{join_member}}&quot; wx:for-index=&quot;index&quot; wx:key=&quot;key&quot;&gt;\n                    &lt;block wx:if=&quot;{{index&lt;16}}&quot;&gt;\n                        &lt;image class=&quot;join-avatar&quot; src=&quot;{{item.member.avatar}}&quot;&gt;&lt;\/image&gt;\n                    &lt;\/block&gt;\n                &lt;\/block&gt;\n            &lt;\/view&gt;\n        &lt;\/block&gt;\n        &lt;block wx:if=&quot;{{message==&#039;203&#039;}}&quot;&gt;\n            &lt;block wx:if=&quot;{{item_data.length&gt;1}}&quot;&gt;\n                &lt;view class=&quot;product-wrap&quot;&gt;\n                    &lt;image src=&quot;{{giftBox}}&quot;&gt;&lt;\/image&gt;\n                &lt;\/view&gt;\n            &lt;\/block&gt;\n            &lt;block wx:else&gt;\n                &lt;view class=&quot;product-wrap&quot;&gt;\n                    &lt;image src=&quot;{{item_data[0].image_id.m_url}}&quot;&gt;&lt;\/image&gt;\n                    &lt;view class=&quot;name&quot;&gt;{{item_data[0].name}}&lt;\/view&gt;\n                &lt;\/view&gt;\n            &lt;\/block&gt;\n        &lt;\/block&gt;\n        &lt;block wx:if=&quot;{{message==&#039;200&#039;||message==&#039;201&#039;}}&quot;&gt;\n            &lt;view class=&quot;record&quot;&gt;\n                &lt;view class=&quot;total&quot;&gt;\u5171{{join_member_count}}\u4eba\u53c2\u4e0e,{{get_all_member.length}}\u4eba\u4e2d\u5956&lt;\/view&gt;\n                &lt;view wx:for=&quot;{{get_all_member}}&quot; wx:for-index=&quot;index&quot; wx:key=&quot;key&quot;&gt;\n                    &lt;view class=&quot;record-item&quot;&gt;\n                        &lt;image class=&quot;list-avatar&quot; src=&quot;{{item.get_mermber_id.avatar}}&quot;&gt;&lt;\/image&gt;\n                        &lt;text class=&quot;uname&quot;&gt;{{item.get_mermber_id.name}}&lt;\/text&gt;\n                        &lt;text class=&quot;p-name&quot;&gt;{{item.name}}&lt;\/text&gt;\n                    &lt;\/view&gt;\n\n                &lt;\/view&gt;\n            &lt;\/view&gt;\n        &lt;\/block&gt;\n        &lt;view class=&quot;padding-box&quot;&gt;&lt;\/view&gt;\n    &lt;\/scroll-view&gt;\n    &lt;block wx:if=&quot;{{message==&#039;200&#039; &amp;&amp; !item_data[0].consignee_address}}&quot;&gt;\n        &lt;text bindtap=&#039;editAddr&#039; class=&quot;btn-share&quot;&gt;\u586b\u5199\u6536\u8d27\u5730\u5740&lt;\/text&gt;\n    &lt;\/block&gt;\n    &lt;block wx:elif=&quot;{{message!=&#039;200&#039; &amp;&amp; buy_member.member_id==&#039;1&#039;}}&quot;&gt;\n        &lt;button class=&quot;invite&quot; open-type=&quot;share&quot;&gt;\u9080\u8bf7\u597d\u53cb\u62bd\u5956&lt;\/button&gt;\n        &lt;text bindtap=&#039;toMore&#039; class=&quot;join-more&quot;&gt;\u53c2\u4e0e\u66f4\u591a\u62bd\u5956&lt;\/text&gt; \n    &lt;\/block&gt;\n    &lt;block wx:else&gt;\n        &lt;navigator class=&quot;btn-share&quot; url=&quot;\/pages\/list\/list&quot;&gt;\u6211\u4e5f\u8981\u9001\u793c&lt;\/navigator&gt;\n    &lt;\/block&gt;\n  &lt;\/view&gt;<\/code><\/pre>\n<p>openresult.wxss<\/p>\n<pre><code class=\"language-css\">button::after{\n  border: none;\n}\n.btn-share{\n  width: 480rpx;\n  height: 88rpx;\n  border-radius: 44rpx;\n  background: #e50e38;\n  color: #fff;\n  line-height: 88rpx;\n  text-align: center;\n  margin-top: 40rpx;\n  letter-spacing: 2rpx;\n  font-size: 36rpx;\n  position: absolute;\n  bottom: 120rpx;\n  left: 145rpx;\n}\n.invite{\n  width: 240rpx;\n  height: 88rpx;\n  border-radius: 44rpx;\n  background: #e50e38;\n  color: #fff;\n  line-height: 88rpx;\n  text-align: center;\n  margin-top: 40rpx;\n  letter-spacing: 2rpx;\n  font-size: 28rpx;\n  position: absolute;\n  bottom: 120rpx;\n  left: 90rpx;\n  border: none;\n}\n.join-more{\n    width: 240rpx;\n    height: 88rpx;\n    border-radius: 44rpx;\n    background: #fff;\n    color: #e50e38;\n    line-height: 88rpx;\n    text-align: center;\n    margin-top: 40rpx;\n    letter-spacing: 2rpx;\n    font-size: 28rpx;\n    position: absolute;\n    bottom: 120rpx;\n    right: 90rpx;\n    box-shadow:0 0 4rpx 4rpx #ccc;\n}\npage{\n  background: #e50e38;\n  width: 100%;\n  height: 100%;\n}\n.container{\n  width: 100%;\n  height: 100%;\n  padding: 0;\n}\n.container .success-status{\n  padding: 36rpx 0;\n  color: #fff;\n  height: 20%;\n}\n.container .success-status .tip{\n  text-align: center;\n  line-height: 60rpx;\n  font-size: 36rpx;\n}\n.container .success-status .open-condition{\n  text-align: center;\n  line-height: 60rpx;\n  font-size: 28rpx;\n}\n.detail-box{\n  position: relative;\n  height: 80%;\n  background: #fff;\n  width: 718rpx;\n  margin: 0 16rpx;\n  border-top-left-radius: 16rpx;\n  border-top-right-radius: 16rpx;\n  text-align: center;\n}\n.avatar{\n  position:absolute;\n  width:120rpx;\n  height:120rpx;\n  top:20%;\n  left:50%;\n  margin-top:-60rpx;\n  margin-left:-60rpx;\n  border-radius: 50%;\n  z-index: 999;\n}\n.u-info{\n  text-align: center;\n  padding-top:80rpx;\n  font-size:28rpx;\n}\n.wish{\n  text-align: center;\n  padding-top:32rpx;\n  font-size:36rpx;\n  margin-bottom: 20rpx;\n}\n.detail-box .name{\n  text-align: center;\n  font-size: 28rpx;\n  margin-bottom: 20rpx;\n}\n.detail-box image{\n  width: 450rpx;\n  height: 450rpx;\n  text-align: center\n}\n.product-wrap{\n  border: 2rpx solid #aa924c;\n  width: 450rpx;\n  margin: 20rpx 134rpx;\n}\n.item-wrap{\n  border: 2rpx solid #aa924c;\n  border-radius: 10rpx;\n  margin: 20rpx 50rpx;\n  text-align: left;\n  padding: 8rpx;\n  overflow: hidden;\n  position: relative;\n}\n.item-wrap .item-img{\n  width: 136rpx;\n  height: 138rpx;\n}\n.item-wrap .text{\n    display: inline-block;\n    width: 360rpx;\n    text-align: left;\n    vertical-align: top;\n}\n.item-wrap .text .name,.num{\n    text-align: left;\n    font-size: 30rpx;\n    margin-bottom: 0rpx;\n    color: #aa924c;\n    padding-left: 16rpx;\n    line-height: 68rpx;\n    height: 68rpx;\n     word-break: break-all;\n    -webkit-box-orient: vertical;\n    -webkit-line-clamp:1;\n    overflow: hidden;\n    text-overflow:ellipsis;\n    display: -webkit-box;\n}\n.item-wrap .tip{\n  background: #aa924c;\n  color: #fff;\n  text-align: center;\n  font-size: 20rpx;\n  transform: rotate(45deg);\n  top:-20rpx;\n  right:-72rpx;\n  position:absolute;\n  padding:10rpx 60rpx;\n  padding-top:40rpx;\n}\n.record{\n  background: #f8f8f8;\n  width: 680rpx;\n  margin: 0 auto;\n  border-radius: 10rpx;\n  line-height: 96rpx;\n}\n.record .total{\n  line-height: 96rpx;\n  text-align: left;\n  font-size: 30rpx;\n  padding-left: 40rpx;\n  border-bottom: 2rpx solid #eeeeee;\n}\n.record .record-item{\n  border-bottom: 2rpx solid #eeeeee;\n  text-align: left;\n  line-height: 120rpx;\n  position: relative;\n}\n.record .record-item .list-avatar{\n  height: 76rpx;\n  width: 76rpx;\n  border-radius: 50%;\n  display: inline-block;\n  line-height: 120rpx;\n  vertical-align: middle;\n  margin-left: 40rpx;\n}\n.record .record-item .uname{\n  padding-left: 20rpx;\n  font-size: 24rpx;\n\n}\n.record .record-item .p-name{\n  position: absolute;\n  right: 20rpx;\n  top: 0;\n  font-size: 24rpx;\n  text-align: right;\n  width: 280rpx;\n  height: 120rpx;\n  line-height: 120rpx;\n  word-break: break-all;\n  -webkit-box-orient: vertical;\n  -webkit-line-clamp:1;\n  overflow: hidden;\n  text-overflow:ellipsis;\n  display: -webkit-box;\n}\n.padding-box{\n  height: 250rpx;\n}\n.avatarsLists{\n  width: 535rpx;\n  margin: 0 auto;\n}\n.avatarsLists image.join-avatar{\n  width: 58rpx;\n  height: 58rpx;\n  display: inline-block;\n  margin-right: 10rpx;\n  margin-bottom: 10rpx;\n}\n.avatarsLists image.join-avatar:nth-child(8n){\n  margin-right: 0rpx;\n}\n.join-total{\n  font-size: 30rpx;\n  line-height: 50rpx;\n  margin-bottom: 20rpx;\n}\n<\/code><\/pre>\n<p>openresult.js<\/p>\n<pre><code class=\"language-js\">const app = getApp();\nPage({\n\n  \/**\n   * \u9875\u9762\u7684\u521d\u59cb\u6570\u636e\n   *\/\n  data: {\n    giftBox:&#039;\/images\/purplebox.jpg&#039;\n  },\n\n  \/**\n   * \u751f\u547d\u5468\u671f\u51fd\u6570--\u76d1\u542c\u9875\u9762\u52a0\u8f7d\n   *\/\n  onLoad: function (options) {\n    var _this = this;\n    \/\/wx.hideShareMenu();\/\/\u9690\u85cf\u5c0f\u7a0b\u5e8f\u5934\u90e8\u7684\u8f6c\u53d1\uff0c\u5fc5\u987b\u4f7f\u7528\u6309\u94ae\u5206\u4eab\n    wx.showShareMenu({\n      withShareTicket: true\n    });\n    this.setData({\n      orderId: options.orderId,\n      userInfo: app.globalData.userInfo\n    }, function () {\n\n      wx.request({\/\/\u8bf7\u6c42\u8ba2\u5355\u4fe1\u606f\u4ee5\u53ca\u5206\u4eab\u8bc6\u522b\u7801\n        url: app.globalData.apiDomain + &#039;\/api\/sharagift\/checkIsGetGift&#039;,\n        data: {\n          &#039;order_id&#039;: _this.data.orderId,\n          &#039;login_key&#039;: wx.getStorageSync(&#039;login_key&#039;)\n        },\n        method: &quot;POST&quot;,\n        header: {\n          &#039;content-type&#039;: &#039;application\/json&#039; \/\/ \u9ed8\u8ba4\u503c\n        },\n        success: function (res) {\n          if (res.data.data.buy_member.member_id!=&#039;1&#039;){\n            wx.hideShareMenu({});\n          };\n          _this.setData({\n            message: res.data.message,\n            buy_member: res.data.data.buy_member,\n            total_number: res.data.data.gift_number,\n            item_data: res.data.data.item_data,\n            order_data: res.data.data.order_data\n          });\n          if (res.data.data.order_methon){\n            _this.setData({\n              methodType: res.data.data.order_methon\n            })\n          };\n          if (res.data.data.join_member){\n            _this.setData({\n              join_member: res.data.data.join_member\n            })\n          };\n          if (res.data.data.get_all_member){\n            _this.setData({\n              get_all_member: res.data.data.get_all_member\n            })\n          };\n          if (res.data.data.join_member_count) {\n            _this.setData({\n              join_member_count: res.data.data.join_member_count\n            })\n          };\n        }\n      })\n    });\n  },\n\n  \/**\n   * \u751f\u547d\u5468\u671f\u51fd\u6570--\u76d1\u542c\u9875\u9762\u521d\u6b21\u6e32\u67d3\u5b8c\u6210\n   *\/\n  onReady: function () {\n\n  },\n\n  \/**\n   * \u751f\u547d\u5468\u671f\u51fd\u6570--\u76d1\u542c\u9875\u9762\u663e\u793a\n   *\/\n  onShow: function () {\n\n  },\n\n  \/**\n   * \u751f\u547d\u5468\u671f\u51fd\u6570--\u76d1\u542c\u9875\u9762\u9690\u85cf\n   *\/\n  onHide: function () {\n\n  },\n\n  \/**\n   * \u751f\u547d\u5468\u671f\u51fd\u6570--\u76d1\u542c\u9875\u9762\u5378\u8f7d\n   *\/\n  onUnload: function () {\n\n  },\n\n  \/**\n   * \u9875\u9762\u76f8\u5173\u4e8b\u4ef6\u5904\u7406\u51fd\u6570--\u76d1\u542c\u7528\u6237\u4e0b\u62c9\u52a8\u4f5c\n   *\/\n  onPullDownRefresh: function () {\n\n  },\n\n  \/**\n   * \u9875\u9762\u4e0a\u62c9\u89e6\u5e95\u4e8b\u4ef6\u7684\u5904\u7406\u51fd\u6570\n   *\/\n  onReachBottom: function () {\n\n  },\n  onShareAppMessage: function () {\n    var _this = this;\n    var _image = _this.data.item_data[0].image_id.m_url;\n    var showName = (app.globalData.userInfo &amp;&amp; app.globalData.userInfo.nickName) ? app.globalData.userInfo.nickName : &#039;&#039;;\n    return {\n      title: showName + &#039;\u9080\u8bf7\u4f60\u53c2\u4e0e\u514d\u8d39\u62bd\u5956\uff0c\u5feb\u6765\u8bd5\u8bd5\u624b\u6c14\u5427\uff01&#039;,\n      path: &#039;\/pages\/gift\/join\/join?token=&#039; + _this.data.order_data.order_id,\n      imageUrl: _image,\n      success: function (res) {\n        wx.showToast({\n          title: &#039;\u5206\u4eab\u6210\u529f&#039;,\n          icon: &#039;none&#039;,\n          duration: 2000\n        });\n      },\n      fail: function () {\n        wx.showToast({\n          title: &#039;\u5206\u4eab\u5931\u8d25&#039;,\n          icon: &#039;none&#039;,\n          duration: 2000\n        });\n      }\n    }\n  },\n  toMore:function(){\n    wx.switchTab({\n      url: &#039;\/pages\/daily\/daily&#039;\n    })\n  },\n  editAddr:function(){\n    var _this = this;\n    wx.chooseAddress({\n      success: function (res) {\n        console.log(res);\n        var userName = res.userName;\n        var postalCode = res.postalCode;\n        var provinceName = res.provinceName;\n        var cityName = res.cityName;\n        var countyName = res.countyName;\n        var detailInfo = res.detailInfo;\n        var nationalCode = res.nationalCode;\n        var telNumber = res.telNumber;\n        wx.request({\n          url: app.globalData.apiDomain + &#039;\/api\/putdelivery\/putAddress&#039;,\n          data: {\n            &#039;login_key&#039;: wx.getStorageSync(&#039;login_key&#039;),\n            &#039;order_id&#039;: _this.data.orderId,\n            &#039;userName&#039;: userName,\n            &#039;postalCode&#039;: postalCode,\n            &#039;provinceName&#039;: provinceName,\n            &quot;cityName&quot;: cityName,\n            &#039;countyName&#039;: countyName,\n            &#039;detailInfo&#039;: detailInfo,\n            &#039;nationalCode&#039;: nationalCode,\n            &#039;telNumber&#039;: telNumber\n          },\n          method: &quot;POST&quot;,\n          header: {\n            &#039;content-type&#039;: &#039;application\/json&#039; \/\/ \u9ed8\u8ba4\u503c\n          },\n          success:function(res){\n            wx.reLaunch({\n              url: &#039;\/pages\/index\/index&#039;,\n            })\n          },\n          fail:function(){\n            \/\/\u7f51\u7edc\u6216\u8005\u670d\u52a1\u5668\u5f02\u5e38\n          }\n        })\n      }\n    })\n  }\n})<\/code><\/pre>\n<h4>\u7ed3\u679c\u9875\u670d\u52a1\u7aef<\/h4>\n<p><\/p><div id=\"rml_readmorelogin_placeholder\" style=\"position:relative;\"><div id=\"rml_fade_content\" style=\"position: absolute;\r\ntop:-10em;\r\nwidth:100%;\r\nheight:10em;\r\nbackground: -webkit-linear-gradient(rgba(255, 255, 255, 0) 0%,#ffffff 100%);\r\nbackground-image: -moz-linear-gradient(rgba(255, 255, 255, 0) 0%,#ffffff 100%);\r\nbackground-image: -o-linear-gradient(rgba(255, 255, 255, 0) 0%,#ffffff 100%);\r\nbackground-image: linear-gradient(rgba(255, 255, 255, 0) 0%,#ffffff 100%);\r\nbackground-image: -ms-linear-gradient(rgba(255, 255, 255, 0) 0%,#ffffff 100%);\"><\/div><div class=\"wpf-controller aru_rml_from_in_post\" style=\"background-color:#eeeeee;border:5px solid #cce6ff;\" id=\"ARU_ReadMoreLogin_ReadMoreLoginController\"><h2 id=\"Header\">\u67e5\u770b\u66f4\u591a<\/h2><div id=\"Message\"><p>\u8054\u7cfb\u7ba1\u7406\u5458\u5fae\u4fe1tutu19192010\uff0c\u6ce8\u518c\u8d26\u53f7<\/p>\n<\/div><div id=\"StatusBarHeader\"><\/div><form id=\"ARU_ReadMoreLogin_ReadMoreLoginController\"><input name=\"post_id\" value=\"3563\" type=\"hidden\"\/><input name=\"_init_callback\" value=\"InitLogin\" type=\"hidden\"\/><input name=\"post_id\" value=\"3563\" type=\"hidden\"\/><input name=\"rt_ype\" value=\"1\" type=\"hidden\"\/><input name=\"nonce\" value=\"5095dec6d3\" type=\"hidden\"\/><input name=\"_wpnonce\" value=\"7755f0f36d\" type=\"hidden\"\/><input name=\"_controller\" value=\"ARU_ReadMoreLogin\\ReadMoreLoginController\" type=\"hidden\"\/><input name=\"_proxy_controller\" value=\"ARU_ReadMoreLogin\\ReadMoreLoginController\" type=\"hidden\"\/><input name=\"_view\" value=\"ARU_ReadMoreLogin\\ReadMoreLoginView\" type=\"hidden\"\/><table class=\"wpf-table-placeholder\"><tbody class=\"wpf-table-placeholder\"><tr class=\"wpf-table-placeholder\"><td class=\"wpf-table-placeholder-input\" width=\"400px\"><table class=\"wpf-table-placeholder\"><tbody class=\"wpf-table-placeholder\"><tr class=\"wpf-table-placeholder\"><th class=\"wpf-table-placeholder-input\"><label class=\"wpf-label\">Username:<\/label><\/th><\/tr><tr class=\"wpf-table-placeholder\"><td class=\"wpf-table-placeholder-input\"><input class=\"regular-text text_input\" name=\"username\" value=\"\" type=\"text\"\/><\/td><\/tr><tr class=\"wpf-table-placeholder\"><th class=\"wpf-table-placeholder-input\"><label class=\"wpf-label\">Password:<\/label><\/th><\/tr><tr class=\"wpf-table-placeholder\"><td class=\"wpf-table-placeholder-input\"><input class=\"regular-text text_input\" name=\"password\" value=\"\" type=\"password\"\/><\/td><\/tr><\/tbody><\/table><p class=\"wpf-table-placeholder submit\"><button class=\"wp_plugin_framework_ajax_button\" type=\"button\" style=\"background-color:#4D90FE;;color:#ffffff;;border:1px solid #3079ed;\" name=\"_event\" value=\"ButtonLogin\">Log in<\/button><\/p><\/td><td class=\"wpf-table-placeholder-input\"><\/td><\/tr><\/tbody><\/table><\/form><div id=\"ButtonStartRegister\"><a href=\"https:\/\/egonlin.com\/wp-login.php?action=register\">Register<\/a><\/div><div id=\"Link1\"><a href=\"https:\/\/egonlin.com\/wp-login.php?action=lostpassword\">Forgotten username or password?<\/a><\/div><div id=\"StatusBarFooter\"><\/div><\/div><\/div><div id=aru_remaining_content><\/div>","protected":false},"excerpt":{"rendered":"<p>\u62bd\u5956\u7ed3\u679c\u9875\u4ee5\u53ca\u586b\u5199\u5730\u5740 \u9700\u6c42\uff1a\u7528\u6237\u8fdb\u5165\u8be5\u9875\u9762\uff0c\u5224\u65ad\u662f\u5426\u5df2\u7ecf\u5f00\u5956\uff0c\u5982\u679c\u672a\u5f00\u5956\u7b49\u5f85\u5f00\u5956\uff0c\u5982\u679c\u5df2\u7ecf\u5f00\u5956\uff0c\u5219\u663e\u793a\u5f00\u5956\u7ed3 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[307,309],"tags":[],"_links":{"self":[{"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/posts\/3563"}],"collection":[{"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3563"}],"version-history":[{"count":0,"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/posts\/3563\/revisions"}],"wp:attachment":[{"href":"https:\/\/egonlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}