Browse Source

Merge branch 'paul' of XWTC/P003-WX-HomeTeacher into master

Paul 2 years ago
parent
commit
9d765cc517
100 changed files with 1463 additions and 0 deletions
  1. 4 0
      .gitignore
  2. 201 0
      LICENSE
  3. 72 0
      README.md
  4. 140 0
      app.js
  5. 193 0
      app.json
  6. 85 0
      app.wxss
  7. 78 0
      components/fuwuxieyi/index.js
  8. 6 0
      components/fuwuxieyi/index.json
  9. 18 0
      components/fuwuxieyi/index.wxml
  10. 32 0
      components/fuwuxieyi/index.wxss
  11. 4 0
      components/fuwuxieyi/sn.txt
  12. 1 0
      components/parser.20200414.min/libs/CssHandler.js
  13. 1 0
      components/parser.20200414.min/libs/MpHtmlParser.js
  14. 1 0
      components/parser.20200414.min/libs/config.js
  15. 1 0
      components/parser.20200414.min/parser.js
  16. 1 0
      components/parser.20200414.min/parser.json
  17. 1 0
      components/parser.20200414.min/parser.wxml
  18. 1 0
      components/parser.20200414.min/parser.wxss
  19. 1 0
      components/parser.20200414.min/trees/handler.wxs
  20. 1 0
      components/parser.20200414.min/trees/trees.js
  21. 1 0
      components/parser.20200414.min/trees/trees.json
  22. 0 0
      components/parser.20200414.min/trees/trees.wxml
  23. 1 0
      components/parser.20200414.min/trees/trees.wxss
  24. 7 0
      config.js
  25. BIN
      images/face.png
  26. BIN
      images/gift.png
  27. BIN
      images/home/goodslist.png
  28. BIN
      images/home/kanjia.png
  29. BIN
      images/home/miaosha.png
  30. BIN
      images/home/notice.png
  31. BIN
      images/home/pingtuan.png
  32. BIN
      images/home/recommend.png
  33. 0 0
      images/icon/car.svg
  34. 1 0
      images/icon/close.svg
  35. 1 0
      images/icon/close0.svg
  36. 12 0
      images/icon/coupons-active.svg
  37. 12 0
      images/icon/coupons-off.svg
  38. 1 0
      images/icon/delete.svg
  39. 1 0
      images/icon/edit.svg
  40. 1 0
      images/icon/fav0.svg
  41. 1 0
      images/icon/fav1.svg
  42. 1 0
      images/icon/go-l.svg
  43. 1 0
      images/icon/go-r.svg
  44. 1 0
      images/icon/kf.svg
  45. 1 0
      images/icon/list1.svg
  46. 1 0
      images/icon/list2.svg
  47. BIN
      images/icon/next.png
  48. 13 0
      images/icon/next.svg
  49. 15 0
      images/icon/pos-gray.svg
  50. 1 0
      images/icon/search.svg
  51. 9 0
      images/icon/shop-on.svg
  52. 9 0
      images/icon/shop.svg
  53. 10 0
      images/icon/tel-gray.svg
  54. 15 0
      images/icon/time-gray.svg
  55. BIN
      images/live.png
  56. BIN
      images/nav/cart-off.png
  57. BIN
      images/nav/cart-on.png
  58. BIN
      images/nav/coupon-off.png
  59. BIN
      images/nav/coupon-on.png
  60. BIN
      images/nav/fl-off.png
  61. BIN
      images/nav/fl-on.png
  62. BIN
      images/nav/home-off.png
  63. BIN
      images/nav/home-on.png
  64. BIN
      images/nav/my-off.png
  65. BIN
      images/nav/my-on.png
  66. BIN
      images/nav/order-off.png
  67. BIN
      images/nav/order-on.png
  68. BIN
      images/nologin.png
  69. BIN
      images/order-details/icon-address.png
  70. BIN
      images/order-details/icon-ddfh.png
  71. BIN
      images/order-details/icon-ddfk.png
  72. BIN
      images/order-details/icon-ddgb.png
  73. BIN
      images/order-details/icon-ddsh.png
  74. BIN
      images/order-details/icon-jycg.png
  75. BIN
      images/order-details/icon-wuliu.png
  76. BIN
      images/order/fahuo.png
  77. BIN
      images/order/pj.png
  78. BIN
      images/order/shouhou.png
  79. BIN
      images/order/shouhuo.png
  80. BIN
      images/order/topay.png
  81. BIN
      images/share/share1.png
  82. BIN
      images/share/share2.png
  83. BIN
      images/trtc/avatar1_100.png
  84. BIN
      images/trtc/back.png
  85. BIN
      images/trtc/call.png
  86. BIN
      images/trtc/doubleroom.png
  87. BIN
      images/trtc/hangup.png
  88. BIN
      images/wx.jpg
  89. BIN
      images/zw.png
  90. 6 0
      jsconfig.json
  91. 64 0
      miniprogram_npm/@vant/weapp/action-sheet/index.js
  92. 8 0
      miniprogram_npm/@vant/weapp/action-sheet/index.json
  93. 69 0
      miniprogram_npm/@vant/weapp/action-sheet/index.wxml
  94. 0 0
      miniprogram_npm/@vant/weapp/action-sheet/index.wxss
  95. 263 0
      miniprogram_npm/@vant/weapp/area/index.js
  96. 6 0
      miniprogram_npm/@vant/weapp/area/index.json
  97. 20 0
      miniprogram_npm/@vant/weapp/area/index.wxml
  98. 8 0
      miniprogram_npm/@vant/weapp/area/index.wxs
  99. 1 0
      miniprogram_npm/@vant/weapp/area/index.wxss
  100. 60 0
      miniprogram_npm/@vant/weapp/button/index.js

+ 4 - 0
.gitignore

@@ -0,0 +1,4 @@
+dist/
+package-lock.json
+node_modules/
+.DS_Store

+ 201 - 0
LICENSE

@@ -0,0 +1,201 @@
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "{}"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright {yyyy} {name of copyright owner}
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.

+ 72 - 0
README.md

@@ -0,0 +1,72 @@
+# 微信小程序商城
+
+微信小程序商城,微信小程序微店,长期维护版本,欢迎大家踊跃提交贡献代码;
+
+使用说明和常见问题,可参阅下面的说明,如还有疑问,可访问工厂官网 [https://www.it120.cc/](https://www.it120.cc/) 寻求帮助!
+
+新增直播带货支持,具体详见使用说明
+
+# 今日头条/抖音小程序版本
+
+本项目的今日头条/抖音小程序版本,请移步至下面的地址:
+
+[https://github.com/EastWorld/tt-app-mall](https://github.com/EastWorld/tt-app-mall)
+
+# uni-app版本
+
+[https://github.com/gooking/uni-app-mall](https://github.com/gooking/uni-app-mall)
+
+[码云镜像](https://gitee.com/javazj/uni-app-mall)
+
+## 扫码体验
+
+<img src="https://7.s2m.cc/2021/10/05/d15d243a-951f-4ec8-8f34-422368a20d91.jpeg" width="200px">
+
+## 详细配置/使用教程
+
+[https://www.it120.cc/help/ikfe2k.html](https://www.it120.cc/help/ikfe2k.html)
+
+**遇到使用问题?**
+
+[点击这里找答案,可用关键词搜索](https://www.it120.cc/help.html)
+
+## 其他开源模板
+
+| 舔果果小铺(升级版) | 面馆风格小程序 | AI名片 |
+| :------: | :------: | :------: |
+| <img src="https://dcdn.it120.cc/2020/08/30/fd095c58-e655-4785-af0a-89e0b4da7cfe.jpg" width="200px"> | <img src="https://dcdn.it120.cc/2021/06/25/5caa3793-2e70-43ef-b86a-356c26d89e19.jpeg" width="200px"> | <img src="https://cdn.it120.cc/apifactory/2018/12/18/c2324da4eea91602f385db5b523b13ca.jpg" width="200px"> | 
+| [开源地址](https://github.com/gooking/TianguoguoXiaopu) | [开源地址](https://gitee.com/javazj/noodle_shop_procedures) | [开源地址](https://github.com/gooking/visitingCard) |
+
+## 联系作者
+
+| 微信好友 | QQ好友 |
+| :------: | :------: |
+| <img src="https://dcdn.it120.cc/2021/09/13/61a80363-9085-4a10-9447-e276a3d40ab3.jpeg" width="200px"> | <img src="https://dcdn.it120.cc/2021/09/13/08a598d8-8186-4159-9930-2e4908accc5e.png" width="200px"> |
+
+## 本项目使用了下面的组件,在此鸣谢
+
+- [接口 SDK](https://github.com/gooking/apifm-wxapi)
+
+- [api工厂](https://admin.it120.cc)
+
+- [vant-weapp](https://youzan.github.io/vant-weapp)
+
+- [小程序富文本插件(html 渲染)](https://github.com/jin-yufeng/Parser)
+
+- [小程序海报组件-生成朋友圈分享海报并生成图片](https://github.com/jasondu/wxa-plugin-canvas)
+
+- [Apache ECharts](https://github.com/ecomfe/echarts-for-weixin)
+
+底部ICON图标使用:
+https://www.iconfont.cn/collections/detail?spm=a313x.7781069.0.da5a778a4&cid=18904
+
+  
+## 如何升级到最新版
+
+- 小程序程序的修改和您后台的数据是独立的,所以不用担心您会丢失数据
+- 先把你开发工具下的现有版本程序备份
+- 下载最新版的程序,直接覆盖您本地的程序
+- 用开发工具修改域名 mall 为你自己的域名
+- 开发工具里面上传代码提交微信审核
+- 审核通过后,小程序后台去发布新版本即可
+- 用户无需重新扫码,关闭小程序重新打开就是新版本了

+ 140 - 0
app.js

@@ -0,0 +1,140 @@
+const WXAPI = require('apifm-wxapi')
+const CONFIG = require('config.js')
+const AUTH = require('utils/auth')
+App({
+  onLaunch: function() {
+    const subDomain = wx.getExtConfigSync().subDomain
+    if (subDomain) {
+      WXAPI.init(subDomain)
+    } else {
+      WXAPI.init(CONFIG.subDomain)
+      WXAPI.setMerchantId(CONFIG.merchantId)
+    }
+    
+    const that = this;
+    // 检测新版本
+    const updateManager = wx.getUpdateManager()
+    updateManager.onUpdateReady(function () {
+      wx.showModal({
+        title: '更新提示',
+        content: '新版本已经准备好,是否重启应用?',
+        success(res) {
+          if (res.confirm) {
+            // 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
+            updateManager.applyUpdate()
+          }
+        }
+      })
+    })
+    /**
+     * 初次加载判断网络情况
+     * 无网络状态下根据实际情况进行调整
+     */
+    wx.getNetworkType({
+      success(res) {
+        const networkType = res.networkType
+        if (networkType === 'none') {
+          that.globalData.isConnected = false
+          wx.showToast({
+            title: '当前无网络',
+            icon: 'loading',
+            duration: 2000
+          })
+        }
+      }
+    });
+    /**
+     * 监听网络状态变化
+     * 可根据业务需求进行调整
+     */
+    wx.onNetworkStatusChange(function(res) {
+      if (!res.isConnected) {
+        that.globalData.isConnected = false
+        wx.showToast({
+          title: '网络已断开',
+          icon: 'loading',
+          duration: 2000
+        })
+      } else {
+        that.globalData.isConnected = true
+        wx.hideToast()
+      }
+    })
+    WXAPI.queryConfigBatch('mallName,WITHDRAW_MIN,ALLOW_SELF_COLLECTION,order_hx_uids,subscribe_ids,share_profile,adminUserIds,goodsDetailSkuShowType,shopMod,needIdCheck,balance_pay_pwd,shipping_address_gps,shipping_address_region_level,shopping_cart_vop_open,cps_open,recycle_open,categoryMod,hide_reputation,show_seller_number,show_goods_echarts,show_buy_dynamic,goods_search_show_type,show_3_seller,show_quan_exchange_score,show_score_exchange_growth,show_score_sign,fx_subscribe_ids,share_pic,orderPeriod_open,order_pay_user_balance,wxpay_api_url,sphpay_open,fx_type').then(res => {
+      if (res.code == 0) {
+        res.data.forEach(config => {
+          wx.setStorageSync(config.key, config.value);
+        })
+        if (this.configLoadOK) {
+          this.configLoadOK()
+        }
+        // wx.setStorageSync('shopMod', '1') // 测试用,不要取消注释
+      }
+    })
+    // ---------------检测navbar高度
+    let menuButtonObject = wx.getMenuButtonBoundingClientRect();
+    console.log("小程序胶囊信息",menuButtonObject)
+    wx.getSystemInfo({
+      success: res => {
+        let statusBarHeight = res.statusBarHeight,
+          navTop = menuButtonObject.top,//胶囊按钮与顶部的距离
+          navHeight = statusBarHeight + menuButtonObject.height + (menuButtonObject.top - statusBarHeight)*2;//导航高度
+        this.globalData.navHeight = navHeight;
+        this.globalData.navTop = navTop;
+        this.globalData.windowHeight = res.windowHeight;
+        this.globalData.menuButtonObject = menuButtonObject;
+        console.log("navHeight",navHeight);
+      },
+      fail(err) {
+        console.log(err);
+      }
+    })
+  },
+
+  onShow (e) {
+    // 保存邀请人
+    if (e && e.query && e.query.inviter_id) {
+      wx.setStorageSync('referrer', e.query.inviter_id)
+      if (e.shareTicket) {
+        wx.getShareInfo({
+          shareTicket: e.shareTicket,
+          success: res => {
+            wx.login({
+              success(loginRes) {
+                if (loginRes.code) {
+                  WXAPI.shareGroupGetScore(
+                    loginRes.code,
+                    e.query.inviter_id,
+                    res.encryptedData,
+                    res.iv
+                  ).then(_res => {
+                    console.log(_res)
+                  }).catch(err => {
+                    console.error(err)
+                  })
+                } else {
+                  console.error('登录失败!' + loginRes.errMsg)
+                }
+              }
+            })
+          }
+        })
+      }
+    }
+    // 自动登录
+    AUTH.checkHasLogined().then(isLogined => {
+      if (!isLogined) {
+        AUTH.authorize().then( aaa => {
+          AUTH.bindSeller()
+        })
+      } else {
+        
+        AUTH.bindSeller()
+      }
+    })
+  },
+  globalData: {
+    isConnected: true,
+    sdkAppID: CONFIG.sdkAppID
+  }
+})

+ 193 - 0
app.json

@@ -0,0 +1,193 @@
+{
+  "pages": [    
+    "pages/start/start",
+    "pages/shop/select",
+    "pages/index/index",
+    "pages/notice/index",
+    "pages/notice/show",
+    "pages/category/category",
+    "pages/goods/list",
+    "pages/goods/list-vop",
+    "pages/goods/fav",
+    "pages/goods-details/index",
+    "pages/goods-details/vop",
+    "pages/shop-cart/index",
+    "pages/to-pay-order/index",
+    "pages/select-address/index",
+    "pages/address-add/index",
+    "pages/order-list/index",
+    "pages/order-details/index",
+    "pages/order-details/scan-result",
+    "pages/order/refundApply",
+    "pages/wuliu/index",
+    "pages/my/index",
+    "pages/withdraw/index",
+    "pages/score-excharge/index",
+    "pages/score-excharge/growth",
+    "pages/asset/index",
+    "pages/recharge/index",
+    "pages/score/index",
+    "pages/score/growth",
+    "pages/sign/index",
+    "pages/maidan/index",
+    "pages/coupons/index",
+    "pages/coupons/merge",
+    "pages/invoice/list",
+    "pages/invoice/apply",
+    "pages/deposit/pay",
+    "pages/live/index",
+    "pages/help/detail",
+    "pages/help/index",
+    "pages/cms/list",
+    "pages/about/index",
+    "pages/idCheck/index",
+    "pages/peisong/detail",
+    "pages/peisong/orders",
+    "pages/pwd-pay/reset",
+    "pages/pwd-pay/modify",
+    "pages/pwd-pay/set",
+    "pages/my/feedback",
+    "pages/search/index",
+    "pages/my/info",
+    "pages/my/setting",
+    "pages/my/info-menu",
+    "pages/recycle/index",
+    "pages/recycle/orders",
+    "pages/recycle/order-detail",
+    "pages/card/logs",
+    "pages/notagree/index"
+  ],
+  "subpackages": [
+    {
+      "root": "packageStreamMedia",
+      "name": "packageStreamMedia",
+      "pages": [
+        "pages/videoCall/videoCall",
+        "pages/live-anchor/index",
+        "pages/live-anchor/list",
+        "pages/live-client/list",
+        "pages/live-client/client"
+      ]
+    },
+    {
+      "root": "packageCps",
+      "name": "packageCps",
+      "pages": [
+        "pages/goods-details/cps-jd",
+        "pages/goods-details/cps-pdd",
+        "pages/goods-details/cps-taobao",
+        "pages/order-list/cps"
+      ]
+    },
+    {
+      "root": "packageFx",
+      "name": "packageFx",
+      "pages": [
+        "pages/index/index",
+        "pages/hehuorenfenxiao/index",
+        "pages/hehuorenfenxiao/fxmember",
+        "pages/apply/index",
+        "pages/apply/form",
+        "pages/myusers/index",
+        "pages/commisionLog/index",
+        "pages/report/team",
+        "pages/report/city",
+        "pages/myusers/myusers-detail"
+      ]
+    }
+  ],
+  "window": {
+    "backgroundTextStyle": "light",
+    "navigationBarBackgroundColor": "#fff",
+    "navigationBarTitleText": "",
+    "navigationBarTextStyle": "black",
+    "onReachBottomDistance": 50
+  },
+  "tabBar": {
+    "color": "#6e6d6b",
+    "selectedColor": "#e64340",
+    "borderStyle": "white",
+    "backgroundColor": "#fff",
+    "list": [
+      {
+        "pagePath": "pages/index/index",
+        "iconPath": "images/nav/home-off.png",
+        "selectedIconPath": "images/nav/home-on.png",
+        "text": "首页"
+      },
+      {
+        "pagePath": "pages/category/category",
+        "iconPath": "images/nav/fl-off.png",
+        "selectedIconPath": "images/nav/fl-on.png",
+        "text": "分类"
+      },
+      {
+        "pagePath": "pages/coupons/index",
+        "iconPath": "images/nav/coupon-off.png",
+        "selectedIconPath": "images/nav/coupon-on.png",
+        "text": "优惠券"
+      },
+      {
+        "pagePath": "pages/shop-cart/index",
+        "iconPath": "images/nav/cart-off.png",
+        "selectedIconPath": "images/nav/cart-on.png",
+        "text": "购物车"
+      },
+      {
+        "pagePath": "pages/my/index",
+        "iconPath": "images/nav/my-off.png",
+        "selectedIconPath": "images/nav/my-on.png",
+        "text": "我的"
+      }
+    ]
+  },
+  "permission": {
+    "scope.userLocation": {
+      "desc": "获取离你最近的门店"
+    }
+  },
+  "usingComponents": {
+    "fuwuxieyi": "/components/fuwuxieyi/index",
+    "parser":"/components/parser.20200414.min/parser",
+    "van-notice-bar": "@vant/weapp/notice-bar/index",
+    "van-search": "@vant/weapp/search/index",
+    "van-divider": "@vant/weapp/divider/index",
+    "van-icon": "@vant/weapp/icon/index",
+    "van-count-down": "@vant/weapp/count-down/index",
+    "van-button": "@vant/weapp/button/index",
+    "van-cell": "@vant/weapp/cell/index",
+    "van-cell-group": "@vant/weapp/cell-group/index",
+    "van-tag": "@vant/weapp/tag/index",
+    "van-card": "@vant/weapp/card/index",
+    "van-progress": "@vant/weapp/progress/index",
+    "van-submit-bar": "@vant/weapp/submit-bar/index",
+    "van-field": "@vant/weapp/field/index",
+    "van-radio": "@vant/weapp/radio/index",
+    "van-radio-group": "@vant/weapp/radio-group/index",
+    "van-sidebar": "@vant/weapp/sidebar/index",
+    "van-sidebar-item": "@vant/weapp/sidebar-item/index",
+    "van-empty": "@vant/weapp/empty/index",
+    "van-goods-action": "@vant/weapp/goods-action/index",
+    "van-goods-action-icon": "@vant/weapp/goods-action-icon/index",
+    "van-goods-action-button": "@vant/weapp/goods-action-button/index",
+    "van-popup": "@vant/weapp/popup/index",
+    "van-picker": "@vant/weapp/picker/index",
+    "van-stepper": "@vant/weapp/stepper/index",
+    "van-sticky": "@vant/weapp/sticky/index",
+    "van-dialog": "@vant/weapp/dialog/index",
+    "van-swipe-cell": "@vant/weapp/swipe-cell/index",
+    "van-calendar": "@vant/weapp/calendar/index",
+    "van-switch": "@vant/weapp/switch/index",
+    "van-rate": "@vant/weapp/rate/index",
+    "van-uploader": "@vant/weapp/uploader/index",
+    "van-grid": "@vant/weapp/grid/index",
+    "van-grid-item": "@vant/weapp/grid-item/index",
+    "van-image": "@vant/weapp/image/index",
+    "van-tab": "@vant/weapp/tab/index",
+    "van-tabs": "@vant/weapp/tabs/index",
+    "van-overlay": "@vant/weapp/overlay/index",
+    "van-datetime-picker": "@vant/weapp/datetime-picker/index",
+    "van-area": "@vant/weapp/area/index"
+  },
+  "sitemapLocation": "sitemap.json"
+}

+ 85 - 0
app.wxss

@@ -0,0 +1,85 @@
+@import "/miniprogram_npm/@vant/weapp/common/index.wxss";
+
+.container {
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  justify-content: space-between;
+  box-sizing: border-box;
+}
+.space {
+  height:20rpx;
+  background-color: #F2f2f2;
+}
+.safeAreaOldPaddingBttom {
+  padding-bottom: env(safe-area-inset-bottom);
+}
+.safeAreaNewPaddingBttom{
+  padding-bottom: constant(safe-area-inset-bottom);  
+}
+
+.safeAreaOldMarginBttom {
+  margin-bottom: env(safe-area-inset-bottom);
+}
+.safeAreaNewMarginBttom{
+  margin-bottom: constant(safe-area-inset-bottom);  
+}
+
+.no-data {
+  width: 100%;
+  display: flex;
+  justify-content: center;
+  align-items: center;
+}
+.no-data .line {
+  width:132rpx;
+  height:2rpx;
+  background: #999;
+}
+.no-data .txt {
+  font-size:26rpx;
+  color:rgba(153,153,153,1);
+  margin: 0 16rpx;
+}
+.ad-img {
+  width: 100vw;
+}
+.badge {
+  position: absolute;
+  top: 0;
+  right: 0;
+  box-sizing: border-box;
+  padding: 6rpx;
+  color: #fff;
+  font-size: 18rpx;
+  display: flex;
+  justify-content: center;
+  align-items: center;
+  background-color: #e64340;
+  border: 1rpx solid #fff;
+  border-radius: 50%;
+}
+.vw100 {
+  width: 100vw !important;
+}
+
+page {
+  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica,
+    Segoe UI, Arial, Roboto, 'PingFang SC', 'miui', 'Hiragino Sans GB', 'Microsoft Yahei',
+    sans-serif;
+}
+.block-btn {
+  padding: 0 32rpx;
+}
+
+.safe-bottom-box {
+  position: fixed;
+  bottom: calc(env(safe-area-inset-bottom) / 2);
+  left: 0;
+  width: 100vw;
+}
+.characteristic {
+  padding: 0 24rpx;
+  font-size: 24rpx;
+  color: #999;
+}

+ 78 - 0
components/fuwuxieyi/index.js

@@ -0,0 +1,78 @@
+const App = getApp();
+
+Component({
+  options: {
+    addGlobalClass: true,
+  },
+  /**
+   * 组件的对外属性,是属性名到属性设置的映射表
+   */
+  properties: {
+    k: String,    
+  },
+
+  /**
+   * 组件的内部数据,和 properties 一同用于组件的模板渲染
+   */
+  data: {
+    s: false
+  },
+  // 组件数据字段监听器,用于监听 properties 和 data 的变化
+  observers: {
+
+  },
+  lifetimes: {
+    attached: function () {
+      if (!this.data.k) {
+        this.setData({
+          s: true
+        })
+        return
+      }
+      const agreeYxtk = wx.getStorageSync('agreeYxtk_' + this.data.k)
+      if (!agreeYxtk) {
+        this.setData({
+          s: true
+        })
+      }
+    },
+    detached: function () {
+      // 在组件实例被从页面节点树移除时执行
+    },
+  },
+  /**
+   * 组件的方法列表
+   */
+  methods: {
+    aggree(){
+      if (this.data.k) {
+        wx.setStorageSync('agreeYxtk_' + this.data.k, true)
+      }
+      this.setData({
+        s: false
+      })
+    },
+    notagree(){
+      wx.navigateTo({
+        url: '/pages/notagree/index'
+      })
+    },
+    goYstk(e){
+      const k = e.currentTarget.dataset.k
+      wx.navigateTo({
+        url: '/pages/about/index?key=' + k,
+      })
+    },
+    navBack: function () {
+      wx.navigateBack({
+        delta: 1
+      })
+    },
+    //回主页
+    toIndex: function () {
+      wx.navigateTo({
+        url: '/pages/admin/home/index/index'
+      })
+    },
+  }
+})

+ 6 - 0
components/fuwuxieyi/index.json

@@ -0,0 +1,6 @@
+{
+  "component": true,
+  "usingComponents": {
+    
+  }
+}

+ 18 - 0
components/fuwuxieyi/index.wxml

@@ -0,0 +1,18 @@
+<van-popup show="{{ s }}" custom-class="btn-add-box-popup" round close-on-click-overlay="{{ false }}">
+  <view class="t">用户协议及隐私政策</view>
+  <view class="content">
+    您在使用我们的服务时,我们可能会收集和
+    使用您的相关信息。我们希望通过本
+    <text class="link" data-k="yhxy" bindtap="goYstk">《用户协议》</text>
+    及<text class="link" data-k="ysxy" bindtap="goYstk">《隐私协议》</text>向您说明,在使用我
+    们的服务时,我们如何收集、使用、储存和
+    分享这些信息,以及我们为您提供的访问、
+    更新、控制和保护这些信息的方式。本<text class="link" data-k="yhxy" bindtap="goYstk">《用户协议》</text>及
+    <text class="link" data-k="ysxy" bindtap="goYstk">《隐私协议》</text>,希望您仔细闭读,
+    充分理解协议中的内容后再点击同意。
+  </view>
+  <view class="btn-group">
+    <van-button type="primary" block size="small" bind:click="aggree">同意</van-button>
+    <van-button type="danger" block size="small" bind:click="notagree">不同意</van-button>
+  </view>
+</van-popup>

+ 32 - 0
components/fuwuxieyi/index.wxss

@@ -0,0 +1,32 @@
+.btn-add-box-popup .t {
+  font-size: 36rpx;
+  text-align: center;
+  height: 88rpx;
+  line-height: 88rpx;
+  font-weight: bold;
+}
+.btn-add-box-popup .bd {
+  padding: 0 32rpx;
+  padding-bottom: 32rpx;
+}
+.btn-add-box-popup .del-btn {
+  margin-top: 32rpx;
+}
+
+.content {
+	width: 600rpx;
+	padding: 32rpx;
+	font-size: 32rpx;
+	line-height: 54rpx;
+}
+.link {
+	color: #10AEFF;
+}
+.btn-group {
+  padding: 32rpx;
+  display: flex;
+  justify-content: space-around;
+}
+.mt32 {
+	margin-top: 32rpx;
+}

+ 4 - 0
components/fuwuxieyi/sn.txt

@@ -0,0 +1,4 @@
+在需要的页面上加这句代码即可
+<fuwuxieyi k="invoice_apply" />
+k 为页面唯一编号,随便命名即可
+不传k,每次都会弹出

File diff suppressed because it is too large
+ 1 - 0
components/parser.20200414.min/libs/CssHandler.js


File diff suppressed because it is too large
+ 1 - 0
components/parser.20200414.min/libs/MpHtmlParser.js


+ 1 - 0
components/parser.20200414.min/libs/config.js

@@ -0,0 +1 @@
+"use strict";function makeMap(e){for(var a={},t=e.split(","),l=t.length;l--;)a[t[l]]=!0;return a}var canIUse=wx.canIUse("editor");module.exports={filter:null,highlight:null,onText:null,blankChar:makeMap(" , ,\t,\r,\n,\f"),blockTags:makeMap("address,article,aside,body,caption,center,cite,footer,header,html,nav,section"+(canIUse?"":",pre")),ignoreTags:makeMap("area,base,basefont,canvas,command,embed,frame,iframe,input,isindex,keygen,link,map,meta,param,script,source,style,svg,textarea,title,track,use,wbr"+(canIUse?",rp":"")),richOnlyTags:makeMap("a,colgroup,fieldset,legend,picture,table"+(canIUse?",bdi,bdo,rt,ruby":"")),selfClosingTags:makeMap("area,base,basefont,br,col,circle,ellipse,embed,frame,hr,img,input,isindex,keygen,line,link,meta,param,path,polygon,rect,source,track,use,wbr"),trustAttrs:makeMap("align,alt,app-id,author,autoplay,border,cellpadding,cellspacing,class,color,colspan,controls,data-src,dir,face,height,href,id,ignore,loop,media,muted,name,path,poster,rowspan,size,span,src,start,style,type,unit-id,width,xmlns"),boolAttrs:makeMap("autoplay,controls,ignore,loop,muted"),trustTags:makeMap("a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video"+(canIUse?",bdi,bdo,caption,pre,rt,ruby":"")),userAgentStyles:{address:"font-style:italic",big:"display:inline;font-size:1.2em",blockquote:"background-color:#f6f6f6;border-left:3px solid #dbdbdb;color:#6c6c6c;padding:5px 0 5px 10px",caption:"display:table-caption;text-align:center",center:"text-align:center",cite:"font-style:italic",dd:"margin-left:40px",mark:"background-color:yellow",pre:"font-family:monospace;white-space:pre;overflow:scroll",s:"text-decoration:line-through",small:"display:inline;font-size:0.8em",u:"text-decoration:underline"}};

File diff suppressed because it is too large
+ 1 - 0
components/parser.20200414.min/parser.js


+ 1 - 0
components/parser.20200414.min/parser.json

@@ -0,0 +1 @@
+{"component":true,"usingComponents":{"trees":"./trees/trees"}}

+ 1 - 0
components/parser.20200414.min/parser.wxml

@@ -0,0 +1 @@
+<slot wx:if="{{!html[0].name&&!html[0].type}}"/><trees class="top"style="{{selectable?'user-select:text;-webkit-user-select:text;':''}}{{showAm}}"animation="{{scaleAm}}"lazy-load="{{lazyLoad}}"nodes="{{html[0].name||html[0].type?html:[]}}"bindtap="_tap"bindtouchstart="_touchstart"bindtouchmove="_touchmove"/><image wx:for="{{imgs}}"wx:key="index"id="{{index}}"src="{{item}}"hidden bindload="_load"/>

+ 1 - 0
components/parser.20200414.min/parser.wxss

@@ -0,0 +1 @@
+:host{display:block;overflow:scroll;webkit-overflow-scrolling:touch}.top{display:inherit}@keyframes show{0%{opacity:0}100%{opacity:1}}

+ 1 - 0
components/parser.20200414.min/trees/handler.wxs

@@ -0,0 +1 @@
+"use strict";var inlineTags={abbr:1,b:1,big:1,code:1,del:1,em:1,i:1,ins:1,label:1,q:1,small:1,span:1,strong:1};module.exports={load:function(e){e.target.dataset.auto&&e.instance.setStyle({width:e.detail.width+"px"})},visited:function(e,i){e.instance.hasClass("_visited")||e.instance.addClass("_visited"),i.callMethod("linkpress",e)},useRichText:function(e){return!e.c&&!inlineTags[e.name]&&-1==(e.attrs.style||"").indexOf("display:inline")}};

File diff suppressed because it is too large
+ 1 - 0
components/parser.20200414.min/trees/trees.js


+ 1 - 0
components/parser.20200414.min/trees/trees.json

@@ -0,0 +1 @@
+{"component":true,"usingComponents":{"trees":"./trees"}}

File diff suppressed because it is too large
+ 0 - 0
components/parser.20200414.min/trees/trees.wxml


+ 1 - 0
components/parser.20200414.min/trees/trees.wxss

@@ -0,0 +1 @@
+._a{color:#366092;display:inline;padding:1.5px 0 1.5px 0;word-break:break-all}._hover{opacity:.7;text-decoration:underline}._visited{color:#551a8b}._img{height:50px;max-width:100%}:host{display:inline}._blockquote,._div,._p,._ul,._ol,._li{display:block}._b,._strong{font-weight:bold}._code{font-family:monospace}._del{text-decoration:line-through}._em,._i{font-style:italic}._h1{font-size:2em}._h2{font-size:1.5em}._h3{font-size:1.17em}._h5{font-size:.83em}._h6{font-size:.67em}._h1,._h2,._h3,._h4,._h5,._h6{display:block;font-weight:bold}._ins{text-decoration:underline}._li{flex:1;width:0}._ol-bef{margin-right:5px;text-align:right;width:36px}._ul-bef{line-height:normal;margin:0 12px 0 23px}._ol-bef,._ul_bef{flex:none;user-select:none}._ul-p1{display:inline-block;height:.3em;line-height:.3em;overflow:hidden;width:.3em}._ul-p2{border:.05em solid black;border-radius:50%;display:inline-block;height:.23em;width:.23em}._q::before{content:'"'}._q::after{content:'"'}._sub{font-size:smaller;vertical-align:sub}._sup{font-size:smaller;vertical-align:super}.__bdi,.__bdo,.__ruby,.__rt,._svg{display:inline-block}._video{background-color:black;display:inline-block;height:225px;position:relative;width:300px}._video::after{border-color:transparent transparent transparent white;border-style:solid;border-width:15px 0 15px 30px;content:'';left:50%;margin:-15px 0 0 -15px;position:absolute;top:50%}

+ 7 - 0
config.js

@@ -0,0 +1,7 @@
+module.exports = {
+  version: '13.0.0',
+  note: '增加合伙人分销模式', // 这个为版本描述,无需修改
+  subDomain: 'xwtc', // liu123 此处改成你自己的专属域名。什么是专属域名?请看教程 https://www.it120.cc/help/qr6l4m.html
+  merchantId: 951, // 商户ID,可在后台工厂设置-->商户信息查看
+  sdkAppID: 1400450467, // 腾讯实时音视频应用编号,请看教程 https://www.it120.cc/help/nxoqsl.html
+}

BIN
images/face.png


BIN
images/gift.png


BIN
images/home/goodslist.png


BIN
images/home/kanjia.png


BIN
images/home/miaosha.png


BIN
images/home/notice.png


BIN
images/home/pingtuan.png


BIN
images/home/recommend.png


File diff suppressed because it is too large
+ 0 - 0
images/icon/car.svg


+ 1 - 0
images/icon/close.svg

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1578190789782" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1886" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M810.666667 273.493333L750.506667 213.333333 512 451.84 273.493333 213.333333 213.333333 273.493333 451.84 512 213.333333 750.506667 273.493333 810.666667 512 572.16 750.506667 810.666667 810.666667 750.506667 572.16 512z" p-id="1887" fill="#999999"></path></svg>

+ 1 - 0
images/icon/close0.svg

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1580811177884" class="icon" viewBox="0 0 1026 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3261" xmlns:xlink="http://www.w3.org/1999/xlink" width="200.390625" height="200"><defs><style type="text/css"></style></defs><path d="M512.023273 46.545455c256.651636 0 465.454545 208.802909 465.454545 465.454545s-208.802909 465.454545-465.454545 465.454545-465.454545-208.802909-465.454545-465.454545S255.371636 46.545455 512.023273 46.545455M512.023273 0c-282.763636 0-512 229.236364-512 512s229.236364 512 512 512 512-229.236364 512-512S794.810182 0 512.023273 0L512.023273 0z" p-id="3262" fill="#cdcdcd"></path><path d="M725.76 749.032727c-5.957818 0-11.915636-2.280727-16.453818-6.818909l-427.450182-427.52c-9.099636-9.099636-9.099636-23.831273 0-32.907636 9.099636-9.099636 23.808-9.099636 32.907636 0l427.450182 427.52c9.099636 9.099636 9.099636 23.831273 0 32.907636C737.675636 746.752 731.717818 749.032727 725.76 749.032727z" p-id="3263" fill="#cdcdcd"></path><path d="M298.263273 749.009455c-5.957818 0-11.915636-2.280727-16.453818-6.818909-9.099636-9.099636-9.099636-23.831273 0-32.907636L709.352727 281.809455c9.099636-9.099636 23.808-9.099636 32.907636 0s9.099636 23.831273 0 32.907636L314.717091 742.190545C310.178909 746.728727 304.221091 749.009455 298.263273 749.009455z" p-id="3264" fill="#cdcdcd"></path></svg>

File diff suppressed because it is too large
+ 12 - 0
images/icon/coupons-active.svg


File diff suppressed because it is too large
+ 12 - 0
images/icon/coupons-off.svg


+ 1 - 0
images/icon/delete.svg

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1583769449736" class="icon" viewBox="0 0 1195 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3211" xmlns:xlink="http://www.w3.org/1999/xlink" width="233.3984375" height="200"><defs><style type="text/css"></style></defs><path d="M1174.514354 107.471458H20.367301a20.367301 20.367301 0 0 0 0 40.734602h100.410794a20.367301 20.367301 0 0 0 0 4.412915l55.602731 777.284095v1.833057a109.508188 109.508188 0 0 0 108.625605 92.195982h625.072466a109.508188 109.508188 0 0 0 108.625605-92.195982v-0.882583l55.670622-778.234569a20.367301 20.367301 0 0 0 0-4.412915h100.410794a20.367301 20.367301 0 0 0 0-40.734602z m-140.805941 42.228204l-55.53484 776.333621a68.909368 68.909368 0 0 1-67.891003 57.232115H284.870649a68.909368 68.909368 0 0 1-67.891003-57.232115L161.173241 149.699662v-1.493602H1033.979977c-0.067891 0.543128-0.271564 1.018365-0.271564 1.493602zM456.566996 40.734602h281.747663a20.367301 20.367301 0 0 0 0-40.734602h-281.747663a20.367301 20.367301 0 1 0 0 40.734602z" p-id="3212" fill="#FF3B30"></path><path d="M387.250282 871.245243a20.367301 20.367301 0 0 0 20.367301-20.367301V293.76437a20.367301 20.367301 0 0 0-40.734602 0v557.113572a20.367301 20.367301 0 0 0 20.367301 20.367301zM597.440827 871.245243a20.367301 20.367301 0 0 0 20.367301-20.367301V293.76437a20.367301 20.367301 0 0 0-40.734602 0v557.113572a20.367301 20.367301 0 0 0 20.367301 20.367301zM807.631373 871.245243a20.367301 20.367301 0 0 0 20.367301-20.367301V293.76437a20.367301 20.367301 0 0 0-40.734602 0v557.113572a20.367301 20.367301 0 0 0 20.367301 20.367301z" p-id="3213" fill="#FF3B30"></path></svg>

+ 1 - 0
images/icon/edit.svg

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1580813641723" class="icon" viewBox="0 0 1025 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4895" xmlns:xlink="http://www.w3.org/1999/xlink" width="200.1953125" height="200"><defs><style type="text/css"></style></defs><path d="M960 460.8c-19.2 0-38.4 12.8-38.4 32v38.4c0 19.2 19.2 32 38.4 32s38.4-12.8 38.4-32v-38.4c0-19.2-19.2-32-38.4-32zM1011.2 38.4c-12.8-19.2-38.4-19.2-57.6 0l-556.8 556.8c-19.2 12.8-19.2 38.4 0 57.6 12.8 19.2 38.4 19.2 57.6 0l556.8-556.8c19.2-12.8 19.2-38.4 0-57.6z" p-id="4896" fill="#cdcdcd"></path><path d="M960 620.8c-25.6 0-38.4 19.2-38.4 38.4v192c0 32-25.6 64-64 64h-684.8c-32 0-64-25.6-64-64v-684.8c0-32 25.6-64 64-64h416c19.2 0 38.4-19.2 38.4-38.4s-19.2-38.4-38.4-38.4h-416c-76.8 0-140.8 64-140.8 140.8v691.2c0 76.8 64 140.8 140.8 140.8h684.8c76.8 0 140.8-64 140.8-140.8v-198.4c0-25.6-19.2-38.4-38.4-38.4z" p-id="4897" fill="#cdcdcd"></path></svg>

+ 1 - 0
images/icon/fav0.svg

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1583767131119" class="icon" viewBox="0 0 1025 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2128" xmlns:xlink="http://www.w3.org/1999/xlink" width="200.1953125" height="200"><defs><style type="text/css"></style></defs><path d="M1022.955213 394.773333c-2.56-7.744-9.173333-13.376-17.258667-14.549333L677.78188 332.586667 531.15788 35.477333c-7.168-14.592-31.125333-14.592-38.314667 0L346.19788 332.586667l-327.893333 47.637333c-8.042667 1.173333-14.72 6.805333-17.258667 14.549333-2.517333 7.722667-0.405333 16.192 5.418667 21.888l237.269333 231.253333L187.712546 974.506667c-1.365333 8 1.92 16.085333 8.512 20.885333 6.570667 4.778667 15.296 5.44 22.485333 1.642667L512.000546 842.816l293.226667 154.218667c3.136 1.621333 6.570667 2.453333 9.984 2.453333 4.437333 0 8.810667-1.408 12.586667-4.096 6.549333-4.778667 9.834667-12.885333 8.490667-20.885333l-56-326.549333 237.290667-231.296C1023.424546 410.986667 1025.451213 402.496 1022.955213 394.773333zM742.400546 625.173333c-5.013333 4.906667-7.36 11.989333-6.144 18.922667l50.581333 294.954667-264.896-139.264C518.827213 798.122667 515.41388 797.312 512.000546 797.312s-6.848 0.810667-9.962667 2.474667L237.14188 939.093333l50.581333-294.997333c1.173333-6.912-1.109333-14.016-6.144-18.922667L67.28588 416.277333l296.192-43.029333c6.954667-1.002667 12.949333-5.397333 16.085333-11.690667L512.000546 93.184l132.458667 268.352c3.114667 6.314667 9.088 10.688 16.064 11.690667l296.192 43.029333L742.400546 625.173333z" p-id="2129" fill="#707070"></path></svg>

+ 1 - 0
images/icon/fav1.svg

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1583768086854" class="icon" viewBox="0 0 1025 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4234" xmlns:xlink="http://www.w3.org/1999/xlink" width="200.1953125" height="200"><defs><style type="text/css"></style></defs><path d="M1022.976546 394.773333c-2.581333-7.744-9.237333-13.376-17.28-14.549333L677.78188 332.586667 531.115213 35.477333c-7.168-14.592-31.104-14.592-38.272 0L346.19788 332.586667 18.283213 380.224c-8.021333 1.173333-14.72 6.805333-17.237333 14.549333-2.517333 7.722667-0.405333 16.192 5.418667 21.888l237.269333 231.253333L187.712546 974.506667c-1.365333 8 1.92 16.085333 8.512 20.885333 6.570667 4.778667 15.296 5.44 22.485333 1.642667L512.000546 842.816l293.248 154.218667c3.114667 1.621333 6.549333 2.453333 9.962667 2.453333 4.416 0 8.789333-1.408 12.544-4.096 6.592-4.778667 9.877333-12.864 8.533333-20.885333l-56-326.549333 237.248-231.296C1023.424546 410.986667 1025.451213 402.496 1022.976546 394.773333z" p-id="4235" fill="#e64340"></path></svg>

+ 1 - 0
images/icon/go-l.svg

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1577530571647" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2470" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M547.584 802.83648c20.89984 20.89984 20.89984 54.80448 0 75.70432-20.89984 20.91008-54.79424 20.91008-75.70432 0l-328.704-328.69376c-10.4448-10.45504-15.6672-24.14592-15.6672-37.84704s5.23264-27.40224 15.6672-37.84704l328.704-328.69376c20.91008-20.91008 54.80448-20.91008 75.70432 0 20.89984 20.89984 20.89984 54.79424 0 75.70432L256.74752 512 547.584 802.83648zM589.96736 512l290.83648-290.83648c20.89984-20.91008 20.89984-54.80448 0-75.70432-20.89984-20.91008-54.79424-20.91008-75.70432 0l-328.704 328.69376c-10.4448 10.45504-15.6672 24.14592-15.6672 37.84704s5.23264 27.40224 15.6672 37.84704l328.704 328.69376c20.91008 20.91008 54.80448 20.91008 75.70432 0 20.89984-20.89984 20.89984-54.80448 0-75.70432L589.96736 512z" p-id="2471" fill="#ffffff"></path></svg>

+ 1 - 0
images/icon/go-r.svg

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1577530650739" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4503" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M767.25248 512 476.40576 221.16352c-20.89984-20.91008-20.89984-54.80448 0-75.70432 20.89984-20.91008 54.79424-20.91008 75.70432 0l328.704 328.69376c10.4448 10.45504 15.6672 24.14592 15.6672 37.84704s-5.23264 27.40224-15.6672 37.84704l-328.704 328.69376c-20.91008 20.91008-54.80448 20.91008-75.70432 0-20.89984-20.89984-20.89984-54.80448 0-75.70432L767.25248 512zM143.18592 802.83648c-20.89984 20.89984-20.89984 54.80448 0 75.70432 20.89984 20.91008 54.784 20.91008 75.70432 0l328.704-328.69376c10.4448-10.45504 15.65696-24.14592 15.65696-37.84704s-5.2224-27.40224-15.65696-37.84704l-328.704-328.69376c-20.92032-20.91008-54.80448-20.91008-75.70432 0-20.89984 20.89984-20.89984 54.79424 0 75.70432L434.03264 512 143.18592 802.83648z" p-id="4504" fill="#ffffff"></path></svg>

+ 1 - 0
images/icon/kf.svg

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1580810673475" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2413" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M512 563.2a153.6 153.6 0 1 0 0-307.2 153.6 153.6 0 0 0 0 307.2z m0 51.2a204.8 204.8 0 1 1 0-409.6 204.8 204.8 0 0 1 0 409.6zM484.9664 665.6a319.2832 319.2832 0 0 0-285.5936 176.4864l-28.2624 56.6272A51.2 51.2 0 0 0 216.8832 972.8h590.2336a51.2 51.2 0 0 0 45.7728-74.0864l-28.2624-56.6272A319.2832 319.2832 0 0 0 539.0336 665.6H484.9664z m0-51.2h54.0672A370.4832 370.4832 0 0 1 870.4 819.2l28.3136 56.6272A102.4 102.4 0 0 1 807.0656 1024H216.9344a102.4 102.4 0 0 1-91.5968-148.1728L153.6 819.2a370.4832 370.4832 0 0 1 331.3664-204.8z" p-id="2414" fill="#008000"></path><path d="M204.8 512v79.9232l-68.2496-19.2a128 128 0 0 1 0-241.408l27.9552-9.8816a358.5536 358.5536 0 0 1 694.9888 0l27.9552 9.8816a128 128 0 0 1 0 241.408L819.2 591.9232V409.6A307.2 307.2 0 1 0 204.8 409.6v102.4z m665.6-132.4032v144.896a76.8 76.8 0 0 0 0-144.896z m-716.8 0a76.8 76.8 0 0 0 0 144.896v-144.896z" p-id="2415" fill="#008000"></path></svg>

+ 1 - 0
images/icon/list1.svg

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1577539770172" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1253" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M318.7 633.9H82.6c-10.8 0-19.5 8.7-19.5 19.5v236.1c0 10.8 8.7 19.5 19.5 19.5h236.1c10.8 0 19.5-8.7 19.5-19.5V653.4c0-10.8-8.8-19.5-19.5-19.5z m-19.6 236h-197v-197h197v197zM941.4 668.1H446.1c-10.8 0-19.5 8.7-19.5 19.5s8.7 19.5 19.5 19.5h495.3c10.8 0 19.5-8.7 19.5-19.5s-8.7-19.5-19.5-19.5zM941.4 835.7H446.1c-10.8 0-19.5 8.7-19.5 19.5s8.7 19.5 19.5 19.5h495.3c10.8 0 19.5-8.7 19.5-19.5s-8.7-19.5-19.5-19.5zM318.7 115H82.6c-10.8 0-19.5 8.7-19.5 19.5v236.1c0 10.8 8.7 19.5 19.5 19.5h236.1c10.8 0 19.5-8.7 19.5-19.5V134.5c0-10.8-8.8-19.5-19.5-19.5z m-19.6 236.1h-197v-197h197v197zM446.1 188.3h495.3c10.8 0 19.5-8.7 19.5-19.5s-8.7-19.5-19.5-19.5H446.1c-10.8 0-19.5 8.7-19.5 19.5s8.7 19.5 19.5 19.5zM941.4 316.8H446.1c-10.8 0-19.5 8.7-19.5 19.5s8.7 19.5 19.5 19.5h495.3c10.8 0 19.5-8.7 19.5-19.5s-8.7-19.5-19.5-19.5z" fill="#333333" p-id="1254"></path></svg>

+ 1 - 0
images/icon/list2.svg

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1577539755632" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1012" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M473.1 95.8H114c-10.1 0-18.2 8.2-18.2 18.2v359.1c0 10.1 8.2 18.2 18.2 18.2h359.1c10.1 0 18.2-8.2 18.2-18.2V114c0-10.1-8.2-18.2-18.2-18.2z m-18.2 359.1H132.2V132.2h322.7v322.7zM910 95.8H550.9c-10.1 0-18.2 8.2-18.2 18.2v359.1c0 10.1 8.2 18.2 18.2 18.2H910c10.1 0 18.2-8.2 18.2-18.2V114c0-10.1-8.1-18.2-18.2-18.2z m-18.2 359.1H569.1V132.2h322.7v322.7zM473.1 532.7H114c-10.1 0-18.2 8.2-18.2 18.2V910c0 10.1 8.2 18.2 18.2 18.2h359.1c10.1 0 18.2-8.2 18.2-18.2V550.9c0-10-8.2-18.2-18.2-18.2z m-18.2 359.1H132.2V569.1h322.7v322.7zM910 532.7H550.9c-10.1 0-18.2 8.2-18.2 18.2V910c0 10.1 8.2 18.2 18.2 18.2H910c10.1 0 18.2-8.2 18.2-18.2V550.9c0-10-8.1-18.2-18.2-18.2z m-18.2 359.1H569.1V569.1h322.7v322.7z" fill="#333333" p-id="1013"></path></svg>

BIN
images/icon/next.png


+ 13 - 0
images/icon/next.svg

@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="7px" height="12px" viewBox="0 0 7 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <!-- Generator: Sketch 54.1 (76490) - https://sketchapp.com -->
+    <title>下一步/灰</title>
+    <desc>Created with Sketch.</desc>
+    <g id="组件" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+        <g id="门店选择/未选中" transform="translate(-356.000000, -51.000000)" fill="#999999" fill-rule="nonzero">
+            <g id="下一步/灰" transform="translate(356.000000, 51.000000)">
+                <path d="M5.25089885,5.99999479 L0.198273835,10.7287972 C-0.0557102499,10.9662105 -0.0535692318,11.3485263 0.19880548,11.5846996 C0.4522714,11.8216502 0.874492204,11.8364112 1.12850363,11.5989986 L6.90199277,6.20100447 C6.9598436,6.14763335 6.99137823,6.07526723 6.99137823,5.99998525 C6.99137823,5.92469064 6.9598436,5.85236422 6.90199277,5.79895314 L1.12850363,0.400997641 C0.874492204,0.163571389 0.452285072,0.178372421 0.19880548,0.415296713 C-0.0535694232,0.651495777 -0.0557241132,1.03381282 0.198273835,1.27122619 L5.25089885,6.00000278 L5.25089885,6.00000278 L5.25089885,5.99999479 Z" id="路径"></path>
+            </g>
+        </g>
+    </g>
+</svg>

+ 15 - 0
images/icon/pos-gray.svg

@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="10px" height="12px" viewBox="0 0 10 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <!-- Generator: Sketch 54.1 (76490) - https://sketchapp.com -->
+    <title>定位-灰</title>
+    <desc>Created with Sketch.</desc>
+    <g id="组件" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+        <g id="门店选择/选中" transform="translate(-12.000000, -40.000000)" fill="#999999" fill-rule="nonzero">
+            <g id="定位-灰">
+                <g transform="translate(12.000000, 40.000000)">
+                    <path d="M8.20971207,7.81235432 L5.19109528,11.5391157 C4.95183719,11.8308567 4.56123127,11.831991 4.32316263,11.5391157 L1.29261027,7.81235432 C0.56310552,7.01094323 0.102567874,5.93542557 0.102567874,4.78108165 C0.102567874,2.27459983 2.19286328,0.241642776 4.77295417,0.241642776 C7.35255287,0.241642776 9.44286195,2.27459983 9.44286195,4.78108165 C9.44286195,5.96658225 8.97513289,7.00417565 8.20971207,7.81235432 Z M4.77295417,2.5062833 C3.47967532,2.5062833 2.43213504,3.52490167 2.43213504,4.78109454 C2.43213504,6.0377128 3.47967532,7.05589289 4.77295417,7.05589289 C6.06526231,7.05589289 7.11330845,6.0377128 7.11330845,4.78108165 C7.11330845,3.52490167 6.06526231,2.50627041 4.77295417,2.50627041 L4.77295417,2.5062833 Z" id="形状"></path>
+                </g>
+            </g>
+        </g>
+    </g>
+</svg>

+ 1 - 0
images/icon/search.svg

@@ -0,0 +1 @@
+<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1577539568042" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2545" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M998.417847 968.923523 738.389131 712.967573c68.050929-73.967263 109.909294-171.800228 109.909294-279.479317 0-230.345352-189.746575-417.036095-423.778057-417.036095-234.030475 0-423.77705 186.690742-423.77705 417.036095 0 230.297023 189.746575 416.986758 423.77705 416.986758 101.131452 0 193.870691-34.971414 266.723355-93.126882l261.095991 256.924553c12.70864 12.514315 33.370499 12.514315 46.078132 0C1011.174816 1001.759377 1011.174816 981.436831 998.417847 968.923523L998.417847 968.923523 998.417847 968.923523zM424.520368 786.354882c-198.040115 0-358.5393-157.977996-358.5393-352.86562 0-194.88863 160.499184-352.866627 358.5393-352.866627C622.562497 80.622635 783.110011 238.600632 783.110011 433.489262 783.110011 628.376886 622.562497 786.354882 424.520368 786.354882L424.520368 786.354882 424.520368 786.354882z" p-id="2546" fill="#5b5b5b"></path></svg>

File diff suppressed because it is too large
+ 9 - 0
images/icon/shop-on.svg


File diff suppressed because it is too large
+ 9 - 0
images/icon/shop.svg


File diff suppressed because it is too large
+ 10 - 0
images/icon/tel-gray.svg


+ 15 - 0
images/icon/time-gray.svg

@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="11px" height="11px" viewBox="0 0 11 11" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+    <!-- Generator: Sketch 54.1 (76490) - https://sketchapp.com -->
+    <title>时间 -灰</title>
+    <desc>Created with Sketch.</desc>
+    <g id="组件" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+        <g id="门店选择/选中" transform="translate(-12.000000, -64.000000)" fill="#999999" fill-rule="nonzero">
+            <g id="时间--灰">
+                <g transform="translate(12.000000, 64.000000)">
+                    <path d="M5.58077801,0.148999644 C2.64371005,0.148999644 0.260002719,2.53270697 0.260002719,5.46977493 C0.260002719,8.40684289 2.64371005,10.7905502 5.58077801,10.7905502 C8.51784597,10.7905502 10.9015533,8.40684289 10.9015533,5.46977493 C10.9015533,2.53270697 8.51784597,0.148999644 5.58077801,0.148999644 Z M7.24694078,7.82915872 L7.07059509,7.99942353 C6.97330091,8.0967177 6.81519788,8.0967177 6.7179037,7.99942353 L5.1064689,6.42447404 C5.05174092,6.36974607 5.05782181,6.26029012 5.05782181,6.15083417 L5.05782181,3.06782495 C5.05782181,2.93404545 5.16727776,2.8245895 5.30713814,2.8245895 L5.55645446,2.8245895 C5.69631484,2.8245895 5.80577079,2.93404545 5.80577079,3.06782495 L5.80577079,6.08394442 L7.24694078,7.49470999 C7.34423496,7.58592328 7.34423496,7.73794543 7.24694078,7.82915872 Z" id="形状"></path>
+                </g>
+            </g>
+        </g>
+    </g>
+</svg>

BIN
images/live.png


BIN
images/nav/cart-off.png


BIN
images/nav/cart-on.png


BIN
images/nav/coupon-off.png


BIN
images/nav/coupon-on.png


BIN
images/nav/fl-off.png


BIN
images/nav/fl-on.png


BIN
images/nav/home-off.png


BIN
images/nav/home-on.png


BIN
images/nav/my-off.png


BIN
images/nav/my-on.png


BIN
images/nav/order-off.png


BIN
images/nav/order-on.png


BIN
images/nologin.png


BIN
images/order-details/icon-address.png


BIN
images/order-details/icon-ddfh.png


BIN
images/order-details/icon-ddfk.png


BIN
images/order-details/icon-ddgb.png


BIN
images/order-details/icon-ddsh.png


BIN
images/order-details/icon-jycg.png


BIN
images/order-details/icon-wuliu.png


BIN
images/order/fahuo.png


BIN
images/order/pj.png


BIN
images/order/shouhou.png


BIN
images/order/shouhuo.png


BIN
images/order/topay.png


BIN
images/share/share1.png


BIN
images/share/share2.png


BIN
images/trtc/avatar1_100.png


BIN
images/trtc/back.png


BIN
images/trtc/call.png


BIN
images/trtc/doubleroom.png


BIN
images/trtc/hangup.png


BIN
images/wx.jpg


BIN
images/zw.png


+ 6 - 0
jsconfig.json

@@ -0,0 +1,6 @@
+{
+	"compilerOptions": {
+		"target": "es2015",
+		"module": "commonjs"
+	}	
+}

+ 64 - 0
miniprogram_npm/@vant/weapp/action-sheet/index.js

@@ -0,0 +1,64 @@
+'use strict';
+Object.defineProperty(exports, '__esModule', { value: true });
+var component_1 = require('../common/component');
+var button_1 = require('../mixins/button');
+var open_type_1 = require('../mixins/open-type');
+component_1.VantComponent({
+  mixins: [button_1.button, open_type_1.openType],
+  props: {
+    show: Boolean,
+    title: String,
+    cancelText: String,
+    description: String,
+    round: {
+      type: Boolean,
+      value: true,
+    },
+    zIndex: {
+      type: Number,
+      value: 100,
+    },
+    actions: {
+      type: Array,
+      value: [],
+    },
+    overlay: {
+      type: Boolean,
+      value: true,
+    },
+    closeOnClickOverlay: {
+      type: Boolean,
+      value: true,
+    },
+    closeOnClickAction: {
+      type: Boolean,
+      value: true,
+    },
+    safeAreaInsetBottom: {
+      type: Boolean,
+      value: true,
+    },
+  },
+  methods: {
+    onSelect: function (event) {
+      var index = event.currentTarget.dataset.index;
+      var item = this.data.actions[index];
+      if (item && !item.disabled && !item.loading) {
+        this.$emit('select', item);
+        if (this.data.closeOnClickAction) {
+          this.onClose();
+        }
+      }
+    },
+    onCancel: function () {
+      this.$emit('cancel');
+    },
+    onClose: function () {
+      this.$emit('close');
+    },
+    onClickOverlay: function () {
+      this.$emit('click-overlay');
+      this.onClose();
+    },
+  },
+});

+ 8 - 0
miniprogram_npm/@vant/weapp/action-sheet/index.json

@@ -0,0 +1,8 @@
+{
+  "component": true,
+  "usingComponents": {
+    "van-icon": "../icon/index",
+    "van-popup": "../popup/index",
+    "van-loading": "../loading/index"
+  }
+}

+ 69 - 0
miniprogram_npm/@vant/weapp/action-sheet/index.wxml

@@ -0,0 +1,69 @@
+<wxs src="../wxs/utils.wxs" module="utils" />
+
+<van-popup
+  show="{{ show }}"
+  position="bottom"
+  round="{{ round }}"
+  z-index="{{ zIndex }}"
+  overlay="{{ overlay }}"
+  custom-class="van-action-sheet"
+  safe-area-inset-bottom="{{ safeAreaInsetBottom }}"
+  close-on-click-overlay="{{ closeOnClickOverlay }}"
+  bind:close="onClickOverlay"
+>
+  <view wx:if="{{ title }}" class="van-action-sheet__header">
+    {{ title }}
+    <van-icon
+      name="cross"
+      custom-class="van-action-sheet__close"
+      bind:click="onClose"
+    />
+  </view>
+  <view wx:if="{{ description }}" class="van-action-sheet__description van-hairline--bottom">
+    {{ description }}
+  </view>
+  <view wx:if="{{ actions && actions.length }}">
+    <!-- button外包一层view,防止actions动态变化,导致渲染时button被打散 -->
+    <button
+      wx:for="{{ actions }}"
+      wx:key="index"
+      open-type="{{ item.openType }}"
+      style="{{ item.color ? 'color: ' + item.color : '' }}"
+      class="{{ utils.bem('action-sheet__item', { disabled: item.disabled || item.loading }) }} {{ item.className || '' }}"
+      hover-class="van-action-sheet__item--hover"
+      data-index="{{ index }}"
+      bind:tap="onSelect"
+      bindgetuserinfo="bindGetUserInfo"
+      bindcontact="bindContact"
+      bindgetphonenumber="bindGetPhoneNumber"
+      binderror="bindError"
+      bindlaunchapp="bindLaunchApp"
+      bindopensetting="bindOpenSetting"
+      lang="{{ lang }}"
+      session-from="{{ sessionFrom }}"
+      send-message-title="{{ sendMessageTitle }}"
+      send-message-path="{{ sendMessagePath }}"
+      send-message-img="{{ sendMessageImg }}"
+      show-message-card="{{ showMessageCard }}"
+      app-parameter="{{ appParameter }}"
+    >
+      <block wx:if="{{ !item.loading }}">
+        {{ item.name }}
+        <view wx:if="{{ item.subname }}" class="van-action-sheet__subname" >{{ item.subname }}</view>
+      </block>
+      <van-loading wx:else custom-class="van-action-sheet__loading" size="22px" />
+    </button>
+  </view>
+  <slot />
+  <block wx:if="{{ cancelText }}">
+    <view class="van-action-sheet__gap" />
+    <view
+      class="van-action-sheet__cancel"
+      hover-class="van-action-sheet__cancel--hover"
+      hover-stay-time="70"
+      bind:tap="onCancel"
+    >
+      {{ cancelText }}
+    </view>
+  </block>
+</van-popup>

File diff suppressed because it is too large
+ 0 - 0
miniprogram_npm/@vant/weapp/action-sheet/index.wxss


+ 263 - 0
miniprogram_npm/@vant/weapp/area/index.js

@@ -0,0 +1,263 @@
+'use strict';
+var __assign =
+  (this && this.__assign) ||
+  function () {
+    __assign =
+      Object.assign ||
+      function (t) {
+        for (var s, i = 1, n = arguments.length; i < n; i++) {
+          s = arguments[i];
+          for (var p in s)
+            if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
+        }
+        return t;
+      };
+    return __assign.apply(this, arguments);
+  };
+Object.defineProperty(exports, '__esModule', { value: true });
+var component_1 = require('../common/component');
+var shared_1 = require('../picker/shared');
+var utils_1 = require('../common/utils');
+var EMPTY_CODE = '000000';
+component_1.VantComponent({
+  classes: ['active-class', 'toolbar-class', 'column-class'],
+  props: __assign(__assign({}, shared_1.pickerProps), {
+    value: {
+      type: String,
+      observer: function (value) {
+        this.code = value;
+        this.setValues();
+      },
+    },
+    areaList: {
+      type: Object,
+      value: {},
+      observer: 'setValues',
+    },
+    columnsNum: {
+      type: null,
+      value: 3,
+    },
+    columnsPlaceholder: {
+      type: Array,
+      observer: function (val) {
+        this.setData({
+          typeToColumnsPlaceholder: {
+            province: val[0] || '',
+            city: val[1] || '',
+            county: val[2] || '',
+          },
+        });
+      },
+    },
+  }),
+  data: {
+    columns: [{ values: [] }, { values: [] }, { values: [] }],
+    typeToColumnsPlaceholder: {},
+  },
+  mounted: function () {
+    var _this = this;
+    utils_1.requestAnimationFrame(function () {
+      _this.setValues();
+    });
+  },
+  methods: {
+    getPicker: function () {
+      if (this.picker == null) {
+        this.picker = this.selectComponent('.van-area__picker');
+      }
+      return this.picker;
+    },
+    onCancel: function (event) {
+      this.emit('cancel', event.detail);
+    },
+    onConfirm: function (event) {
+      var index = event.detail.index;
+      var value = event.detail.value;
+      value = this.parseValues(value);
+      this.emit('confirm', { value: value, index: index });
+    },
+    emit: function (type, detail) {
+      detail.values = detail.value;
+      delete detail.value;
+      this.$emit(type, detail);
+    },
+    parseValues: function (values) {
+      var columnsPlaceholder = this.data.columnsPlaceholder;
+      return values.map(function (value, index) {
+        if (
+          value &&
+          (!value.code || value.name === columnsPlaceholder[index])
+        ) {
+          return __assign(__assign({}, value), { code: '', name: '' });
+        }
+        return value;
+      });
+    },
+    onChange: function (event) {
+      var _this = this;
+      var _a = event.detail,
+        index = _a.index,
+        picker = _a.picker,
+        value = _a.value;
+      this.code = value[index].code;
+      this.setValues().then(function () {
+        _this.$emit('change', {
+          picker: picker,
+          values: _this.parseValues(picker.getValues()),
+          index: index,
+        });
+      });
+    },
+    getConfig: function (type) {
+      var areaList = this.data.areaList;
+      return (areaList && areaList[type + '_list']) || {};
+    },
+    getList: function (type, code) {
+      if (type !== 'province' && !code) {
+        return [];
+      }
+      var typeToColumnsPlaceholder = this.data.typeToColumnsPlaceholder;
+      var list = this.getConfig(type);
+      var result = Object.keys(list).map(function (code) {
+        return {
+          code: code,
+          name: list[code],
+        };
+      });
+      if (code != null) {
+        // oversea code
+        if (code[0] === '9' && type === 'city') {
+          code = '9';
+        }
+        result = result.filter(function (item) {
+          return item.code.indexOf(code) === 0;
+        });
+      }
+      if (typeToColumnsPlaceholder[type] && result.length) {
+        // set columns placeholder
+        var codeFill =
+          type === 'province'
+            ? ''
+            : type === 'city'
+            ? EMPTY_CODE.slice(2, 4)
+            : EMPTY_CODE.slice(4, 6);
+        result.unshift({
+          code: '' + code + codeFill,
+          name: typeToColumnsPlaceholder[type],
+        });
+      }
+      return result;
+    },
+    getIndex: function (type, code) {
+      var compareNum = type === 'province' ? 2 : type === 'city' ? 4 : 6;
+      var list = this.getList(type, code.slice(0, compareNum - 2));
+      // oversea code
+      if (code[0] === '9' && type === 'province') {
+        compareNum = 1;
+      }
+      code = code.slice(0, compareNum);
+      for (var i = 0; i < list.length; i++) {
+        if (list[i].code.slice(0, compareNum) === code) {
+          return i;
+        }
+      }
+      return 0;
+    },
+    setValues: function () {
+      var picker = this.getPicker();
+      if (!picker) {
+        return;
+      }
+      var code = this.code || this.getDefaultCode();
+      var provinceList = this.getList('province');
+      var cityList = this.getList('city', code.slice(0, 2));
+      var stack = [];
+      var indexes = [];
+      var columnsNum = this.data.columnsNum;
+      if (columnsNum >= 1) {
+        stack.push(picker.setColumnValues(0, provinceList, false));
+        indexes.push(this.getIndex('province', code));
+      }
+      if (columnsNum >= 2) {
+        stack.push(picker.setColumnValues(1, cityList, false));
+        indexes.push(this.getIndex('city', code));
+        if (cityList.length && code.slice(2, 4) === '00') {
+          code = cityList[0].code;
+        }
+      }
+      if (columnsNum === 3) {
+        stack.push(
+          picker.setColumnValues(
+            2,
+            this.getList('county', code.slice(0, 4)),
+            false
+          )
+        );
+        indexes.push(this.getIndex('county', code));
+      }
+      return Promise.all(stack)
+        .catch(function () {})
+        .then(function () {
+          return picker.setIndexes(indexes);
+        })
+        .catch(function () {});
+    },
+    getDefaultCode: function () {
+      var columnsPlaceholder = this.data.columnsPlaceholder;
+      if (columnsPlaceholder.length) {
+        return EMPTY_CODE;
+      }
+      var countyCodes = Object.keys(this.getConfig('county'));
+      if (countyCodes[0]) {
+        return countyCodes[0];
+      }
+      var cityCodes = Object.keys(this.getConfig('city'));
+      if (cityCodes[0]) {
+        return cityCodes[0];
+      }
+      return '';
+    },
+    getValues: function () {
+      var picker = this.getPicker();
+      if (!picker) {
+        return [];
+      }
+      return this.parseValues(
+        picker.getValues().filter(function (value) {
+          return !!value;
+        })
+      );
+    },
+    getDetail: function () {
+      var values = this.getValues();
+      var area = {
+        code: '',
+        country: '',
+        province: '',
+        city: '',
+        county: '',
+      };
+      if (!values.length) {
+        return area;
+      }
+      var names = values.map(function (item) {
+        return item.name;
+      });
+      area.code = values[values.length - 1].code;
+      if (area.code[0] === '9') {
+        area.country = names[1] || '';
+        area.province = names[2] || '';
+      } else {
+        area.province = names[0] || '';
+        area.city = names[1] || '';
+        area.county = names[2] || '';
+      }
+      return area;
+    },
+    reset: function (code) {
+      this.code = code || '';
+      return this.setValues();
+    },
+  },
+});

+ 6 - 0
miniprogram_npm/@vant/weapp/area/index.json

@@ -0,0 +1,6 @@
+{
+  "component": true,
+  "usingComponents": {
+    "van-picker": "../picker/index"
+  }
+}

+ 20 - 0
miniprogram_npm/@vant/weapp/area/index.wxml

@@ -0,0 +1,20 @@
+<wxs src="./index.wxs" module="computed" />
+
+<van-picker
+  class="van-area__picker"
+  active-class="active-class"
+  toolbar-class="toolbar-class"
+  column-class="column-class"
+  show-toolbar
+  value-key="name"
+  title="{{ title }}"
+  loading="{{ loading }}"
+  columns="{{ computed.displayColumns(columns, columnsNum) }}"
+  item-height="{{ itemHeight }}"
+  visible-item-count="{{ visibleItemCount }}"
+  cancel-button-text="{{ cancelButtonText }}"
+  confirm-button-text="{{ confirmButtonText }}"
+  bind:change="onChange"
+  bind:confirm="onConfirm"
+  bind:cancel="onCancel"
+/>

+ 8 - 0
miniprogram_npm/@vant/weapp/area/index.wxs

@@ -0,0 +1,8 @@
+/* eslint-disable */
+function displayColumns(columns, columnsNum) {
+  return columns.slice(0, +columnsNum);
+}
+
+module.exports = {
+  displayColumns: displayColumns,
+};

+ 1 - 0
miniprogram_npm/@vant/weapp/area/index.wxss

@@ -0,0 +1 @@
+@import '../common/index.wxss';

+ 60 - 0
miniprogram_npm/@vant/weapp/button/index.js

@@ -0,0 +1,60 @@
+'use strict';
+Object.defineProperty(exports, '__esModule', { value: true });
+var component_1 = require('../common/component');
+var button_1 = require('../mixins/button');
+var open_type_1 = require('../mixins/open-type');
+var version_1 = require('../common/version');
+var mixins = [button_1.button, open_type_1.openType];
+if (version_1.canIUseFormFieldButton()) {
+  mixins.push('wx://form-field-button');
+}
+component_1.VantComponent({
+  mixins: mixins,
+  classes: ['hover-class', 'loading-class'],
+  data: {
+    baseStyle: '',
+  },
+  props: {
+    formType: String,
+    icon: String,
+    classPrefix: {
+      type: String,
+      value: 'van-icon',
+    },
+    plain: Boolean,
+    block: Boolean,
+    round: Boolean,
+    square: Boolean,
+    loading: Boolean,
+    hairline: Boolean,
+    disabled: Boolean,
+    loadingText: String,
+    customStyle: String,
+    loadingType: {
+      type: String,
+      value: 'circular',
+    },
+    type: {
+      type: String,
+      value: 'default',
+    },
+    dataset: null,
+    size: {
+      type: String,
+      value: 'normal',
+    },
+    loadingSize: {
+      type: String,
+      value: '20px',
+    },
+    color: String,
+  },
+  methods: {
+    onClick: function () {
+      if (!this.data.loading) {
+        this.$emit('click');
+      }
+    },
+    noop: function () {},
+  },
+});

Some files were not shown because too many files changed in this diff