├── CategoryIcon
├── baby
│ ├── 1.png
│ ├── 2.png
│ ├── 3.png
│ └── 4.png
├── bedding
│ ├── 1.png
│ ├── 2.png
│ ├── 3.png
│ ├── 4.png
│ ├── 5.png
│ ├── 6.png
│ └── 7.png
├── diet
│ ├── 1.png
│ ├── 2.png
│ ├── 3.png
│ └── 4.png
├── home
│ ├── 1.png
│ ├── 14.png
│ ├── 2.png
│ ├── 3.png
│ ├── 4.png
│ └── 5.png
├── kitchen
│ ├── 1.png
│ ├── 2.png
│ ├── 3.png
│ ├── 4.png
│ ├── 5.png
│ ├── 6.png
│ ├── 7.png
│ └── 8.png
├── outfit
│ ├── 2.png
│ ├── 3.png
│ ├── 4.png
│ ├── 5.png
│ ├── 6.png
│ ├── banshenqun.png
│ ├── chenshan.png
│ ├── diaodai.png
│ └── polo.png
└── personal
│ ├── 1.png
│ ├── 2.png
│ ├── 3.png
│ ├── 4.png
│ └── hufu.png
├── LICENSE
├── README.md
├── app.js
├── app.json
├── app.wxss
├── config.js
├── images
├── Shopping.png
├── add_to cart.png
├── already_shipped.png
├── birthday.png
├── choice_n.png
├── choice_y.png
├── completed.png
├── delete.png
├── edit.png
├── festival.png
├── home_page_n.png
├── home_page_y.png
├── img1.jpg
├── img2.jpg
├── img3.jpg
├── list1.png
├── list2.png
├── list3.png
├── list4.png
├── logo.png
├── my_n.png
├── my_order.png
├── my_y.png
├── party.png
├── pending_delivery.png
├── pending_payment.png
├── return.png
├── shopping_cart_return.png
├── shopping_f.png
├── shopping_f_t.png
├── shopping_select.png
├── triangle.png
├── triangle_2.png
└── wedding.png
├── img
├── accunt.png
├── banner.jpg
├── bg1.png
├── cart.png
├── collecticon.png
├── collecticon2.png
├── gotop.png
├── group.png
├── groupH.png
├── home.png
├── icon0-0.png
├── login.jpg
├── logo.png
├── menu.png
├── more_b.png
├── pwd.png
├── searchbtn.png
├── shareicon.png
├── shopcar.png
├── shops1.png
├── shops2.png
├── shops3.png.png
├── toggle.png
├── toggle1.png
└── toggle2.png
├── lib
└── weui.wxss
├── pages
├── address-Add
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── address-Adds
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── addressAdd
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── addressList
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── assemble
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── assemble_detail
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── bindPhone
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── cart
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── comment
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── coupon
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── coupon_all
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── detail
│ ├── detail.js
│ ├── detail.json
│ ├── detail.wxml
│ └── detail.wxss
├── details
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── evaluate
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── extension
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── feedback
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── fenlei
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── fenlei_detail
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── footprint
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── help
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── index
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── integral
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── list
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── logistics
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── order
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── orderDetails
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── question
│ ├── question.js
│ ├── question.json
│ ├── question.wxml
│ └── question.wxss
├── questiong
│ ├── question.js
│ ├── question.json
│ ├── question.wxml
│ └── question.wxss
├── record
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── refund
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── refund_detail
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── return_goods
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── settlement
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── user
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── withdrawaccount
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
└── yijian
│ ├── yijian.js
│ ├── yijian.json
│ ├── yijian.wxml
│ └── yijian.wxss
├── plugins
└── wxParse
│ ├── html2json.js
│ ├── htmlparser.js
│ ├── showdown.js
│ ├── wxDiscode.js
│ ├── wxParse.js
│ ├── wxParse.wxml
│ └── wxParse.wxss
├── project.config.json
├── sitemap.json
└── utils
├── common.util.js
├── object.util.js
├── promise.util.js
└── util.js
/CategoryIcon/baby/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/baby/1.png
--------------------------------------------------------------------------------
/CategoryIcon/baby/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/baby/2.png
--------------------------------------------------------------------------------
/CategoryIcon/baby/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/baby/3.png
--------------------------------------------------------------------------------
/CategoryIcon/baby/4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/baby/4.png
--------------------------------------------------------------------------------
/CategoryIcon/bedding/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/bedding/1.png
--------------------------------------------------------------------------------
/CategoryIcon/bedding/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/bedding/2.png
--------------------------------------------------------------------------------
/CategoryIcon/bedding/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/bedding/3.png
--------------------------------------------------------------------------------
/CategoryIcon/bedding/4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/bedding/4.png
--------------------------------------------------------------------------------
/CategoryIcon/bedding/5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/bedding/5.png
--------------------------------------------------------------------------------
/CategoryIcon/bedding/6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/bedding/6.png
--------------------------------------------------------------------------------
/CategoryIcon/bedding/7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/bedding/7.png
--------------------------------------------------------------------------------
/CategoryIcon/diet/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/diet/1.png
--------------------------------------------------------------------------------
/CategoryIcon/diet/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/diet/2.png
--------------------------------------------------------------------------------
/CategoryIcon/diet/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/diet/3.png
--------------------------------------------------------------------------------
/CategoryIcon/diet/4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/diet/4.png
--------------------------------------------------------------------------------
/CategoryIcon/home/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/home/1.png
--------------------------------------------------------------------------------
/CategoryIcon/home/14.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/home/14.png
--------------------------------------------------------------------------------
/CategoryIcon/home/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/home/2.png
--------------------------------------------------------------------------------
/CategoryIcon/home/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/home/3.png
--------------------------------------------------------------------------------
/CategoryIcon/home/4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/home/4.png
--------------------------------------------------------------------------------
/CategoryIcon/home/5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/home/5.png
--------------------------------------------------------------------------------
/CategoryIcon/kitchen/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/kitchen/1.png
--------------------------------------------------------------------------------
/CategoryIcon/kitchen/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/kitchen/2.png
--------------------------------------------------------------------------------
/CategoryIcon/kitchen/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/kitchen/3.png
--------------------------------------------------------------------------------
/CategoryIcon/kitchen/4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/kitchen/4.png
--------------------------------------------------------------------------------
/CategoryIcon/kitchen/5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/kitchen/5.png
--------------------------------------------------------------------------------
/CategoryIcon/kitchen/6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/kitchen/6.png
--------------------------------------------------------------------------------
/CategoryIcon/kitchen/7.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/kitchen/7.png
--------------------------------------------------------------------------------
/CategoryIcon/kitchen/8.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/kitchen/8.png
--------------------------------------------------------------------------------
/CategoryIcon/outfit/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/outfit/2.png
--------------------------------------------------------------------------------
/CategoryIcon/outfit/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/outfit/3.png
--------------------------------------------------------------------------------
/CategoryIcon/outfit/4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/outfit/4.png
--------------------------------------------------------------------------------
/CategoryIcon/outfit/5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/outfit/5.png
--------------------------------------------------------------------------------
/CategoryIcon/outfit/6.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/outfit/6.png
--------------------------------------------------------------------------------
/CategoryIcon/outfit/banshenqun.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/outfit/banshenqun.png
--------------------------------------------------------------------------------
/CategoryIcon/outfit/chenshan.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/outfit/chenshan.png
--------------------------------------------------------------------------------
/CategoryIcon/outfit/diaodai.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/outfit/diaodai.png
--------------------------------------------------------------------------------
/CategoryIcon/outfit/polo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/outfit/polo.png
--------------------------------------------------------------------------------
/CategoryIcon/personal/1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/personal/1.png
--------------------------------------------------------------------------------
/CategoryIcon/personal/2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/personal/2.png
--------------------------------------------------------------------------------
/CategoryIcon/personal/3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/personal/3.png
--------------------------------------------------------------------------------
/CategoryIcon/personal/4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/personal/4.png
--------------------------------------------------------------------------------
/CategoryIcon/personal/hufu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/CategoryIcon/personal/hufu.png
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | 中文授权协议
2 | 版权所有 (c) 2012-2022,北京康创联盛科技有限公司
3 | 保留所有权利。
4 |
5 | 感谢您选择康盛产品。希望我们的努力能为您提供一个高效快速、强大的社区论坛解决方案,和强大的社交电商解决方案。康盛公司网址为 http://www.comsenz-service.com,产品官方讨论区网址为 https://bbs.comsenz-service.com。
6 |
7 | 用户须知:本协议是您与康盛公司之间关于您使用康盛公司提供的各种软件产品及服务的法律协议。无论您是个人或组织、盈利与否、用途如何(包括以学习和研究为目的),均需仔细阅读本协议,包括免除或者限制康盛责任的免责条款及对您的权利限制。请您审阅并接受或不接受本服务条款。如您不同意本服务条款及/或康盛随时对其的修改,您应不使用或主动取消康盛公司提供的康盛产品。否则,您的任何对康盛产品中的相关服务的注册、登陆、下载、查看等使用行为将被视为您对本服务条款全部的完全接受,包括接受康盛对服务条款随时所做的任何修改。
8 | 本服务条款一旦发生变更, 康盛将在网页上公布修改内容。修改后的服务条款一旦在网站管理后台上公布即有效代替原来的服务条款。您可随时登陆康盛官方论坛查阅最新版服务条款。如果您选择接受本条款,即表示您同意接受协议各项条件的约束。如果您不同意本服务条款,则不能获得使用本服务的权利。您若有违反本条款规定,康盛公司有权随时中止或终止您对康盛产品的使用资格并保留追究相关法律责任的权利。
9 | 在理解、同意、并遵守本协议的全部条款后,方可开始使用康盛产品。您可能与康盛公司直接签订另一书面协议,以补充或者取代本协议的全部或者任何部分。
10 |
11 | 康盛拥有本软件的全部知识产权。本软件只供许可协议,并非出售。康盛只允许您在遵守本协议各项条款的情况下复制、下载、安装、使用或者以其他方式受益于本软件的功能或者知识产权。
12 |
13 | I. 协议许可的权利
14 |
15 | 1. 您可以在完全遵守本许可协议的基础上,将本软件应用于非商业用途,而不必支付软件版权许可费用。
16 | 2. 您可以在协议规定的约束和限制范围内修改康盛产品源代码(如果被提供的话)或界面风格以适应您的网站要求。
17 | 3. 您拥有使用本软件构建的网站中全部会员资料、文章及相关信息的所有权,并独立承担与使用本软件构建的网站内容的审核、注意义务,确保其不侵犯任何人的合法权益,独立承担因使用康盛软件和服务带来的全部责任,若造成康盛公司或用户损失的,您应予以全部赔偿。
18 | 4. 若您需将康盛软件或服务用户商业用途,必须另行获得康盛的书面许可,您在获得商业授权之后,您可以将本软件应用于商业用途,同时依据所购买的授权类型中确定的技术支持期限、技术支持方式和技术支持内容,自购买时刻起,在技术支持期限内拥有通过指定的方式获得指定范围内的技术支持服务。商业授权用户享有反映和提出意见的权力,相关意见将被作为首要考虑,但没有一定被采纳的承诺或保证。
19 | 5. 您可以从康盛提供的应用中心服务中下载适合您网站的应用程序,但应向应用程序开发者/所有者支付相应的费用。
20 |
21 | II. 协议规定的约束和限制
22 |
23 | 1. 未获康盛公司书面商业授权之前,不得将本软件用于商业用途(包括但不限于企业网站、经营性网站、以营利为目或实现盈利的网站)。购买商业授权请登陆http://www.comsenz-service.com参考相关说明,也可以致电8610-51292255了解详情。
24 | 2. 不得对本软件或与之关联的商业授权进行出租、出售、抵押或发放子许可证。
25 | 3. 无论如何,即无论用途如何、是否经过修改或美化、修改程度如何,只要使用康盛产品的整体或任何部分,未经书面许可,页面页脚处的康盛产品名称和康盛公司下属网站(http://www.comsenz-service.com、或 https://bbs.comsenz-service.com) 的链接都必须保留,而不能清除或修改。
26 | 4. 禁止在康盛产品的整体或任何部分基础上以发展任何派生版本、修改版本或第三方版本用于重新分发。
27 | 5. 如果您未能遵守本协议的条款,您的授权将被终止,所许可的权利将被收回,同时您应承担相应法律责任。
28 |
29 | III. 有限担保和免责声明
30 |
31 | 1. 本软件及所附带的文件是作为不提供任何明确的或隐含的赔偿或担保的形式提供的。
32 | 2. 用户出于自愿而使用本软件,您必须了解使用本软件的风险,在尚未购买产品技术服务之前,我们不承诺提供任何形式的技术支持、使用担保,也不承担任何因使用本软件而产生问题的相关责任。
33 | 3. 康盛公司不对使用本软件构建的网站中或者论坛中的文章或信息承担责任,全部责任由您自行承担。
34 | 4. 康盛公司对康盛提供的软件和服务之及时性、安全性、准确性不作担保,由于不可抗力因素、康盛公司无法控制的因素(包括黑客攻击、停断电等)等造成软件使用和服务中止或终止,而给您造成损失的,您同意放弃追究康盛公司责任的全部权利。
35 | 5.康盛公司特别提请您注意,康盛公司为了保障公司业务发展和调整的自主权,康盛公司拥有随时经或未经事先通知而修改服务内容、中止或终止部分或全部软件使用和服务的权利,修改会公布于康盛公司网站相关页面上,一经公布视为通知。 康盛公司行使修改或中止、终止部分或全部软件使用和服务的权利而造成损失的,康盛公司不需对您或任何第三方负责。
36 |
37 | 有关康盛产品最终用户授权协议、商业授权与技术服务的详细内容,均由康盛公司独家提供。康盛公司拥有在不事先通知的情况下,修改授权协议和服务价目表的权利,修改后的协议或价目表对自改变之日起的新授权用户生效。
38 |
39 | 一旦您开始安装康盛产品,即被视为完全理解并接受本协议的各项条款,在享有上述条款授予的权利的同时,受到相关的约束和限制。协议许可范围以外的行为,将直接违反本授权协议并构成侵权,我们有权随时终止授权,责令停止损害,并保留追究相关责任的权力。
40 |
41 | 本许可协议条款的解释,效力及纠纷的解决,适用于中华人民共和国大陆法律。
42 |
43 | 若您和康盛之间发生任何纠纷或争议,首先应友好协商解决,协商不成的,您在此完全同意将纠纷或争议提交康盛所在地北京市海淀区人民法院管辖。康盛公司拥有对以上各项条款内容的解释权及修改权。(正文完)
44 |
45 | 康盛公司
46 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # shopdz-minapp
2 | shopdz 商城小程序源码
3 |
4 | # 使用步骤
5 | - 申请小程序号,将小程序号AppId填写到 project.config.json appid 中。
6 | - 修改 config.js host 接口地址
7 | - 使用开发者工具运行小程序,测试功能是否正常
--------------------------------------------------------------------------------
/app.js:
--------------------------------------------------------------------------------
1 | //app.js
2 | const curl = require('./config').host;
3 | App({
4 | onLaunch: function (options) {
5 | console.log(options);
6 | // 展示本地存储能力
7 | var self = this;
8 | var logs = wx.getStorageSync('logs') || []
9 | logs.unshift(Date.now())
10 | wx.setStorageSync('logs', logs)
11 |
12 | // 登录
13 |
14 | // 获取用户信息
15 | wx.getSetting({
16 | success: res => {
17 | if (res.authSetting['scope.userInfo']) {
18 | // 已经授权,可以直接调用 getUserInfo 获取头像昵称,不会弹框
19 | wx.getUserInfo({
20 | success: res => {
21 | console.log(res.userInfo)
22 | var nickName = res.userInfo.nickName;
23 | var avatarUrl = res.userInfo.avatarUrl;
24 | wx.setStorageSync('nickName', nickName);
25 | wx.setStorageSync('avatarUrl', avatarUrl);
26 | }
27 | })
28 | }
29 | }
30 | })
31 |
32 | },
33 |
34 | http: function (url, data='', method="GET") { //封装http请求
35 | const apiUrl = 'http://shopdz.shopdz.cn/' //请求域名
36 | console.log(this.globalData)
37 | const currency = {
38 | //openid: this.globalData.openid
39 | }
40 | return new Promise((resolve, reject) => {
41 | wx.request({
42 | url: apiUrl + url,
43 | header: {
44 | 'content-type': 'application/x-www-form-urlencoded' // 默认值
45 | },
46 | data: Object.assign(currency,data),
47 | method: method,
48 | success: function (res) {
49 | if(res.data.code != 200){
50 | wx.showModal({
51 | title: '提示',
52 | content: res.data.message,
53 | success: function (res) {
54 | if (res.confirm) {
55 | console.log('用户点击确定')
56 | } else if (res.cancel) {
57 | console.log('用户点击取消')
58 | }
59 | }
60 | })
61 | }
62 | resolve(res.data)
63 | },
64 | fail: function (res) {
65 | reject(res);
66 | },
67 | complete: function () {
68 | console.log('complete');
69 | }
70 | })
71 | })
72 | },
73 |
74 | globalData: {
75 | userInfo: null,
76 | openid:null,
77 | nickName: null,
78 | avatarUrl: null,
79 | num:0,
80 | }
81 | })
--------------------------------------------------------------------------------
/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "pages": [
3 | "pages/index/index",
4 | "pages/list/index",
5 | "pages/cart/index",
6 | "pages/user/index",
7 | "pages/details/index",
8 | "pages/bindPhone/index",
9 | "pages/coupon/index",
10 | "pages/order/index",
11 | "pages/addressList/index",
12 | "pages/addressAdd/index",
13 | "pages/address-Add/index",
14 | "pages/address-Adds/index",
15 | "pages/orderDetails/index",
16 | "pages/detail/detail",
17 | "pages/settlement/index",
18 | "pages/integral/index",
19 | "pages/coupon_all/index",
20 | "pages/footprint/index",
21 | "pages/feedback/index",
22 | "pages/help/index",
23 | "pages/yijian/yijian",
24 | "pages/question/question",
25 | "pages/questiong/question",
26 | "pages/refund/index",
27 | "pages/assemble/index",
28 | "pages/assemble_detail/index",
29 | "pages/extension/index",
30 | "pages/evaluate/index",
31 | "pages/refund_detail/index",
32 | "pages/logistics/index",
33 | "pages/comment/index",
34 | "pages/return_goods/index",
35 | "pages/withdrawaccount/index",
36 | "pages/fenlei/index",
37 | "pages/record/index"
38 | ],
39 | "window": {
40 | "backgroundTextStyle": "light",
41 | "navigationBarBackgroundColor": "#fff",
42 | "navigationBarTitleText": "ShopDZ商城",
43 | "navigationBarTextStyle": "black"
44 | },
45 | "tabBar": {
46 | "backgroundColor": "#fff",
47 | "borderStyle": "black",
48 | "color": "#333",
49 | "selectedColor": "#ff5f19",
50 | "list": [
51 | {
52 | "selectedIconPath": "images/home_page_n.png",
53 | "iconPath": "images/home_page_y.png",
54 | "pagePath": "pages/index/index",
55 | "text": "首页"
56 | },
57 | {
58 | "selectedIconPath": "images/shopping_f_t.png",
59 | "iconPath": "images/shopping_f.png",
60 | "pagePath": "pages/fenlei/index",
61 | "text": "分类"
62 | },
63 | {
64 | "selectedIconPath": "images/Shopping.png",
65 | "iconPath": "images/shopping_select.png",
66 | "pagePath": "pages/cart/index",
67 | "text": "购物车"
68 | },
69 | {
70 | "selectedIconPath": "images/my_y.png",
71 | "iconPath": "images/my_n.png",
72 | "pagePath": "pages/user/index",
73 | "text": "我的"
74 | }
75 | ]
76 | },
77 | "sitemapLocation": "sitemap.json"
78 | }
--------------------------------------------------------------------------------
/app.wxss:
--------------------------------------------------------------------------------
1 | /**app.wxss**/
2 | @import "/lib/weui.wxss";
3 | .container {
4 | height: 100%;
5 | }
6 | image{
7 | width: 100%;
8 | }
9 | .fl{
10 | float: left
11 | }
12 | .fr{
13 | float: right;
14 | }
--------------------------------------------------------------------------------
/config.js:
--------------------------------------------------------------------------------
1 | // var host = 'http://shopdz.pm.comsenz-service.com/';
2 | // var host = 'https://miniapp.shopdz.cn/';
3 | var host = 'https://shopdz.shopdz.cn/';
4 | const config = {
5 | host,
6 | }
7 |
8 | module.exports = config
--------------------------------------------------------------------------------
/images/Shopping.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/images/Shopping.png
--------------------------------------------------------------------------------
/images/add_to cart.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/images/add_to cart.png
--------------------------------------------------------------------------------
/images/already_shipped.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/images/already_shipped.png
--------------------------------------------------------------------------------
/images/birthday.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/images/birthday.png
--------------------------------------------------------------------------------
/images/choice_n.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/images/choice_n.png
--------------------------------------------------------------------------------
/images/choice_y.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/images/choice_y.png
--------------------------------------------------------------------------------
/images/completed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/images/completed.png
--------------------------------------------------------------------------------
/images/delete.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/images/delete.png
--------------------------------------------------------------------------------
/images/edit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/images/edit.png
--------------------------------------------------------------------------------
/images/festival.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/images/festival.png
--------------------------------------------------------------------------------
/images/home_page_n.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/images/home_page_n.png
--------------------------------------------------------------------------------
/images/home_page_y.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/images/home_page_y.png
--------------------------------------------------------------------------------
/images/img1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/images/img1.jpg
--------------------------------------------------------------------------------
/images/img2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/images/img2.jpg
--------------------------------------------------------------------------------
/images/img3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/images/img3.jpg
--------------------------------------------------------------------------------
/images/list1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/images/list1.png
--------------------------------------------------------------------------------
/images/list2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/images/list2.png
--------------------------------------------------------------------------------
/images/list3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/images/list3.png
--------------------------------------------------------------------------------
/images/list4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/images/list4.png
--------------------------------------------------------------------------------
/images/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/images/logo.png
--------------------------------------------------------------------------------
/images/my_n.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/images/my_n.png
--------------------------------------------------------------------------------
/images/my_order.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/images/my_order.png
--------------------------------------------------------------------------------
/images/my_y.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/images/my_y.png
--------------------------------------------------------------------------------
/images/party.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/images/party.png
--------------------------------------------------------------------------------
/images/pending_delivery.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/images/pending_delivery.png
--------------------------------------------------------------------------------
/images/pending_payment.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/images/pending_payment.png
--------------------------------------------------------------------------------
/images/return.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/images/return.png
--------------------------------------------------------------------------------
/images/shopping_cart_return.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/images/shopping_cart_return.png
--------------------------------------------------------------------------------
/images/shopping_f.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/images/shopping_f.png
--------------------------------------------------------------------------------
/images/shopping_f_t.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/images/shopping_f_t.png
--------------------------------------------------------------------------------
/images/shopping_select.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/images/shopping_select.png
--------------------------------------------------------------------------------
/images/triangle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/images/triangle.png
--------------------------------------------------------------------------------
/images/triangle_2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/images/triangle_2.png
--------------------------------------------------------------------------------
/images/wedding.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/images/wedding.png
--------------------------------------------------------------------------------
/img/accunt.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/img/accunt.png
--------------------------------------------------------------------------------
/img/banner.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/img/banner.jpg
--------------------------------------------------------------------------------
/img/bg1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/img/bg1.png
--------------------------------------------------------------------------------
/img/cart.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/img/cart.png
--------------------------------------------------------------------------------
/img/collecticon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/img/collecticon.png
--------------------------------------------------------------------------------
/img/collecticon2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/img/collecticon2.png
--------------------------------------------------------------------------------
/img/gotop.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/img/gotop.png
--------------------------------------------------------------------------------
/img/group.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/img/group.png
--------------------------------------------------------------------------------
/img/groupH.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/img/groupH.png
--------------------------------------------------------------------------------
/img/home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/img/home.png
--------------------------------------------------------------------------------
/img/icon0-0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/img/icon0-0.png
--------------------------------------------------------------------------------
/img/login.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/img/login.jpg
--------------------------------------------------------------------------------
/img/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/img/logo.png
--------------------------------------------------------------------------------
/img/menu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/img/menu.png
--------------------------------------------------------------------------------
/img/more_b.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/img/more_b.png
--------------------------------------------------------------------------------
/img/pwd.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/img/pwd.png
--------------------------------------------------------------------------------
/img/searchbtn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/img/searchbtn.png
--------------------------------------------------------------------------------
/img/shareicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/img/shareicon.png
--------------------------------------------------------------------------------
/img/shopcar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/img/shopcar.png
--------------------------------------------------------------------------------
/img/shops1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/img/shops1.png
--------------------------------------------------------------------------------
/img/shops2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/img/shops2.png
--------------------------------------------------------------------------------
/img/shops3.png.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/img/shops3.png.png
--------------------------------------------------------------------------------
/img/toggle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/img/toggle.png
--------------------------------------------------------------------------------
/img/toggle1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/img/toggle1.png
--------------------------------------------------------------------------------
/img/toggle2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Comsenz/ShopDZ-minapp/a8f2af270a7a46be443e77e3168ccb236593c4fd/img/toggle2.png
--------------------------------------------------------------------------------
/pages/address-Add/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "新增地址"
3 | }
--------------------------------------------------------------------------------
/pages/address-Add/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 联系人
5 |
6 |
7 |
8 | 手机号
9 |
10 |
11 |
12 |
13 |
14 | {{info_province}}
15 |
16 |
17 | 请选择省
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 | {{info_city}}
29 |
30 |
31 | 请选择市
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 | {{info_area}}
43 |
44 |
45 | 请选择区
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 | 详细地址
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 | 设为默认地址
64 |
65 |
66 | 保存
67 |
--------------------------------------------------------------------------------
/pages/address-Add/index.wxss:
--------------------------------------------------------------------------------
1 | .main{
2 |
3 | height: 100vh;
4 | background: #e8e9e8;
5 | }
6 | .item{
7 | display: flex;
8 | border-bottom: 1px solid #d8d8d8;
9 | line-height: 20px;
10 | padding: 15px;
11 | }
12 | .items{
13 | display: flex;
14 | border-bottom: 1px solid #d8d8d8;
15 | line-height: 38px;
16 | padding: 5px;
17 | }
18 | .address-default {
19 | height: 100rpx;
20 | background: #fafafa;
21 | line-height: 48px;
22 | text-align: center;
23 | }
24 | .address-check {
25 | margin: 1rpx 0;
26 | display: inline-block;
27 | vertical-align: middle;
28 | }
29 | .check-box {
30 | position: relative;
31 | background: url(http://shopdz.shopdz.cn/wap/img/cb-selected.png) no-repeat top center;
32 | background-size: 100% 100%;
33 | width: 40rpx;
34 | height: 40rpx;
35 | /* margin: 60rpx auto; */
36 | }
37 | .checks-box {
38 | position: relative;
39 | background: url(http://shopdz.shopdz.cn/wap/img/cb-normal.png) no-repeat top center;
40 | /* /img/cb-normal.png */
41 | background-size: 100% 100%;
42 | width: 40rpx;
43 | height: 40rpx;
44 | /* margin: 60rpx auto; */
45 | }
46 | .check-box input[type=checkbox] {
47 | position: absolute;
48 | top: 0;
49 | left: 0;
50 | width: 10px;
51 | height: 10px;
52 | z-index: 89;
53 | opacity: 0;
54 | }
55 | input[type="checkbox"] {
56 | -webkit-appearance: none;
57 | }
58 | .remind4 {
59 | color: #999;
60 | font-size: 30rpx;
61 | display: inline-block;
62 | vertical-align: middle;
63 | }
64 | .data{
65 | background: #fff;
66 | padding: 0 20px;
67 | }
68 | .item text {
69 | flex: 0 1 25%;
70 | font-size: 16px;
71 | color: #080808;
72 | }
73 | .item .xiangxi{
74 | flex: 0 1 25%;
75 | font-size: 16px;
76 | color: #4e4b4b;
77 | }
78 | .item input{
79 | flex: 1 1 auto;
80 | font-size: 16px;
81 | color: #333333;
82 | line-height: 40px;
83 | height: 40px;
84 | }
85 |
86 | .items text {
87 | flex: 0 1 25%;
88 | font-size: 16px;
89 | color: #080808;
90 | }
91 | .items .xiangxi{
92 | flex: 0 1 25%;
93 | font-size: 16px;
94 | color: #4e4b4b;
95 | }
96 | .items input{
97 | flex: 1 1 auto;
98 | font-size: 16px;
99 | color: #333333;
100 | line-height: 40px;
101 | height: 40px;
102 | }
103 |
104 | .item .code{
105 | flex: 0 1 25%;
106 | font-size: 12px;
107 | color:#ff5f19;
108 | border-left: 1px solid #d8d8d8;
109 | text-align: center;
110 | height: 24px;
111 | margin: 8px 0;
112 | line-height: 24px;
113 | }
114 |
115 | .item .icon{
116 | flex: 0 1 10%;
117 | text-align: right;
118 | }
119 |
120 | .item picker{
121 | flex: 1 1 auto;
122 | font-size:16px;
123 | }
124 |
125 | .item .icon image{
126 | width:8px;
127 | height:15px;
128 | }
129 |
130 | .text{
131 | font-size: 12px;
132 | color: #999999;
133 | background: #fff;
134 | padding: 10px 20px;
135 | }
136 |
137 | .btn{
138 | line-height: 46px;
139 | background: #E5E5E5;
140 | font-size: 18px;
141 | color: #FFFFFF;
142 | text-align:center;
143 | margin:50px 30px;
144 | border-radius:2px;
145 | }
146 | .active{
147 | background:#ff5f19;
148 | }
--------------------------------------------------------------------------------
/pages/address-Adds/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "新增地址"
3 | }
--------------------------------------------------------------------------------
/pages/address-Adds/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 联系人
5 |
6 |
7 |
8 | 手机号
9 |
10 |
11 |
12 |
13 |
14 | {{info_province}}
15 |
16 |
17 | 请选择省
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 | {{info_city}}
29 |
30 |
31 | 请选择市
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 | {{info_area}}
43 |
44 |
45 | 请选择区
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 | 详细地址
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 | 设为默认地址
64 |
65 |
66 | 保存
67 |
--------------------------------------------------------------------------------
/pages/address-Adds/index.wxss:
--------------------------------------------------------------------------------
1 | .main{
2 |
3 | height: 100vh;
4 | background: #e8e9e8;
5 | }
6 | .item{
7 | display: flex;
8 | border-bottom: 1px solid #d8d8d8;
9 | line-height: 40px;
10 | padding: 15px 0 0 0;
11 |
12 | }
13 | .address-default {
14 | height: 80rpx;
15 | background: #fafafa;
16 | line-height: 2.2;
17 | text-align: center;
18 | }
19 | .address-check {
20 | margin: 1rpx 0;
21 | display: inline-block;
22 | vertical-align: middle;
23 | }
24 | .check-box {
25 | position: relative;
26 | background: url(http://shopdz.shopdz.cn/wap/img/cb-selected.png) no-repeat top center;
27 | background-size: 100% 100%;
28 | width: 40rpx;
29 | height: 40rpx;
30 | /* margin: 60rpx auto; */
31 | }
32 | .checks-box {
33 | position: relative;
34 | background: url(http://shopdz.shopdz.cn/wap/img/cb-normal.png) no-repeat top center;
35 | /* /img/cb-normal.png */
36 | background-size: 100% 100%;
37 | width: 40rpx;
38 | height: 40rpx;
39 | /* margin: 60rpx auto; */
40 | }
41 | .check-box input[type=checkbox] {
42 | position: absolute;
43 | top: 0;
44 | left: 0;
45 | width: 10px;
46 | height: 10px;
47 | z-index: 89;
48 | opacity: 0;
49 | }
50 | input[type="checkbox"] {
51 | -webkit-appearance: none;
52 | }
53 | .remind4 {
54 | color: #999;
55 | font-size: 30rpx;
56 | display: inline-block;
57 | vertical-align: middle;
58 | }
59 | .data{
60 | background: #fff;
61 | padding: 0 20px;
62 | }
63 | .item text {
64 | flex: 0 1 25%;
65 | font-size: 14px;
66 | color: #333333;
67 | }
68 |
69 | .item input{
70 | flex: 1 1 auto;
71 | font-size: 16px;
72 | color: #333333;
73 | line-height: 40px;
74 | height: 40px;
75 | }
76 |
77 | .item .code{
78 | flex: 0 1 25%;
79 | font-size: 12px;
80 | color:#ff5f19;
81 | border-left: 1px solid #d8d8d8;
82 | text-align: center;
83 | height: 24px;
84 | margin: 8px 0;
85 | line-height: 24px;
86 | }
87 |
88 | .item .icon{
89 | flex: 0 1 10%;
90 | text-align: right;
91 | }
92 |
93 | .item picker{
94 | flex: 1 1 auto;
95 | font-size:16px;
96 | }
97 |
98 | .item .icon image{
99 | width:8px;
100 | height:15px;
101 | }
102 |
103 | .text{
104 | font-size: 12px;
105 | color: #999999;
106 | background: #fff;
107 | padding: 10px 20px;
108 | }
109 |
110 | .btn{
111 | line-height: 46px;
112 | background: #E5E5E5;
113 | font-size: 18px;
114 | color: #FFFFFF;
115 | text-align:center;
116 | margin:50px 30px;
117 | border-radius:2px;
118 | }
119 | .active{
120 | background:#ff5f19;
121 | }
--------------------------------------------------------------------------------
/pages/addressAdd/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "修改地址"
3 | }
--------------------------------------------------------------------------------
/pages/addressAdd/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
10 |
11 | 联系人
12 |
13 |
14 |
15 | 手机号
16 |
17 |
18 |
19 |
20 |
21 |
22 | {{item.area_name}}
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 | {{item.area_name}}
34 |
35 |
36 | 请选择市
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 | {{item.area_name}}
48 |
49 |
50 | 请选择区
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 | 详细地址
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 | 设为默认地址
67 |
68 |
69 | 保存
70 |
--------------------------------------------------------------------------------
/pages/addressAdd/index.wxss:
--------------------------------------------------------------------------------
1 | .main{
2 | height: 100vh;
3 | background: #e8e9e8;
4 | }
5 | .item{
6 | display: flex;
7 | border-bottom: 1px solid #d8d8d8;
8 | line-height: 40px;
9 | padding: 15px 0 0 0;
10 |
11 | }
12 | .address-default {
13 | height: 80rpx;
14 | background: #fafafa;
15 | line-height: 2.2;
16 | text-align: center;
17 | }
18 | .address-check {
19 | margin: 1rpx 0;
20 | display: inline-block;
21 | vertical-align: middle;
22 | }
23 | .check-box {
24 | position: relative;
25 | background: url(http://shopdz.shopdz.cn/wap/img/cb-selected.png) no-repeat top center;
26 | background-size: 100% 100%;
27 | width: 40rpx;
28 | height: 40rpx;
29 | /* margin: 60rpx auto; */
30 | }
31 | .checks-box {
32 | position: relative;
33 | background: url(http://shopdz.shopdz.cn/wap/img/cb-normal.png) no-repeat top center;
34 | /* /img/cb-normal.png */
35 | background-size: 100% 100%;
36 | width: 40rpx;
37 | height: 40rpx;
38 | /* margin: 60rpx auto; */
39 | }
40 | .check-box input[type=checkbox] {
41 | position: absolute;
42 | top: 0;
43 | left: 0;
44 | width: 10px;
45 | height: 10px;
46 | z-index: 89;
47 | opacity: 0;
48 | }
49 | input[type="checkbox"] {
50 | -webkit-appearance: none;
51 | }
52 | .remind4 {
53 | color: #999;
54 | font-size: 30rpx;
55 | display: inline-block;
56 | vertical-align: middle;
57 | }
58 | .data{
59 | background: #fff;
60 | padding: 0 20px;
61 | }
62 | .item text {
63 | flex: 0 1 25%;
64 | font-size: 14px;
65 | color: #333333;
66 | }
67 |
68 | .item input{
69 | flex: 1 1 auto;
70 | font-size: 16px;
71 | color: #333333;
72 | line-height: 40px;
73 | height: 40px;
74 | }
75 |
76 | .item .code{
77 | flex: 0 1 25%;
78 | font-size: 12px;
79 | color:#ff5f19;
80 | border-left: 1px solid #d8d8d8;
81 | text-align: center;
82 | height: 24px;
83 | margin: 8px 0;
84 | line-height: 24px;
85 | }
86 |
87 | .item .icon{
88 | flex: 0 1 10%;
89 | text-align: right;
90 | }
91 |
92 | .item picker{
93 | flex: 1 1 auto;
94 | font-size:16px;
95 | }
96 |
97 | .item .icon image{
98 | width:8px;
99 | height:15px;
100 | }
101 |
102 | .text{
103 | font-size: 12px;
104 | color: #999999;
105 | background: #fff;
106 | padding: 10px 20px;
107 | }
108 |
109 | .btn{
110 | line-height: 46px;
111 | background: #E5E5E5;
112 | font-size: 18px;
113 | color: #FFFFFF;
114 | text-align:center;
115 | margin:50px 30px;
116 | border-radius:2px;
117 | }
118 | .active{
119 | background:#ff5f19;
120 | }
--------------------------------------------------------------------------------
/pages/addressList/index.js:
--------------------------------------------------------------------------------
1 | // pages/addressList/index.js
2 | const app = getApp()
3 | // const curl = 'https://miniapp.shopdz.cn/';
4 | const curl = require('../../config').host;
5 | Page({
6 |
7 | /**
8 | * 页面的初始数据
9 | */
10 | data: {
11 | address_list:[],
12 | id:'',
13 | state:null,
14 | address_id:null,
15 | is_addressDel:false,
16 | },
17 |
18 | /**
19 | * 生命周期函数--监听页面加载
20 | */
21 | defaultFun:function(data){
22 | // app.http('v1/user/defaultCity', {
23 | // id: data.currentTarget.dataset.item._id
24 | // }, 'POST')
25 | // .then(res => {
26 | // app.globalData.userInfo.address = res.data
27 | // this.setData({
28 | // id: res.data._id
29 | // })
30 | // if (this.data.state == 1){
31 | // wx.navigateBack({
32 | // delta: 1
33 | // })
34 | // }
35 | // })
36 | },
37 | onLoad: function (options) {
38 | var self = this;
39 | self.address();
40 | // this.setData({
41 | // id: app.globalData.userInfo.address._id,
42 | // state: options ? options.type:null
43 | // })
44 | },
45 | address:function(){
46 | var self = this;
47 | var key = wx.getStorageSync('key');
48 | wx.request({
49 | url: curl +'api.php/Member/addressList',
50 | data:{key:key},
51 | method: 'POST',
52 | header: {
53 | 'content-type': 'application/x-www-form-urlencoded' // 默认值
54 | },
55 | success:function(res){
56 | if(res.data.code == 0){
57 | var address = res.data.data.address_list;
58 | self.setData({
59 | address_list:address,
60 | });
61 | // console.log(address);
62 | }
63 | }
64 | })
65 | },
66 | addressDel:function(e){
67 | var self = this;
68 | var key = wx.getStorageSync('key');
69 | var address_id = e.currentTarget.dataset.id;
70 | var data = {
71 | key:key,
72 | address_id:address_id,
73 | }
74 | wx.showModal({
75 | title: '确定要删除此地址吗?',
76 | cancelText: "取消", //默认是“取消”
77 | confirmText: "确定", //默认是“确定”
78 | success(res) {
79 | if (res.cancel) {
80 | console.log('隐藏');
81 | } else {
82 | wx.request({
83 | url: curl + 'api.php/Member/addressDel',
84 | data: data,
85 | header: {
86 | 'content-type': 'application/x-www-form-urlencoded' // 默认值
87 | },
88 | method: 'POST',
89 | success: function (res) {
90 | if (res.data.code == 1) {
91 | wx.showToast({
92 | title: "默认地址不能删除",
93 | icon: 'none',
94 | duration: 2000
95 | })
96 | }
97 | self.address();
98 | self.setData({
99 | address_id: null,
100 | is_addressDel: false,
101 | });
102 | }
103 | })
104 | }
105 | }
106 | })
107 | },
108 | deletes:function(e){
109 | var self = this;
110 | var address_id = e.currentTarget.dataset.id;
111 | self.setData({
112 | address_id: address_id,
113 | is_addressDel:true,
114 | });
115 | },
116 | cancel:function(){
117 | var self = this;
118 | self.setData({
119 | address_id: null,
120 | is_addressDel: false,
121 | });
122 | },
123 | /**
124 | * 生命周期函数--监听页面初次渲染完成
125 | */
126 | onReady: function () {
127 |
128 | },
129 |
130 | /**
131 | * 生命周期函数--监听页面显示
132 | */
133 | onShow: function () {
134 | var self = this;
135 | self.address();
136 | },
137 |
138 | /**
139 | * 生命周期函数--监听页面隐藏
140 | */
141 | onHide: function () {
142 |
143 | },
144 |
145 | /**
146 | * 生命周期函数--监听页面卸载
147 | */
148 | onUnload: function () {
149 |
150 | },
151 |
152 | /**
153 | * 页面相关事件处理函数--监听用户下拉动作
154 | */
155 | onPullDownRefresh: function () {
156 |
157 | },
158 |
159 | /**
160 | * 页面上拉触底事件的处理函数
161 | */
162 | onReachBottom: function () {
163 |
164 | },
165 |
166 | /**
167 | * 用户点击右上角分享
168 | */
169 | onShareAppMessage: function () {
170 |
171 | }
172 | })
--------------------------------------------------------------------------------
/pages/addressList/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "我的地址"
3 | }
--------------------------------------------------------------------------------
/pages/addressList/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | {{item.true_name}}
7 | 默认
8 |
9 |
10 | {{item.tel_phone}}
11 | {{item.area_info}}{{item.address}}
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 | 新增收货地址
24 |
25 |
26 |
27 | 确定要删除此地址吗?
28 |
29 | 取消
30 | 确定
31 |
32 |
--------------------------------------------------------------------------------
/pages/addressList/index.wxss:
--------------------------------------------------------------------------------
1 | .list .item{
2 | display: flex;
3 | margin: 0 18px;
4 | border-bottom: 1px solid #dedede;
5 | /* padding: 15px 0; */
6 | align-items: center;
7 | height: 98px;
8 | }
9 | .item .left{
10 | flex: 1 0 80%;
11 | font-size: 14px;
12 | }
13 | .address-name {
14 | width: 18%;
15 | }
16 | .name2, .phone1 {
17 | line-height: 2;
18 | font-size: 26rpx;
19 | width: 100%;
20 | overflow: hidden;
21 | white-space: nowrap;
22 | text-overflow: ellipsis;
23 | }
24 | .address-describe {
25 | margin-left: 4%;
26 | }
27 | .address-word {
28 | font-size: 22rpx;
29 | line-height: 1.5;
30 | padding: .4rpx;
31 | width: 85%;
32 | word-wrap: break-word;
33 | }
34 | .default {
35 | padding: .4rpx;
36 | border: 1px solid #AB2B2B;
37 | border-radius: .4rpx;
38 | -webkit-border-radius: .4rpx;
39 | font-size: 20rpx;
40 | position: relative;
41 | top: .4rpx;
42 | -webkit-box-sizing: border-box;
43 | }
44 | .item .edit,.choice{
45 | flex: 1 0 10%;
46 | text-align: center;
47 | }
48 |
49 | .item .edit image{
50 | width: 20px;
51 | height: 20px;
52 | }
53 | .item .choice image{
54 | width: 25px;
55 | height: 26px;
56 | }
57 | .alertbox {
58 | position: fixed;
59 | z-index: 10001;
60 | width: 80%;
61 | /* width: 432px; */
62 | left: 10%;
63 | background: #fff;
64 | top: 30%;
65 | /* border-radius: 3px; */
66 | -webkit-border-radius: 3px;
67 | /* -moz-border-radius: 3px; */
68 | /* -o-border-radius: 3px; */
69 | display: block;
70 | /* display: none; */
71 | }
72 | .alert-p {
73 | font-size: 40rpx;
74 | color: #666;
75 | text-align: center;
76 | line-height: 3;
77 | }
78 | .btnbox1 {
79 | height: 80rpx;
80 | border-top: 1px solid #f0f0f0;
81 | }
82 | .cancelbtn1 {
83 | width: 50%;
84 | height: 100%;
85 | line-height: 80rpx;
86 | float: left;
87 | border-right: 1px solid #f0f0f0;
88 | -webkit-box-sizing: border-box;
89 | font-size: 36rpx;
90 | text-align: center;
91 | cursor: pointer;
92 | }
93 | .surebtn1 {
94 | width: 50%;
95 | height: 100%;
96 | line-height: 80rpx;
97 | float: left;
98 | -webkit-box-sizing: border-box;
99 | font-size: 36rpx;
100 | text-align: center;
101 | cursor: pointer;
102 | color: #AB2B2B;
103 | display: inline-block;
104 | }
105 | .btn{
106 | height: 8vh;
107 | line-height: 8vh;
108 | text-align: center;
109 | background:#ff5f19;
110 | font-size: 14px;
111 | color: #fff;
112 | }
--------------------------------------------------------------------------------
/pages/assemble/index.js:
--------------------------------------------------------------------------------
1 | // pages/coupon/index.js
2 | const app = getApp();
3 | // var curl = 'https://miniapp.shopdz.cn/';
4 | const curl = require('../../config').host;
5 | Page({
6 |
7 | /**
8 | * 页面的初始数据
9 | */
10 | data: {
11 | tabIndex:1,
12 | list:[],
13 | img:[],
14 | },
15 | tabFun(e){
16 | var self = this;
17 | self.setData({
18 | tabIndex: e.currentTarget.dataset.index
19 | })
20 | console.log(e.currentTarget.dataset.index);
21 | if (e.currentTarget.dataset.index == 1){
22 | self.not_used();
23 | } else if (e.currentTarget.dataset.index == 2){
24 | self.already_used();
25 | } else if (e.currentTarget.dataset.index == 3){
26 | self.failure();
27 | }
28 | },
29 | /**
30 | * 生命周期函数--监听页面加载
31 | */
32 | onLoad: function (options) {
33 | var self = this;
34 | self.not_used();
35 | self.shopping();
36 | },
37 | //未使用
38 | not_used:function(){
39 | var self = this;
40 | // var key = wx.getStorageSync('key');
41 | wx.request({
42 | url: curl +'api.php/plugin/index/code/group/action/getGroupSet',
43 | method:'GET',
44 | success:function(res){
45 | if(res.data.code == 0){
46 | console.log(res);
47 | var list = res.data.data;
48 | self.setData({
49 | img:list,
50 | });
51 | }
52 |
53 | }
54 | })
55 | },
56 | //已使用
57 | already_used: function () {
58 | var self = this;
59 | var key = wx.getStorageSync('key');
60 | wx.request({
61 | url: curl + 'api.php/coupon/lists/status/2?key=' + key,
62 | method: 'GET',
63 | success: function (res) {
64 | if (res.data.code == 0) {
65 | console.log(res);
66 | var list = res.data.data.list;
67 | self.setData({
68 | list: list,
69 | });
70 | }
71 |
72 | }
73 | })
74 | },
75 | //已失效
76 | shopping: function () {
77 | var self = this;
78 | var key = wx.getStorageSync('key');
79 | wx.request({
80 | url: curl + 'api.php/plugin/index/code/group/action/grouplist',
81 | method: 'GET',
82 | success: function (res) {
83 | if (res.data.code == 0) {
84 | var list = res.data.data;
85 | self.setData({
86 | list: list,
87 | });
88 | }
89 |
90 | }
91 | })
92 | },
93 | /**
94 | * 生命周期函数--监听页面初次渲染完成
95 | */
96 | onReady: function () {
97 |
98 | },
99 |
100 | /**
101 | * 生命周期函数--监听页面显示
102 | */
103 | onShow: function () {
104 |
105 | },
106 |
107 | /**
108 | * 生命周期函数--监听页面隐藏
109 | */
110 | onHide: function () {
111 |
112 | },
113 |
114 | /**
115 | * 生命周期函数--监听页面卸载
116 | */
117 | onUnload: function () {
118 |
119 | },
120 |
121 | /**
122 | * 页面相关事件处理函数--监听用户下拉动作
123 | */
124 | onPullDownRefresh: function () {
125 |
126 | },
127 |
128 | /**
129 | * 页面上拉触底事件的处理函数
130 | */
131 | onReachBottom: function () {
132 |
133 | },
134 |
135 | /**
136 | * 用户点击右上角分享
137 | */
138 | onShareAppMessage: function () {
139 |
140 | }
141 | })
--------------------------------------------------------------------------------
/pages/assemble/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": ""
3 | }
--------------------------------------------------------------------------------
/pages/assemble/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 拼团首页
5 |
6 |
7 | 我的拼团
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | 拼团玩法
18 |
19 |
20 |
21 | 1选择商品
22 | 2支付开团
23 | 3邀请好友
24 | 4拼团成功
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 | 3人团
34 |
35 |
36 |
37 |
38 | {{item.goods_name}}
39 | {{item.group_content}}
40 | 活动时间:{{item.starttime_text}}-{{item.endtime_text}}
41 |
42 |
43 | ¥{{item.group_price}}
44 | ¥{{item.goods_price}}
45 |
46 |
47 | 我要开团
48 |
49 |
50 |
51 |
52 |
53 |
59 |
60 |
61 |
62 |
63 |
--------------------------------------------------------------------------------
/pages/assemble_detail/index.js:
--------------------------------------------------------------------------------
1 | // pages/coupon/index.js
2 | const app = getApp();
3 | var WxParse = require('../../plugins/wxParse/wxParse.js');
4 | // var curl = 'https://miniapp.shopdz.cn/';
5 | const curl = require('../../config').host;
6 | Page({
7 |
8 | /**
9 | * 页面的初始数据
10 | */
11 | data: {
12 | tabIndex:1,
13 | list:[],
14 | img:[],
15 | },
16 | /**
17 | * 生命周期函数--监听页面加载
18 | */
19 | onLoad: function (options) {
20 | console.log(options.goods_id)
21 | var self = this;
22 | if (options.goods_id){
23 | self.not_used(options.goods_id);
24 | }
25 | },
26 | //未使用
27 | not_used: function (goods_id){
28 | var self = this;
29 | var goods_id = goods_id;
30 | var key = wx.getStorageSync('key');
31 | wx.request({
32 | url: curl +'api.php/plugin/index/code/group/action/detail',
33 | data: { key:key, active_id:goods_id},
34 | method:'GET',
35 | success:function(res){
36 | if(res.data.code == 0){
37 | console.log(list);
38 | var list = res.data.data.group;
39 | var img = res.data.data.goods;
40 | console.log(list);
41 | WxParse.wxParse('article', 'html', img.goods_detail, self, 5);
42 | self.setData({
43 | list:list,
44 | img:img,
45 | });
46 | }
47 |
48 | }
49 | })
50 | },
51 | /**
52 | * 生命周期函数--监听页面初次渲染完成
53 | */
54 | onReady: function () {
55 |
56 | },
57 |
58 | /**
59 | * 生命周期函数--监听页面显示
60 | */
61 | onShow: function () {
62 |
63 | },
64 |
65 | /**
66 | * 生命周期函数--监听页面隐藏
67 | */
68 | onHide: function () {
69 |
70 | },
71 |
72 | /**
73 | * 生命周期函数--监听页面卸载
74 | */
75 | onUnload: function () {
76 |
77 | },
78 |
79 | /**
80 | * 页面相关事件处理函数--监听用户下拉动作
81 | */
82 | onPullDownRefresh: function () {
83 |
84 | },
85 |
86 | /**
87 | * 页面上拉触底事件的处理函数
88 | */
89 | onReachBottom: function () {
90 |
91 | },
92 |
93 | /**
94 | * 用户点击右上角分享
95 | */
96 | onShareAppMessage: function () {
97 |
98 | }
99 | })
--------------------------------------------------------------------------------
/pages/assemble_detail/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "优惠券"
3 | }
--------------------------------------------------------------------------------
/pages/assemble_detail/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | 3人团
9 |
10 |
11 |
12 |
13 | {{list.goods_name}}
14 | {{list.group_content}}
15 |
16 | 十五格
17 |
18 |
19 | 组团时限:24小时
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 | 拼团玩法
28 |
29 |
30 | 1选择商品
31 | 2支付开团
32 | 3邀请好友
33 | 4拼团成功
34 |
35 | 支付开团并邀请3人参团,人数不足自动退款,详情点击上方拼团玩法
36 |
37 |
38 |
39 | 商品详情
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 | ¥45.00正价购买
50 |
51 | ¥1.00支付开团
52 |
53 |
--------------------------------------------------------------------------------
/pages/bindPhone/index.js:
--------------------------------------------------------------------------------
1 | // pages/bindPhone/index.js
2 |
3 | const app = getApp()
4 | Page({
5 |
6 | /**
7 | * 页面的初始数据
8 | */
9 | data: {
10 | code:'',
11 | mobile:''
12 | },
13 | bindKeyInput: function (e) {
14 | this.setData({
15 | mobile: e.detail.value
16 | })
17 | },
18 | bindKeyCode:function(e){
19 | this.setData({
20 | code: e.detail.value
21 | })
22 | },
23 | submitFun:function(){
24 | app.http('v1/user/bindMobile', {
25 | code: this.data.code,
26 | mobile: this.data.mobile,
27 | openid: getApp().globalData.openid
28 | },'POST')
29 | .then(res => {
30 | if (res.code == 200) {
31 | wx.reLaunch({
32 | url: "/pages/index/index"
33 | });
34 | }
35 | })
36 | },
37 | /**
38 | * 生命周期函数--监听页面加载
39 | */
40 | onLoad: function (options) {
41 |
42 | },
43 |
44 | /**
45 | * 生命周期函数--监听页面初次渲染完成
46 | */
47 | onReady: function () {
48 |
49 | },
50 |
51 | /**
52 | * 生命周期函数--监听页面显示
53 | */
54 | onShow: function () {
55 |
56 | },
57 |
58 | /**
59 | * 生命周期函数--监听页面隐藏
60 | */
61 | onHide: function () {
62 |
63 | },
64 |
65 | /**
66 | * 生命周期函数--监听页面卸载
67 | */
68 | onUnload: function () {
69 |
70 | },
71 |
72 | /**
73 | * 页面相关事件处理函数--监听用户下拉动作
74 | */
75 | onPullDownRefresh: function () {
76 |
77 | },
78 |
79 | /**
80 | * 页面上拉触底事件的处理函数
81 | */
82 | onReachBottom: function () {
83 |
84 | },
85 |
86 | /**
87 | * 用户点击右上角分享
88 | */
89 | onShareAppMessage: function () {
90 |
91 | }
92 | })
--------------------------------------------------------------------------------
/pages/bindPhone/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "绑定手机"
3 | }
--------------------------------------------------------------------------------
/pages/bindPhone/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 手机号
5 |
6 |
7 | 获取验证码
8 |
9 |
10 |
11 | 验证码
12 |
13 |
14 |
15 | 根据国家政策,首次注册的用户需完成绑定手机号操作,下次
16 | 进入可直接通过微信授权自动登录。
17 |
18 |
19 |
20 | 保存
21 |
--------------------------------------------------------------------------------
/pages/bindPhone/index.wxss:
--------------------------------------------------------------------------------
1 | .main{
2 |
3 | height: 100vh;
4 | background: #e8e9e8;
5 | }
6 | .item{
7 | display: flex;
8 | border-bottom: 1px solid #d8d8d8;
9 | line-height: 40px;
10 | padding: 15px 0 0 0;
11 |
12 | }
13 | .data{
14 | background: #fff;
15 | padding: 0 20px;
16 | }
17 | .item text {
18 | flex: 0 1 25%;
19 | font-size: 14px;
20 | color: #333333;
21 | }
22 |
23 | .item input{
24 | flex: 1 1 auto;
25 | font-size: 16px;
26 | color: #333333;
27 | line-height: 40px;
28 | height: 40px;
29 | }
30 |
31 | .item .code{
32 | flex: 0 1 25%;
33 | font-size: 12px;
34 | color:#ff5f19;
35 | border-left: 1px solid #d8d8d8;
36 | text-align: center;
37 | height: 24px;
38 | margin: 8px 0;
39 | line-height: 24px;
40 | }
41 |
42 | .text{
43 | font-size: 12px;
44 | color: #999999;
45 | background: #fff;
46 | padding: 10px 20px;
47 | }
48 |
49 | .btn{
50 | line-height: 46px;
51 | background: #E5E5E5;
52 | font-size: 18px;
53 | color: #FFFFFF;
54 | text-align:center;
55 | margin:50px 30px;
56 | border-radius:2px;
57 | }
58 | .active{
59 | background:#ff5f19;
60 | }
--------------------------------------------------------------------------------
/pages/cart/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "购物车",
3 | "disableScroll": true
4 | }
--------------------------------------------------------------------------------
/pages/comment/index.js:
--------------------------------------------------------------------------------
1 | // pages/coupon/index.js
2 | const app = getApp();
3 | // var curl = 'https://miniapp.shopdz.cn/';
4 | const curl = require('../../config').host;
5 | Page({
6 |
7 | /**
8 | * 页面的初始数据
9 | */
10 | data: {
11 | tabIndex:1,
12 | page:1,
13 | list:[],
14 | },
15 | /**
16 | * 生命周期函数--监听页面加载
17 | */
18 | onLoad: function (options) {
19 | var self = this;
20 | var goods_id = options.goods_id;
21 | // var goods_id = '2';
22 | self.not_used(goods_id);
23 | self.setData({
24 | goods_id: goods_id,
25 | })
26 | },
27 | //未使用
28 | not_used: function (goods_id){
29 | var self = this;
30 | var key = wx.getStorageSync('key');
31 | if (!goods_id){
32 | self.data.goods_id;
33 | }else{
34 | var goods_id = goods_id;
35 | }
36 | var page = self.data.page;
37 | var orderlist = self.data.list;
38 | wx.request({
39 | url: curl + 'api.php/orders/commentlist',
40 | data: { key: key, page: page, goods_id: goods_id},
41 | method:'GET',
42 | success:function(res){
43 | if(res.data.code == 0){
44 | var list = orderlist.concat(res.data.data.orderlist);
45 | if (res.data.data.orderlist.length == 10){
46 | console.log(1111);
47 | var is_seare = true;
48 | page++;
49 | }else{
50 | var is_seare = false;
51 | }
52 | self.setData({
53 | list:list,
54 | is_seare: is_seare,
55 | page:page,
56 | });
57 | }
58 |
59 | }
60 | })
61 | },
62 | //已使用
63 | already_used: function () {
64 | var self = this;
65 | var key = wx.getStorageSync('key');
66 | wx.request({
67 | url: curl + 'api.php/coupon/lists/status/2?key=' + key,
68 | method: 'GET',
69 | success: function (res) {
70 | if (res.data.code == 0) {
71 | console.log(res);
72 | var list = res.data.data.list;
73 | self.setData({
74 | list: list,
75 | });
76 | }
77 |
78 | }
79 | })
80 | },
81 | //已失效
82 | failure: function () {
83 | var self = this;
84 | var key = wx.getStorageSync('key');
85 | wx.request({
86 | url: curl + 'api.php/coupon/lists/status/3?key=' + key,
87 | method: 'GET',
88 | success: function (res) {
89 | if (res.data.code == 0) {
90 | console.log(res);
91 | var list = res.data.data.list;
92 | self.setData({
93 | list: list,
94 | });
95 | }
96 |
97 | }
98 | })
99 | },
100 | /**
101 | * 生命周期函数--监听页面初次渲染完成
102 | */
103 | onReady: function () {
104 |
105 | },
106 |
107 | lookImage(e) {
108 | var img = e.currentTarget.dataset.img;
109 | var image = img.substring(0,img.length - 11)
110 | var src = e.currentTarget.dataset.src;
111 | var dizhi = [];
112 | src.forEach(function (dataOne) {
113 | dataOne = dataOne.substring(0,dataOne.length - 11);
114 | dizhi.push(dataOne)
115 | });
116 | wx.previewImage({
117 | current: image,
118 | urls: dizhi
119 | })
120 | },
121 |
122 | /**
123 | * 生命周期函数--监听页面显示
124 | */
125 | onShow: function () {
126 |
127 | },
128 |
129 | /**
130 | * 生命周期函数--监听页面隐藏
131 | */
132 | onHide: function () {
133 |
134 | },
135 |
136 | /**
137 | * 生命周期函数--监听页面卸载
138 | */
139 | onUnload: function () {
140 |
141 | },
142 |
143 | /**
144 | * 页面相关事件处理函数--监听用户下拉动作
145 | */
146 | onPullDownRefresh: function () {
147 |
148 | },
149 |
150 | /**
151 | * 页面上拉触底事件的处理函数
152 | */
153 | onReachBottom: function () {
154 | if(this.data.is_seare){
155 | this.not_used(this.data.goods_id);
156 | }
157 | },
158 |
159 | /**
160 | * 用户点击右上角分享
161 | */
162 | onShareAppMessage: function () {
163 |
164 | }
165 | })
--------------------------------------------------------------------------------
/pages/comment/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "商品评价"
3 | }
--------------------------------------------------------------------------------
/pages/comment/index.wxml:
--------------------------------------------------------------------------------
1 |
17 |
18 | 暂无评价
19 |
--------------------------------------------------------------------------------
/pages/comment/index.wxss:
--------------------------------------------------------------------------------
1 | page {
2 | background: rgb(255, 254, 254);
3 | }
4 | .comment-con {
5 | padding: 24rpx 5% 40rpx 5%;
6 | box-sizing: border-box;
7 | -webkit-box-sizing: border-box;
8 | -moz-box-sizing: border-box;
9 | -o-box-sizing: border-box;
10 | border-bottom: 1px solid #eee;
11 | }
12 | .name-time {
13 | overflow: hidden;
14 | zoom: 1;
15 | }
16 | .name-time view {
17 | line-height: 2.8;
18 | }
19 |
20 | .name1 {
21 | float: left;
22 | color: #333;
23 | font-size: 29rpx;
24 | }
25 | .person-head {
26 | width: 70rpx;
27 | height: 70rpx;
28 | border-radius: 50%;
29 | -webkit-border-radius: 50%;
30 | /* -moz-border-radius: 50%; */
31 | /* -o-border-radius: 50%; */
32 | /* -ms-border-radius: 50%; */
33 | float: left;
34 | }
35 | .comment-limit {
36 | line-height: 70rpx;
37 | float: left;
38 | padding-left: 25rpx;
39 | }
40 | .time1 {
41 | float: right;
42 | font-size: 27rpx;
43 | color: #888;
44 | }
45 | .comment-word {
46 | font-size:35rpx;
47 | color: #333;
48 | line-height: 2;
49 | margin-top: 25rpx;
50 | word-wrap: break-word;
51 | width: 100%;
52 | }
53 | .comment-spec {
54 | color: #888;
55 | font-size: 30rpx;
56 | line-height: 1.5;
57 | }
58 | .con-img-list {
59 | width: 100%;
60 | overflow: hidden;
61 | zoom: 1;
62 | margin-top: 25rpx;
63 | }
64 | .con-img-list li {
65 | float: left;
66 | width: 24%;
67 | margin-right: 1%;
68 | overflow: hidden;
69 | }
70 | .imgW{
71 | width: 78px;
72 | margin-right:15px;
73 | float: left;
74 | }
75 | .imgW:nth-child(3n){
76 | margin-right: 0;
77 | }
78 | .main {
79 | display: flex;
80 | align-items: center;
81 | justify-content: center;
82 | width: 100%;
83 | height: 100%;
84 | }
--------------------------------------------------------------------------------
/pages/coupon/index.js:
--------------------------------------------------------------------------------
1 | // pages/coupon/index.js
2 | const app = getApp();
3 | // var curl = 'https://miniapp.shopdz.cn/';
4 | const curl = require('../../config').host;
5 | Page({
6 |
7 | /**
8 | * 页面的初始数据
9 | */
10 | data: {
11 | tabIndex:1,
12 | list:[],
13 | },
14 | tabFun(e){
15 | var self = this;
16 | self.setData({
17 | tabIndex: e.currentTarget.dataset.index
18 | })
19 | console.log(e.currentTarget.dataset.index);
20 | if (e.currentTarget.dataset.index == 1){
21 | self.not_used();
22 | } else if (e.currentTarget.dataset.index == 2){
23 | self.already_used();
24 | } else if (e.currentTarget.dataset.index == 3){
25 | self.failure();
26 | }
27 | },
28 | /**
29 | * 生命周期函数--监听页面加载
30 | */
31 | onLoad: function (options) {
32 | var self = this;
33 | self.not_used();
34 | },
35 | //未使用
36 | not_used:function(){
37 | var self = this;
38 | var key = wx.getStorageSync('key');
39 | wx.request({
40 | url: curl +'api.php/coupon/lists?status=1&key='+key,
41 | method:'GET',
42 | success:function(res){
43 | if(res.data.code == 0){
44 | console.log(res);
45 | var list = res.data.data.list;
46 | self.setData({
47 | list:list,
48 | });
49 | }
50 |
51 | }
52 | })
53 | },
54 | //已使用
55 | already_used: function () {
56 | var self = this;
57 | var key = wx.getStorageSync('key');
58 | wx.request({
59 | url: curl + 'api.php/coupon/lists?status=2&key=' + key,
60 | method: 'GET',
61 | success: function (res) {
62 | if (res.data.code == 0) {
63 | console.log(res);
64 | var list = res.data.data.list;
65 | self.setData({
66 | list: list,
67 | });
68 | }
69 |
70 | }
71 | })
72 | },
73 | //已失效
74 | failure: function () {
75 | var self = this;
76 | var key = wx.getStorageSync('key');
77 | wx.request({
78 | url: curl + 'api.php/coupon/lists?status=3&key=' + key,
79 | method: 'GET',
80 | success: function (res) {
81 | if (res.data.code == 0) {
82 | console.log(res);
83 | var list = res.data.data.list;
84 | self.setData({
85 | list: list,
86 | });
87 | }
88 |
89 | }
90 | })
91 | },
92 | /**
93 | * 生命周期函数--监听页面初次渲染完成
94 | */
95 | onReady: function () {
96 |
97 | },
98 |
99 | /**
100 | * 生命周期函数--监听页面显示
101 | */
102 | onShow: function () {
103 |
104 | },
105 |
106 | /**
107 | * 生命周期函数--监听页面隐藏
108 | */
109 | onHide: function () {
110 |
111 | },
112 |
113 | /**
114 | * 生命周期函数--监听页面卸载
115 | */
116 | onUnload: function () {
117 |
118 | },
119 |
120 | /**
121 | * 页面相关事件处理函数--监听用户下拉动作
122 | */
123 | onPullDownRefresh: function () {
124 |
125 | },
126 |
127 | /**
128 | * 页面上拉触底事件的处理函数
129 | */
130 | onReachBottom: function () {
131 |
132 | },
133 |
134 | /**
135 | * 用户点击右上角分享
136 | */
137 | onShareAppMessage: function () {
138 |
139 | }
140 | })
--------------------------------------------------------------------------------
/pages/coupon/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "优惠券"
3 | }
--------------------------------------------------------------------------------
/pages/coupon/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 未使用
5 |
6 |
7 | 已使用
8 |
9 |
10 | 已过期
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | {{item.rpacket_title}}
23 |
24 |
25 |
26 |
27 | ¥
28 | {{item.rpacket_price}}
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 | 订单满{{item.rpacket_limit}}元(含运费)
39 | 有效期:{{item.start}}-{{item.end}}
40 |
41 |
42 |
43 |
44 |
45 |
46 | 暂无优惠券
47 |
48 |
49 |
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/pages/coupon/index.wxss:
--------------------------------------------------------------------------------
1 | page{
2 | padding-bottom: 96rpx;
3 | background-color: #eee;
4 | }
5 | .tab{
6 | height: 7vh;
7 | display: flex;
8 | line-height: 7vh;
9 | background-color: #fff;
10 | }
11 |
12 | .tab view{
13 | flex: 1 0 auto;
14 | font-size: 14px;
15 | color: #333333;
16 | text-align: center;
17 | }
18 | .tab .active{
19 | color: #ff5f19;
20 | border-bottom: 1px solid #ff5f19;
21 | padding-bottom:1.8vh;
22 | }
23 | .tab-content {
24 | padding-bottom: 40rpx;
25 | }
26 | .show {
27 | display: block;
28 | }
29 | .voucher-list {
30 | width: 100%;
31 | overflow: hidden;
32 | /* display: none; */
33 | }
34 | .coupon-list {
35 | width: 100%;
36 | background: #eee;
37 | }
38 | .coupon-li {
39 | width: 94%;
40 | padding: 20rpx 3% 0 3%;
41 | margin: 0;
42 | height: auto;
43 | min-height: 24rpx;
44 | position: relative;
45 | /* border-bottom: 1px solid #f0f0f0; */
46 | }
47 | .coupon-det {
48 | width: 100%;
49 | box-sizing: border-box;
50 | margin: 0 auto;
51 | }
52 | .coupon-box-top {
53 | width: 100%;
54 | padding: 10px 14px;
55 | box-sizing: border-box;
56 | position: relative;
57 | }
58 | .Color010 {
59 | background: #63b359 !important;
60 | }
61 | .Color011 {
62 | background: #b35959 !important;
63 | }
64 | .coupon-box-bottom {
65 | width: 100%;
66 | height: 100rpx;
67 | background: #fff;
68 | text-align: center;
69 | box-shadow: 0px 5px 5px -5px #999;
70 | }
71 | .coupon-top-con {
72 | color: #fff;
73 | font-size: 30rpx;
74 | text-align: center;
75 | line-height: 45rpx;
76 | }
77 | .zoom {
78 | overflow: hidden;
79 | zoom: 1;
80 | }
81 | .coupon-subtit {
82 | text-align: left;
83 | line-height: 24px;
84 | font-size: 30rpx;
85 | }
86 | .left {
87 | float: left;
88 | }
89 | .right {
90 | float: right;
91 | }
92 | .couponMoney-box {
93 | padding: 10px 0;
94 | }
95 | .couponMoney-box .money-unit {
96 | font-size: 32rpx !important;
97 | font-weight: 600;
98 | display: inline-block;
99 | }
100 | .couponMoney-box .money-num {
101 | font-size: 50rpx !important;
102 | display: inline-block;
103 | }
104 | .coupon-statu {
105 | display: inline-block;
106 | height: 40rpx;
107 | opacity: .3;
108 | }
109 | .coupon-bottom-tit {
110 | font-size: 12px;
111 | text-align: center;
112 | color: #666;
113 | padding-top: 10px;
114 | }
115 | .coupon-remind2 {
116 | font-size: 28rpx;
117 | color: #999;
118 | text-align: center;
119 | }
120 | .btn{
121 | position: fixed;
122 | bottom:0;
123 | left: 0;
124 | width: 100%;
125 | height: 96rpx;
126 | text-align: center;
127 | font-size: 14px;
128 | color: #fff;
129 | background: #ab2b2b;
130 | line-height: 96rpx;
131 | }
132 | .coupon-share {
133 | color: #d65357 !important;
134 | background: #fff;
135 | /* color: #fff; */
136 | display: inline-block;
137 | width: 100px;
138 | height: 28px;
139 | line-height: 28px !important;
140 | border: 1px solid #fff;
141 | border-radius: 3px;
142 | /* background: transparent; */
143 | cursor: pointer;
144 | overflow: hidden;
145 | }
146 | .img-center {
147 | text-align: center;
148 | }
149 | .coupon-null-img {
150 | margin: 20px auto;
151 | }
152 | .coupon-tit {
153 | color: #888;
154 | letter-spacing: 2px;
155 | font-weight: normal;
156 | font-size: 30rpx;
157 | }
--------------------------------------------------------------------------------
/pages/coupon_all/index.js:
--------------------------------------------------------------------------------
1 | // pages/coupon/index.js
2 | const app = getApp();
3 | // var curl = 'https://miniapp.shopdz.cn/';
4 | const curl = require('../../config').host;
5 | Page({
6 | /**
7 | * 页面的初始数据
8 | */
9 | data: {
10 | tabIndex: 1,
11 | list: [],
12 | is_display:false,
13 | total:0,
14 | is_msg_true:false,
15 | msg:null,
16 | is_true: false,
17 | rpacket_t_id:null,
18 | },
19 | //获取用户积分,优惠券
20 | getList:function(){
21 | var self = this;
22 | var key = wx.getStorageSync('key');
23 | wx.request({
24 | url: curl +'api.php/coupon/lists/status/4?key='+key,
25 | method: 'GET',
26 | success:function(res){
27 | if(res.data.code == 0){
28 | console.log(res.data.data);
29 | var orderlist = res.data.data.list;
30 | var total = res.data.data.points;
31 | self.setData({
32 | list: orderlist,
33 | total: total,
34 | });
35 | }
36 | }
37 | })
38 | },
39 | add_coupon:function(e){
40 | var self = this;
41 | var key = wx.getStorageSync('key');
42 | var rpacket_t_id = e.currentTarget.dataset.id;
43 | wx.showModal({
44 | title: '是否确认领取?',
45 | cancelText: "取消", //默认是“取消”
46 | confirmText: "确定", //默认是“确定”
47 | success(res) {
48 | if (res.cancel) {
49 | console.log('隐藏');
50 | } else {
51 | wx.request({
52 | url: curl + 'api.php/coupon/coupon_insert/rpacket_t_id/' + rpacket_t_id + '?key=' + key,
53 | method: 'GET',
54 | success: function (res) {
55 | console.log(res);
56 | self.setData({
57 | is_display: false,
58 | })
59 | if (res.data.code == 0) {
60 | var num = res.data.data;
61 | wx.showToast({
62 | title: '领取成功,该优惠券已领取' + num + '张。',
63 | icon: 'none',
64 | duration: 2000
65 | });
66 | self.getList();
67 | } else if (res.data.code == 1) {
68 | var msg = res.data.msg;
69 | wx.showToast({
70 | title: msg,
71 | icon: 'none',
72 | duration: 2000
73 | })
74 | self.getList();
75 | } else {
76 | wx.showToast({
77 | title: '领取成功,您已领完所有优惠券。',
78 | icon: 'none',
79 | duration: 2000
80 | })
81 | self.getList();
82 | }
83 | }
84 | })
85 | }
86 | }
87 | })
88 |
89 | },
90 |
91 | cancel:function(){
92 | var self = this;
93 | self.setData({
94 | is_display:false,
95 | rpacket_t_id:null,
96 | });
97 | },
98 | exchange:function(e){
99 | var self = this;
100 | var rpacket_t_id = e.currentTarget.dataset.id;
101 | self.setData({
102 | rpacket_t_id: rpacket_t_id,
103 | is_display:true,
104 | });
105 | },
106 | /**
107 | * 生命周期函数--监听页面加载
108 | */
109 | onLoad: function (options) {
110 | this.getList()
111 | },
112 | //点击随便逛逛返回首页
113 | jump:function(){
114 | wx.switchTab({
115 | url: '../index/index',
116 | });
117 | },
118 | /**
119 | * 生命周期函数--监听页面初次渲染完成
120 | */
121 | onReady: function () {
122 |
123 | },
124 |
125 | /**
126 | * 生命周期函数--监听页面显示
127 | */
128 | onShow: function () {
129 |
130 | },
131 |
132 | /**
133 | * 生命周期函数--监听页面隐藏
134 | */
135 | onHide: function () {
136 |
137 | },
138 |
139 | /**
140 | * 生命周期函数--监听页面卸载
141 | */
142 | onUnload: function () {
143 |
144 | },
145 |
146 | /**
147 | * 页面相关事件处理函数--监听用户下拉动作
148 | */
149 | onPullDownRefresh: function () {
150 |
151 | },
152 |
153 | /**
154 | * 页面上拉触底事件的处理函数
155 | */
156 | onReachBottom: function () {
157 |
158 | },
159 |
160 | /**
161 | * 用户点击右上角分享
162 | */
163 | onShareAppMessage: function () {
164 |
165 | }
166 | })
--------------------------------------------------------------------------------
/pages/coupon_all/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "优惠券"
3 | }
--------------------------------------------------------------------------------
/pages/coupon_all/index.wxml:
--------------------------------------------------------------------------------
1 |
2 | 当前积分
3 | {{total}}
4 |
5 |
6 | 积分明细
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | {{item.rpacket_t_title}}
19 | {{item.limit_num}}
20 |
21 |
22 |
23 | ¥
24 | {{item.rpacket_t_price}}
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 | 订单满{{item.rpacket_t_limit}}元(含运费)
37 | 有效期:{{item.t_start}}-{{item.t_end}}
38 |
39 |
40 |
41 |
42 |
43 |
44 | 暂无优惠券
45 |
46 |
47 |
48 |
49 | 我的优惠券
50 |
51 |
52 |
53 |
54 |
55 |
56 | 是否确认领取?
57 |
58 | 取消
59 | 确定
60 |
61 |
62 |
--------------------------------------------------------------------------------
/pages/detail/detail.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "订单详情"
3 | }
--------------------------------------------------------------------------------
/pages/detail/detail.wxss:
--------------------------------------------------------------------------------
1 | /* pages/detail/detail.wxss */
2 | view{
3 | box-sizing: border-box;
4 | }
5 | page{
6 | height: 100%
7 | }
8 | ._main{
9 | background-color: #F5F5F5;
10 | height: 100%;
11 | overflow: auto;
12 | }
13 | ._main>view{
14 | border-top: 1rpx solid #F0F0F0;
15 | border-bottom: 1rpx solid #F0F0F0;
16 | background-color: #fff;
17 | margin-bottom: 30rpx;
18 | padding: 0 36rpx;
19 | }
20 | .oprea{
21 | height: 62rpx;
22 | line-height: 62rpx;
23 | margin:24rpx 0;
24 | font-size: 28rpx;
25 | }
26 | .detail_btn{
27 | width: 140rpx;
28 | height: 62rpx;
29 | border: 1rpx solid #BEBEBE;
30 | text-align: center;
31 | line-height: 60rpx;
32 | }
33 | .detail_btn.a{
34 | border: 1rpx solid #A60C05;
35 | color: #A60C05;
36 | margin-left: 30rpx;
37 | }
38 |
39 | .center_item{
40 | overflow: hidden;
41 | padding: 24rpx 0;
42 | border-bottom: 1rpx solid #F0F0F0;
43 | }
44 | .center_item:last-child{
45 | border-bottom: 0;
46 | }
47 | .center_img{
48 | width: 140rpx;
49 | height: 140rpx;
50 | overflow: hidden;
51 | }
52 | .center_img image{
53 | width: 100%;
54 | height: 100%;
55 | }
56 | .guige{
57 | width: 518rpx;
58 | padding-top: 20rpx;
59 | font-size: 26rpx;
60 | }
61 | .guige_bar{
62 | height: 50rpx;
63 | line-height: 50rpx;
64 | overflow: hidden
65 | }
66 | .footer_{
67 | padding: 24rpx 0;
68 | border-bottom: 1rpx solid #F0F0F0;
69 | }
70 | .footer_:last-child{
71 | border-bottom: 0;
72 | }
73 | .footer_bar{
74 | font-size: 26rpx;
75 | overflow: hidden;
76 | }
77 | .footer_bar .fl{
78 | line-height: 46rpx;
79 | }
80 | .w140{
81 | width: 140rpx;
82 | }
83 | .c_red{
84 | color: #A60C05
85 | }
86 | ._pary{
87 | color: #7E7D7A
88 | }
89 | ._parys{
90 | color: rgb(252, 98, 98)
91 | }
92 | .alertbox {
93 | position: fixed;
94 | z-index: 10001;
95 | width: 80%;
96 | /* width: 432px; */
97 | left: 10%;
98 | background: #fff;
99 | top: 30%;
100 | /* border-radius: 3px; */
101 | -webkit-border-radius: 3px;
102 | /* -moz-border-radius: 3px; */
103 | /* -o-border-radius: 3px; */
104 | display: block;
105 | /* display: none; */
106 | }
107 | .alert-p {
108 | font-size: 40rpx;
109 | color: #666;
110 | text-align: center;
111 | line-height: 3;
112 | }
113 | .btnbox1 {
114 | height: 80rpx;
115 | border-top: 1px solid #f0f0f0;
116 | }
117 | .cancelbtn1 {
118 | width: 50%;
119 | height: 100%;
120 | line-height: 80rpx;
121 | float: left;
122 | border-right: 1px solid #f0f0f0;
123 | -webkit-box-sizing: border-box;
124 | font-size: 36rpx;
125 | text-align: center;
126 | cursor: pointer;
127 | }
128 | .surebtn1 {
129 | width: 50%;
130 | height: 100%;
131 | line-height: 80rpx;
132 | float: left;
133 | -webkit-box-sizing: border-box;
134 | font-size: 36rpx;
135 | text-align: center;
136 | cursor: pointer;
137 | color: #AB2B2B;
138 | display: inline-block;
139 | }
--------------------------------------------------------------------------------
/pages/details/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "商品详情"
3 | }
--------------------------------------------------------------------------------
/pages/evaluate/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "商品评价"
3 | }
--------------------------------------------------------------------------------
/pages/evaluate/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | {{item.goods_name}}
12 | {{item.goods_spec}}
13 |
14 |
15 |
16 | 已评价
17 | 未评价
18 | 查看评价
19 | 评价商品
20 |
21 |
22 |
23 |
24 |
25 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 | {{list[key].goods_name}}
45 | {{list[key].goods_spec}}
46 |
47 |
48 | 提交
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 | {{contentCount}}/500
58 |
59 |
60 |
61 |
62 | 请点击上传图片
63 |
64 |
65 |
66 |
67 | 删除
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
--------------------------------------------------------------------------------
/pages/extension/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "推广有礼"
3 | }
--------------------------------------------------------------------------------
/pages/extension/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | {{list.all_price}}
5 | 累计奖励
6 |
7 |
8 |
9 | 未结算奖励{{list.no_settlement_price}}
10 |
11 |
12 |
14 |
15 | 微信分享
16 |
17 |
18 |
19 | 二维码
20 |
21 |
22 |
23 | 复制链接
24 |
25 |
26 |
27 |
28 |
29 |
30 | {{list.settlement_price}}
31 | 可提现奖励
32 |
33 |
34 | 提现冻结中{{list.frozen_price}}
35 |
36 |
37 |
38 |
39 | 申请提现
40 |
41 |
42 |
43 |
44 |
45 | 提现记录
46 |
47 |
48 |
49 |
50 |
51 | 修改账户
52 |
53 |
54 |
55 |
56 |
57 |
58 | {{list.qrcode_url}}
59 | 长按网址复制
60 |
61 |
62 |
63 | 长按二维码图片保存
64 | 将图片发送给好友,吸引更多客流
65 |
66 |
--------------------------------------------------------------------------------
/pages/extension/index.wxss:
--------------------------------------------------------------------------------
1 | page{
2 | padding-bottom: 96rpx;
3 | background-color: #eee;
4 | height: 100%;
5 | }
6 | .bind_hide{
7 | height: 100%;
8 | }
9 | .totle-box {
10 | margin-bottom: 30rpx;
11 | background: #fff;
12 | }
13 | .cash-box {
14 | background: #fff;
15 | margin-bottom: 2rem;
16 | }
17 | .spread-top {
18 | padding: 60rpx 0;
19 | border-bottom: 1px solid #f0f0f0;
20 | position: relative;
21 | }
22 | .spread-num {
23 | color: #ab2b2b;
24 | font-size: 60rpx;
25 | font-weight: 600;
26 | line-height: 85rpx;
27 | text-align: center;
28 | }
29 | .spread-remind {
30 | font-size: 30rpx;
31 | text-align: center;
32 | line-height: 45rpx;
33 | font-weight: 600;
34 | letter-spacing: 1px;
35 | color: #808080;
36 | }
37 | .spread-jtR {
38 | position: absolute;
39 | top: 50%;
40 | right: 40rpx;
41 | display: inline-block;
42 | height: 40rpx;
43 | margin-top: -25rpx;
44 | cursor: pointer;
45 | }
46 | .reward-tit {
47 | padding: 25rpx 0;
48 | overflow: hidden;
49 | zoom: 1;
50 | }
51 | .reward-tit .reward-titp {
52 | font-size: 30rpx;
53 | color: #4d4d4d;
54 | padding-left: 25rpx;
55 | font-weight: normal;
56 | letter-spacing: 1px;
57 | }
58 | .left {
59 | float: left;
60 | }
61 | .reward-box .reward-tit .reward-titnum {
62 | font-size: 30rpx;
63 | color: #4d4d4d;
64 | padding-right: 25rpx;
65 | font-weight: normal;
66 | }
67 | .right {
68 | float: right;
69 | }
70 | .modular-box {
71 | overflow: hidden;
72 | zoom: 1;
73 | background: #fff;
74 | }
75 | .modular-li {
76 | float: left;
77 | /* display: inline-block; */
78 | height: 190rpx;
79 | width: 33.33%;
80 | border-top: 1px solid #f0f0f0;
81 | border-right: 1px solid #f0f0f0;
82 | box-sizing: border-box;
83 | display: -webkit-box;
84 | -webkit-box-orient: vertical;
85 | -webkit-box-pack: center;
86 | -webkit-box-align: center;
87 | position: relative;
88 | /* display: -moz-box;
89 | -moz-box-orient: vertical;
90 | -moz-box-pack: center;
91 | -moz-box-align: center;
92 | display: -o-box;
93 | -o-box-orient: vertical;
94 | -o-box-pack: center;
95 | -o-box-align: center;
96 | display: -ms-box;
97 | -ms-box-orient: vertical;
98 | -ms-box-pack: center;
99 | -ms-box-align: center; */
100 | }
101 | .modular-img {
102 | /* display: inline-block; */
103 | display: flex;
104 | align-items: center;
105 | /* height: 5rem; */
106 | width: 50px;
107 | /* width: 60%; */
108 | margin: 0 auto;
109 | }
110 | .modular-word {
111 | padding: .13rpx 0;
112 | font-size: 28rpx;
113 | }
114 | .spread-num1 {
115 | color: #597806;
116 | font-size: 60rpx;
117 | font-weight: 600;
118 | line-height: 85rpx;
119 | text-align: center;
120 | }
121 | .savecode-box, .httpcode-box {
122 | position: fixed;
123 | top: 20%;
124 | left: 50%;
125 | width: 70%;
126 | margin-left: -35%;
127 | background: rgb(189, 185, 185);
128 | border-radius: 5px;
129 | -webkit-border-radius: 5px;
130 | -moz-border-radius: 5px;
131 | z-index: 902;
132 | /* display: none; */
133 | }
134 | .alert-http {
135 | width: 80%;
136 | margin: 0 10%;
137 | height: 100rpx;
138 | font-size:30rpx;
139 | padding-top: 30rpx;
140 | margin-bottom: 24rpx;
141 | text-align: center;
142 | word-wrap: break-word;
143 | }
144 | .alert-codebtn {
145 | border-radius: 3px;
146 | -webkit-border-radius: 3px;
147 | -moz-border-radius: 3px;
148 | width: 80%;
149 | margin: 0 10%;
150 | background: #b8011a;
151 | height: 80rpx;
152 | font-size: 30rpx;
153 | color: #fff;
154 | line-height: 80rpx;
155 | text-align: center;
156 | margin-bottom: 30rpx;
157 | }
158 | .savecode-box .alert-code {
159 | display: block;
160 | width: 80%;
161 | margin: 40rpx 10%;
162 | }
163 | .savecode-box .alert-codetit {
164 | color: #999;
165 | font-size: 30rpx;
166 | text-align: center;
167 | margin-bottom: 40rpx;
168 | }
169 | .share_btn1{
170 | width: 100%;
171 | height: 100%;
172 | position: absolute;
173 | top: 0;
174 | left: 0;
175 | opacity: 0;
176 | z-index: 11;
177 | }
--------------------------------------------------------------------------------
/pages/feedback/index.js:
--------------------------------------------------------------------------------
1 | // pages/coupon/index.js
2 | const app = getApp();
3 | // var curl = 'https://miniapp.shopdz.cn/';
4 | const curl = require('../../config').host;
5 | Page({
6 |
7 | /**
8 | * 页面的初始数据
9 | */
10 | data: {
11 | tabIndex:1,
12 | list:[],
13 | },
14 | is_problem:function(){
15 | var self = this;
16 | wx.request({
17 | url: curl +'api.php/Cms/gethelpcms',
18 | method:'GET',
19 | success:function(res){
20 | console.log(res);
21 | if(res.data.code == 0){
22 | var list = res.data.data.help_list;
23 | self.setData({
24 | list:list,
25 | })
26 | }
27 | }
28 | })
29 | },
30 | /**
31 | * 生命周期函数--监听页面加载
32 | */
33 | onLoad: function (options) {
34 | var self= this;
35 | self.is_problem();
36 | },
37 | /**
38 | * 生命周期函数--监听页面初次渲染完成
39 | */
40 | onReady: function () {
41 |
42 | },
43 |
44 | /**
45 | * 生命周期函数--监听页面显示
46 | */
47 | onShow: function () {
48 |
49 | },
50 |
51 | /**
52 | * 生命周期函数--监听页面隐藏
53 | */
54 | onHide: function () {
55 |
56 | },
57 |
58 | /**
59 | * 生命周期函数--监听页面卸载
60 | */
61 | onUnload: function () {
62 |
63 | },
64 |
65 | /**
66 | * 页面相关事件处理函数--监听用户下拉动作
67 | */
68 | onPullDownRefresh: function () {
69 |
70 | },
71 |
72 | /**
73 | * 页面上拉触底事件的处理函数
74 | */
75 | onReachBottom: function () {
76 |
77 | },
78 |
79 | /**
80 | * 用户点击右上角分享
81 | */
82 | onShareAppMessage: function () {
83 |
84 | }
85 | })
--------------------------------------------------------------------------------
/pages/feedback/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "帮助中心"
3 | }
--------------------------------------------------------------------------------
/pages/feedback/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | {{item.article_title}}
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/pages/feedback/index.wxss:
--------------------------------------------------------------------------------
1 | page{
2 | padding-bottom: 96rpx;
3 | background-color: #eee;
4 | }
5 | .tab-content {
6 | padding-bottom: 40rpx;
7 | }
8 | .title{
9 | display: flex;
10 | line-height: 40px;
11 | border-bottom: 1px solid #dedede;
12 | background: #fff;
13 | padding: 0 16px;
14 | }
15 |
16 | navigator{
17 | width: 100%;
18 | }
19 | .title .left{
20 | flex: 1 0 50%;
21 | font-size: 14px;
22 | color: #333333;
23 | }
24 |
25 | .title image{
26 | width: 8px;
27 | height: 15px;
28 | }
29 | .help-img{
30 | width: 100%;
31 | height: 185px;
32 | }
--------------------------------------------------------------------------------
/pages/fenlei/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "分类"
4 | }
--------------------------------------------------------------------------------
/pages/fenlei/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | {{gc_name}}
12 |
13 |
14 |
15 |
16 |
17 |
18 | {{item.goods_name}}
19 | {{item.goods_price}}
20 |
21 |
22 |
23 |
24 | {{item.goods_name}}
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 | {{item.gc_name}}
43 |
44 |
45 |
46 |
47 |
48 | {{item.gc_name}}
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 | 微信登录
57 |
58 | “shopDz”小程序申请获取您的昵称、头像等公开信息。
59 |
60 |
61 |
62 |
63 |
64 |
65 |
--------------------------------------------------------------------------------
/pages/fenlei_detail/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarTitleText": "分类详情"
4 | }
--------------------------------------------------------------------------------
/pages/fenlei_detail/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | {{gc_name}}
12 |
13 |
14 |
15 |
16 |
17 |
18 | {{item.goods_name}}
19 | {{item.goods_price}}
20 |
21 |
22 |
23 |
24 | {{item.goods_name}}
25 |
26 |
27 |
28 |
29 |
30 |
31 | 微信登录
32 |
33 | “shopDz”小程序申请获取您的昵称、头像等公开信息。
34 |
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/pages/footprint/index.js:
--------------------------------------------------------------------------------
1 | // pages/coupon/index.js
2 | const app = getApp();
3 | // var curl = 'https://miniapp.shopdz.cn/';
4 | const curl = require('../../config').host;
5 | Page({
6 |
7 | /**
8 | * 页面的初始数据
9 | */
10 | data: {
11 | tabIndex: 1,
12 | list: [],
13 | is_display:false,
14 | id:null,
15 | member_id:null,
16 | },
17 | //获取用户所以收藏
18 | getList:function(){
19 | var self = this;
20 | var key = wx.getStorageSync('key');
21 | // var page = '1';
22 | wx.request({
23 | url: curl +'api.php/FootPrint/getFootPrint',
24 | data:{key:key},
25 | header: {
26 | 'content-type': 'application/x-www-form-urlencoded' // 默认值
27 | },
28 | method: 'POST',
29 | success:function(res){
30 | console.log(res);
31 | if(res.data.code == 0){
32 | var orderlist = res.data.data.list;
33 | console.log(orderlist);
34 | self.setData({
35 | list: orderlist,
36 | });
37 | }
38 | }
39 | })
40 | },
41 | /**
42 | * 生命周期函数--监听页面加载
43 | */
44 | onLoad: function (options) {
45 | this.getList()
46 | },
47 | //点击随便逛逛返回首页
48 | jump:function(){
49 | wx.switchTab({
50 | url: '../index/index',
51 | });
52 | },
53 | /**
54 | * 生命周期函数--监听页面初次渲染完成
55 | */
56 | onReady: function () {
57 |
58 | },
59 |
60 | /**
61 | * 生命周期函数--监听页面显示
62 | */
63 | onShow: function () {
64 |
65 | },
66 |
67 | /**
68 | * 生命周期函数--监听页面隐藏
69 | */
70 | onHide: function () {
71 |
72 | },
73 |
74 | /**
75 | * 生命周期函数--监听页面卸载
76 | */
77 | onUnload: function () {
78 |
79 | },
80 |
81 | /**
82 | * 页面相关事件处理函数--监听用户下拉动作
83 | */
84 | onPullDownRefresh: function () {
85 |
86 | },
87 |
88 | /**
89 | * 页面上拉触底事件的处理函数
90 | */
91 | onReachBottom: function () {
92 |
93 | },
94 |
95 | /**
96 | * 用户点击右上角分享
97 | */
98 | onShareAppMessage: function () {
99 |
100 | }
101 | })
--------------------------------------------------------------------------------
/pages/footprint/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "我的足迹"
3 | }
--------------------------------------------------------------------------------
/pages/footprint/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | {{item.goods_name}}
12 | ¥{{item.log_price}}
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 | 您还没有关注任何商品
22 | 可以去看看哪些商品值得收藏
23 |
24 |
25 |
26 | 随便逛逛
27 |
28 |
29 |
--------------------------------------------------------------------------------
/pages/footprint/index.wxss:
--------------------------------------------------------------------------------
1 | .main{
2 | height: 100%;
3 | }
4 |
5 | .myorder1 {
6 | width: 90%;
7 | padding: 0 5%;
8 | background: #fff;
9 | margin-bottom: 30rpx;
10 | }
11 | .order-num1 {
12 | font-size: 30rpx;
13 | /* line-height: 3; */
14 | font-weight: normal;
15 | }
16 | .right {
17 | float: right;
18 | }
19 | .order-dl2 {
20 | border-top: 1px solid #f5f5f5;
21 | border-bottom: 1px solid #f5f5f5;
22 | overflow: hidden;
23 | margin-bottom: 20rpx;
24 | }
25 | .dt {
26 | margin: 20rpx 0;
27 | width: 158rpx;
28 | height: 158rpx;
29 | text-align: center;
30 | }
31 | .dt image{
32 | width: 158rpx;
33 | height: 158rpx;
34 | }
35 | .dd {
36 | width: calc(100% - 158rpx);
37 | overflow: hidden;
38 | zoom: 1;
39 | margin-left: 20rpx;
40 | padding-top: 48rpx;
41 | display: inline-block;
42 | box-sizing: border-box;
43 | }
44 | .order-img1 {
45 | display: inline-block;
46 | width: 100%;
47 | }
48 | .img-bg {
49 | background: #f4f4f4;
50 | }
51 | .left {
52 | float: left;
53 | }
54 |
55 | .dd-left {
56 | width: 51%;
57 | }
58 | .dd-p1 {
59 | font-size: 30rpx;
60 | line-height: 1.5;
61 | overflow: hidden;
62 | white-space: nowrap;
63 | text-overflow: ellipsis;
64 | }
65 | .dd-p2 {
66 | font-size: 30rpx;
67 | line-height: 1.5;
68 | }
69 | .order-dl2 .margin-t1 {
70 | margin-top: 8rpx;
71 | }
72 | .dd-right {
73 | width: 25%;
74 | text-align: center;
75 | }
76 | .cart-dele {
77 | display: inline-block;
78 | width: 80rpx;
79 | height:50px;
80 | cursor: pointer;
81 | }
82 |
83 | .alertbox {
84 | position: fixed;
85 | z-index: 10001;
86 | width: 80%;
87 | /* width: 432px; */
88 | left: 10%;
89 | background: #fff;
90 | top: 30%;
91 | /* border-radius: 3px; */
92 | -webkit-border-radius: 3px;
93 | /* -moz-border-radius: 3px; */
94 | /* -o-border-radius: 3px; */
95 | display: block;
96 | /* display: none; */
97 | }
98 | .alert-p {
99 | font-size: 40rpx;
100 | color: #666;
101 | text-align: center;
102 | line-height: 3;
103 | }
104 | .btnbox1 {
105 | height: 80rpx;
106 | border-top: 1px solid #f0f0f0;
107 | }
108 | .cancelbtn1 {
109 | width: 50%;
110 | height: 100%;
111 | line-height: 80rpx;
112 | float: left;
113 | border-right: 1px solid #f0f0f0;
114 | -webkit-box-sizing: border-box;
115 | font-size: 36rpx;
116 | text-align: center;
117 | cursor: pointer;
118 | }
119 | .surebtn1 {
120 | width: 50%;
121 | height: 100%;
122 | line-height: 80rpx;
123 | float: left;
124 | -webkit-box-sizing: border-box;
125 | font-size: 36rpx;
126 | text-align: center;
127 | cursor: pointer;
128 | color: #AB2B2B;
129 | display: inline-block;
130 | }
131 | .btn{
132 | height: 8vh;
133 | line-height: 8vh;
134 | text-align: center;
135 | background:#ff5f19;
136 | font-size: 14px;
137 | color: #fff;
138 | }
139 | .img-center {
140 | text-align: center;
141 | }
142 | .coupon-null-img {
143 | margin: 20px auto;
144 | }
145 | .coupon-tit {
146 | color: #888;
147 | letter-spacing: 2px;
148 | font-weight: normal;
149 | font-size: 30rpx;
150 | }
151 | .coupon-title {
152 | color: #888;
153 | letter-spacing: 2px;
154 | font-weight: normal;
155 | font-size: 22rpx;
156 | }
157 | .spread-btn {
158 | width: 40%;
159 | margin: 60rpx 30%;
160 | height: 60rpx;
161 | line-height: 60rpx;
162 | }
163 |
164 | .alert-codebtn {
165 | background: #b8011a;
166 | height: 65rpx;
167 | font-size: 30rpx;
168 | color: #fff;
169 | margin-bottom: 28rpx;
170 | }
171 | .text{
172 | display: flex;
173 | align-items: center;
174 | justify-content: center;
175 | }
--------------------------------------------------------------------------------
/pages/help/index.js:
--------------------------------------------------------------------------------
1 | // pages/coupon/index.js
2 | const app = getApp();
3 | var WxParse = require('../../plugins/wxParse/wxParse.js');
4 | // var curl = 'https://miniapp.shopdz.cn/';
5 | const curl = require('../../config').host;
6 | Page({
7 |
8 | /**
9 | * 页面的初始数据
10 | */
11 | data: {
12 | tabIndex:1,
13 | title:null,
14 | },
15 | is_problem:function(id){
16 | var self = this;
17 | var id= id;
18 | var key = wx.getStorageSync('key');
19 | if(id){
20 | wx.request({
21 | url: curl +'api.php/Cms/getcms',
22 | data: { key: key, cms_id:id},
23 | method:'GET',
24 | success:function(res){
25 | console.log(res);
26 | if(res.data.code == 0){
27 | var title = res.data.data.article_title;
28 | WxParse.wxParse('article', 'html', res.data.data.article_content, self);
29 | self.setData({
30 | title:title,
31 | })
32 | }
33 | }
34 | })
35 | }
36 | },
37 | /**
38 | * 生命周期函数--监听页面加载
39 | */
40 | onLoad: function (options) {
41 | var self= this;
42 | // console.log(options);
43 | var id = options.id;
44 | self.is_problem(id);
45 | },
46 | /**
47 | * 生命周期函数--监听页面初次渲染完成
48 | */
49 | onReady: function () {
50 |
51 | },
52 |
53 | /**
54 | * 生命周期函数--监听页面显示
55 | */
56 | onShow: function () {
57 |
58 | },
59 |
60 | /**
61 | * 生命周期函数--监听页面隐藏
62 | */
63 | onHide: function () {
64 |
65 | },
66 |
67 | /**
68 | * 生命周期函数--监听页面卸载
69 | */
70 | onUnload: function () {
71 |
72 | },
73 |
74 | /**
75 | * 页面相关事件处理函数--监听用户下拉动作
76 | */
77 | onPullDownRefresh: function () {
78 |
79 | },
80 |
81 | /**
82 | * 页面上拉触底事件的处理函数
83 | */
84 | onReachBottom: function () {
85 |
86 | },
87 |
88 | /**
89 | * 用户点击右上角分享
90 | */
91 | onShareAppMessage: function () {
92 |
93 | }
94 | })
--------------------------------------------------------------------------------
/pages/help/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "帮助中心"
3 | }
--------------------------------------------------------------------------------
/pages/help/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 | {{title}}
4 |
5 |
6 |
--------------------------------------------------------------------------------
/pages/help/index.wxss:
--------------------------------------------------------------------------------
1 | /**index.wxss**/
2 | @import "../../plugins/wxParse/wxParse.wxss";
3 | .tab-content {
4 | padding-bottom: 40rpx;
5 | }
6 | .jiaju_2{
7 | height: 72rpx;
8 | display: flex;
9 | align-items: center;
10 | justify-content: center;
11 | font-size: 30rpx;
12 | padding-top: 14rpx;
13 | }
--------------------------------------------------------------------------------
/pages/index/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {}
3 | }
--------------------------------------------------------------------------------
/pages/integral/index.js:
--------------------------------------------------------------------------------
1 | // pages/coupon/index.js
2 | const app = getApp();
3 | // var curl = 'https://miniapp.shopdz.cn/';
4 | const curl = require('../../config').host;
5 | Page({
6 | /**
7 | * 页面的初始数据
8 | */
9 | data: {
10 | tabIndex: 1,
11 | list: [],
12 | is_display:false,
13 | total:'',
14 | },
15 | //获取用户所以收藏
16 | getList:function(){
17 | var self = this;
18 | var key = wx.getStorageSync('key');
19 | var page = '1';
20 | wx.request({
21 | url: curl +'api.php/member/getpointslist',
22 | data:{key:key,page:page},
23 | header: {
24 | 'content-type': 'application/x-www-form-urlencoded' // 默认值
25 | },
26 | method: 'POST',
27 | success:function(res){
28 | if(res.data.code == 0){
29 | var orderlist = res.data.data.points_list;
30 | var total = res.data.data.pointsum;
31 | if(total.length >5){
32 | total = total.substring(0,5) + '+';
33 | }
34 | console.log(total.length);
35 | self.setData({
36 | list: orderlist,
37 | total: total,
38 | });
39 | }
40 | }
41 | })
42 | },
43 | /**
44 | * 生命周期函数--监听页面加载
45 | */
46 | onLoad: function (options) {
47 | this.getList()
48 | },
49 | //点击随便逛逛返回首页
50 | jump:function(){
51 | wx.switchTab({
52 | url: '../index/index',
53 | });
54 | },
55 | /**
56 | * 生命周期函数--监听页面初次渲染完成
57 | */
58 | onReady: function () {
59 |
60 | },
61 |
62 | /**
63 | * 生命周期函数--监听页面显示
64 | */
65 | onShow: function () {
66 |
67 | },
68 |
69 | /**
70 | * 生命周期函数--监听页面隐藏
71 | */
72 | onHide: function () {
73 |
74 | },
75 |
76 | /**
77 | * 生命周期函数--监听页面卸载
78 | */
79 | onUnload: function () {
80 |
81 | },
82 |
83 | /**
84 | * 页面相关事件处理函数--监听用户下拉动作
85 | */
86 | onPullDownRefresh: function () {
87 |
88 | },
89 |
90 | /**
91 | * 页面上拉触底事件的处理函数
92 | */
93 | onReachBottom: function () {
94 |
95 | },
96 |
97 | /**
98 | * 用户点击右上角分享
99 | */
100 | onShareAppMessage: function () {
101 |
102 | }
103 | })
--------------------------------------------------------------------------------
/pages/integral/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "我的积分"
3 | }
--------------------------------------------------------------------------------
/pages/integral/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 | {{total}}
4 |
5 | 当前积分
6 |
7 |
8 |
9 |
10 |
11 | {{item.pl_desc}}
12 | {{item.pl_points}}积分
13 |
14 | {{item.pl_addtime_text}}
15 |
16 |
17 |
--------------------------------------------------------------------------------
/pages/integral/index.wxss:
--------------------------------------------------------------------------------
1 | .integral-show {
2 | background: #fff;
3 | padding: 60rpx 0;
4 | }
5 | .num-box {
6 | width: 200rpx;
7 | height: 200rpx;
8 | margin: 20rpx auto;
9 | background: url('http://shopdz.shopdz.cn/wap/img/numbg.png') repeat;
10 | background-size: 100% 100%;
11 | }
12 | .number {
13 | display: block;
14 | color: #ab2b2b;
15 | font-size: 40rpx;
16 | position: relative;
17 | top: 70rpx;
18 | text-align: center;
19 | }
20 | .integral-number {
21 | font-size: 30rpx;
22 | text-align: center;
23 | }
24 | .integral-list {
25 | background: #fff;
26 | margin-top: 30rpx;
27 | margin-bottom: 30rpx;
28 | width: 100%;
29 | display: flex;
30 | }
31 | .li {
32 | width: 94%;
33 | padding: 20rpx 3%;
34 | border-bottom: 1px solid #f0f0f0;
35 | }
36 | .inte-tit {
37 | font-size: 30rpx;
38 | /* line-height: 25rpx; */
39 | color: #000;
40 | width: 50%;
41 | height: 20px;
42 | overflow :hidden;
43 | text-overflow: ellipsis;
44 | white-space: nowrap;
45 | display: inline-block
46 | }
47 | .inte-num {
48 | font-size: 30rpx;
49 | line-height: 30rpx;
50 | color: #000;
51 | width: 50%;
52 | text-align:right;
53 | display: inline-block
54 | }
55 | .inte-time {
56 | color: #b2b2b2;
57 | text-align: right;
58 | font-size: 28rpx;
59 | line-height: 30rpx;
60 | }
--------------------------------------------------------------------------------
/pages/list/index.js:
--------------------------------------------------------------------------------
1 | // pages/list/index.js
2 | const app = getApp()
3 | Page({
4 |
5 | /**
6 | * 页面的初始数据
7 | */
8 | data: {
9 | list: [],
10 | sortActive:0,
11 | sortState: true,
12 | price:false,
13 | flavor:false,
14 | mount:false,
15 | page:1
16 | },
17 | addCart(data) {
18 | let item = data.currentTarget.dataset.item
19 | app.http('v1/order/addCart', {
20 | id: item._id,
21 | num: 1,
22 | spec: ['asdasasd'],
23 | title: item.title,
24 | img: item.img,
25 | price: item.price
26 | }, "POST")
27 | .then(res => {
28 | console.log(res)
29 | if (res.code == 200) {
30 | wx.showToast({
31 | title: '已加入购物车',
32 | icon: 'success',
33 | duration: 500
34 | })
35 | }
36 | })
37 | },
38 | sortFun(data) {
39 | this.setData({
40 | sortActive: data.currentTarget.dataset.data,
41 | })
42 |
43 | if (data.currentTarget.dataset.data == 1){
44 | this.setData({
45 | price: this.price = !this.price
46 | })
47 |
48 | } else if (data.currentTarget.dataset.data == 2){
49 | this.setData({
50 | flavor: this.flavor = !this.flavor
51 | })
52 |
53 | } else if (data.currentTarget.dataset.data == 3) {
54 | this.setData({
55 | mount: this.mount = !this.mount
56 | })
57 |
58 | }
59 | },
60 | getList:function(data){
61 | app.http('v1/home/getList', {
62 | page: this.data.page,
63 | category: data.id
64 | })
65 | .then(res => {
66 | if (res.code == 200 && res.data.list.length > 0) {
67 | this.data.page++
68 | let list = this.data.list
69 | for (let i = 0; i < res.data.list.length; i++) {
70 | list.push(res.data.list[i])
71 | }
72 | this.setData({
73 | list: list,
74 | page: this.data.page
75 | })
76 | console.log(this.data)
77 | }
78 | })
79 | },
80 | /**
81 | * 生命周期函数--监听页面加载
82 | */
83 | onLoad: function (e) {
84 | wx.setNavigationBarTitle({
85 | title: e.title//页面标题为路由参数
86 | })
87 | console.log(e)
88 | this.getList(e)
89 | },
90 |
91 | /**
92 | * 生命周期函数--监听页面初次渲染完成
93 | */
94 | onReady: function () {
95 |
96 | },
97 |
98 | /**
99 | * 生命周期函数--监听页面显示
100 | */
101 | onShow: function () {
102 |
103 | },
104 |
105 | /**
106 | * 生命周期函数--监听页面隐藏
107 | */
108 | onHide: function () {
109 |
110 | },
111 |
112 | /**
113 | * 生命周期函数--监听页面卸载
114 | */
115 | onUnload: function () {
116 |
117 | },
118 |
119 | /**
120 | * 页面相关事件处理函数--监听用户下拉动作
121 | */
122 | onPullDownRefresh: function () {
123 |
124 | },
125 |
126 | /**
127 | * 页面上拉触底事件的处理函数
128 | */
129 | onReachBottom: function () {
130 |
131 | },
132 |
133 | /**
134 | * 用户点击右上角分享
135 | */
136 | onShareAppMessage: function () {
137 |
138 | }
139 | })
--------------------------------------------------------------------------------
/pages/list/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "列表",
3 | "disableScroll":true
4 | }
--------------------------------------------------------------------------------
/pages/list/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 价格
5 |
6 | 口味
7 |
8 | 销量
9 |
10 |
11 |
12 |
13 |
14 |
15 | {{item.title}}.
16 |
17 |
18 | ¥{{item.price}}
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/pages/list/index.wxss:
--------------------------------------------------------------------------------
1 | .list{
2 | display: flex;
3 | justify-content: space-between;
4 | flex-wrap:wrap;
5 | box-sizing: content-box;
6 | margin-bottom: 40px;
7 | background: #fff;
8 | }
9 | .list .item{
10 | flex:0 1 50%;
11 | /* border-bottom:1px solid #EDEDED; */
12 | padding-top: 15px;
13 | }
14 | .list .item:nth-child(odd){
15 | /* border-right:1px solid #EDEDED; */
16 | margin-right: -1px;
17 | }
18 |
19 | .list .item .text{
20 | display: block;
21 | font-size: 12px;
22 | line-height: 22px;
23 | margin:0 10px;
24 | }
25 |
26 | .list .item .product{
27 | display: block;
28 | width: 160px;
29 | height: 160px;
30 | margin: 0 auto;
31 | }
32 |
33 | .price{
34 | display: flex;
35 | margin:0 10px;
36 | justify-content:space-between;
37 | }
38 |
39 | .price text{
40 | font-size: 16px;
41 | color: #ff5f19;
42 | }
43 |
44 | .price image{
45 | width: 20px;
46 | height: 20px;
47 | padding-top: 2px;
48 | }
49 |
50 | .sort{
51 | display: flex;
52 | height: 40px;
53 | line-height: 40px;
54 | }
55 |
56 | .sort .item{
57 | text-align: center;
58 | flex: 1 0 33%;
59 | font-size: 14px;
60 | color:#333;
61 | border-top:2px solid #EDEDED;
62 | border-bottom:2px solid #EDEDED;
63 | display: inline-flex;
64 | align-items:center;
65 | justify-content:center;
66 | }
67 |
68 | .sort .active{
69 | border-bottom:1px solid #000;
70 | line-height:38px;
71 | }
72 |
73 | .sort .item-active{
74 | transform:rotate(180deg);
75 | }
76 |
77 | .sort .item image {
78 | width: 10px;
79 | height: 12px;
80 | padding-left:5px;
81 | }
--------------------------------------------------------------------------------
/pages/logistics/index.js:
--------------------------------------------------------------------------------
1 | // pages/coupon/index.js
2 | const app = getApp();
3 | // var curl = 'https://miniapp.shopdz.cn/';
4 | const curl = require('../../config').host;
5 | Page({
6 |
7 | /**
8 | * 页面的初始数据
9 | */
10 | data: {
11 | tabIndex:1,
12 | list:[],
13 | data:[],
14 | },
15 | /**
16 | * 生命周期函数--监听页面加载
17 | */
18 | onLoad: function (options) {
19 | var self = this;
20 | var order_sn = options.order_sn;
21 | // var refund_sn = '201904151746386403';
22 | self.not_used(order_sn);
23 | },
24 | //未使用
25 | not_used: function (order_sn){
26 | var self = this;
27 | var key = wx.getStorageSync('key');
28 | var order_sn = order_sn;
29 | wx.request({
30 | url: curl + 'api.php/Express/express_detail?order_sn=' + order_sn,
31 | method:'GET',
32 | success:function(res){
33 | if(res.data.code == 0){
34 | console.log(res);
35 | var list = res.data.data.express_detail;
36 | var data = res.data.data;
37 | self.setData({
38 | list:list,
39 | data:data,
40 | });
41 | }
42 |
43 | }
44 | })
45 | },
46 | //已使用
47 | already_used: function () {
48 | var self = this;
49 | var key = wx.getStorageSync('key');
50 | wx.request({
51 | url: curl + 'api.php/coupon/lists/status/2?key=' + key,
52 | method: 'GET',
53 | success: function (res) {
54 | if (res.data.code == 0) {
55 | console.log(res);
56 | var list = res.data.data.list;
57 | self.setData({
58 | list: list,
59 | });
60 | }
61 |
62 | }
63 | })
64 | },
65 | //已失效
66 | failure: function () {
67 | var self = this;
68 | var key = wx.getStorageSync('key');
69 | wx.request({
70 | url: curl + 'api.php/coupon/lists/status/3?key=' + key,
71 | method: 'GET',
72 | success: function (res) {
73 | if (res.data.code == 0) {
74 | console.log(res);
75 | var list = res.data.data.list;
76 | self.setData({
77 | list: list,
78 | });
79 | }
80 |
81 | }
82 | })
83 | },
84 | /**
85 | * 生命周期函数--监听页面初次渲染完成
86 | */
87 | onReady: function () {
88 |
89 | },
90 |
91 | /**
92 | * 生命周期函数--监听页面显示
93 | */
94 | onShow: function () {
95 |
96 | },
97 |
98 | /**
99 | * 生命周期函数--监听页面隐藏
100 | */
101 | onHide: function () {
102 |
103 | },
104 |
105 | /**
106 | * 生命周期函数--监听页面卸载
107 | */
108 | onUnload: function () {
109 |
110 | },
111 |
112 | /**
113 | * 页面相关事件处理函数--监听用户下拉动作
114 | */
115 | onPullDownRefresh: function () {
116 |
117 | },
118 |
119 | /**
120 | * 页面上拉触底事件的处理函数
121 | */
122 | onReachBottom: function () {
123 |
124 | },
125 |
126 | /**
127 | * 用户点击右上角分享
128 | */
129 | onShareAppMessage: function () {
130 |
131 | }
132 | })
--------------------------------------------------------------------------------
/pages/logistics/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "交易物流"
3 | }
--------------------------------------------------------------------------------
/pages/logistics/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 物流公司:{{data.express_name}}
7 | 快递单号:{{data.express_sn}}
8 |
9 |
10 |
11 |
12 | {{item.AcceptStation}}
13 | {{item.AcceptTime}}
14 |
15 |
16 |
--------------------------------------------------------------------------------
/pages/logistics/index.wxss:
--------------------------------------------------------------------------------
1 | page {
2 | background: rgb(238, 237, 237);
3 | }
4 | .content {
5 | padding-top: 90rpx;
6 | padding-bottom: 100rpx;
7 | min-height: 60%;
8 | }
9 | .logistics-head {
10 | height: 170rpx;
11 | width: 100%;
12 | background: url('https://miniapp.shopdz.cn/wap/img/wuliu-bg.png') repeat;
13 | background-size: 100% 100%;
14 | display: -webkit-box;
15 | -webkit-box-pack: center;
16 | -webkit-box-align: center;
17 | /* display: -moz-box;
18 | -moz-box-orient: horizontal;
19 | -moz-box-pack: center;
20 | -moz-box-align: center;
21 | display: -o-box;
22 | -o-box-pack: center;
23 | -o-box-align: center;
24 | display: -ms-box;
25 | -ms-box-pack: center;
26 | -ms-box-align: center; */
27 | /* display: box; */
28 | /* box-pack: center; */
29 | /* box-align: center; */
30 | clear: both;
31 | }
32 | .cart-box {
33 | width: 15%;
34 | margin-left:15px;
35 | text-align: center;
36 | }
37 | .cart-img {
38 | display: inline-block;
39 | height: 100rpx;
40 | margin: auto;
41 | }
42 | .logistics-details {
43 | width: 85%;
44 | margin-left:15px;
45 | }
46 | .logistics-details .li {
47 | font-size: 30rpx;
48 | line-height: 2;
49 | display: -webkit-box;
50 | -webkit-box-orient: horizontal;
51 | -webkit-box-pack: start;
52 | /* display: -moz-box;
53 | -moz-box-orient: horizontal;
54 | -moz-box-pack: start;
55 | display: -o-box;
56 | -o-box-orient: horizontal;
57 | -o-box-pack: start;
58 | display: -ms-box;
59 | -ms-box-orient: horizontal;
60 | -ms-box-pack: start; */
61 | /* display: box; */
62 | /* box-orient: horizontal; */
63 | /* box-pack: start; */
64 | }
65 |
66 | .limit-p {
67 | /* line-height: 2; */
68 | overflow: hidden;
69 | text-overflow: ellipsis;
70 | white-space: nowrap;
71 | }
72 | .logistics-track {
73 | margin-top: 35rpx;
74 | background: #fff;
75 | width: 90%;
76 | padding: 0 5%;
77 | }
78 |
79 | .li1 {
80 | color: #2bab52 !important;
81 | background: url('https://miniapp.shopdz.cn/wap/img/wuliu-code2.png') no-repeat left 30rpx;
82 | background-size: 25rpx auto;
83 | font-size: 28rpx;
84 | line-height: 2;
85 | padding: 25rpx 0 25rpx 40rpx;
86 | border-bottom: 1px solid #f0f0f0;
87 | }
--------------------------------------------------------------------------------
/pages/order/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "我的订单"
3 | }
--------------------------------------------------------------------------------
/pages/orderDetails/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "订单"
3 | }
--------------------------------------------------------------------------------
/pages/question/question.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/pages/question/question.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 退款金额:
7 |
8 | {{order_amount}}
9 | 元
10 |
11 |
12 |
13 |
14 |
15 | 退款原因(点击可选择退款原因)
16 |
17 |
18 | {{causes}}
19 |
20 |
21 |
24 |
25 |
26 |
27 |
28 |
29 |
30 | {{contentCount}}/500
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 | 上传凭证
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 | 删除
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
--------------------------------------------------------------------------------
/pages/question/question.wxss:
--------------------------------------------------------------------------------
1 | page {
2 | background: #fff;
3 | }
4 | .reason-choice {
5 | width: 90%;
6 | /* padding: 0 5%; */
7 | background: #fff;
8 | overflow: hidden;
9 | zoom: 1;
10 | border-bottom: 1px solid #f7f7f7;
11 | font-size: 30rpx;
12 | line-height: 3;
13 | padding-bottom: 1px;
14 | margin: 0 auto;
15 | height: 80rpx;
16 | }
17 | .reason {
18 | width: 90%;
19 | /* padding: 0 5%; */
20 | /* background: #fff; */
21 | /* overflow: hidden; */
22 | /* zoom: 1; */
23 | /* border-bottom: 1px solid #f7f7f7; */
24 | font-size: 30rpx;
25 | line-height: 3;
26 | padding-bottom: 1px;
27 | margin: 0 auto;
28 | /* height: 80rpx; */
29 | }
30 | .item{
31 | display: flex;
32 | border-bottom: 1px solid #d8d8d8;
33 | line-height: 40px;
34 | padding: 15px 0 0 0;
35 |
36 | }
37 | .item .icon{
38 | flex: 1 1 10%;
39 | text-align: right;
40 | }
41 | .item .icon image{
42 | width:15px;
43 | height:16px;
44 | }
45 | .dt {
46 | width:30%;
47 | text-align: left;
48 | }
49 | .refund-money {
50 | color: #AB2B2B;
51 | font-weight: 600;
52 | width: 80%;
53 | height: 50rpx;
54 | border: 1px solid #f0f0f0;
55 | padding: 0 .60rpx;
56 | margin-right: .100rpx;
57 | }
58 | .picker{
59 | flex: 1 1 auto;
60 | font-size:16px;
61 | }
62 |
63 | .dd {
64 | height: 100%;
65 | /* text-align: left; */
66 | line-height: 90rpx;
67 | }
68 | .left {
69 | float: left;
70 | }
71 | .question-form {
72 | margin: 25rpx 25rpx 0;
73 | }
74 |
75 | .question-input-area {
76 | background-color: #fff;
77 | border: 1rpx solid #f2f2f2;
78 | border-radius: 4rpx;
79 | }
80 |
81 | .question-title-wrap {
82 | display: flex;
83 | align-items: center;
84 | border-bottom: 1rpx solid #ccc;
85 | margin: 10rpx 30rpx;
86 | padding: 20rpx 0;
87 | }
88 |
89 | .question-title {
90 | flex: 1;
91 | }
92 |
93 | .weui-textarea-counter, .title-input-counter {
94 | color: #b3b3b3;
95 | font-size: 14px;
96 | padding-left: 10rpx;
97 | }
98 |
99 | .weui-cell::before, .weui-cells::before, .weui-cell::after, .weui-cells::after {
100 | border: none;
101 | }
102 |
103 | .question-images-area {
104 | padding: 40rpx 0;
105 | }
106 |
107 | /* .question-images-tool {
108 | display: flex;
109 | align-items: center;
110 | } */
111 |
112 | .question-images {
113 | display: flex;
114 | align-items: center;
115 | margin-top: 40rpx;
116 | }
117 |
118 | .q-image-wrap {
119 | width: 31%;
120 | margin-right: 10rpx;
121 | height: 276rpx;
122 | }
123 |
124 | .q-image {
125 | flex: 1;
126 | height: 200rpx;
127 | width: 200rpx;
128 | }
129 |
130 | .q-image-remover {
131 | width: 200rpx;
132 | text-align: center;
133 | }
134 |
135 |
136 |
137 |
138 | /* ========================= */
139 | .sc_txt{
140 | font-size: 26rpx;
141 | margin-bottom: 60rpx;
142 | }
143 | button.question-images-tool{
144 | display: inline-block;
145 | width: 200rpx;
146 | height: 200rpx;
147 | border: 1rpx dashed #D6D6D6;
148 | position: relative;
149 | -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
150 | background: transparent;
151 | border-radius: 0;
152 | }
153 | button::after{
154 | border:none;
155 | }
156 | .button-hover.question-images-tool{
157 | background-color: #fff;
158 | }
159 | .shu{
160 | width: 2rpx;
161 | height: 140rpx;
162 | background-color: #D6D6D6;
163 | position: absolute;
164 | top: 50%;
165 | left: 50%;
166 | transform: translate(-50%,-50%);
167 | }
168 | .heng{
169 | width: 140rpx;
170 | height: 2rpx;
171 | background-color: #D6D6D6;
172 | position: absolute;
173 | top: 50%;
174 | left: 50%;
175 | transform: translate(-50%,-50%);
176 | }
177 | .weui-btn{
178 | height: 108rpx;
179 | width: 752rpx;
180 | line-height: 108rpx;
181 | font-weight: 700;
182 | font-size: 40rpx;
183 | margin-left: -25rpx;
184 | background-color: #AB2B2B;
185 | color: #fff;
186 | border-radius: 0;
187 | }
--------------------------------------------------------------------------------
/pages/questiong/question.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/pages/questiong/question.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | {{goods_name}}
12 |
13 | 单价:¥{{goods_amount}}
14 |
15 |
16 |
17 |
18 |
19 |
20 | 退货数量:
21 |
22 |
23 |
24 | -
25 |
26 |
27 |
28 | +
29 |
30 |
31 |
32 |
33 |
34 |
35 | 退款金额:
36 |
37 |
38 | 元
39 |
40 |
41 |
42 |
43 |
44 |
45 | 退款原因(点击选择退货原因)
46 |
47 |
48 | {{causes}}
49 |
50 |
51 |
54 |
55 |
56 |
57 |
58 |
59 |
60 | {{contentCount}}/500
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 | 上传凭证
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 | 删除
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
--------------------------------------------------------------------------------
/pages/record/index.js:
--------------------------------------------------------------------------------
1 | // pages/coupon/index.js
2 | const app = getApp();
3 | // var curl = 'https://miniapp.shopdz.cn/';
4 | const curl = require('../../config').host;
5 | Page({
6 |
7 | /**
8 | * 页面的初始数据
9 | */
10 | data: {
11 | tabIndex: 1,
12 | list: [],
13 | is_display:false,
14 | id:null,
15 | member_id:null,
16 | },
17 | // //获取用户所以收藏
18 | // getList:function(){
19 | // var self = this;
20 | // var key = wx.getStorageSync('key');
21 | // // var page = '1';
22 | // wx.request({
23 | // url: curl +'api.php/FootPrint/getFootPrint',
24 | // data:{key:key},
25 | // header: {
26 | // 'content-type': 'application/x-www-form-urlencoded' // 默认值
27 | // },
28 | // method: 'POST',
29 | // success:function(res){
30 | // console.log(res);
31 | // if(res.data.code == 0){
32 | // var orderlist = res.data.data.list;
33 | // console.log(orderlist);
34 | // self.setData({
35 | // list: orderlist,
36 | // });
37 | // }
38 | // }
39 | // })
40 | // },
41 | /**
42 | * 生命周期函数--监听页面加载
43 | */
44 | onLoad: function (options) {
45 | // this.getList()
46 | },
47 | /**
48 | * 生命周期函数--监听页面初次渲染完成
49 | */
50 | onReady: function () {
51 |
52 | },
53 |
54 | /**
55 | * 生命周期函数--监听页面显示
56 | */
57 | onShow: function () {
58 |
59 | },
60 |
61 | /**
62 | * 生命周期函数--监听页面隐藏
63 | */
64 | onHide: function () {
65 |
66 | },
67 |
68 | /**
69 | * 生命周期函数--监听页面卸载
70 | */
71 | onUnload: function () {
72 |
73 | },
74 |
75 | /**
76 | * 页面相关事件处理函数--监听用户下拉动作
77 | */
78 | onPullDownRefresh: function () {
79 |
80 | },
81 |
82 | /**
83 | * 页面上拉触底事件的处理函数
84 | */
85 | onReachBottom: function () {
86 |
87 | },
88 |
89 | /**
90 | * 用户点击右上角分享
91 | */
92 | onShareAppMessage: function () {
93 |
94 | }
95 | })
--------------------------------------------------------------------------------
/pages/record/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "我的足迹"
3 | }
--------------------------------------------------------------------------------
/pages/record/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | {{item.goods_name}}
12 | ¥{{item.log_price}}
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 | 暂无提现记录
22 |
23 |
--------------------------------------------------------------------------------
/pages/record/index.wxss:
--------------------------------------------------------------------------------
1 | .main{
2 | height: 100%;
3 | }
4 |
5 | .myorder1 {
6 | width: 90%;
7 | padding: 0 5%;
8 | background: #fff;
9 | margin-bottom: 30rpx;
10 | }
11 | .order-num1 {
12 | font-size: 30rpx;
13 | /* line-height: 3; */
14 | font-weight: normal;
15 | }
16 | .right {
17 | float: right;
18 | }
19 | .order-dl2 {
20 | border-top: 1px solid #f5f5f5;
21 | border-bottom: 1px solid #f5f5f5;
22 | overflow: hidden;
23 | margin-bottom: 20rpx;
24 | }
25 | .dt {
26 | margin: 20rpx 0;
27 | width: 158rpx;
28 | height: 158rpx;
29 | text-align: center;
30 | }
31 | .dt image{
32 | width: 158rpx;
33 | height: 158rpx;
34 | }
35 | .dd {
36 | width: calc(100% - 158rpx);
37 | overflow: hidden;
38 | zoom: 1;
39 | padding-top: 48rpx;
40 | display: inline-block;
41 | box-sizing: border-box;
42 | }
43 | .order-img1 {
44 | display: inline-block;
45 | width: 100%;
46 | }
47 | .img-bg {
48 | background: #f4f4f4;
49 | }
50 | .left {
51 | float: left;
52 | }
53 |
54 | .dd-left {
55 | width: 51%;
56 | }
57 | .dd-p1 {
58 | font-size: 30rpx;
59 | line-height: 1.5;
60 | overflow: hidden;
61 | white-space: nowrap;
62 | text-overflow: ellipsis;
63 | }
64 | .dd-p2 {
65 | font-size: 30rpx;
66 | line-height: 1.5;
67 | }
68 | .order-dl2 .margin-t1 {
69 | margin-top: 8rpx;
70 | }
71 | .dd-right {
72 | width: 25%;
73 | text-align: center;
74 | }
75 | .cart-dele {
76 | display: inline-block;
77 | width: 80rpx;
78 | height:50px;
79 | cursor: pointer;
80 | }
81 |
82 | .alertbox {
83 | position: fixed;
84 | z-index: 10001;
85 | width: 80%;
86 | /* width: 432px; */
87 | left: 10%;
88 | background: #fff;
89 | top: 30%;
90 | /* border-radius: 3px; */
91 | -webkit-border-radius: 3px;
92 | /* -moz-border-radius: 3px; */
93 | /* -o-border-radius: 3px; */
94 | display: block;
95 | /* display: none; */
96 | }
97 | .alert-p {
98 | font-size: 40rpx;
99 | color: #666;
100 | text-align: center;
101 | line-height: 3;
102 | }
103 | .btnbox1 {
104 | height: 80rpx;
105 | border-top: 1px solid #f0f0f0;
106 | }
107 | .cancelbtn1 {
108 | width: 50%;
109 | height: 100%;
110 | line-height: 80rpx;
111 | float: left;
112 | border-right: 1px solid #f0f0f0;
113 | -webkit-box-sizing: border-box;
114 | font-size: 36rpx;
115 | text-align: center;
116 | cursor: pointer;
117 | }
118 | .surebtn1 {
119 | width: 50%;
120 | height: 100%;
121 | line-height: 80rpx;
122 | float: left;
123 | -webkit-box-sizing: border-box;
124 | font-size: 36rpx;
125 | text-align: center;
126 | cursor: pointer;
127 | color: #AB2B2B;
128 | display: inline-block;
129 | }
130 | .btn{
131 | height: 8vh;
132 | line-height: 8vh;
133 | text-align: center;
134 | background:#ff5f19;
135 | font-size: 14px;
136 | color: #fff;
137 | }
138 | .img-center {
139 | text-align: center;
140 | }
141 | .coupon-null-img {
142 | margin: 20px auto;
143 | }
144 | .coupon-tit {
145 | color: #888;
146 | letter-spacing: 2px;
147 | font-weight: normal;
148 | font-size: 30rpx;
149 | }
150 | .coupon-title {
151 | color: #888;
152 | letter-spacing: 2px;
153 | font-weight: normal;
154 | font-size: 22rpx;
155 | }
156 | .spread-btn {
157 | width: 40%;
158 | margin: 60rpx 30%;
159 | height: 60rpx;
160 | line-height: 60rpx;
161 | }
162 |
163 | .alert-codebtn {
164 | background: #b8011a;
165 | height: 65rpx;
166 | font-size: 30rpx;
167 | color: #fff;
168 | margin-bottom: 28rpx;
169 | }
170 | .text{
171 | display: flex;
172 | align-items: center;
173 | justify-content: center;
174 | }
--------------------------------------------------------------------------------
/pages/refund/index.js:
--------------------------------------------------------------------------------
1 | // pages/coupon/index.js
2 | const app = getApp();
3 | // var curl = 'https://miniapp.shopdz.cn/';
4 | const curl = require('../../config').host;
5 | Page({
6 |
7 | /**
8 | * 页面的初始数据
9 | */
10 | data: {
11 | tabIndex:1,
12 | list:[],
13 | },
14 | tabFun(e){
15 | var self = this;
16 | self.setData({
17 | tabIndex: e.currentTarget.dataset.index
18 | })
19 | console.log(e.currentTarget.dataset.index);
20 | if (e.currentTarget.dataset.index == 1){
21 | self.not_used();
22 | } else if (e.currentTarget.dataset.index == 2){
23 | self.already_used();
24 | }
25 | },
26 | /**
27 | * 生命周期函数--监听页面加载
28 | */
29 | onLoad: function (options) {
30 | var self = this;
31 | self.not_used();
32 | },
33 | //未使用
34 | not_used:function(){
35 | var self = this;
36 | var key = wx.getStorageSync('key');
37 | wx.request({
38 | url: curl +'api.php/presales/refundlist?key='+key,
39 | method:'GET',
40 | success:function(res){
41 | if(res.data.code == 0){
42 | console.log(res);
43 | var list = res.data.data.list;
44 | self.setData({
45 | list:list,
46 | });
47 | }
48 |
49 | }
50 | })
51 | },
52 | //已使用
53 | already_used: function () {
54 | var self = this;
55 | var key = wx.getStorageSync('key');
56 | wx.request({
57 | url: curl + 'api.php/presales/returnlist?key=' + key,
58 | method: 'GET',
59 | success: function (res) {
60 | if (res.data.code == 0) {
61 | console.log(res);
62 | var list = res.data.data.list;
63 | self.setData({
64 | list: list,
65 | });
66 | }
67 |
68 | }
69 | })
70 | },
71 |
72 | /**
73 | * 生命周期函数--监听页面初次渲染完成
74 | */
75 | onReady: function () {
76 |
77 | },
78 |
79 | /**
80 | * 生命周期函数--监听页面显示
81 | */
82 | onShow: function () {
83 |
84 | },
85 |
86 | /**
87 | * 生命周期函数--监听页面隐藏
88 | */
89 | onHide: function () {
90 |
91 | },
92 |
93 | /**
94 | * 生命周期函数--监听页面卸载
95 | */
96 | onUnload: function () {
97 |
98 | },
99 |
100 | /**
101 | * 页面相关事件处理函数--监听用户下拉动作
102 | */
103 | onPullDownRefresh: function () {
104 |
105 | },
106 |
107 | /**
108 | * 页面上拉触底事件的处理函数
109 | */
110 | onReachBottom: function () {
111 |
112 | },
113 |
114 | /**
115 | * 用户点击右上角分享
116 | */
117 | onShareAppMessage: function () {
118 |
119 | }
120 | })
--------------------------------------------------------------------------------
/pages/refund/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "退款退货"
3 | }
--------------------------------------------------------------------------------
/pages/refund/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 退款单
5 |
6 |
7 | 退货单
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 | {{tabIndex==2?"退货编号:":"退款编号:"}}
16 | {{item.refund_sn}}
17 | {{item.return_sn}}
18 |
19 | 申请时间:
20 | {{item.dateline}}
21 | 订单编号:
22 | {{item.order_sn}}
23 | {{tabIndex==2?"退货金额:":"退款金额:"}}
24 | {{item.refund_amount}}
25 | {{item.return_amount}}
26 |
27 |
28 | {{item.status_text}}
29 |
30 | 查看
31 |
32 |
33 |
34 | {{item.status_text}}
35 |
36 | 查看
37 |
38 |
39 |
40 |
41 |
42 |
43 | 暂无退货
44 |
45 |
46 |
47 |
48 |
49 | 暂无退款
50 |
51 |
52 |
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/pages/refund_detail/index.js:
--------------------------------------------------------------------------------
1 | // pages/coupon/index.js
2 | const app = getApp();
3 | // var curl = 'https://miniapp.shopdz.cn/';
4 | const curl = require('../../config').host;
5 | Page({
6 |
7 | /**
8 | * 页面的初始数据
9 | */
10 | data: {
11 | tabIndex:1,
12 | list:[],
13 | data:[],
14 | data_list:[],
15 | type:null,
16 | },
17 | /**
18 | * 生命周期函数--监听页面加载
19 | */
20 | onLoad: function (options) {
21 | var self = this;
22 | var refund_sn = options.refund_sn;
23 | var type = options.type;
24 | console.log(options);
25 | if(type ==1){
26 | self.not_used(refund_sn);
27 | }else{
28 | self.already_used(refund_sn);
29 | }
30 | self.setData({
31 | type:type,
32 | })
33 | },
34 | //未使用
35 | not_used: function (refund_sn){
36 | var self = this;
37 | var key = wx.getStorageSync('key');
38 | var refund_sn = refund_sn;
39 | wx.request({
40 | url: curl + 'api.php/presales/refunddetail?key=' + key + '&refund_sn=' + refund_sn,
41 | method:'GET',
42 | success:function(res){
43 | if(res.data.code == 0){
44 | console.log(res);
45 | var list = res.data.data.goodslist;
46 | var data = res.data.data.refund;
47 | console.log(data);
48 | self.setData({
49 | list:list,
50 | data:data,
51 | });
52 | }
53 |
54 | }
55 | })
56 | },
57 | //已使用
58 | already_used: function (refund_sn) {
59 | var self = this;
60 | var key = wx.getStorageSync('key');
61 | wx.request({
62 | url: curl + 'api.php/presales/returndetail?key=' + key + '&return_sn=' + refund_sn,
63 | method: 'GET',
64 | success: function (res) {
65 | console.log(res);
66 | if (res.data.code == 0) {
67 | console.log(res);
68 | var list = res.data.data;
69 | self.setData({
70 | data_list: list,
71 | });
72 | }
73 |
74 | }
75 | })
76 | },
77 | //已失效
78 | failure: function () {
79 | var self = this;
80 | var key = wx.getStorageSync('key');
81 | wx.request({
82 | url: curl + 'api.php/coupon/lists/status/3?key=' + key,
83 | method: 'GET',
84 | success: function (res) {
85 | if (res.data.code == 0) {
86 | console.log(res);
87 | var list = res.data.data.list;
88 | self.setData({
89 | list: list,
90 | });
91 | }
92 |
93 | }
94 | })
95 | },
96 | /**
97 | * 生命周期函数--监听页面初次渲染完成
98 | */
99 | onReady: function () {
100 |
101 | },
102 |
103 | /**
104 | * 生命周期函数--监听页面显示
105 | */
106 | onShow: function () {
107 |
108 | },
109 |
110 | /**
111 | * 生命周期函数--监听页面隐藏
112 | */
113 | onHide: function () {
114 |
115 | },
116 |
117 | /**
118 | * 生命周期函数--监听页面卸载
119 | */
120 | onUnload: function () {
121 |
122 | },
123 |
124 | /**
125 | * 页面相关事件处理函数--监听用户下拉动作
126 | */
127 | onPullDownRefresh: function () {
128 |
129 | },
130 |
131 | /**
132 | * 页面上拉触底事件的处理函数
133 | */
134 | onReachBottom: function () {
135 |
136 | },
137 |
138 | /**
139 | * 用户点击右上角分享
140 | */
141 | onShareAppMessage: function () {
142 |
143 | }
144 | })
--------------------------------------------------------------------------------
/pages/refund_detail/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "退款退货"
3 | }
--------------------------------------------------------------------------------
/pages/refund_detail/index.wxml:
--------------------------------------------------------------------------------
1 |
2 | 我的退款申请
3 |
4 | 退款编号:
5 | {{data.order_sn}}
6 | 退款原因:
7 | {{data.causes_name}}
8 | 退款金额:
9 | ¥{{data.refund_amount}}
10 | 退款说明:
11 | {{data.causes}}
12 | 凭证上传:
13 |
18 |
19 |
20 |
21 | 商品信息
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | {{item.goods_name}}
30 | × {{item.goods_num}}
31 |
32 |
33 | {{item.goods_spec}}
34 | ¥ {{item.goods_price}}
35 |
36 |
37 |
38 |
39 |
40 |
41 | 商品退款处理
42 |
43 | 审核状态:
44 | {{data.status_text}}
45 | 审核备注:
46 | {{data.remark}}
47 |
48 |
49 |
50 |
51 | 我的退货申请
52 |
53 | 退货编号:
54 | {{data_list.order_sn}}
55 | 退货原因:
56 | {{data_list.causes_name}}
57 | 退货金额:
58 | ¥{{data_list.return_amount}}
59 | 退货说明:
60 | {{data_list.causes}}
61 | 凭证上传:
62 |
67 |
68 |
69 |
70 | 商品信息
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 | {{data_list.goods_name}}
79 | × {{data_list.goods_num}}
80 |
81 |
82 | {{data_list.goods_spec}}
83 | ¥ {{data_list.goods_price}}
84 |
85 |
86 |
87 |
88 |
89 |
90 | 商品退款处理
91 |
92 | 审核状态:
93 | {{data_list.status_text}}
94 | 审核备注:
95 | {{data_list.remark}}
96 |
97 |
--------------------------------------------------------------------------------
/pages/refund_detail/index.wxss:
--------------------------------------------------------------------------------
1 | page {
2 | background: rgb(238, 237, 237);
3 | }
4 | .myorder2 {
5 | width: 90%;
6 | padding: 0 5%;
7 | margin-bottom: 25rpx;
8 | background: #fff;
9 | }
10 | .refund-product-tit {
11 | font-size: 30rpx;
12 | border-bottom: 1px solid #f5f5f5;
13 | line-height: 3;
14 | font-weight: normal;
15 | }
16 | .myorder2-det {
17 | font-size: 29rpx;
18 | line-height: 1.8;
19 | overflow: hidden;
20 | zoom: 1;
21 | padding: .19rpx 0;
22 | border-bottom: 1px solid #f0f0f0;
23 | }
24 | .left {
25 | float: left;
26 | }
27 |
28 | .myorder2-det-span {
29 | width: 23%;
30 | text-align: center;
31 | }
32 | .myorder2-det-p {
33 | width: 77%;
34 | text-align: left;
35 | }
36 | .refund-img-list {
37 | width: 77%;
38 | }
39 | .con-img-list {
40 | width: 100%;
41 | overflow: hidden;
42 | zoom: 1;
43 | margin-top: 25rpx;
44 | }
45 | .refund-img-list .li {
46 | width: 30%;
47 | list-style: none;
48 | margin-right: 3%;
49 | }
50 | .con-img-list .li {
51 | float: left;
52 | width: 24%;
53 | margin-right: 1%;
54 | overflow: hidden;
55 | }
56 | .con-img-list li>img {
57 | display: inline-block;
58 | width: 100%;
59 | /* height: 100%; */
60 | cursor: pointer;
61 | vertical-align: middle;
62 | }
63 |
64 |
65 | .center_item{
66 | overflow: hidden;
67 | padding: 24rpx 0;
68 | border-bottom: 1rpx solid #F0F0F0;
69 | }
70 | .center_item:last-child{
71 | border-bottom: 0;
72 | }
73 | .center_img{
74 | width: 140rpx;
75 | height: 140rpx;
76 | overflow: hidden;
77 | }
78 | .center_img image{
79 | width: 100%;
80 | height: 100%;
81 | }
82 | .guige{
83 | width: 518rpx;
84 | padding-top: 20rpx;
85 | font-size: 26rpx;
86 | }
87 | .guige_bar{
88 | height: 50rpx;
89 | line-height: 50rpx;
90 | overflow: hidden
91 | }
92 | .footer_{
93 | padding: 24rpx 0;
94 | border-bottom: 1rpx solid #F0F0F0;
95 | }
96 | .footer_:last-child{
97 | border-bottom: 0;
98 | }
99 | .footer_bar{
100 | font-size: 26rpx;
101 | overflow: hidden;
102 | }
103 | .footer_bar .fl{
104 | line-height: 46rpx;
105 | }
--------------------------------------------------------------------------------
/pages/return_goods/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "申请退货"
3 | }
--------------------------------------------------------------------------------
/pages/return_goods/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | {{item.goods_name}}
12 | {{item.goods_spec}}
13 |
14 |
15 |
16 | 退货审核
17 | 正在退货
18 | 退货完成
19 | 拒绝退货
20 | 退货失败
21 | {{order_state_text}}
22 | 申请退货
23 | 查看退货
24 |
25 |
26 |
27 |
28 |
29 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 | {{item.goods_name}}
49 | {{item.goods_spec}}
50 |
51 |
52 | 提交
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 | {{contentCount}}/500
62 |
63 |
64 |
65 |
66 | 请点击上传图片
67 |
68 |
69 |
70 |
71 | 删除
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
--------------------------------------------------------------------------------
/pages/settlement/index.js:
--------------------------------------------------------------------------------
1 | // pages/coupon/index.js
2 | const app = getApp();
3 | // var curl = 'https://miniapp.shopdz.cn/';
4 | const curl = require('../../config').host;
5 | Page({
6 |
7 | /**
8 | * 页面的初始数据
9 | */
10 | data: {
11 | tabIndex: 1,
12 | list: [],
13 | is_display:false,
14 | id:null,
15 | member_id:null,
16 | },
17 | //获取用户所以收藏
18 | getList:function(){
19 | var self = this;
20 | var key = wx.getStorageSync('key');
21 | // var page = '1';
22 | wx.request({
23 | url: curl +'api.php/favorites/getfavorites',
24 | data:{key:key},
25 | header: {
26 | 'content-type': 'application/x-www-form-urlencoded' // 默认值
27 | },
28 | method: 'POST',
29 | success:function(res){
30 | if(res.data.code == 0){
31 | var orderlist = res.data.data.list;
32 | console.log(orderlist);
33 | self.setData({
34 | list: orderlist,
35 | });
36 | }
37 | }
38 | })
39 | },
40 | //显示删除提示框,保存数据
41 | is_display:function(e){
42 | var slef = this;
43 | var id = e.currentTarget.dataset.id;
44 | var member_id = e.currentTarget.dataset.userid;
45 | slef.setData({
46 | id:id,
47 | member_id:member_id,
48 | is_display:true,
49 | });
50 | },
51 | //隐藏删除提示框,清除保存数据
52 | cancel:function(){
53 | var slef = this;
54 | slef.setData({
55 | id: null,
56 | member_id: null,
57 | is_display:false,
58 | });
59 | },
60 | //删除收藏
61 | addressDel:function(e){
62 | var slef = this;
63 | var key = wx.getStorageSync('key');
64 | console.log(e);
65 | var fav_id = e.currentTarget.dataset.id;
66 | var member_id = e.currentTarget.dataset.userid;
67 | var data = {
68 | fav_id: fav_id,
69 | member_id: member_id,
70 | key: key,
71 | }
72 | wx.showModal({
73 | title: '要删除商品收藏?',
74 | cancelText: "取消", //默认是“取消”
75 | confirmText: "确定", //默认是“确定”
76 | success(res) {
77 | if (res.cancel) {
78 | console.log('隐藏');
79 | }else{
80 | wx.request({
81 | url: curl + 'api.php/favorites/delfavorites',
82 | data: data,
83 | header: {
84 | 'content-type': 'application/x-www-form-urlencoded' // 默认值
85 | },
86 | method: 'POST',
87 | success: function (res) {
88 | slef.setData({
89 | id: null,
90 | member_id: null,
91 | is_display: false,
92 | })
93 | slef.getList();
94 | }
95 | })
96 | }
97 | }
98 | })
99 | },
100 | /**
101 | * 生命周期函数--监听页面加载
102 | */
103 | onLoad: function (options) {
104 | this.getList()
105 | },
106 | //点击随便逛逛返回首页
107 | jump:function(){
108 | wx.switchTab({
109 | url: '../index/index',
110 | });
111 | },
112 | /**
113 | * 生命周期函数--监听页面初次渲染完成
114 | */
115 | onReady: function () {
116 |
117 | },
118 |
119 | /**
120 | * 生命周期函数--监听页面显示
121 | */
122 | onShow: function () {
123 |
124 | },
125 |
126 | /**
127 | * 生命周期函数--监听页面隐藏
128 | */
129 | onHide: function () {
130 |
131 | },
132 |
133 | /**
134 | * 生命周期函数--监听页面卸载
135 | */
136 | onUnload: function () {
137 |
138 | },
139 |
140 | /**
141 | * 页面相关事件处理函数--监听用户下拉动作
142 | */
143 | onPullDownRefresh: function () {
144 |
145 | },
146 |
147 | /**
148 | * 页面上拉触底事件的处理函数
149 | */
150 | onReachBottom: function () {
151 |
152 | },
153 |
154 | /**
155 | * 用户点击右上角分享
156 | */
157 | onShareAppMessage: function () {
158 |
159 | }
160 | })
--------------------------------------------------------------------------------
/pages/settlement/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "我的收藏"
3 | }
--------------------------------------------------------------------------------
/pages/settlement/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | {{item.goods_name}}
12 | ¥{{item.log_price}}
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 | 您还没有关注任何商品
28 | 可以去看看哪些商品值得收藏
29 |
30 |
31 |
32 | 随便逛逛
33 |
34 |
35 |
36 |
37 |
38 | 要删除商品收藏?
39 |
40 | 取消
41 | 确定
42 |
43 |
--------------------------------------------------------------------------------
/pages/settlement/index.wxss:
--------------------------------------------------------------------------------
1 | .main{
2 | height: 100%;
3 | }
4 |
5 | .myorder1 {
6 | width: 90%;
7 | padding: 0 5%;
8 | background: #fff;
9 | margin-bottom: 30rpx;
10 | }
11 | .order-num1 {
12 | font-size: 30rpx;
13 | /* line-height: 3; */
14 | font-weight: normal;
15 | }
16 | .right {
17 | float: right;
18 | }
19 | .order-dl2 {
20 | border-top: 1px solid #f5f5f5;
21 | border-bottom: 1px solid #f5f5f5;
22 | overflow: hidden;
23 | margin-bottom: 20rpx;
24 | }
25 | .dt {
26 | margin: 20rpx 0;
27 | width: 158rpx;
28 | height: 158rpx;
29 | text-align: center;
30 | }
31 | .dt image{
32 | width: 158rpx;
33 | height: 158rpx;
34 | }
35 | .dd {
36 | width: calc(100% - 158rpx);
37 | overflow: hidden;
38 | zoom: 1;
39 | margin-left:20rpx;
40 | padding-top: 48rpx;
41 | display: inline-block;
42 | box-sizing: border-box;
43 | }
44 | .order-img1 {
45 | display: inline-block;
46 | width: 100%;
47 | }
48 | .img-bg {
49 | background: #f4f4f4;
50 | }
51 | .left {
52 | float: left;
53 | }
54 |
55 | .dd-left {
56 | width: 48%;
57 | }
58 | .dd-p1 {
59 | font-size: 30rpx;
60 | line-height: 1.5;
61 | overflow: hidden;
62 | white-space: nowrap;
63 | text-overflow: ellipsis;
64 | }
65 | .dd-p2 {
66 | font-size: 30rpx;
67 | line-height: 1.5;
68 | }
69 | .order-dl2 .margin-t1 {
70 | margin-top: 8rpx;
71 | }
72 | .dd-right {
73 | width: 25%;
74 | text-align: center;
75 | }
76 | .cart-dele {
77 | display: inline-block;
78 | width: 80rpx;
79 | height:50px;
80 | cursor: pointer;
81 | }
82 |
83 | .alertbox {
84 | position: fixed;
85 | z-index: 10001;
86 | width: 80%;
87 | /* width: 432px; */
88 | left: 10%;
89 | background: #fff;
90 | top: 30%;
91 | /* border-radius: 3px; */
92 | -webkit-border-radius: 3px;
93 | /* -moz-border-radius: 3px; */
94 | /* -o-border-radius: 3px; */
95 | display: block;
96 | /* display: none; */
97 | }
98 | .alert-p {
99 | font-size: 40rpx;
100 | color: #666;
101 | text-align: center;
102 | line-height: 3;
103 | }
104 | .btnbox1 {
105 | height: 80rpx;
106 | border-top: 1px solid #f0f0f0;
107 | }
108 | .cancelbtn1 {
109 | width: 50%;
110 | height: 100%;
111 | line-height: 80rpx;
112 | float: left;
113 | border-right: 1px solid #f0f0f0;
114 | -webkit-box-sizing: border-box;
115 | font-size: 36rpx;
116 | text-align: center;
117 | cursor: pointer;
118 | }
119 | .surebtn1 {
120 | width: 50%;
121 | height: 100%;
122 | line-height: 80rpx;
123 | float: left;
124 | -webkit-box-sizing: border-box;
125 | font-size: 36rpx;
126 | text-align: center;
127 | cursor: pointer;
128 | color: #AB2B2B;
129 | display: inline-block;
130 | }
131 | .btn{
132 | height: 8vh;
133 | line-height: 8vh;
134 | text-align: center;
135 | background:#ff5f19;
136 | font-size: 14px;
137 | color: #fff;
138 | }
139 | .img-center {
140 | text-align: center;
141 | }
142 | .coupon-null-img {
143 | margin: 20px auto;
144 | }
145 | .coupon-tit {
146 | color: #888;
147 | letter-spacing: 2px;
148 | font-weight: normal;
149 | font-size: 30rpx;
150 | }
151 | .coupon-title {
152 | color: #888;
153 | letter-spacing: 2px;
154 | font-weight: normal;
155 | font-size: 22rpx;
156 | }
157 | .spread-btn {
158 | width: 40%;
159 | margin: 60rpx 30%;
160 | height: 60rpx;
161 | line-height: 60rpx;
162 | }
163 |
164 | .alert-codebtn {
165 | background: #b8011a;
166 | height: 65rpx;
167 | font-size: 30rpx;
168 | color: #fff;
169 | margin-bottom: 28rpx;
170 | }
171 | .text{
172 | display: flex;
173 | align-items: center;
174 | justify-content: center;
175 | }
--------------------------------------------------------------------------------
/pages/user/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "我的"
3 | }
--------------------------------------------------------------------------------
/pages/withdrawaccount/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "提现"
3 | }
--------------------------------------------------------------------------------
/pages/withdrawaccount/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 可提现金额
6 | {{account}}
7 |
8 |
9 | 本次提现
10 |
11 |
12 |
13 | 微信钱包
14 | 点击更换
15 |
16 |
17 |
18 | 提现说明
19 | 保存
20 |
38 |
39 |
40 |
41 | 返回
42 |
--------------------------------------------------------------------------------
/pages/withdrawaccount/index.wxss:
--------------------------------------------------------------------------------
1 | @import "../../plugins/wxParse/wxParse.wxss";
2 | .main{
3 |
4 | height: 100vh;
5 | background: #e8e9e8;
6 | }
7 | .item{
8 | display: flex;
9 | border-bottom: 1px solid #d8d8d8;
10 | line-height: 40px;
11 | padding: 15px 0 0 0;
12 |
13 | }
14 | .address-default {
15 | height: 60rpx;
16 | background: #fafafa;
17 | line-height: 1.2;
18 | text-align: center;
19 | }
20 | .address-check {
21 | margin: 1rpx 0;
22 | display: inline-block;
23 | vertical-align: middle;
24 | }
25 | .check-box {
26 | position: relative;
27 | background: url(http://shopdz.shopdz.cn/wap/img/cb-selected.png) no-repeat top center;
28 | background-size: 100% 100%;
29 | width: 40rpx;
30 | height: 40rpx;
31 | /* margin: 60rpx auto; */
32 | }
33 | .checks-box {
34 | position: relative;
35 | background: url(http://shopdz.shopdz.cn/wap/img/cb-normal.png) no-repeat top center;
36 | /* /img/cb-normal.png */
37 | background-size: 100% 100%;
38 | width: 40rpx;
39 | height: 40rpx;
40 | /* margin: 60rpx auto; */
41 | }
42 | .check-box input[type=checkbox] {
43 | position: absolute;
44 | top: 0;
45 | left: 0;
46 | width: 10px;
47 | height: 10px;
48 | z-index: 89;
49 | opacity: 0;
50 | }
51 | input[type="checkbox"] {
52 | -webkit-appearance: none;
53 | }
54 | .remind4 {
55 | color: #999;
56 | font-size: 30rpx;
57 | display: inline-block;
58 | vertical-align: middle;
59 | }
60 | .data{
61 | background: #fff;
62 | padding: 0 20px;
63 | }
64 | .item text {
65 | flex: 0 1 30%;
66 | font-size: 14px;
67 | color: #333333;
68 | }
69 |
70 | .item input{
71 | flex: 1 1 auto;
72 | font-size: 14px;
73 | color: #333333;
74 | line-height: 40px;
75 | height: 40px;
76 | }
77 |
78 | .item .code{
79 | flex: 0 1 25%;
80 | font-size: 12px;
81 | color:#ff5f19;
82 | border-left: 1px solid #d8d8d8;
83 | text-align: center;
84 | height: 24px;
85 | margin: 8px 0;
86 | line-height: 24px;
87 | }
88 |
89 | .item .icon{
90 | flex: 0 1 10%;
91 | text-align: right;
92 | }
93 |
94 | .item picker{
95 | flex: 1 1 auto;
96 | font-size:16px;
97 | }
98 |
99 | .item .icon image{
100 | width:8px;
101 | height:15px;
102 | }
103 |
104 | .text{
105 | font-size: 12px;
106 | color: #999999;
107 | background: #fff;
108 | padding: 10px 20px;
109 | }
110 |
111 | .btn{
112 | line-height: 46px;
113 | background: #E5E5E5;
114 | font-size: 18px;
115 | color: #FFFFFF;
116 | text-align:center;
117 | margin:50px 30px;
118 | border-radius:2px;
119 | }
120 | .active{
121 | background:#ff5f19;
122 | }
123 | .verification {
124 | /* position: absolute; */
125 | top: .25rpx;
126 | right: 25rpx;
127 | display: inline-block;
128 | width: 250rpx;
129 | height: 70rpx;
130 | border: 1px solid #ccc;
131 | }
132 | .send-out {
133 | /* position: absolute; */
134 | top: 25rpx;
135 | right: 25rpx;
136 | width: 250rpx;
137 | height: 60rpx;
138 | font-size: 29rpx;
139 | /* background: #ccc; */
140 | color: #fff;
141 | line-height: 60rpx;
142 | text-align: center;
143 | letter-spacing: 1px;
144 | /* border-radius: 5px; */
145 | /* -webkit-border-radius: 5px; */
146 | /* -moz-border-radius: 5px;
147 | -o-border-radius: 5px; */
148 | }
149 | .send-out-bg {
150 | background: #ab2b2b;
151 | cursor: pointer;
152 | }
153 |
154 | .time{
155 | background-color: #ccc;
156 | color: #fff;
157 | }
158 | .time .s{
159 | display: inline-block;
160 | color: #AB2B2B;
161 | }
162 | .item .icon{
163 | flex: 0 1 10%;
164 | text-align: right;
165 | }
166 |
167 | .item picker{
168 | flex: 1 1 auto;
169 | font-size:16px;
170 | }
171 |
172 | .item .icon image{
173 | width:8px;
174 | height:15px;
175 | }
176 | .item picker{
177 | flex: 1 1 auto;
178 | font-size:16px;
179 | }
180 |
181 |
182 | .item.more{
183 | border: 0;
184 | }
185 | .item.more text{
186 | width: 40%!important;
187 | }
188 | .more .tab{
189 | float: right;
190 | width: 70%;
191 | text-align: right;
192 | padding-right: 50rpx;
193 | font-size: 14px;
194 | color: #999;
195 | background: url('http://shopdz.shopdz.cn/wap/img/jt-r.png') no-repeat right center/33rpx 33rpx;
196 | }
197 | .tixian{
198 | width: 750rpx;
199 | height: 110rpx;
200 | line-height: 110rpx;
201 | background-color: #FAFAFA;
202 | text-align: center;
203 | font-size: 14px;
204 | color: #999;
205 | border-top: 30rpx solid #E8E9E8;
206 | }
--------------------------------------------------------------------------------
/pages/yijian/yijian.js:
--------------------------------------------------------------------------------
1 | const app = getApp();
2 | // var curl = 'https://miniapp.shopdz.cn/';
3 | const curl = require('../../config').host;
4 | // pages/yijian/yijian.js
5 | Page({
6 |
7 | /**
8 | * 页面的初始数据
9 | */
10 | data: {
11 | name:null,
12 | contentCount: 0,
13 | order_message:null,
14 | },
15 |
16 | //姓名
17 | bindKeyName: function (e) {
18 | this.setData({
19 | name: e.detail.value
20 | })
21 | },
22 | //实时获取textarea里的内容
23 | bindTextAreaBlur: function (e) {
24 | var contentCount = e.detail.value.length
25 | if (contentCount.length == 500){
26 | wx.showToast({
27 | title: '文字到五百了,请削减少量文字在提交。',
28 | icon: 'none',
29 | duration: 2000
30 | });
31 | return;
32 | }
33 | this.setData({
34 | order_message: e.detail.value,
35 | contentCount: contentCount,
36 | })
37 | },
38 |
39 | feedback:function(){
40 | var self = this;
41 | var phone = self.data.name;
42 | var order_message = self.data.order_message;
43 | if (!order_message){
44 | wx.showToast({
45 | title: '反馈意见不能为空',
46 | icon: 'none',
47 | duration: 2000
48 | });
49 | return;
50 | }
51 | if (order_message.length > 500){
52 | wx.showToast({
53 | title: '反馈意见字数太多了,请削减少量文字,在提交!',
54 | icon: 'none',
55 | duration: 2000
56 | });
57 | return;
58 | }
59 | var key = wx.getStorageSync('key');
60 | wx.request({
61 | url: curl +'api.php/FeedBack/feedback',
62 | data: { key: key, phone: phone, message: order_message},
63 | method:'GET',
64 | success:function(res){
65 | if(res.data.code == 0){
66 | wx.showToast({
67 | title: '意见反馈成功',
68 | icon: 'success',
69 | duration: 2000
70 | });
71 | setTimeout(function () {
72 | wx.switchTab({
73 | url: '../user/index',
74 | });
75 | }, 2000);
76 | }else{
77 | wx.showToast({
78 | title: res.data.msg,
79 | icon: 'none',
80 | duration: 2000
81 | });
82 | }
83 | }
84 | })
85 | },
86 | /**
87 | * 生命周期函数--监听页面加载
88 | */
89 | onLoad: function (options) {
90 |
91 | },
92 |
93 | /**
94 | * 生命周期函数--监听页面初次渲染完成
95 | */
96 | onReady: function () {
97 |
98 | },
99 |
100 | /**
101 | * 生命周期函数--监听页面显示
102 | */
103 | onShow: function () {
104 |
105 | },
106 |
107 | /**
108 | * 生命周期函数--监听页面隐藏
109 | */
110 | onHide: function () {
111 |
112 | },
113 |
114 | /**
115 | * 生命周期函数--监听页面卸载
116 | */
117 | onUnload: function () {
118 |
119 | },
120 |
121 | /**
122 | * 页面相关事件处理函数--监听用户下拉动作
123 | */
124 | onPullDownRefresh: function () {
125 |
126 | },
127 |
128 | /**
129 | * 页面上拉触底事件的处理函数
130 | */
131 | onReachBottom: function () {
132 |
133 | },
134 |
135 | /**
136 | * 用户点击右上角分享
137 | */
138 | onShareAppMessage: function () {
139 |
140 | }
141 | })
--------------------------------------------------------------------------------
/pages/yijian/yijian.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "意见反馈",
3 | "disableScroll": true
4 | }
--------------------------------------------------------------------------------
/pages/yijian/yijian.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/pages/yijian/yijian.wxss:
--------------------------------------------------------------------------------
1 | /* pages/yijian/yijian.wxss */
2 | .page{
3 | border-top: 1rpx solid #F0F0F0;
4 | padding-bottom: 108rpx;
5 | }
6 | .qidai{
7 | width: 680rpx;
8 | height: 300rpx;
9 | border: 1rpx solid rgb(124, 124, 124);
10 | font-size: 28rpx;
11 | margin: 20rpx auto 80rpx;
12 | padding: 20rpx;
13 | box-sizing: border-box;
14 | position: relative;
15 | }
16 | .sheng{
17 | position: absolute;
18 | bottom:14rpx;
19 | right: 20rpx;
20 | font-size: 24rpx;
21 | color: #999;
22 | }
23 | .tel_tel{
24 | font-size: 28rpx;
25 | margin: 0 35rpx 0;
26 | line-height: 38rpx;
27 | border-bottom: 1rpx solid rgb(124, 124, 124);
28 | }
29 | ._tijiao{
30 | position: fixed;
31 | bottom: 0;
32 | left: 0;
33 | width: 100%;
34 | height: 108rpx;
35 | line-height: 108rpx;
36 | background-color: #AB2B2B;
37 | text-align: center;
38 | font-size: 28rpx;
39 | color: #fff;
40 | border-radius: 0
41 | }
--------------------------------------------------------------------------------
/project.config.json:
--------------------------------------------------------------------------------
1 | {
2 | "description": "项目配置文件。",
3 | "packOptions": {
4 | "ignore": []
5 | },
6 | "setting": {
7 | "urlCheck": true,
8 | "es6": true,
9 | "postcss": true,
10 | "minified": true,
11 | "newFeature": true,
12 | "autoAudits": false,
13 | "checkInvalidKey": true,
14 | "checkSiteMap": true,
15 | "uploadWithSourceMap": true,
16 | "babelSetting": {
17 | "ignore": [],
18 | "disablePlugins": [],
19 | "outputPath": ""
20 | }
21 | },
22 | "compileType": "miniprogram",
23 | "libVersion": "2.7.4",
24 | "appid": "wxe16254750a10c454",
25 | "projectname": "shopdz",
26 | "isGameTourist": false,
27 | "simulatorType": "wechat",
28 | "simulatorPluginLibVersion": {},
29 | "condition": {
30 | "search": {
31 | "current": -1,
32 | "list": []
33 | },
34 | "conversation": {
35 | "current": -1,
36 | "list": []
37 | },
38 | "plugin": {
39 | "current": -1,
40 | "list": []
41 | },
42 | "game": {
43 | "currentL": -1,
44 | "list": []
45 | },
46 | "miniprogram": {
47 | "current": 4,
48 | "list": [
49 | {
50 | "id": -1,
51 | "name": "订单详情",
52 | "pathName": "pages/detail/detail",
53 | "query": "",
54 | "scene": null
55 | },
56 | {
57 | "id": 1,
58 | "name": "订单",
59 | "pathName": "pages/orderDetails/index",
60 | "query": "",
61 | "scene": null
62 | },
63 | {
64 | "id": -1,
65 | "name": "优惠券",
66 | "pathName": "pages/coupon_all/index",
67 | "query": "",
68 | "scene": null
69 | },
70 | {
71 | "id": -1,
72 | "name": "意见反馈",
73 | "pathName": "pages/yijian/yijian",
74 | "query": "",
75 | "scene": null
76 | },
77 | {
78 | "id": -1,
79 | "name": "提现",
80 | "pathName": "pages/withdrawaccount/index",
81 | "scene": null
82 | }
83 | ]
84 | }
85 | }
86 | }
--------------------------------------------------------------------------------
/sitemap.json:
--------------------------------------------------------------------------------
1 | {
2 | "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
3 | "rules": [{
4 | "action": "allow",
5 | "page": "*"
6 | }]
7 | }
--------------------------------------------------------------------------------
/utils/common.util.js:
--------------------------------------------------------------------------------
1 | import objectUtil from './object.util'
2 |
3 | const formatNumber = (n) => {
4 | n = n.toString()
5 | return n[1] ? n : '0' + n
6 | }
7 |
8 | const formatTime = (date) => {
9 | return formatDate(date) + ' ' + [
10 | date.getHours(),
11 | date.getMinutes(),
12 | date.getSeconds()
13 | ].map(formatNumber).join(':')
14 | }
15 |
16 | const formatDate = (date) => {
17 | return [
18 | date.getFullYear(),
19 | date.getMonth() + 1,
20 | date.getDate()
21 | ].map(formatNumber).join('-')
22 | }
23 |
24 | const $init = (page) => {
25 | page.$data = objectUtil.$copy(page.data, true)
26 | }
27 |
28 | const $digest = (page) => {
29 | let data = page.data
30 | let $data = page.$data
31 | let ready2set = {}
32 |
33 | for (let k in data) {
34 | if (!objectUtil.$isEqual(data[k], $data[k])) {
35 | ready2set[k] = data[k]
36 | $data[k] = objectUtil.$copy(data[k], true)
37 | }
38 | }
39 |
40 | if (Object.keys(ready2set).length) {
41 | page.setData(ready2set)
42 | }
43 | }
44 |
45 | module.exports = {
46 | formatDate,
47 | formatTime,
48 | $init,
49 | $digest
50 | }
51 |
--------------------------------------------------------------------------------
/utils/promise.util.js:
--------------------------------------------------------------------------------
1 | /**
2 | * 将wx的callback形式的API转换成支持Promise的形式
3 | */
4 | module.exports = {
5 |
6 | promisify: api => {
7 | return (options, ...params) => {
8 | return new Promise((resolve, reject) => {
9 | const extras = {
10 | success: resolve,
11 | fail: reject
12 | }
13 | api({ ...options, ...extras }, ...params)
14 | })
15 | }
16 | }
17 |
18 | }
--------------------------------------------------------------------------------
/utils/util.js:
--------------------------------------------------------------------------------
1 | const formatTime = date => {
2 | const year = date.getFullYear()
3 | const month = date.getMonth() + 1
4 | const day = date.getDate()
5 | const hour = date.getHours()
6 | const minute = date.getMinutes()
7 | const second = date.getSeconds()
8 |
9 | return [year, month, day].map(formatNumber).join('/') + ' ' + [hour, minute, second].map(formatNumber).join(':')
10 | }
11 |
12 | const formatNumber = n => {
13 | n = n.toString()
14 | return n[1] ? n : '0' + n
15 | }
16 |
17 | module.exports = {
18 | formatTime: formatTime
19 | }
20 |
--------------------------------------------------------------------------------