├── .gitignore
├── LICENSE
├── README.md
├── app.js
├── app.json
├── app.wxss
├── components
└── navigation
│ ├── img
│ ├── home.png
│ ├── left.png
│ └── search.png
│ ├── navigation.js
│ ├── navigation.json
│ ├── navigation.wxml
│ └── navigation.wxss
├── config.js
├── general
└── start
│ ├── first.js
│ ├── first.json
│ ├── first.wxml
│ └── first.wxss
├── images
├── add-addr.png
├── addr-active.png
├── addr-edit.png
├── addr-line.png
├── address_add.png
├── address_empty.png
├── arrow-right.png
├── coupon_button.png
├── coupon_empty.png
├── coupons-pic.jpg
├── default_avatar.png
├── del.png
├── empty_collection.png
├── empty_comment.png
├── empty_goods.png
├── empty_order.png
├── goback.png
├── gohome.png
├── gonggao.png
├── goods_collect.png
├── goods_collect_checked.png
├── goods_service.png
├── icon
│ ├── kanjia.png
│ ├── liquan.png
│ ├── qiandao.png
│ └── zhuanlan.png
├── jifen.png
├── kanjia
│ ├── close.png
│ ├── kanjia.png
│ ├── kjico.png
│ ├── share_img.png
│ └── share_user.png
├── nav
│ ├── cart-off.png
│ ├── cart-on.png
│ ├── home-off.png
│ ├── home-on.png
│ ├── menu-off.png
│ ├── menu-on.png
│ ├── my-off.png
│ ├── my-on.png
│ ├── order-off.png
│ └── order-on.png
├── none
│ └── cart_empty.png
├── order-details
│ ├── delivering.png
│ ├── icon-address.png
│ ├── icon-ddfh.png
│ ├── icon-ddfk.png
│ ├── icon-ddgb.png
│ ├── icon-ddsh.png
│ ├── icon-jycg.png
│ ├── icon-wuliu.png
│ ├── orderform.png
│ ├── orderform_pay.png
│ └── orderform_ship.png
├── profile_address.png
├── profile_collection.png
├── profile_dfunding.png
├── profile_service.png
├── profile_tegral.png
├── profile_ticket.png
├── score.png
├── score_bg.png
├── search.png
├── search_empty.png
├── share.png
├── shopping.png
├── shopping_cart.png
└── withdraw.png
├── pages
├── address-add
│ ├── address-add.js
│ ├── address-add.json
│ ├── address-add.wxml
│ └── address-add.wxss
├── address
│ ├── address.js
│ ├── address.json
│ ├── address.wxml
│ └── address.wxss
├── cart
│ ├── cart.js
│ ├── cart.json
│ ├── cart.wxml
│ └── cart.wxss
├── cate-list
│ ├── cate-list.js
│ ├── cate-list.json
│ ├── cate-list.wxml
│ └── cate-list.wxss
├── cate
│ ├── cate.js
│ ├── cate.json
│ ├── cate.wxml
│ └── cate.wxss
├── coupons
│ ├── coupons.js
│ ├── coupons.json
│ ├── coupons.wxml
│ └── coupons.wxss
├── fav-list
│ ├── fav-list.js
│ ├── fav-list.json
│ ├── fav-list.wxml
│ └── fav-list.wxss
├── freshman
│ ├── freshman.js
│ ├── freshman.json
│ ├── freshman.wxml
│ └── freshman.wxss
├── goods-detail
│ ├── goods-detail.js
│ ├── goods-detail.json
│ ├── goods-detail.wxml
│ └── goods-detail.wxss
├── index
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── login
│ ├── login.js
│ ├── login.json
│ ├── login.wxml
│ └── login.wxss
├── logistics
│ ├── logistics.js
│ ├── logistics.json
│ ├── logistics.wxml
│ └── logistics.wxss
├── logs
│ ├── logs.js
│ ├── logs.json
│ ├── logs.wxml
│ └── logs.wxss
├── my-coupons
│ ├── my-coupons.js
│ ├── my-coupons.json
│ ├── my-coupons.wxml
│ └── my-coupons.wxss
├── my
│ ├── my.js
│ ├── my.json
│ ├── my.wxml
│ └── my.wxss
├── notice
│ ├── notice.js
│ ├── notice.json
│ ├── notice.wxml
│ └── notice.wxss
├── order-detail
│ ├── order-detail.js
│ ├── order-detail.json
│ ├── order-detail.wxml
│ └── order-detail.wxss
├── order-list
│ ├── order-list.js
│ ├── order-list.json
│ ├── order-list.wxml
│ └── order-list.wxss
├── pay-order
│ ├── pay-order.js
│ ├── pay-order.json
│ ├── pay-order.wxml
│ └── pay-order.wxss
├── score
│ ├── score.js
│ ├── score.json
│ ├── score.wxml
│ └── score.wxss
├── search
│ ├── search.js
│ ├── search.json
│ ├── search.wxml
│ └── search.wxss
├── start
│ ├── start.js
│ ├── start.json
│ ├── start.wxml
│ └── start.wxss
├── success
│ ├── success.js
│ ├── success.json
│ ├── success.wxml
│ └── success.wxss
├── template-cart
│ ├── template-cart.js
│ ├── template-cart.json
│ ├── template-cart.wxml
│ └── template-cart.wxss
├── topic-list
│ ├── topic-list.js
│ ├── topic-list.json
│ ├── topic-list.wxml
│ └── topic-list.wxss
├── topic
│ ├── topic.js
│ ├── topic.json
│ ├── topic.wxml
│ └── topic.wxss
└── withdraw
│ ├── withdraw.js
│ ├── withdraw.json
│ ├── withdraw.wxml
│ └── withdraw.wxss
├── project.config.json
├── sitemap.json
├── utils
├── city.js
├── event.js
├── i18n.js
├── locales.js
├── pay.js
└── util.js
├── wxParse
├── emojis
│ ├── 00.gif
│ ├── 01.gif
│ ├── 02.gif
│ ├── 03.gif
│ ├── 04.gif
│ ├── 05.gif
│ ├── 06.gif
│ ├── 07.gif
│ ├── 08.gif
│ ├── 09.gif
│ ├── 10.gif
│ ├── 100.gif
│ ├── 101.gif
│ ├── 102.gif
│ ├── 103.gif
│ ├── 104.gif
│ ├── 105.gif
│ ├── 106.gif
│ ├── 107.gif
│ ├── 108.gif
│ ├── 109.gif
│ ├── 11.gif
│ ├── 110.gif
│ ├── 111.gif
│ ├── 112.gif
│ ├── 113.gif
│ ├── 114.gif
│ ├── 115.gif
│ ├── 116.gif
│ ├── 117.gif
│ ├── 118.gif
│ ├── 119.gif
│ ├── 12.gif
│ ├── 120.gif
│ ├── 121.gif
│ ├── 122.gif
│ ├── 123.gif
│ ├── 124.gif
│ ├── 125.gif
│ ├── 126.gif
│ ├── 127.gif
│ ├── 128.gif
│ ├── 129.gif
│ ├── 13.gif
│ ├── 130.gif
│ ├── 131.gif
│ ├── 132.gif
│ ├── 133.gif
│ ├── 134.gif
│ ├── 14.gif
│ ├── 15.gif
│ ├── 16.gif
│ ├── 17.gif
│ ├── 18.gif
│ ├── 19.gif
│ ├── 20.gif
│ ├── 21.gif
│ ├── 22.gif
│ ├── 23.gif
│ ├── 24.gif
│ ├── 25.gif
│ ├── 26.gif
│ ├── 27.gif
│ ├── 28.gif
│ ├── 29.gif
│ ├── 30.gif
│ ├── 31.gif
│ ├── 32.gif
│ ├── 33.gif
│ ├── 34.gif
│ ├── 35.gif
│ ├── 36.gif
│ ├── 37.gif
│ ├── 38.gif
│ ├── 39.gif
│ ├── 40.gif
│ ├── 41.gif
│ ├── 42.gif
│ ├── 43.gif
│ ├── 44.gif
│ ├── 45.gif
│ ├── 46.gif
│ ├── 47.gif
│ ├── 48.gif
│ ├── 49.gif
│ ├── 50.gif
│ ├── 51.gif
│ ├── 52.gif
│ ├── 53.gif
│ ├── 54.gif
│ ├── 55.gif
│ ├── 56.gif
│ ├── 57.gif
│ ├── 58.gif
│ ├── 59.gif
│ ├── 60.gif
│ ├── 61.gif
│ ├── 62.gif
│ ├── 63.gif
│ ├── 64.gif
│ ├── 65.gif
│ ├── 66.gif
│ ├── 67.gif
│ ├── 68.gif
│ ├── 69.gif
│ ├── 70.gif
│ ├── 71.gif
│ ├── 72.gif
│ ├── 73.gif
│ ├── 74.gif
│ ├── 75.gif
│ ├── 76.gif
│ ├── 77.gif
│ ├── 78.gif
│ ├── 79.gif
│ ├── 80.gif
│ ├── 81.gif
│ ├── 82.gif
│ ├── 83.gif
│ ├── 84.gif
│ ├── 85.gif
│ ├── 86.gif
│ ├── 87.gif
│ ├── 88.gif
│ ├── 89.gif
│ ├── 90.gif
│ ├── 91.gif
│ ├── 92.gif
│ ├── 93.gif
│ ├── 94.gif
│ ├── 95.gif
│ ├── 96.gif
│ ├── 97.gif
│ ├── 98.gif
│ └── 99.gif
├── html2json.js
├── htmlparser.js
├── showdown.js
├── wxDiscode.js
├── wxParse.js
├── wxParse.wxml
└── wxParse.wxss
└── wx_xiaochengxu_fecmall2.png
/.gitignore:
--------------------------------------------------------------------------------
1 | # Windows
2 | [Dd]esktop.ini
3 | Thumbs.db
4 | $RECYCLE.BIN/
5 |
6 | # macOS
7 | .DS_Store
8 | .fseventsd
9 | .Spotlight-V100
10 | .TemporaryItems
11 | .Trashes
12 |
13 | # Node.js
14 | node_modules/
15 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019 thundersword
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # 微信小程序入口
2 |
3 | 感谢提供的微信小程序:https://github.com/thundersword/fire-shop-lite
4 |
5 | fecshop微信小程序是基于上面的小程序二次开发而来,后台使用的fecshop的api。
6 |
7 |
8 | ### 查看demo
9 |
10 | 1.微信小程序,直接搜索:Fecmall
11 |
12 | 2.扫码查看
13 |
14 | 
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "pages": [
3 | "pages/start/start",
4 | "pages/index/index",
5 | "pages/logs/logs",
6 | "pages/login/login",
7 | "pages/my/my",
8 | "pages/cart/cart",
9 | "pages/goods-detail/goods-detail",
10 | "pages/template-cart/template-cart",
11 | "pages/topic/topic",
12 | "pages/topic-list/topic-list",
13 | "pages/coupons/coupons",
14 | "pages/my-coupons/my-coupons",
15 | "pages/score/score",
16 | "pages/withdraw/withdraw",
17 | "pages/fav-list/fav-list",
18 | "pages/address/address",
19 | "pages/address-add/address-add",
20 | "pages/order-list/order-list",
21 | "pages/cate-list/cate-list",
22 | "pages/order-detail/order-detail",
23 | "pages/notice/notice",
24 | "pages/cate/cate",
25 | "pages/logistics/logistics",
26 | "pages/success/success",
27 | "pages/pay-order/pay-order",
28 | "pages/freshman/freshman",
29 | "pages/search/search"
30 | ],
31 | "window": {
32 | "navigationStyle": "custom",
33 | "navigationBarTextStyle": "black"
34 | },
35 | "tabBar": {
36 | "color": "#838383",
37 | "selectedColor": "#b4282d",
38 | "borderStyle": "white",
39 | "backgroundColor": "#fff",
40 | "list": [
41 | {
42 | "pagePath": "pages/index/index",
43 | "iconPath": "images/nav/home-off.png",
44 | "selectedIconPath": "images/nav/home-on.png",
45 | "text": "首页"
46 | },
47 | {
48 | "pagePath": "pages/cate/cate",
49 | "iconPath": "images/nav/menu-off.png",
50 | "selectedIconPath": "images/nav/menu-on.png",
51 | "text": "分类"
52 | },
53 | {
54 | "pagePath": "pages/cart/cart",
55 | "iconPath": "images/nav/cart-off.png",
56 | "selectedIconPath": "images/nav/cart-on.png",
57 | "text": "购物车"
58 | },
59 | {
60 | "pagePath": "pages/my/my",
61 | "iconPath": "images/nav/my-off.png",
62 | "selectedIconPath": "images/nav/my-on.png",
63 | "text": "我的"
64 | }
65 | ]
66 | },
67 | "sitemapLocation": "sitemap.json"
68 | }
--------------------------------------------------------------------------------
/app.wxss:
--------------------------------------------------------------------------------
1 | /**app.wxss**/
2 | .container {
3 | height: 100%;
4 | }
5 |
6 | .wxParse-img {
7 | display: block !important;
8 | }
9 |
10 | .header-container {
11 | width: 100%;
12 | height: 130rpx;
13 | position: fixed;
14 | top: 0;
15 | left: 0;
16 | z-index: 9999;
17 | }
18 |
19 | .header-container .header-name {
20 | width: 100%;
21 | height: 100%;
22 | text-align: center;
23 | line-height: 170rpx;
24 | font-size: 30rpx;
25 | color: #333;
26 | }
27 |
28 | .iphone .header-container {
29 | height: 180rpx;
30 | }
31 |
32 | .iphone .header-container .header-name {
33 | line-height: 270rpx;
34 | }
35 |
36 | .header-container .goback {
37 | width: 56rpx;
38 | height: 56rpx;
39 | margin-top: 50rpx;
40 | position: absolute;
41 | margin-left: 20rpx;
42 | border: 1rpx solid #fff;
43 | border-radius: 50%;
44 | padding: 6rpx;
45 | }
46 |
47 | .iphone .header-container .goback {
48 | margin-top: 90rpx;
49 | }
50 | .hidden {
51 | display: none;
52 | }
53 | .flex{
54 | display: flex;
55 | justify-content: space-between;
56 | flex-wrap: wrap;
57 | }
58 | .no-more-goods {
59 | text-align: center;
60 | margin-top: 20%;
61 | }
62 |
63 | .no-order-img {
64 | width: 110px;
65 | height: 110px;
66 | }
67 |
68 | .no-more-goods .text {
69 | font-size: 28rpx;
70 | color: #999;
71 | margin-top: -5px;
72 | }
73 | .fix-top{
74 | position: fixed;
75 | top: 0;
76 | left: 0;
77 | z-index: 99999;
78 | }
--------------------------------------------------------------------------------
/components/navigation/img/home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/components/navigation/img/home.png
--------------------------------------------------------------------------------
/components/navigation/img/left.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/components/navigation/img/left.png
--------------------------------------------------------------------------------
/components/navigation/img/search.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/components/navigation/img/search.png
--------------------------------------------------------------------------------
/components/navigation/navigation.js:
--------------------------------------------------------------------------------
1 | const app = getApp();
2 | Component({
3 | properties: {
4 | //小程序页面的表头
5 | title: {
6 | type: String,
7 | default: '穿衣助手拼团'
8 | },
9 | //是否展示返回和主页按钮
10 | showIcon: {
11 | type: Boolean,
12 | default: true
13 | },
14 | //是否显示标题
15 | showTitle: {
16 | type: Boolean,
17 | default: true
18 | },
19 | yourSearchContent: {
20 | type: String,
21 | default: ''
22 | },
23 | //是否显示搜索框
24 | showSearch: {
25 | type: Boolean,
26 | default: true
27 | }
28 | },
29 |
30 | data: {
31 | statusBarHeight: 0,
32 | titleBarHeight: 0,
33 | //yours: '搜索你关注的内容',
34 | },
35 |
36 | ready: function () {
37 | // 因为很多地方都需要用到,所有保存到全局对象中
38 | if (app.globalData && app.globalData.statusBarHeight && app.globalData.titleBarHeight) {
39 | this.setData({
40 | statusBarHeight: app.globalData.statusBarHeight,
41 | titleBarHeight: app.globalData.titleBarHeight
42 | });
43 | } else {
44 | let that = this
45 | wx.getSystemInfo({
46 | success: function (res) {
47 | if (!app.globalData) {
48 | app.globalData = {}
49 | }
50 | if (res.model.indexOf('iPhone') !== -1) {
51 | app.globalData.titleBarHeight = 44
52 | } else {
53 | app.globalData.titleBarHeight = 48
54 | }
55 | app.globalData.statusBarHeight = res.statusBarHeight
56 | that.setData({
57 | statusBarHeight: app.globalData.statusBarHeight,
58 | titleBarHeight: app.globalData.titleBarHeight
59 | });
60 | },
61 | failure() {
62 | that.setData({
63 | statusBarHeight: 0,
64 | titleBarHeight: 0
65 | });
66 | }
67 | })
68 | }
69 | },
70 |
71 | methods: {
72 | headerBack() {
73 | wx.navigateBack({
74 | delta: 1,
75 | fail(e) {
76 | wx.switchTab({
77 | url: '/pages/grouponList/main'
78 | })
79 | }
80 | })
81 | },
82 | headerHome() {
83 | wx.switchTab({
84 | url: '/pages/index/index'
85 | })
86 | },
87 | headerSearch(){
88 | wx.navigateTo({
89 | url:'/pages/search/search'
90 | })
91 | }
92 | }
93 | })
94 |
--------------------------------------------------------------------------------
/components/navigation/navigation.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
--------------------------------------------------------------------------------
/components/navigation/navigation.wxml:
--------------------------------------------------------------------------------
1 |
2 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/components/navigation/navigation.wxss:
--------------------------------------------------------------------------------
1 | .loading-gif {
2 | width: 46rpx;
3 | height: 8rpx;
4 | }
5 | .loading-wrap {
6 | height: 100%;
7 | display: flex;
8 | justify-content: center;
9 | align-items: center;
10 | margin-bottom: 20rpx;
11 | }
12 | .loading-wrap image {
13 | background-color: transparent;
14 | }
15 | .header {
16 | display: flex;
17 | align-items: center;
18 | top: 0;
19 | position: fixed;
20 | width: 100%;
21 | background-color: #FFF;
22 | z-index: 99999;
23 | box-shadow: 0 1rpx 3rpx #D7D7D7;
24 | }
25 | .header .line {
26 | border-left: 1rpx solid #D7D7D7;
27 | height: 36rpx;
28 | }
29 | .header .back, .header .home {
30 | height: 32rpx;
31 | width: 40%;
32 | height: 100%;
33 | display: flex;
34 | align-items: center;
35 | justify-content: center;
36 | }
37 | .header .title-bar {
38 | display: flex;
39 | align-items: center;
40 | justify-content: space-around;
41 | width: 138rpx;
42 | height: 56rpx;
43 | border: 1rpx solid #F1F1F1;
44 | border-radius: 32rpx;
45 | margin-left: 14rpx;
46 | padding: 0 14rpx;
47 | }
48 | .header .title-bar image {
49 | width: 32rpx;
50 | height: 32rpx;
51 | background: transparent;
52 | vertical-align: top;
53 | }
54 |
55 | .header .header-title {
56 | position: absolute;
57 | left: 50%;
58 | font-size: 38rpx;
59 | transform: translateX(-50%);
60 | }
61 | .header .search-box{
62 | /* border: 1px solid #eee; */
63 | border-radius: 27px;
64 | background: hsla(0, 0%, 100%, .6);
65 | height: 32px;
66 | width: 355rpx;
67 | background: #f7f7f7;
68 | margin-left: 20rpx;
69 | display: flex;
70 | justify-content: flex-start;
71 | align-items: center;
72 | }
73 | .header .search-box text{
74 | height: 30px;
75 | line-height: 30px;
76 | color: #d1d1d1;
77 | /* padding-left: 14px; */
78 | font-size: 26rpx;
79 | margin-left: 5rpx;
80 | }
81 | .header .search-box image{
82 | height: 34rpx;
83 | width: 34rpx;
84 | margin-left: 14px;
85 | }
86 |
--------------------------------------------------------------------------------
/config.js:
--------------------------------------------------------------------------------
1 | var config = {
2 | //链接源,一般不需要修改
3 | //'url': 'https://api.it120.cc/',
4 |
5 | //这里填写你自己的工厂个性域名,工厂后台首页可以看到
6 | //'subDomain': 'fireshop',
7 |
8 | // https://api.it120.cc/fireshop
9 | 'url': 'https://fecshop.appserver.fancyecommerce.com',
10 | 'subDomain': '',
11 |
12 | // 默认语言
13 | 'lang_code': 'zh',
14 | // 默认货币
15 | 'currency_code': 'CNY',
16 |
17 | //版本标识,这里不需要修改
18 | 'version': '1.0.0',
19 | //订单自动关闭时间,默认60分钟,以分为单位,填0则不自动关闭订单
20 | 'closeorder': '60',
21 | //关闭订单模版ID,这里填写你自己的模版消息ID
22 | 'closeorderkey': 'ihjZ2LiMQUH-G9UR9B2TDI0xQWRb0m4IT5_8s1nbZS0',
23 |
24 | //发货提醒模版ID,这里填写你自己的模版消息ID
25 | 'deliveryorderkey': 'HXtRlV3djH9MFVOm_kjMQv4GLXC4q7EdyUc9XUzOEgk',
26 |
27 | //评价模版提醒ID,这里填写你自己的模版消息ID
28 | 'assessorderkey': 'SbpRcF3FQnK9qIieYTHpQYYvuar6xOqVfs_6bNuxtlw',
29 |
30 | //已评价模版提醒ID,这里填写你自己的模版消息ID
31 | 'successorderkey': 'uySaxE9mAJYTvsshRibxSLCxFA1beXXf-USc7ftD_pA'
32 | }
33 | module.exports = config
--------------------------------------------------------------------------------
/general/start/first.js:
--------------------------------------------------------------------------------
1 | // general/start/first.js
2 | Page({
3 |
4 | /**
5 | * 页面的初始数据
6 | */
7 | data: {
8 |
9 | },
10 |
11 | /**
12 | * 生命周期函数--监听页面加载
13 | */
14 | onLoad: function (options) {
15 |
16 | },
17 |
18 | /**
19 | * 生命周期函数--监听页面初次渲染完成
20 | */
21 | onReady: function () {
22 |
23 | },
24 |
25 | /**
26 | * 生命周期函数--监听页面显示
27 | */
28 | onShow: function () {
29 |
30 | },
31 |
32 | /**
33 | * 生命周期函数--监听页面隐藏
34 | */
35 | onHide: function () {
36 |
37 | },
38 |
39 | /**
40 | * 生命周期函数--监听页面卸载
41 | */
42 | onUnload: function () {
43 |
44 | },
45 |
46 | /**
47 | * 页面相关事件处理函数--监听用户下拉动作
48 | */
49 | onPullDownRefresh: function () {
50 |
51 | },
52 |
53 | /**
54 | * 页面上拉触底事件的处理函数
55 | */
56 | onReachBottom: function () {
57 |
58 | },
59 |
60 | /**
61 | * 用户点击右上角分享
62 | */
63 | onShareAppMessage: function () {
64 |
65 | }
66 | })
--------------------------------------------------------------------------------
/general/start/first.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {}
3 | }
--------------------------------------------------------------------------------
/general/start/first.wxml:
--------------------------------------------------------------------------------
1 |
2 | general/start/first.wxml
3 |
--------------------------------------------------------------------------------
/general/start/first.wxss:
--------------------------------------------------------------------------------
1 | /* general/start/first.wxss */
--------------------------------------------------------------------------------
/images/add-addr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/add-addr.png
--------------------------------------------------------------------------------
/images/addr-active.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/addr-active.png
--------------------------------------------------------------------------------
/images/addr-edit.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/addr-edit.png
--------------------------------------------------------------------------------
/images/addr-line.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/addr-line.png
--------------------------------------------------------------------------------
/images/address_add.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/address_add.png
--------------------------------------------------------------------------------
/images/address_empty.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/address_empty.png
--------------------------------------------------------------------------------
/images/arrow-right.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/arrow-right.png
--------------------------------------------------------------------------------
/images/coupon_button.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/coupon_button.png
--------------------------------------------------------------------------------
/images/coupon_empty.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/coupon_empty.png
--------------------------------------------------------------------------------
/images/coupons-pic.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/coupons-pic.jpg
--------------------------------------------------------------------------------
/images/default_avatar.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/default_avatar.png
--------------------------------------------------------------------------------
/images/del.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/del.png
--------------------------------------------------------------------------------
/images/empty_collection.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/empty_collection.png
--------------------------------------------------------------------------------
/images/empty_comment.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/empty_comment.png
--------------------------------------------------------------------------------
/images/empty_goods.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/empty_goods.png
--------------------------------------------------------------------------------
/images/empty_order.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/empty_order.png
--------------------------------------------------------------------------------
/images/goback.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/goback.png
--------------------------------------------------------------------------------
/images/gohome.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/gohome.png
--------------------------------------------------------------------------------
/images/gonggao.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/gonggao.png
--------------------------------------------------------------------------------
/images/goods_collect.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/goods_collect.png
--------------------------------------------------------------------------------
/images/goods_collect_checked.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/goods_collect_checked.png
--------------------------------------------------------------------------------
/images/goods_service.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/goods_service.png
--------------------------------------------------------------------------------
/images/icon/kanjia.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/icon/kanjia.png
--------------------------------------------------------------------------------
/images/icon/liquan.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/icon/liquan.png
--------------------------------------------------------------------------------
/images/icon/qiandao.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/icon/qiandao.png
--------------------------------------------------------------------------------
/images/icon/zhuanlan.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/icon/zhuanlan.png
--------------------------------------------------------------------------------
/images/jifen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/jifen.png
--------------------------------------------------------------------------------
/images/kanjia/close.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/kanjia/close.png
--------------------------------------------------------------------------------
/images/kanjia/kanjia.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/kanjia/kanjia.png
--------------------------------------------------------------------------------
/images/kanjia/kjico.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/kanjia/kjico.png
--------------------------------------------------------------------------------
/images/kanjia/share_img.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/kanjia/share_img.png
--------------------------------------------------------------------------------
/images/kanjia/share_user.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/kanjia/share_user.png
--------------------------------------------------------------------------------
/images/nav/cart-off.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/nav/cart-off.png
--------------------------------------------------------------------------------
/images/nav/cart-on.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/nav/cart-on.png
--------------------------------------------------------------------------------
/images/nav/home-off.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/nav/home-off.png
--------------------------------------------------------------------------------
/images/nav/home-on.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/nav/home-on.png
--------------------------------------------------------------------------------
/images/nav/menu-off.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/nav/menu-off.png
--------------------------------------------------------------------------------
/images/nav/menu-on.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/nav/menu-on.png
--------------------------------------------------------------------------------
/images/nav/my-off.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/nav/my-off.png
--------------------------------------------------------------------------------
/images/nav/my-on.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/nav/my-on.png
--------------------------------------------------------------------------------
/images/nav/order-off.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/nav/order-off.png
--------------------------------------------------------------------------------
/images/nav/order-on.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/nav/order-on.png
--------------------------------------------------------------------------------
/images/none/cart_empty.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/none/cart_empty.png
--------------------------------------------------------------------------------
/images/order-details/delivering.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/order-details/delivering.png
--------------------------------------------------------------------------------
/images/order-details/icon-address.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/order-details/icon-address.png
--------------------------------------------------------------------------------
/images/order-details/icon-ddfh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/order-details/icon-ddfh.png
--------------------------------------------------------------------------------
/images/order-details/icon-ddfk.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/order-details/icon-ddfk.png
--------------------------------------------------------------------------------
/images/order-details/icon-ddgb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/order-details/icon-ddgb.png
--------------------------------------------------------------------------------
/images/order-details/icon-ddsh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/order-details/icon-ddsh.png
--------------------------------------------------------------------------------
/images/order-details/icon-jycg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/order-details/icon-jycg.png
--------------------------------------------------------------------------------
/images/order-details/icon-wuliu.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/order-details/icon-wuliu.png
--------------------------------------------------------------------------------
/images/order-details/orderform.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/order-details/orderform.png
--------------------------------------------------------------------------------
/images/order-details/orderform_pay.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/order-details/orderform_pay.png
--------------------------------------------------------------------------------
/images/order-details/orderform_ship.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/order-details/orderform_ship.png
--------------------------------------------------------------------------------
/images/profile_address.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/profile_address.png
--------------------------------------------------------------------------------
/images/profile_collection.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/profile_collection.png
--------------------------------------------------------------------------------
/images/profile_dfunding.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/profile_dfunding.png
--------------------------------------------------------------------------------
/images/profile_service.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/profile_service.png
--------------------------------------------------------------------------------
/images/profile_tegral.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/profile_tegral.png
--------------------------------------------------------------------------------
/images/profile_ticket.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/profile_ticket.png
--------------------------------------------------------------------------------
/images/score.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/score.png
--------------------------------------------------------------------------------
/images/score_bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/score_bg.png
--------------------------------------------------------------------------------
/images/search.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/search.png
--------------------------------------------------------------------------------
/images/search_empty.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/search_empty.png
--------------------------------------------------------------------------------
/images/share.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/share.png
--------------------------------------------------------------------------------
/images/shopping.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/shopping.png
--------------------------------------------------------------------------------
/images/shopping_cart.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/shopping_cart.png
--------------------------------------------------------------------------------
/images/withdraw.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/images/withdraw.png
--------------------------------------------------------------------------------
/pages/address-add/address-add.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "navigation": "/components/navigation/navigation"
4 | }
5 | }
--------------------------------------------------------------------------------
/pages/address-add/address-add.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
54 |
--------------------------------------------------------------------------------
/pages/address-add/address-add.wxss:
--------------------------------------------------------------------------------
1 | page {
2 | height: 100%;
3 | }
4 | .form-box {
5 | width: 100%;
6 | background-color: #fff;
7 | margin-top: 20rpx;
8 | }
9 |
10 | .row-wrap {
11 | width: 690rpx;
12 | height: 88rpx;
13 | line-height: 88rpx;
14 | margin-left: 30rpx;
15 | border-bottom: 1rpx solid #eee;
16 | display: flex;
17 | font-size: 28rpx;
18 | /*justify-content: space-between;*/
19 | }
20 |
21 | .row-wrap .label {
22 | width: 160rpx;
23 | color: #000;
24 | }
25 |
26 | .row-wrap .label-right {
27 | flex: 1;
28 | height: 88rpx;
29 | line-height: 88rpx;
30 | }
31 |
32 | .row-wrap .label-right input {
33 | height: 100%;
34 | font-size: 28rpx;
35 | padding-right: 30rpx;
36 | }
37 |
38 | .row-wrap .right-box {
39 | margin-right: 30rpx;
40 | }
41 |
42 | .arrow-right {
43 | width: 15rpx;
44 | height: 24rpx;
45 | }
46 |
47 | .save-btn, .cancel-btn {
48 | width: 690rpx;
49 | height: 80rpx;
50 | line-height: 80rpx;
51 | text-align: center;
52 | margin-top: 30rpx;
53 | border-radius: 6rpx;
54 | box-sizing: border-box;
55 | }
56 |
57 | .save-btn {
58 | background-color: #e64340;
59 | color: #fff;
60 | }
61 |
62 | button[type="default"] {
63 | background-color: #fff;
64 | color: #000;
65 | }
66 |
67 | .addr-details {
68 | height: auto;
69 | padding: 30rpx 0;
70 | margin-left: 30rpx;
71 | border-bottom: 1rpx solid #eee;
72 | display: flex;
73 | font-size: 28rpx;
74 | }
75 |
76 | .addr-details .label {
77 | margin: auto 0 auto 0;
78 | width: 160rpx;
79 | color: #000;
80 | }
81 |
82 | .addr-details textarea {
83 | box-sizing: border-box;
84 | width: 480rpx;
85 | overflow: scroll;
86 | }
87 |
88 | picker {
89 | min-width: 20rpx;
90 | height: 100%;
91 | margin-right: 20rpx;
92 | }
93 |
94 | .hui {
95 | color: #777;
96 | }
97 |
--------------------------------------------------------------------------------
/pages/address/address.js:
--------------------------------------------------------------------------------
1 | //index.js
2 | //获取应用实例
3 | var app = getApp()
4 |
5 | // 语言
6 | var util = require('../../utils/util.js')
7 | import event from '../../utils/event'
8 |
9 | Page({
10 | data: {
11 | //语言 - begin
12 | language: '',
13 | //语言 - end
14 | addressList:[]
15 | },
16 |
17 | selectTap: function (e) {
18 | var id = e.currentTarget.dataset.id;
19 | wx.request({
20 | url: app.globalData.urls +'/customer/address/changedefault',
21 | header: app.getPostRequestHeader(),
22 | method: 'POST',
23 | data: {
24 | address_id:id
25 | },
26 | success: (res) =>{
27 | app.saveReponseHeader(res);
28 | wx.navigateBack({})
29 | }
30 | })
31 | },
32 |
33 | addAddess : function () {
34 | wx.navigateTo({
35 | url:"/pages/address-add/address-add"
36 | })
37 | },
38 |
39 | editAddess: function (e) {
40 | wx.navigateTo({
41 | url: "/pages/address-add/address-add?id=" + e.currentTarget.dataset.id
42 | })
43 | },
44 | // 语言
45 | // 设置language变量(翻译Object)
46 | setLanguage() {
47 | var lang = wx.T.getLanguage()
48 | this.setData({
49 | language: lang,
50 | selectSize: lang.select_attribute
51 | });
52 | this.initShippingAddress()
53 | },
54 | onLoad: function () {
55 | var that = this;
56 | if (app.globalData.iphone == true) { that.setData({ iphone: 'iphone' }) }
57 | // 语言
58 | // 设置当前页面的language变量 - 每个页面都要有
59 | this.setLanguage();
60 | event.on("languageChanged", this, this.setLanguage); // (2)
61 | // 设置当前页面的language Index - 每个页面都要有
62 | wx.T.setLocaleByIndex(wx.T.langIndex);
63 | // 语言 - 结束
64 | },
65 | onShow : function () {
66 | this.initShippingAddress();
67 | },
68 | initShippingAddress: function () {
69 | var that = this;
70 | wx.request({
71 | url: app.globalData.urls +'/checkout/onepage/getaddresslist',
72 | header: app.getRequestHeader(),
73 | data: { },
74 | success: (res) =>{
75 | if (res.data.code == 200) {
76 | var addressColl = res.data.data.addressList
77 | var addressList = []
78 | for (var x in addressColl) {
79 | var addressOne = addressColl[x]
80 | var addressInfo = addressOne.address_info
81 | addressList.push({
82 | id: addressInfo.address_id,
83 | isDefault: addressOne.is_default == "1" ? true : false,
84 | linkMan: addressInfo.first_name + addressInfo.last_name,
85 | mobile: addressInfo.telephone,
86 | provinceStr: addressInfo.state,
87 | cityStr: addressInfo.city,
88 | areaStr: addressInfo.area,
89 | address: addressInfo.street1,
90 | })
91 | }
92 | console.log(addressList)
93 | that.setData({
94 | addressList: addressList,
95 | loadingMoreHidden: true
96 | });
97 | } else if (res.data.code == 700){
98 | that.setData({
99 | addressList: null,
100 | loadingMoreHidden: false
101 | });
102 | }
103 | app.saveReponseHeader(res);
104 | }
105 | })
106 | }
107 |
108 | })
109 |
--------------------------------------------------------------------------------
/pages/address/address.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "navigation": "/components/navigation/navigation"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/pages/address/address.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | {{item.linkMan}} {{item.mobile}}
8 |
9 |
10 | {{item.provinceStr}}{{item.cityStr}}{{item.areaStr?item.areaStr:""}}{{item.address}}
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | {{language.no_address}}
19 |
20 |
21 |
22 | {{language.add_new_address}}
23 |
24 |
25 |
--------------------------------------------------------------------------------
/pages/address/address.wxss:
--------------------------------------------------------------------------------
1 |
2 | page {
3 | background-color: #f5f5f5;
4 | }
5 |
6 | .address-list {
7 | width: 100%;
8 | }
9 |
10 | .address-list .a-address {
11 | width: 720rpx;
12 | display: flex;
13 | justify-content: space-between;
14 | align-items: center;
15 | padding: 25rpx 30rpx;
16 | border-bottom: 1rpx solid #f5f5f5;
17 | background-color: #fff;
18 | }
19 |
20 | .a-address .left-text {
21 | width: 610rpx;
22 | box-sizing: border-box;
23 | padding-left: 58rpx;
24 | }
25 |
26 | .a-address .left-text.active {
27 | background: url(https://cdn.it120.cc/apifactory/2018/03/07/d14e39b0a699114fe29c1a8614f6dbec.png) no-repeat left center;
28 | background-size: 28rpx auto;
29 | }
30 |
31 | .a-address .left-text .name-tel {
32 | margin-bottom: 10rpx;
33 | font-size: 30rpx;
34 | color: #333;
35 | }
36 |
37 | .a-address .left-text .address-box {
38 | font-size: 24rpx;
39 | color: #888;
40 | line-height: 36rpx;
41 | }
42 |
43 | .a-address .right-edit {
44 | width: 109rpx;
45 | height: 100%;
46 | padding: 50rpx 0 50rpx 58rpx;
47 | box-sizing: border-box;
48 | background: url(https://cdn.it120.cc/images/weappshop/addr-edit.png) no-repeat 43rpx center;
49 | background-size: 35rpx auto;
50 | }
51 |
52 | .bottom-box {
53 | position: fixed;
54 | bottom: 0;
55 | background-color: #fcfcfc;
56 | width: 100%;
57 | text-align: center;
58 | height: 48px;
59 | font-size: 30rpx;
60 | line-height: 48px;
61 | color: #b4282d;
62 | box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.1);
63 | }
64 |
65 | .bottom-box image {
66 | width: 15px;
67 | height: 15px;
68 | margin: -2px 0;
69 | }
70 |
71 | .no-more-goods {
72 | text-align: center;
73 | margin-top: 50%;
74 | }
75 |
76 | .no-order-img {
77 | width: 110px;
78 | height: 110px;
79 | }
80 |
81 | .no-more-goods .text {
82 | font-size: 28rpx;
83 | color: #999;
84 | margin-top: -5px;
85 | }
86 |
--------------------------------------------------------------------------------
/pages/cart/cart.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "navigation": "/components/navigation/navigation"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/pages/cart/cart.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
9 |
10 | 猜你喜欢
11 |
12 |
13 |
14 |
15 |
16 | {{item.characteristic}}
17 |
18 |
19 | {{item.name}}
20 |
21 | Ұ{{item.minPrice}}
22 | 已售{{item.numberOrders}}
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/pages/cart/cart.wxss:
--------------------------------------------------------------------------------
1 | @import "../template-cart/template-cart.wxss";
2 |
3 | page {
4 | background-color: #f5f5f5;
5 | border-top: 1px solid #f5f5f5;
6 | }
7 | .container {
8 | background-color: #f5f5f5;
9 | min-height: 100%;
10 | margin-top: 20rpx;
11 | }
12 | .pos-fiexd {
13 | position: fixed;
14 | bottom: 0;
15 | left: 0;
16 | }
17 |
18 | .sales-goods {
19 | width: 100%;
20 | background-color: #fff;
21 | padding-bottom: 100rpx;
22 | }
23 |
24 | .sales-title {
25 | width: 100%;
26 | height: 80rpx;
27 | text-align: center;
28 | line-height: 120rpx;
29 | font-size: 30rpx;
30 | color: #333;
31 | }
32 |
33 | .goods-box {
34 | width: 45%;
35 | margin: 20px 0 0 13px;
36 | display: inline-block;
37 | }
38 |
39 | .img-box image {
40 | width: 340rpx;
41 | height: 340rpx;
42 | display: block;
43 | border-top-left-radius: 3px;
44 | border-top-right-radius: 3px;
45 | }
46 |
47 | .img-box {
48 | width: 340rpx;
49 | background-color: #f5f5f5;
50 | margin-bottom: 5px;
51 | position: relative;
52 | border-top-left-radius: 3px;
53 | border-top-right-radius: 3px;
54 | overflow: hidden;
55 | }
56 |
57 | .goods-characteristic {
58 | font-size: 22rpx;
59 | white-space: nowrap;
60 | overflow: hidden;
61 | text-overflow: ellipsis;
62 | background-color: #f0ece1;
63 | color: #a18d65;
64 | height: 35px;
65 | line-height: 35px;
66 | position: absolute;
67 | left: 0;
68 | bottom: 0;
69 | width: 100%;
70 | }
71 |
72 | .goods-characteristic text {
73 | padding-left: 5px;
74 | }
75 |
76 | .goods-title {
77 | font-size: 28rpx;
78 | color: #333;
79 | white-space: nowrap;
80 | overflow: hidden;
81 | text-overflow: ellipsis;
82 | padding: 0 5px;
83 | }
84 |
85 | .goods-price {
86 | color: #b5272d;
87 | font-size: 28rpx;
88 | text-align: left;
89 | width: 100%;
90 | padding: 3px 4px;
91 | }
92 |
93 | .goods-price-naver {
94 | color: #999;
95 | font-size: 24rpx;
96 | line-height: 28px;
97 | width: 100%;
98 | text-align: right;
99 | padding: 0 3px;
100 | }
101 |
102 | .goods-none {
103 | margin-top: 25%;
104 | }
105 |
106 | .goods-none image {
107 | width: 200rpx;
108 | height: 200rpx;
109 | display: block;
110 | margin: 0 auto;
111 | }
112 |
113 | .goods-none text {
114 | font-size: 28rpx;
115 | display: block;
116 | color: #999;
117 | text-align: center;
118 | margin-top: 10rpx;
119 | }
120 |
--------------------------------------------------------------------------------
/pages/cate-list/cate-list.js:
--------------------------------------------------------------------------------
1 | //index.js
2 | //获取应用实例
3 | var app = getApp()
4 | // 语言
5 | var util = require('../../utils/util.js')
6 | import event from '../../utils/event'
7 |
8 | Page({
9 | data: {
10 | //语言 - begin
11 | language: '',
12 | categoryId: '',
13 | page: 0,
14 | goods: [],
15 | isLoadProduct: false
16 | //语言 - end
17 | },
18 |
19 | toDetailsTap: function (e) {
20 | wx.navigateTo({
21 | url: "/pages/goods-detail/goods-detail?id=" + e.currentTarget.dataset.id
22 | })
23 | },
24 | setLanguage() {
25 | this.setData({
26 | language: wx.T.getLanguage()
27 | });
28 | //this.fetchCategory();
29 | },
30 | changeLanguage() {
31 | this.setData({
32 | language: wx.T.getLanguage()
33 | });
34 | this.fetchCategory();
35 | },
36 | onLoad: function (e) {
37 | wx.showLoading();
38 | console.log(e.id)
39 |
40 | var that = this;
41 | that.setData({
42 | categoryId: e.id
43 | });
44 | // 语言
45 | // 设置当前页面的language变量 - 每个页面都要有
46 | this.setLanguage();
47 | event.on("languageChanged", this, this.changeLanguage); // (2)
48 | // 设置当前页面的language Index - 每个页面都要有
49 | wx.T.setLocaleByIndex(wx.T.langIndex);
50 | // 语言 - 结束
51 |
52 | if (app.globalData.iphone == true) { that.setData({ iphone: 'iphone' }) }
53 | that.fetchCategory();
54 | },
55 | fetchCategory: function () {
56 | var that = this;
57 | that.setData({
58 | page: that.data.page + 1
59 | });
60 | wx.request({
61 | url: app.globalData.urls + '/catalog/category/wxindex',
62 | header: app.getRequestHeader(),
63 | data: {
64 | categoryId: that.data.categoryId,
65 | p: that.data.page
66 | },
67 | success: function (res) {
68 | wx.hideLoading();
69 | that.setData({
70 | //goods: [],
71 | loadingMoreHidden: true
72 | });
73 | var goods = that.data.goods;
74 | if (res.data.code != 200 || res.data.data.products.length == 0) {
75 | that.setData({
76 | loadingMoreHidden: false,
77 | });
78 | return;
79 | }
80 | for (var i = 0; i < res.data.data.products.length; i++) {
81 | goods.push(res.data.data.products[i]);
82 | }
83 | that.setData({
84 | goods: goods,
85 | });
86 | that.setData({
87 | isLoadProduct: false,
88 | });
89 | app.saveReponseHeader(res);
90 | }
91 | })
92 | },
93 | loadProduct: function(){
94 | console.log("eeeeee")
95 | //this.fetchCategory()
96 |
97 | var that = this
98 | if (that.data.isLoadProduct == false) {
99 | that.setData({
100 | isLoadProduct: true,
101 | });
102 | that.fetchCategory()
103 | }
104 |
105 | }
106 |
107 | })
108 |
--------------------------------------------------------------------------------
/pages/cate-list/cate-list.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "navigation": "/components/navigation/navigation"
4 | }
5 | }
--------------------------------------------------------------------------------
/pages/cate-list/cate-list.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | {{item.name}}
10 |
11 |
12 | {{item.special_price.symbol}} {{item.special_price.value}}
13 | {{item.price.symbol}} {{item.price.value}}
14 |
15 |
16 | {{item.price.symbol}} {{item.price.value}}
17 |
18 |
19 |
20 |
21 | {{language.empty_product}}
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/pages/cate-list/cate-list.wxss:
--------------------------------------------------------------------------------
1 | .goods-container {
2 | width: 100%;
3 | margin-bottom: 0px;
4 | height:100%;
5 | }
6 |
7 | .goods-box {
8 | width: 45%;
9 | margin: 20px 0 0 13px;
10 | display: inline-block;
11 | }
12 |
13 | .img-box image {
14 | width: 100%;
15 | display: block;
16 | border-top-left-radius: 3px;
17 | border-top-right-radius: 3px;
18 | }
19 |
20 | .img-box {
21 | width: 100%;
22 | background-color: #f5f5f5;
23 | margin-bottom: 5px;
24 | position: relative;
25 | border-top-left-radius: 3px;
26 | border-top-right-radius: 3px;
27 | overflow: hidden;
28 | }
29 |
30 | page{
31 | height:100%
32 | }
33 |
34 | .goods-characteristic {
35 | font-size: 22rpx;
36 | white-space: nowrap;
37 | overflow: hidden;
38 | text-overflow: ellipsis;
39 | background-color: #f0ece1;
40 | color: #a18d65;
41 | height: 35px;
42 | line-height: 35px;
43 | position: absolute;
44 | left: 0;
45 | bottom: 0;
46 | width: 100%;
47 | }
48 |
49 | .goods-characteristic text {
50 | padding-left: 5px;
51 | }
52 |
53 | .goods-title {
54 | font-size: 28rpx;
55 | color: #333;
56 | white-space: nowrap;
57 | overflow: hidden;
58 | text-overflow: ellipsis;
59 | padding: 0 5px;
60 | }
61 |
62 | .goods-price {
63 | color: #b5272d;
64 | font-size: 28rpx;
65 | text-align: left;
66 | width: 100%;
67 | padding: 3px 4px;
68 | }
69 |
70 | .goods-price-naver {
71 | color: #999;
72 | font-size: 24rpx;
73 | line-height: 28px;
74 | width: 100%;
75 | text-align: right;
76 | padding: 0 3px;
77 | }
78 |
79 | .no-more-goods {
80 | text-align: center;
81 | margin-top: 20%;
82 | margin-bottom: 20%;
83 | }
84 |
85 | .no-order-img {
86 | width: 110px;
87 | height: 110px;
88 | }
89 |
90 | .no-more-goods .text {
91 | font-size: 28rpx;
92 | color: #999;
93 | margin-top: -5px;
94 | }
95 | .goods-list-title {
96 | font-size: 30rpx;
97 | color: #333;
98 | text-overflow: ellipsis;
99 | white-space: nowrap;
100 | overflow: hidden;
101 | }
102 |
103 | .goods-originalPrice {
104 | padding-left:20rpx;
105 | font-size:30rpx;
106 | color:#999;
107 | text-decoration:line-through;
108 | line-height:52rpx;
109 | display:inline-block;
110 |
111 | }
112 |
113 | .goods-price {
114 | color:#b5272d;
115 | font-size:30rpx;
116 | padding-top:10rpx;
117 | display:inline;
118 |
119 | }
120 | .goods-list-money {
121 | font-size: 30rpx;
122 | color: #ab2b2b;
123 | }
--------------------------------------------------------------------------------
/pages/cate/cate.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "navigation": "/components/navigation/navigation"
4 | },
5 | "disableScroll":true
6 | }
--------------------------------------------------------------------------------
/pages/cate/cate.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | {{item.name}}
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 | {{item.characteristic}}
43 |
44 |
45 | {{item.name}}
46 |
47 | Ұ{{item.minPrice}}
48 | 已售{{item.numberOrders}}
49 |
50 |
51 |
52 |
53 | 您寻找的商品还未上架
54 |
55 |
56 |
57 |
--------------------------------------------------------------------------------
/pages/coupons/coupons.js:
--------------------------------------------------------------------------------
1 | //index.js
2 | //获取应用实例
3 | var app = getApp()
4 | Page({
5 | data: {
6 | coupons: '',
7 | busid: 0
8 | },
9 |
10 | listenerCouponsInput: function (e) {
11 | this.data.coupons = e.detail.value;
12 | this.data.id = e.currentTarget.dataset.id;
13 | },
14 | listenerDuiHuan: function () {
15 | wx.request({
16 | url: app.globalData.urls + '/discounts/fetch',
17 | data: {
18 | // id: this.data.busid,
19 | pwd: this.data.coupons,
20 | token: app.globalData.token
21 | },
22 | success: function (res) {
23 | console.log(res)
24 | if (res.data.code == 0) {
25 | wx.showToast({
26 | title: '礼券兑换成功',
27 | icon: 'success',
28 | duration: 2000
29 | })
30 | }
31 | if (res.data.code == 20001 || res.data.code == 20002) {
32 | wx.showModal({
33 | title: '兑换失败',
34 | content: '礼券已经兑换完了',
35 | showCancel: false
36 | })
37 | return;
38 | }
39 | if (res.data.code == 20003) {
40 | wx.showModal({
41 | title: '兑换失败',
42 | content: '兑换数量已达最大上限',
43 | showCancel: false
44 | })
45 | return;
46 | }
47 | if (res.data.code == 20000) {
48 | wx.showModal({
49 | title: '兑换失败',
50 | content: '输入的口令有误,请重新输入',
51 | showCancel: false
52 | })
53 | return;
54 | }
55 | }
56 | })
57 | },
58 | onLoad: function () {
59 | var that = this
60 | if (app.globalData.iphone == true) { that.setData({ iphone: 'iphone' }) }
61 | that.getCoupons();
62 | wx.request({
63 | url: app.globalData.urls + '/banner/list',
64 | data: {
65 | key: 'mallName',
66 | type: 'duihuan'
67 | },
68 | success: function (res) {
69 | if (res.data.code == 0 && app.globalData.system != 'key') {
70 | that.setData({
71 | banners: res.data.data,
72 | busid: res.data.data[0].businessId
73 | });
74 | }
75 | }
76 | })
77 | },
78 | getCoupons: function () {
79 | var that = this;
80 | wx.request({
81 | url: app.globalData.urls + '/discounts/coupons',
82 | data: {
83 | type: 'shop'
84 | },
85 | success: function (res) {
86 | console.log(res)
87 | if (res.data.code == 0) {
88 | that.setData({
89 | hasNoCoupons: false,
90 | coupons: res.data.data
91 | });
92 | }
93 | }
94 | })
95 | },
96 | gitCoupon: function (e) {
97 | var that = this;
98 | wx.request({
99 | url: app.globalData.urls + '/discounts/fetch',
100 | data: {
101 | id: e.currentTarget.dataset.id,
102 | token: app.globalData.token
103 | },
104 | success: function (res) {
105 | if (res.data.code == 20001 || res.data.code == 20002) {
106 | wx.showModal({
107 | title: '错误',
108 | content: '礼券已经领完了',
109 | showCancel: false
110 | })
111 | return;
112 | }
113 | if (res.data.code == 20003) {
114 | wx.showModal({
115 | title: '错误',
116 | content: '您已经领过了',
117 | showCancel: false
118 | })
119 | return;
120 | }
121 | if (res.data.code == 30001) {
122 | wx.showModal({
123 | title: '错误',
124 | content: '您的积分不足',
125 | showCancel: false
126 | })
127 | return;
128 | }
129 | if (res.data.code == 20004) {
130 | wx.showModal({
131 | title: '错误',
132 | content: '礼券已经过期',
133 | showCancel: false
134 | })
135 | return;
136 | }
137 | if (res.data.code == 0) {
138 | wx.showToast({
139 | title: '礼券领取成功',
140 | icon: 'success',
141 | duration: 2000
142 | })
143 | } else {
144 | wx.showModal({
145 | title: '错误',
146 | content: res.data.msg,
147 | showCancel: false
148 | })
149 | }
150 | }
151 | })
152 | }
153 | })
154 |
--------------------------------------------------------------------------------
/pages/coupons/coupons.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "navigation": "/components/navigation/navigation"
4 | }
5 | }
--------------------------------------------------------------------------------
/pages/coupons/coupons.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | 兑 换
9 |
10 |
11 |
12 |
13 |
14 | {{item.moneyMax}}
15 | 元
16 |
17 |
18 | {{item.name}}
19 | 满{{item.moneyHreshold}}元使用
20 |
21 | 立即领取
22 |
23 |
24 | {{item.dateEnd}} 前有效
25 | 领取 {{item.dateEndDays}} 天内有效
26 |
27 |
28 |
--------------------------------------------------------------------------------
/pages/coupons/coupons.wxss:
--------------------------------------------------------------------------------
1 | page,.container {
2 | background-color:#ffffff;
3 | }
4 | .coupons-bg,.coupons-image{
5 | width:100%;
6 | height:400rpx;
7 | }
8 | .coupons-input{
9 | background-color:#fff;
10 | position:absolute;
11 | width:80%;
12 | padding:20px 20px 8px 20px;
13 | top:160px;
14 | left:5%;
15 | border-radius:5px;
16 | border:1px solid #f8b551;
17 | }
18 | .input{
19 | border:1px solid #f8b551;
20 | border-radius:3px;
21 | padding:5px 10px;
22 | margin-bottom:10px;
23 | font-size:30rpx;
24 | width:70%;
25 | display:inline-block;
26 | }
27 | .primary {
28 | background:linear-gradient(to right,#eb7073,#f4948a);
29 | font-size:28rpx;
30 | border-radius:4px;
31 | color:#fff;
32 | text-align:center;
33 | width:20%;
34 | display:inline-block;
35 | float:right;
36 | height:33px;
37 | line-height:33px;
38 | }
39 |
40 | .coupons-list{
41 | width:92%;
42 | margin: 0 auto;
43 | margin-top:120rpx;
44 | }
45 | .coupons-item{
46 | color:#fff;
47 | font-size:30rpx;
48 | background:linear-gradient(to right,#eb7073,#f4948a);
49 | margin-bottom:10px;
50 | padding-top:10px;
51 | border-radius:5px;
52 | position:relative;
53 | }
54 | .coupons-item-box{
55 | width:100%;
56 | height:80px;
57 | }
58 | .money-left{
59 | width:90px;
60 | font-size:60rpx;
61 | float:left;
62 | text-align:center;
63 | height:70px;
64 | line-height:70px;
65 | }
66 | .money-left text{
67 | font-size:28rpx;
68 | padding-left:6px;
69 | }
70 | .money-right{
71 | float:left;
72 | margin-top:15px;
73 | }
74 | .money-name{
75 | font-size:30rpx;
76 | padding-bottom:5px;
77 | }
78 | .money-hold{
79 | font-size:24rpx;
80 | color:rgba(255,255,255,.8);
81 | }
82 | .money-home{
83 | display:inline-block;
84 | float:right;
85 | margin:27px 0px;
86 | background-color:rgba(255,255,255,.8);
87 | color:#e65e5f;
88 | font-size:25rpx;
89 | padding:3px 10px;
90 | border-radius:3px;
91 | margin-right:10px;
92 | }
93 | .money-line{
94 | background-image:url(https://cdn.it120.cc/apifactory/2018/03/07/10164d7252e986ba85b372a99fd353c0.png);
95 | height:4px;
96 | width:100%;
97 | background-size:10px 5px;
98 | }
99 | .money-fooder{
100 | background-color:rgba(0,0,0,.08);
101 | font-size:26rpx;
102 | padding:8px 10px;
103 | color: rgba(255,255,255,.8);
104 | border-bottom-right-radius:5px;
105 | border-bottom-left-radius:5px;
106 | }
--------------------------------------------------------------------------------
/pages/fav-list/fav-list.js:
--------------------------------------------------------------------------------
1 | //index.js
2 | //获取应用实例
3 | var app = getApp()
4 | // 语言
5 | var util = require('../../utils/util.js')
6 | import event from '../../utils/event'
7 |
8 | Page({
9 | data: {
10 | //语言 - begin
11 | language: '',
12 | //语言 - end
13 | delBtnWidth: 120,
14 | },
15 | onLoad: function () {
16 | //that.loadCartInfo();
17 | // 语言
18 | // 设置当前页面的language变量 - 每个页面都要有
19 | this.setLanguage();
20 | event.on("languageChanged", this, this.changeLanguage); // (2)
21 | // 设置当前页面的language Index - 每个页面都要有
22 | wx.T.setLocaleByIndex(wx.T.langIndex);
23 | // 语言 - 结束
24 | },
25 | toDetailsTap: function (e) {
26 | wx.navigateTo({
27 | url: "/pages/goods-detail/goods-detail?id=" + e.currentTarget.dataset.id
28 | })
29 | },
30 | home: function () {
31 | wx.switchTab({
32 | url: "/pages/index/index"
33 | })
34 | },
35 | // 语言
36 | // 设置language变量(翻译Object)
37 | setLanguage() {
38 | var lang = wx.T.getLanguage()
39 | this.setData({
40 | language: lang,
41 | selectSize: lang.select_attribute
42 | });
43 | },
44 | changeLanguage() {
45 | var lang = wx.T.getLanguage()
46 | this.setData({
47 | language: lang,
48 | selectSize: lang.select_attribute
49 | });
50 | this.onShow()
51 | },
52 | onShow: function () {
53 | var that = this;
54 | if (app.globalData.iphone == true) { that.setData({ iphone: 'iphone' }) }
55 | wx.request({
56 | url: app.globalData.urls + '/customer/productfavorite/index',
57 | data: {},
58 | header: app.getRequestHeader(),
59 | success: function (res) {
60 | if (res.data.code == 200) {
61 | var favList = [];
62 | var products = res.data.data.productList;
63 | var ii = 0;
64 | for (var x in products) {
65 | var product = products[x]
66 | favList.push({
67 | goodsName: product.name,
68 | goodsId: product.product_id,
69 | pic: product.imgUrl,
70 | dateAdd: product.updated_at,
71 | })
72 | ii++
73 | }
74 | if (ii == 0) {
75 | that.setData({
76 | favList: null,
77 | loadingMoreHidden: false
78 | });
79 | return
80 | }
81 |
82 | that.setData({
83 | favList: favList,
84 | loadingMoreHidden: true
85 | });
86 | } else{
87 | that.setData({
88 | favList: null,
89 | loadingMoreHidden: false
90 | });
91 | }
92 | }
93 | })
94 | }
95 |
96 |
97 |
98 | })
--------------------------------------------------------------------------------
/pages/fav-list/fav-list.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "navigation": "/components/navigation/navigation"
4 | }
5 | }
--------------------------------------------------------------------------------
/pages/fav-list/fav-list.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | {{item.goodsName}}
8 | {{language.favorite_datetime}}:{{item.dateAdd}}
9 | {{language.favorite_info}}
10 |
11 |
12 |
13 | {{language.no_favorite}}
14 |
15 |
--------------------------------------------------------------------------------
/pages/fav-list/fav-list.wxss:
--------------------------------------------------------------------------------
1 | page {
2 | background-color: #f5f5f5;
3 | }
4 |
5 | .goods-container {
6 | width: 100%;
7 | }
8 | .goods-box {
9 | width: 100%;
10 | height: 100px;
11 | background-color: #fff;
12 | border-bottom: 1px solid #f5f5f5;
13 | }
14 |
15 | .img-box {
16 | background-color: #f5f5f5;
17 | margin-top: 10px;
18 | margin-left: 10px;
19 | margin-right: 10px;
20 | margin-bottom: 10px;
21 | width: 80px;
22 | height: 80px;
23 | border-radius: 3px;
24 | float: left;
25 | }
26 |
27 | .img-box image {
28 | width: 80px;
29 | height: 80px;
30 | display: inline-block;
31 | }
32 |
33 | .goods-title {
34 | display: inline-block;
35 | font-size: 30rpx;
36 | margin-top: 15px;
37 | width: 50%;
38 | color: #333;
39 | }
40 |
41 | .good-money {
42 | font-size: 22rpx;
43 | color: #999;
44 | margin-top: 4px;
45 | }
46 |
47 | .title-opacity {
48 | float: right;
49 | font-size: 22rpx;
50 | margin-right: 10px;
51 | border: 1px solid #999;
52 | color: #999;
53 | padding: 1px 4px;
54 | border-radius: 3px;
55 | }
56 |
57 | .no-more-goods {
58 | text-align: center;
59 | margin-top: 50%;
60 | }
61 |
62 | .no-order-img {
63 | width: 110px;
64 | height: 110px;
65 | }
66 |
67 | .no-more-goods .text {
68 | font-size: 28rpx;
69 | color: #999;
70 | margin-top: -5px;
71 | }
72 |
--------------------------------------------------------------------------------
/pages/freshman/freshman.js:
--------------------------------------------------------------------------------
1 | // pages/freshman/freshman.js
2 | var app = getApp()
3 | Page({
4 | data: {
5 | bgPic: null,
6 | bgColor: null,
7 | couponsTop: null,
8 | conponsPic: null,
9 | couponsId: null,
10 | hasNoCoupons: true,
11 | coupons: null
12 | },
13 |
14 | /**
15 | * 生命周期函数--监听页面加载
16 | */
17 | onLoad: function(options) {
18 | var that = this
19 | //获取优惠券背景
20 | wx.request({
21 | url: app.globalData.urls + '/banner/list',
22 | data: {
23 | key: 'mallName',
24 | type: 'coupons'
25 | },
26 | success: function(res) {
27 | console.log(res)
28 | if (res.data.code == 0 && app.globalData.system != 'key') {
29 | that.setData({
30 | bgPic: res.data.data[0]
31 | });
32 | }
33 | }
34 | })
35 | //获取优惠券页面整体背景
36 | wx.request({
37 | url: app.globalData.urls + '/config/get-value',
38 | data: {
39 | key: 'couponsBg'
40 | },
41 | success: function(res) {
42 | if (res.data.code == 0) {
43 | that.setData({
44 | bgColor: res.data.data.value
45 | });
46 | }
47 | }
48 | })
49 | //获取优惠券距离顶部高度
50 | wx.request({
51 | url: app.globalData.urls + '/config/get-value',
52 | data: {
53 | key: 'couponsTop'
54 | },
55 | success: function(res) {
56 | if (res.data.code == 0) {
57 | that.setData({
58 | couponsTop: res.data.data.value
59 | });
60 | }
61 | }
62 | })
63 | wx.request({
64 | url: app.globalData.urls + '/discounts/coupons',
65 | data: {
66 | type: 'freshman'
67 | },
68 | success: function(res) {
69 | console.log(res)
70 | if (res.data.code == 0) {
71 | that.setData({
72 | hasNoCoupons: false,
73 | coupons: res.data.data[0]
74 | });
75 | }
76 | }
77 | })
78 | },
79 | getCoupons: function(e) {
80 | var that = this;
81 | wx.request({
82 | url: app.globalData.urls + '/discounts/fetch',
83 | data: {
84 | id: e.currentTarget.dataset.id,
85 | token: app.globalData.token
86 | },
87 | success: function(res) {
88 | if (res.data.code == 20001 || res.data.code == 20002) {
89 | wx.showModal({
90 | title: '哎呦',
91 | content: '礼券已经领完了',
92 | showCancel: false
93 | })
94 | return;
95 | }
96 | if (res.data.code == 20003) {
97 | wx.showModal({
98 | title: '哎呦',
99 | content: '您已经领过了',
100 | showCancel: false
101 | })
102 | return;
103 | }
104 | if (res.data.code == 30001) {
105 | wx.showModal({
106 | title: '哎呦',
107 | content: '您的积分不足',
108 | showCancel: false
109 | })
110 | return;
111 | }
112 | if (res.data.code == 20004) {
113 | wx.showModal({
114 | title: '哎呦',
115 | content: '礼券已经过期',
116 | showCancel: false
117 | })
118 | return;
119 | }
120 | if (res.data.code == 0) {
121 | wx.showToast({
122 | title: '礼券领取成功',
123 | icon: 'success',
124 | duration: 2000
125 | })
126 | } else {
127 | wx.showModal({
128 | title: '错误',
129 | content: res.data.msg,
130 | showCancel: false
131 | })
132 | }
133 | }
134 | })
135 | },
136 | /**
137 | * 生命周期函数--监听页面初次渲染完成
138 | */
139 | onReady: function() {
140 |
141 | },
142 |
143 | /**
144 | * 生命周期函数--监听页面显示
145 | */
146 | onShow: function() {
147 |
148 | },
149 |
150 | /**
151 | * 生命周期函数--监听页面隐藏
152 | */
153 | onHide: function() {
154 |
155 | },
156 |
157 | /**
158 | * 生命周期函数--监听页面卸载
159 | */
160 | onUnload: function() {
161 |
162 | },
163 |
164 | /**
165 | * 页面相关事件处理函数--监听用户下拉动作
166 | */
167 | onPullDownRefresh: function() {
168 |
169 | },
170 |
171 | /**
172 | * 页面上拉触底事件的处理函数
173 | */
174 | onReachBottom: function() {
175 |
176 | },
177 |
178 | /**
179 | * 用户点击右上角分享
180 | */
181 | onShareAppMessage: function() {
182 |
183 | }
184 | })
185 |
--------------------------------------------------------------------------------
/pages/freshman/freshman.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "新人专享",
3 | "navigationBarTextStyle": "white",
4 | "disableScroll":true
5 | }
--------------------------------------------------------------------------------
/pages/freshman/freshman.wxml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | {{coupons.moneyMax}}元
14 | 无门槛优惠券
15 | 满{{coupons.moneyHreshold}}元使用
16 | {{coupons.dateEnd}} 前有效
17 | 领取 {{coupons.dateEndDays}} 天内有效
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/pages/freshman/freshman.wxss:
--------------------------------------------------------------------------------
1 | /* pages/freshman/freshman.wxss */
2 | .page-bg{
3 | width: 750rpx;
4 | position: absolute;
5 | top: 0;
6 | left: 0;
7 | }
8 | .page-bg image{
9 | width: 100%;
10 | }
11 | .coupons-pic{
12 | position: relative;
13 | width: 100%;
14 | text-align: center;
15 | }
16 | .coupons-pic image{
17 | width: 430rpx;
18 | height: 600rpx;
19 | box-shadow: 0 2rpx 5rpx #731807;
20 | }
21 | .coupons-pic .text{
22 | position: absolute;
23 | top: 195rpx;
24 | z-index: 2;
25 | width: 430rpx;
26 | text-align: center;
27 | font-size: 28rpx;
28 | color: #dc3b0d;
29 | left: 160rpx;
30 | }
31 | .coupons-pic .text .number{
32 | margin-bottom: 5rpx;
33 | }
34 | .coupons-pic .text .number .money{
35 | font-size: 58rpx;
36 | font-weight: bold;
37 | }
38 | .coupons-pic .text .number .unit{
39 | font-size: 30rpx;
40 | }
41 | .coupons-pic .text .date{
42 | margin-bottom: 10rpx;
43 | font-size: 22rpx;
44 | color: #A18D65;
45 | }
46 | .coupons-pic .text .condition{
47 | margin-bottom: 5rpx;
48 |
49 | }
50 | .coupons-pic .text button{
51 | background: #dc3b0d;
52 | width: 240rpx;
53 | text-align: center;
54 | height: 52rpx;
55 | color: #fff;
56 | line-height: 52rpx;
57 | border-radius: 24rpx;
58 | font-size: 30rpx;
59 | }
--------------------------------------------------------------------------------
/pages/goods-detail/goods-detail.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "navigation": "/components/navigation/navigation"
4 | },
5 | "navigationBarTextStyle":"black"
6 | }
7 |
--------------------------------------------------------------------------------
/pages/index/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "navigation": "/components/navigation/navigation"
4 | },
5 | "navigationBarTextStyle": "white"
6 | }
7 |
--------------------------------------------------------------------------------
/pages/index/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
40 |
41 |
42 | {{topgoods.value}}
43 |
44 |
45 |
46 | {{item.name}}
47 |
48 |
49 | {{item.special_price.symbol}} {{item.special_price.value}}
50 | {{item.price.symbol}} {{item.price.value}}
51 |
52 |
53 | {{item.price.symbol}} {{item.price.value}}
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 | {{language.change_language}}:{{languages[langIndex]}}
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 | {{language.change_currency}}:{{currencys[currencyIndex]}}
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 | {{topname}}
81 |
82 |
83 | 需要您的授权才能正常使用哦!
84 |
85 | ·请允许我们获得您的公开资讯
86 |
87 | ·我们不会公布您的这些信息
88 |
89 | ·只是为了给您提供更好的服务
90 |
91 |
92 |
93 |
94 |
--------------------------------------------------------------------------------
/pages/login/login.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "个人中心",
3 | "navigationBarTextStyle": "white",
4 | "usingComponents": {
5 | "navigation": "/components/navigation/navigation"
6 | }
7 | }
--------------------------------------------------------------------------------
/pages/login/login.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 | {{item.title}}
16 |
17 |
18 |
19 |
20 |
25 |
29 |
30 |
31 |
50 |
51 |
52 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
--------------------------------------------------------------------------------
/pages/logistics/logistics.js:
--------------------------------------------------------------------------------
1 | //index.js
2 | //获取应用实例
3 | var app = getApp()
4 | Page({
5 | data: {},
6 | onLoad: function (e) {
7 | var that = this;
8 | var orderId = e.id;
9 | var numberId = e.number;
10 | if (app.globalData.iphone == true) { that.setData({ iphone: 'iphone' }) };
11 | if(app.siteInfo.wuliukey){
12 | wx.request({
13 | url: 'https://it120.maliapi.com/api/1?viewid=home&part=get_wuliu',
14 | method: 'POST',
15 | data: {
16 | domain_name: app.globalData.urls,
17 | mapkey: app.siteInfo.wuliukey,
18 | num: numberId,
19 | viewid: 'home',
20 | part: 'get_wuliu'
21 | },
22 | header: {
23 | 'content-type': 'application/x-www-form-urlencoded'
24 | },
25 | success: function (res) {
26 | console.log(res)
27 | if(res.data.code == 0){
28 | var wuliujson = JSON.parse(res.data.data);
29 | that.setData({
30 | orderDetailName: wuliujson.showapi_res_body.expTextName,
31 | orderDetailNumber: wuliujson.showapi_res_body.mailNo,
32 | maliwiliuList: wuliujson.showapi_res_body.data
33 | });
34 | }else{
35 | that.setData({
36 | nonemaliWuliu: true
37 | });
38 | }
39 | }
40 | });
41 | }else{
42 | wx.request({
43 | url: app.globalData.urls + '/order/detail',
44 | data: {
45 | token: app.globalData.token,
46 | id: orderId
47 | },
48 | success: function (res) {
49 | console.log(res)
50 | if(res.data.code == 0){
51 | if(res.data.data.logisticsTraces){
52 | that.setData({
53 | orderDetailName: res.data.data.logistics.shipperName,
54 | orderDetailNumber: res.data.data.logistics.trackingNumber,
55 | apiwiliuList: res.data.data.logisticsTraces
56 | });
57 | }else{
58 | that.setData({
59 | noneapiWuliu: true
60 | });
61 | }
62 | }
63 | }
64 | });
65 | }
66 | },
67 | })
68 |
--------------------------------------------------------------------------------
/pages/logistics/logistics.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "navigation": "/components/navigation/navigation"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/pages/logistics/logistics.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 物流公司
6 | {{orderDetailName}}
7 |
8 |
9 | 物流单号
10 | {{orderDetailNumber}}
11 |
12 |
13 |
14 |
15 |
16 | -
17 |
18 | {{item.AcceptStation}}
19 | {{item.AcceptTime}}
20 |
21 |
22 |
23 | 暂无物流信息
24 |
25 |
26 |
27 | -
28 |
29 | {{item.context}}
30 | {{item.time}}
31 |
32 |
33 |
34 | 暂无物流信息
35 |
36 |
37 |
--------------------------------------------------------------------------------
/pages/logistics/logistics.wxss:
--------------------------------------------------------------------------------
1 | .container {
2 | width: 100%;
3 | height: 100%;
4 | }
5 | page {
6 | background-color: #f2f2f2;
7 | }
8 |
9 | .top-sec {
10 | background-color: #fff;
11 | width: 100%;
12 | margin-top: 20rpx;
13 | box-sizing: border-box;
14 | padding: 24rpx 30rpx;
15 | border-top: 2rpx solid #f5f5f5;
16 | }
17 |
18 | .top-sec .a-row {
19 | display: flex;
20 | font-size: 28rpx;
21 | line-height: 54rpx;
22 | }
23 |
24 | .top-sec .a-row .label {
25 | color: #999;
26 | margin-right: 28rpx;
27 | }
28 |
29 | .sec-wrap {
30 | width: 100%;
31 | background-color: #fff;
32 | padding-top: 10rpx;
33 | margin-top: 10rpx;
34 | }
35 |
36 | .details-info {
37 | position: relative;
38 | width: 100%;
39 | margin-top: 20rpx;
40 | overflow: hidden;
41 | }
42 |
43 | .details-info .a-row {
44 | display: flex;
45 | position: relative;
46 | z-index: 4;
47 | width: 93%;
48 | margin: 0 auto;
49 | margin-bottom: 14rpx;
50 | border-bottom: 2rpx dashed #f5f5f5;
51 | padding-bottom: 10rpx;
52 | }
53 |
54 | .details-info .a-row .info {
55 | font-size: 28rpx;
56 | display: flex;
57 | }
58 |
59 | .date-box {
60 | font-size: 26rpx;
61 | color: #333;
62 | margin-bottom: 20rpx;
63 | width: 530rpx;
64 | }
65 |
66 | .info .text {
67 | color: #999;
68 | width: 25%;
69 | text-align: right;
70 | font-size: 22rpx;
71 | }
72 |
73 | .dot {
74 | width: 30rpx;
75 | height: 30rpx;
76 | margin-right: 30rpx;
77 | display: flex;
78 | align-items: center;
79 | justify-content: center;
80 | box-sizing: border-box;
81 | }
82 |
83 | .default-dot {
84 | background: #ddd;
85 | width: 14rpx;
86 | height: 14rpx;
87 | border-radius: 100%;
88 | }
89 |
90 | .active-dot {
91 | border: 2rpx solid #e64340;
92 | width: 26rpx;
93 | height: 26rpx;
94 | border-radius: 50%;
95 | display: flex;
96 | align-items: center;
97 | justify-content: center;
98 | background-color: #fff;
99 | }
100 |
101 | .active-dot .yuan-red {
102 | background: #e64340;
103 | width: 14rpx;
104 | height: 14rpx;
105 | border-radius: 50%;
106 | }
107 |
108 | .none {
109 | text-align: center;
110 | padding-top: 100rpx;
111 | padding-bottom: 120rpx;
112 | font-size: 30rpx;
113 | color: #333;
114 | }
115 |
--------------------------------------------------------------------------------
/pages/logs/logs.js:
--------------------------------------------------------------------------------
1 | //logs.js
2 | const util = require('../../utils/util.js')
3 |
4 | Page({
5 | data: {
6 | logs: []
7 | },
8 | onLoad: function () {
9 | this.setData({
10 | logs: (wx.getStorageSync('logs') || []).map(log => {
11 | return util.formatTime(new Date(log))
12 | })
13 | })
14 | }
15 | })
16 |
--------------------------------------------------------------------------------
/pages/logs/logs.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "查看启动日志",
3 | "usingComponents": {}
4 | }
--------------------------------------------------------------------------------
/pages/logs/logs.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | {{index + 1}}. {{log}}
5 |
6 |
7 |
--------------------------------------------------------------------------------
/pages/logs/logs.wxss:
--------------------------------------------------------------------------------
1 | .log-list {
2 | display: flex;
3 | flex-direction: column;
4 | padding: 40rpx;
5 | }
6 | .log-item {
7 | margin: 10rpx;
8 | }
9 |
--------------------------------------------------------------------------------
/pages/my-coupons/my-coupons.js:
--------------------------------------------------------------------------------
1 | //index.js
2 | //获取应用实例
3 | var app = getApp()
4 | Page({
5 | data: {
6 | coupons:[]
7 | },
8 | onLoad: function () {
9 | var that = this;
10 | if (app.globalData.iphone == true) { that.setData({ iphone: 'iphone' }) }
11 | },
12 | onShow : function () {
13 | this.getMyCoupons();
14 | },
15 | getMyCoupons: function () {
16 | var that = this;
17 | wx.request({
18 | url: app.globalData.urls + '/discounts/my',
19 | data: {
20 | token: app.globalData.token,
21 | status: 0
22 | },
23 | success: function (res) {
24 | if (res.data.code == 0) {
25 | var coupons = res.data.data;
26 | if (coupons.length > 0) {
27 | that.setData({
28 | coupons: coupons,
29 | loadingMoreHidden: true
30 | });
31 | }
32 | }else{
33 | that.setData({
34 | loadingMoreHidden: false
35 | });
36 | }
37 | }
38 | })
39 | },
40 | goBuy:function(){
41 | wx.navigateTo({
42 | url: '/pages/coupons/coupons'
43 | })
44 | },
45 | gohome: function () {
46 | wx.switchTab({
47 | url: "/pages/index/index"
48 | })
49 | }
50 |
51 | })
52 |
--------------------------------------------------------------------------------
/pages/my-coupons/my-coupons.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "navigation": "/components/navigation/navigation"
4 | }
5 | }
--------------------------------------------------------------------------------
/pages/my-coupons/my-coupons.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {{item.money}}
6 | 元
7 |
8 |
9 | {{item.name}}
10 | 满{{item.moneyHreshold}}元使用
11 |
12 | 去使用
13 |
14 |
15 | {{item.dateEnd}}前有效
16 |
17 |
18 |
19 |
20 |
21 | 还没有领取礼券呢
22 |
23 |
24 |
25 | 去领券 >>
26 |
27 |
--------------------------------------------------------------------------------
/pages/my-coupons/my-coupons.wxss:
--------------------------------------------------------------------------------
1 | .header-container {
2 | background-color: #fff;
3 | }
4 | page, .container {
5 | background-color: #f5f5f5;
6 | }
7 |
8 | .coupons-list {
9 | width: 92%;
10 | padding-top: 10px;
11 | margin: 0 auto;
12 | margin-bottom: 50px;
13 | }
14 |
15 | .coupons-item {
16 | color: #fff;
17 | font-size: 30rpx;
18 | background: linear-gradient(to right, #eb7073, #f4948a);
19 | margin-bottom: 10px;
20 | padding-top: 10px;
21 | border-radius: 5px;
22 | position: relative;
23 | }
24 |
25 | .money-left {
26 | width: 120px;
27 | font-size: 60rpx;
28 | margin: 16px 0px;
29 | display: inline-block;
30 | text-align: center;
31 | }
32 |
33 | .money-left text {
34 | font-size: 28rpx;
35 | padding-left: 6px;
36 | }
37 |
38 | .money-right {
39 | margin: 18px 0px;
40 | display: inline-block;
41 | }
42 |
43 | .money-name {
44 | font-size: 30rpx;
45 | }
46 |
47 | .money-hold {
48 | font-size: 24rpx;
49 | color: rgba(255, 255, 255, 0.8);
50 | }
51 |
52 | .money-home {
53 | display: inline-block;
54 | float: right;
55 | margin: 27px 0px;
56 | background-color: rgba(255, 255, 255, 0.8);
57 | color: #e65e5f;
58 | font-size: 25rpx;
59 | padding: 3px 10px;
60 | border-radius: 3px;
61 | margin-right: 10px;
62 | }
63 |
64 | .money-line {
65 | background-image: url(https://cdn.it120.cc/apifactory/2018/03/07/10164d7252e986ba85b372a99fd353c0.png);
66 | height: 4px;
67 | width: 100%;
68 | background-size: 10px 5px;
69 | }
70 |
71 | .money-fooder {
72 | background-color: rgba(0, 0, 0, 0.08);
73 | font-size: 26rpx;
74 | padding: 8px 10px;
75 | color: rgba(255, 255, 255, 0.8);
76 | border-bottom-right-radius: 5px;
77 | border-bottom-left-radius: 5px;
78 | }
79 |
80 | .bottom-box {
81 | position: fixed;
82 | bottom: 0;
83 | background-color: #fcfcfc;
84 | width: 100%;
85 | text-align: center;
86 | height: 48px;
87 | font-size: 30rpx;
88 | line-height: 48px;
89 | color: #b4282d;
90 | box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.1);
91 | }
92 |
93 | .bottom-box image {
94 | width: 20px;
95 | height: 20px;
96 | margin: -5px 0;
97 | }
98 |
99 | .no-more-goods {
100 | text-align: center;
101 | margin-top: 35%;
102 | }
103 |
104 | .no-order-img {
105 | width: 110px;
106 | height: 110px;
107 | }
108 |
109 | .no-more-goods .text {
110 | font-size: 28rpx;
111 | color: #999;
112 | margin-top: -5px;
113 | }
114 |
--------------------------------------------------------------------------------
/pages/my/my.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "个人中心",
3 | "navigationBarTextStyle": "white"
4 | }
--------------------------------------------------------------------------------
/pages/my/my.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | {{item.title}}
15 |
16 |
17 |
18 |
19 |
20 |
21 | {{language.my_order}}
22 |
23 |
24 |
25 | {{noplay}}
26 |
27 | {{language.wait_pay}}
28 |
29 |
30 | {{notransfer}}
31 |
32 | {{language.wait_deliver}}
33 |
34 |
35 | {{noconfirm}}
36 |
37 | {{language.pending_receipt}}
38 |
39 |
40 | {{noreputation}}
41 |
42 | {{language.order_complete}}
43 |
44 |
45 |
46 |
62 |
63 |
64 | {{language.my_favorite}}
65 |
66 |
67 |
68 | {{language.my_address}}
69 |
70 |
71 |
72 | {{language.my_service}}
73 |
74 |
75 |
76 |
77 | {{getInfo}}
78 |
79 |
80 |
--------------------------------------------------------------------------------
/pages/notice/notice.js:
--------------------------------------------------------------------------------
1 | var app = getApp();
2 | var WxParse = require('../../wxParse/wxParse.js');
3 | Page({
4 | data: {
5 |
6 | },
7 | onLoad: function (e) {
8 | var that = this;
9 | wx.request({
10 | url: app.globalData.urls + '/notice/detail',
11 | data: {
12 | id: e.id
13 | },
14 | success: function (res) {
15 | if (res.data.code == 0) {
16 | that.setData({
17 | notice: res.data.data
18 | });
19 | WxParse.wxParse('article', 'html', res.data.data.content, that, 5);
20 | }
21 | }
22 | })
23 | }
24 | })
--------------------------------------------------------------------------------
/pages/notice/notice.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "navigation": "/components/navigation/navigation"
4 | }
5 | }
--------------------------------------------------------------------------------
/pages/notice/notice.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 | {{notice.title}}
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/pages/notice/notice.wxss:
--------------------------------------------------------------------------------
1 | .header-container {
2 | background-color: #fff;
3 | border-bottom: 2rpx solid #f5f5f5;
4 | }
5 | .notice {
6 | width: 750rpx;
7 | padding: 15rpx;
8 | font-size: 25rpx;
9 | }
10 |
11 | .title {
12 | color: #333;
13 | font-size: 32rpx;
14 | margin-bottom: 10rpx;
15 | text-align: center;
16 | height: 90rpx;
17 | line-height: 90rpx;
18 | padding-top: 20rpx;
19 | }
20 |
21 | .text {
22 | font-size: 30rpx;
23 | width: 95%;
24 | margin: 0 auto;
25 | }
26 |
--------------------------------------------------------------------------------
/pages/order-detail/order-detail.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "navigation": "/components/navigation/navigation"
4 | }
5 | }
--------------------------------------------------------------------------------
/pages/order-list/order-list.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "navigation": "/components/navigation/navigation"
4 | }
5 | }
--------------------------------------------------------------------------------
/pages/order-list/order-list.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {{item}}
6 |
7 |
8 |
9 |
10 |
11 | {{language.no_order}}
12 |
13 |
14 |
15 |
16 | {{language.order_create_datetime}}:{{item.dateAdd}}
17 | {{item.statusStr}}
18 |
19 |
20 |
21 | {{language.order_no}}:{{item.orderNumber}}
22 | {{language.remark}}:{{item.remark}}
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 | {{language.grand_total}}:{{item.currency_symbol}} {{item.amountReal}}
34 |
35 | {{language.order_cancel_2}}
36 | {{language.order_now_pay}}
37 |
38 |
43 |
44 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/pages/order-list/order-list.wxss:
--------------------------------------------------------------------------------
1 | .top-header {
2 | border-bottom: 0;
3 | }
4 | .container {
5 | width: 100%;
6 | background-color: #f5f5f5;
7 | overflow: hidden;
8 | }
9 |
10 |
11 | .status-box {
12 | width: 100%;
13 | height: 88rpx;
14 | line-height: 88rpx;
15 | display: flex;
16 | justify-content: space-between;
17 | align-items: center;
18 | background-color: #fff;
19 | }
20 |
21 | .status-box .status-label {
22 | width: 150rpx;
23 | height: 100%;
24 | text-align: center;
25 | font-size: 28rpx;
26 | color: #353535;
27 | box-sizing: border-box;
28 | position: relative;
29 | }
30 |
31 | .status-box .status-label.active {
32 | color: #b5272d;
33 | border-bottom: 6rpx solid #b5272d;
34 | }
35 |
36 | .status-box .status-label .red-dot {
37 | width: 16rpx;
38 | height: 16rpx;
39 | position: absolute;
40 | left: 125rpx;
41 | top: 20rpx;
42 | background-color: #b5272d;
43 | border-radius: 50%;
44 | }
45 |
46 | .no-order {
47 | width: 100%;
48 | height: 100%;
49 | text-align: center;
50 | background-color: #f2f2f2;
51 | box-sizing: border-box;
52 | padding-top: 88rpx;
53 | }
54 |
55 | .no-order-img {
56 | width: 220rpx;
57 | height: 220rpx;
58 | margin-bottom: -10rpx;
59 | margin-top: 30%;
60 | }
61 |
62 | .no-order .text {
63 | font-size: 28rpx;
64 | color: #999;
65 | text-align: center;
66 | }
67 |
68 | .order-list {
69 | width: 100%;
70 | }
71 |
72 | .order-list .a-order {
73 | width: 100%;
74 | background-color: #fff;
75 | margin-top: 20rpx;
76 | }
77 |
78 | .order-list .a-order .order-date {
79 | padding: 0 30rpx;
80 | height: 70rpx;
81 | display: flex;
82 | justify-content: space-between;
83 | font-size: 26rpx;
84 | color: #000;
85 | align-items: center;
86 | }
87 |
88 | .order-list .a-order .order-date .red {
89 | font-size: 26rpx;
90 | color: #b5272d;
91 | }
92 |
93 | .a-order .goods-info, .goods-img-container {
94 | width: 100%;
95 | border-top: 1rpx solid #f5f5f5;
96 | padding: 16rpx 0 16rpx 0;
97 | display: flex;
98 | align-items: center;
99 | color: #333;
100 | }
101 |
102 | .goods-info .img-box {
103 | width: 120rpx;
104 | height: 120rpx;
105 | overflow: hidden;
106 | margin-right: 30rpx;
107 | background-color: #f7f7f7;
108 | }
109 |
110 | .goods-info .img-box .goods-img, .goods-img-container .img-box .goods-img {
111 | width: 120rpx;
112 | height: 120rpx;
113 | }
114 |
115 | .goods-info .goods-des {
116 | width: 95%;
117 | line-height: 39rpx;
118 | font-size: 26rpx;
119 | color: #000;
120 | overflow: hidden;
121 | margin-left: 30rpx;
122 | }
123 |
124 | .goods-img-container {
125 | height: 180rpx;
126 | box-sizing: border-box;
127 | white-space: nowrap;
128 | border-bottom: 1px solid #f5f5f5;
129 | padding-left: 30rpx;
130 | }
131 |
132 | .goods-img-container .img-box {
133 | width: 120rpx;
134 | height: 120rpx;
135 | overflow: hidden;
136 | margin-right: 20rpx;
137 | background-color: #f7f7f7;
138 | display: inline-block;
139 | }
140 |
141 | .order-list .a-order .price-box {
142 | position: relative;
143 | width: 720rpx;
144 | height: 100rpx;
145 | margin-left: 30rpx;
146 | box-sizing: border-box;
147 | padding: 20rpx 30rpx 20rpx 0;
148 | display: flex;
149 | align-items: center;
150 | justify-content: space-between;
151 | font-size: 26rpx;
152 | }
153 | .order-list .a-order .price-box .btn-box{
154 | display: flex;
155 | justify-content: flex-end;
156 | }
157 | .order-list .a-order .price-box .total-price {
158 | font-size: 26rpx;
159 | color: #b5272d;
160 | }
161 |
162 | .a-order .price-box .btn {
163 | width: 166rpx;
164 | height: 60rpx;
165 | box-sizing: border-box;
166 | text-align: center;
167 | line-height: 60rpx;
168 | border-radius: 6rpx;
169 | margin-left: 20rpx;
170 | }
171 |
172 | .a-order .price-box .cancel-btn {
173 | border: 1rpx solid #ccc;
174 | position: absolute;
175 | right: 216rpx;
176 | top: 20rpx;
177 | color: #999;
178 | }
179 |
180 | .a-order .price-box .topay-btn {
181 | border: 1px solid #b5272d;
182 | color: #b5272d;
183 | }
184 | .confirm-btn {
185 | background: #fff;
186 | border: 1px solid #b5272d;
187 | float: right;
188 | }
189 | .toeva-btn{
190 | background: #fff;
191 | border: 1px solid #b5272d;
192 | float: right;
193 | }
--------------------------------------------------------------------------------
/pages/pay-order/pay-order.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "navigation": "/components/navigation/navigation"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/pages/pay-order/pay-order.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
84 |
--------------------------------------------------------------------------------
/pages/pay-order/pay-order.wxss:
--------------------------------------------------------------------------------
1 | .container {
2 | background-color: #f2f2f2;
3 | margin-bottom: 120rpx;
4 | }
5 |
6 | .header-container {
7 | background-color: #fff;
8 | }
9 |
10 | .address-box {
11 | width: 100%;
12 | background: url(https://cdn.it120.cc/images/weappshop/arrow-right.png) no-repeat 705rpx center,
13 | url(https://cdn.it120.cc/images/weappshop/addr-line.png) no-repeat center bottom;
14 | background-size: 16rpx auto, 750rpx auto;
15 | background-color: #fff;
16 | margin: 20rpx 0;
17 | }
18 |
19 | .add-addres {
20 | width: 100%;
21 | }
22 |
23 | .add-address .title {
24 | font-size: 28rpx;
25 | color: #000;
26 | margin-left: 30rpx;
27 | background: url(https://cdn.it120.cc/images/weappshop/ico-add-addr.png) no-repeat left center;
28 | background-size: 60rpx auto;
29 | padding: 40rpx 0 40rpx 90rpx;
30 | }
31 |
32 | .show-address {
33 | width: 664rpx;
34 | box-sizing: border-box;
35 | padding-left: 100rpx;
36 | background: url(https://cdn.it120.cc/images/weappshop/ico-addr.png) no-repeat 30rpx 35rpx;
37 | background-size: 30rpx auto;
38 | }
39 |
40 | .show-address .name-tel {
41 | font-size: 28rpx;
42 | color: #000;
43 | padding: 30rpx 0 20rpx 0;
44 | }
45 |
46 | .show-address .addr-text {
47 | font-size: 24rpx;
48 | color: #888;
49 | padding-bottom: 34rpx;
50 | line-height: 36rpx;
51 | }
52 |
53 | form {
54 | width: 100%;
55 | }
56 |
57 | .goods-list {
58 | width: 100%;
59 | background-color: #fff;
60 | margin-bottom: 20rpx;
61 | }
62 |
63 | .goods-list .list-title {
64 | font-size: 28rpx;
65 | color: #000;
66 | padding: 30rpx 0 25rpx 30rpx;
67 | }
68 |
69 | .goods-list .a-goods {
70 | width: 720rpx;
71 | display: flex;
72 | border-top: 1px solid #eee;
73 | padding: 30rpx 30rpx 30rpx 0;
74 | }
75 |
76 | .goods-list .a-goods .img-box {
77 | width: 160rpx;
78 | height: 160rpx;
79 | overflow: hidden;
80 | margin-right: 20rpx;
81 | margin-left: 30rpx;
82 | background-color: #d8d8d8;
83 | }
84 |
85 | .goods-list .img-box .img {
86 | width: 160rpx;
87 | height: 160rpx;
88 | }
89 |
90 | .goods-list .a-goods .text-box {
91 | width: 510rpx;
92 | box-sizing: border-box;
93 | padding-top: 10rpx;
94 | }
95 |
96 | .a-goods .text-box .arow {
97 | display: flex;
98 | justify-content: space-between;
99 | align-items: center;
100 | }
101 |
102 | .a-goods .text-box .arow .goods-name {
103 | width: 360rpx;
104 | font-size: 26rpx;
105 | height: 74rpx;
106 | color: #000;
107 | line-height: 1.6;
108 | overflow: hidden;
109 | }
110 |
111 | .a-goods .text-box .arow01 {
112 | margin-bottom: 30rpx;
113 | }
114 |
115 | .a-goods .text-box .arow .goods-price {
116 | font-size: 26rpx;
117 | color: #000;
118 | align-self: flex-start;
119 | }
120 |
121 | .a-goods .text-box .arow .goods-label {
122 | font-size: 26rpx;
123 | color: #999;
124 | }
125 |
126 | .a-goods .text-box .arow .goods-num {
127 | font-size: 26rpx;
128 | color: #999;
129 | }
130 |
131 | .peisong-way {
132 | width: 100%;
133 | background-color: #fff;
134 | margin-bottom: 20rpx;
135 | }
136 |
137 | .peisong-way .row-box {
138 | width: 720rpx;
139 | display: flex;
140 | justify-content: space-between;
141 | align-items: center;
142 | box-sizing: border-box;
143 | padding: 24rpx 0 24rpx 30rpx;
144 | border-bottom: 1rpx solid #eee;
145 | }
146 |
147 | .peisong-way .row-label {
148 | font-size: 28rpx;
149 | color: #000;
150 | }
151 |
152 | .peisong-way .right-text {
153 | font-size: 28rpx;
154 | color: #666;
155 | padding-right: 30rpx;
156 | }
157 |
158 | .peisong-way .liuyan {
159 | width: 510rpx;
160 | font-size: 28rpx;
161 | }
162 |
163 | .goods-info {
164 | width: 100%;
165 | background-color: #fff;
166 | padding-bottom: 24rpx;
167 | }
168 |
169 | .goods-info .row-box {
170 | width: 100%;
171 | display: flex;
172 | justify-content: space-between;
173 | align-items: center;
174 | box-sizing: border-box;
175 | padding: 24rpx 30rpx 12rpx 30rpx;
176 | font-size: 28rpx;
177 | color: #000;
178 | }
179 |
180 | .goods-info .row-box .right-text {
181 | text-align: right;
182 | }
183 |
184 | .jiesuan-box {
185 | display: flex;
186 | justify-content: space-between;
187 | width: 100%;
188 | height: 100rpx;
189 | position: fixed;
190 | bottom: 0;
191 | left: 0;
192 | border-top: 1px solid #eee;
193 | background-color: #fff;
194 | z-index: 9999;
195 | }
196 |
197 | .jiesuan-box .to-pay-btn {
198 | width: 250rpx;
199 | text-align: center;
200 | height: 100%;
201 | line-height: 100rpx;
202 | background-color: #b5272d;
203 | font-size: 32rpx;
204 | color: #fff;
205 | border-radius: 0;
206 | }
207 |
208 | .jiesuan-box .left-price {
209 | display: flex;
210 | width: 500rpx;
211 | justify-content: flex-end;
212 | line-height: 100rpx;
213 | padding: 0 30rpx 0 0;
214 | font-size: 28rpx;
215 | box-sizing: border-box;
216 | }
217 |
218 | .jiesuan-box .total {
219 | color: #b5272d;
220 | text-align: right;
221 | }
222 |
--------------------------------------------------------------------------------
/pages/score/score.js:
--------------------------------------------------------------------------------
1 | var app = getApp()
2 | Page({
3 | data: {
4 | score: 0,//积分
5 | score_sign_continuous: 0,//连续签到次数
6 | ci: 0 //今天是否已签到
7 | },
8 |
9 | onShow() {
10 | this.checkScoreSign();
11 | },
12 | //签到按钮
13 | scoresign: function () {
14 | var that = this;
15 | wx.request({
16 | url: app.globalData.urls + '/score/sign',
17 | data: {
18 | token: app.globalData.token
19 | },
20 | success: function (res) {
21 | if (res.data.code == 0) {
22 | that.onLoad();
23 | that.checkScoreSign();
24 | }
25 | wx.showToast({
26 | title: '签到成功',
27 | icon: 'success',
28 | duration: 2000
29 | })
30 | }
31 | })
32 | },
33 | checkScoreSign: function () {
34 | var that = this;
35 | wx.request({
36 | url: app.globalData.urls + '/score/today-signed',
37 | data: {
38 | token: app.globalData.token
39 | },
40 | success: function (res) {
41 |
42 | if (res.data.code == 0) {
43 | that.setData({
44 | ci: 1
45 | });
46 | }
47 | wx.request({
48 | url: app.globalData.urls + '/score/sign/logs',
49 | data: {
50 | token: app.globalData.token,
51 | },
52 | success: function (res) {
53 | if (res.data.code == 0) {
54 | that.setData({
55 | score_sign_continuous: res.data.data.result[0].continuous
56 | });
57 | }
58 | }
59 | })
60 | }
61 | })
62 |
63 | },
64 | onLoad: function () {
65 | var that = this;
66 | if (app.globalData.iphone == true) { that.setData({ iphone: 'iphone' }) }
67 | that.checkScoreSign();
68 | //获取积分
69 | wx.request({
70 | url: app.globalData.urls + '/user/amount',
71 | data: {
72 | token: app.globalData.token
73 | },
74 | success: function (res) {
75 | if (res.data.code == 0) {
76 | that.setData({
77 | balance: res.data.data.balance,
78 | freeze: res.data.data.freeze,
79 | score: res.data.data.score
80 | });
81 | }
82 | }
83 | })
84 | //获取签到规则
85 | wx.request({
86 | url: app.globalData.urls + '/score/sign/rules',
87 | data: {
88 | },
89 | success: function (res) {
90 |
91 | if (res.data.code == 0) {
92 | that.setData({
93 | rules: res.data.data
94 | });
95 | }
96 | }
97 | })
98 | //获取签到记录
99 |
100 | /*wx.request({
101 | url: app.siteInfo.url + app.siteInfo.subDomain + '/score/sign/logs',
102 | data: {
103 | token:app.globalData.token,
104 | },
105 | success: function (res) {
106 | if (res.data.code == 0) {
107 | that.setData({
108 | score_sign_continuous: res.data.data.result[0].continuous
109 | });
110 | }
111 | }
112 | })*/
113 | },
114 | score: function () {
115 | wx.navigateTo({
116 | url: "/pages/coupons/coupons"
117 | })
118 | },
119 | home: function () {
120 | wx.switchTab({
121 | url: '../index/index'
122 | })
123 | }
124 |
125 | })
--------------------------------------------------------------------------------
/pages/score/score.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "navigation": "/components/navigation/navigation"
4 | }
5 | }
--------------------------------------------------------------------------------
/pages/score/score.wxml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 | 您的可用积分
10 | {{score}}
11 |
12 |
13 | +{{item.score}}
14 |
15 |
16 | {{item.continuous}}天
17 |
18 |
19 |
20 |
21 | {{ci == 0 ? '签到':'已签到'}}
22 |
23 |
24 |
25 |
26 | 消费购物
27 | 购物完成,确认收货后立返积分
28 | 去购物
29 |
30 |
31 |
32 | 积分兑换
33 | 积分兑好礼,20积分即可兑换礼券
34 | 去兑换
35 |
36 |
37 |
--------------------------------------------------------------------------------
/pages/score/score.wxss:
--------------------------------------------------------------------------------
1 | page{
2 | background-color: #ffffff;
3 | }
4 | .container{
5 | width: 100%;
6 | display: block;
7 | }
8 | .score-title{
9 | position: relative;
10 | text-align: center;
11 | }
12 | .score-img,.score-title{
13 | width: 100%;
14 | height: 550rpx;
15 | }
16 | .score-title-name,.score-title-score{
17 | position:absolute;
18 | width:100%;
19 | top:160rpx;
20 | font-size:30rpx;
21 | color:#a39f93;
22 | }
23 | .score-title-score{
24 | top: 230rpx;
25 | color: #b4a078;
26 | font-size: 66rpx;
27 | font-weight: bold;
28 | }
29 | .score-center{
30 | text-align:center;
31 | padding-top:30px;
32 | position:relative;
33 | background-color:#ffffff;
34 | padding-bottom:25px;
35 | }
36 | .score-btn{
37 | color:#fff;
38 | background-color:#b4a078;
39 | width:170px;
40 | height:35px;
41 | border-radius:20px;
42 | line-height:35px;
43 | font-size:32rpx;
44 | margin:0 auto;
45 | }
46 | .score-btn-none{
47 | color:#fff;
48 | background-color:#a39f93;
49 | width:170px;
50 | height:35px;
51 | border-radius:20px;
52 | line-height:35px;
53 | font-size:32rpx;
54 | margin:0 auto;
55 | }
56 | .score-share{
57 | padding:15px;
58 | }
59 | .share-list{
60 | background-color:#f4ebe2;
61 | border-radius:5px;
62 | padding:15px 10px;
63 | height: 55px;
64 | margin-bottom: 15px;
65 | }
66 | .share-img{
67 | width:60px;
68 | height:60px;
69 | float:left;
70 | margin:12px 0px;
71 | padding-right:15px;
72 | }
73 | .share-title{
74 | color:#e1b68c;
75 | font-size:28rpx;
76 | margin-top:5px;
77 | }
78 | .share-text{
79 | color:#e1b68c;
80 | font-size:24rpx;
81 | margin-top:5px;
82 | }
83 | .share-btn{
84 | float:right;
85 | background-color:#e1b68c;
86 | color:#ffffff;
87 | font-size:26rpx;
88 | padding:3px 5px;
89 | border-radius:3px;
90 | margin:-30px 5px;
91 | }
92 | .avict{
93 | background-color:#ede6d6;
94 | }
95 | .avict image{
96 | margin:20px 0;
97 | }
98 | .avict .share-title,.avict .share-text{
99 | color:#b3a078;
100 | }
101 | .avict .share-btn{
102 | background-color:#b3a078;
103 | }
104 | .score-times{
105 | width: 100%;
106 | height: 70px;
107 | bottom: 0;
108 | position: absolute;
109 | text-align: center;
110 | font-size: 28rpx;
111 | color: #a39f93;
112 | background-color: rgba(217, 211, 196, 0.5);
113 | }
114 | .times-list{
115 | width: 14%;
116 | display: inline-block;
117 | }
118 | .times-score{
119 | padding-top: 5px;
120 | }
121 | .times-line{
122 | padding-top: 7px;
123 | border-bottom:1px solid rgba(0, 0, 0, 0.1);
124 | }
125 | .times-pus{
126 | width:9px;
127 | height:9px;
128 | background-color: #a39f93;
129 | display:block;
130 | position:absolute;
131 | margin-left:25px;
132 | border-radius:50%;
133 | margin-top:3px;
134 | }
135 | .times-day{
136 | padding-top: 7px;
137 | }
138 | .item-on{
139 | color:#ee5a52;
140 | }
141 | .item-on .times-line{
142 | border-bottom: 1px solid #ee5a52;
143 | }
144 | .item-on .times-pus{
145 | background-color: #ee5a52;
146 | }
147 | .score-yao{
148 | width:40px;
149 | height:40px;
150 | margin:0 auto;
151 | display:block;
152 | padding-top:35px;
153 | animation: shake-hard 3s ease-in-out infinite;
154 | }
--------------------------------------------------------------------------------
/pages/search/search.js:
--------------------------------------------------------------------------------
1 | // pages/search/search.js
2 | const app = getApp()
3 | // 语言
4 | var util = require('../../utils/util.js')
5 | import event from '../../utils/event'
6 |
7 | Page({
8 |
9 | /**
10 | * 页面的初始数据
11 | */
12 | data: {
13 | search: true,
14 | searchs: [],
15 | noneHidden: true,
16 | searchHidden: true,
17 | isLoadProduct: false,
18 | recentSearch: [],
19 | searchValue: '',
20 | page: 0,
21 | //语言 - begin
22 | language: '',
23 | categoryId: '',
24 | //语言 - end
25 | },
26 | getRecentSearch: function() {
27 | let recentSearch = wx.getStorageSync('recentSearch');
28 | this.setData({
29 | recentSearch
30 | });
31 | },
32 | clearHistory:function(){
33 | wx.clearStorageSync('recentSearch')
34 | this.setData({
35 | recentSearch:[]
36 | })
37 | },
38 | goSearch:function(e){
39 | this.setData({
40 | searchE:e
41 | });
42 | this.search(e)
43 | },
44 | setLanguage() {
45 | this.setData({
46 | language: wx.T.getLanguage()
47 | });
48 | },
49 | changeLanguage() {
50 | this.setData({
51 | language: wx.T.getLanguage()
52 | });
53 | this.search()
54 | },
55 | search: function(e) {
56 | if (!e) {
57 | var e = this.data.searchE
58 | }
59 | let that = this
60 | let keywords;
61 | that.setData({
62 | searchs: [],
63 | page: 0,
64 | });
65 | e.detail.value? keywords= e.detail.value: keywords = e.currentTarget.dataset.text,
66 | that.data.searchValue = keywords;
67 | if (that.data.searchValue) {
68 | // 记录最近搜索
69 | let recentSearch = wx.getStorageSync('recentSearch') || [];
70 | if(!app.isStrInArray(keywords,recentSearch)){
71 | recentSearch.unshift(that.data.searchValue);
72 | wx.setStorageSync('recentSearch', recentSearch)
73 | that.setData({
74 | recentSearch:recentSearch
75 | })
76 | }
77 | }
78 | that.searchProduct()
79 | },
80 | searchProduct: function() {
81 | var that = this
82 | that.setData({
83 | page: that.data.page + 1
84 | });
85 | wx.request({
86 | url: app.globalData.urls + '/catalogsearch/index/wxindex',
87 | data: {
88 | q: that.data.searchValue,
89 | p: that.data.page
90 | },
91 | header: app.getRequestHeader(),
92 | success: function (res) {
93 | if (res.data.code == 200 && res.data.data.products.length > 0) {
94 | var searchs = that.data.searchs;
95 | for (var i = 0; i < res.data.data.products.length; i++) {
96 | searchs.push(res.data.data.products[i]);
97 | }
98 | that.setData({
99 | searchs: searchs,
100 | searchHidden: false,
101 | noneHidden: true
102 | });
103 | that.setData({
104 | isLoadProduct: false,
105 | });
106 | } else {
107 | that.setData({
108 | searchHidden: false,
109 | noneHidden: false
110 | });
111 | }
112 | app.saveReponseHeader(res);
113 |
114 | }
115 | })
116 | },
117 | loadProduct: function () {
118 | console.log("eeeeee")
119 | var that = this
120 | if (that.data.isLoadProduct == false) {
121 | that.setData({
122 | isLoadProduct: true,
123 | });
124 | that.searchProduct()
125 | }
126 | },
127 | searchFocus: function() {
128 | this.setData({
129 | search: false,
130 | searchInput: true
131 | })
132 | },
133 | searchClose: function() {
134 | // this.getRecentSearch()
135 | this.setData({
136 | search: true,
137 | searchInput: false,
138 | searchHidden:true
139 | })
140 | },
141 | toDetailTap:function(e){
142 | wx.navigateTo({
143 | url:"/pages/goods-detail/goods-detail?id=" + e.currentTarget.dataset.id
144 | })
145 | },
146 | /**
147 | * 生命周期函数--监听页面加载
148 | */
149 | onLoad: function(options) {
150 | // 语言
151 | // 设置当前页面的language变量 - 每个页面都要有
152 | this.setLanguage();
153 | event.on("languageChanged", this, this.changeLanguage); // (2)
154 | // 设置当前页面的language Index - 每个页面都要有
155 | wx.T.setLocaleByIndex(wx.T.langIndex);
156 | // 语言 - 结束
157 | },
158 |
159 | /**
160 | * 生命周期函数--监听页面初次渲染完成
161 | */
162 | onReady: function() {
163 |
164 | },
165 |
166 | /**
167 | * 生命周期函数--监听页面显示
168 | */
169 | onShow: function() {
170 | this.getRecentSearch();
171 | },
172 |
173 | /**
174 | * 生命周期函数--监听页面隐藏
175 | */
176 | onHide: function() {
177 |
178 | },
179 |
180 | /**
181 | * 生命周期函数--监听页面卸载
182 | */
183 | onUnload: function() {
184 |
185 | },
186 |
187 | /**
188 | * 页面相关事件处理函数--监听用户下拉动作
189 | */
190 | onPullDownRefresh: function() {
191 |
192 | },
193 |
194 | /**
195 | * 页面上拉触底事件的处理函数
196 | */
197 | onReachBottom: function() {
198 |
199 | },
200 |
201 | /**
202 | * 用户点击右上角分享
203 | */
204 | onShareAppMessage: function() {
205 |
206 | }
207 | })
208 |
--------------------------------------------------------------------------------
/pages/search/search.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "navigation": "/components/navigation/navigation"
4 | }
5 | }
--------------------------------------------------------------------------------
/pages/search/search.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
12 |
13 |
14 | {{language.recent_search}}
15 |
16 |
17 |
18 |
19 |
20 |
21 | {{item}}
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
31 |
32 |
33 |
34 |
35 | {{item.name}}
36 |
37 |
38 | {{item.special_price.symbol}} {{item.special_price.value}}
39 | {{item.price.symbol}} {{item.price.value}}
40 |
41 |
42 | {{item.price.symbol}} {{item.price.value}}
43 |
44 |
45 |
46 |
47 | {{language.empty_product}}
48 |
49 |
50 |
51 |
52 |
--------------------------------------------------------------------------------
/pages/search/search.wxss:
--------------------------------------------------------------------------------
1 | /* pages/search/search.wxss */
2 | .type-header-menu {
3 | height: 120rpx;
4 | width: 100%;
5 | background-color: #fff;
6 | z-index: 99999;
7 | border-bottom: 1rpx solid #f8f8f8;
8 | box-sizing: border-box;
9 | overflow: hidden;
10 | }
11 | page{
12 | height:100%
13 | }
14 | .goods-container {
15 | width: 100%;
16 | margin-bottom: 0px;
17 | height:100%;
18 | }
19 | .type-header-menu .type-search {
20 | width: 690rpx;
21 | margin-left: 30rpx;
22 | position: relative;
23 | height: 66rpx;
24 | overflow: hidden;
25 | margin-top: 30rpx;
26 | box-sizing: border-box;
27 | }
28 |
29 | .type-header-menu .type-search image {
30 | width: 16px;
31 | height: 16px;
32 | position: absolute;
33 | top: 14rpx;
34 | left: 16rpx;
35 | }
36 |
37 | .type-header-menu .type-search .input {
38 | width: 625rpx;
39 | height: 60rpx;
40 | background-color: #f5f5f5;
41 | border-radius: 50rpx;
42 | font-size: 28rpx;
43 | padding-left: 65rpx;
44 | display: inline-block;
45 | transition: all 0.6s;
46 | }
47 |
48 | .type-header-menu .type-search .active {
49 | width: 525rpx;
50 | transition: all 0.6s;
51 | }
52 |
53 | .type-header-menu .type-search .header-search-btn {
54 | float: right;
55 | font-size: 30rpx;
56 | line-height: 60rpx;
57 | color: #b5272d;
58 | font-size: 30rpx;
59 | width: 100rpx;
60 | text-align: center;
61 | }
62 | .goods-none {
63 | margin-top: 25%;
64 | margin-bottom: 25%;
65 | }
66 |
67 | .goods-none image {
68 | width: 200rpx;
69 | height: 200rpx;
70 | display: block;
71 | margin: 0 auto;
72 | }
73 |
74 | .goods-none text {
75 | font-size: 28rpx;
76 | display: block;
77 | color: #999;
78 | text-align: center;
79 | margin-top: 10rpx;
80 | }
81 | .goods-box {
82 | width: 45%;
83 | margin: 20px 0 0 13px;
84 | display: inline-block;
85 | }
86 | .img-box image {
87 | width: 100%;
88 | display: block;
89 | border-top-left-radius: 3px;
90 | border-top-right-radius: 3px;
91 | }
92 |
93 | .img-box {
94 | width: 100%;
95 | background-color: #f5f5f5;
96 | margin-bottom: 5px;
97 | position: relative;
98 | border-top-left-radius: 3px;
99 | border-top-right-radius: 3px;
100 | overflow: hidden;
101 | }
102 | .goods-characteristic {
103 | font-size: 22rpx;
104 | white-space: nowrap;
105 | overflow: hidden;
106 | text-overflow: ellipsis;
107 | background-color: #f0ece1;
108 | color: #a18d65;
109 | height: 35px;
110 | line-height: 35px;
111 | position: absolute;
112 | left: 0;
113 | bottom: 0;
114 | width: 100%;
115 | }
116 |
117 | .goods-characteristic text {
118 | padding-left: 5px;
119 | }
120 |
121 | .goods-title {
122 | font-size: 28rpx;
123 | color: #333;
124 | white-space: nowrap;
125 | overflow: hidden;
126 | text-overflow: ellipsis;
127 | padding: 0 5px;
128 | }
129 |
130 | .goods-price {
131 | color: #b5272d;
132 | font-size: 28rpx;
133 | text-align: left;
134 | width: 100%;
135 | padding: 3px 4px;
136 | }
137 |
138 | .goods-price-naver {
139 | color: #999;
140 | font-size: 24rpx;
141 | line-height: 28px;
142 | width: 100%;
143 | text-align: right;
144 | padding: 0 3px;
145 | }
146 | .search-cont-box{
147 | padding: 0 30rpx;
148 | }
149 | .search-cont-box .title-and-btn{
150 | display: flex;
151 | justify-content: space-between;
152 | padding: 30rpx 0 20rpx 0;
153 | }
154 | .search-cont-box .title-and-btn .btn image{
155 | height: 48rpx;
156 | width: 48rpx;
157 | }
158 | .search-cont-box .title-and-btn .title{
159 | color: #777;
160 | font-size: 28rpx;
161 | }
162 | .search-cont-box .keywords-li{
163 | display: flex;
164 | justify-content: flex-start;
165 | flex-wrap: wrap;
166 | }
167 | .search-cont-box .keywords-li .item{
168 | font-size: 22rpx;
169 | color: #777;
170 | border: 1rpx solid #777;
171 | padding: 4rpx 12rpx;
172 | border-radius: 5rpx;
173 | margin-right: 20rpx;
174 | margin-bottom: 20rpx;
175 | }
176 |
177 | .goods-list-title {
178 | font-size: 30rpx;
179 | color: #333;
180 | text-overflow: ellipsis;
181 | white-space: nowrap;
182 | overflow: hidden;
183 | }
184 |
185 | .goods-originalPrice {
186 | padding-left:20rpx;
187 | font-size:30rpx;
188 | color:#999;
189 | text-decoration:line-through;
190 | line-height:52rpx;
191 | display:inline-block;
192 |
193 | }
194 |
195 | .goods-price {
196 | color:#b5272d;
197 | font-size:30rpx;
198 | padding-top:10rpx;
199 | display:inline;
200 |
201 | }
202 | .goods-list-money {
203 | font-size: 30rpx;
204 | color: #ab2b2b;
205 | }
--------------------------------------------------------------------------------
/pages/start/start.js:
--------------------------------------------------------------------------------
1 | //获取应用实例
2 | var app = getApp();
3 | // 语言
4 | var util = require('../../utils/util.js')
5 | import event from '../../utils/event'
6 |
7 | function countdown(that) {
8 | var second = that.data.second;
9 | var home = that.data.home;
10 | if (home == 0) {
11 | if (second == 0) {
12 | wx.switchTab({
13 | url: '../index/index'
14 | })
15 | }
16 | }
17 | var time = setTimeout(function () {
18 | that.setData({
19 | second: second - 1
20 | });
21 | countdown(that);
22 | }
23 | , 1000)
24 |
25 | }
26 | Page({
27 | data: {
28 | second: 6,
29 | //语言 - begin
30 | language: '',
31 | categoryId: '',
32 | //语言 - end
33 | home: 0
34 | },
35 |
36 | goHome: function () {
37 | this.setData({
38 | home: 1
39 | });
40 | wx.switchTab({
41 | url: '../index/index'
42 | })
43 | },
44 | setLanguage() {
45 | this.setData({
46 | language: wx.T.getLanguage()
47 | });
48 | //this.initStart();
49 | },
50 | changeLanguage() {
51 | this.setData({
52 | language: wx.T.getLanguage()
53 | });
54 | this.initStart();
55 | },
56 | tapBanner: function (e) {
57 | if (e.currentTarget.dataset.id != 0) {
58 | this.setData({
59 | home: 1
60 | });
61 | wx.redirectTo({
62 | url: "/pages/goods-detail/goods-detail?id=" + e.currentTarget.dataset.id + '&share=1'
63 | })
64 | }
65 | },
66 | onLoad: function () {
67 | var that = this;
68 | countdown(that);
69 | //var request_header = app.getRequestHeader();
70 | //console.log(request_header);
71 | // 语言
72 | // 设置当前页面的language变量 - 每个页面都要有
73 | this.setLanguage();
74 | event.on("languageChanged", this, this.changeLanguage); // (2)
75 | // 设置当前页面的language Index - 每个页面都要有
76 | wx.T.setLocaleByIndex(wx.T.langIndex);
77 | // 语言 - 结束
78 | this.initStart()
79 | },
80 | initStart: function() {
81 | var that = this;
82 | wx.request({
83 | url: app.globalData.urls + '/wx/start/first', // '/banner/list',
84 | header: app.getRequestHeader(),
85 | data: {
86 | key: 'mallName',
87 | type: 'start'
88 | },
89 | success: function (res) {
90 | if (res.data.code == 200) {
91 | console.log(res.data.data.picUrl)
92 | that.setData({
93 | sales: res.data.data
94 | });
95 | app.saveReponseHeader(res);
96 | //header
97 | }
98 | }
99 | })
100 | }
101 | });
--------------------------------------------------------------------------------
/pages/start/start.json:
--------------------------------------------------------------------------------
1 | {
2 | "enablePullDownRefresh": false,
3 | "disableScroll": true,
4 | "navigationBarTextStyle": "white"
5 | }
--------------------------------------------------------------------------------
/pages/start/start.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {{language.skip_ads}} {{second}}
6 |
7 |
8 | {{item.title}}
9 | {{item.remark}}
10 |
11 |
12 |
--------------------------------------------------------------------------------
/pages/start/start.wxss:
--------------------------------------------------------------------------------
1 | /* pages/start/start.wxss */
2 | /**start.wxss**/
3 | page,.container{
4 | background-color: #fff;
5 | width: 100%;
6 | height: 100%;
7 | display: block;
8 | }
9 | .tab-image{
10 | width: 100%;
11 | height: 75vh;
12 | position: relative;
13 | }
14 | .bgImages{
15 | width:100%;
16 | display:block;
17 | height:75vh;
18 | }
19 | .logo{
20 | width:100%;
21 | height:25vh;
22 | color:#333;
23 | background-color:#ffffff;
24 | text-align:center;
25 | }
26 | .title{
27 | font-size:40rpx;
28 | margin-top:45px;
29 | background-color:#b5272d;
30 | display:inline-block;
31 | color:#fff;
32 | padding:5px 8px;
33 | border-radius:3px;
34 | }
35 | .subtitle{
36 | font-size:28rpx;
37 | color:#666;
38 | margin-top: 10px;
39 | }
40 | .gohome{
41 | font-size:24rpx;
42 | background-color:rgba(0,0,0,.5);
43 | color:#fff;
44 | text-align:center;
45 | float:right;
46 | position:absolute;
47 | right:10px;
48 | bottom:10px;
49 | border-radius:20px;
50 | padding:3px 8px;
51 | }
--------------------------------------------------------------------------------
/pages/success/success.js:
--------------------------------------------------------------------------------
1 | var app = getApp();
2 | // 语言
3 | var util = require('../../utils/util.js')
4 | import event from '../../utils/event'
5 | var wxpay = require('../../utils/pay.js');
6 | Page({
7 | data: {
8 | //语言 - begin
9 | language: '',
10 | //语言 - end
11 | },
12 | // 语言
13 | // 设置language变量(翻译Object)
14 | setLanguage() {
15 | var lang = wx.T.getLanguage()
16 | this.setData({
17 | language: lang,
18 | selectSize: lang.select_attribute
19 | });
20 | //this.initCartInfo()
21 | },
22 | changeLanguage() {
23 | var lang = wx.T.getLanguage()
24 | this.setData({
25 | language: lang,
26 | selectSize: lang.select_attribute
27 | });
28 | //this.initCartInfo()
29 | },
30 | onShow: function () {
31 | //this.setLanguage();
32 | },
33 | onLoad: function (e) {
34 | var that = this;
35 | if (app.globalData.iphone == true) { that.setData({ iphone: 'iphone' }) }
36 | if (e) {
37 | that.setData({
38 | money: e.money,
39 | symbol: e.symbol,
40 | order: e.order,
41 | id: e.id
42 | });
43 | }
44 | // 语言
45 | // 设置当前页面的language变量 - 每个页面都要有
46 | this.setLanguage();
47 | event.on("languageChanged", this, this.changeLanguage); // (2)
48 | // 设置当前页面的language Index - 每个页面都要有
49 | wx.T.setLocaleByIndex(wx.T.langIndex);
50 | // 语言 - 结束
51 |
52 | },
53 | toPayTap: function (e) {
54 | var that = this;
55 | var orderId = e.currentTarget.dataset.id;
56 | var money = e.currentTarget.dataset.money;
57 | wxpay.wxpay(app, money, orderId, "/pages/order-list/order-list?currentType=1&share=1");
58 | },
59 | /*
60 | closeOreder: function () {
61 | wx.showModal({
62 | title: '',
63 | content: '优惠不等人,商品一旦错过就不存在了哦~',
64 | cancelText: '忍痛放弃',
65 | cancelColor: '#999999',
66 | confirmText: '我在想想',
67 | confirmColor: '#b5272d',
68 | success: function (res) {
69 | if (res.cancel) {
70 | wx.redirectTo({
71 | url: "/pages/order-list/order-list?currentType=0&share=1"
72 | });
73 | }
74 | }
75 | })
76 | }
77 | */
78 |
79 | })
--------------------------------------------------------------------------------
/pages/success/success.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "navigation": "/components/navigation/navigation"
4 | }
5 | }
--------------------------------------------------------------------------------
/pages/success/success.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | {{language.product_total}}
7 | {{symbol}} {{money}}
8 |
9 | {{language.order_no}}:{{order}}
10 |
11 |
12 |
21 | {{language.wxpay}} {{symbol}}{{money}}
22 |
--------------------------------------------------------------------------------
/pages/success/success.wxss:
--------------------------------------------------------------------------------
1 | .order-box {
2 | width: 100%;
3 | height: 160rpx;
4 | display: flex;
5 | align-items: center;
6 | border-bottom: 10rpx solid #fbfbfb;
7 | }
8 |
9 | .order-box image {
10 | width: 50rpx;
11 | height: 50rpx;
12 | float: left;
13 | margin-left: 30rpx;
14 | }
15 |
16 | .order-box .order-info {
17 | float: left;
18 | margin-left: 30rpx;
19 | width: 600rpx;
20 | }
21 |
22 | .order-box .order-info .order-money {
23 | font-size: 30rpx;
24 | color: #333;
25 | }
26 |
27 | .order-box .order-info .order-money text {
28 | color: #b5272d;
29 | }
30 |
31 | .order-box .order-info .order-number {
32 | font-size: 24rpx;
33 | color: #999;
34 | margin-top: 16rpx;
35 | }
36 |
37 | .adds-box {
38 | width: 100%;
39 | height: 160rpx;
40 | display: flex;
41 | align-items: center;
42 | }
43 |
44 | .adds-box image {
45 | width: 50rpx;
46 | height: 50rpx;
47 | float: left;
48 | margin-left: 30rpx;
49 | }
50 |
51 | .adds-box .adds-info {
52 | float: left;
53 | margin-left: 30rpx;
54 | width: 600rpx;
55 | }
56 |
57 | .adds-box .adds-info .name-tel {
58 | font-size: 30rpx;
59 | color: #333;
60 | }
61 |
62 | .adds-box .adds-info .addr-text {
63 | font-size: 24rpx;
64 | color: #999;
65 | margin-top: 16rpx;
66 | }
67 |
68 | .pay-btn {
69 | position: fixed;
70 | background-color: #b5272d;
71 | width: 100%;
72 | height: 100rpx;
73 | line-height: 100rpx;
74 | text-align: center;
75 | color: #fff;
76 | bottom: 0;
77 | font-size: 32rpx;
78 | }
79 |
--------------------------------------------------------------------------------
/pages/template-cart/template-cart.js:
--------------------------------------------------------------------------------
1 | var app = getApp()
2 | Page({
3 | data: {},
4 | onLoad:function(){
5 | wx.showLoading({
6 | title: '加载中...',
7 | mask:true
8 | })
9 | }
10 | })
--------------------------------------------------------------------------------
/pages/template-cart/template-cart.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/pages/template-cart/template-cart.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | {{language.add_same_product_to_cart}}
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | {{item.name}}
19 | {{item.label}}
20 | {{currencySymbol}} {{item.price}}
21 |
22 | -
23 |
24 | +
25 |
26 |
27 |
28 |
29 |
30 | {{language.remove}}
31 |
32 |
33 |
34 |
35 |
36 |
37 | {{language.select_all}}
38 | {{language.grand_total}} :{{currencySymbol}} {{totalPrice}}
39 |
40 | {{language.place_order}}
41 | {{language.remove}}
42 |
43 |
--------------------------------------------------------------------------------
/pages/topic-list/topic-list.js:
--------------------------------------------------------------------------------
1 | var app = getApp()
2 | Page({
3 | data: {
4 |
5 | },
6 | tapContents: function (e) {
7 | wx.navigateTo({
8 | url: "/pages/topic/topic?id=" + e.currentTarget.dataset.id
9 | })
10 | },
11 | onLoad: function () {
12 | var that = this;
13 | if (app.globalData.iphone == true) { that.setData({ iphone: 'iphone' }) }
14 | wx.request({
15 | url: app.globalData.urls + '/cms/category/list',
16 | data: {
17 | },
18 | success: function (res) {
19 | //console.log(res.data.data[0].id)
20 | var topic = []
21 | if (res.data.code == 0) {
22 | for (var i = 0; i < res.data.data.length; i++) {
23 | topic.push(res.data.data[i]);
24 | }
25 | that.setData({
26 | topics: topic,
27 | activecmsid: res.data.data[0].id
28 | });
29 |
30 | }
31 | that.gettapList(res.data.data[0].id)
32 | }
33 | })
34 |
35 | },
36 | tapTopic: function (e) {
37 | this.setData({
38 | activecmsid: e.currentTarget.dataset.id
39 | });
40 | this.gettapList(this.data.activecmsid);
41 | },
42 | gettapList: function (cmsid) {
43 | var that = this;
44 | wx.request({
45 | url: app.globalData.urls + '/cms/news/list',
46 | success: function (res) {
47 | var content = [];
48 | if (res.data.code == 0) {
49 | for (var i = 0; i < res.data.data.length; i++) {
50 | if (res.data.data[i].categoryId == cmsid) {
51 | content.push(res.data.data[i]);
52 | }
53 | }
54 | }
55 | that.setData({
56 | contents: content
57 | });
58 | }
59 | })
60 | }
61 |
62 | })
--------------------------------------------------------------------------------
/pages/topic-list/topic-list.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "navigation": "/components/navigation/navigation"
4 | }
5 | }
--------------------------------------------------------------------------------
/pages/topic-list/topic-list.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | {{item.name}}
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | {{item.title}}
18 | {{item.descript}}
19 | 查看详情
20 |
21 |
22 |
23 |
24 | 还没有相关话题呢
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/pages/topic-list/topic-list.wxss:
--------------------------------------------------------------------------------
1 | page {
2 | height: 100%;
3 | background-color: #fff;
4 | }
5 |
6 | .top-header {
7 | border-bottom: 0;
8 | }
9 | .topic-names {
10 | width: 100%;
11 | height: 130px;
12 | background-color: #fff;
13 | margin-top: -7px;
14 | overflow-x: scroll;
15 | white-space: nowrap;
16 | }
17 |
18 | .topic-names-list {
19 | text-align: center;
20 | display: inline-block;
21 | padding-left: 10px;
22 | padding-top: 20px;
23 | position: relative;
24 | }
25 |
26 | .list-images {
27 | width: 100px;
28 | height: 100px;
29 | border-radius: 3px;
30 | }
31 |
32 | .list-bg {
33 | position: absolute;
34 | top: 20px;
35 | width: 100px;
36 | background-color: #000;
37 | height: 100px;
38 | opacity: 0.3;
39 | border-radius: 3px;
40 | }
41 |
42 | .list-name {
43 | font-size: 26rpx;
44 | color: #fff;
45 | white-space: nowrap;
46 | overflow: hidden;
47 | text-overflow: ellipsis;
48 | position: absolute;
49 | top: 20px;
50 | width: 100px;
51 | text-align: center;
52 | line-height: 110px;
53 | }
54 |
55 | .topic-contents {
56 | width: 100%;
57 | background-color: #fff;
58 | padding-top: 10px;
59 | border-top: 10px solid #f5f5f5;
60 | }
61 |
62 | .topic-content-list {
63 | background-color: #fff;
64 | position: relative;
65 | width: 96%;
66 | margin: 0 auto;
67 | margin-bottom: 10px;
68 | }
69 |
70 | .content-images {
71 | width: 100%;
72 | display: block;
73 | }
74 |
75 | .content-bg {
76 | width: 100%;
77 | height: 100%;
78 | position: absolute;
79 | top: 0;
80 | background-color: #000;
81 | opacity: 0.4;
82 | }
83 |
84 | .content-text {
85 | position: absolute;
86 | top: 25%;
87 | width: 100%;
88 | text-align: center;
89 | color: #fff;
90 | }
91 |
92 | .content-title {
93 | font-size: 40rpx;
94 | padding-bottom: 10px;
95 | }
96 |
97 | .content-subtitle {
98 | font-size: 30rpx;
99 | padding-bottom: 15px;
100 | }
101 |
102 | .content-button {
103 | border: 1px solid #fff;
104 | width: 80px;
105 | font-size: 24rpx;
106 | margin: 0 auto;
107 | border-radius: 20px;
108 | padding: 4px 0;
109 | }
110 |
111 | .no-more-goods {
112 | text-align: center;
113 | margin-top: 20%;
114 | }
115 |
116 | .no-order-img {
117 | width: 110px;
118 | height: 110px;
119 | }
120 |
121 | .no-more-goods .text {
122 | font-size: 28rpx;
123 | color: #999;
124 | margin-top: -5px;
125 | }
126 |
--------------------------------------------------------------------------------
/pages/topic/topic.js:
--------------------------------------------------------------------------------
1 | var app = getApp();
2 | var WxParse = require('../../wxParse/wxParse.js');
3 |
4 | Page({
5 | data: {
6 | },
7 |
8 | toDetailsTap: function (e) {
9 | wx.navigateTo({
10 | url: "/pages/goods-detail/goods-detail?id=" + e.currentTarget.dataset.id
11 | })
12 | },
13 | onLoad: function (e) {
14 | var that = this;
15 | if (app.globalData.iphone == true) { that.setData({ iphone: 'iphone' }) }
16 | var topictitle = that.data.topictitle;
17 | wx.request({
18 | url: app.globalData.urls + '/cms/news/detail',
19 | data: {
20 | id: e.id
21 | },
22 | success: function (res) {
23 | if (res.data.code == 0) {
24 | var kb = res.data.data.keywords;
25 | var kbarr = kb.split(',');
26 | that.setData({
27 | topics: res.data.data,
28 | topictitle: res.data.data.title
29 | });
30 | var goods = [];
31 | for (var i = 0; i < kbarr.length; i++) {
32 | wx.request({
33 | url: app.globalData.urls + '/shop/goods/detail',
34 | data: {
35 | id: kbarr[i]
36 | },
37 | success: function (res) {
38 | if (res.data.code == 0) {
39 | goods.push(res.data.data.basicInfo);
40 | }
41 | that.setData({
42 | goods: goods,
43 | topid: e.id
44 | });
45 | }
46 | })
47 | }
48 | WxParse.wxParse('article', 'html', res.data.data.content, that, 5);
49 |
50 | }
51 | }
52 | })
53 |
54 | },
55 | onShareAppMessage: function (e) {
56 | return {
57 | title: this.data.topictitle,
58 | path: 'pages/topic/topic?id=' + this.data.topid,
59 | success: function (res) {
60 | // 转发成功
61 | },
62 | fail: function (res) {
63 | // 转发失败
64 | }
65 | }
66 | },
67 |
68 |
69 | })
--------------------------------------------------------------------------------
/pages/topic/topic.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "navigation": "/components/navigation/navigation"
4 | }
5 | }
--------------------------------------------------------------------------------
/pages/topic/topic.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | {{topics.title}}
7 |
8 | {{topics.dateAdd}}{{topics.author}}
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | {{item.characteristic}}
20 |
21 |
22 | {{item.name}}
23 |
24 | Ұ{{item.minPrice}}
25 | 已售{{item.numberOrders}}
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/pages/topic/topic.wxss:
--------------------------------------------------------------------------------
1 | .top-header {
2 | border-bottom: 0;
3 | }
4 | .topic-head {
5 | padding: 10px;
6 | margin-bottom: 50px;
7 | }
8 |
9 | .topic-avatar {
10 | text-align: center;
11 | }
12 |
13 | .head-img {
14 | width: 40px;
15 | height: 40px;
16 | border-radius: 50%;
17 | }
18 |
19 | .head-name {
20 | margin: -2px 0;
21 | font-size: 22rpx;
22 | color: #666;
23 | }
24 |
25 | .topic-content {
26 | margin-top: 20px;
27 | }
28 |
29 | .content-title {
30 | font-size: 36rpx;
31 | color: #333;
32 | margin-bottom: 8px;
33 | text-align: center;
34 | }
35 |
36 | .content-lin {
37 | width: 55px;
38 | border-top: 1px solid #bc9162;
39 | margin: 0 auto;
40 | }
41 |
42 | .content-text {
43 | margin-top: 25px;
44 | }
45 |
46 | .content-img {
47 | width: 100%;
48 | height: 220px;
49 | }
50 |
51 | .content-box {
52 | font-size: 28rpx;
53 | color: #333;
54 | line-height: 26px;
55 | }
56 |
57 | .wxParse-inline, .wxParse-img {
58 | display: inline-block !important;
59 | }
60 |
61 | .wxParse-p {
62 | padding-bottom: 10px;
63 | }
64 |
65 | .goods-container {
66 | width: 100%;
67 | margin-bottom: 100px;
68 | }
69 |
70 | .goods-box {
71 | width: 45%;
72 | margin: 20px 0 0 13px;
73 | display: inline-block;
74 | }
75 |
76 | .img-box image {
77 | width: 100%;
78 | display: block;
79 | border-top-left-radius: 3px;
80 | border-top-right-radius: 3px;
81 | }
82 |
83 | .img-box {
84 | width: 100%;
85 | background-color: #f5f5f5;
86 | margin-bottom: 5px;
87 | position: relative;
88 | border-top-left-radius: 3px;
89 | border-top-right-radius: 3px;
90 | overflow: hidden;
91 | }
92 |
93 | .goods-characteristic {
94 | font-size: 22rpx;
95 | white-space: nowrap;
96 | overflow: hidden;
97 | text-overflow: ellipsis;
98 | background-color: #f0ece1;
99 | color: #a18d65;
100 | height: 35px;
101 | line-height: 35px;
102 | position: absolute;
103 | left: 0;
104 | bottom: 0;
105 | width: 100%;
106 | }
107 |
108 | .goods-characteristic text {
109 | padding-left: 5px;
110 | }
111 |
112 | .goods-title {
113 | font-size: 28rpx;
114 | color: #333;
115 | white-space: nowrap;
116 | overflow: hidden;
117 | text-overflow: ellipsis;
118 | padding: 0 5px;
119 | }
120 |
121 | .goods-price {
122 | color: #b5272d;
123 | font-size: 28rpx;
124 | text-align: left;
125 | width: 100%;
126 | padding: 3px 4px;
127 | }
128 |
129 | .goods-price-naver {
130 | color: #999;
131 | font-size: 24rpx;
132 | line-height: 28px;
133 | width: 100%;
134 | text-align: right;
135 | padding: 0 3px;
136 | }
137 |
138 | .goods-button {
139 | position: fixed;
140 | bottom: 200rpx;
141 | right: 30rpx;
142 | width: 90rpx;
143 | height: 90rpx;
144 | }
145 |
146 | .goods-button image {
147 | width: 70rpx;
148 | height: 70rpx;
149 | box-shadow: 0 0 20rpx #eee;
150 | border-radius: 50%;
151 | display: block;
152 | margin: 0 auto;
153 | margin-top: 10rpx;
154 | position: relative;
155 | }
156 |
157 | .goods-button image button {
158 | position: absolute;
159 | top: 0;
160 | left: 0;
161 | width: 100%;
162 | height: 100%;
163 | opacity: 0;
164 | }
165 | .topic-info{
166 | height: 50rpx;
167 | line-height: 50rpx;
168 | font-size: 22rpx;
169 | color: #999;
170 | text-align: center;
171 | display: flex;
172 | justify-content: center;
173 | }
174 | .topic-info .author{
175 | margin-left: 10rpx;
176 | }
--------------------------------------------------------------------------------
/pages/withdraw/withdraw.js:
--------------------------------------------------------------------------------
1 | var app = getApp()
2 | Page({
3 |
4 | /**
5 | * 页面的初始数据
6 | */
7 | data: {
8 | balance: 0
9 | },
10 |
11 | /**
12 | * 生命周期函数--监听页面加载
13 | */
14 | onLoad: function () {
15 | var that = this;
16 | if (app.globalData.iphone == true) { that.setData({ iphone: 'iphone' }) }
17 | wx.request({
18 | url: app.globalData.urls + '/user/amount',
19 | data: {
20 | token: app.globalData.token
21 | },
22 | success: function (res) {
23 | if (res.data.code == 0) {
24 | that.setData({
25 | balance: res.data.data.balance,
26 | freeze: res.data.data.freeze,
27 | score: res.data.data.score
28 | });
29 | }
30 | }
31 | })
32 | },
33 |
34 | /**
35 | * 生命周期函数--监听页面初次渲染完成
36 | */
37 | onReady: function () {
38 |
39 | },
40 |
41 | /**
42 | * 生命周期函数--监听页面显示
43 | */
44 | onShow: function () {
45 | var that = this;
46 | wx.request({
47 | url: app.globalData.urls + '/user/amount',
48 | data: {
49 | token: app.globalData.token
50 | },
51 | success: function (res) {
52 | if (res.data.code == 0) {
53 | that.setData({
54 | balance: res.data.data.balance,
55 | freeze: res.data.data.freeze,
56 | score: res.data.data.score
57 | });
58 | }
59 | }
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 |
91 | /**
92 | * 用户点击右上角分享
93 | */
94 | onShareAppMessage: function () {
95 |
96 | },
97 | bindCancel: function () {
98 | wx.navigateBack({})
99 | },
100 | bindSave: function (e) {
101 | var that = this;
102 | var amount = e.detail.value.amount;
103 |
104 | if (amount == "" || amount * 1 < 100) {
105 | wx.showModal({
106 | title: '错误',
107 | content: '请填写正确的提现金额',
108 | showCancel: false
109 | })
110 | return
111 | }
112 | wx.request({
113 | url: app.globalData.urls + '/user/withDraw/apply',
114 | data: {
115 | token: app.globalData.token,
116 | money: amount
117 | },
118 | success: function (res) {
119 | if (res.data.code == 0) {
120 | wx.showModal({
121 | title: '成功',
122 | content: '您的提现申请已提交,等待财务打款',
123 | showCancel: false,
124 | success: function (res) {
125 | if (res.confirm) {
126 | that.bindCancel();
127 | }
128 | }
129 | })
130 | } else {
131 | wx.showModal({
132 | title: '错误',
133 | content: res.data.msg,
134 | showCancel: false
135 | })
136 | }
137 | }
138 | })
139 | }
140 | })
--------------------------------------------------------------------------------
/pages/withdraw/withdraw.json:
--------------------------------------------------------------------------------
1 | {
2 | "navigationBarTitleText": "我要提现",
3 | "navigationBarTextStyle": "white"
4 | }
--------------------------------------------------------------------------------
/pages/withdraw/withdraw.wxml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 | 我的余额
11 | ¥{{balance}}
12 | 付款时优先选择余额进行支付
13 |
14 |
15 |
29 |
--------------------------------------------------------------------------------
/pages/withdraw/withdraw.wxss:
--------------------------------------------------------------------------------
1 | page{
2 | height: 100%;
3 | }
4 | .container{
5 | background-color: #ffffff;
6 | justify-content: initial;
7 | }
8 | .tixian-bg,.tixian-img{
9 | width: 100%;
10 | height: 500rpx;
11 | }
12 | .tixian-name{
13 | position:absolute;
14 | text-align:center;
15 | width:100%;
16 | top:210rpx;
17 | color:#fff;
18 | font-size:30rpx;
19 | }
20 | .tixian-name .money{
21 | display:block;
22 | font-size:60rpx;
23 | margin-top:15px;
24 | }
25 | .tixian-name .tips{
26 | font-size:24rpx;
27 | margin-top:70rpx;
28 | display:block;
29 | color:rgba(255,255,255,.5);
30 | }
31 |
32 | form{
33 | width:100%;
34 | height: 140px;
35 | background-color: #fff;
36 | }
37 | .row-wrap{
38 | width:90%;
39 | line-height:88rpx;
40 | font-size:28rpx;
41 | margin-left:20px;
42 | }
43 | .row-wrap .label{
44 | width:100%;
45 | color:#666;
46 | font-size:26rpx;
47 | }
48 | .lable-amount{
49 | float:left;
50 | font-size:50rpx;
51 | margin-right:11px;
52 | color:#333;
53 | }
54 | .lable-text{
55 | color:#999;
56 | font-size:24rpx;
57 | margin:-5px 0;
58 | float:left;
59 | margin-bottom:15px;
60 | }
61 | .row-wrap .label-right{
62 | height:88rpx;
63 | line-height:88rpx;
64 | border-bottom:1px solid #f5f5f5;
65 | }
66 | .row-wrap .label-right input{
67 | height:100%;
68 | font-size:70rpx;
69 | float:left;
70 | margin:-5px 0;
71 | width:80%;
72 | padding:5px 0;
73 | color:#333;
74 | }
75 | .row-wrap .right-box{
76 | margin-right: 30rpx;
77 | }
78 | .arrow-right{
79 | width: 15rpx;
80 | height: 24rpx;
81 | }
82 | .save-btn,
83 | .cancel-btn{
84 | width: 690rpx;
85 | height: 80rpx;
86 | line-height: 80rpx;
87 | text-align: center;
88 | margin-top:30rpx;
89 | border-radius: 6rpx;
90 | box-sizing: border-box;
91 | }
92 | .save-btn{
93 | background-color: #b5272d;
94 | color:#fff;
95 | font-size: 30rpx;
96 | }
97 | button[type="default"]{
98 | background-color: #ffffff;
99 | color:#000;
100 | font-size: 30rpx;
101 | }
102 | .addr-details{
103 | height: auto;
104 | padding: 30rpx 0;
105 | margin-left:30rpx;
106 | border-bottom: 1rpx solid #eee;
107 | display: flex;
108 | font-size: 28rpx;
109 | }
110 | .addr-details .label{
111 | margin:auto 0 auto 0;
112 | width: 160rpx;
113 | color: #000
114 | }
115 | .addr-details textarea{
116 | box-sizing: border-box;
117 | width: 480rpx;
118 | overflow: scroll;
119 | }
120 | picker {
121 | min-width: 20rpx;
122 | height: 100%;
123 | margin-right: 20rpx;
124 | }
125 | .hui{
126 | color: #777;
127 | }
128 |
--------------------------------------------------------------------------------
/project.config.json:
--------------------------------------------------------------------------------
1 | {
2 | "description": "项目配置文件",
3 | "packOptions": {
4 | "ignore": []
5 | },
6 | "setting": {
7 | "urlCheck": true,
8 | "es6": true,
9 | "postcss": true,
10 | "minified": true,
11 | "newFeature": true,
12 | "autoAudits": false,
13 | "checkInvalidKey": true
14 | },
15 | "compileType": "miniprogram",
16 | "libVersion": "2.5.0",
17 | "appid": "wxedc77529191bc54f",
18 | "projectname": "fire-shop-lite-master",
19 | "debugOptions": {
20 | "hidedInDevtools": []
21 | },
22 | "isGameTourist": false,
23 | "simulatorType": "wechat",
24 | "simulatorPluginLibVersion": {},
25 | "condition": {
26 | "search": {
27 | "current": -1,
28 | "list": []
29 | },
30 | "conversation": {
31 | "current": -1,
32 | "list": []
33 | },
34 | "game": {
35 | "currentL": -1,
36 | "list": []
37 | },
38 | "miniprogram": {
39 | "current": -1,
40 | "list": []
41 | }
42 | }
43 | }
--------------------------------------------------------------------------------
/sitemap.json:
--------------------------------------------------------------------------------
1 | {
2 | "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
3 | "rules": [{
4 | "action": "allow",
5 | "page": "*"
6 | }]
7 | }
--------------------------------------------------------------------------------
/utils/event.js:
--------------------------------------------------------------------------------
1 | // /utils/event.js
2 | let events = {};
3 |
4 | function on(name, self, callback) {
5 | let tuple = [self, callback];
6 | let callbacks = events[name];
7 | if (Array.isArray(callbacks)) {
8 | callbacks.push(tuple);
9 | }
10 | else {
11 | events[name] = [tuple];
12 | }
13 | }
14 |
15 | function remove(name, self) {
16 | let callbacks = events[name];
17 | if (Array.isArray(callbacks)) {
18 | events[name] = callbacks.filter((tuple) => {
19 | return tuple[0] != self;
20 | })
21 | }
22 | }
23 |
24 | function emit(name, data) {
25 | let callbacks = events[name];
26 | if (Array.isArray(callbacks)) {
27 | callbacks.map((tuple) => {
28 | let self = tuple[0];
29 | let callback = tuple[1];
30 | callback.call(self, data);
31 | })
32 | }
33 | }
34 |
35 | exports.on = on;
36 | exports.remove = remove;
37 | exports.emit = emit;
--------------------------------------------------------------------------------
/utils/i18n.js:
--------------------------------------------------------------------------------
1 | // 文档出处:
2 | // https://upupming.site/2018/07/23/mini-program-i18n/#%E5%85%B6%E4%BB%96%E9%A1%B5%E9%9D%A2%E7%9A%84%E5%A4%84%E7%90%86
3 | let T = {
4 | locale: null,
5 | langIndex: null,
6 | locales: {},
7 | langCodes: ['zh', 'en'], // 可用的语言包
8 | langNames: ['简体中文', 'English'] // 需要和上面的配置对应
9 | }
10 |
11 | let lastLangIndex;
12 |
13 | T.registerLocale = function (locales) {
14 | T.locales = locales;
15 | }
16 |
17 | T.setLocaleByCode = function (setCode) {
18 | //T.locale = code;
19 | var langCodes = T.langCodes
20 | for (var x in langCodes) {
21 | var code = langCodes[x];
22 | if (code == setCode) {
23 | //T.locale = code;
24 | T.langIndex = x;
25 | T.setLocaleByIndex(x);
26 | }
27 | }
28 | }
29 |
30 |
31 | T.setLocale = function (code) {
32 | T.locale = code;
33 | }
34 |
35 | T.getLangIndexByCode = function (langCode) {
36 | var langCodes = T.langCodes
37 | for (var x in langCodes ) {
38 | var code = langCodes[x];
39 | if (code == langCode) {
40 | console.log(x)
41 | return x
42 | }
43 | }
44 | }
45 |
46 | T.getCodeByIndex = function (index) {
47 | return T.langCodes[index];
48 | }
49 |
50 |
51 |
52 |
53 |
54 |
55 | T.getLangNames = function () {
56 | return T.langNames;
57 | }
58 |
59 |
60 |
61 |
62 |
63 | T.setLocaleByIndex = function (index) {
64 | lastLangIndex = index;
65 | T.setLocale(T.langCodes[index]);
66 |
67 | //setNavigationBarTitle(index);
68 | setTabBarLang(index);
69 | }
70 |
71 |
72 | T.getLanguage = function () {
73 | setNavigationBarTitle(lastLangIndex);
74 | return T.locales[T.locale];
75 | }
76 |
77 |
78 | let navigationBarTitles = [
79 | '哈工大博物馆小助手',
80 | 'HIT Museum Assistant'
81 | ];
82 | // 设置导航栏标题
83 | function setNavigationBarTitle(index) {
84 | wx.setNavigationBarTitle({
85 | title: navigationBarTitles[index]
86 | })
87 | }
88 |
89 | // 页面底部toolbar
90 | let tabBarLangs = [
91 | [
92 | '首页',
93 | '分类',
94 | '购物车',
95 | '我的'
96 | ],
97 | [
98 | 'Home',
99 | 'Category',
100 | 'Cart',
101 | 'My'
102 | ]
103 | ];
104 | // 设置 TabBar 语言
105 | function setTabBarLang(index) {
106 | let tabBarLang = tabBarLangs[index];
107 |
108 | tabBarLang.forEach((element, index) => {
109 | wx.setTabBarItem({
110 | 'index': index,
111 | 'text': element
112 | })
113 | })
114 | }
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 | export default T
--------------------------------------------------------------------------------
/utils/pay.js:
--------------------------------------------------------------------------------
1 | var app = getApp();
2 | function wxpay(app, money, orderId, redirectUrl) {
3 | let remark = "在线充值";
4 | let nextAction = {};
5 | if (orderId != 0) {
6 | remark = "支付订单 :" + orderId;
7 | nextAction = { type: 0, id: orderId };
8 | }
9 | wx.request({
10 | url: app.globalData.urls + '/checkout/wx/verifyinfo',
11 | data: {
12 | orderId: orderId,
13 | },
14 | header: app.getPostRequestHeader(),
15 | method:'POST',
16 | success: function(res){
17 | app.saveReponseHeader(res);
18 | if(res.data.code == 200){
19 | // 发起支付
20 | var jsApiParameters = res.data.data.jsApiParameters;
21 | wx.requestPayment({
22 | timeStamp: jsApiParameters.timeStamp,
23 | nonceStr: jsApiParameters.nonceStr,
24 | package: jsApiParameters.package, // 'prepay_id=' + res.data.data.prepayId,
25 | signType: jsApiParameters.signType, //'MD5',
26 | paySign: jsApiParameters.paySign,
27 | fail:function (aaa) {
28 | wx.showToast({title: '支付失败'})
29 | },
30 | success:function () {
31 | wx.showToast({title: '支付成功'})
32 | wx.redirectTo({
33 | url: redirectUrl
34 | });
35 | }
36 | })
37 | } else {
38 | wx.showToast({ title: '服务器忙' + res.data.code + res.data.msg})
39 | }
40 | }
41 | })
42 | }
43 |
44 | module.exports = {
45 | wxpay: wxpay
46 | }
47 |
--------------------------------------------------------------------------------
/utils/util.js:
--------------------------------------------------------------------------------
1 | function formatTime(date) {
2 | var year = date.getFullYear()
3 | var month = date.getMonth() + 1
4 | var day = date.getDate()
5 | var hour = date.getHours()
6 | var minute = date.getMinutes()
7 | var second = date.getSeconds()
8 | return [year, month, day].map(formatNumber).join('/') + ' ' + [hour, minute, second].map(formatNumber).join(':')
9 | }
10 |
11 | function formatNumber(n) {
12 | n = n.toString()
13 | return n[1] ? n : '0' + n
14 | }
15 | module.exports = {
16 | formatTime: formatTime
17 | }
18 |
--------------------------------------------------------------------------------
/wxParse/emojis/00.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/00.gif
--------------------------------------------------------------------------------
/wxParse/emojis/01.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/01.gif
--------------------------------------------------------------------------------
/wxParse/emojis/02.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/02.gif
--------------------------------------------------------------------------------
/wxParse/emojis/03.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/03.gif
--------------------------------------------------------------------------------
/wxParse/emojis/04.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/04.gif
--------------------------------------------------------------------------------
/wxParse/emojis/05.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/05.gif
--------------------------------------------------------------------------------
/wxParse/emojis/06.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/06.gif
--------------------------------------------------------------------------------
/wxParse/emojis/07.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/07.gif
--------------------------------------------------------------------------------
/wxParse/emojis/08.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/08.gif
--------------------------------------------------------------------------------
/wxParse/emojis/09.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/09.gif
--------------------------------------------------------------------------------
/wxParse/emojis/10.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/10.gif
--------------------------------------------------------------------------------
/wxParse/emojis/100.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/100.gif
--------------------------------------------------------------------------------
/wxParse/emojis/101.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/101.gif
--------------------------------------------------------------------------------
/wxParse/emojis/102.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/102.gif
--------------------------------------------------------------------------------
/wxParse/emojis/103.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/103.gif
--------------------------------------------------------------------------------
/wxParse/emojis/104.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/104.gif
--------------------------------------------------------------------------------
/wxParse/emojis/105.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/105.gif
--------------------------------------------------------------------------------
/wxParse/emojis/106.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/106.gif
--------------------------------------------------------------------------------
/wxParse/emojis/107.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/107.gif
--------------------------------------------------------------------------------
/wxParse/emojis/108.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/108.gif
--------------------------------------------------------------------------------
/wxParse/emojis/109.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/109.gif
--------------------------------------------------------------------------------
/wxParse/emojis/11.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/11.gif
--------------------------------------------------------------------------------
/wxParse/emojis/110.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/110.gif
--------------------------------------------------------------------------------
/wxParse/emojis/111.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/111.gif
--------------------------------------------------------------------------------
/wxParse/emojis/112.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/112.gif
--------------------------------------------------------------------------------
/wxParse/emojis/113.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/113.gif
--------------------------------------------------------------------------------
/wxParse/emojis/114.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/114.gif
--------------------------------------------------------------------------------
/wxParse/emojis/115.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/115.gif
--------------------------------------------------------------------------------
/wxParse/emojis/116.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/116.gif
--------------------------------------------------------------------------------
/wxParse/emojis/117.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/117.gif
--------------------------------------------------------------------------------
/wxParse/emojis/118.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/118.gif
--------------------------------------------------------------------------------
/wxParse/emojis/119.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/119.gif
--------------------------------------------------------------------------------
/wxParse/emojis/12.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/12.gif
--------------------------------------------------------------------------------
/wxParse/emojis/120.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/120.gif
--------------------------------------------------------------------------------
/wxParse/emojis/121.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/121.gif
--------------------------------------------------------------------------------
/wxParse/emojis/122.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/122.gif
--------------------------------------------------------------------------------
/wxParse/emojis/123.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/123.gif
--------------------------------------------------------------------------------
/wxParse/emojis/124.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/124.gif
--------------------------------------------------------------------------------
/wxParse/emojis/125.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/125.gif
--------------------------------------------------------------------------------
/wxParse/emojis/126.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/126.gif
--------------------------------------------------------------------------------
/wxParse/emojis/127.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/127.gif
--------------------------------------------------------------------------------
/wxParse/emojis/128.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/128.gif
--------------------------------------------------------------------------------
/wxParse/emojis/129.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/129.gif
--------------------------------------------------------------------------------
/wxParse/emojis/13.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/13.gif
--------------------------------------------------------------------------------
/wxParse/emojis/130.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/130.gif
--------------------------------------------------------------------------------
/wxParse/emojis/131.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/131.gif
--------------------------------------------------------------------------------
/wxParse/emojis/132.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/132.gif
--------------------------------------------------------------------------------
/wxParse/emojis/133.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/133.gif
--------------------------------------------------------------------------------
/wxParse/emojis/134.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/134.gif
--------------------------------------------------------------------------------
/wxParse/emojis/14.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/14.gif
--------------------------------------------------------------------------------
/wxParse/emojis/15.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/15.gif
--------------------------------------------------------------------------------
/wxParse/emojis/16.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/16.gif
--------------------------------------------------------------------------------
/wxParse/emojis/17.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/17.gif
--------------------------------------------------------------------------------
/wxParse/emojis/18.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/18.gif
--------------------------------------------------------------------------------
/wxParse/emojis/19.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/19.gif
--------------------------------------------------------------------------------
/wxParse/emojis/20.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/20.gif
--------------------------------------------------------------------------------
/wxParse/emojis/21.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/21.gif
--------------------------------------------------------------------------------
/wxParse/emojis/22.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/22.gif
--------------------------------------------------------------------------------
/wxParse/emojis/23.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/23.gif
--------------------------------------------------------------------------------
/wxParse/emojis/24.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/24.gif
--------------------------------------------------------------------------------
/wxParse/emojis/25.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/25.gif
--------------------------------------------------------------------------------
/wxParse/emojis/26.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/26.gif
--------------------------------------------------------------------------------
/wxParse/emojis/27.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/27.gif
--------------------------------------------------------------------------------
/wxParse/emojis/28.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/28.gif
--------------------------------------------------------------------------------
/wxParse/emojis/29.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/29.gif
--------------------------------------------------------------------------------
/wxParse/emojis/30.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/30.gif
--------------------------------------------------------------------------------
/wxParse/emojis/31.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/31.gif
--------------------------------------------------------------------------------
/wxParse/emojis/32.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/32.gif
--------------------------------------------------------------------------------
/wxParse/emojis/33.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/33.gif
--------------------------------------------------------------------------------
/wxParse/emojis/34.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/34.gif
--------------------------------------------------------------------------------
/wxParse/emojis/35.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/35.gif
--------------------------------------------------------------------------------
/wxParse/emojis/36.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/36.gif
--------------------------------------------------------------------------------
/wxParse/emojis/37.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/37.gif
--------------------------------------------------------------------------------
/wxParse/emojis/38.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/38.gif
--------------------------------------------------------------------------------
/wxParse/emojis/39.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/39.gif
--------------------------------------------------------------------------------
/wxParse/emojis/40.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/40.gif
--------------------------------------------------------------------------------
/wxParse/emojis/41.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/41.gif
--------------------------------------------------------------------------------
/wxParse/emojis/42.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/42.gif
--------------------------------------------------------------------------------
/wxParse/emojis/43.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/43.gif
--------------------------------------------------------------------------------
/wxParse/emojis/44.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/44.gif
--------------------------------------------------------------------------------
/wxParse/emojis/45.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/45.gif
--------------------------------------------------------------------------------
/wxParse/emojis/46.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/46.gif
--------------------------------------------------------------------------------
/wxParse/emojis/47.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/47.gif
--------------------------------------------------------------------------------
/wxParse/emojis/48.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/48.gif
--------------------------------------------------------------------------------
/wxParse/emojis/49.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/49.gif
--------------------------------------------------------------------------------
/wxParse/emojis/50.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/50.gif
--------------------------------------------------------------------------------
/wxParse/emojis/51.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/51.gif
--------------------------------------------------------------------------------
/wxParse/emojis/52.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/52.gif
--------------------------------------------------------------------------------
/wxParse/emojis/53.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/53.gif
--------------------------------------------------------------------------------
/wxParse/emojis/54.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/54.gif
--------------------------------------------------------------------------------
/wxParse/emojis/55.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/55.gif
--------------------------------------------------------------------------------
/wxParse/emojis/56.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/56.gif
--------------------------------------------------------------------------------
/wxParse/emojis/57.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/57.gif
--------------------------------------------------------------------------------
/wxParse/emojis/58.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/58.gif
--------------------------------------------------------------------------------
/wxParse/emojis/59.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/59.gif
--------------------------------------------------------------------------------
/wxParse/emojis/60.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/60.gif
--------------------------------------------------------------------------------
/wxParse/emojis/61.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/61.gif
--------------------------------------------------------------------------------
/wxParse/emojis/62.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/62.gif
--------------------------------------------------------------------------------
/wxParse/emojis/63.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/63.gif
--------------------------------------------------------------------------------
/wxParse/emojis/64.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/64.gif
--------------------------------------------------------------------------------
/wxParse/emojis/65.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/65.gif
--------------------------------------------------------------------------------
/wxParse/emojis/66.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/66.gif
--------------------------------------------------------------------------------
/wxParse/emojis/67.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/67.gif
--------------------------------------------------------------------------------
/wxParse/emojis/68.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/68.gif
--------------------------------------------------------------------------------
/wxParse/emojis/69.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/69.gif
--------------------------------------------------------------------------------
/wxParse/emojis/70.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/70.gif
--------------------------------------------------------------------------------
/wxParse/emojis/71.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/71.gif
--------------------------------------------------------------------------------
/wxParse/emojis/72.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/72.gif
--------------------------------------------------------------------------------
/wxParse/emojis/73.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/73.gif
--------------------------------------------------------------------------------
/wxParse/emojis/74.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/74.gif
--------------------------------------------------------------------------------
/wxParse/emojis/75.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/75.gif
--------------------------------------------------------------------------------
/wxParse/emojis/76.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/76.gif
--------------------------------------------------------------------------------
/wxParse/emojis/77.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/77.gif
--------------------------------------------------------------------------------
/wxParse/emojis/78.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/78.gif
--------------------------------------------------------------------------------
/wxParse/emojis/79.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/79.gif
--------------------------------------------------------------------------------
/wxParse/emojis/80.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/80.gif
--------------------------------------------------------------------------------
/wxParse/emojis/81.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/81.gif
--------------------------------------------------------------------------------
/wxParse/emojis/82.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/82.gif
--------------------------------------------------------------------------------
/wxParse/emojis/83.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/83.gif
--------------------------------------------------------------------------------
/wxParse/emojis/84.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/84.gif
--------------------------------------------------------------------------------
/wxParse/emojis/85.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/85.gif
--------------------------------------------------------------------------------
/wxParse/emojis/86.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/86.gif
--------------------------------------------------------------------------------
/wxParse/emojis/87.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/87.gif
--------------------------------------------------------------------------------
/wxParse/emojis/88.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/88.gif
--------------------------------------------------------------------------------
/wxParse/emojis/89.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/89.gif
--------------------------------------------------------------------------------
/wxParse/emojis/90.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/90.gif
--------------------------------------------------------------------------------
/wxParse/emojis/91.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/91.gif
--------------------------------------------------------------------------------
/wxParse/emojis/92.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/92.gif
--------------------------------------------------------------------------------
/wxParse/emojis/93.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/93.gif
--------------------------------------------------------------------------------
/wxParse/emojis/94.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/94.gif
--------------------------------------------------------------------------------
/wxParse/emojis/95.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/95.gif
--------------------------------------------------------------------------------
/wxParse/emojis/96.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/96.gif
--------------------------------------------------------------------------------
/wxParse/emojis/97.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/97.gif
--------------------------------------------------------------------------------
/wxParse/emojis/98.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/98.gif
--------------------------------------------------------------------------------
/wxParse/emojis/99.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wxParse/emojis/99.gif
--------------------------------------------------------------------------------
/wx_xiaochengxu_fecmall2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fecshop/wx_micro_program/65d9a2b7e3af8c285f30272999a233a32ab8a3be/wx_xiaochengxu_fecmall2.png
--------------------------------------------------------------------------------