├── README.md
└── communityBuying
├── .DS_Store
├── app.js
├── app.json
├── app.wxss
├── class
├── addressActions.js
├── cartActions.js
├── orderActions.js
├── pageControl.js
├── posterActions.js
├── userLoginActions.js
├── userMethods.js
└── utilActions.js
├── components
├── .DS_Store
├── alertingTips
│ ├── alertingTips.js
│ ├── alertingTips.json
│ ├── alertingTips.wxml
│ └── alertingTips.wxss
├── authorize
│ ├── authorize.js
│ ├── authorize.json
│ ├── authorize.wxml
│ └── authorize.wxss
├── comfirmTips
│ ├── comfirmTips.js
│ ├── comfirmTips.json
│ ├── comfirmTips.wxml
│ └── comfirmTips.wxss
├── emptyTips
│ ├── emptyTips.js
│ ├── emptyTips.json
│ ├── emptyTips.wxml
│ └── emptyTips.wxss
├── flashSaleItem
│ ├── flashSaleItem.js
│ ├── flashSaleItem.json
│ ├── flashSaleItem.wxml
│ └── flashSaleItem.wxss
├── footerNav
│ ├── footerNav.js
│ ├── footerNav.json
│ ├── footerNav.wxml
│ └── footerNav.wxss
├── guessLike
│ ├── guessLike.js
│ ├── guessLike.json
│ ├── guessLike.wxml
│ └── guessLike.wxss
├── loadMore
│ ├── loadMore.js
│ ├── loadMore.json
│ ├── loadMore.wxml
│ └── loadMore.wxss
├── naviBackBtn
│ ├── naviBackBtn.js
│ ├── naviBackBtn.json
│ ├── naviBackBtn.wxml
│ └── naviBackBtn.wxss
├── packageItem
│ ├── packageItem.js
│ ├── packageItem.json
│ ├── packageItem.wxml
│ └── packageItem.wxss
├── packageItemMe
│ ├── packageItemMe.js
│ ├── packageItemMe.json
│ ├── packageItemMe.wxml
│ └── packageItemMe.wxss
├── rushBuyingItem
│ ├── rushBuyingItem.js
│ ├── rushBuyingItem.json
│ ├── rushBuyingItem.wxml
│ └── rushBuyingItem.wxss
├── skeletonScreen
│ ├── skeletonScreen.js
│ ├── skeletonScreen.json
│ ├── skeletonScreen.wxml
│ └── skeletonScreen.wxss
└── swiperItems
│ ├── swiperItems.js
│ ├── swiperItems.json
│ ├── swiperItems.wxml
│ └── swiperItems.wxss
├── config
├── constant.js
└── env.js
├── eventType.js
├── imgs
├── .DS_Store
├── Shotgun-icon.png
├── arrow_up.svg
├── center-bg.png
├── center-contact.png
├── center-pocket.png
├── center-recruit.png
├── check-active.png
├── check-default.png
├── delivery.png
├── detail-bg.png
├── details-distribution.png
├── distribution.png
├── icon-add-active.png
├── icon-add-cart-black.png
├── icon-add-picture-default.png
├── icon-address-active.png
├── icon-apply-fail.png
├── icon-apply-intro-title-bg.png
├── icon-apply-looking.png
├── icon-apply-success.png
├── icon-arrive-time-oclock.png
├── icon-arrow-address-right.png
├── icon-arrow-bottom-black.png
├── icon-arrow-bottom.png
├── icon-arrow-circle-default.png
├── icon-arrow-community-right.png
├── icon-arrow-default-bg.png
├── icon-arrow-default.png
├── icon-arrow-top.png
├── icon-arrow-white.png
├── icon-booking-arrive-active.png
├── icon-booking-arrive-default.png
├── icon-booking-deliver-active.png
├── icon-booking-deliver-default.png
├── icon-booking-end-active.png
├── icon-booking-end-default.png
├── icon-booking-start-active.png
├── icon-booking-start-default.png
├── icon-buyer-address-tips.png
├── icon-call-active.png
├── icon-call-yellow.png
├── icon-cancelled.png
├── icon-car-right.png
├── icon-card-active.png
├── icon-cart-active.png
├── icon-cart-default.png
├── icon-cart-empty.png
├── icon-check-active.png
├── icon-check-default.png
├── icon-clock-default.png
├── icon-clock-tips.png
├── icon-close-default.png
├── icon-close-delivery-code.png
├── icon-close-new.png
├── icon-close-package-shadow.png
├── icon-community-address.png
├── icon-community-empty.png
├── icon-completed.png
├── icon-customer-active.png
├── icon-delete-picture-default.png
├── icon-empty-package.png
├── icon-fail-default.png
├── icon-flash-item-one-tips.png
├── icon-flash-sale-price.png
├── icon-flash-sale.png
├── icon-group-active.png
├── icon-group-default.png
├── icon-home-active.png
├── icon-home-bg-left.png
├── icon-home-bg-right.png
├── icon-home-default.png
├── icon-home-shopping.png
├── icon-index-top-bg.png
├── icon-location-default.png
├── icon-location-empty.png
├── icon-location-not-allow.png
├── icon-location-oriange.png
├── icon-location-red.png
├── icon-location-tips-red.png
├── icon-logo-big.png
├── icon-logo-circle.png
├── icon-logo-share.png
├── icon-logo.png
├── icon-merchant-logo.png
├── icon-moment-active.png
├── icon-my-share-bg.png
├── icon-new-user-logo.png
├── icon-new-user-shadow.png
├── icon-obligations.png
├── icon-order-cancle.png
├── icon-order-empty.png
├── icon-order-me-empty.png
├── icon-order-payment-active.png
├── icon-order-receive.png
├── icon-order-sales-active.png
├── icon-order-send-active.png
├── icon-order-success.png
├── icon-order-time-out.png
├── icon-paid.png
├── icon-pay-bg.png
├── icon-pay-wechat.png
├── icon-phone-active.png
├── icon-pro-buyer-more.png
├── icon-pro-high-tips.png
├── icon-pro-maohao.png
├── icon-red-package-active.png
├── icon-red-package-used.png
├── icon-red-package.png
├── icon-rule-default.png
├── icon-search-active.png
├── icon-search-black.png
├── icon-search-default.png
├── icon-share-active.png
├── icon-share-default.png
├── icon-share-new.png
├── icon-share-order-btn.png
├── icon-share-package.png
├── icon-share-poster-bg.png
├── icon-shopper-in-tips.png
├── icon-special-bg.png
├── icon-special-price-bg.png
├── icon-take delivery.png
├── icon-time-intro.png
├── icon-trangle-left-black.png
├── icon-user-active.png
├── icon-user-avatar-default.png
├── icon-user-default.png
├── icon-user-sale-bg.png
├── icon-wechat-active.png
├── icon-withDraw-success.png
├── introduction.png
├── jcon-owner-office-bg.png
├── like-car-icon.png
├── like-icon.png
├── needAuthorize-bg.png
├── needAuthorize-logo.png
├── no-order.png
├── payments.png
├── search-nodata.png
├── share-package-bg.png
├── share-package-desc-shucai.png
├── share-package-money-max.png
├── user-right.png
└── weixin.png
├── page
├── .DS_Store
├── canvasTest
│ ├── canvasTest.js
│ ├── canvasTest.json
│ ├── canvasTest.wxml
│ └── canvasTest.wxss
├── cart
│ ├── cart.js
│ ├── cart.json
│ ├── cart.wxml
│ ├── cart.wxss
│ └── data.js
├── groupBuying
│ ├── data.js
│ ├── groupBuying.js
│ ├── groupBuying.json
│ ├── groupBuying.wxml
│ └── groupBuying.wxss
├── index
│ ├── .DS_Store
│ └── pages
│ │ ├── .DS_Store
│ │ ├── activityPage
│ │ ├── activityPage.js
│ │ ├── activityPage.json
│ │ ├── activityPage.wxml
│ │ └── activityPage.wxss
│ │ ├── communitySearch
│ │ ├── communitySearch.js
│ │ ├── communitySearch.json
│ │ ├── communitySearch.wxml
│ │ ├── communitySearch.wxss
│ │ └── data.js
│ │ ├── compareCommunity
│ │ ├── compareCommunity.js
│ │ ├── compareCommunity.json
│ │ ├── compareCommunity.wxml
│ │ ├── compareCommunity.wxss
│ │ └── data.js
│ │ ├── flashSaleList
│ │ ├── .DS_Store
│ │ ├── data.js
│ │ ├── flashSaleList.js
│ │ ├── flashSaleList.json
│ │ ├── flashSaleList.wxml
│ │ └── flashSaleList.wxss
│ │ ├── location
│ │ ├── data.js
│ │ ├── location.js
│ │ ├── location.json
│ │ ├── location.wxml
│ │ └── location.wxss
│ │ ├── locationCity
│ │ ├── data.js
│ │ ├── locationCity.js
│ │ ├── locationCity.json
│ │ ├── locationCity.wxml
│ │ └── locationCity.wxss
│ │ └── searchPage
│ │ ├── data.js
│ │ ├── searchPage.js
│ │ ├── searchPage.json
│ │ ├── searchPage.wxml
│ │ └── searchPage.wxss
├── pickUpPoint
│ ├── data.js
│ ├── pickUpPoint.js
│ ├── pickUpPoint.json
│ ├── pickUpPoint.wxml
│ └── pickUpPoint.wxss
├── productDetail
│ ├── data.js
│ ├── productDetail.js
│ ├── productDetail.json
│ ├── productDetail.wxml
│ └── productDetail.wxss
├── purchase
│ ├── data.js
│ ├── purchase.js
│ ├── purchase.json
│ ├── purchase.wxml
│ └── purchase.wxss
├── tabBar
│ ├── .DS_Store
│ ├── index
│ │ ├── data.js
│ │ ├── index.js
│ │ ├── index.json
│ │ ├── index.wxml
│ │ └── index.wxss
│ └── userCenter
│ │ ├── data.js
│ │ ├── userCenter.js
│ │ ├── userCenter.json
│ │ ├── userCenter.wxml
│ │ └── userCenter.wxss
└── userCenter
│ ├── .DS_Store
│ └── pages
│ ├── .DS_Store
│ ├── addressEdit
│ ├── addressEdit.js
│ ├── addressEdit.json
│ ├── addressEdit.wxml
│ ├── addressEdit.wxss
│ └── data.js
│ ├── addressList
│ ├── addressList.js
│ ├── addressList.json
│ ├── addressList.wxml
│ ├── addressList.wxss
│ └── data.js
│ ├── applyIntroducePage
│ ├── applyIntroducePage.js
│ ├── applyIntroducePage.json
│ ├── applyIntroducePage.wxml
│ └── applyIntroducePage.wxss
│ ├── applyPage
│ ├── applyPage.js
│ ├── applyPage.json
│ ├── applyPage.wxml
│ ├── applyPage.wxss
│ └── data.js
│ ├── canvasTest
│ ├── canvasTest.js
│ ├── canvasTest.json
│ ├── canvasTest.wxml
│ └── canvasTest.wxss
│ ├── closeShop
│ ├── closeShop.js
│ ├── closeShop.json
│ ├── closeShop.wxml
│ ├── closeShop.wxss
│ └── data.js
│ ├── debug
│ ├── data.js
│ ├── debug.js
│ ├── debug.json
│ ├── debug.wxml
│ └── debug.wxss
│ ├── invitePage
│ ├── data.js
│ ├── invitePage.js
│ ├── invitePage.json
│ ├── invitePage.wxml
│ └── invitePage.wxss
│ ├── login
│ ├── data.js
│ ├── login.js
│ ├── login.json
│ ├── login.wxml
│ └── login.wxss
│ ├── logistics
│ ├── logistics.js
│ ├── logistics.json
│ ├── logistics.wxml
│ └── logistics.wxss
│ ├── orderDetail
│ ├── data.js
│ ├── orderDetail.js
│ ├── orderDetail.json
│ ├── orderDetail.wxml
│ └── orderDetail.wxss
│ ├── orderList
│ ├── data.js
│ ├── orderList.js
│ ├── orderList.json
│ ├── orderList.wxml
│ └── orderList.wxss
│ ├── redPackage
│ ├── data.js
│ ├── redPackage.js
│ ├── redPackage.json
│ ├── redPackage.wxml
│ └── redPackage.wxss
│ ├── returnDetailPage
│ ├── data.js
│ ├── returnDetailPage.js
│ ├── returnDetailPage.json
│ ├── returnDetailPage.wxml
│ └── returnDetailPage.wxss
│ ├── returnPage
│ ├── data.js
│ ├── returnPage.js
│ ├── returnPage.json
│ ├── returnPage.wxml
│ └── returnPage.wxss
│ ├── saleData
│ ├── data.js
│ ├── saleData.js
│ ├── saleData.json
│ ├── saleData.wxml
│ └── saleData.wxss
│ ├── saleOrderList
│ ├── .DS_Store
│ ├── data.js
│ ├── saleOrderList.js
│ ├── saleOrderList.json
│ ├── saleOrderList.wxml
│ └── saleOrderList.wxss
│ ├── sellerInfo
│ ├── data.js
│ ├── sellerInfo.js
│ ├── sellerInfo.json
│ ├── sellerInfo.wxml
│ └── sellerInfo.wxss
│ ├── sharePackage
│ ├── data.js
│ ├── sharePackage.js
│ ├── sharePackage.json
│ ├── sharePackage.wxml
│ └── sharePackage.wxss
│ ├── withdrawIntroPage
│ ├── withdrawIntroPage.js
│ ├── withdrawIntroPage.json
│ ├── withdrawIntroPage.wxml
│ └── withdrawIntroPage.wxss
│ └── withdrawPage
│ ├── data.js
│ ├── withdrawPage.js
│ ├── withdrawPage.json
│ ├── withdrawPage.wxml
│ └── withdrawPage.wxss
├── project.config.json
├── sitemap.json
├── style
├── .DS_Store
└── font
│ ├── .DS_Store
│ └── iconfont.wxss
└── utils
├── Eventa.js
├── event.js
├── filter.wxs
├── localStorage.js
├── qqmap-wx-jssdk.min.js
├── util.js
├── weapp.qrcode.esm.js
├── wxApi.js
└── wxApiProxy.js
/README.md:
--------------------------------------------------------------------------------
1 | # zzc-yishoucan
2 | 一个团购蔬菜零食的社区电商微信小程序
3 |
--------------------------------------------------------------------------------
/communityBuying/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/.DS_Store
--------------------------------------------------------------------------------
/communityBuying/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "pages": [
3 | "page/tabBar/index/index",
4 | "page/tabBar/userCenter/userCenter",
5 | "page/cart/cart",
6 | "page/groupBuying/groupBuying",
7 | "page/productDetail/productDetail",
8 | "page/purchase/purchase",
9 | "page/pickUpPoint/pickUpPoint",
10 | "page/canvasTest/canvasTest"
11 | ],
12 | "tabBar": {
13 | "color": "#9B9CA0",
14 | "selectedColor": "#282828",
15 | "borderStyle": "black",
16 | "backgroundColor": "#ffffff",
17 | "list": [
18 | {
19 | "pagePath": "page/tabBar/index/index",
20 | "iconPath": "./imgs/icon-home-default.png",
21 | "selectedIconPath": "./imgs/icon-home-active.png",
22 | "text": "首页"
23 | },
24 | {
25 | "pagePath": "page/cart/cart",
26 | "iconPath": "./imgs/icon-cart-default.png",
27 | "selectedIconPath": "./imgs/icon-cart-active.png",
28 | "text": "购物车"
29 | },
30 | {
31 | "pagePath": "page/tabBar/userCenter/userCenter",
32 | "iconPath": "./imgs/icon-user-default.png",
33 | "selectedIconPath": "./imgs/icon-user-active.png",
34 | "text": "我的"
35 | }
36 | ]
37 | },
38 | "subPackages": [
39 | {
40 | "root": "page/index/",
41 | "pages": [
42 | "pages/activityPage/activityPage",
43 | "pages/searchPage/searchPage",
44 | "pages/location/location",
45 | "pages/communitySearch/communitySearch",
46 | "pages/locationCity/locationCity",
47 | "pages/flashSaleList/flashSaleList",
48 | "pages/compareCommunity/compareCommunity"
49 | ]
50 | },
51 | {
52 | "root": "page/userCenter/",
53 | "pages": [
54 | "pages/orderList/orderList",
55 | "pages/login/login",
56 | "pages/orderDetail/orderDetail",
57 | "pages/invitePage/invitePage",
58 | "pages/logistics/logistics",
59 | "pages/returnPage/returnPage",
60 | "pages/returnDetailPage/returnDetailPage",
61 | "pages/addressList/addressList",
62 | "pages/addressEdit/addressEdit",
63 | "pages/applyPage/applyPage",
64 | "pages/applyIntroducePage/applyIntroducePage",
65 | "pages/withdrawPage/withdrawPage",
66 | "pages/withdrawIntroPage/withdrawIntroPage",
67 | "pages/sellerInfo/sellerInfo",
68 | "pages/saleData/saleData",
69 | "pages/saleOrderList/saleOrderList",
70 | "pages/debug/debug",
71 | "pages/redPackage/redPackage",
72 | "pages/sharePackage/sharePackage",
73 | "pages/closeShop/closeShop"
74 | ]
75 | }
76 | ],
77 | "window": {
78 | "backgroundTextStyle": "light",
79 | "navigationBarBackgroundColor": "#fff",
80 | "navigationBarTitleText": "WeChat",
81 | "navigationBarTextStyle": "black"
82 | },
83 | "debug": true,
84 | "permission": {
85 | "scope.userLocation": {
86 | "desc": "您的位置信息用于商品提货点定位"
87 | }
88 | },
89 | "navigateToMiniProgramAppIdList": [
90 | "wx05fc0deb15e72f0f"
91 | ],
92 | "sitemapLocation": "sitemap.json"
93 | }
--------------------------------------------------------------------------------
/communityBuying/app.wxss:
--------------------------------------------------------------------------------
1 | /**app.wxss**/
2 | @import "/style/font/iconfont.wxss";
3 |
4 | .container {
5 | height: 100%;
6 | display: flex;
7 | flex-direction: column;
8 | align-items: center;
9 | justify-content: space-between;
10 | padding: 200rpx 0;
11 | box-sizing: border-box;
12 | }
13 | button{
14 | border-radius: 0px;
15 | padding: 0px;
16 | background-color: #fff;
17 | }
18 | .button-hover{
19 | background-color: #fff;
20 | }
21 | .user-info-content.button-hover{
22 | background:rgba(247,247,247,1);
23 | }
24 | button::after{
25 | border: 0rpx;
26 | }
27 | image{
28 | width: 100%;
29 | }
30 | .two-ellipsis{
31 | display: -webkit-box;
32 | overflow: hidden;
33 | -webkit-line-clamp:2;
34 | text-overflow: ellipsis;
35 | -webkit-box-orient: vertical;
36 | }
37 | ::-webkit-scrollbar{
38 | width: 0;
39 | height: 0;
40 | color: transparent;
41 | }
42 | .isIphoneX-container-page{
43 | padding-bottom: 200rpx;
44 | }
45 | .isIphoneX-nav-footer{
46 | padding-bottom: 72rpx;
47 | }
48 | .icon-arrow-right-default{
49 | width: 28rpx;
50 | height: 28rpx;
51 | }
52 | .half-border-bottom{
53 | position: relative;
54 | }
55 | .half-border-bottom::after{
56 | content: "";
57 | position: absolute;
58 | left: 0;
59 | right: 0;
60 | bottom: 0;
61 | z-index: 2;
62 | height: 1rpx;
63 | background-color: #eaeaea;
64 | transform: scaleY(0.5);
65 | }
66 | .half-border-top{
67 | position: relative;
68 | }
69 | .half-border-top::after{
70 | content: "";
71 | position: absolute;
72 | left: 0;
73 | right: 0;
74 | top: 0;
75 | z-index: 2;
76 | height: 1rpx;
77 | background-color: #eaeaea;
78 | transform: scaleY(0.5);
79 | }
80 |
81 | .opacity-animation{
82 | -webkit-animation: opacity 0.3s linear;
83 | animation: opacity 0.3s linear;
84 | }
85 | @-webkit-keyframes opacity {
86 | 0% {
87 | opacity: 0;
88 | }
89 | 100% {
90 | opacity:1;
91 | }
92 | }
93 | @keyframes opacity {
94 | 0% {
95 | opacity:0;
96 | }
97 | 100% {
98 | opacity:1;
99 | }
100 | }
--------------------------------------------------------------------------------
/communityBuying/class/cartActions.js:
--------------------------------------------------------------------------------
1 | export class CartActions{
2 | onUpdateCartData(index, type) {
3 | const _this = this;
4 | const skuDataItem = this.data.data.prosNow[index];
5 | let queryObj = {
6 | activity_goods_id: skuDataItem.activity_goods_id,
7 | "goods_id": skuDataItem.goods_id,
8 | "sku_id": skuDataItem.sku_id,
9 | "type": skuDataItem.type,
10 | adcode: skuDataItem.adcode
11 | }
12 | switch (type) {
13 | case "add":
14 | queryObj.num = 1;
15 | break;
16 | case "desc":
17 | queryObj.num = -1;
18 | break;
19 | case "select":
20 | queryObj.selected = !skuDataItem.selected;
21 | break;
22 | }
23 |
24 | let queryArr = [];
25 | queryArr.push(queryObj);
26 | wx.showLoading({
27 | title: '加载中',
28 | })
29 | // 这里必须做状态判断,否则,用户连续点击,就会连续触发请求
30 | if (this.data.state.updateLoading) return;
31 | this.data.state.updateLoading = true;
32 | const url = `${config.ApiRoot}/cart`;
33 |
34 | userMs.request({
35 | url,
36 | method: 'POST',
37 | data: queryArr
38 | })
39 | .then(res => {
40 | const { code, data, msg } = res.data;
41 | console.log(res.data)
42 | if (code === 10000) {
43 | console.log("更新成功")
44 | switch (type) {
45 | case "add":
46 | skuDataItem.num++;
47 | break;
48 | case "desc":
49 | skuDataItem.num--;
50 | break;
51 | case "select":
52 | skuDataItem.selected = !skuDataItem.selected;
53 | break;
54 | }
55 | this.setData({
56 | "data.prosNow": this.data.data.prosNow
57 | })
58 | this.onComputePriceAndCheckAll();
59 |
60 | } else {
61 | this.alertHandler(msg)
62 | }
63 | })
64 | .catch(error => console.log(error))
65 | .finally(() => {
66 | this.data.state.updateLoading = false;
67 | wx.hideLoading();
68 | });
69 | }
70 | // 删除请求,删除成功后,重新setData data.products
71 | onDeleteRequest(deleteIds) {
72 | const _this = this;
73 | wx.showLoading({
74 | title: '删除中',
75 | })
76 | const url = `${config.ApiRoot}/cart`;
77 |
78 | userMs.request({
79 | url,
80 | method: 'delete',
81 | data: {
82 | ids: deleteIds
83 | }
84 | })
85 | .then(res => {
86 | const { code, data } = res.data;
87 | console.log(res.data)
88 | if (code === 10000) {
89 | _this.onFetchCartList();
90 |
91 | };
92 | })
93 | .catch(error => console.log(error))
94 | .finally(() => {
95 | wx.hideLoading();
96 | // wx.hideNavigationBarLoading();
97 | });
98 | }
99 | }
--------------------------------------------------------------------------------
/communityBuying/class/pageControl.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | data: {
3 | data: {
4 | totalPage: 0
5 | },
6 | state: {
7 | page: 1
8 | }
9 | },
10 | getNextPageNum: function () {
11 | const data = this.data.data;
12 | const state = this.data.state;
13 | const nextPageNum = state.page + 1;
14 |
15 | return nextPageNum <= data.totalPage ? nextPageNum : 0;
16 | },
17 |
18 | haveNextPage: function () {
19 | return this.getNextPageNum() !== 0;
20 | },
21 |
22 | fetchNextPage: function (fetchDataFunc) {
23 | const nextPageNum = this.getNextPageNum();
24 |
25 | if (nextPageNum !== 0) {
26 | wx.showNavigationBarLoading();
27 | // 以后可能要优化,不然会有时间差
28 | // this.data.state.page=nextPageNum
29 | this.setData({
30 | "state.page": nextPageNum
31 | });
32 | fetchDataFunc && fetchDataFunc();
33 | }
34 | }
35 | }
--------------------------------------------------------------------------------
/communityBuying/class/userLoginActions.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/class/userLoginActions.js
--------------------------------------------------------------------------------
/communityBuying/class/utilActions.js:
--------------------------------------------------------------------------------
1 | function utilActions() {
2 |
3 | // 倒计时函数
4 | this.onSetTimeDesc = function (startTime,endTime,callBack) {
5 | let _this = this;
6 | // 2019-1-10 审查代码,好像发现这个清除定时器代码没用,每次调用函数,_this.interval 应该都是undefined
7 | // 有空得优化下
8 | _this.interval && clearInterval(_this.interval);
9 | var totalSecond = (endTime - startTime) / 1000;
10 |
11 | if (totalSecond < 0) {
12 | callBack && callBack(false)
13 | return;
14 | }
15 |
16 | _this.interval = setInterval(function () {
17 | // 秒数
18 | var second = totalSecond;
19 |
20 | // 天数位
21 | var day = Math.floor(second / 3600 / 24);
22 | var dayStr = day.toString();
23 | if (dayStr.length == 1) dayStr = '0' + dayStr;
24 |
25 | // 小时位
26 | var hr = Math.floor((second - day * 3600 * 24) / 3600);
27 | var hrStr = hr.toString();
28 | if (hrStr.length == 1) hrStr = '0' + hrStr;
29 |
30 | // 分钟位
31 | var min = Math.floor((second - day * 3600 * 24 - hr * 3600) / 60);
32 | var minStr = min.toString();
33 | if (minStr.length == 1) minStr = '0' + minStr;
34 |
35 | // 秒位
36 | var sec = Math.floor(second - day * 3600 * 24 - hr * 3600 - min * 60);
37 | var secStr = sec.toString();
38 | if (secStr.length == 1) secStr = '0' + secStr
39 | callBack && callBack("true", { countDownDay: dayStr, countDownHour: hrStr, countDownMinute: minStr, countDownSecond: secStr})
40 | totalSecond--;
41 | if (totalSecond < 0) {
42 | clearInterval(_this.interval);
43 | callBack && callBack(false)
44 | }
45 | }.bind(this), 1000);
46 | },
47 |
48 | // 弹窗提示框事件
49 | this.alertHandler = function (alertText) {
50 | const _this = this;
51 | _this.setData({
52 | "state.alertingStatus": true,
53 | "state.alertingWords": alertText?alertText:""
54 | })
55 | setTimeout(function () {
56 | _this.setData({
57 | "state.alertingStatus": false
58 | })
59 | }, 2000)
60 | },
61 |
62 | // 隐藏字符串中间部分函数
63 | this.formateToShadowText = function(startlength,endLength,startString){
64 | // startlength 需要被替换为*号的首下标
65 | // endLength 结束下标距离字符串最尾的长度
66 | let ShadowText = ""
67 | if(startString.length>2){
68 | ShadowText = startString.substr(0, startlength) + "*".repeat(startString.length - startlength - endLength) + startString.substr(startString.length - endLength);
69 | } else if (startString.length == 2){
70 | ShadowText = startString.substr(0, 1) + "*".repeat(1);
71 | }else{
72 | ShadowText = startString;
73 | }
74 | // console.log(Array(21).join('x'));
75 | // console.log('x'.repeat(20));
76 | return ShadowText;
77 | }
78 | }
79 | module.exports = utilActions;
--------------------------------------------------------------------------------
/communityBuying/components/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/components/.DS_Store
--------------------------------------------------------------------------------
/communityBuying/components/alertingTips/alertingTips.js:
--------------------------------------------------------------------------------
1 | // components/alertingTips/alertingTips.js
2 | Component({
3 | /**
4 | * 组件的属性列表
5 | */
6 | properties: {
7 | alertingStatus:{
8 | type: Boolean,
9 | value :false
10 | },
11 | alertingWords:{
12 | value: "",
13 | type: String
14 | }
15 | },
16 |
17 | /**
18 | * 组件的初始数据
19 | */
20 | data: {
21 |
22 | },
23 |
24 | /**
25 | * 组件的方法列表
26 | */
27 | methods: {
28 |
29 | }
30 | })
31 |
--------------------------------------------------------------------------------
/communityBuying/components/alertingTips/alertingTips.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
--------------------------------------------------------------------------------
/communityBuying/components/alertingTips/alertingTips.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 | {{alertingWords}}
4 |
5 |
--------------------------------------------------------------------------------
/communityBuying/components/alertingTips/alertingTips.wxss:
--------------------------------------------------------------------------------
1 | /* components/alertingTips/alertingTips.wxss */
2 | .alert{
3 | background-color: rgba(27, 27, 27, 0.6);
4 | position: fixed;
5 | bottom: -100px;
6 | color: #fff;
7 | font-size: 28rpx;
8 | line-height: 48rpx;
9 | left: 50%;
10 | transform: translateX(-50%);
11 | z-index: 2000;
12 | padding: 16rpx 30rpx;
13 | word-break: break-all;
14 | }
15 | @keyframes fadeOutUp {
16 | 10%,30%,40%,50%{
17 | opacity: 1;
18 | bottom: 700rpx;
19 | }
20 | 100%{
21 | opacity: 0;
22 | }
23 | }
24 | .alerting{
25 | animation-duration: 4s;
26 | animation-fill-mode: both;
27 | animation-name: fadeOutUp;
28 | }
--------------------------------------------------------------------------------
/communityBuying/components/authorize/authorize.js:
--------------------------------------------------------------------------------
1 | // components/authorize/authorize.js
2 | Component({
3 | options: {
4 | multipleSlots: true // 在组件定义时的选项中启用多slot支持
5 | },
6 | properties: {
7 | imgUrl: {
8 | type: String,
9 | value: ""
10 | }
11 | },
12 | methods: {
13 | userInfoHandler: function (e) {
14 | this.triggerEvent("getuserinfo",e.detail);
15 | },
16 | }
17 | })
--------------------------------------------------------------------------------
/communityBuying/components/authorize/authorize.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
--------------------------------------------------------------------------------
/communityBuying/components/authorize/authorize.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
15 |
18 |
23 |
24 |
--------------------------------------------------------------------------------
/communityBuying/components/authorize/authorize.wxss:
--------------------------------------------------------------------------------
1 | /* components/authorize/authorize.wxss */
2 | .com-authorize{
3 | position: fixed;
4 | top: 0;
5 | bottom: 0;
6 | left: 0;
7 | right: 0;
8 | background-color: rgba(0, 0, 0, 0.8);
9 | z-index: 1001;
10 | }
11 | /* .container{
12 | position: absolute;
13 | top: 50%;
14 | left: 50%;
15 | transform: translate(-50%,-50%);
16 | background-color: #fff;
17 | border-radius: 12rpx;
18 | width: 600rpx;
19 | padding: 40rpx 0 0;
20 | } */
21 | /* .title{
22 | font-size: 36rpx;
23 | padding-bottom: 20rpx;
24 | text-align: center;
25 | border-bottom: 1rpx solid #eee;
26 | }
27 | .center{
28 | padding: 20rpx 60rpx 80rpx;
29 | font-size: 0rpx;
30 | }
31 | .center image{
32 | height: 64rpx;
33 | width: 64rpx;
34 | border-radius: 50%;
35 | margin: 0 auto;
36 | display: block;
37 | }
38 | .center .limit{
39 | font-size: 36rpx;
40 | border-bottom: 1rpx solid #eee;
41 | padding: 20rpx 0;
42 | }
43 | .center .desc{
44 | font-size: 32rpx;
45 | color: #ccc;
46 | padding: 20rpx 0 0;
47 | }
48 | .icon{
49 | display: inline-block;
50 | width: 16rpx;
51 | height: 16rpx;
52 | border-radius: 50%;
53 | background-color: #ccc;
54 | margin: 0 6rpx;
55 | }
56 | .btn-box{
57 | display: flex;
58 | border-top: 1rpx solid #eee;
59 | }
60 | .btn-box button{
61 | box-sizing: border-box;
62 | background-color: #fff;
63 | border-radius: 0rpx;
64 | flex: 1;
65 | }
66 | .btn-box button::after{
67 | border: 0rpx;
68 | }
69 | button.submit{
70 | color: #19b71a;
71 | } */
72 |
73 | .pic-box{
74 | width: 522rpx;
75 | position: absolute;
76 | padding: 0;
77 | top: 50%;
78 | left: 50%;
79 | transform: translate(-50%,-50%);
80 | font-size: 0rpx;
81 | border-radius: 12rpx;
82 | }
83 |
84 | image.adv{
85 | width: 100%;
86 | height: 100%;
87 | border-radius: 0rpx;
88 | }
89 |
90 | .authorize-container{
91 | width: 600rpx;
92 | height: 460rpx;
93 | position: absolute;
94 | top: 50%;
95 | left: 50%;
96 | transform: translate(-50%,-50%);
97 | font-size: 0rpx;
98 | border-radius: 20rpx;
99 | text-align: center;
100 | }
101 | .authorize-container image{
102 | width: 380rpx;
103 | margin-top: 100rpx;
104 | }
105 | .authorize-tips{
106 | font-family: PingFangSC-Medium;
107 | font-size: 32rpx;
108 | color: #000000;
109 | line-height: 32rpx;
110 | margin-top: 60rpx;
111 | }
112 | .btn-action{
113 | width: 420rpx;
114 | height: 80rpx;
115 | margin: 38rpx auto 0;
116 | background-image: linear-gradient(90deg, #f76d59 0%, #fa9148 100%);
117 | border-radius: 100rpx;
118 | font-family: PingFangSC-Medium;
119 | font-size: 38rpx;
120 | color: #FFFFFF;
121 | line-height: 80rpx;
122 | }
--------------------------------------------------------------------------------
/communityBuying/components/comfirmTips/comfirmTips.js:
--------------------------------------------------------------------------------
1 | // components/comfirmTips/comfirmTips.js
2 | Component({
3 | /**
4 | * 组件的属性列表
5 | */
6 | properties: {
7 | actionObj:{
8 | type:Object,
9 | value:{}
10 | }
11 | },
12 |
13 | /**
14 | * 组件的初始数据
15 | */
16 | data: {
17 |
18 | },
19 |
20 | /**
21 | * 组件的方法列表
22 | */
23 | methods: {
24 | onCancelDeleteHandler:function(){
25 | this.triggerEvent("oncancel");
26 | },
27 | onConfirmDeleteHandler:function(e){
28 | this.triggerEvent("onsure");
29 | }
30 | }
31 | })
32 |
--------------------------------------------------------------------------------
/communityBuying/components/comfirmTips/comfirmTips.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
--------------------------------------------------------------------------------
/communityBuying/components/comfirmTips/comfirmTips.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | {{actionObj.submitWord}}?
5 |
6 | {{actionObj.submitWord}}
7 | {{actionObj.cancelWord}}
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/communityBuying/components/comfirmTips/comfirmTips.wxss:
--------------------------------------------------------------------------------
1 | /* components/comfirmTips/comfirmTips.wxss */
2 | .confirm-delete-container{
3 | position: fixed;
4 | top: 0;
5 | left: 0;
6 | right: 0;
7 | bottom: 0;
8 | background-color: rgba(0, 0, 0, 0.4);
9 | z-index: 20;
10 | }
11 | .comfirm-delete-content{
12 | width: 600rpx;
13 | height: 280rpx;
14 | background-color: #fff;
15 | border-radius: 20rpx;
16 | position: absolute;
17 | top: 50%;
18 | left: 50%;
19 | transform: translate(-50%,-50%);
20 | }
21 | .comfirm-delete-text{
22 | font-size: 28rpx;
23 | color: #000000;
24 | line-height: 32rpx;
25 | margin-top: 62rpx;
26 | text-align: center;
27 | }
28 | .comfirm-delete-btns{
29 | display: flex;
30 | justify-content: center;
31 | margin-top: 86rpx;
32 | }
33 | .delete-confirm,.delete-hesitate{
34 | width: 234rpx;
35 | height: 60rpx;
36 | line-height: 60rpx;
37 | text-align: center;
38 | border-radius: 100rpx;
39 | font-size: 28rpx;
40 | color: #FFFFFF;
41 | }
42 | .delete-confirm{
43 | background-color: #FFE7D9;
44 | color: #FF0700;
45 | }
46 | .delete-hesitate{
47 | margin-left: 32rpx;
48 | background: linear-gradient(270deg, #FF0700 0%, #FF9363 100%);
49 | }
--------------------------------------------------------------------------------
/communityBuying/components/emptyTips/emptyTips.js:
--------------------------------------------------------------------------------
1 | // components/emptyTips/emptyTips.js
2 | Component({
3 | /**
4 | * 组件的属性列表
5 | */
6 | properties: {
7 | emptyIcon:{
8 | type:String,
9 | value:''
10 | },
11 | emptyTips:{
12 | type: String,
13 | value: ''
14 | }
15 | },
16 |
17 | /**
18 | * 组件的初始数据
19 | */
20 | data: {
21 |
22 | },
23 | ready(){
24 | // console.log(this.properties.emptyTips)
25 | },
26 | /**
27 | * 组件的方法列表
28 | */
29 | methods: {
30 |
31 | }
32 | })
33 |
--------------------------------------------------------------------------------
/communityBuying/components/emptyTips/emptyTips.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
--------------------------------------------------------------------------------
/communityBuying/components/emptyTips/emptyTips.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | {{emptyTips}}
5 |
6 |
--------------------------------------------------------------------------------
/communityBuying/components/emptyTips/emptyTips.wxss:
--------------------------------------------------------------------------------
1 | /* components/emptyTips/emptyTips.wxss */
2 | /* .empty-tips{
3 | position: absolute;
4 | top: 50%;
5 | left: 50%;
6 | transform: translate(-50%,-50%);
7 | font-size: 0px;
8 | text-align: center;
9 | } */
10 | .empty-tips{
11 | text-align: center;
12 | }
13 | .empty-tips image{
14 | /* height: 100rpx; */
15 | width: 370rpx;
16 | height: 280rpx;
17 | }
18 | .empty-tips .tips{
19 | font-size: 30rpx;
20 | color: #999;
21 | margin-top: 30rpx;
22 | }
--------------------------------------------------------------------------------
/communityBuying/components/flashSaleItem/flashSaleItem.js:
--------------------------------------------------------------------------------
1 | // components/flashSaleItem/flashSaleItem.js
2 | Component({
3 | /**
4 | * 组件的属性列表
5 | */
6 | properties: {
7 | domain: {
8 | type: String,
9 | value: ""
10 | },
11 | productItem: {
12 | type: Object,
13 | value: {},
14 | observer: function (newVal, oldVal, changedPath) {
15 | // newVal.proportion = ((newVal.stock / (newVal.invented_sell + newVal.stock)) * 236).toFixed(0);
16 | // this.setData({
17 | // productItem:newVal
18 | // })
19 | }
20 | },
21 | endStatus: {
22 | type: Boolean,
23 | value:false
24 | },
25 | featureStatus: {
26 | type: Boolean,
27 | value: false
28 | }
29 | },
30 |
31 | /**
32 | * 组件的初始数据
33 | */
34 | data: {
35 |
36 | },
37 |
38 | /**
39 | * 组件的方法列表
40 | */
41 | methods: {
42 | onGoToProductDetail: function () {
43 | // if (this.properties.proType=="next") {
44 | // this.alertHandler("活动还未开始,尽情期待");
45 | // return false;
46 | // }
47 | // if (this.properties.productItem.stock == 0) {
48 | // this.alertHandler("该商品已售罄");
49 | // return false;
50 | // }
51 | // if(this.properties.activityEnd){
52 | // this.alertHandler("本期活动已结束");
53 | // return false;
54 | // }
55 | let queryObj = {
56 | isGroupBuyStatus: false,
57 | activityId: this.properties.productItem.id,
58 | type: 3
59 | };
60 |
61 | wx.navigateTo({
62 | url: `/page/productDetail/productDetail?queryObj=${encodeURIComponent(JSON.stringify(queryObj))}`,
63 | })
64 | },
65 | alertHandler: function (alertText) {
66 | const _this = this;
67 | _this.setData({
68 | "state.alertingStatus": true,
69 | "state.alertingWords": alertText
70 | })
71 | setTimeout(function () {
72 | _this.setData({
73 | "state.alertingStatus": false
74 | })
75 | }, 2000)
76 | }
77 | }
78 | })
79 |
--------------------------------------------------------------------------------
/communityBuying/components/flashSaleItem/flashSaleItem.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
--------------------------------------------------------------------------------
/communityBuying/components/flashSaleItem/flashSaleItem.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {{productItem.special_label?productItem.special_label:"限时秒杀"}}
6 | 已抢完
7 |
8 |
9 |
10 |
11 | 限购
12 | {{productItem.goods_name}}
13 |
14 |
15 | 已售{{productItem.sell_count}}件
16 | 仅剩{{productItem.stock}}件
17 |
18 |
19 | 限量{{productItem.stock}}份
20 |
21 |
22 |
23 |
24 |
25 |
26 | 秒杀价
27 |
28 | ¥{{productItem.our_price/100}}
29 |
30 | ¥{{productItem.market_price/100}}
31 |
32 | 马上抢
33 | 已抢完
34 | 去看看
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/communityBuying/components/footerNav/footerNav.js:
--------------------------------------------------------------------------------
1 | // components/footerNav/footerNav.js
2 | Component({
3 | /**
4 | * 组件的属性列表
5 | */
6 | properties: {
7 | pageUrl:{
8 | value:"",
9 | type: String
10 | }
11 | },
12 |
13 | /**
14 | * 组件的初始数据
15 | */
16 | data: {
17 |
18 | },
19 |
20 | /**
21 | * 组件的方法列表
22 | */
23 | methods: {
24 | onGoToDiscount:function(){
25 | if (this.properties.pageUrl === "discount") return;
26 | wx.reLaunch({
27 | url: '/page/tabBar/discount/discount',
28 | })
29 | },
30 | onGoToUserCenter:function(){
31 | if (this.properties.pageUrl === "userCenter") return;
32 | wx.reLaunch({
33 | url: '/page/tabBar/userCenter/userCenter',
34 | })
35 | }
36 | }
37 | })
38 |
--------------------------------------------------------------------------------
/communityBuying/components/footerNav/footerNav.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
--------------------------------------------------------------------------------
/communityBuying/components/footerNav/footerNav.wxml:
--------------------------------------------------------------------------------
1 |
2 |
12 |
--------------------------------------------------------------------------------
/communityBuying/components/footerNav/footerNav.wxss:
--------------------------------------------------------------------------------
1 | /* components/footerNav/footerNav.wxss */
2 | .footer-nav{
3 | position: fixed;
4 | bottom: 0;
5 | left: 0;
6 | right: 0;
7 | height: 100rpx;
8 | display: flex;
9 | font-size: 36rpx;
10 | color: #053168;
11 | font-family: PingFangSC-Semibold;
12 | background-color: #fff;
13 | z-index: 1000;
14 | }
15 | .footer-nav-item{
16 | flex: 1;
17 | align-items: center;
18 | justify-content: center;
19 | display: flex;
20 | }
21 | .footer-nav-item:first-child{
22 | /* border-right: 1rpx solid #053168; */
23 | }
24 | .footer-nav-item image{
25 | width: 70rpx;
26 | height: 60rpx;
27 | }
--------------------------------------------------------------------------------
/communityBuying/components/guessLike/guessLike.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
--------------------------------------------------------------------------------
/communityBuying/components/guessLike/guessLike.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | {{item.goods_name}}
19 |
20 |
21 |
22 |
23 | ¥{{item.our_price/100}}
24 | ¥{{item.market_price/100}}
25 |
26 | 已售{{item.invented_sell}}件
27 |
28 |
29 | {{item.num}}
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 | 暂时没有你喜欢的数据
38 |
39 |
40 |
41 |
42 |
43 |
44 |
47 |
48 |
51 |
52 |
53 |
54 |
55 |
56 | {{item.goods_name}}
57 |
58 |
59 |
60 | ¥{{item.our_price/100}}
61 | ¥{{item.market_price/100}}
62 |
63 |
64 | {{item.num}}
65 |
66 |
67 |
68 |
69 |
70 |
71 | 暂时没有你喜欢的数据
72 |
73 |
74 |
--------------------------------------------------------------------------------
/communityBuying/components/loadMore/loadMore.js:
--------------------------------------------------------------------------------
1 | // components/loadMore/loadMore.js
2 | Component({
3 | /**
4 | * 组件的属性列表
5 | */
6 | properties: {
7 | loadMoreStatus:{
8 | type: Boolean,
9 | value: true
10 | },
11 | backgroundColor:{
12 | type: String,
13 | value: ""
14 | },
15 | loadingStatus: {
16 | type: Boolean,
17 | value: false
18 | },
19 | pagaUrl:{
20 | type:String,
21 | value:""
22 | }
23 | },
24 |
25 | /**
26 | * 组件的初始数据
27 | */
28 | data: {
29 |
30 | },
31 |
32 | /**
33 | * 组件的方法列表
34 | */
35 | methods: {
36 |
37 | }
38 | })
39 |
--------------------------------------------------------------------------------
/communityBuying/components/loadMore/loadMore.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
--------------------------------------------------------------------------------
/communityBuying/components/loadMore/loadMore.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
5 | 加载中...
6 |
7 |
8 | 我是有底线的
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/communityBuying/components/loadMore/loadMore.wxss:
--------------------------------------------------------------------------------
1 | /* components/loadMore/loadMore.wxss */
2 | .load-more{
3 | padding-top: 70rpx;
4 | font-size: 24rpx;
5 | line-height: 24rpx;
6 | text-align: center;
7 | color: #999;
8 | padding-bottom: 30rpx;
9 | }
10 | .bottom-tips-content{
11 | display: flex;
12 | align-items: center;
13 | justify-content: center;
14 | }
15 | .bottom-tips-line{
16 | width: 80rpx;
17 | height: 2rpx;
18 | background-color: #ddd;
19 | }
20 | .bottom-tips-text{
21 | margin: 0 25rpx;
22 | }
--------------------------------------------------------------------------------
/communityBuying/components/naviBackBtn/naviBackBtn.js:
--------------------------------------------------------------------------------
1 | // components/naviBackBtn/naviBackBtn.js
2 | Component({
3 | /**
4 | * 组件的属性列表
5 | */
6 | properties: {
7 | isIphoneX:{
8 | type:Boolean,
9 | value:false
10 | }
11 | },
12 |
13 | /**
14 | * 组件的初始数据
15 | */
16 | data: {
17 |
18 | },
19 |
20 | /**
21 | * 组件的方法列表
22 | */
23 | methods: {
24 | onGoBackMiniProgramHandler() {
25 | wx.navigateBackMiniProgram();
26 | }
27 | }
28 | })
29 |
--------------------------------------------------------------------------------
/communityBuying/components/naviBackBtn/naviBackBtn.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
--------------------------------------------------------------------------------
/communityBuying/components/naviBackBtn/naviBackBtn.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 返回
6 |
7 |
8 |
--------------------------------------------------------------------------------
/communityBuying/components/naviBackBtn/naviBackBtn.wxss:
--------------------------------------------------------------------------------
1 | /* components/naviBackBtn/naviBackBtn.wxss */
2 | /* 返回团长端 样式 */
3 | .merchant-back-content{
4 | width:149rpx;
5 | height:58rpx;
6 | background:rgba(68,208,81,1);
7 | border-radius:0rpx 100px 100px 0rpx;
8 | position: fixed;
9 | left: 0;
10 | bottom: 180rpx;
11 | font-size:24rpx;
12 | color:rgba(255,255,255,1);
13 | display: flex;
14 | align-items: center;
15 | justify-content: flex-end;
16 | }
17 | .merchant-back-content.isIphoneX{
18 | bottom: 252rpx;
19 | }
20 | .icon-arrow-white{
21 | margin-right: 6rpx;
22 | width: 28rpx;
23 | height: 28rpx;
24 | }
25 | .icon-merchant-logo{
26 | margin-left: 9rpx;
27 | width: 52rpx;
28 | height: 52rpx;
29 | }
--------------------------------------------------------------------------------
/communityBuying/components/packageItem/packageItem.js:
--------------------------------------------------------------------------------
1 | // components/packageItemShare/packageItemShare.js
2 | Component({
3 | /**
4 | * 组件的属性列表
5 | */
6 | properties: {
7 | packageItem: {
8 | type: Object,
9 | value: {},
10 | },
11 | packageType:{
12 | type:String,
13 | value:""
14 | },
15 | selectPackageId:{
16 | type:Number,
17 | value:0
18 | }
19 | },
20 |
21 | /**
22 | * 组件的初始数据
23 | */
24 | data: {
25 |
26 | },
27 |
28 | /**
29 | * 组件的方法列表
30 | */
31 | methods: {
32 | onGoToIndexHandler: function () {
33 | if (this.properties.packageType == "newUser") {
34 | this.triggerEvent("oncloseevent")
35 | } else if (this.properties.packageType == "choose") {
36 | if (this.properties.packageItem.available){
37 | this.triggerEvent("onchooseevent", this.properties.packageItem)
38 | }
39 | } else {
40 | wx.reLaunch({
41 | url: '/page/tabBar/index/index',
42 | })
43 | }
44 | }
45 | }
46 | })
47 |
--------------------------------------------------------------------------------
/communityBuying/components/packageItem/packageItem.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
--------------------------------------------------------------------------------
/communityBuying/components/packageItem/packageItem.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | ¥{{packageItem.amountInt}}{{packageItem.amountFloat?'.'+packageItem.amountFloat:""}}
8 |
9 |
10 |
11 |
12 |
13 | 满{{packageItem.min_consumption/100}}元可用
14 | 无金额限制
15 |
16 |
17 |
18 | {{packageItem.red_envelop_name}}
19 |
20 |
21 |
22 | {{packageItem.instruction}}
23 |
24 |
25 |
26 | {{packageItem.deadlineUtil}}到期
27 |
28 |
29 |
30 |
31 | 去使用
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 | 不可用原因
52 |
53 |
54 | {{packageItem.unavailable_reason}}
55 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/communityBuying/components/packageItemMe/packageItemMe.js:
--------------------------------------------------------------------------------
1 | // components/packageItem/packageItem.js
2 | Component({
3 | /**
4 | * 组件的属性列表
5 | */
6 | properties: {
7 | packageItem:{
8 | type:Object,
9 | value:{},
10 | }
11 | },
12 |
13 | /**
14 | * 组件的初始数据
15 | */
16 | data: {
17 |
18 | },
19 |
20 | /**
21 | * 组件的方法列表
22 | */
23 | methods: {
24 | onGoToIndexHandler:function(){
25 | if (this.properties.packageItem.status == 1 || this.properties.packageItem.isTimeOut){
26 | return;
27 | }else{
28 | wx.reLaunch({
29 | url: '/page/tabBar/index/index',
30 | })
31 | }
32 | },
33 | onChangeLimitBoxStausHandler:function(){
34 | this.setData({
35 | showLimitBoxStatus: !this.data.showLimitBoxStatus
36 | })
37 | }
38 | }
39 | })
40 |
--------------------------------------------------------------------------------
/communityBuying/components/packageItemMe/packageItemMe.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
--------------------------------------------------------------------------------
/communityBuying/components/rushBuyingItem/rushBuyingItem.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | "alertingTips": "../alertingTips/alertingTips"
5 | }
6 | }
--------------------------------------------------------------------------------
/communityBuying/components/skeletonScreen/skeletonScreen.js:
--------------------------------------------------------------------------------
1 | /**
2 | * Created by laixinyu on 2018/6/1
3 | **/
4 |
5 | Component({
6 | data: {},
7 |
8 | ready() {
9 | },
10 |
11 | methods: {}
12 | });
--------------------------------------------------------------------------------
/communityBuying/components/skeletonScreen/skeletonScreen.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true
3 | }
--------------------------------------------------------------------------------
/communityBuying/components/skeletonScreen/skeletonScreen.wxml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/communityBuying/components/skeletonScreen/skeletonScreen.wxss:
--------------------------------------------------------------------------------
1 | .skeleton-screen {
2 | animation-duration: 1s;
3 | animation-fill-mode: forwards;
4 | animation-iteration-count: infinite;
5 | animation-name: placeHolderShimmer;
6 | animation-timing-function: linear;
7 | background: #f6f7f8;
8 | background: linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%);
9 | background-size: 800px 104px;
10 | height: 100%;
11 | min-height: 1em;
12 | position: relative;
13 | }
14 |
15 | @keyframes placeHolderShimmer {
16 | 0% {
17 | background-position: -468px 0
18 | }
19 | 100% {
20 | background-position: 468px 0
21 | }
22 | }
23 |
24 | /* 以下自己做的修改 */
25 |
26 | .skeleton-screena {
27 | animation-duration: 2s;
28 | /* 动画时长1s */
29 | animation-fill-mode: forwards;
30 | /*当动画完成后,保持最后一个属性值(在最后一个关键帧中定义)*/
31 | animation-iteration-count: infinite;
32 | /* 动画次数 无限次 */
33 | animation-name: placeHolderShimmera;
34 | /* 执行动画名称 */
35 | animation-timing-function: linear;
36 | /* 动画速度,线性匀速 */
37 | /* background: #f6f7f8; */
38 | background: linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%);
39 | /* 背景颜色 */
40 | background-size: 750px auto;
41 | /* 背景大小 */
42 | height: 100%;
43 | min-height: 1em;
44 | position: relative;
45 | }
46 |
47 | @keyframes placeHolderShimmera {
48 | /* 修改背景定位 */
49 | 0% {
50 | background-position: -750rpx 0;
51 | }
52 | 100% {
53 | background-position: 750rpx 0
54 | }
55 | }
--------------------------------------------------------------------------------
/communityBuying/components/swiperItems/swiperItems.js:
--------------------------------------------------------------------------------
1 | // components/swiperItems/swiperItems.js
2 | Component({
3 | /**
4 | * 组件的属性列表
5 | */
6 | properties: {
7 | imgsList:{
8 | type: Array,
9 | value: []
10 | },
11 | widthSize:{
12 | type: Number,
13 | value:750
14 | },
15 | userDots:{
16 | type: String,
17 | value: ""
18 | },
19 | domain:{
20 | type:String,
21 | value:""
22 | },
23 | heightSize:{
24 | type: Number,
25 | value: 240
26 | },
27 | radiusSize:{
28 | type: Number,
29 | value: 0
30 | },
31 | autoplay:{
32 | type: Boolean,
33 | value: false
34 | }
35 | },
36 |
37 | /**
38 | * 组件的初始数据
39 | */
40 | data: {
41 | imgheights: [],
42 | current: 0
43 | },
44 |
45 | /**
46 | * 组件的方法列表
47 | */
48 | methods: {
49 | imageLoad: function (e) {
50 | //获取图片真实宽度
51 | var imgwidth = e.detail.width,
52 | imgheight = e.detail.height,
53 | //宽高比
54 | ratio = imgwidth / imgheight;
55 | console.log(imgwidth, imgheight)
56 | //计算的高度值
57 | var viewHeight = this.properties.widthSize / ratio;
58 | var imgheight = viewHeight
59 | var imgheights = this.data.imgheights
60 | //把每一张图片的高度记录到数组里
61 | imgheights.push(imgheight)
62 | this.setData({
63 | "imgheights": imgheights
64 | })
65 | },
66 | bindchange: function (e) {
67 | // console.log(e.detail.current)
68 | this.setData({
69 | "current": e.detail.current
70 | })
71 | },
72 | onGotoPage:function(e){
73 | let index = e.currentTarget.dataset.index;
74 | let item = this.properties.imgsList[index];
75 | let {url} = item;
76 | if(url){
77 | wx.navigateTo({
78 | url: "/"+url,
79 | })
80 | }
81 | }
82 | }
83 | })
84 |
--------------------------------------------------------------------------------
/communityBuying/components/swiperItems/swiperItems.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
--------------------------------------------------------------------------------
/communityBuying/components/swiperItems/swiperItems.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
11 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
22 |
25 |
26 | {{current+1}}/{{imgsList.length}}
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/communityBuying/components/swiperItems/swiperItems.wxss:
--------------------------------------------------------------------------------
1 | /* components/swiperItems/swiperItems.wxss */
2 | /* .user-dots{
3 | text-align: center;
4 | margin-top: 8rpx;
5 | height: 12rpx;
6 | display: flex;
7 | align-items: center;
8 | justify-content: center;
9 | }
10 | .user-dots text{
11 | width: 24rpx;
12 | height: 24rpx;
13 | background-color: #E8E8E8;
14 | margin: 0 10rpx;
15 | display: inline-block;
16 | border-radius: 50%;
17 | zoom: 0.5;
18 | }
19 | .user-dots text.active{
20 | background-color: #FFE849;
21 | } */
22 | .swiper-container{
23 |
24 | }
25 | .C-swiper-content{
26 | font-size: 0rpx;
27 | width: auto;
28 | margin-left: -30rpx;
29 | }
30 | swiper{
31 | overflow: hidden;
32 | }
33 | /* #custom-swiper{
34 | -moz-border-radius: 10rpx !important;
35 | -webkit-border-radius: 10rpx !important;
36 | border-radius: 10rpx !important;
37 | } */
38 | .slide-image{
39 | -moz-border-radius: 10rpx !important;
40 | -webkit-border-radius: 10rpx !important;
41 | border-radius: 10rpx !important;
42 | }
43 | .slide{
44 | margin-left: 30rpx;
45 | }
46 | .user-dots-num{
47 | position: absolute;
48 | right: 40rpx;
49 | bottom: 10rpx;
50 | font-family: PingFangSC-Medium;
51 | font-size: 20rpx;
52 | color: #EEEEEE;
53 | z-index: 5;
54 | }
55 |
56 | .user-dots-pro{
57 | position: absolute;
58 | right: 30rpx;
59 | bottom: 138rpx;
60 | width: 62rpx;
61 | height: 40rpx;
62 | line-height: 40rpx;
63 | background: rgba(51, 51, 51, 0.3);
64 | border-radius: 20rpx;
65 | font-family: PingFangSC-Medium;
66 | font-size: 20rpx;
67 | color: #FFFFFF;
68 | text-align: center;
69 | }
70 |
71 | .user-dots-tab{
72 | position: absolute;
73 | left: 0;
74 | right: 0;
75 | bottom: 10rpx;
76 | display: flex;
77 | align-items: center;
78 | justify-content: center;
79 | }
80 | .user-dots-tab-item{
81 | margin: 0 6rpx;
82 | width: 8rpx;
83 | height: 8rpx;
84 | border-radius: 50%;
85 | background-color: #fff;
86 | }
87 | .user-dots-tab-item.active{
88 | width: 30rpx;
89 | border-radius: 6rpx;
90 | }
--------------------------------------------------------------------------------
/communityBuying/config/constant.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | "TEST": "test",
3 | "ONLINE": "online",
4 | "DEV": 'dev',
5 | // "JD": "jd",
6 | // "LOCAL_NETWORK": "local-network"
7 | };
--------------------------------------------------------------------------------
/communityBuying/config/env.js:
--------------------------------------------------------------------------------
1 | const constant = require("./constant.js");
2 |
3 | const config = {};
4 |
5 | // 开发
6 | config[constant.DEV] = {
7 | // WX_AppID: "wx19a7f9c1d0871dfb",
8 | AppId: "wx74f3ba6532341e72",
9 | ApiRoot: "http://api.bir.com/xp",
10 | qiniuDomain: "https://static.newkr.net/",
11 | isDEV: true,
12 | preFix:'dev_'
13 | };
14 | // 测试
15 | config[constant.TEST] = {
16 | // WX_AppID: "wx74f3ba6532341e72",
17 | AppId: "wx74f3ba6532341e72",
18 | ApiRoot: "https://api.newkr.net/xp",
19 | qiniuDomain: "https://static.newkr.net/",
20 | isDEV: true,
21 | preFix: 'dev_'
22 | };
23 | // ONLINE
24 | config[constant.ONLINE] = {
25 | WX_AppID: "wx19a7f9c1d0871dfb",
26 | AppId: "wx74f3ba6532341e72",
27 | ApiRoot: "https://api.ysc.newkr.net/xp",
28 | qiniuDomain: "https://static.newkr.net/",
29 | isDEV: false,
30 | preFix: 'pro_'
31 | };
32 | // 小夹层
33 | // config[constant.MEZZANINE] = {
34 | // WX_AppID: "wx792c994dd0d8862c",
35 | // AppId: "59e9c06f9a658301105ce4b1",
36 | // ApiRoot: "https://weapp.xiyanghui.com",
37 | // isDEV: false
38 | // };
39 |
40 | // 京东
41 | // config[constant.JD] = {
42 | // WX_AppID: "wxab02a4fe37888961",
43 | // AppId: "5a03dca6ca2055358a750d31",
44 | // ApiRoot: "https://jd.weapp.xiyanghui.com",
45 | // isDEV: false
46 | // };
47 |
48 | // 本地环境
49 | config[constant.LOCAL_NETWORK] = {
50 | // WX_AppID: "wx19a7f9c1d0871dfb",
51 | AppId: "wx74f3ba6532341e72",
52 | ApiRoot: "http://api.bir.com/xp",
53 | qiniuDomain: "https://static.newkr.net/",
54 | isDEV: true,
55 | preFix: 'dev_'
56 | };
57 |
58 | function getEnv(label) {
59 | const result = config[label];
60 | if (result) {
61 | return result;
62 | } else {
63 | throw new ReferenceError(`${label} config not found`);
64 | }
65 | }
66 |
67 | module.exports = {
68 | getEnv,
69 | // config
70 | };
--------------------------------------------------------------------------------
/communityBuying/eventType.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | GLOBAL_STATE_CHANGED: "global-state-changed",
3 | LOGIN_SUCCESS: "login-success"
4 | };
--------------------------------------------------------------------------------
/communityBuying/imgs/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/.DS_Store
--------------------------------------------------------------------------------
/communityBuying/imgs/Shotgun-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/Shotgun-icon.png
--------------------------------------------------------------------------------
/communityBuying/imgs/arrow_up.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/communityBuying/imgs/center-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/center-bg.png
--------------------------------------------------------------------------------
/communityBuying/imgs/center-contact.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/center-contact.png
--------------------------------------------------------------------------------
/communityBuying/imgs/center-pocket.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/center-pocket.png
--------------------------------------------------------------------------------
/communityBuying/imgs/center-recruit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/center-recruit.png
--------------------------------------------------------------------------------
/communityBuying/imgs/check-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/check-active.png
--------------------------------------------------------------------------------
/communityBuying/imgs/check-default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/check-default.png
--------------------------------------------------------------------------------
/communityBuying/imgs/delivery.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/delivery.png
--------------------------------------------------------------------------------
/communityBuying/imgs/detail-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/detail-bg.png
--------------------------------------------------------------------------------
/communityBuying/imgs/details-distribution.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/details-distribution.png
--------------------------------------------------------------------------------
/communityBuying/imgs/distribution.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/distribution.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-add-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-add-active.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-add-cart-black.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-add-cart-black.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-add-picture-default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-add-picture-default.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-address-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-address-active.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-apply-fail.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-apply-fail.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-apply-intro-title-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-apply-intro-title-bg.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-apply-looking.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-apply-looking.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-apply-success.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-apply-success.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-arrive-time-oclock.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-arrive-time-oclock.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-arrow-address-right.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-arrow-address-right.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-arrow-bottom-black.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-arrow-bottom-black.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-arrow-bottom.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-arrow-bottom.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-arrow-circle-default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-arrow-circle-default.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-arrow-community-right.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-arrow-community-right.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-arrow-default-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-arrow-default-bg.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-arrow-default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-arrow-default.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-arrow-top.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-arrow-top.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-arrow-white.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-arrow-white.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-booking-arrive-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-booking-arrive-active.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-booking-arrive-default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-booking-arrive-default.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-booking-deliver-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-booking-deliver-active.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-booking-deliver-default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-booking-deliver-default.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-booking-end-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-booking-end-active.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-booking-end-default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-booking-end-default.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-booking-start-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-booking-start-active.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-booking-start-default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-booking-start-default.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-buyer-address-tips.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-buyer-address-tips.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-call-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-call-active.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-call-yellow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-call-yellow.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-cancelled.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-cancelled.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-car-right.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-car-right.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-card-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-card-active.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-cart-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-cart-active.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-cart-default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-cart-default.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-cart-empty.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-cart-empty.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-check-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-check-active.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-check-default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-check-default.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-clock-default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-clock-default.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-clock-tips.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-clock-tips.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-close-default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-close-default.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-close-delivery-code.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-close-delivery-code.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-close-new.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-close-new.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-close-package-shadow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-close-package-shadow.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-community-address.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-community-address.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-community-empty.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-community-empty.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-completed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-completed.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-customer-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-customer-active.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-delete-picture-default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-delete-picture-default.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-empty-package.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-empty-package.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-fail-default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-fail-default.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-flash-item-one-tips.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-flash-item-one-tips.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-flash-sale-price.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-flash-sale-price.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-flash-sale.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-flash-sale.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-group-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-group-active.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-group-default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-group-default.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-home-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-home-active.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-home-bg-left.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-home-bg-left.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-home-bg-right.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-home-bg-right.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-home-default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-home-default.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-home-shopping.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-home-shopping.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-index-top-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-index-top-bg.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-location-default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-location-default.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-location-empty.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-location-empty.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-location-not-allow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-location-not-allow.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-location-oriange.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-location-oriange.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-location-red.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-location-red.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-location-tips-red.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-location-tips-red.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-logo-big.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-logo-big.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-logo-circle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-logo-circle.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-logo-share.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-logo-share.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-logo.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-merchant-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-merchant-logo.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-moment-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-moment-active.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-my-share-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-my-share-bg.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-new-user-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-new-user-logo.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-new-user-shadow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-new-user-shadow.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-obligations.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-obligations.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-order-cancle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-order-cancle.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-order-empty.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-order-empty.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-order-me-empty.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-order-me-empty.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-order-payment-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-order-payment-active.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-order-receive.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-order-receive.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-order-sales-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-order-sales-active.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-order-send-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-order-send-active.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-order-success.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-order-success.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-order-time-out.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-order-time-out.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-paid.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-paid.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-pay-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-pay-bg.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-pay-wechat.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-pay-wechat.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-phone-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-phone-active.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-pro-buyer-more.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-pro-buyer-more.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-pro-high-tips.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-pro-high-tips.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-pro-maohao.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-pro-maohao.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-red-package-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-red-package-active.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-red-package-used.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-red-package-used.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-red-package.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-red-package.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-rule-default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-rule-default.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-search-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-search-active.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-search-black.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-search-black.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-search-default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-search-default.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-share-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-share-active.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-share-default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-share-default.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-share-new.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-share-new.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-share-order-btn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-share-order-btn.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-share-package.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-share-package.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-share-poster-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-share-poster-bg.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-shopper-in-tips.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-shopper-in-tips.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-special-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-special-bg.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-special-price-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-special-price-bg.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-take delivery.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-take delivery.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-time-intro.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-time-intro.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-trangle-left-black.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-trangle-left-black.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-user-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-user-active.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-user-avatar-default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-user-avatar-default.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-user-default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-user-default.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-user-sale-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-user-sale-bg.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-wechat-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-wechat-active.png
--------------------------------------------------------------------------------
/communityBuying/imgs/icon-withDraw-success.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/icon-withDraw-success.png
--------------------------------------------------------------------------------
/communityBuying/imgs/introduction.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/introduction.png
--------------------------------------------------------------------------------
/communityBuying/imgs/jcon-owner-office-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/jcon-owner-office-bg.png
--------------------------------------------------------------------------------
/communityBuying/imgs/like-car-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/like-car-icon.png
--------------------------------------------------------------------------------
/communityBuying/imgs/like-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/like-icon.png
--------------------------------------------------------------------------------
/communityBuying/imgs/needAuthorize-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/needAuthorize-bg.png
--------------------------------------------------------------------------------
/communityBuying/imgs/needAuthorize-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/needAuthorize-logo.png
--------------------------------------------------------------------------------
/communityBuying/imgs/no-order.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/no-order.png
--------------------------------------------------------------------------------
/communityBuying/imgs/payments.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/payments.png
--------------------------------------------------------------------------------
/communityBuying/imgs/search-nodata.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/search-nodata.png
--------------------------------------------------------------------------------
/communityBuying/imgs/share-package-bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/share-package-bg.png
--------------------------------------------------------------------------------
/communityBuying/imgs/share-package-desc-shucai.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/share-package-desc-shucai.png
--------------------------------------------------------------------------------
/communityBuying/imgs/share-package-money-max.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/share-package-money-max.png
--------------------------------------------------------------------------------
/communityBuying/imgs/user-right.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/user-right.png
--------------------------------------------------------------------------------
/communityBuying/imgs/weixin.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/imgs/weixin.png
--------------------------------------------------------------------------------
/communityBuying/page/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/page/.DS_Store
--------------------------------------------------------------------------------
/communityBuying/page/canvasTest/canvasTest.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/communityBuying/page/canvasTest/canvasTest.wxml:
--------------------------------------------------------------------------------
1 |
2 | aaa
3 |
4 |
5 | guanbi
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/communityBuying/page/canvasTest/canvasTest.wxss:
--------------------------------------------------------------------------------
1 | /* pages/canvasTest/canvasTest.wxss */
2 | .canvas {
3 | width:750rpx; box-sizing: border-box; height: 500px;
4 | }
--------------------------------------------------------------------------------
/communityBuying/page/cart/cart.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "alertingTips": "../../components/alertingTips/alertingTips",
4 | "guessLike":"../../components/guessLike/guessLike"
5 | }
6 | }
--------------------------------------------------------------------------------
/communityBuying/page/cart/data.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | data: {
3 | products:[
4 | // {
5 | // name:"dd",
6 | // price:222,
7 | // num:2,
8 | // selected:true
9 | // },
10 | // {
11 | // name: "dd",
12 | // price: 222,
13 | // num: 1,
14 | // selected: false
15 | // },
16 | // {
17 | // name: "dd",
18 | // price: 222,
19 | // num: 1,
20 | // selected: true
21 | // },
22 | // {
23 | // name: "dd",
24 | // price: 222,
25 | // num: 1,
26 | // selected: false
27 | // },
28 | // {
29 | // name: "dd",
30 | // price: 222,
31 | // num: 1,
32 | // selected: true
33 | // },
34 | ],
35 | likeProData: [],//猜你喜欢数据
36 | },
37 | state: {
38 | likeProStaus:false,//猜你喜欢
39 | manageStatus:false,
40 | selectAllStatus:false,
41 | selectIds:[],
42 | moveState:false,
43 | allPrice:0,//总价格
44 | favouredPrice:0,//优惠价格
45 | marketPrice:0,//市场价格
46 | deleteComfirm: false,
47 | isDeleteOne:false,
48 | deleteIndex:0,
49 | isLoading:true
50 | },
51 | others: {
52 | pageUrl: "cartPage"
53 | }
54 | }
--------------------------------------------------------------------------------
/communityBuying/page/groupBuying/data.js:
--------------------------------------------------------------------------------
1 | module.exports={
2 | data:{
3 | rotation: [
4 | {
5 | logo: "https://bir.langnadujia.cn/upload/admin/20180705/72bf77bf077cc141_thumb_750.jpg"
6 | },
7 | {
8 | logo: "https://bir.langnadujia.cn/upload/products/20180419/295c541c30b85f25_thumb_750.jpg"
9 | },
10 | {
11 | logo: "https://bir.langnadujia.cn/upload/admin/20180705/72bf77bf077cc141_thumb_750.jpg"
12 | }
13 | ]
14 | },
15 | state:{},
16 | others:{
17 | pageUrl:"groupBuyingPage"
18 | }
19 | }
--------------------------------------------------------------------------------
/communityBuying/page/groupBuying/groupBuying.js:
--------------------------------------------------------------------------------
1 | // page/groupBuying/groupBuying.js
2 | const data = require("./data.js");
3 | const pageContorlMixin = require("../../class/pageControl.js");
4 | let util = require("../../utils/util.js");
5 | //获取应用实例
6 | const app = getApp()
7 | const userMs = app.userMs;
8 | const config = userMs.config;
9 |
10 | let pageObj = {
11 |
12 | /**
13 | * 页面的初始数据
14 | */
15 | data: data,
16 |
17 | /**
18 | * 生命周期函数--监听页面加载
19 | */
20 | onLoad: function (options) {
21 |
22 | },
23 |
24 | /**
25 | * 生命周期函数--监听页面初次渲染完成
26 | */
27 | onReady: function () {
28 |
29 | },
30 |
31 | /**
32 | * 生命周期函数--监听页面显示
33 | */
34 | onShow: function () {
35 |
36 | },
37 |
38 | /**
39 | * 生命周期函数--监听页面隐藏
40 | */
41 | onHide: function () {
42 |
43 | },
44 |
45 | /**
46 | * 生命周期函数--监听页面卸载
47 | */
48 | onUnload: function () {
49 |
50 | },
51 |
52 | /**
53 | * 页面相关事件处理函数--监听用户下拉动作
54 | */
55 | onPullDownRefresh: function () {
56 |
57 | },
58 |
59 | /**
60 | * 页面上拉触底事件的处理函数
61 | */
62 | onReachBottom: function () {
63 | console.log("ground")
64 | if (this.data.data.products.length > 0 && !this.loading) {
65 | this.fetchNextPage(this.fetchRecommendData);
66 | }
67 | },
68 |
69 | /**
70 | * 用户点击右上角分享
71 | */
72 | onShareAppMessage: function () {
73 |
74 | }
75 | }
76 | pageObj = util.mixin(pageObj, pageContorlMixin);
77 |
78 | Page(pageObj);
--------------------------------------------------------------------------------
/communityBuying/page/groupBuying/groupBuying.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "swiperItems": "../../../components/swiperItems/swiperItems",
4 | "groupBuyingItem": "../../../components/groupBuyingItem/groupBuyingItem",
5 | "loadMore": "../../../components/loadMore/loadMore"
6 | }
7 | }
--------------------------------------------------------------------------------
/communityBuying/page/groupBuying/groupBuying.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/communityBuying/page/groupBuying/groupBuying.wxss:
--------------------------------------------------------------------------------
1 | /* page/groupBuying/groupBuying.wxss */
2 | .ground-buying-page{
3 | font-family: PingFangSC-Semibold;
4 | padding-bottom: 30rpx;
5 | background-color: rgba(248, 248, 248, 0.75);
6 | min-height: 100vh;
7 | }
8 | .swiper-container{
9 | position: relative;
10 | height: 384rpx;
11 | padding: 60rpx 25rpx 0;
12 | }
13 | .swiper-bg{
14 | position: absolute;
15 | top: 0;
16 | left: 0;
17 | width: 750rpx;
18 | height: 260rpx;
19 | z-index: -1;
20 | background-color: red;
21 | }
22 | .group-buying-lists{
23 | margin-top: 20rpx;
24 | }
--------------------------------------------------------------------------------
/communityBuying/page/index/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/page/index/.DS_Store
--------------------------------------------------------------------------------
/communityBuying/page/index/pages/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/page/index/pages/.DS_Store
--------------------------------------------------------------------------------
/communityBuying/page/index/pages/activityPage/activityPage.js:
--------------------------------------------------------------------------------
1 | // page/index/pages/activityPage/activityPage.js
2 | const pageContorlMixin = require("../../../../class/pageControl.js");
3 | let util = require("../../../../utils/util.js");
4 | //获取应用实例
5 | const app = getApp()
6 | const userMs = app.userMs;
7 | const config = userMs.config;
8 |
9 |
10 | let pageObj = {
11 |
12 | /**
13 | * 页面的初始数据
14 | */
15 | data: {
16 |
17 | },
18 |
19 | /**
20 | * 生命周期函数--监听页面加载
21 | */
22 | onLoad: function (options) {
23 | wx.setNavigationBarTitle({
24 | title: '活动名称',
25 | })
26 | },
27 |
28 | /**
29 | * 生命周期函数--监听页面初次渲染完成
30 | */
31 | onReady: function () {
32 |
33 | },
34 |
35 | /**
36 | * 生命周期函数--监听页面显示
37 | */
38 | onShow: function () {
39 |
40 | },
41 | // 获取评论内容
42 | fetchActivityData: function () {
43 | let _this = this;
44 | let url = `${config.ApiRoot}/activities?type=2`;
45 | let productData = {
46 | url,
47 | method: "GET",
48 | }
49 | wx.showLoading({
50 | title: '加载中',
51 | })
52 | userMs.request(productData).then(res => {
53 | let { data, code } = res.data
54 | if (code == 1) {
55 | _this.setData({
56 | 'data.activities': data
57 | })
58 | }
59 | }).catch(
60 | err => {
61 | console.log(err)
62 | }
63 | ).finally(() => {
64 | wx.hideLoading();
65 | });
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 | if (this.data.data.products.length > 0 && !this.loading) {
95 | this.fetchNextPage(this.fetchRecommendData);
96 | }
97 | },
98 |
99 | /**
100 | * 用户点击右上角分享
101 | */
102 | onShareAppMessage: function () {
103 |
104 | },
105 |
106 | }
107 | pageObj = util.mixin(pageObj,pageContorlMixin);
108 |
109 | Page(pageObj);
--------------------------------------------------------------------------------
/communityBuying/page/index/pages/activityPage/activityPage.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "productItem": "../../../../components/productItem/productItem",
4 | "loadMore": "../../../../components/loadMore/loadMore"
5 | }
6 | }
--------------------------------------------------------------------------------
/communityBuying/page/index/pages/activityPage/activityPage.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/communityBuying/page/index/pages/activityPage/activityPage.wxss:
--------------------------------------------------------------------------------
1 | /* page/index/pages/activityPage/activityPage.wxss */
2 | .activity-page{
3 | padding-bottom: 20rpx;
4 | background-color: rgba(248, 248, 248, 0.75);
5 | }
6 | .activity-banner{
7 | height: 482rpx;
8 | /* background-color: #E8E4E4; */
9 | }
10 | .activity-banner image{
11 | width: 100%;
12 | height: 100%;
13 | background-color: #000;
14 | }
15 | .pro-lists{
16 | display: flex;
17 | padding: 0 20rpx;
18 | /* margin-top: -90rpx; */
19 | margin-top: 40rpx;
20 | }
21 | .pro-lists-left{
22 | margin-right: 10rpx;
23 | }
24 | .pro-lists-left,.pro-lists-right{
25 | flex: 1;
26 | }
--------------------------------------------------------------------------------
/communityBuying/page/index/pages/communitySearch/communitySearch.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/communityBuying/page/index/pages/communitySearch/data.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | data: {
3 | },
4 | state: {
5 | },
6 | others: {
7 | pageUrl: "communitySearchPage"
8 | }
9 | }
--------------------------------------------------------------------------------
/communityBuying/page/index/pages/compareCommunity/compareCommunity.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {},
3 | "navigationBarBackgroundColor": "#fed402"
4 | }
--------------------------------------------------------------------------------
/communityBuying/page/index/pages/compareCommunity/compareCommunity.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
15 |
16 |
17 |
18 |
19 |
20 |
21 | 当前
22 |
23 |
24 |
25 |
26 | 团长:{{data.communityObjLocal.contact}}
27 | {{data.communityObjLocal.community_name}}
28 |
29 |
30 | 距离您约{{data.communityObjLocal.distance}}km
31 |
32 | 选择他
33 |
34 |
35 |
36 |
37 |
38 |
39 | 团长:{{data.curCommunityObj.contact}}
40 | {{data.curCommunityObj.community_name}}
41 |
42 |
43 | 距离您约{{data.curCommunityObj.distance}}km
44 |
45 | 选择他
46 |
47 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/communityBuying/page/index/pages/compareCommunity/data.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | data: {
3 | },
4 | state: {
5 | },
6 | others: {
7 | pageUrl: "compareCommunityPage"
8 | }
9 | }
--------------------------------------------------------------------------------
/communityBuying/page/index/pages/flashSaleList/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/page/index/pages/flashSaleList/.DS_Store
--------------------------------------------------------------------------------
/communityBuying/page/index/pages/flashSaleList/data.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | data: {
3 | },
4 | state: {
5 | emptyTips:"秒杀商品正在上架,请耐心等待哦~",
6 | loading:true
7 | },
8 | others: {
9 | pageUrl: "flashSalePage"
10 | }
11 | }
--------------------------------------------------------------------------------
/communityBuying/page/index/pages/flashSaleList/flashSaleList.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "alertingTips": "../../../../components/alertingTips/alertingTips",
4 | "flashSaleItem":"../../../../components/flashSaleItem/flashSaleItem",
5 | "loadMore": "../../../../components/loadMore/loadMore",
6 | "emptyTips":"../../../../components/emptyTips/emptyTips",
7 | "skeletonScreen": "../../../../components/skeletonScreen/skeletonScreen"
8 | }
9 | }
--------------------------------------------------------------------------------
/communityBuying/page/index/pages/flashSaleList/flashSaleList.wxss:
--------------------------------------------------------------------------------
1 | /* page/index/pages/flashSaleList/flashSaleList.wxml.wxss */
2 | .P-flash-sale{
3 | min-height: 100vh;
4 | background-color: #f7f7f7;
5 | }
6 |
7 | .flash-sale-time-items{
8 | /* height: 179rpx; */
9 | height: 165rpx;
10 | overflow-x: scroll;
11 | white-space: nowrap;
12 | /* background-color: #fff; */
13 | background-color: #FFf7d3;
14 | position: absolute;
15 | top: 0;
16 | left: 0;
17 | right: 0;
18 | z-index: 10;
19 | }
20 | .flash-sale-time-item{
21 | display: inline-block;
22 | position: relative;
23 | width: 188rpx;
24 | height: 165rpx;
25 | text-align: center;
26 | font-family: PingFangSC-Semibold;
27 | color: rgba(40,40,40,0.70);
28 | padding-top: 44rpx;
29 | box-sizing: border-box;
30 | /* background-color: #FFEFA9; */
31 | vertical-align: top;
32 | }
33 | .icon-trangle-bottom{
34 | position: absolute;
35 | bottom: -16rpx;
36 | left: 50%;
37 | transform: translateX(-50%);
38 | width: 0;
39 | height: 0;
40 | border-width:16rpx 16rpx 0;
41 | border-style:solid;
42 | border-color:#FFCB05 transparent transparent;/*灰 透明 透明 */
43 | }
44 | .flash-sale-time-item-text{
45 | font-size: 32rpx;
46 | line-height: 45rpx;
47 | }
48 | .flash-sale-time-item-status{
49 | font-size: 26rpx;
50 | line-height: 37rpx;
51 | margin-top: 3rpx;
52 | }
53 | .flash-sale-time-item.active{
54 | background: linear-gradient(-150deg, #FEE601 0%, #FFCB05 100%);
55 | color: #282828;
56 | }
57 | .flash-sale-time-item.active .flash-sale-time-item-text{
58 | font-size: 34rpx;
59 | line-height: 48rpx;
60 | }
61 |
62 | .flash-sale-show-content{
63 | height: 100vh;
64 | position: absolute;
65 | top: 0;
66 | left: 0;
67 | right: 0;
68 | min-height: 100vh;
69 | padding-top: 165rpx;
70 | box-sizing: border-box;
71 | }
72 | .flash-sale-show-item{
73 | overflow-y: scroll;
74 | }
75 | .flash-sale-time-content{
76 | height: 104rpx;
77 | display: flex;
78 | align-items: center;
79 | justify-content: center;
80 | background-color: #fff;
81 | }
82 | .split-line{
83 | width: 165rpx;
84 | height: 2rpx;
85 | background-color: #eee;
86 | }
87 | .flash-sale-time-box{
88 | margin: 0 30rpx;
89 | display: flex;
90 | align-items: center;
91 | font-size: 26rpx;
92 | color: #666666;
93 | font-family: PingFangSC-Medium;
94 | }
95 | .flash-sale-time-value{
96 | margin-left: 20rpx;
97 | display: flex;
98 | align-items: center;
99 | height: 42rpx;
100 | line-height: 42rpx;
101 | }
102 | .flash-sale-time-value .timer{
103 | font-family: PingFangSC-Semibold;
104 | font-size: 30rpx;
105 | color: #282828;
106 | margin: 0 6rpx;
107 | }
108 | .flash-sale-pro-item{
109 | margin-top: 20rpx;
110 | }
111 | .shadow-view{
112 | margin-top: 20rpx;
113 | height: 306rpx;
114 | }
115 |
116 | .need-location{
117 | padding-top: 400rpx;
118 | font-size: 30rpx;
119 | text-align: center;
120 | font-family: PingFangSC-Regular;
121 | }
122 | .return-home{
123 | margin: 30rpx auto;
124 | width: 260rpx;
125 | height: 60rpx;
126 | line-height: 60rpx;
127 | font-size: 30rpx;
128 | background-color: #FEE601;
129 | color: #282828;
130 | }
--------------------------------------------------------------------------------
/communityBuying/page/index/pages/location/data.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | data: {
3 | },
4 | state: {
5 | },
6 | others: {
7 | pageUrl: "locationPage"
8 | }
9 | }
--------------------------------------------------------------------------------
/communityBuying/page/index/pages/location/location.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarBackgroundColor": "#fed402"
3 | }
--------------------------------------------------------------------------------
/communityBuying/page/index/pages/locationCity/data.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | data: {
3 | },
4 | state: {
5 | },
6 | others: {
7 | pageUrl: "locationCityPage"
8 | }
9 | }
--------------------------------------------------------------------------------
/communityBuying/page/index/pages/locationCity/locationCity.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/communityBuying/page/index/pages/locationCity/locationCity.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | {{state.currentLocation.city}}(当前位置)
8 |
9 |
10 |
11 |
12 | 刷新
13 |
14 |
15 |
16 |
17 |
18 | 当前选择城市
19 |
20 | {{state.locationObj.city}}
21 |
22 |
23 |
24 |
25 | 已开放城市
26 |
27 | {{item.city}}
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/communityBuying/page/index/pages/locationCity/locationCity.wxss:
--------------------------------------------------------------------------------
1 | /* page/index/pages/locationCity/locationCity.wxss */
2 | .current-city-item{
3 | display: flex;
4 | align-items: center;
5 | justify-content: space-between;
6 | height: 106rpx;
7 | padding: 0 30rpx;
8 | }
9 | .current-city-left{
10 | display: flex;
11 | align-items: center;
12 | flex: 1;
13 | }
14 | .current-city-left image{
15 | width: 26rpx;
16 | height: 30rpx;
17 | }
18 | .current-city-taber{
19 | margin-left: 10rpx;
20 | color: #282828;
21 | font-size: 32rpx;
22 | }
23 | .current-city-taber text{
24 | color: #999;
25 | }
26 | .current-city-btn{
27 | display: flex;
28 | align-items: center;
29 | }
30 | .current-city-btn image{
31 | width: 30rpx;
32 | height: 30rpx;
33 | }
34 | .current-city-btn-text{
35 | margin-left: 12rpx;
36 | color: #FB5E51;
37 | font-size: 24rpx;
38 | }
39 |
40 | .select-city-taber{
41 | height: 70rpx;
42 | padding: 0 30rpx;
43 | line-height: 70rpx;
44 | opacity: 0.8;
45 | background: #F8F8F8;
46 | font-family: PingFangSC-Regular;
47 | font-size: 28rpx;
48 | color: #999999;
49 | }
50 | .select-city-lists{
51 | padding: 0 30rpx;
52 | }
53 | .select-city-text{
54 | font-family: PingFangSC-Regular;
55 | font-size: 28rpx;
56 | color: #333333;
57 | height: 88rpx;
58 | line-height: 88rpx;
59 | border-bottom: 1rpx solid #f7f7f7;
60 | }
61 | .select-city-text:last-child{
62 | border: 0;
63 | }
64 |
--------------------------------------------------------------------------------
/communityBuying/page/index/pages/searchPage/data.js:
--------------------------------------------------------------------------------
1 | module.exports={
2 | data:{
3 | products:[]
4 | },
5 | state:{
6 | searchHistories: "",
7 | firstStep: true,
8 | searchValue:""
9 | },
10 | others:{
11 | pageUrl: "searchPage"
12 | }
13 | }
--------------------------------------------------------------------------------
/communityBuying/page/index/pages/searchPage/searchPage.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "productItem": "../../../../components/rushBuyingItem/rushBuyingItem",
4 | "loadMore": "../../../../components/loadMore/loadMore",
5 | "alertingTips": "../../../../components/alertingTips/alertingTips",
6 | "guessLike": "../../../../components/guessLike/guessLike"
7 | }
8 | }
--------------------------------------------------------------------------------
/communityBuying/page/index/pages/searchPage/searchPage.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
12 |
13 |
14 | 搜索历史
15 | 清除
16 |
17 |
18 | {{item}}
19 |
20 |
21 | 你还没有搜索历史哦~
22 |
23 |
24 |
25 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
43 |
44 |
45 |
46 |
47 |
48 | 该关键字查不到,请换个姿势重新来过~
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
--------------------------------------------------------------------------------
/communityBuying/page/index/pages/searchPage/searchPage.wxss:
--------------------------------------------------------------------------------
1 | /* page/index/pages/searchPage/searchPage.wxss */
2 | .P-search{
3 | min-height: 100vh;
4 | background:rgba(247,247,247,1);
5 | padding-bottom: 30rpx;
6 | }
7 | .header{
8 | height: 110rpx;
9 | padding: 0 20rpx;
10 | display: flex;
11 | align-items: center;
12 | background-color: #fff;
13 | }
14 | .input-box{
15 | flex: 1;
16 | background: #e9e9e9;
17 | border-radius: 100rpx;
18 | height: 60rpx;
19 | display: flex;
20 | align-items: center;
21 | }
22 | .input-box image{
23 | width: 33rpx;
24 | height: 33rpx;
25 | margin-left: 20rpx;
26 | }
27 | .input-box input{
28 | flex: 1;
29 | margin-left: 20rpx;
30 | font-size: 28rpx;
31 | height: 60rpx;
32 | }
33 | .history-content{
34 | padding: 20rpx 30rpx 0rpx 30rpx;
35 | background-color: #fff;
36 | }
37 | .recommend-content{
38 | padding: 0 30rpx;
39 | }
40 | .history-title-content{
41 | display: flex;
42 | align-items: center;
43 | justify-content: space-between;
44 | font-size: 28rpx;
45 | color: #666;
46 | }
47 | .history-items{
48 | padding-bottom: 40rpx;
49 | /* border-bottom: 1rpx solid #e6e6e6; */
50 | }
51 | .history-item,.recommend-item{
52 | margin-left: 20rpx;
53 | padding: 10rpx 30rpx;
54 | background-color: #f0efef;
55 | display: inline-block;
56 | border-radius: 100rpx;
57 | font-size: 28rpx;
58 | line-height: 28rpx;
59 | margin-top: 20rpx;
60 | color: #666;
61 | }
62 | .history-item:first-child,.recommend-item:first-child{
63 | margin-left: 0rpx;
64 | }
65 | .history-empty-tips{
66 | text-align: center;
67 | font-size: 28rpx;
68 | line-height: 28rpx;
69 | margin-top: 20rpx;
70 | color: #666;
71 | }
72 | .recommend-items{
73 | padding-bottom: 20rpx;
74 | }
75 | .recommend-title{
76 | font-size: 28rpx;
77 | line-height: 28rpx;
78 | color: #666;
79 | border-top: 1rpx solid #e6e6e6;
80 | padding-top: 20rpx;
81 | }
82 |
83 | .pro-lists{
84 | /* display: flex; */
85 | background-color: #fff;
86 | padding: 0 20rpx 10rpx;
87 | }
88 | .recommend-lists-left{
89 | margin-right: 10rpx;
90 | }
91 | .recommend-lists-left, .recommend-lists-right{
92 | overflow: hidden;
93 | flex: 1;
94 | }
95 | .search-result{
96 | /* background-color: rgba(248, 248, 248, 0.75); */
97 | background-color: #fff;
98 | }
99 | .search-nodata{
100 | width: 260rpx;
101 | height: 260rpx;
102 | margin: 0 auto;
103 | }
104 | .pro-list-empty{
105 | text-align: center;
106 | padding-bottom: 98rpx;
107 | }
108 | /* .pro-list-empty image{
109 | margin-top: 60rpx;
110 | width: 400rpx;
111 | height: 400rpx;
112 | background-color: #000;
113 | } */
114 | .pro-list-empty-tips{
115 | font-size: 24rpx;
116 | color: #CCCCCC;
117 | }
118 | .search-like-content{
119 | background:rgba(247,247,247,1);
120 | }
--------------------------------------------------------------------------------
/communityBuying/page/pickUpPoint/data.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | data: {
3 | },
4 | state: {
5 | },
6 | others: {
7 | pageUrl: "pickUpPointPage"
8 | }
9 | }
--------------------------------------------------------------------------------
/communityBuying/page/pickUpPoint/pickUpPoint.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/communityBuying/page/pickUpPoint/pickUpPoint.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 选择小区代理点,可享受免费代收服务
6 |
7 |
8 |
9 | 当前代理点
10 |
11 |
12 | {{data.address.address}}
13 |
14 | 小区代理:
15 | {{data.address.canSeedName}}
16 | {{data.address.canSeedMobile}}
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 | 可选小区代理点
25 |
26 |
27 |
28 | {{item.address}}
29 |
30 | 小区代理:
31 | {{item.canSeedName}}
32 | {{item.canSeedMobile}}
33 |
34 |
35 |
36 |
37 |
38 | 当前定位小区暂无代理点~点击重新定位
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/communityBuying/page/pickUpPoint/pickUpPoint.wxss:
--------------------------------------------------------------------------------
1 | /* page/pickUpPoint/pickUpPoint.wxss */
2 |
3 | .status-top-tips{
4 | height: 80rpx;
5 | display: flex;
6 | align-items: center;
7 | padding: 0 30rpx;
8 | font-family: PingFangSC-Regular;
9 | font-size: 24rpx;
10 | color: #FF5E53;
11 | background-color: rgba(255,232,73, 0.2);
12 | }
13 | .status-top-tips image{
14 | width: 44rpx;
15 | height: 44rpx;
16 | margin-right: 8rpx;
17 | }
18 | .bottom-line{
19 | height: 20rpx;
20 | opacity: 0.8;
21 | background: #F8F8F8;
22 | }
23 |
24 | .pick-up-recommend-container{
25 | padding: 20rpx 15rpx;
26 | }
27 | .pick-up-recommend-title{
28 | width: 150rpx;
29 | height: 42rpx;
30 | text-align: center;
31 | line-height: 42rpx;
32 | background: #FFE849;
33 | border-radius: 30rpx;
34 | font-family: PingFangSC-Regular;
35 | font-size: 22rpx;
36 | color: #1E6FFF;
37 | }
38 |
39 | .pick-up-choose-container{
40 | padding: 0 15rpx;
41 | }
42 | .pick-up-others-title{
43 | padding-top: 30rpx;
44 | font-family: PingFangSC-Regular;
45 | font-size: 28rpx;
46 | color: #999999;
47 | line-height: 28rpx;
48 | }
49 | .pick-up-item{
50 | border-top: 1rpx solid #eaeaea;
51 | padding: 40rpx 15rpx 30rpx;
52 | }
53 | .pick-up-item:first-child{
54 | border: 0rpx;
55 | }
56 | .pick-up-address-detail{
57 | font-family: PingFangSC-Medium;
58 | font-size: 30rpx;
59 | color: #666666;
60 | line-height: 40rpx;
61 | }
62 | .pick-up-user-info{
63 | margin-top: 20rpx;
64 | font-family: PingFangSC-Regular;
65 | font-size: 30rpx;
66 | color: #666666;
67 | line-height: 30rpx;
68 | display: flex;
69 | align-items: center;
70 | }
71 | .pick-up-user-name{
72 | margin-left: 30rpx;
73 | margin-right: 60rpx;
74 | }
75 | .pick-up-empty{
76 | padding-top: 100rpx;
77 | }
78 | .pick-up-empty-text{
79 | text-align: center;
80 | font-size: 22rpx;
81 | line-height: 22rpx;
82 | color: #999;
83 | }
84 | .pick-up-empty-text text{
85 | color: #FF5E53;
86 | font-size: 24rpx;
87 | margin-left: 10rpx;
88 | }
--------------------------------------------------------------------------------
/communityBuying/page/productDetail/data.js:
--------------------------------------------------------------------------------
1 | module.exports={
2 | data:{
3 | groups:[
4 | { user_nickname:"1"},
5 | { user_nickname:"2"},
6 | { user_nickname:"3"},
7 | { user_nickname: "3" }
8 | ],
9 | productDetail:{}
10 | },
11 | state:{
12 | shopCartBoxStatus: false,
13 | groupsBoxStatus: false,
14 | scrollTop:0,
15 | returnBack:false,
16 | scrollI:0,
17 | timer:3000,
18 | groupBuyingStatus:false,
19 | selectIds:[],
20 | totalBuyNum:1,
21 | selectSkuItem:{},
22 | savePicBoxStatus:false,
23 | posterId:"posterId",
24 | openSavePicBoxTimes:1,
25 | // hasAddToCartStatus:true,
26 | cartItemNumber:0
27 | },
28 | others:{
29 | pageUrl: "productDetailPage"
30 | }
31 | }
--------------------------------------------------------------------------------
/communityBuying/page/productDetail/productDetail.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "alertingTips": "../../components/alertingTips/alertingTips",
4 | "swiperItems": "../../../components/swiperItems/swiperItems",
5 | "naviBackBtn": "../../../components/naviBackBtn/naviBackBtn",
6 | "guessLike": "../../components/guessLike/guessLike"
7 | }
8 | }
--------------------------------------------------------------------------------
/communityBuying/page/purchase/data.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | data: {
3 | products:[
4 | {
5 | id:11,
6 | name:"ddd",
7 | num:1,
8 | price:56
9 | },
10 | {
11 | id: 11,
12 | name: "ddd",
13 | num: 2,
14 | price: 56
15 | }
16 | ],
17 |
18 | productsRecom:[],
19 | qiniuDomain:"https://static.newkr.net/",
20 | buyerName:"",
21 | buyerPhone:"",
22 | buyerText:"",
23 | selectPackageItem:""
24 | },
25 | state: {
26 | switchHeight:false, //订单列表点击高度切换
27 | needOpenSettingBtn:false,
28 | totalPrice:0,
29 | choosePackageStatus:false,
30 | emptyIcon:"/imgs/icon-empty-package.png",
31 | emptyTips:"您还没有可用红包哦~"
32 | },
33 | others: {
34 | pageUrl: "purchasePage"
35 | }
36 | }
--------------------------------------------------------------------------------
/communityBuying/page/purchase/purchase.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "alertingTips": "../../components/alertingTips/alertingTips",
4 | "emptyTips": "../../components/emptyTips/emptyTips",
5 | "packageItem": "../../components/packageItem/packageItem"
6 | }
7 | }
--------------------------------------------------------------------------------
/communityBuying/page/tabBar/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/page/tabBar/.DS_Store
--------------------------------------------------------------------------------
/communityBuying/page/tabBar/index/data.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | data: {
3 | // rotation: [
4 | // {
5 | // logo: "https://bir.langnadujia.cn/upload/admin/20180705/72bf77bf077cc141_thumb_750.jpg"
6 | // },
7 | // {
8 | // logo: "https://bir.langnadujia.cn/upload/products/20180419/295c541c30b85f25_thumb_750.jpg"
9 | // },
10 | // {
11 | // logo: "https://bir.langnadujia.cn/upload/admin/20180705/72bf77bf077cc141_thumb_750.jpg"
12 | // }
13 | // ], // 轮播图
14 | classifies: [],// 分类
15 | products:[], // 商品
16 | packages:[], //红包
17 | flashSaleList:[], // 秒杀列表
18 | timeFilters:[], // 秒杀时间列表
19 | presale_goods:[], // 预售商品列表
20 | selectFilterTimeIndex:0, // 默认秒杀时间选择项
21 | cartList:[], // 购物车数据列表
22 | },
23 | state: {
24 | authorizePic: "/imgs/pic-authorized.png",
25 | selectTabType:"now",
26 | authorizePic:"/imgs/icon-authorize-default.png",
27 | needAuthorize: false,
28 | officialAccount: wx.canIUse("official-account"),
29 | firstLoading:true,
30 | needLocation:true,//没定位
31 | filters:[
32 | // {label:"全部",type:"all"},
33 | // { label: "水果", type: "fruit" },
34 | // { label: "蔬菜", type: "ve" },
35 | // { label: "海鲜", type: "sea" },
36 | // { label: "肉类", type: "you" },
37 | // { label: "全部", type: "a" }
38 | ],
39 | selectFilterId:0,
40 | isNewUserStatus:false,
41 | barrageIndex:0
42 | },
43 | others: {
44 | pageUrl: "index"
45 | }
46 | }
--------------------------------------------------------------------------------
/communityBuying/page/tabBar/index/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "enablePullDownRefresh": true,
3 | "backgroundTextStyle":"dark",
4 | "usingComponents": {
5 | "swiperItems": "../../../components/swiperItems/swiperItems",
6 | "loadMore": "../../../components/loadMore/loadMore",
7 | "authorize":"../../../components/authorize/authorize",
8 | "rushBuyingItem": "../../../components/rushBuyingItem/rushBuyingItem",
9 | "skeletonScreen":"../../../components/skeletonScreen/skeletonScreen",
10 | "alertingTips": "../../../components/alertingTips/alertingTips",
11 | "packageItem": "../../../components/packageItem/packageItem",
12 | "naviBackBtn": "../../../components/naviBackBtn/naviBackBtn"
13 | },
14 | "navigationBarBackgroundColor": "#fed402"
15 | }
--------------------------------------------------------------------------------
/communityBuying/page/tabBar/userCenter/data.js:
--------------------------------------------------------------------------------
1 | module.exports={
2 | data:{
3 | userInfo:{},
4 | orderNumObj:{},
5 | radarImg:''
6 | // saleDataOrders:[]
7 | },
8 | state:{
9 | // selectType:"user",
10 | canUseFeedBackStatus: wx.canIUse('button.open-type.feedback'),
11 | saleTypeFilters:[
12 | {name:"销售订单", type: "all",},
13 | { name: "已付款", type: "pay", value:2},
14 | { name: "已结算", type: "check",value:7 },
15 | { name: "已失效", type: "timeout",value:8 },
16 | ],
17 | clickNum:0,
18 | // selectSaleType:"all",
19 | // selectSaleTypeIndex:0,
20 | // savePicBoxStatus: false,
21 | // posterId: "posterId",
22 | // openSavePicBoxTimes: 1
23 | qRCodeBoxStatus:false,
24 | orderNeedAuthorize:false,
25 | },
26 | others:{
27 | pageUrl:"userCenterPage"
28 | }
29 | }
--------------------------------------------------------------------------------
/communityBuying/page/tabBar/userCenter/userCenter.json:
--------------------------------------------------------------------------------
1 | {
2 | "backgroundTextStyle": "dark",
3 | "usingComponents": {
4 | "loadMore": "../../../components/loadMore/loadMore",
5 | "alertingTips": "../../../components/alertingTips/alertingTips"
6 | },
7 | "navigationBarBackgroundColor": "#fed402"
8 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/page/userCenter/.DS_Store
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/page/userCenter/pages/.DS_Store
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/addressEdit/addressEdit.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "alertingTips": "../../../../components/alertingTips/alertingTips"
4 | }
5 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/addressEdit/addressEdit.wxss:
--------------------------------------------------------------------------------
1 | /* page/userCenter/pages/addressEdit/addressEdit.wxss */
2 | .address-item{
3 | display: flex;
4 | padding: 26rpx 30rpx;
5 | align-items: center;
6 | }
7 | .address-text{
8 | font-size: 32rpx;
9 | color: #666666;
10 | width: 128rpx;
11 | }
12 | .input{
13 | margin-left: 72rpx;
14 | font-size: 28rpx;
15 | }
16 | .placeholder-class{
17 | color: #999999;
18 | }
19 | .line{
20 | height: 20rpx;
21 | background-color: #fafafa;
22 | }
23 | .select-picker{
24 | flex: 1;
25 | width: 1rpx;
26 | }
27 | .select-box{
28 | display: flex;
29 | align-items: center;
30 | justify-content: space-between;
31 | /* flex: 1;
32 | width: 1rpx; */
33 | margin-left: 72rpx;
34 | }
35 | .select-box-text{
36 | font-size: 28rpx;
37 | color: #333333;
38 | }
39 | .select-box-text text{
40 | margin-right: 20rpx;
41 | }
42 | .icon-arrow-right{
43 | width: 28rpx;
44 | height: 28rpx;
45 | }
46 | .address-item-type{
47 | width: 94rpx;
48 | height: 44rpx;
49 | border-radius: 100rpx;
50 | margin-left: 20rpx;
51 | background: #E9E9E9;
52 | line-height: 44rpx;
53 | text-align: center;
54 | font-size: 28rpx;
55 | color: #333;
56 | }
57 | .address-item-type:first-child{
58 | margin-left: 0rpx;
59 | }
60 | .address-item-type.active{
61 | border: 4rpx solid #FF0E05;
62 | background-color: #fff;
63 | }
64 | .address-actions{
65 | position: absolute;
66 | bottom: 168rpx;
67 | left: 50%;
68 | transform: translateX(-50%);
69 | }
70 | .address-btn{
71 | width: 600rpx;
72 | height: 100rpx;
73 |
74 | border-radius: 100rpx;
75 | line-height: 100rpx;
76 | text-align: center;
77 | color: #fff;
78 | font-size: 38rpx;
79 | }
80 | .address-btn.delete{
81 | background-color: #E9E9E9;
82 | }
83 | .address-btn.submit{
84 | background-image: linear-gradient(90deg, #FF6945 0%, #FF1f11 100%);
85 | margin-top: 40rpx;
86 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/addressEdit/data.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | data: {
3 | contact:"",
4 | mobile:"",
5 | city:"",
6 | detailAddress: "",
7 | zipCode:"",
8 | // provinceName: "",
9 | // cityName: "",
10 | // countyName: "",
11 | addressType:"company",
12 | region: ['', '', ''],
13 | customItem: '全部',
14 | multiArray: [['全部'], ["全部"], ["全部"]],
15 | multiIndex: [0, 0, 0],
16 | provinceObj:{},
17 | cityObj:{},
18 | countyObj:{}
19 | },
20 | state: {
21 | addressType: "company",
22 | addressTypes: [
23 | {
24 | text: "公司",
25 | type: "company"
26 | },
27 | {
28 | text: "家",
29 | type: "home"
30 | },
31 | {
32 | text: "临时",
33 | type: "temporary"
34 | }
35 | ]
36 | },
37 | others: {
38 | pageUrl: "addressEditPage",
39 |
40 | }
41 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/addressList/addressList.js:
--------------------------------------------------------------------------------
1 | // page/userCenter/pages/addressList/addressList.js
2 |
3 | //获取应用实例
4 | const app = getApp()
5 | const userMs = app.userMs;
6 | const config = userMs.config;
7 | const data = require("./data.js");
8 | const wxApi = require("../../../../utils/wxApi.js");
9 |
10 | Page({
11 |
12 | /**
13 | * 页面的初始数据
14 | */
15 | data: data,
16 |
17 | /**
18 | * 生命周期函数--监听页面加载
19 | */
20 | onLoad: function (options) {
21 | wx.setNavigationBarTitle({
22 | title: '收货地址',
23 | })
24 | if(options.comeFromPage){
25 | this.data.data.comeFromPage = options.comeFromPage
26 | }
27 | },
28 |
29 | /**
30 | * 生命周期函数--监听页面初次渲染完成
31 | */
32 | onReady: function () {
33 |
34 | },
35 |
36 | /**
37 | * 生命周期函数--监听页面显示
38 | */
39 | onShow: function () {
40 | this.onFetchAddressList();
41 | },
42 | onFetchAddressList:function(){
43 | let _this = this;
44 | let url = `${config.ApiRoot}/shipping-address`;
45 | let data = {
46 | url,
47 | }
48 | wx.showLoading({
49 | title: '加载中',
50 | })
51 | userMs.request(data)
52 | .then(res => {
53 | const { data, code, msg } = res.data
54 | if (code == 10000) {
55 | _this.setData({
56 | "data.addressList": data
57 | })
58 | } else {
59 | throw res;
60 | }
61 | })
62 | .catch(err => {
63 | console.log(err)
64 | })
65 | .finally(res => {
66 | wx.hideLoading();
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 | onSelectAddressHandler:function(e){
104 | const index = e.currentTarget.dataset.index;
105 | let selectItem = this.data.data.addressList[index];
106 | if (this.data.data.comeFromPage == "purchasePage"){
107 | wx.setStorageSync("address", JSON.stringify(selectItem));
108 | wx.navigateBack({
109 | delta: 1
110 | })
111 | }
112 | // if (this.data.data.addressList[index].is_default) return;
113 | // this.onModifyAddressRequest(index);
114 | },
115 | onGoToAddressEditHandler:function(e){
116 | const index = e.currentTarget.dataset.index;
117 | if (index!==undefined){
118 | let selectItem = this.data.data.addressList[index];
119 | wx.navigateTo({
120 | url: `../addressEdit/addressEdit?selectItem=${encodeURIComponent(JSON.stringify(selectItem))}`
121 | })
122 | }else{
123 | wx.navigateTo({
124 | url: `../addressEdit/addressEdit`,
125 | })
126 | }
127 | }
128 | })
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/addressList/addressList.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/addressList/addressList.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 添加地址
6 |
7 |
8 |
9 |
10 | 编辑
11 |
12 |
13 | {{item.contact}}
14 | {{item.mobile}}
15 |
16 |
17 | 默认
18 | {{item.complete_address}}
19 |
20 |
21 |
22 |
23 | 请点击添加地址进行添加哦~
24 |
25 |
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/addressList/addressList.wxss:
--------------------------------------------------------------------------------
1 | /* page/userCenter/pages/addressList/addressList.wxss */
2 | .P-address-list{
3 | font-family: PingFangSC-Medium;
4 | }
5 | .address-add{
6 | font-size: 38rpx;
7 | color: #FF2918;
8 | padding: 30rpx;
9 | display: flex;
10 | align-items: center;
11 | }
12 | .icon-add{
13 | width: 36rpx;
14 | height: 36rpx;
15 | }
16 | .address-add view{
17 | margin-left: 20rpx;
18 | }
19 |
20 | /* .address-item{
21 | padding-bottom: 17rpx;
22 | } */
23 | .address-item-edil{
24 | display: flex;
25 | justify-content: flex-end;
26 | padding: 0 30rpx;
27 | box-sizing: border-box;
28 | }
29 | .address-item-edil text{
30 | padding: 16rpx;
31 | font-size: 24rpx;
32 | color: #000000;
33 | line-height: 24rpx;
34 | }
35 | .address-item-edil text.active{
36 | color: #999;
37 | }
38 | .address-item-user-info{
39 | display: flex;
40 | align-items: center;
41 | padding: 0 30rpx;
42 | }
43 | .address-item-user-name{
44 | font-size: 28rpx;
45 | color: #333333;
46 | line-height: 28rpx;
47 | }
48 | .address-item-user-phone{
49 | font-size: 28rpx;
50 | color: #666666;
51 | line-height: 28rpx;
52 | margin-left: 40rpx;
53 | }
54 | .address-item-adddress{
55 | margin-top: 24rpx;
56 | padding: 0 30rpx 44rpx;
57 | box-sizing: border-box;
58 | }
59 | .address-item-adddress-status{
60 | /* width: 64rpx;
61 | height: 30rpx; */
62 | background-image: linear-gradient(-90deg, #F65F5F 0%, #FFD628 100%);
63 | border-radius: 100rpx;
64 | font-size: 22rpx;
65 | line-height: 22rpx;
66 | color: #fff;
67 | padding: 2rpx 14rpx;
68 | margin-right: 20rpx;
69 | }
70 | .address-item-adddress-desc{
71 | font-size: 28rpx;
72 | color: #333333;
73 | line-height: 42rpx;
74 | }
75 | .address-active-line{
76 | height: 4rpx;
77 | background-image: linear-gradient(46deg, #FF0700 0%, #FF9363 100%);
78 | }
79 | .empty-tips{
80 | padding-top: 120rpx;
81 | font-size: 28rpx;
82 | line-height: 28rpx;
83 | text-align: center;
84 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/addressList/data.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | data: {
3 | addressList:[
4 | ]
5 | },
6 | state: {
7 | selectId: 123
8 | },
9 | others: {
10 | pageUrl: "addressListPage"
11 | }
12 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/applyIntroducePage/applyIntroducePage.js:
--------------------------------------------------------------------------------
1 | // page/userCenter/pages/applyIntroducePage/applyIntroducePage.js
2 |
3 | const app = getApp()
4 | const userMs = app.userMs;
5 | const config = userMs.config;
6 |
7 | Page({
8 |
9 | /**
10 | * 页面的初始数据
11 | */
12 | data: {
13 | data:{},
14 | state:{
15 |
16 | },
17 | others:{}
18 | },
19 |
20 | /**
21 | * 生命周期函数--监听页面加载
22 | */
23 | onLoad: function (options) {
24 | wx.setNavigationBarTitle({
25 | title: '成为壹手仓鲜品店主',
26 | })
27 | this.setData({
28 | "state.isIphoneX": app.globalData.isIphoneX
29 | })
30 | },
31 |
32 | /**
33 | * 生命周期函数--监听页面初次渲染完成
34 | */
35 | onReady: function () {
36 |
37 | },
38 |
39 | /**
40 | * 生命周期函数--监听页面显示
41 | */
42 | onShow: function () {
43 |
44 | },
45 |
46 | /**
47 | * 生命周期函数--监听页面隐藏
48 | */
49 | onHide: function () {
50 |
51 | },
52 |
53 | /**
54 | * 生命周期函数--监听页面卸载
55 | */
56 | onUnload: function () {
57 |
58 | },
59 |
60 | /**
61 | * 页面相关事件处理函数--监听用户下拉动作
62 | */
63 | onPullDownRefresh: function () {
64 |
65 | },
66 |
67 | /**
68 | * 页面上拉触底事件的处理函数
69 | */
70 | onReachBottom: function () {
71 |
72 | },
73 |
74 | /**
75 | * 用户点击右上角分享
76 | */
77 | // onShareAppMessage: function () {
78 |
79 | // },
80 | onGoToApplyPageHandler:function(){
81 | wx.navigateTo({
82 | url: '../applyPage/applyPage',
83 | })
84 | },
85 | userInfoHandler: function (e) {
86 | let _this = this;
87 | if (e.detail && e.detail.errMsg === "getUserInfo:fail auth deny") {
88 | wx.navigateTo({
89 | url: '/page/userCenter/pages/login/login',
90 | })
91 | } else {
92 | wx.showLoading({
93 | title: '加载中',
94 | })
95 |
96 | // 当用户允许授权时,调用登录,保存token
97 | wx.showLoading({
98 | title: '授权中...',
99 | });
100 | let url = `${config.ApiRoot}/auth/me`;
101 | let data = {
102 | url,
103 | method: "POST"
104 | };
105 | userMs.request(data).then(res => {
106 | const { data, code } = res.data;
107 | if (code === 10000) {
108 |
109 | if (data) {
110 | if (!data.mobile) {
111 | wx.navigateTo({
112 | url: '/page/userCenter/pages/login/login',
113 | })
114 |
115 | } else {
116 | wx.navigateTo({
117 | url: '../applyPage/applyPage',
118 | })
119 | }
120 | }
121 | }
122 | }).catch(err => {
123 | console.log(err)
124 | })
125 | .finally(res => {
126 | wx.hideLoading()
127 | })
128 |
129 | }
130 | },
131 | })
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/applyIntroducePage/applyIntroducePage.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/applyIntroducePage/applyIntroducePage.wxss:
--------------------------------------------------------------------------------
1 | /* page/userCenter/pages/applyIntroducePage/applyIntroducePage.wxss */
2 | .P-apply-introduce{
3 | font-family: PingFangSC-Medium;
4 | padding-bottom: 120rpx;
5 | }
6 | .P-apply-introduce.isIphoneX{
7 | padding-bottom: 200rpx;
8 | }
9 | .intro-items{
10 | padding: 25rpx 30rpx;
11 | }
12 | .intro-item{
13 | padding-top: 40rpx;
14 | }
15 | .intro-item-title{
16 | position: relative;
17 | width: 304rpx;
18 | height: 64rpx;
19 | text-align: center;
20 | line-height: 64rpx;
21 | font-family: PingFangSC-Semibold;
22 | font-size: 28rpx;
23 | color: #1E6FFF;
24 | }
25 | .intro-item-title image{
26 | width: 304rpx;
27 | height: 64rpx;
28 | position: absolute;
29 | left: 0;
30 | top: 0;
31 | z-index: -1;
32 | }
33 | .intro-item-value{
34 | margin-top: 48rpx;
35 | font-family: PingFangSC-Medium;
36 | font-size: 24rpx;
37 | color: #333333;
38 | line-height: 36rpx;
39 | }
40 | .intro-item-item{
41 | display: flex;
42 | margin-top: 40rpx;
43 | align-items: center;
44 | font-family: PingFangSC-Medium;
45 | font-size: 24rpx;
46 | color: #666666;
47 | line-height: 24rpx;
48 | }
49 | .intro-item-item.more-line{
50 | line-height: 40rpx;
51 | }
52 | .circle-blue{
53 | width: 20rpx;
54 | height: 20rpx;
55 | background: #4B8AF4;
56 | border-radius: 50%;
57 | margin-right: 20rpx;
58 | }
59 | .intro-item-item-value{
60 | flex: 1;
61 | width: 1rpx;
62 | }
63 |
64 |
65 | .intro-logo-container{
66 | margin-top: 86rpx;
67 | text-align: center;
68 | font-size: 0rpx;
69 | }
70 | .intro-logo-container image{
71 | width: 366rpx;
72 | }
73 | .chat-tips{
74 | margin-top: 20rpx;
75 | opacity: 0.9;
76 | font-family: PingFangSC-Medium;
77 | font-size: 22rpx;
78 | color: #333333;
79 | line-height: 22rpx;
80 | }
81 | .footer-container{
82 | position: fixed;
83 | bottom: 0;
84 | left: 0;
85 | right: 0;
86 | background-color: #fff;
87 | z-index: 100;
88 | height: 98rpx;
89 | }
90 | .isIphoneX{
91 | padding-bottom: 72rpx;
92 | }
93 | .btn-apply{
94 | width: 600rpx;
95 | height: 80rpx;
96 | margin: 10rpx auto 0;
97 | background-image: linear-gradient(270deg, #FF0700 0%, #FF9363 100%);
98 | border-radius: 100rpx;
99 | font-size: 38rpx;
100 | color: #FFFFFF;
101 | text-align: center;
102 | line-height: 80rpx;
103 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/applyPage/applyPage.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "alertingTips": "../../../../components/alertingTips/alertingTips"
4 | }
5 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/applyPage/data.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | data: {
3 | region: ['', '', ''],
4 | multiArray: [['全部'], ["全部"], ["全部"]],
5 | multiIndex: [0, 0, 0],
6 | provinceObj: {},
7 | cityObj: {},
8 | countyObj: {},
9 | mobile: "",
10 | code: "",
11 | timer: 0,
12 | agreeStatus: true,
13 | isTrueStatus: true,
14 | shopName: "",
15 | firstStep: false,
16 | secondStep: false,
17 | successStatus: false,
18 | selectCom:{},
19 | chatName:""
20 | },
21 | state: {
22 | phoneWrongStatus:false,
23 | codeWrongStatus:false
24 | },
25 | others: {
26 | pageUrl: "applyPage",
27 |
28 | }
29 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/canvasTest/canvasTest.js:
--------------------------------------------------------------------------------
1 | // pages/canvasTest/canvasTest.js
2 | Page({
3 |
4 | /**
5 | * 页面的初始数据
6 | */
7 | data: {
8 |
9 | },
10 | WidthRadio:1,
11 | windowWidth:375,
12 | /**
13 | * 生命周期函数--监听页面加载
14 | */
15 | onLoad: function (options) {
16 | let _this = this;
17 | wx.getSystemInfo({
18 | success: function (res) {
19 | _this.setWidthRadio(res);
20 | console.log(res.model)
21 | console.log(res.pixelRatio)
22 | console.log(res.windowWidth)
23 | console.log(res.windowHeight)
24 | console.log(res.language)
25 | console.log(res.version)
26 | console.log(res.platform)
27 | }
28 | })
29 | },
30 | setWidthRadio:function(obj){
31 | this.windowWidth = obj.windowWidth;
32 | this.WidthRadio = obj.windowWidth/375;
33 | },
34 | /**
35 | * 生命周期函数--监听页面初次渲染完成
36 | */
37 | onReady: function () {
38 |
39 | },
40 |
41 | /**
42 | * 生命周期函数--监听页面显示
43 | */
44 | onShow: function () {
45 |
46 | },
47 |
48 | /**
49 | * 生命周期函数--监听页面隐藏
50 | */
51 | onHide: function () {
52 |
53 | },
54 |
55 | /**
56 | * 生命周期函数--监听页面卸载
57 | */
58 | onUnload: function () {
59 |
60 | },
61 |
62 | /**
63 | * 页面相关事件处理函数--监听用户下拉动作
64 | */
65 | onPullDownRefresh: function () {
66 |
67 | },
68 |
69 | /**
70 | * 页面上拉触底事件的处理函数
71 | */
72 | onReachBottom: function () {
73 |
74 | },
75 |
76 | /**
77 | * 用户点击右上角分享
78 | */
79 | // onShareAppMessage: function () {
80 |
81 | // },
82 | save:function(){
83 | let windowWidth = this.windowWidth;
84 | let WidthRadio = this.WidthRadio;
85 | console.log("windowWidth", windowWidth)
86 | console.log("WidthRadio", WidthRadio)
87 | const ctx = wx.createCanvasContext('myCanvas');
88 | // ctx.setFontSize(20)
89 | // ctx.fillText('Hello', 20, 20)
90 | // ctx.fillText('MINA', 100, 100)
91 | ctx.clearRect(0, 0, 0, 0);
92 | ctx.setFillStyle("#ffe200");
93 | ctx.fillRect(0, 0, windowWidth, 667);
94 | var path = "../../imgs/item.jpg";
95 | ctx.drawImage(path, (30 * WidthRadio), (30 * WidthRadio), (315*WidthRadio), 183);
96 | // var path2 = "../../imgs/erweima.jpg";
97 | ctx.drawImage(path, (windowWidth - 30 * WidthRadio - 120 * WidthRadio), (230), (120 * WidthRadio), (120 * WidthRadio));
98 |
99 | ctx.setTextAlign('left');
100 |
101 | ctx.setFillStyle("#000000");
102 | ctx.setFontSize(16);
103 | ctx.fillText("必燃特卖欢迎你", 20, 20);
104 |
105 | ctx.draw(true, setTimeout(function () {
106 | wx.canvasToTempFilePath({
107 | x: 0,
108 | y: 0,
109 | // width: windowWidth,
110 | // height: 667,
111 | // destWidth: 150,
112 | // destHeight: 100,
113 | canvasId: 'myCanvas',
114 | success: function (res) {
115 | wx.saveImageToPhotosAlbum({
116 | filePath: res.tempFilePath,
117 | })
118 | }
119 | })
120 | }, 100))
121 | }
122 | })
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/canvasTest/canvasTest.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/canvasTest/canvasTest.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/canvasTest/canvasTest.wxss:
--------------------------------------------------------------------------------
1 | /* pages/canvasTest/canvasTest.wxss */
2 | .canvas {
3 | width:750rpx; box-sizing: border-box; height: 500px;
4 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/closeShop/closeShop.js:
--------------------------------------------------------------------------------
1 | // page/userCenter/pages/closeShop/closeShop.js
2 |
3 | const data = require("./data.js");
4 | //获取应用实例
5 | const app = getApp()
6 | const userMs = app.userMs;
7 | const config = userMs.config;
8 |
9 | Page({
10 |
11 | /**
12 | * 页面的初始数据
13 | */
14 | data: data,
15 |
16 | /**
17 | * 生命周期函数--监听页面加载
18 | */
19 | onLoad: function (options) {
20 | wx.setNavigationBarTitle({
21 | title: '退出合作申请',
22 | })
23 | this.onFetchUserData();
24 | },
25 | /**
26 | * 生命周期函数--监听页面初次渲染完成
27 | */
28 | onReady: function () {
29 |
30 | },
31 |
32 | /**
33 | * 生命周期函数--监听页面显示
34 | */
35 | onShow: function () {
36 |
37 | },
38 |
39 | /**
40 | * 生命周期函数--监听页面隐藏
41 | */
42 | onHide: function () {
43 |
44 | },
45 |
46 | /**
47 | * 生命周期函数--监听页面卸载
48 | */
49 | onUnload: function () {
50 |
51 | },
52 |
53 | /**
54 | * 页面相关事件处理函数--监听用户下拉动作
55 | */
56 | onPullDownRefresh: function () {
57 |
58 | },
59 |
60 | /**
61 | * 页面上拉触底事件的处理函数
62 | */
63 | onReachBottom: function () {
64 |
65 | },
66 |
67 | /**
68 | * 用户点击右上角分享
69 | */
70 | // onShareAppMessage: function () {
71 |
72 | // }
73 | onSubmitHandler:function(){
74 |
75 | },
76 | onInputReasonHandler:function(e){
77 | if (e.detail.value.length <= 200){
78 | this.setData({
79 | "state.canSubmitStatus": true
80 | })
81 | }else{
82 | this.setData({
83 | "state.canSubmitStatus": false
84 | })
85 | }
86 | this.setData({
87 | "state.reason": e.detail.value
88 | })
89 | },
90 | onFetchUserData: function () {
91 | let _this = this;
92 | let url = `${config.ApiRoot}/auth/me`;
93 | let data = {
94 | url,
95 | method: "POST"
96 | };
97 | userMs.request(data).then(res => {
98 | const { data, code } = res.data;
99 | if (code === 10000) {
100 |
101 | if (data) {
102 | if (!data.mobile) {
103 |
104 | _this.setData({
105 | "data.userInfo": data,
106 | });
107 | } else {
108 | let canSeedPhone = data.mobile.substr(0, 3) + '****' + data.mobile.substr(7);
109 | data.canSeedPhone = canSeedPhone;
110 | _this.setData({
111 | "data.userInfo": data,
112 | });
113 | return;
114 | }
115 | }
116 | } else {
117 | throw res;
118 | }
119 | })
120 | .catch(
121 | err => {
122 | console.log(err)
123 | }
124 | ).finally(() => wx.hideLoading());
125 | },
126 | })
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/closeShop/closeShop.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/closeShop/closeShop.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 账户昵称
6 | {{data.userInfo.nickname}}
7 |
8 |
9 | ID号
10 | {{data.userInfo.merchant.id}}
11 |
12 |
13 | 门店
14 | {{data.userInfo.merchant.stores[0].name}}
15 |
16 |
17 |
18 |
19 | 终止原因
20 |
21 |
22 | {{state.reason.length?state.reason.length:0}}/200
23 |
24 |
25 |
26 | 发起申请后,您的帐户仍然可以申请提现
27 |
28 |
29 |
30 |
31 | 提交
32 |
33 |
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/closeShop/closeShop.wxss:
--------------------------------------------------------------------------------
1 | /* page/userCenter/pages/closeShop/closeShop.wxss */
2 | .P-close-shop{
3 | min-height: 100vh;
4 | background-color: #f7f7f7;
5 | padding: 20rpx 0 100rpx;
6 | box-sizing: border-box;
7 | }
8 | .shop-info-item{
9 | display: flex;
10 | height: 100rpx;
11 | align-items: center;
12 | justify-content: space-between;
13 | background-color: #fff;
14 | padding: 0 30rpx;
15 | }
16 | .shop-info-item-text{
17 | font-family: PingFangSC-Medium;
18 | font-size: 32rpx;
19 | color: #333333;
20 | }
21 | .shop-info-item-value{
22 | font-family: PingFangSC-Regular;
23 | font-size: 30rpx;
24 | color: #999999;
25 | }
26 |
27 | .close-reason-content{
28 | margin-top: 20rpx;
29 | background-color: #fff;
30 | height: 640rpx;
31 | padding: 28rpx 38rpx;
32 | box-sizing: border-box;
33 | }
34 | .close-reason-text{
35 | font-family: PingFangSC-Medium;
36 | font-size: 32rpx;
37 | color: #333333;
38 | line-height: 32rpx;
39 | }
40 | .textarea-content{
41 | margin-top: 27rpx;
42 | background: #F7F7F7;
43 | border-radius: 6rpx;
44 | }
45 | .textarea{
46 | width: 100%;
47 | height: 367rpx;
48 | padding: 30rpx;
49 | box-sizing: border-box;
50 | }
51 | .textarea-holder{
52 | font-family: PingFangSC-Regular;
53 | font-size: 24rpx;
54 | color: #CCCCCC;
55 | }
56 | .textarea-num{
57 | text-align: right;
58 | padding-right: 20rpx;
59 | height: 80rpx;
60 | line-height: 80rpx;
61 | font-family: PingFangSC-Regular;
62 | font-size: 24rpx;
63 | color: #CCCCCC;
64 | }
65 | .textarea-num.alert{
66 | color: #ff5e53;
67 | }
68 | .close-reason-tips{
69 | display: flex;
70 | align-items: center;
71 | margin-top: 27rpx;
72 | }
73 | .icon-circle{
74 | width: 8rpx;
75 | height: 8rpx;
76 | border-radius: 50%;
77 | background: #D8D8D8;
78 | }
79 | .close-reason-tips-text{
80 | font-family: PingFangSC-Regular;
81 | font-size: 24rpx;
82 | line-height: 24rpx;
83 | color: #999999;
84 | }
85 |
86 | .btn-submit{
87 | width: 600rpx;
88 | height: 80rpx;
89 | text-align: center;
90 | line-height: 80rpx;
91 | position: fixed;
92 | bottom: 50rpx;
93 | left: 50%;
94 | margin-left: -300rpx;
95 | border-radius: 40rpx;
96 | font-family: PingFangSC-Medium;
97 | font-size: 36rpx;
98 | color: #fff;
99 | }
100 | .btn-submit.active{
101 | background-color: #ff5e53;
102 | }
103 | .btn-submit.disabled{
104 | background-color: #CCCCCC;
105 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/closeShop/data.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | data: {
3 |
4 | },
5 | state: {
6 | canSubmitStatus:true,
7 | reason: "",
8 | maxlength:-1
9 | },
10 | others: {
11 | pageUrl: "closeShopPage"
12 | }
13 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/debug/data.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | data: {
3 | },
4 | state: {
5 | envArr:[
6 | {
7 | name: "正式环境",
8 | value: "ONLINE",
9 | type: "ONLINE"
10 | },
11 | {
12 | name: "测试环境",
13 | value: "TEST",
14 | type: "TEST"
15 | }
16 | ],
17 | envType:"ONLINE"
18 | },
19 | others: {
20 | pageUrl: "debugPage",
21 | }
22 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/debug/debug.js:
--------------------------------------------------------------------------------
1 | // page/userCenter/pages/debug/debug.js
2 | const data = require("./data.js");
3 | const storageHandler = require("../../../../utils/localStorage.js");
4 | const env = require("../../../../config/env.js");
5 | const envConstant = require("../../../../config/constant.js");
6 | // const appName = envConstant.ONLINE; // 正式环境
7 | // const appName = envConstant.TEST; // 测试环境
8 | // const appName = envConstant.DEV; // 开发环境
9 | // const appName = envConstant.LOCAL_NETWORK //本地环境
10 | // const envConfig = env.getEnv(appName);
11 | const app = getApp()
12 | const userMs = app.userMs;
13 | const config = userMs.config;
14 |
15 | Page({
16 |
17 | /**
18 | * 页面的初始数据
19 | */
20 | data: data,
21 |
22 | /**
23 | * 生命周期函数--监听页面加载
24 | */
25 | onLoad: function (options) {
26 | let _this = this;
27 | wx.getStorageInfo({
28 | success(res) {
29 | let arr = []
30 | res.keys.forEach((item,index)=>{
31 | let obj={};
32 | obj.key = item;
33 | obj.value = wx.getStorageSync(item);
34 | arr[index] = obj;
35 | })
36 | _this.setData({
37 | "data.arr": arr
38 | })
39 | // console.log(res.keys)
40 | // console.log(res.currentSize)
41 | // console.log(res.limitSize)
42 | }
43 | })
44 | this.setData({
45 | "state.envType": config.isDEV?"TEST":"ONLINE"
46 | })
47 | },
48 |
49 | /**
50 | * 生命周期函数--监听页面初次渲染完成
51 | */
52 | onReady: function () {
53 |
54 | },
55 |
56 | /**
57 | * 生命周期函数--监听页面显示
58 | */
59 | onShow: function () {
60 |
61 | },
62 |
63 | /**
64 | * 生命周期函数--监听页面隐藏
65 | */
66 | onHide: function () {
67 |
68 | },
69 |
70 | /**
71 | * 生命周期函数--监听页面卸载
72 | */
73 | onUnload: function () {
74 |
75 | },
76 |
77 | /**
78 | * 页面相关事件处理函数--监听用户下拉动作
79 | */
80 | onPullDownRefresh: function () {
81 |
82 | },
83 |
84 | /**
85 | * 页面上拉触底事件的处理函数
86 | */
87 | onReachBottom: function () {
88 |
89 | },
90 | onSelectEnvTypeHandler:function(e){
91 | let index = e.currentTarget.dataset.index;
92 | let type = e.currentTarget.dataset.type;
93 | if(type == this.data.state.envType) return;
94 | this.setData({
95 | "state.envType":type
96 | })
97 | },
98 | onClearStorageHandler:function(){
99 | wx.clearStorageSync();
100 | userMs.state.token = ""
101 | // 清掉本地缓存
102 | wx.reLaunch({
103 | url: '/page/tabBar/index/index',
104 | })
105 | },
106 | onSureChangeEnvHandler:function(){
107 | let type = this.data.state.envType;
108 | const appName = envConstant[type] //本地环境
109 | const envConfig = env.getEnv(appName);
110 | wx.clearStorageSync();
111 | userMs.state.token = ""
112 | config.ApiRoot = envConfig.ApiRoot;
113 | config.isDEV = envConfig.isDEV;
114 | config.preFix = envConfig.preFix;
115 | // userMs.config = {
116 | // ...config,
117 | // ApiRoot: envConfig.ApiRoot,
118 | // isDEV: envConfig.isDEV,
119 | // preFix: envConfig.preFix
120 | // }
121 | // console.log(userMs)
122 | wx.reLaunch({
123 | url: '/page/tabBar/index/index',
124 | })
125 | }
126 | })
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/debug/debug.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/debug/debug.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {{item.key}}
6 |
7 | {{item.value}}
8 |
9 |
10 |
11 |
12 |
13 | 切换环境
14 |
15 |
16 |
17 | {{item.name}}
18 |
19 | 切换环境
20 |
21 |
22 |
23 | 该操作会把本地数据全部清掉哦
24 |
25 | 清除本地数据
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/debug/debug.wxss:
--------------------------------------------------------------------------------
1 | /* page/userCenter/pages/debug/debug.wxss */
2 | .P-debug{
3 | padding-bottom: 120rpx;
4 | }
5 | .local-storage-items{
6 | padding: 30rpx;
7 | }
8 | .local-storage-item{
9 | display: flex;
10 | margin-top: 30rpx;
11 | word-break: break-all;
12 | }
13 | .local-storage-item-text{
14 | width: 200rpx;
15 | }
16 | .local-storage-item-value{
17 | flex: 1;
18 | margin-left: 20rpx;
19 | }
20 | .env-change-container{
21 | padding: 30rpx;
22 | }
23 | .select-env{
24 | display: flex;
25 | align-items: center;
26 | }
27 | .select-env image{
28 | width: 40rpx;
29 | height: 40rpx;
30 | margin-right: 20rpx;
31 | }
32 | .submit-buttom{
33 | width: 600rpx;
34 | height: 80rpx;
35 | line-height: 80rpx;
36 | text-align: center;
37 | margin: 30rpx auto 0;
38 | border-radius: 100rpx;
39 | background-color: #ff5e53;
40 | color: #fff;
41 | }
42 | .actions-box{
43 | padding-top: 100rpx;
44 | }
45 | .action-btn{
46 | width: 600rpx;
47 | height: 80rpx;
48 | line-height: 80rpx;
49 | text-align: center;
50 | margin: 30rpx auto 0;
51 | border-radius: 100rpx;
52 | color: #fff;
53 | }
54 | .action-btn.clear{
55 | background-color: #ccc;
56 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/invitePage/data.js:
--------------------------------------------------------------------------------
1 | module.exports={
2 | data:{},
3 | state:{
4 | shareBoxStatus: false,
5 | savePicBoxStatus: false,
6 | needOpenSettingBtn: false
7 | },
8 | others:{
9 | pageUrl: "invitePage"
10 | }
11 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/invitePage/invitePage.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "alertingTips": "../../../../components/alertingTips/alertingTips"
4 | }
5 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/login/data.js:
--------------------------------------------------------------------------------
1 | // const app = getApp();
2 | const data = {
3 | data: {
4 | },
5 | state: {
6 | secondTime: 0,
7 | firstStepStatus: false,
8 | secondStepStatus: false
9 | },
10 | others:{
11 | pageUrl: "login"
12 | }
13 | }
14 | module.exports = data;
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/login/login.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "alertingTips": "../../../../components/alertingTips/alertingTips"
4 | }
5 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/login/login.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | 壹手仓鲜品欢迎您
9 | 需要允许授权才可以使用壹手仓所有服务
10 |
11 |
12 |
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 | {{state.secondTime}}s
41 |
42 |
43 |
44 |
47 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/logistics/logistics.js:
--------------------------------------------------------------------------------
1 | // pages/logistics/logistics.js
2 | //获取应用实例
3 | const app = getApp()
4 | const userMs = app.userMs;
5 | const config = userMs.config;
6 | Page({
7 |
8 | /**
9 | * 页面的初始数据
10 | */
11 | data: {
12 | emptyTips:"暂无物流信息"
13 | },
14 |
15 | /**
16 | * 生命周期函数--监听页面加载
17 | */
18 | onLoad: function (options) {
19 | wx.setNavigationBarTitle({
20 | title: '物流信息'
21 | })
22 | let _this = this;
23 | if(options.id){
24 | this.setData({
25 | "state.tracking_number": options.id
26 | })
27 | this.fetchData(options.id);
28 | }
29 |
30 | },
31 | fetchData: function (id) {
32 | let url = `${config.ApiRoot}/orders/logistic/${id}`;
33 | const _this = this;
34 | wx.showLoading({
35 | title: '查询中',
36 | })
37 | let data = {
38 | url,
39 | method: 'GET'
40 | }
41 | userMs.request(data).then(res => {
42 | const {code,data,msg} = res.data;
43 | if(code === 10000){
44 | _this.setData({
45 | "logistics": data
46 | })
47 | }else{
48 | _this.setData({
49 | "emptyTips": msg
50 | })
51 | }
52 |
53 |
54 | }).catch(
55 | err => {
56 | console.log(err)
57 | }
58 | ).finally(() => wx.hideLoading());
59 |
60 | },
61 |
62 | /**
63 | * 生命周期函数--监听页面初次渲染完成
64 | */
65 | onReady: function () {
66 |
67 | },
68 |
69 | /**
70 | * 生命周期函数--监听页面显示
71 | */
72 | onShow: function () {
73 |
74 | },
75 |
76 | /**
77 | * 生命周期函数--监听页面隐藏
78 | */
79 | onHide: function () {
80 |
81 | },
82 |
83 | /**
84 | * 生命周期函数--监听页面卸载
85 | */
86 | onUnload: function () {
87 |
88 | },
89 |
90 | /**
91 | * 页面相关事件处理函数--监听用户下拉动作
92 | */
93 | onPullDownRefresh: function () {
94 |
95 | },
96 |
97 | /**
98 | * 页面上拉触底事件的处理函数
99 | */
100 | onReachBottom: function () {
101 |
102 | },
103 |
104 | onCallPhone:function(e){
105 | wx.showActionSheet({
106 | itemList: ['18813750848'],
107 | success: function (res) {
108 | wx.makePhoneCall({
109 | phoneNumber: '18813750848' //仅为示例,并非真实的电话号码
110 | })
111 | },
112 | fail: function (res) {
113 | console.log(res.errMsg)
114 | }
115 | })
116 |
117 | }
118 | })
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/logistics/logistics.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "emptyTips": "../../../../components/emptyTips/emptyTips"
4 | }
5 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/logistics/logistics.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
21 |
22 |
23 |
24 | {{item.AcceptStation}}
25 |
26 |
27 | {{item.AcceptTime}}
28 |
29 |
30 |
31 |
32 |
33 | {{emptyTips}}
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/logistics/logistics.wxss:
--------------------------------------------------------------------------------
1 | /* pages/logistics/logistics.wxss */
2 | .logistics-page{
3 | min-height: 100vh;
4 | background-color: #f4f4f4;
5 | }
6 | .header{
7 | position: relative;
8 | padding: 30rpx;
9 | background-color: #fff;
10 | }
11 | .header .item{
12 | font-size: 32rpx;
13 | line-height: 32rpx;
14 | margin-top: 20rpx;
15 | }
16 | .header .item .word{
17 | color: #333;
18 | display: inline-block;
19 | min-width: 132rpx;
20 | }
21 | .header .item .number{
22 | margin-left: 30rpx;
23 | }
24 | button.contact{
25 | position: absolute;
26 | right: 30rpx;
27 | top: 40rpx;
28 | display: flex;
29 | align-items: center;
30 | font-size: 32rpx;
31 | background-color: #fff;
32 | padding-right: 0px;
33 | color: #ff8459;
34 | }
35 | button.contact image{
36 | width: 36rpx;
37 | height: 36rpx;
38 | margin-right: 20rpx;
39 | }
40 | .content{
41 | margin-top: 20rpx;
42 | padding: 30rpx;
43 | background-color: #fff;
44 | }
45 | .desc-item{
46 | border-left: 2px solid #ddd;
47 | font-size: 28rpx;
48 | line-height: 28rpx;
49 | padding-left: 40rpx;
50 | padding-bottom: 60rpx;
51 | position: relative;
52 | }
53 | .desc-item:first-child .desc{
54 | color: #ff8459;
55 | }
56 | .desc-item .desc{
57 | line-height: 48rpx;
58 | color: #333;
59 | }
60 | .desc-item .time{
61 | margin-top: 20rpx;
62 | color: #999;
63 | }
64 | .cicle-icon{
65 | position: absolute;
66 | left: -14rpx;
67 | top: 0rpx;
68 | width: 20rpx;
69 | height: 20rpx;
70 | border-radius: 50%;
71 | background-color: #666;
72 | }
73 | .empty-tips{
74 | margin-top: 160rpx;
75 | text-align: center;
76 | font-size: 28rpx;
77 | line-height: 28rpx;
78 | color: #999;
79 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/orderDetail/data.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | data: {
3 | countDown: '00:00',
4 | orderDetail: {
5 | // complete_address: "内蒙古自治区呼和浩特市新城区北京北京市东城区111",
6 | // confirm_time: 0,
7 | // contact: "111",
8 | // create_time: 1540202626,
9 | // freight: 0,
10 | // has_after_sale: 0,
11 | // items: [{
12 | // amount: 1390,
13 | // application_id: null,
14 | // goods_logo: "https://static.newkr.net/goods/20180914/135241-DnCaQ5GCRHBc0NrI.jpg",
15 | // goods_name: "即食蚕蛹五香多口味高营养高蛋白补品两袋250克",
16 | // has_after_sale: 0,
17 | // id: 273,
18 | // number: 1,
19 | // real_price: 1390,
20 | // sku_name: "2袋",
21 | // tracking_number: "",
22 | // }],
23 | // mobile: "18813750848",
24 | // order_id: "20181022180346813013",
25 | // order_status: 0,
26 | // order_status_desc: "待付款",
27 | // pay_type: "微信支付",
28 | // trade_no: "201810221803468422672889",
29 | },
30 | objectProdetail:null
31 | },
32 | state: {
33 | shareGroupStatus:false
34 | },
35 | others: {
36 | pageUrl: "orderDetailPage"
37 | }
38 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/orderDetail/orderDetail.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "comfirmTips": "../../../../components/comfirmTips/comfirmTips",
4 | "alertingTips": "../../../../components/alertingTips/alertingTips"
5 | }
6 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/orderList/data.js:
--------------------------------------------------------------------------------
1 | // const app = getApp();
2 | const data = {
3 | data: {
4 | allData: {
5 | all: {
6 | label: 'all',
7 | name: '全部',
8 | orders: []
9 | },
10 | waitpay: {
11 | label: 'waitpay',
12 | name: '待付款',
13 | orders: []
14 | },
15 | shipping: {
16 | label: 'shipping',
17 | name: '待发货',
18 | orders: []
19 | },
20 | shipped: {
21 | label: 'shipped',
22 | name: '配送中',
23 | orders: []
24 | },
25 | success: {
26 | label: 'success',
27 | name: '交易成功',
28 | orders: []
29 | },
30 | },
31 | products:[]
32 | },
33 | state: {
34 | selectedLabel: "all",
35 | filters: [
36 | { type: "all", label: "全部",value:-2 },
37 | { type: "waitpay", label: "待付款", num: 0, value: 0,},
38 | // { type: "grouping", label: "拼团中", num: 0, value: 7, },
39 | { type: "shipping", label: "待发货", value: 2,},
40 | { type: "shipped", label: "配送中", value: 3, },
41 | { type: "success", label: "待自提", value: 6, },
42 | // { type: "afterSale", label: "退换/售后",}
43 | // { type: "refund", label: "退款" }
44 | ],
45 | selectedFilterItemIndex: 0,
46 | alertingStatus: false,
47 | alertingWords: "",
48 | actionObj:{
49 | submit:"",
50 | cancel:"",
51 | cancelWord:"",
52 | submitWord:""
53 | }
54 | },
55 | others: {
56 | pageUrl: "orderListPage"
57 | }
58 | }
59 | module.exports = data;
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/orderList/orderList.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "loadMore": "../../../../components/loadMore/loadMore",
4 | "comfirmTips": "../../../../components/comfirmTips/comfirmTips",
5 | "alertingTips": "../../../../components/alertingTips/alertingTips"
6 | }
7 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/redPackage/data.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | data:{
3 | allData:{
4 | actived:{
5 | data:[
6 | // {
7 | // isUsed:false
8 | // }
9 | ]
10 | },
11 | used: {
12 | data: [
13 | // {
14 | // isUsed: true
15 | // },
16 | // {
17 | // isUsed: true
18 | // }
19 | ]
20 | }
21 | }
22 | },
23 | state:{
24 | filters:[
25 | { label: "未使用", status: 2, type:"actived" },
26 | { label: "使用记录", status: 1,type:"used" }
27 | ],
28 | selectFilterIndex:0,
29 | selectFilterType:"actived",
30 | emptyIcon:"/imgs/icon-empty-package.png",
31 | emptyTips:"您还没有该状态红包哦~"
32 | },
33 | others:{
34 | pageUrl:"redPackage"
35 | }
36 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/redPackage/redPackage.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "emptyTips": "../../../../components/emptyTips/emptyTips",
4 | "packageItem":"../../../../components/packageItemMe/packageItemMe",
5 | "loadMore": "../../../../components/loadMore/loadMore"
6 | }
7 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/redPackage/redPackage.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/redPackage/redPackage.wxss:
--------------------------------------------------------------------------------
1 | /* page/userCenter/pages/redPackage/redPackage.wxss */
2 | .P-red-package{
3 | height: 100vh;
4 | background-color: #f7f7f7;
5 | display: flex;
6 | flex-direction: column;
7 | padding-top: 106rpx;
8 | box-sizing: border-box;
9 | }
10 | .nav-header{
11 | height: 106rpx;
12 | background-color: #fff;
13 | position: fixed;
14 | top: 0;
15 | left: 0;
16 | right: 0;
17 | z-index: 2;
18 | display: flex;
19 | }
20 | .nav-item{
21 | flex: 1;
22 | text-align: center;
23 | }
24 | .nav-item-text{
25 | margin-top: 42rpx;
26 | font-family: PingFangSC-Regular;
27 | font-size: 28rpx;
28 | color: #646464;
29 | line-height: 40rpx;
30 | }
31 | .nav-item-text.active{
32 | font-family: PingFangSC-Semibold;
33 | color: #2B2A3A;
34 | }
35 | .nav-bottom-line{
36 | margin: 10rpx auto 0;
37 | width:40rpx;
38 | height:14rpx;
39 | border-radius:100rpx;
40 | background-color:#1E6FFF;
41 | }
42 | .red-package-list{
43 | flex: 1;
44 | height: 1;
45 | padding: 10rpx 36rpx;
46 | box-sizing: border-box;
47 | overflow-y: scroll;
48 | }
49 |
50 |
51 |
52 | .red-package-empty{
53 | padding-top: 204rpx;
54 | text-align: center;
55 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/returnDetailPage/data.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | data: {
3 | orderDetail:{},
4 | returnItem:{},
5 | },
6 | state: {},
7 | others: {
8 | pageUrl: "returnDetailPage"
9 | }
10 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/returnDetailPage/returnDetailPage.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "alertingTips": "../../../../components/alertingTips/alertingTips"
4 | }
5 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/returnPage/data.js:
--------------------------------------------------------------------------------
1 | module.exports={
2 | data:{
3 | tempFilePathsLocal:[], // 本地图片
4 | orderDetail:{},
5 | returnItem:{},
6 | tempFilePathsNet:[], // 已经上传过的图片
7 | },
8 | state:{
9 | chooseReturnTypeStatus:true,
10 | returnTypes:[
11 | { name: "仅退款", type: 2, desc:"未收到货(包含未签收)" },
12 | { name: "退款退货", type: 1, desc:"因质量、错发等问题需要退货退款"},
13 | { name: "换货", type: 3, desc:"因尺寸、错发等问题需要换货" },
14 | ],
15 | selectReturnTypeItem:{},
16 | apply_reason:"",
17 | returnMoney:"",
18 | remark:""
19 | },
20 | others:{
21 | pageUrl:"returnPage"
22 | }
23 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/returnPage/returnPage.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "alertingTips": "../../../../components/alertingTips/alertingTips",
4 | "orderItem": "../../../../components/orderItem/orderItem"
5 | }
6 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/saleData/data.js:
--------------------------------------------------------------------------------
1 | // const app = getApp();
2 | const data = {
3 | data: {
4 |
5 | },
6 | state: {
7 | saleTypeFilters: [
8 | { name: "全部订单", type: "all", value:-2},
9 | { name: "已付款", type: "pay", value: 2 },
10 | { name: "已结算", type: "check", value: 4 },
11 | { name: "已失效", type: "timeout", value: -1 },
12 | ],
13 | selectSaleType:"all",
14 | selectSaleTypeIndex:0,
15 | },
16 | others: {
17 | pageUrl: "saleDataPage"
18 | }
19 | }
20 | module.exports = data;
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/saleData/saleData.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "loadMore": "../../../../components/loadMore/loadMore"
4 | }
5 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/saleOrderList/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/page/userCenter/pages/saleOrderList/.DS_Store
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/saleOrderList/data.js:
--------------------------------------------------------------------------------
1 | const data = {
2 | data: {
3 |
4 | },
5 | state: {
6 | saleTypeFilters: [
7 | { label: "全部订单", type: "all", value: -2 },
8 | { label: "已付款", type: "pay", value: 2 },
9 | { label: "已结算", type: "check", value: 5 },
10 | { label: "已失效", type: "timeout", value: -1 },
11 | ],
12 | selectSaleType: "all",
13 | selectSaleTypeIndex: 0,
14 | saleTimeFilters: [
15 | { label: "全部", type: "all", value: 0 },
16 | { label: "七天内", type: "week", value: 1 },
17 | { label: "本月", type: "month", value: 2 },
18 | { label: "上月", type: "lastMonth", value: 3 },
19 | ],
20 | selectSaleTime: "all",
21 | selectSaleTimeIndex: 0,
22 | },
23 | others: {
24 | pageUrl: "saleOrderListPage"
25 | }
26 | }
27 | module.exports = data;
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/saleOrderList/saleOrderList.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "loadMore": "../../../../components/loadMore/loadMore",
4 | "comfirmTips": "../../../../components/comfirmTips/comfirmTips",
5 | "alertingTips": "../../../../components/alertingTips/alertingTips"
6 | }
7 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/sellerInfo/data.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | data: {
3 | },
4 | state: {
5 | },
6 | others: {
7 | pageUrl: "sellerInfoPage"
8 | }
9 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/sellerInfo/sellerInfo.js:
--------------------------------------------------------------------------------
1 | // page/userCenter/pages/sellerInfo/sellerInfo.js
2 |
3 | const app = getApp();
4 | // const wxApi = require("../../utils/wxApi.js");
5 | const data = require("./data.js");
6 | const userMs = app.userMs;
7 | const config = userMs.config;
8 | // const util = require("../../utils/util.js");
9 | const UtilActions = require("../../../../class/utilActions.js");
10 | let utilActions = new UtilActions;
11 |
12 | Page({
13 |
14 | /**
15 | * 页面的初始数据
16 | */
17 | data: data,
18 |
19 | /**
20 | * 生命周期函数--监听页面加载
21 | */
22 | onLoad: function (options) {
23 | wx.setNavigationBarTitle({
24 | title: '店主信息',
25 | })
26 | let last_user_store_id = wx.getStorageSync("last_user_store_id");
27 | if (last_user_store_id) {
28 | this.getStoreIdAddress(last_user_store_id);
29 | }
30 | },
31 | getStoreIdAddress: function (id) {
32 | let _this = this;
33 | let url = `${config.ApiRoot}/store/related-merchant`;
34 |
35 | let data = {
36 | url,
37 | data: {
38 | store_id: id
39 | }
40 | }
41 | userMs.request(data)
42 | .then(res => {
43 | const { data, code, msg } = res.data
44 | if (code == 10000) {
45 | if (data) {
46 | // if (data.contact.length>2){
47 | // let shadowText = "";
48 | // for (let i = 0; i < data.contact.length-2;i++){
49 | // shadowText += "*";
50 | // }
51 | // data.canSeedName = data.contact.substr(0, 1) + shadowText + data.contact.substr(data.contact.length - 1);
52 | // } else if (data.contact.length == 2){
53 | // data.canSeedName = data.contact.substr(0, 1) + "*";
54 | // }
55 | // let canSeedPhone = data.mobile.substr(0, 3) + '****' + data.mobile.substr(7);
56 | // data.canSeedPhone = canSeedPhone;
57 | data.canSeedName = utilActions.formateToShadowText(1, 1, data.contact);
58 | data.canSeedMobile = utilActions.formateToShadowText(3, 4, data.mobile);
59 | this.setData({
60 | "data.userInfo": data,
61 | })
62 | } else {
63 | // this.onGetAddressList();
64 | }
65 | } else {
66 | throw res;
67 | }
68 | })
69 | .catch(err => {
70 | console.log(err)
71 | })
72 | .finally(res => {
73 | wx.hideLoading();
74 | })
75 | },
76 | /**
77 | * 生命周期函数--监听页面初次渲染完成
78 | */
79 | onReady: function () {
80 |
81 | },
82 |
83 | /**
84 | * 生命周期函数--监听页面显示
85 | */
86 | onShow: function () {
87 |
88 | },
89 |
90 | /**
91 | * 生命周期函数--监听页面隐藏
92 | */
93 | onHide: function () {
94 |
95 | },
96 |
97 | /**
98 | * 生命周期函数--监听页面卸载
99 | */
100 | onUnload: function () {
101 |
102 | },
103 |
104 | /**
105 | * 页面相关事件处理函数--监听用户下拉动作
106 | */
107 | onPullDownRefresh: function () {
108 |
109 | },
110 |
111 | /**
112 | * 页面上拉触底事件的处理函数
113 | */
114 | onReachBottom: function () {
115 |
116 | },
117 |
118 | /**
119 | * 用户点击右上角分享
120 | */
121 | // onShareAppMessage: function () {
122 |
123 | // }
124 | })
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/sellerInfo/sellerInfo.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/sellerInfo/sellerInfo.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
15 |
16 |
17 |
18 |
19 |
20 |
21 | 姓名
22 | {{data.userInfo.canSeedName}}
23 |
24 |
25 | 电话
26 | {{data.userInfo.canSeedMobile}}
27 |
28 |
29 | 小区
30 | {{data.userInfo.community_name}}
31 |
32 |
33 | 详细地址
34 | {{data.userInfo.store_address}}
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/sellerInfo/sellerInfo.wxss:
--------------------------------------------------------------------------------
1 | /* page/userCenter/pages/sellerInfo/sellerInfo.wxss */
2 |
3 | .header-container{
4 | background-color: #fff;
5 | display: flex;
6 | align-items: center;
7 | justify-content: space-between;
8 | padding: 24rpx 25rpx 26rpx;
9 | font-family: PingFangSC-Medium;
10 | }
11 | .title-container{
12 | display: flex;
13 | align-items: center;
14 | font-size: 34rpx;
15 | color: #000000;
16 | }
17 | .title-container image{
18 | width: 44rpx;
19 | height: 44rpx;
20 | margin-right: 12rpx;
21 | }
22 | .chat-btn{
23 | flex: 1;
24 | display: flex;
25 | align-items: center;
26 | justify-content: center;
27 | font-size: 24rpx;
28 | color: #333333;
29 | }
30 | .chat-btn image{
31 | width: 44rpx;
32 | height: 44rpx;
33 | margin-right: 4rpx
34 | }
35 | .seller-info-container{
36 | margin-top: 76rpx;
37 | padding-left: 90rpx;
38 | }
39 | .seller-avatar-content image{
40 | width: 160rpx;
41 | height: 160rpx;
42 | border-radius: 20rpx;
43 | background-color: #ccc;
44 | display: block;
45 | }
46 | .seller-info-item{
47 | margin-top: 50rpx;
48 | font-family: PingFangSC-Medium;
49 | font-size: 28rpx;
50 | line-height: 32rpx;
51 | }
52 | .seller-info-item:nth-child(2){
53 | margin-top: 30rpx;
54 | }
55 | .seller-info-text{
56 | color: #999999;
57 | }
58 | .seller-info-value{
59 | color: #333;
60 | margin-top: 20rpx;
61 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/sharePackage/data.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | data: {
3 | newUserPackages:[],
4 | },
5 | state: {
6 | },
7 | others: {
8 | pageUrl: "sharePackage"
9 | }
10 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/sharePackage/sharePackage.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "packageItem": "../../../../components/packageItem/packageItem",
4 | "alertingTips": "../../../../components/alertingTips/alertingTips"
5 | }
6 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/withdrawIntroPage/withdrawIntroPage.js:
--------------------------------------------------------------------------------
1 | // page/userCenter/pages/withdrawIntroPage/withdrawIntroPage.js
2 | Page({
3 |
4 | /**
5 | * 页面的初始数据
6 | */
7 | data: {
8 |
9 | },
10 |
11 | /**
12 | * 生命周期函数--监听页面加载
13 | */
14 | onLoad: function (options) {
15 | wx.setNavigationBarTitle({
16 | title: '提现',
17 | })
18 | },
19 |
20 | /**
21 | * 生命周期函数--监听页面初次渲染完成
22 | */
23 | onReady: function () {
24 |
25 | },
26 |
27 | /**
28 | * 生命周期函数--监听页面显示
29 | */
30 | onShow: function () {
31 |
32 | },
33 |
34 | /**
35 | * 生命周期函数--监听页面隐藏
36 | */
37 | onHide: function () {
38 |
39 | },
40 |
41 | /**
42 | * 生命周期函数--监听页面卸载
43 | */
44 | onUnload: function () {
45 |
46 | },
47 |
48 | /**
49 | * 页面相关事件处理函数--监听用户下拉动作
50 | */
51 | onPullDownRefresh: function () {
52 |
53 | },
54 |
55 | /**
56 | * 页面上拉触底事件的处理函数
57 | */
58 | onReachBottom: function () {
59 |
60 | },
61 |
62 | /**
63 | * 用户点击右上角分享
64 | */
65 | // onShareAppMessage: function () {
66 |
67 | // }
68 | })
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/withdrawIntroPage/withdrawIntroPage.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/withdrawIntroPage/withdrawIntroPage.wxss:
--------------------------------------------------------------------------------
1 | /* page/userCenter/pages/withdrawIntroPage/withdrawIntroPage.wxss */
2 |
3 | .recommend-lists-title{
4 | font-size: 38rpx;
5 | color: #FF301D;
6 | line-height: 38rpx;
7 | padding: 30rpx 0 0rpx;
8 | margin-top: 20rpx;
9 | display: flex;
10 | align-items: center;
11 | justify-content: center;
12 | }
13 | .recommend-lists-title image{
14 | width: 30rpx;
15 | height: 15rpx;
16 | }
17 | .recommend-lists-title text{
18 | margin: 0 10rpx;
19 | }
20 |
21 | .withdraw-intro-title{
22 | width: 653rpx;
23 | margin: 58rpx auto 0;
24 | text-indent: 40rpx;
25 | font-family: PingFangSC-Medium;
26 | font-size: 24rpx;
27 | color: #666666;
28 | line-height: 36rpx;
29 | }
30 | .image-box{
31 | text-align: center;
32 | margin-top: 30rpx;
33 | }
34 | .image-box image{
35 | width: 460rpx;
36 | height: 78rpx;
37 | }
38 | /* .intro-items{
39 | margin-top: 42rpx;
40 | } */
41 | .intro-item{
42 | margin-top: 40rpx;
43 | }
44 | .intro-item-title{
45 | font-family: PingFangSC-Regular;
46 | font-size: 28rpx;
47 | color: #fff;
48 | width: 148rpx;
49 | height: 42rpx;
50 | line-height: 42rpx;
51 | background-color: #ff5e53;
52 | border-radius: 20rpx;
53 | margin-left: 40rpx;
54 | text-align: center;
55 | }
56 | .intro-item-list{
57 | margin-top: 6rpx;
58 | border: 1rpx solid transparent;
59 | }
60 | .intro-item-list-item{
61 | margin-top: 24rpx;
62 | padding: 0 40rpx 0 65rpx;
63 | }
64 | .intro-item-list-item.big{
65 | margin-top: 30rpx;
66 | }
67 | .intro-item-list-item-title{
68 | display: flex;
69 | align-items: center;
70 | font-family: PingFangSC-Regular;
71 | font-size: 26rpx;
72 | color: #333;
73 | line-height: 26rpx;
74 | }
75 | .icon-cicle{
76 | width: 10rpx;
77 | height: 10rpx;
78 | background-color: #ff5e53;
79 | border-radius: 50%;
80 | margin-right: 10rpx;
81 | }
82 | .intro-item-list-item-value{
83 | margin-top: 14rpx;
84 | font-family: PingFangSC-Regular;
85 | font-size: 24rpx;
86 | color: #666;
87 | line-height: 36rpx;
88 | padding-left: 30rpx;
89 | }
90 | .intro-item-list-item-others{
91 | margin-top: 16rpx;
92 | font-family: PingFangSC-Regular;
93 | font-size: 24rpx;
94 | color: #ff5e53;
95 | line-height: 24rpx;
96 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/withdrawPage/data.js:
--------------------------------------------------------------------------------
1 | module.exports={
2 | data:{
3 | balance:{},
4 | widthdrawLists:[],
5 | amount:""
6 | },
7 | state:{
8 | firstStep: true,
9 | secondStep: false,
10 | thirdStep: false
11 | },
12 | others:{
13 | pageUrl:"withdrawPage"
14 | }
15 | }
--------------------------------------------------------------------------------
/communityBuying/page/userCenter/pages/withdrawPage/withdrawPage.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "alertingTips": "../../../../components/alertingTips/alertingTips"
4 | }
5 | }
--------------------------------------------------------------------------------
/communityBuying/sitemap.json:
--------------------------------------------------------------------------------
1 | {
2 | "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
3 | "rules": [{
4 | "action": "allow",
5 | "page": "*"
6 | }]
7 | }
--------------------------------------------------------------------------------
/communityBuying/style/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/style/.DS_Store
--------------------------------------------------------------------------------
/communityBuying/style/font/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/reference-project/zzc--/f91e6f06d923c400cf31d22af87246df7cc3ce46/communityBuying/style/font/.DS_Store
--------------------------------------------------------------------------------
/communityBuying/utils/Eventa.js:
--------------------------------------------------------------------------------
1 | var events = {};
2 |
3 | function on(name, self, callback) {
4 | var tuple = [self, callback];
5 | var callbacks = events[name];
6 | if (Array.isArray(callbacks)) {
7 | callbacks.push(tuple);
8 | }
9 | else {
10 | events[name] = [tuple];
11 | }
12 | }
13 |
14 | function remove(name, self) {
15 | var callbacks = events[name];
16 | if (Array.isArray(callbacks)) {
17 | events[name] = callbacks.filter((tuple) => {
18 | return tuple[0] != self;
19 | })
20 | }
21 | }
22 |
23 | function emit(name, data) {
24 | var callbacks = events[name];
25 | if (Array.isArray(callbacks)) {
26 | callbacks.map((tuple) => {
27 | var self = tuple[0];
28 | var callback = tuple[1];
29 | callback.call(self, data);
30 | })
31 | }
32 | }
33 |
34 | exports.on = on;
35 | exports.remove = remove;
36 | exports.emit = emit;
--------------------------------------------------------------------------------
/communityBuying/utils/event.js:
--------------------------------------------------------------------------------
1 | // 事件总线对象
2 | var Event = {
3 | // 触发事件的方法
4 | // emit(event, ...params) {
5 | // 这样传递参数,会在on中,以数组形式接收到
6 | emit(event, params) { // 对象形式接收到
7 | this.eventList[event] && this.eventList[event].forEach((e, index, eventList) => {
8 | e.callback(params);
9 | if (e.once) {
10 | // 如果是一次性事件监听器,则移除
11 | eventList.splice(index, 1)
12 | }
13 | })
14 | },
15 | // 注册事件监听器
16 | on(event, callback, once) {
17 | // 如果还没有该事件的监听器队列,则创建一个
18 | if (!this.eventList[event]) {
19 | this.eventList[event] = [];
20 | }
21 | // 新建一个事件监听器对象,并将监听器保存为 callback 属性
22 | let eObj = {
23 | callback: callback
24 | }
25 | // 如果是一次性的,就添加一个标记
26 | if (once) {
27 | eObj.once = true
28 | }
29 | // 添加到事件监听器队列中
30 | this.eventList[event].push(eObj)
31 | },
32 | // 注册一次性事件监听器
33 | once(event, callback) {
34 | this.on(event, callback, true);
35 | },
36 | // 移除事件监听器
37 | off(event, callback) {
38 | if (!event) {
39 | // 如果没有提供参数,则移除所有的事件监听器
40 | this.eventList = {}
41 | } else if (!callback) {
42 | // 如果只提供了事件,则移除该事件所有的监听器
43 | this.eventList[event] = []
44 | } else {
45 | // 如果同时提供了事件与回调,则只移除这个回调的监听器
46 | let index = this.eventList[event].indexOf(callback);
47 | this.eventList[event].splice(index, 1)
48 | }
49 | },
50 | // 事件列表
51 | eventList: {}
52 | }
53 | module.exports = Event;
--------------------------------------------------------------------------------
/communityBuying/utils/filter.wxs:
--------------------------------------------------------------------------------
1 | var toolFr ={
2 | accumulationFn:function(arry){
3 | var goodNumber=0;
4 | arry.forEach(function(item){
5 | if(item.number){
6 | goodNumber += Number(item.number)
7 | }
8 | });
9 | return goodNumber
10 | }
11 | }
12 |
13 | module.exports = {
14 | accumulationFn: toolFr.accumulationFn
15 | }
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/communityBuying/utils/localStorage.js:
--------------------------------------------------------------------------------
1 | const app = getApp()
2 | const userMs = app.userMs;
3 | const config = userMs.config;
4 |
5 | const getStorage = (key) => {
6 | return wx.getStorageSync(config.preFix+key)
7 | }
8 | const setStorage = (key,value) => {
9 | wx.setStorageSync(config.preFix + key, value)
10 | }
11 | const removeStorage = (key) => {
12 | wx.removeStorageSync(config.preFix + key);
13 | }
14 | module.exports = {
15 | getStorage: getStorage,
16 | setStorage: setStorage,
17 | removeStorage: removeStorage
18 | }
--------------------------------------------------------------------------------
/communityBuying/utils/wxApi.js:
--------------------------------------------------------------------------------
1 | // promise 实现封装wx的所有api
2 |
3 | let nullFn = () => {
4 | console.log("complete")
5 | };
6 |
7 | function promisify(fn) {
8 | return function (data = {}) {
9 | Promise.prototype.finally = function (callback) {
10 | let P = this.constructor;
11 | return this.then(
12 | value => P.resolve(callback()).then(() => value),
13 | reason => P.resolve(callback()).then(() => { throw reason })
14 | );
15 | };
16 | return new Promise((resolve, reject) => {
17 | data.success = function (res) {
18 | resolve(res);
19 | };
20 | data.fail = function (res) {
21 | reject(res);
22 | };
23 | data.complete = nullFn;
24 | fn(data);
25 | });
26 | };
27 | }
28 |
29 | const wxApi = {};
30 |
31 | for (let key in wx) {
32 | wxApi[key] = promisify(wx[key]);
33 | }
34 |
35 | module.exports = wxApi;
36 |
--------------------------------------------------------------------------------
/communityBuying/utils/wxApiProxy.js:
--------------------------------------------------------------------------------
1 | // proxy 实现封装wx的所有api
2 |
3 | let nullFn = () => {
4 | };
5 | console.log(wx);
6 |
7 | function IllegalAPIException(name) {
8 | this.message = "No Such API [" + name + "]";
9 | this.name = 'IllegalAPIException';
10 | }
11 | let services = {
12 | sleep: (time) => {
13 | return new Promise(function (resolve, reject) {
14 | setTimeout(resolve, time);
15 | })
16 | },
17 | stop: () => {
18 | return new Promise(function (resolve, reject) {
19 | })
20 | },
21 | taskSequence: () => {
22 | return new Promise(function (resolve, reject) {
23 | resolve()
24 | })
25 | }
26 | };
27 | // module.exports = new Proxy(services, {
28 | // 这样暴露出去就要被这样引用
29 | // const wsAPI = require("../../utils/wsAPI.js")
30 | export let wsAPI = new Proxy(services, {
31 | get: function (target, property) {
32 | if (property in target) {
33 | return target[property];
34 | } else if (property in wx) {
35 | return (obj) => {
36 | return new Promise(function (resolve, reject) {
37 | obj = obj || {};
38 | obj.success = (...args) => {
39 | resolve(...args)
40 | };
41 | obj.fail = (...args) => {
42 | reject(...args);
43 | };
44 | obj.complete = nullFn;
45 | wx[property](obj);
46 | });
47 | }
48 | } else {
49 | throw new IllegalAPIException(property);
50 | }
51 |
52 | }
53 | });
--------------------------------------------------------------------------------