├── 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 |