├── README.md
├── app.js
├── app.json
├── app.wxss
├── common
├── common.js
└── util.js
├── css
├── search.wxss
└── weui.wxss
├── images
├── a32_02.jpg
├── blog_03.png
├── card_03.jpg
├── i_03.jpg
├── i_05.jpg
├── i_06.jpg
├── i_07.jpg
├── i_08.jpg
├── i_09.jpg
├── i_10.jpg
├── i_11.jpg
├── i_12.jpg
├── i_13.jpg
├── i_15.jpg
├── i_16.jpg
├── i_17.jpg
├── i_18.jpg
├── icon1.png
├── icon1s.png
├── icon2.png
├── icon2s.png
├── icon3.png
├── icon3s.png
├── icon4.png
├── icon4s.png
├── icon_03.jpg
├── icon_04.jpg
├── icon_06.jpg
├── me_02.jpg
├── me_05.jpg
├── me_08.jpg
├── me_10.jpg
├── me_12.jpg
├── me_14.jpg
├── more.jpg
├── n_03.jpg
├── n_06.jpg
├── quan_01_03.jpg
├── tels_03.png
└── tels_05.png
├── pages
├── board
│ ├── board.js
│ ├── board.json
│ ├── board.wxml
│ ├── board.wxss
│ ├── boardlist.js
│ ├── boardlist.json
│ ├── boardlist.wxml
│ ├── boardlist.wxss
│ ├── post.js
│ ├── post.json
│ ├── post.wxml
│ └── post.wxss
├── classes
│ ├── class.js
│ ├── class.json
│ ├── class.wxml
│ ├── class.wxss
│ ├── classlist.js
│ ├── classlist.json
│ ├── classlist.wxml
│ └── classlist.wxss
├── contact
│ ├── contact.js
│ ├── contact.json
│ ├── contact.wxml
│ └── contact.wxss
├── forum
│ ├── forum.js
│ ├── forum.json
│ ├── forum.wxml
│ └── forum.wxss
├── index
│ ├── index.js
│ ├── index.json
│ ├── index.wxml
│ └── index.wxss
├── map
│ ├── map.js
│ ├── map.json
│ ├── map.wxml
│ └── map.wxss
├── note
│ ├── balance.js
│ ├── balance.json
│ ├── balance.wxml
│ ├── balance.wxss
│ ├── myclasses.js
│ ├── myclasses.json
│ ├── myclasses.wxml
│ ├── myclasses.wxss
│ ├── note.js
│ ├── note.json
│ ├── note.wxml
│ ├── note.wxss
│ ├── pay.js
│ ├── pay.json
│ ├── pay.wxml
│ ├── pay.wxss
│ ├── youhui.js
│ ├── youhui.json
│ ├── youhui.wxml
│ └── youhui.wxss
├── release
│ ├── releaselist.js
│ ├── releaselist.json
│ ├── releaselist.wxml
│ └── releaselist.wxss
├── search
│ ├── search.js
│ ├── search.json
│ ├── search.wxml
│ ├── search.wxss
│ ├── searched.js
│ ├── searched.json
│ ├── searched.wxml
│ └── searched.wxss
└── user
│ ├── user.js
│ ├── user.json
│ ├── user.wxml
│ └── user.wxss
├── require
├── banner.js
├── logo.js
├── nav.js
├── news.js
└── qqmap-wx-jssdk.min.js
└── view
├── banner.wxml
├── loading.wxml
├── news.wxml
└── search.wxml
/README.md:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/README.md
--------------------------------------------------------------------------------
/app.js:
--------------------------------------------------------------------------------
1 | //app.js
2 | const logo = require('/require/logo');
3 | App({
4 | globalData:{
5 | appId:'wx8fd0f04121e3868f',//appId
6 | secret:'8275b9065c4b34d8e95fd57facbc9f84',//secret
7 | request: 'https://18508788.17tongcheng.cn/api/'//请求地址
8 | },
9 | onLaunch: function () {
10 | var _this = this;
11 | var logoUrl = `${_this.globalData.request}logo.php`;
12 | logo.fetchLogo.call(_this, logoUrl);
13 | var user=wx.getStorageSync('user') || {};
14 | var userInfo=wx.getStorageSync('userInfo') || {};
15 | if((!user.openid || (user.expires_in || Date.now()) < (Date.now() + 600))&&(!userInfo.nickName)){
16 | wx.login({
17 | success: function(res){
18 | if(res.code) {
19 | wx.getUserInfo({
20 | success: function (res) {
21 | var objz={};
22 | objz.avatarUrl=res.userInfo.avatarUrl;
23 | objz.nickName=res.userInfo.nickName;
24 | wx.setStorageSync('userInfo', objz);//存储userInfo
25 | }
26 | });
27 | var d=_this.globalData;//这里存储了appId、secret、token串
28 | var l=`https://api.weixin.qq.com/sns/jscode2session?appId=${d.appId}&secret=${d.secret}&js_code=${res.code}&grant_type=authorization_code`;
29 | wx.request({
30 | url: l,
31 | data: {},
32 | method: 'GET',
33 | success: function(res){
34 | console.log(res);
35 | var obj={};
36 | obj.openid=res.data.openid;
37 | obj.expires_in=Date.now()+res.data.expires_in;
38 | //console.log(obj);
39 | wx.setStorageSync('user', obj);//存储openid
40 | }
41 | });
42 | }else {
43 | console.log('获取用户登录态失败!' + res.errMsg);
44 | }
45 | }
46 | });
47 | }
48 | wx.getLocation({
49 | type: 'wgs84',
50 | success: function(res) {
51 | var latitude = res.latitude
52 | var longitude = res.longitude
53 | var speed = res.speed
54 | var accuracy = res.accuracy
55 | }
56 | })
57 | }
58 | });
--------------------------------------------------------------------------------
/app.json:
--------------------------------------------------------------------------------
1 | {
2 | "pages":[
3 | "pages/index/index",
4 | "pages/release/releaselist",
5 | "pages/contact/contact",
6 | "pages/board/board",
7 | "pages/classes/classlist",
8 | "pages/classes/class",
9 | "pages/user/user",
10 | "pages/search/search",
11 | "pages/forum/forum",
12 | "pages/board/boardlist",
13 | "pages/note/balance",
14 | "pages/note/myclasses",
15 | "pages/note/pay",
16 | "pages/board/post",
17 | "pages/search/searched",
18 | "pages/note/youhui",
19 | "pages/map/map"
20 | ],
21 | "window":{
22 | "backgroundTextStyle":"light",
23 | "navigationBarBackgroundColor": "#1d82d2",
24 | "navigationBarTitleText": "17同城",
25 | "backgroundColor": "#fff",
26 | "navigationBarTextStyle":"white",
27 | "enablePullDownRefresh": false
28 | },
29 | "tabBar": {
30 | "color":"#000",
31 | "selectedColor":"#1d82d2",
32 | "backgroundColor":"#fff",
33 | "borderStyle":"black",
34 | "list": [
35 | {
36 | "pagePath":"pages/index/index",
37 | "iconPath": "images/icon1.png",
38 | "selectedIconPath": "images/icon1s.png",
39 | "text": "首页"
40 | },
41 | {
42 | "pagePath":"pages/board/boardlist",
43 | "iconPath": "images/icon3.png",
44 | "selectedIconPath": "images/icon3s.png",
45 | "text": "留言板"
46 | },
47 | {
48 | "pagePath":"pages/contact/contact",
49 | "iconPath": "images/icon2.png",
50 | "selectedIconPath": "images/icon2s.png",
51 | "text": "联系我们"
52 | },
53 | {
54 | "pagePath":"pages/user/user",
55 | "iconPath": "images/icon4.png",
56 | "selectedIconPath": "images/icon4s.png",
57 | "text": "我的"
58 | }
59 | ]
60 | },
61 | "debug": false
62 | }
--------------------------------------------------------------------------------
/app.wxss:
--------------------------------------------------------------------------------
1 | .tac{text-align: center;}
2 | .clear::after{ content: ""; display: block; clear:both; overflow:hidden; height:0;}
3 | .fl{ float:left;}
4 | .fr{ float:right;}
5 | .abs{ position:absolute;}
6 | .rel{ position:relative;}
7 | .indent{text-indent: 2em;}
8 | .tac{text-align: center;}
9 | .blod{ font-weight: 700}
10 | .em{text-indent: 2em;}
11 | .block{ display: block;word-break:break-all;}
12 |
13 | page{
14 | font-family: Microsoft YaHei;
15 | position: relative;
16 | }
17 | swiper{
18 | height: 384rpx;
19 | }
20 | .main{
21 | min-height: 100vh;
22 | background: #fff;
23 | padding-bottom: 12rpx;
24 | box-sizing: border-box;
25 | }
26 | .content{
27 | padding-left: 10rpx;
28 | padding-right: 10rpx;
29 | }
30 | .flex{
31 | display: flex;
32 | }
33 | navigator:hover{
34 | background-color: none;
35 | }
36 | .banner image{
37 | width: 750rpx;
38 | height: 384rpx;
39 | }
40 | .pt_20{
41 | padding-top: 20rpx;
42 | }
43 | .pt_12{
44 | padding-top: 12rpx;
45 | }
46 | .pt_10{
47 | padding-top: 10rpx;
48 | }
49 | .cfff{
50 | color: #fff;
51 | }
52 | .c000{
53 | color: #000;
54 | }
55 | .c666{
56 | color: #666;
57 | }
58 | .c999{
59 | color: #999;
60 | }
61 | .l22{
62 | line-height: 2.2;
63 | }
64 | .f28{
65 | font-size: 28rpx;
66 | }
67 | .f16{
68 | font-size: 16px;
69 | }
70 | .f22{
71 | font-size: 22rpx;
72 | }
73 | .f24{
74 | font-size: 24rpx;
75 | }
76 | .f36{
77 | font-size: 36rpx;
78 | }
79 | .w448{
80 | width: 448rpx;
81 | }
82 | .text_overflow{
83 | overflow:hidden;
84 | text-overflow:ellipsis;
85 | white-space:nowrap;
86 | width: 380rpx;
87 | }
88 | scrollbar {
89 | width: 0;
90 | height: 0;
91 | color: transparent;
92 | }
93 | ::-webkit-scrollbar {
94 | width: 0;
95 | height: 0;
96 | color: transparent;
97 | }
98 | .f14px{
99 | font-size: 14px;
100 | }
101 | .f12px{
102 | font-size: 12px;
103 | }
104 | .f26{
105 | font-size: 26rpx;
106 | }
107 | .cff2929{
108 | color: #ff2929;
109 | }
110 | .c3885ee{
111 | color: #3885ee;
112 | }
113 | .c585858{
114 | color: #585858;
115 | }
116 | .f48{
117 | font-size: 48rpx;
118 | }
119 | .navigator-hover{
120 | background: transparent;
121 | opacity: 0.6;
122 | }
123 | .bge6e6e6{
124 | padding: 24rpx 15rpx;
125 | color: #aaa;
126 | }
127 | .bge6e6e6 view{
128 | background: url('https://67376893.qcloud.la/api/images/a32_02.jpg?id=1') repeat-x;
129 | background-size: auto 100%;
130 | }
131 | .bge6e6e6 text{
132 | padding: 0 10rpx;
133 | background: #fff;
134 | }
--------------------------------------------------------------------------------
/common/common.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | //显示loading
3 | loading: ()=>{
4 | wx.showNavigationBarLoading()
5 | },
6 | //隐藏loading
7 | stoploading: ()=>{
8 | wx.hideNavigationBarLoading()
9 | },
10 | //设置导航文字
11 | setNavTitle: (title)=>{
12 | var title = title;
13 | wx.setNavigationBarTitle({
14 | title: title,
15 | success: function() {
16 | console.log('setNavigationBarTitle success')
17 | },
18 | fail: function(err) {
19 | console.log('setNavigationBarTitle fail, err is', err)
20 | }
21 | })
22 | return false
23 | },
24 | showModal: (title="网络不给力啊", content="信息加载失败")=>{
25 | wx.showModal({
26 | title,
27 | content,
28 | showCancel: false,
29 | confirmText: "确定"
30 | })
31 | },
32 | viewSearch: function() {
33 | wx.navigateTo({
34 | url: '../search/search'
35 | })
36 | }
37 | }
--------------------------------------------------------------------------------
/common/util.js:
--------------------------------------------------------------------------------
1 | function formatTime(time) {
2 | if (typeof time !== 'number' || time < 0) {
3 | return time
4 | }
5 |
6 | const date = new Date(time)
7 |
8 | const year = date.getFullYear()
9 | const month = date.getMonth()+1
10 | const day = date.getDate()
11 | const hour = date.getHours()
12 | const minute = date.getMinutes()
13 | const second = date.getSeconds()
14 |
15 | /*
16 | var hour = parseInt(time / 3600)
17 | time = time % 3600
18 | var minute = parseInt(time / 60)
19 | time = time % 60
20 | var second = time
21 | */
22 |
23 | return year+'-'+month+'-'+day+' '+([hour, minute, second]).map(function (n) {
24 | n = n.toString()
25 | return n[1] ? n : '0' + n
26 | }).join(':')
27 | }
28 |
29 | // function countdown(time) {
30 |
31 | // if (typeof time !== 'number' || time < 0) {
32 | // return time
33 | // }
34 | // setInterval(function(){
35 | // return (time/1000) - 1
36 | // }, 1000)
37 | // }
38 |
39 | module.exports = {
40 | formatTime: formatTime,
41 | // countdown: countdown
42 | }
--------------------------------------------------------------------------------
/css/search.wxss:
--------------------------------------------------------------------------------
1 | .search-bar{
2 | background: #1d82d2;
3 | padding-top: 15px;
4 | padding-bottom: 15px;
5 | flex-wrap:wrap;
6 | flex-direction:row;
7 | position: fixed;
8 | width: 100%;
9 | left: 0;
10 | top: 0;
11 | z-index: 2;
12 | }
13 | .pt{
14 | padding-top: calc(61rpx + 30px);
15 | }
16 | .logo{
17 | width: 106rpx;
18 | height: 61rpx;
19 | }
20 | .search-bar .input{
21 | color: #aaa;
22 | width: 550rpx;
23 | padding: 0 13rpx;
24 | height: 61rpx;
25 | line-height: 61rpx;
26 | border-radius: 6px;
27 | font-size: 26rpx;
28 | background-image: url('https://18508788.17tongcheng.cn/api/images/i_06.jpg');
29 | background-color: #fff;
30 | background-repeat: no-repeat;
31 | background-position: right center;
32 | background-size: contain;
33 | margin-left: 10rpx;
34 | }
35 | .fb_btn{
36 | width: 127rpx;
37 | height: 61rpx;
38 | background-repeat: no-repeat;
39 | background-image: url('https://18508788.17tongcheng.cn/api/images/i_05.jpg');
40 | background-position: center center;
41 | background-size: contain;
42 | margin-left: 10rpx;
43 | }
44 | .body{
45 | padding-top: 10rpx;
46 | }
--------------------------------------------------------------------------------
/css/weui.wxss:
--------------------------------------------------------------------------------
1 | /*!
2 | * weui.js v1.1.0 (https://github.com/weui/weui-wxss)
3 | * Copyright 2016, wechat ui team
4 | * MIT license
5 | */
6 | page {
7 | line-height: 1.6;
8 | font-family: -apple-system-font, "Helvetica Neue", sans-serif;
9 | }
10 | icon {
11 | vertical-align: middle;
12 | }
13 | .weui-cells {
14 | position: relative;
15 | margin-top: 1.17647059em;
16 | background-color: #FFFFFF;
17 | line-height: 1.41176471;
18 | font-size: 17px;
19 | }
20 | .weui-cells:before {
21 | content: " ";
22 | position: absolute;
23 | left: 0;
24 | top: 0;
25 | right: 0;
26 | height: 1px;
27 | border-top: 1rpx solid #D9D9D9;
28 | color: #D9D9D9;
29 | }
30 | .weui-cells:after {
31 | content: " ";
32 | position: absolute;
33 | left: 0;
34 | bottom: 0;
35 | right: 0;
36 | height: 1px;
37 | border-bottom: 1rpx solid #D9D9D9;
38 | color: #D9D9D9;
39 | }
40 | .weui-cells__title {
41 | margin-top: .77em;
42 | margin-bottom: .3em;
43 | padding-left: 15px;
44 | padding-right: 15px;
45 | color: #999999;
46 | font-size: 14px;
47 | }
48 | .weui-cells_after-title {
49 | margin-top: 0;
50 | }
51 | .weui-cells__tips {
52 | margin-top: .3em;
53 | color: #999999;
54 | padding-left: 15px;
55 | padding-right: 15px;
56 | font-size: 14px;
57 | }
58 | .weui-cell {
59 | padding: 10px;
60 | position: relative;
61 | display: -webkit-box;
62 | display: -webkit-flex;
63 | display: flex;
64 | -webkit-box-align: center;
65 | -webkit-align-items: center;
66 | align-items: center;
67 | }
68 | .weui-cell:before {
69 | content: " ";
70 | position: absolute;
71 | left: 0;
72 | top: 0;
73 | right: 0;
74 | height: 1px;
75 | color: #D9D9D9;
76 | left: 15px;
77 | }
78 | .weui-cell:first-child:before {
79 | display: none;
80 | }
81 | .weui-cell_active {
82 | background-color: #ECECEC;
83 | }
84 | .weui-cell_primary {
85 | -webkit-box-align: start;
86 | -webkit-align-items: flex-start;
87 | align-items: flex-start;
88 | }
89 | .weui-cell__bd {
90 | -webkit-box-flex: 1;
91 | -webkit-flex: 1;
92 | flex: 1;
93 | }
94 | .weui-cell__ft {
95 | text-align: right;
96 | color: #999999;
97 | }
98 | .weui-cell_access {
99 | color: inherit;
100 | }
101 | .weui-cell__ft_in-access {
102 | padding-right: 13px;
103 | position: relative;
104 | }
105 | .weui-cell__ft_in-access:after {
106 | content: " ";
107 | display: inline-block;
108 | height: 6px;
109 | width: 6px;
110 | border-width: 2px 2px 0 0;
111 | border-color: #C8C8CD;
112 | border-style: solid;
113 | -webkit-transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0);
114 | transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0);
115 | position: relative;
116 | top: -2px;
117 | position: absolute;
118 | top: 50%;
119 | margin-top: -4px;
120 | right: 2px;
121 | }
122 | .weui-cell_link {
123 | color: #586C94;
124 | font-size: 14px;
125 | }
126 | .weui-cell_link:active {
127 | background-color: #ECECEC;
128 | }
129 | .weui-cell_link:first-child:before {
130 | display: block;
131 | }
132 | .weui-icon-radio {
133 | margin-left: 3.2px;
134 | margin-right: 3.2px;
135 | }
136 | .weui-icon-checkbox_circle,
137 | .weui-icon-checkbox_success {
138 | margin-left: 4.6px;
139 | margin-right: 4.6px;
140 | }
141 | .weui-check__label:active {
142 | background-color: #ECECEC;
143 | }
144 | .weui-check {
145 | position: absolute;
146 | left: -9999px;
147 | }
148 | .weui-check__hd_in-checkbox {
149 | padding-right: 0.35em;
150 | }
151 | .weui-cell__ft_in-radio {
152 | padding-left: 0.35em;
153 | }
154 | .weui-cell_input {
155 | padding-top: 0;
156 | padding-bottom: 0;
157 | }
158 | .weui-label {
159 | width: 105px;
160 | word-wrap: break-word;
161 | word-break: break-all;
162 | }
163 | .weui-input {
164 | height: 2.58823529em;
165 | min-height: 2.58823529em;
166 | line-height: 2.58823529em;
167 | }
168 | .weui-toptips {
169 | position: fixed;
170 | -webkit-transform: translateZ(0);
171 | transform: translateZ(0);
172 | top: 0;
173 | left: 0;
174 | right: 0;
175 | padding: 5px;
176 | font-size: 14px;
177 | text-align: center;
178 | color: #FFFFFF;
179 | z-index: 5000;
180 | word-wrap: break-word;
181 | word-break: break-all;
182 | }
183 | .weui-toptips_warn {
184 | background-color: #E64340;
185 | }
186 | .weui-textarea {
187 | display: block;
188 | width: 100%;
189 | }
190 | .weui-textarea-counter {
191 | color: #B2B2B2;
192 | text-align: right;
193 | }
194 | .weui-textarea-counter_warn {
195 | color: #E64340;
196 | }
197 | .weui-cell_warn {
198 | color: #E64340;
199 | }
200 | .weui-form-preview {
201 | position: relative;
202 | background-color: #FFFFFF;
203 | }
204 | .weui-form-preview:before {
205 | content: " ";
206 | position: absolute;
207 | left: 0;
208 | top: 0;
209 | right: 0;
210 | height: 1px;
211 | border-top: 1rpx solid #D9D9D9;
212 | color: #D9D9D9;
213 | }
214 | .weui-form-preview:after {
215 | content: " ";
216 | position: absolute;
217 | left: 0;
218 | bottom: 0;
219 | right: 0;
220 | height: 1px;
221 | border-bottom: 1rpx solid #D9D9D9;
222 | color: #D9D9D9;
223 | }
224 | .weui-form-preview__value {
225 | font-size: 14px;
226 | }
227 | .weui-form-preview__value_in-hd {
228 | font-size: 26px;
229 | }
230 | .weui-form-preview__hd {
231 | position: relative;
232 | padding: 10px 15px;
233 | text-align: right;
234 | line-height: 2.5em;
235 | }
236 | .weui-form-preview__hd:after {
237 | content: " ";
238 | position: absolute;
239 | left: 0;
240 | bottom: 0;
241 | right: 0;
242 | height: 1px;
243 | border-bottom: 1rpx solid #D9D9D9;
244 | color: #D9D9D9;
245 | left: 15px;
246 | }
247 | .weui-form-preview__bd {
248 | padding: 10px 15px;
249 | font-size: .9em;
250 | text-align: right;
251 | color: #999999;
252 | line-height: 2;
253 | }
254 | .weui-form-preview__ft {
255 | position: relative;
256 | line-height: 50px;
257 | display: -webkit-box;
258 | display: -webkit-flex;
259 | display: flex;
260 | }
261 | .weui-form-preview__ft:after {
262 | content: " ";
263 | position: absolute;
264 | left: 0;
265 | top: 0;
266 | right: 0;
267 | height: 1px;
268 | border-top: 1rpx solid #D5D5D6;
269 | color: #D5D5D6;
270 | }
271 | .weui-form-preview__item {
272 | overflow: hidden;
273 | }
274 | .weui-form-preview__label {
275 | float: left;
276 | margin-right: 1em;
277 | min-width: 4em;
278 | color: #999999;
279 | text-align: justify;
280 | text-align-last: justify;
281 | }
282 | .weui-form-preview__value {
283 | display: block;
284 | overflow: hidden;
285 | word-break: normal;
286 | word-wrap: break-word;
287 | }
288 | .weui-form-preview__btn {
289 | position: relative;
290 | display: block;
291 | -webkit-box-flex: 1;
292 | -webkit-flex: 1;
293 | flex: 1;
294 | color: #3CC51F;
295 | text-align: center;
296 | }
297 | .weui-form-preview__btn:after {
298 | content: " ";
299 | position: absolute;
300 | left: 0;
301 | top: 0;
302 | width: 1px;
303 | bottom: 0;
304 | border-left: 1rpx solid #D5D5D6;
305 | color: #D5D5D6;
306 | }
307 | .weui-form-preview__btn:first-child:after {
308 | display: none;
309 | }
310 | .weui-form-preview__btn_active {
311 | background-color: #EEEEEE;
312 | }
313 | .weui-form-preview__btn_default {
314 | color: #999999;
315 | }
316 | .weui-form-preview__btn_primary {
317 | color: #0BB20C;
318 | }
319 | .weui-cell_select {
320 | padding: 0;
321 | }
322 | .weui-select {
323 | position: relative;
324 | padding-left: 15px;
325 | padding-right: 30px;
326 | height: 2.58823529em;
327 | min-height: 2.58823529em;
328 | line-height: 2.58823529em;
329 | border-right: 1rpx solid #D9D9D9;
330 | }
331 | .weui-select:before {
332 | content: " ";
333 | display: inline-block;
334 | height: 6px;
335 | width: 6px;
336 | border-width: 2px 2px 0 0;
337 | border-color: #C8C8CD;
338 | border-style: solid;
339 | -webkit-transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0);
340 | transform: matrix(0.71, 0.71, -0.71, 0.71, 0, 0);
341 | position: relative;
342 | top: -2px;
343 | position: absolute;
344 | top: 50%;
345 | right: 15px;
346 | margin-top: -4px;
347 | }
348 | .weui-select_in-select-after {
349 | padding-left: 0;
350 | }
351 | .weui-cell__hd_in-select-after,
352 | .weui-cell__bd_in-select-before {
353 | padding-left: 15px;
354 | }
355 | .weui-cell_vcode {
356 | padding-right: 0;
357 | }
358 | .weui-vcode-img {
359 | margin-left: 5px;
360 | height: 2.58823529em;
361 | vertical-align: middle;
362 | }
363 | .weui-vcode-btn {
364 | display: inline-block;
365 | height: 2.58823529em;
366 | margin-left: 5px;
367 | padding: 0 0.6em 0 0.7em;
368 | border-left: 1px solid #E5E5E5;
369 | line-height: 2.58823529em;
370 | vertical-align: middle;
371 | font-size: 17px;
372 | color: #3CC51F;
373 | white-space: nowrap;
374 | }
375 | .weui-vcode-btn:active {
376 | color: #52a341;
377 | }
378 | .weui-cell_switch {
379 | padding-top: 6px;
380 | padding-bottom: 6px;
381 | }
382 | .weui-uploader__hd {
383 | display: -webkit-box;
384 | display: -webkit-flex;
385 | display: flex;
386 | padding-bottom: 10px;
387 | -webkit-box-align: center;
388 | -webkit-align-items: center;
389 | align-items: center;
390 | }
391 | .weui-uploader__title {
392 | -webkit-box-flex: 1;
393 | -webkit-flex: 1;
394 | flex: 1;
395 | }
396 | .weui-uploader__info {
397 | color: #B2B2B2;
398 | }
399 | .weui-uploader__bd {
400 | margin-bottom: -4px;
401 | margin-right: -9px;
402 | overflow: hidden;
403 | }
404 | .weui-uploader__file {
405 | float: left;
406 | margin-right: 9px;
407 | margin-bottom: 9px;
408 | }
409 | .weui-uploader__img {
410 | display: block;
411 | width: 79px;
412 | height: 79px;
413 | }
414 | .weui-uploader__file_status {
415 | position: relative;
416 | }
417 | .weui-uploader__file_status:before {
418 | content: " ";
419 | position: absolute;
420 | top: 0;
421 | right: 0;
422 | bottom: 0;
423 | left: 0;
424 | background-color: rgba(0, 0, 0, 0.5);
425 | }
426 | .weui-uploader__file-content {
427 | position: absolute;
428 | top: 50%;
429 | left: 50%;
430 | -webkit-transform: translate(-50%, -50%);
431 | transform: translate(-50%, -50%);
432 | color: #FFFFFF;
433 | }
434 | .weui-uploader__input-box {
435 | float: left;
436 | position: relative;
437 | margin-right: 9px;
438 | margin-bottom: 9px;
439 | width: 77px;
440 | height: 77px;
441 | border: 1px solid #D9D9D9;
442 | }
443 | .weui-uploader__input-box:before,
444 | .weui-uploader__input-box:after {
445 | content: " ";
446 | position: absolute;
447 | top: 50%;
448 | left: 50%;
449 | -webkit-transform: translate(-50%, -50%);
450 | transform: translate(-50%, -50%);
451 | background-color: #D9D9D9;
452 | }
453 | .weui-uploader__input-box:before {
454 | width: 2px;
455 | height: 39.5px;
456 | }
457 | .weui-uploader__input-box:after {
458 | width: 39.5px;
459 | height: 2px;
460 | }
461 | .weui-uploader__input-box:active {
462 | border-color: #999999;
463 | }
464 | .weui-uploader__input-box:active:before,
465 | .weui-uploader__input-box:active:after {
466 | background-color: #999999;
467 | }
468 | .weui-uploader__input {
469 | position: absolute;
470 | z-index: 1;
471 | top: 0;
472 | left: 0;
473 | width: 100%;
474 | height: 100%;
475 | opacity: 0;
476 | }
477 | .weui-article {
478 | padding: 20px 15px;
479 | font-size: 15px;
480 | }
481 | .weui-article__section {
482 | margin-bottom: 1.5em;
483 | }
484 | .weui-article__h1 {
485 | font-size: 18px;
486 | font-weight: 400;
487 | margin-bottom: .9em;
488 | }
489 | .weui-article__h2 {
490 | font-size: 16px;
491 | font-weight: 400;
492 | margin-bottom: .34em;
493 | }
494 | .weui-article__h3 {
495 | font-weight: 400;
496 | font-size: 15px;
497 | margin-bottom: .34em;
498 | }
499 | .weui-article__p {
500 | margin: 0 0 .8em;
501 | }
502 | .weui-msg {
503 | padding-top: 36px;
504 | text-align: center;
505 | }
506 | .weui-msg__link {
507 | display: inline;
508 | color: #586C94;
509 | }
510 | .weui-msg__icon-area {
511 | margin-bottom: 30px;
512 | }
513 | .weui-msg__text-area {
514 | margin-bottom: 25px;
515 | padding: 0 20px;
516 | }
517 | .weui-msg__title {
518 | margin-bottom: 5px;
519 | font-weight: 400;
520 | font-size: 20px;
521 | }
522 | .weui-msg__desc {
523 | font-size: 14px;
524 | color: #999999;
525 | }
526 | .weui-msg__opr-area {
527 | margin-bottom: 25px;
528 | }
529 | .weui-msg__extra-area {
530 | margin-bottom: 15px;
531 | font-size: 14px;
532 | color: #999999;
533 | }
534 | @media screen and (min-height: 438px) {
535 | .weui-msg__extra-area {
536 | position: fixed;
537 | left: 0;
538 | bottom: 0;
539 | width: 100%;
540 | text-align: center;
541 | }
542 | }
543 | .weui-flex {
544 | display: -webkit-box;
545 | display: -webkit-flex;
546 | display: flex;
547 | }
548 | .weui-flex__item {
549 | -webkit-box-flex: 1;
550 | -webkit-flex: 1;
551 | flex: 1;
552 | }
553 | .weui-btn {
554 | margin-top: 15px;
555 | }
556 | .weui-btn:first-child {
557 | margin-top: 0;
558 | }
559 | .weui-btn-area {
560 | margin: 1.17647059em 15px 0.3em;
561 | }
562 | .weui-agree {
563 | display: block;
564 | padding: .5em 15px;
565 | font-size: 13px;
566 | }
567 | .weui-agree__text {
568 | color: #999999;
569 | }
570 | .weui-agree__link {
571 | display: inline;
572 | color: #586C94;
573 | }
574 | .weui-agree__checkbox {
575 | position: absolute;
576 | left: -9999px;
577 | }
578 | .weui-agree__checkbox-icon {
579 | position: relative;
580 | top: 2px;
581 | display: inline-block;
582 | border: 1px solid #D1D1D1;
583 | background-color: #FFFFFF;
584 | border-radius: 3px;
585 | width: 11px;
586 | height: 11px;
587 | }
588 | .weui-agree__checkbox-icon-check {
589 | position: absolute;
590 | top: 1px;
591 | left: 1px;
592 | }
593 | .weui-footer {
594 | color: #999999;
595 | font-size: 14px;
596 | text-align: center;
597 | }
598 | .weui-footer_fixed-bottom {
599 | position: fixed;
600 | bottom: .52em;
601 | left: 0;
602 | right: 0;
603 | }
604 | .weui-footer__links {
605 | font-size: 0;
606 | }
607 | .weui-footer__link {
608 | display: inline-block;
609 | vertical-align: top;
610 | margin: 0 .62em;
611 | position: relative;
612 | font-size: 14px;
613 | color: #586C94;
614 | }
615 | .weui-footer__link:before {
616 | content: " ";
617 | position: absolute;
618 | left: 0;
619 | top: 0;
620 | width: 1px;
621 | bottom: 0;
622 | border-left: 1rpx solid #C7C7C7;
623 | color: #C7C7C7;
624 | left: -0.65em;
625 | top: .36em;
626 | bottom: .36em;
627 | }
628 | .weui-footer__link:first-child:before {
629 | display: none;
630 | }
631 | .weui-footer__text {
632 | padding: 0 .34em;
633 | font-size: 12px;
634 | }
635 | .weui-grids {
636 | border-top: 1rpx solid #D9D9D9;
637 | border-left: 1rpx solid #D9D9D9;
638 | overflow: hidden;
639 | }
640 | .weui-grid {
641 | position: relative;
642 | float: left;
643 | padding: 20px 10px;
644 | width: 33.33333333%;
645 | box-sizing: border-box;
646 | border-right: 1rpx solid #D9D9D9;
647 | border-bottom: 1rpx solid #D9D9D9;
648 | }
649 | .weui-grid_active {
650 | background-color: #ECECEC;
651 | }
652 | .weui-grid__icon {
653 | display: block;
654 | width: 28px;
655 | height: 28px;
656 | margin: 0 auto;
657 | }
658 | .weui-grid__label {
659 | margin-top: 5px;
660 | display: block;
661 | text-align: center;
662 | color: #000000;
663 | font-size: 14px;
664 | white-space: nowrap;
665 | text-overflow: ellipsis;
666 | overflow: hidden;
667 | }
668 | .weui-loading {
669 | margin: 0 5px;
670 | width: 20px;
671 | height: 20px;
672 | display: inline-block;
673 | vertical-align: middle;
674 | -webkit-animation: weuiLoading 1s steps(12, end) infinite;
675 | animation: weuiLoading 1s steps(12, end) infinite;
676 | background: transparent url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTTAgMGgxMDB2MTAwSDB6Ii8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTlFOUU5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAgLTMwKSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iIzk4OTY5NyIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgzMCAxMDUuOTggNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjOUI5OTlBIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDYwIDc1Ljk4IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0EzQTFBMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSg5MCA2NSA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNBQkE5QUEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoMTIwIDU4LjY2IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0IyQjJCMiIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgxNTAgNTQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjQkFCOEI5IiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKDE4MCA1MCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDMkMwQzEiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTE1MCA0NS45OCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNDQkNCQ0IiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTEyMCA0MS4zNCA2NSkiLz48cmVjdCB3aWR0aD0iNyIgaGVpZ2h0PSIyMCIgeD0iNDYuNSIgeT0iNDAiIGZpbGw9IiNEMkQyRDIiIHJ4PSI1IiByeT0iNSIgdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDM1IDY1KSIvPjxyZWN0IHdpZHRoPSI3IiBoZWlnaHQ9IjIwIiB4PSI0Ni41IiB5PSI0MCIgZmlsbD0iI0RBREFEQSIgcng9IjUiIHJ5PSI1IiB0cmFuc2Zvcm09InJvdGF0ZSgtNjAgMjQuMDIgNjUpIi8+PHJlY3Qgd2lkdGg9IjciIGhlaWdodD0iMjAiIHg9IjQ2LjUiIHk9IjQwIiBmaWxsPSIjRTJFMkUyIiByeD0iNSIgcnk9IjUiIHRyYW5zZm9ybT0icm90YXRlKC0zMCAtNS45OCA2NSkiLz48L3N2Zz4=) no-repeat;
677 | background-size: 100%;
678 | }
679 | @-webkit-keyframes weuiLoading {
680 | 0% {
681 | -webkit-transform: rotate3d(0, 0, 1, 0deg);
682 | transform: rotate3d(0, 0, 1, 0deg);
683 | }
684 | 100% {
685 | -webkit-transform: rotate3d(0, 0, 1, 360deg);
686 | transform: rotate3d(0, 0, 1, 360deg);
687 | }
688 | }
689 | @keyframes weuiLoading {
690 | 0% {
691 | -webkit-transform: rotate3d(0, 0, 1, 0deg);
692 | transform: rotate3d(0, 0, 1, 0deg);
693 | }
694 | 100% {
695 | -webkit-transform: rotate3d(0, 0, 1, 360deg);
696 | transform: rotate3d(0, 0, 1, 360deg);
697 | }
698 | }
699 | .weui-badge {
700 | display: inline-block;
701 | padding: .15em .4em;
702 | min-width: 8px;
703 | border-radius: 18px;
704 | background-color: #F43530;
705 | color: #FFFFFF;
706 | line-height: 1.2;
707 | text-align: center;
708 | font-size: 12px;
709 | vertical-align: middle;
710 | }
711 | .weui-badge_dot {
712 | padding: .4em;
713 | min-width: 0;
714 | }
715 | .weui-loadmore {
716 | width: 65%;
717 | margin: 1.5em auto;
718 | line-height: 1.6em;
719 | font-size: 14px;
720 | text-align: center;
721 | }
722 | .weui-loadmore__tips {
723 | display: inline-block;
724 | vertical-align: middle;
725 | }
726 | .weui-loadmore_line {
727 | border-top: 1px solid #E5E5E5;
728 | margin-top: 2.4em;
729 | }
730 | .weui-loadmore__tips_in-line {
731 | position: relative;
732 | top: -0.9em;
733 | padding: 0 .55em;
734 | background-color: #FFFFFF;
735 | color: #999999;
736 | }
737 | .weui-loadmore__tips_in-dot {
738 | position: relative;
739 | padding: 0 .16em;
740 | width: 4px;
741 | height: 1.6em;
742 | }
743 | .weui-loadmore__tips_in-dot:before {
744 | content: " ";
745 | position: absolute;
746 | top: 50%;
747 | left: 50%;
748 | margin-top: -1px;
749 | margin-left: -2px;
750 | width: 4px;
751 | height: 4px;
752 | border-radius: 50%;
753 | background-color: #E5E5E5;
754 | }
755 | .weui-panel {
756 | background-color: #FFFFFF;
757 | margin-top: 10px;
758 | position: relative;
759 | overflow: hidden;
760 | }
761 | .weui-panel:first-child {
762 | margin-top: 0;
763 | }
764 | .weui-panel:before {
765 | content: " ";
766 | position: absolute;
767 | left: 0;
768 | top: 0;
769 | right: 0;
770 | height: 1px;
771 | border-top: 1rpx solid #E5E5E5;
772 | color: #E5E5E5;
773 | }
774 | .weui-panel:after {
775 | content: " ";
776 | position: absolute;
777 | left: 0;
778 | bottom: 0;
779 | right: 0;
780 | height: 1px;
781 | border-bottom: 1rpx solid #E5E5E5;
782 | color: #E5E5E5;
783 | }
784 | .weui-panel__hd {
785 | padding: 14px 15px 10px;
786 | color: #999999;
787 | font-size: 13px;
788 | position: relative;
789 | }
790 | .weui-panel__hd:after {
791 | content: " ";
792 | position: absolute;
793 | left: 0;
794 | bottom: 0;
795 | right: 0;
796 | height: 1px;
797 | border-bottom: 1rpx solid #E5E5E5;
798 | color: #E5E5E5;
799 | left: 15px;
800 | }
801 | .weui-media-box {
802 | padding: 15px;
803 | position: relative;
804 | }
805 | .weui-media-box:before {
806 | content: " ";
807 | position: absolute;
808 | left: 0;
809 | top: 0;
810 | right: 0;
811 | height: 1px;
812 | border-top: 1rpx solid #E5E5E5;
813 | color: #E5E5E5;
814 | left: 15px;
815 | }
816 | .weui-media-box:first-child:before {
817 | display: none;
818 | }
819 | .weui-media-box__title {
820 | font-weight: 400;
821 | font-size: 17px;
822 | width: auto;
823 | overflow: hidden;
824 | text-overflow: ellipsis;
825 | white-space: nowrap;
826 | word-wrap: normal;
827 | word-wrap: break-word;
828 | word-break: break-all;
829 | }
830 | .weui-media-box__desc {
831 | color: #999999;
832 | font-size: 13px;
833 | line-height: 1.2;
834 | overflow: hidden;
835 | text-overflow: ellipsis;
836 | display: -webkit-box;
837 | -webkit-box-orient: vertical;
838 | -webkit-line-clamp: 2;
839 | }
840 | .weui-media-box__info {
841 | margin-top: 15px;
842 | padding-bottom: 5px;
843 | font-size: 13px;
844 | color: #CECECE;
845 | line-height: 1em;
846 | list-style: none;
847 | overflow: hidden;
848 | }
849 | .weui-media-box__info__meta {
850 | float: left;
851 | padding-right: 1em;
852 | }
853 | .weui-media-box__info__meta_extra {
854 | padding-left: 1em;
855 | border-left: 1px solid #CECECE;
856 | }
857 | .weui-media-box__title_in-text {
858 | margin-bottom: 8px;
859 | }
860 | .weui-media-box_appmsg {
861 | display: -webkit-box;
862 | display: -webkit-flex;
863 | display: flex;
864 | -webkit-box-align: center;
865 | -webkit-align-items: center;
866 | align-items: center;
867 | }
868 | .weui-media-box__thumb {
869 | width: 100%;
870 | height: 100%;
871 | vertical-align: top;
872 | }
873 | .weui-media-box__hd_in-appmsg {
874 | margin-right: .8em;
875 | width: 60px;
876 | height: 60px;
877 | line-height: 60px;
878 | text-align: center;
879 | }
880 | .weui-media-box__bd_in-appmsg {
881 | -webkit-box-flex: 1;
882 | -webkit-flex: 1;
883 | flex: 1;
884 | min-width: 0;
885 | }
886 | .weui-media-box_small-appmsg {
887 | padding: 0;
888 | }
889 | .weui-cells_in-small-appmsg {
890 | margin-top: 0;
891 | }
892 | .weui-cells_in-small-appmsg:before {
893 | display: none;
894 | }
895 | .weui-progress {
896 | display: -webkit-box;
897 | display: -webkit-flex;
898 | display: flex;
899 | -webkit-box-align: center;
900 | -webkit-align-items: center;
901 | align-items: center;
902 | }
903 | .weui-progress__bar {
904 | -webkit-box-flex: 1;
905 | -webkit-flex: 1;
906 | flex: 1;
907 | }
908 | .weui-progress__opr {
909 | margin-left: 15px;
910 | font-size: 0;
911 | }
912 | .weui-navbar {
913 | display: -webkit-box;
914 | display: -webkit-flex;
915 | display: flex;
916 | position: absolute;
917 | z-index: 500;
918 | top: 0;
919 | width: 100%;
920 | border-bottom: 1rpx solid #CCCCCC;
921 | }
922 | .weui-navbar__item {
923 | position: relative;
924 | display: block;
925 | -webkit-box-flex: 1;
926 | -webkit-flex: 1;
927 | flex: 1;
928 | padding: 13px 0;
929 | text-align: center;
930 | font-size: 0;
931 | }
932 | .weui-navbar__item.weui-bar__item_on {
933 | color: #1AAD19;
934 | }
935 | .weui-navbar__slider {
936 | position: absolute;
937 | content: " ";
938 | left: 0;
939 | bottom: 0;
940 | width: 6em;
941 | height: 3px;
942 | background-color: #1AAD19;
943 | -webkit-transition: -webkit-transform .3s;
944 | transition: -webkit-transform .3s;
945 | transition: transform .3s;
946 | transition: transform .3s, -webkit-transform .3s;
947 | }
948 | .weui-navbar__title {
949 | display: inline-block;
950 | font-size: 15px;
951 | max-width: 8em;
952 | width: auto;
953 | overflow: hidden;
954 | text-overflow: ellipsis;
955 | white-space: nowrap;
956 | word-wrap: normal;
957 | }
958 | .weui-tab {
959 | position: relative;
960 | height: 100%;
961 | }
962 | .weui-tab__panel {
963 | box-sizing: border-box;
964 | height: 100%;
965 | padding-top: 50px;
966 | overflow: auto;
967 | -webkit-overflow-scrolling: touch;
968 | }
969 | .weui-search-bar {
970 | position: relative;
971 | padding: 8px 10px;
972 | display: -webkit-box;
973 | display: -webkit-flex;
974 | display: flex;
975 | box-sizing: border-box;
976 | background-color: #EFEFF4;
977 | border-top: 1rpx solid #D7D6DC;
978 | border-bottom: 1rpx solid #D7D6DC;
979 | }
980 | .weui-icon-search {
981 | margin-right: 8px;
982 | font-size: inherit;
983 | }
984 | .weui-icon-search_in-box {
985 | position: absolute;
986 | left: 10px;
987 | top: 7px;
988 | }
989 | .weui-search-bar__text {
990 | display: inline-block;
991 | font-size: 14px;
992 | vertical-align: middle;
993 | }
994 | .weui-search-bar__form {
995 | position: relative;
996 | -webkit-box-flex: 1;
997 | -webkit-flex: auto;
998 | flex: auto;
999 | border-radius: 5px;
1000 | background: #FFFFFF;
1001 | border: 1rpx solid #E6E6EA;
1002 | }
1003 | .weui-search-bar__box {
1004 | position: relative;
1005 | padding-left: 30px;
1006 | padding-right: 30px;
1007 | width: 100%;
1008 | box-sizing: border-box;
1009 | z-index: 1;
1010 | }
1011 | .weui-search-bar__input {
1012 | height: 28px;
1013 | line-height: 28px;
1014 | font-size: 14px;
1015 | }
1016 | .weui-icon-clear {
1017 | position: absolute;
1018 | top: 0;
1019 | right: 0;
1020 | padding: 7px 8px;
1021 | font-size: 0;
1022 | }
1023 | .weui-search-bar__label {
1024 | position: absolute;
1025 | top: 0;
1026 | right: 0;
1027 | bottom: 0;
1028 | left: 0;
1029 | z-index: 2;
1030 | border-radius: 3px;
1031 | text-align: center;
1032 | color: #9B9B9B;
1033 | background: #FFFFFF;
1034 | line-height: 28px;
1035 | }
1036 | .weui-search-bar__cancel-btn {
1037 | margin-left: 10px;
1038 | line-height: 28px;
1039 | color: #09BB07;
1040 | white-space: nowrap;
1041 | }
1042 |
--------------------------------------------------------------------------------
/images/a32_02.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/a32_02.jpg
--------------------------------------------------------------------------------
/images/blog_03.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/blog_03.png
--------------------------------------------------------------------------------
/images/card_03.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/card_03.jpg
--------------------------------------------------------------------------------
/images/i_03.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/i_03.jpg
--------------------------------------------------------------------------------
/images/i_05.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/i_05.jpg
--------------------------------------------------------------------------------
/images/i_06.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/i_06.jpg
--------------------------------------------------------------------------------
/images/i_07.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/i_07.jpg
--------------------------------------------------------------------------------
/images/i_08.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/i_08.jpg
--------------------------------------------------------------------------------
/images/i_09.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/i_09.jpg
--------------------------------------------------------------------------------
/images/i_10.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/i_10.jpg
--------------------------------------------------------------------------------
/images/i_11.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/i_11.jpg
--------------------------------------------------------------------------------
/images/i_12.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/i_12.jpg
--------------------------------------------------------------------------------
/images/i_13.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/i_13.jpg
--------------------------------------------------------------------------------
/images/i_15.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/i_15.jpg
--------------------------------------------------------------------------------
/images/i_16.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/i_16.jpg
--------------------------------------------------------------------------------
/images/i_17.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/i_17.jpg
--------------------------------------------------------------------------------
/images/i_18.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/i_18.jpg
--------------------------------------------------------------------------------
/images/icon1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/icon1.png
--------------------------------------------------------------------------------
/images/icon1s.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/icon1s.png
--------------------------------------------------------------------------------
/images/icon2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/icon2.png
--------------------------------------------------------------------------------
/images/icon2s.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/icon2s.png
--------------------------------------------------------------------------------
/images/icon3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/icon3.png
--------------------------------------------------------------------------------
/images/icon3s.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/icon3s.png
--------------------------------------------------------------------------------
/images/icon4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/icon4.png
--------------------------------------------------------------------------------
/images/icon4s.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/icon4s.png
--------------------------------------------------------------------------------
/images/icon_03.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/icon_03.jpg
--------------------------------------------------------------------------------
/images/icon_04.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/icon_04.jpg
--------------------------------------------------------------------------------
/images/icon_06.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/icon_06.jpg
--------------------------------------------------------------------------------
/images/me_02.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/me_02.jpg
--------------------------------------------------------------------------------
/images/me_05.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/me_05.jpg
--------------------------------------------------------------------------------
/images/me_08.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/me_08.jpg
--------------------------------------------------------------------------------
/images/me_10.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/me_10.jpg
--------------------------------------------------------------------------------
/images/me_12.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/me_12.jpg
--------------------------------------------------------------------------------
/images/me_14.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/me_14.jpg
--------------------------------------------------------------------------------
/images/more.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/more.jpg
--------------------------------------------------------------------------------
/images/n_03.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/n_03.jpg
--------------------------------------------------------------------------------
/images/n_06.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/n_06.jpg
--------------------------------------------------------------------------------
/images/quan_01_03.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/quan_01_03.jpg
--------------------------------------------------------------------------------
/images/tels_03.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/tels_03.png
--------------------------------------------------------------------------------
/images/tels_05.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/leopardzhang/17tongcheng/0521ac8fa458abb52b4c50a52c6e446bfd3aacbd/images/tels_05.png
--------------------------------------------------------------------------------
/pages/board/board.js:
--------------------------------------------------------------------------------
1 | // pages/board/board.js
2 | const common = require('../../common/common');
3 | const banner = require('../../require/banner');
4 | const app = getApp();
5 |
6 | const bannerSrc = `${app.globalData.request}banner.php`; //banner
7 |
8 | Page({
9 | data:{
10 | swiper:{ //banner选项
11 | "autoplay": true,
12 | "indicatorDots": true
13 | },
14 | board: {},
15 | repeatList: [],
16 | inputValue: '', //文本框的内容
17 | cid: '',
18 | bottom: '',
19 | repeatFor: '',
20 | focusVal: false
21 | },
22 | onLoad:function(options){
23 | let openId = wx.getStorageSync('user').openid;
24 | let nickname = wx.getStorageSync('userInfo').nickName;
25 | var _this = this;
26 | //设置logo
27 | let logoUrl = wx.getStorageSync('logo');
28 | _this.setData({
29 | logoSrc: logoUrl,
30 | options: options
31 | });
32 | //设置分类
33 | _this.setData({
34 | cid: options.id
35 | });
36 | //设置banner
37 | banner.fetchBanner.call(_this, bannerSrc, 2);
38 | wx.request({
39 | url: `${app.globalData.request}newsshow.php`,
40 | data: {types:'show',id: options.id, openid: openId, nickname: nickname},
41 | method: 'GET',
42 | success: function(res){
43 | _this.setData({
44 | board: res.data.show,
45 | repeatList: res.data.list
46 | })
47 | },
48 | fail: function(res) {
49 | common.showModal();
50 | },
51 | complete: function(res) {
52 | }
53 | })
54 | },
55 | onReady:function(){
56 | // 页面渲染完成
57 | },
58 | onShow:function(){
59 | // 页面显示
60 | },
61 | onHide:function(){
62 | // 页面隐藏
63 | },
64 | onUnload:function(){
65 | // 页面关闭
66 | },
67 | viewSearch: common.viewSearch,
68 | getVal: function(e){
69 | this.setData({
70 | inputValue: e.detail.value
71 | })
72 | },
73 | send: function(){
74 | var _this = this;
75 | let openId = wx.getStorageSync('user').openid;
76 | let nickname = wx.getStorageSync('userInfo').nickName;
77 | if(_this.data.inputValue.length > 0){
78 | wx.request({
79 | url: `${app.globalData.request}pinglun.php`,
80 | data: {types: 'ping', body: _this.data.inputValue, aid: _this.data.cid, openid: openId, nickname: nickname},
81 | method: 'GET',
82 | header: {
83 | "Content-Type": "application/json,application/json"
84 | },
85 | success: function(res){
86 | wx.request({
87 | url: `${app.globalData.request}newsshow.php`,
88 | data: {types:'show',id: _this.data.options.id, openid: openId, nickname: nickname},
89 | method: 'GET',
90 | success: function(res){
91 | _this.setData({
92 | board: res.data.show,
93 | repeatList: res.data.list
94 | })
95 | },
96 | fail: function(res) {
97 | common.showModal('留言失败', '请检查网络状态');
98 | },
99 | complete: function(res) {
100 | // complete
101 | }
102 | })
103 | },
104 | fail: function(res) {
105 | common.showModal('留言失败', '请检查网络状态');
106 | },
107 | complete: function(res) {
108 | _this.setData({
109 | inputValue: '',
110 | bottom: 'bottom',
111 | repeatFor: '',
112 | focusVal: false
113 | })
114 | }
115 | })
116 | }else{
117 | common.showModal('回复失败!1', '内容不能为空');
118 | }
119 | },
120 | repeat: function (e){
121 | var _this = this;
122 | _this.setData({
123 | repeatFor: e.currentTarget.dataset.cid,
124 | focusVal: true
125 | })
126 | },
127 | repeatSend: function(e){
128 | var _this = this;
129 | let openId = wx.getStorageSync('user').openid;
130 | let nickname = wx.getStorageSync('userInfo').nickName;
131 | if(_this.data.inputValue.length > 0){
132 | wx.request({
133 | url: `${app.globalData.request}pinglun.php?types=huifu`,
134 | data: {pid_hf: _this.data.repeatFor, body: _this.data.inputValue, aid: _this.data.cid, openid: openId, nickname: nickname},
135 | method: 'GET',
136 | success: function(res){
137 | wx.request({
138 | url: `${app.globalData.request}newsshow.php`,
139 | data: {types:'show',id: _this.data.options.id, openid: openId, nickname: nickname},
140 | method: 'GET',
141 | success: function(res){
142 | _this.setData({
143 | board: res.data.show,
144 | repeatList: res.data.list
145 | });
146 | wx.showToast({
147 | title: '回复成功',
148 | icon: 'success',
149 | duration: 1000
150 | })
151 | },
152 | fail: function(res) {
153 | common.showModal('留言失败', '请检查网络状态');
154 | },
155 | complete: function(res) {
156 | // complete
157 | }
158 | });
159 | },
160 | fail: function(res) {
161 | common.showModal('留言失败', '请检查网络状态');
162 | },
163 | complete: function(res) {
164 | _this.setData({
165 | inputValue: '',
166 | bottom: 'bottom',
167 | repeatFor: '',
168 | focusVal: false
169 | })
170 | }
171 | })
172 | } else{
173 | common.showModal('回复失败!2', '内容不能为空');
174 | }
175 | }
176 | })
--------------------------------------------------------------------------------
/pages/board/board.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/pages/board/board.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | {{board.title}}
15 |
16 | 浏览:{{board.hits}}
17 |
18 |
19 | {{board.con}}
20 |
21 | 楼主:{{board.louzhu}}
22 |
23 |
24 |
25 |
26 | {{repeat.pl_name}}
27 | {{repeat.body}}
28 |
29 |
30 |
31 | {{item.hf_name}}
32 | 回复:
33 | {{item.body}}
34 |
35 |
36 |
37 | 回复>>
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 | 发送
49 | 发送
50 |
51 |
--------------------------------------------------------------------------------
/pages/board/board.wxss:
--------------------------------------------------------------------------------
1 | /* pages/board/board.wxss */
2 | @import "/css/search.wxss";
3 | @import "boardlist.wxss";
4 | .ptb_10{
5 | padding-top: 10px;
6 | padding-bottom: 10px;
7 | }
8 | page{
9 | padding-bottom: 50px;
10 | }
11 | .repeat_btn{
12 | width: calc(100% - 20rpx);
13 | border-top: 1px solid #ccc;
14 | left: 0;
15 | bottom: 0;
16 | background: #fff;
17 | position: fixed;
18 | }
19 | .repeat{
20 | display: flex;
21 | justify-content: space-around;
22 | padding: 10px 0;
23 | line-height: 22px;
24 | }
25 | .repeat input{
26 | width: 560rpx;
27 | height: 26px;
28 | border: 1px solid #ccc;
29 | border-radius: 6rpx;
30 | padding: 0 20rpx;
31 | font-size: 12px;
32 | }
33 | .send_btn{
34 | width: 100rpx;
35 | height: 26px;
36 | line-height: 26px;
37 | text-align: center;
38 | font-size: 24rpx;
39 | border: 1px solid #ccc;
40 | border-radius: 6rpx;
41 | background: #f6f6f6;
42 | }
43 | .fb_date{
44 | background: url(https://18508788.17tongcheng.cn/api/images/icon_03.jpg) no-repeat left center;
45 | padding: 0 48rpx;
46 | background-size: auto 80%;
47 | }
48 | .read_time{
49 | background: url(https://18508788.17tongcheng.cn/api/images/icon_06.jpg) no-repeat left center;
50 | padding-left: 48rpx;
51 | background-size: auto 80%;
52 | }
53 | .f12px{
54 | font-size: 12px;
55 | }
56 | .l2{
57 | line-height: 2;
58 | }
--------------------------------------------------------------------------------
/pages/board/boardlist.js:
--------------------------------------------------------------------------------
1 | // pages/board/boardlist.js
2 | const common = require('../../common/common');
3 | const banner = require('../../require/banner');
4 | const app = getApp();
5 |
6 | const bannerSrc = `${app.globalData.request}banner.php`; //banner
7 | Page({
8 | data:{
9 | swiper:{ //banner选项
10 | "autoplay": true,
11 | "indicatorDots": true
12 | },
13 | boardList: [],
14 | page: 1, //页码
15 | still: true, //是否还有更多信息
16 | loading: false, //是否正在加载
17 | have: false //是否有数据
18 | },
19 | onLoad: function (options) {
20 | let openid = wx.getStorageSync('user').openid;
21 | let nickname = wx.getStorageSync('userInfo').nickName;
22 | wx.request({
23 | url: `${app.globalData.request}news.php`,
24 | data: { openid, nickname },
25 | method: 'GET',
26 | })
27 | var _this = this;
28 | //设置logo
29 | let logoUrl = wx.getStorageSync('logo');
30 | _this.setData({
31 | logoSrc: logoUrl
32 | });
33 | //设置分类
34 | _this.setData({
35 | cid: options.id
36 | });
37 | //设置banner
38 | banner.fetchBanner.call(_this, bannerSrc, 2);
39 | },
40 | onReady:function(){
41 | // 页面渲染完成
42 | },
43 | onShow:function(){
44 | var _this = this;
45 | wx.request({
46 | url: `${app.globalData.request}news.php`,
47 | data: {types: 'list', page: _this.data.page},
48 | method: 'GET',
49 | success: function(res){
50 | _this.setData({
51 | boardList: res.data,
52 | have: true
53 | });
54 | },
55 | fail: function(res) {
56 | // fail
57 | },
58 | complete: function(res) {
59 | // complete
60 | }
61 | })
62 | },
63 | onHide:function(){
64 | this.setData({
65 | page: 1
66 | })
67 | // 页面隐藏
68 | },
69 | onUnload:function(){
70 | // 页面关闭
71 | },
72 | onReachBottom:function(e){
73 | var _this = this;
74 | _this.setData({
75 | page: _this.data.page+1
76 | });
77 | if(_this.data.still){
78 | _this.setData({
79 | loading: true
80 | });
81 | wx.request({
82 | url: `${app.globalData.request}news.php`,
83 | data: {types: 'list', page: _this.data.page},
84 | method: 'GET',
85 | success: function(res){
86 | if(res.data.pagezt != 0){
87 | let tream = _this.data.boardList.concat(res.data);
88 | _this.setData({
89 | boardList: tream,
90 | loading: false
91 | })
92 | } else{
93 | _this.setData({
94 | still: false,
95 | loading: false
96 | })
97 | }
98 | }
99 | })
100 | }
101 | },
102 | viewSearch: common.viewSearch,
103 | navToPost: function(){
104 | wx.navigateTo({
105 | url: 'post'
106 | })
107 | }
108 | })
--------------------------------------------------------------------------------
/pages/board/boardlist.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/pages/board/boardlist.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | {{item.title}}
20 | {{item.jianjie}}
21 |
22 | {{item.time}}
23 | {{item.fabu}}
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/pages/board/boardlist.wxss:
--------------------------------------------------------------------------------
1 | /* pages/board/boardlist.wxss */
2 | @import "/css/search.wxss";
3 | page{
4 | padding-bottom: 48px;
5 | }
6 | .border_list .li{
7 | border-top: 1px solid #ccc;
8 | padding-top: 10px;
9 | padding-bottom: 10px;
10 | line-height: 2;
11 | }
12 | .border_list .item{
13 | padding: 0 40rpx;
14 | }
15 | .nowrap{
16 | overflow:hidden;
17 | white-space:nowrap;
18 | text-overflow:ellipsis;
19 | width: 640rpx;
20 | }
21 | .border_list .date{
22 | background: url(https://18508788.17tongcheng.cn/api/images/icon_03.jpg) no-repeat left center;
23 | background-size: auto 60% ;
24 | }
25 | .border_list .lz{
26 | background: url(https://18508788.17tongcheng.cn/api/images/icon_04.jpg) no-repeat left center;
27 | background-size: auto 60% ;
28 | }
29 | .fb_box{
30 | padding: 10px 5px;
31 | background: #fff;
32 | position: fixed;
33 | width: 100%;
34 | left: 0;
35 | bottom: 0;
36 | }
37 | .fb_box button{
38 | height: 40px;
39 | line-height: 40px;
40 | font-size: 14px;
41 | background: #1d82d2;
42 | padding: 0;
43 | width: calc(750rpx - 10px);
44 | margin: 0;
45 | }
46 | .fb_box button:hover{
47 | background: #1d82d2;
48 | }
49 | .w64 image{
50 | width:64rpx!important;
51 | height:25rpx!important;
52 | max-width: 100%;
53 | }
54 | .w64{
55 | width: 64rpx;
56 | }
57 | .border_list .f26{
58 | width: 720rpx;
59 | overflow: hidden;
60 | text-overflow:ellipsis;
61 | white-space: nowrap;
62 | }
--------------------------------------------------------------------------------
/pages/board/post.js:
--------------------------------------------------------------------------------
1 | // pages/board/post.js
2 | const common = require('../../common/common');
3 | const app = getApp();
4 |
5 | Page({
6 | data:{
7 | titleValue: '',
8 | textValue: '',
9 | openid: '',
10 | nickname: ''
11 | },
12 | onLoad:function(options){
13 | let openId = wx.getStorageSync('user').openid;
14 | let nickname = wx.getStorageSync('userInfo').nickName;
15 | this.setData({
16 | openid: openId,
17 | nickname: nickname
18 | })
19 | },
20 | setTitle: function(e){
21 | this.setData({
22 | titleValue: e.detail.value
23 | })
24 | },
25 | setText: function(e){
26 | this.setData({
27 | textValue: e.detail.value
28 | })
29 | },
30 | send: function(){
31 | var _this = this;
32 | if(_this.data.titleValue.length >= 5 && _this.data.textValue.length >= 10){
33 | wx.request({
34 | url: `${app.globalData.request}pinglun.php?types=pingsever`,
35 | data: {title: this.data.titleValue, content: this.data.textValue, openid: _this.data.openid, nickname: _this.data.nickname},
36 | method: 'GET',
37 | header: {"Content-Type": "application/json,application/json"},
38 | success: function(res){
39 | wx.showToast({
40 | title: '发布成功,等待管理员审核',
41 | icon: 'success',
42 | duration: 3000
43 | })
44 | },
45 | fail: function(res) {
46 | common.showModal();
47 | },
48 | complete: function(res) {
49 | _this.setData({
50 | titleValue: '',
51 | textValue: ''
52 | });
53 | setTimeout(()=>{
54 | wx.switchTab({
55 | url: '/pages/board/boardlist'
56 | });
57 | }, 3000);
58 | }
59 | })
60 | } else{
61 | common.showModal('发布失败!', '标题不能少于5个字,内容不能少于20个字');
62 | }
63 | }
64 | });
--------------------------------------------------------------------------------
/pages/board/post.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/pages/board/post.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/pages/board/post.wxss:
--------------------------------------------------------------------------------
1 | /* pages/board/post.wxss */
2 | .tr{
3 | border-bottom: 1px solid #ccc;
4 | padding: 10px;
5 | }
6 | input{
7 | font-size: 14px;
8 | }
9 | textarea{
10 | font-size: 12px;
11 | }
--------------------------------------------------------------------------------
/pages/classes/class.js:
--------------------------------------------------------------------------------
1 | // pages/classes/class.js
2 | const common = require('../../common/common');
3 | const banner = require('../../require/banner');
4 | const getDate = require('../../common/util');
5 | const app = getApp();
6 | const bannerSrc = `${app.globalData.request}banner.php`; //banner
7 | Page({
8 | data:{
9 | logoSrc: '',
10 | bannerUrlList: [],//banner列表
11 | swiper:{ //banner选项
12 | "autoplay": true,
13 | "indicatorDots": true
14 | },
15 | information: {},
16 | timer: '',
17 | imgList: ''
18 | },
19 | onLoad:function(options){
20 | var _this = this;
21 | wx.showShareMenu({
22 | withShareTicket: true
23 | })
24 | //设置logo
25 | let logoUrl = wx.getStorageSync('logo');
26 | _this.setData({
27 | logoSrc: logoUrl
28 | });
29 | //设置分类
30 | _this.setData({
31 | cid: options.id
32 | });
33 | //设置banner
34 | banner.fetchBanner.call(_this, bannerSrc, 2);
35 | wx.request({
36 | url: `${app.globalData.request}pro.php`,
37 | data: {types: 'show', id: options.id},
38 | method: 'GET',
39 | success: function(res){
40 | console.log(res.data);
41 | var timer = getDate.formatTime(res.data.timer*1000);
42 | console.log(res.data)
43 | _this.setData({
44 | information: res.data,
45 | timer: timer
46 | });
47 | console.log(res.data);
48 | },
49 | fail: function(res) {
50 | common.showModal('获取信息失败');
51 | }
52 | })
53 | },
54 | onReady:function(){
55 | // 页面渲染完成
56 | },
57 | onShow:function(){
58 | // 页面显示
59 | },
60 | onHide:function(){
61 | // 页面隐藏
62 | },
63 | onUnload:function(){
64 | // 页面关闭
65 | },
66 | previewImage: function (e) {
67 | var imgList = [];
68 | for(var i in this.data.information.piclist){
69 | imgList.push(this.data.information.piclist[i].picurl);
70 | }
71 | console.log(imgList)
72 | this.setData({
73 | imgList
74 | })
75 | var current = e.target.dataset.src
76 | wx.previewImage({
77 | current: current,
78 | urls: imgList
79 | })
80 | },
81 | makePhoneCall: function(e){
82 | let num = e.target.dataset.tel;
83 | wx.makePhoneCall({
84 | phoneNumber: num,
85 | success: function(res) {
86 | // success
87 | }
88 | })
89 | },
90 | viewSearch: common.viewSearch
91 | })
--------------------------------------------------------------------------------
/pages/classes/class.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/pages/classes/class.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | {{information.title}}
11 |
12 | {{timer}}浏览:{{information.hits}}
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | {{information.jops == 1 ? '具体要求' : '详细信息'}}:
21 |
22 |
23 | {{information.content}}
24 |
25 |
26 | \n
27 | (联系我时请说明是在17同城上看到的)
28 |
29 |
30 |
31 |
32 | 项目:
33 |
34 |
35 | {{information.mold}}
36 |
37 |
38 |
39 |
40 | 联系方式:
41 |
42 |
43 | {{information.tels}}
44 |
45 |
46 |
47 |
48 | 公司名称:
49 |
50 |
51 | {{information.gongsi}}
52 |
53 |
54 |
55 |
56 | 职位名称:
57 |
58 |
59 | {{information.zhiweiname}}
60 |
61 |
62 |
63 |
64 | 月薪:
65 |
66 |
67 | {{information.yuexin}}
68 |
69 |
70 |
71 |
72 | 区域:
73 |
74 |
75 | {{information.quyus}}
76 |
77 |
78 |
79 |
80 | 地址:
81 |
82 |
83 | {{information.dizhi}}[点击查看地图位置]
84 |
85 |
86 |
87 |
88 | 户型:
89 |
90 |
91 | {{information.huxing}}
92 |
93 |
94 |
95 |
96 | 价格:
97 |
98 |
99 | {{information.jiage}}
100 |
101 |
102 |
103 |
104 | 招聘人数:
105 |
106 |
107 | {{information.job_num}}
108 |
109 |
110 |
111 |
112 | 楼层:
113 |
114 |
115 | {{information.louceng}}
116 |
117 |
118 |
119 |
120 | 面积:
121 |
122 |
123 | {{information.mianji}}
124 |
125 |
126 |
127 |
128 | 性别:
129 |
130 |
131 | {{information.sex}}
132 |
133 |
134 |
135 |
136 | 照片展示:
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 | 联系电话:{{information.yjtel}}
146 |
147 |
148 |
--------------------------------------------------------------------------------
/pages/classes/class.wxss:
--------------------------------------------------------------------------------
1 | /* pages/classes/class.wxss */
2 | @import "/css/search.wxss";
3 | @import "../release/releaselist.wxss";
4 | .fb_date{
5 | background: url(https://18508788.17tongcheng.cn/api/images/icon_03.jpg) no-repeat left center;
6 | padding: 0 48rpx;
7 | background-size: auto 80%;
8 | }
9 | .read_time{
10 | background: url(https://18508788.17tongcheng.cn/api/images/icon_06.jpg) no-repeat left center;
11 | padding-left: 48rpx;
12 | background-size: auto 80%;
13 | }
14 | .f12px{
15 | font-size: 12px;
16 | }
17 | .l2{
18 | line-height: 2;
19 | }
20 | .inf_name{
21 | width: 220rpx;
22 | }
23 | .inf_text{
24 | width: 450rpx;
25 | }
26 | .inf_box{
27 | padding-left: 40rpx;
28 | padding-right: 40rpx;
29 | padding-bottom: 20rpx;
30 | }
31 | .inf_box::after{
32 | content: '';
33 | display: block;
34 | clear: both;
35 | width: 670rpx;
36 | height: 1px;
37 | background: #eee;
38 | transform: translateY(20rpx);
39 | }
40 | .tel_box{
41 | position: fixed;
42 | width: 100%;
43 | line-height: 38px;
44 | padding: 10px 30rpx;
45 | left: 0;
46 | bottom: 0;
47 | background: #1d82d2;
48 | box-sizing: border-box;
49 | font-size: 14px;
50 | color: #fff;
51 | }
52 | .tel_box button{
53 | font-size: 15px;
54 | line-height: 38px;
55 | margin: 0;
56 | padding: 0 14px;
57 | color: #1d82d2;
58 | }
59 | .main{
60 | padding-bottom: 48px;
61 | }
62 | .map_link{
63 | color: #1d82d2;
64 | }
--------------------------------------------------------------------------------
/pages/classes/classlist.js:
--------------------------------------------------------------------------------
1 | // pages/classes/class.js
2 | const common = require('../../common/common');
3 | const banner = require('../../require/banner');
4 | const news = require('../../require/news');
5 | const app = getApp();
6 |
7 | const bannerSrc = `${app.globalData.request}banner.php`; //banner
8 | const newsSrc = `${app.globalData.request}pro.php`; //新闻列表
9 | Page({
10 | data:{
11 | areaHidden: true, //地区是否隐藏
12 | itemsHidden: true,//项目是否隐藏
13 | bannerUrlList: [],//banner列表
14 | page: 1, //页码
15 | cid: 0, //分类id
16 | quyu: 1, //区域的id
17 | xmin: 0, //筛选项目
18 | swiper:{ //banner选项
19 | "autoplay": true,
20 | "indicatorDots": true
21 | },
22 | newsList: [], //新闻列表
23 | areaList:[], //区域列表
24 | itemList:[], //项目列表
25 | still: true, //是否还有更多信息
26 | loading: false, //是否正在加载
27 | have: false //是否有数据
28 | },
29 | onLoad:function(options){
30 | wx.setNavigationBarTitle({
31 | title: options.pageName
32 | });
33 | var _this = this;
34 | //设置logo
35 | let logoUrl = wx.getStorageSync('logo');
36 | _this.setData({
37 | logoSrc: logoUrl
38 | });
39 | //设置分类
40 | _this.setData({
41 | cid: options.id
42 | });
43 | //设置banner
44 | banner.fetchBanner.call(_this, bannerSrc, options.id);
45 | //获取&设置新闻列表
46 | news.fetchNews.call(_this, newsSrc, 'list', _this.data.page, _this.data.cid, _this.data.quyu, _this.data.xmid, options.key);
47 | },
48 | onReachBottom:function(e){
49 | var _this = this;
50 | _this.setData({
51 | page: _this.data.page+1
52 | });
53 | if(_this.data.still){
54 | _this.setData({
55 | loading: true
56 | });
57 | wx.request({
58 | url: newsSrc,
59 | data: {types: 'list', page: _this.data.page, cid:_this.data.cid, quyu:_this.data.quyu, xmid:_this.data.xmid},
60 | method: 'GET',
61 | success: function(res){
62 | if(res.data.pagezt != 0){
63 | let tream = _this.data.newsList.concat(res.data);
64 | _this.setData({
65 | newsList: tream,
66 | loading: false
67 | })
68 | } else{
69 | _this.setData({
70 | still: false,
71 | loading: false
72 | })
73 | }
74 | }
75 | })
76 | }
77 | },
78 | viewSearch: common.viewSearch,
79 | switchArea: function(e){
80 | var _this = this;
81 | wx.request({//获取地区
82 | url: `${app.globalData.request}quyu.php`,
83 | data: {},
84 | method: 'GET',
85 | success: function(res){
86 | _this.setData({
87 | areaList: res.data
88 | })
89 | }
90 | });
91 | this.setData({
92 | areaHidden: !this.data.areaHidden,
93 | itemsHidden: true
94 | });
95 | },
96 | switchItems: function(e){
97 | var _this = this;
98 | wx.request({//获取项目
99 | url: `${app.globalData.request}xiangmu.php`,
100 | data: {cid: _this.data.cid},
101 | method: 'GET',
102 | success: function(res){
103 | _this.setData({
104 | itemList: res.data
105 | })
106 | }
107 | });
108 | this.setData({
109 | itemsHidden: !this.data.itemsHidden,
110 | areaHidden: true
111 | });
112 | },
113 | setArea: function(e){
114 | var _this = this;
115 | //根据区域刷新新闻列表
116 | news.fetchNews.call(_this, newsSrc, 'list', 1, _this.data.cid, e.target.dataset.id, _this.data.xmid);
117 | _this.setData({
118 | areaHidden: true,
119 | itemsHidden: true,
120 | still: true,
121 | quyu: e.target.dataset.id,
122 | page: 1
123 | })
124 | },
125 | setItem: function(e){
126 | var _this = this;
127 | //根据项目刷新新闻列表
128 | news.fetchNews.call(_this, newsSrc, 'list', 1, _this.data.cid, _this.data.quyu, e.target.dataset.id);
129 | _this.setData({
130 | areaHidden: true,
131 | itemsHidden: true,
132 | still: true,
133 | item: e.target.dataset.id,
134 | page: 1
135 | })
136 | },
137 | switchShow: function(e){
138 | this.setData({
139 | areaHidden: true,
140 | itemsHidden: true
141 | });
142 | }
143 | })
--------------------------------------------------------------------------------
/pages/classes/classlist.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/pages/classes/classlist.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | 点击选择区域 | 点击查看项目
14 |
15 |
16 |
17 | {{item.title}}>
18 |
19 |
20 |
21 |
22 |
23 |
24 | {{item.title}}>
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/pages/classes/classlist.wxss:
--------------------------------------------------------------------------------
1 | /* pages/forum/forum.wxss */
2 | @import "/css/search.wxss";
3 | .chose_box{
4 | display:flex;
5 | flex-wrap:wrap;
6 | flex-direction:row;
7 | justify-content:space-around;
8 | border-top: 1px solid #ccc;
9 | border-bottom: 1px solid #ccc;
10 | }
11 | .chose_box view{
12 | line-height: 70rpx;
13 | width: 6px;
14 | font-size: 32rpx;
15 | }
16 | .chose_box .btn{
17 | width: calc(50% - 3px);
18 | }
19 | .news_list{
20 | min-height: calc(100vh - 480rpx - 50px);
21 | }
22 | .news_list .li{
23 | border-bottom: 1px solid #ccc;
24 | padding: 20rpx 10rpx 20rpx 18rpx;
25 | }
26 | .news_list .li navigator{
27 | display: flex;
28 | flex-wrap:wrap;
29 | flex-direction:row;
30 | }
31 | .news_list .li image{
32 | width: 180rpx;
33 | height: 118rpx;
34 | }
35 | .text_area{
36 | padding-left: 20rpx;
37 | line-height: 1.6;
38 | }
39 | .text_area text{
40 | display: block;
41 | }
42 | .level{
43 | color: #ff0000;
44 | }
45 | .num{
46 | font-size: 20rpx;
47 | padding-top: 4rpx;
48 | padding-right: 10rpx;
49 | }
50 | .w64{
51 | width: 64rpx;
52 | }
53 | .top{
54 | width: 64rpx!important;
55 | height: 25rpx!important;
56 | }
57 | .area{
58 | width: 100%!important;
59 | background: #fff;
60 | left: 0;
61 | top: 72rpx;
62 | z-index: 20;
63 | }
64 | .area .li{
65 | width: 100%;
66 | box-sizing: border-box;
67 | line-height: 70rpx;
68 | color: #000;
69 | padding: 0 34rpx;
70 | border-bottom: 1px solid #ccc;
71 | font-size: 24rpx;
72 | }
73 | .mask{
74 | background: rgba(0, 0, 0, .4);
75 | position: absolute;
76 | left: 0;
77 | top: 102rpx;
78 | width: 100%!important;
79 | height: 1000vh;
80 | z-index: 10;
81 | }
--------------------------------------------------------------------------------
/pages/contact/contact.js:
--------------------------------------------------------------------------------
1 | // pages/contact/contact.js
2 | const common = require('../../common/common');
3 | const app = getApp();
4 | Page({
5 | data:{
6 | message: '',
7 | tel: ''
8 | },
9 | onLoad:function(options){
10 | var _this = this;
11 | wx.request({
12 | url: `${app.globalData.request}about.php`,
13 | data: {},
14 | method: 'GET',
15 | success: function(res){
16 | _this.setData({
17 | message: res.data.content,
18 | tel: res.data.yjtel
19 | })
20 | },
21 | fail: function(res) {
22 | // fail
23 | },
24 | complete: function(res) {
25 | // complete
26 | }
27 | })
28 | },
29 | onReady:function(){
30 | // 页面渲染完成
31 | },
32 | onShow:function(){
33 | // 页面显示
34 | },
35 | onHide:function(){
36 | // 页面隐藏
37 | },
38 | onUnload:function(){
39 | // 页面关闭
40 | },
41 | makePhoneCall: function(){
42 | var _this = this;
43 | wx.makePhoneCall({
44 | phoneNumber: `${_this.data.tel}`
45 | })
46 | }
47 | })
--------------------------------------------------------------------------------
/pages/contact/contact.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/pages/contact/contact.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | —— 联系我们 ——
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 | 在线客服
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 | 一键电话
25 |
26 |
27 |
28 |
29 | {{message}}
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/pages/contact/contact.wxss:
--------------------------------------------------------------------------------
1 | /* pages/contact/contact.wxss */
2 | .fullpage{
3 | background: linear-gradient(#1d82d2, #3298ea);
4 | min-height: 100vh;
5 | }
6 | .body{
7 | padding-top: 80rpx;
8 | }
9 | .blog{
10 | width: 354rpx;
11 | height: 261rpx;
12 | display: block;
13 | margin: 0 auto;
14 | }
15 | .btn_box{
16 | justify-content: space-around;
17 | display: flex;
18 | padding-top: 72rpx;
19 | }
20 | .btn_img{
21 | width: 41rpx;
22 | height: 39rpx;
23 | display: block;
24 | margin: auto;
25 | }
26 | .btn{
27 | width: 138rpx;
28 | font-size: 16px;
29 | line-height: 2.4;
30 | }
31 | .contact_text{
32 | width: 500rpx;
33 | margin: 0 auto;
34 | line-height: 2.4;
35 | font-size: 14px;
36 | }
37 | .kefu{
38 | background: url("https://18508788.17tongcheng.cn/api/images/tels_03.png") no-repeat center center;
39 | background-color: transparent;
40 | display: block;
41 | border-radius: 50%;
42 | width: 138rpx;
43 | height: 138rpx;
44 | color: #ec0000;
45 | }
46 | .btn_outer{
47 | width: 138rpx;
48 | height: 138rpx;
49 | background: rgba(255, 255, 255, .3);
50 | border-radius: 50%;
51 | display: flex;
52 | }
53 | .btn_inner{
54 | width: 110rpx;
55 | height: 110rpx;
56 | background: rgba(255, 255, 255, .3);
57 | border-radius: 50%;
58 | margin: auto;
59 | display: flex;
60 | }
61 | .btn_inner contact-button{
62 | margin: auto;
63 | display: block;
64 | }
--------------------------------------------------------------------------------
/pages/forum/forum.js:
--------------------------------------------------------------------------------
1 | // pages/forum/forum.js
2 | const common = require('../../common/common');
3 | const banner = require('../../require/banner');
4 | const logo = require('../../require/logo');
5 | const app = getApp();
6 | Page({
7 | data:{
8 | swiper:{
9 | "autoplay": true,
10 | "indicatorDots": true
11 | }
12 | },
13 | onLoad:function(options){
14 | var _this = this;
15 | const logoSrc = `${app.globalData.request}logo.php`;
16 | const bannerSrc = `${app.globalData.request}banner.php`; //banner
17 | banner.fetchBanner.call(_this, bannerSrc, 2);
18 | logo.fetchLogo.call(_this, logoSrc);
19 | },
20 | onReady:function(){
21 | // 页面渲染完成
22 | },
23 | onShow:function(){
24 | // 页面显示
25 | },
26 | onHide:function(){
27 | // 页面隐藏
28 | },
29 | onUnload:function(){
30 | // 页面关闭
31 | }
32 | })
--------------------------------------------------------------------------------
/pages/forum/forum.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/pages/forum/forum.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | 标题:挖掘机技术那加强
14 | 中国山东找蓝翔中国山东找蓝翔中国山东找蓝翔中国山东找蓝翔中国山东找蓝翔中国山东找蓝翔中国山东找蓝翔中国山东找蓝翔中国山东找蓝翔中国山东找蓝翔中国山东找蓝翔中国山东找蓝翔
15 | 楼主:杀死象的小猎豹
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/pages/forum/forum.wxss:
--------------------------------------------------------------------------------
1 | /* pages/forum/forum.wxss */
2 | @import "/css/search.wxss";
3 | .board{
4 | border-top: 1px solid #ccc;
5 | border-bottom: 1px solid #ccc;
6 | padding-top: 20rpx;
7 | padding-bottom: 20rpx;
8 | }
9 | .f28{
10 | font-size: 28rpx;
11 | }
12 | .f24{
13 | font-size: 24rpx;
14 | }
15 | .c000{
16 | color: #000;
17 | }
18 | .c585858{
19 | color: #585858;
20 | }
21 | .l2{
22 | line-height: 2;
23 | }
24 | .c3987f0{
25 | color: #3987f0;
26 | }
--------------------------------------------------------------------------------
/pages/index/index.js:
--------------------------------------------------------------------------------
1 | //获取应用实例
2 | const common = require('../../common/common');
3 | const banner = require('../../require/banner');
4 | const nav = require('../../require/nav');
5 | const app = getApp();
6 |
7 | const bannerSrc = `${app.globalData.request}banner.php`; //banner
8 | const navSrc = `${app.globalData.request}index.php`; //nav
9 | // pages/index/index.js
10 | Page({
11 | data:{
12 | logoSrc: '',
13 | avatarUrl: '',//头像
14 | nickName: '',//微信昵称
15 | openid: '',//openid
16 | timer: '',//expires_in
17 | swiper:{
18 | "autoplay": true,
19 | "indicatorDots": true
20 | },
21 | bannerUrlList: [],
22 | navList: [],
23 | classList: []
24 | },
25 | onLoad:function(options){
26 | var _this = this;
27 | wx.showShareMenu({
28 | withShareTicket: true
29 | })
30 | let logoUrl = wx.getStorageSync('logo');
31 | _this.setData({
32 | logoSrc: logoUrl
33 | });
34 | banner.fetchBanner.call(_this, bannerSrc, 1);
35 | nav.fetchNav.call(_this, navSrc);
36 | wx.request({
37 | url: `${app.globalData.request}index.php`,
38 | data: {types: 'type'},
39 | method: 'GET',
40 | success: function(res){
41 | //console.log(res.data);
42 | _this.setData({
43 | classList: res.data
44 | });
45 | },
46 | fail: function(res) {
47 | // fail
48 | },
49 | complete: function(res) {
50 | // complete
51 | }
52 | })
53 | },
54 | onReady:function(){
55 | // 页面渲染完成
56 | },
57 | onShow:function(){
58 | // 页面显示
59 | },
60 | onHide:function(){
61 | // 页面隐藏
62 | },
63 | onUnload:function(){
64 | // 页面关闭
65 | },
66 | onPullDownRefresh: function(){
67 |
68 | },
69 | viewSearch: common.viewSearch
70 | })
--------------------------------------------------------------------------------
/pages/index/index.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/pages/index/index.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | {{navItem.title}}
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 | {{className.title}}
29 |
30 |
31 |
32 |
33 | {{item.title}}
34 |
35 |
36 |
37 |
38 |
39 |
40 |
54 |
55 |
56 |
57 |
--------------------------------------------------------------------------------
/pages/index/index.wxss:
--------------------------------------------------------------------------------
1 | /* pages/index/index.wxss */
2 | @import "/css/search.wxss";
3 | .pt_10{
4 | padding-top: 10rpx;
5 | }
6 | .border_box{
7 | border-bottom: 20rpx solid #e6e6e6;
8 | }
9 | .nav_box{
10 | display: flex;
11 | flex-wrap:wrap;
12 | flex-direction:row;
13 | justify-content: space-around;
14 | }
15 | .nav_item{
16 | width: 25%;
17 | display: flex;
18 | justify-content: center;
19 | text-align: center;
20 | margin: 5px 0;
21 | }
22 | .nav_item text{
23 | display: block;
24 | font-size: 14px;
25 | color: #666;
26 | margin-top:-18rpx;
27 | }
28 | .nav_item image{
29 | width: 102rpx;
30 | height: 102rpx;
31 | border-radius: 12rpx;
32 | }
33 | .title_box{
34 | width: 162rpx;
35 | border-right: 1px solid #ddd;
36 | display: flex;
37 | flex-direction: column;
38 | justify-content: center;
39 | align-items: center;
40 | }
41 | .class_img{
42 | width: 62rpx;
43 | height: 47rpx;
44 | margin-bottom: 10rpx;
45 | }
46 | .title_box text{
47 | color: #333;
48 | font-size: 28rpx;
49 | }
50 | .class_item_box{
51 | align-items:center;
52 | justify-content: space-around;
53 | flex-wrap: wrap;
54 | flex-direction: row;
55 | width: 562rpx;
56 | }
57 | .class_item_box{
58 | display: flex;
59 | justify-content: flex-start;
60 | min-height:72px;
61 | }
62 | .class_item_box view{
63 | width: 33.333%;
64 | text-align: center;
65 | font-size: 30rpx;
66 | color: #666;
67 | padding: 16rpx 0;
68 | }
69 | .more navigator{
70 | padding-top: 20rpx;
71 | padding-bottom: 20rpx;
72 | color: #ec0000;
73 | font-size: 28rpx;
74 | display: flex;
75 | flex-wrap: nowrap;
76 | align-items: center;
77 | justify-content: center;
78 | line-height: 33rpx;
79 | }
80 | .more image{
81 | width: 33rpx;
82 | height: 33rpx;
83 | margin-right: 5px;
84 | display: block;
85 | }
86 | .more text{
87 | display: block;
88 | width: 4.4em;
89 | }
90 | .padding-bottom{
91 | padding-bottom: 30rpx;
92 | }
--------------------------------------------------------------------------------
/pages/map/map.js:
--------------------------------------------------------------------------------
1 | const app = getApp();
2 | const QQMapWX = require('../../require/qqmap-wx-jssdk.min.js');
3 | var qqmapsdk;
4 | Page({
5 | data:{
6 | markers:[],
7 | position:{}
8 | },
9 | onLoad: function(options){
10 | wx.setNavigationBarTitle({
11 | title: options.name
12 | });
13 | var _this = this;
14 | qqmapsdk = new QQMapWX({
15 | key: '3OYBZ-A5SRG-CG5QL-IWCLN-SDIX2-BBBDM'
16 | });
17 | qqmapsdk.geocoder({
18 | address: options.title,
19 | success: function(res) {
20 | _this.setData({
21 | markers:[{
22 | id: 0,
23 | latitude: res.result.location.lat,
24 | longitude: res.result.location.lng,
25 | width: 50,
26 | height: 50,
27 | title: result.title
28 | }],
29 | position:{
30 | latitude: res.result.location.lat,
31 | longitude: res.result.location.lng
32 | }
33 | });
34 | },
35 | fail: function(res) {
36 | console.log(res);
37 | }
38 | });
39 | },
40 | onShow: function(){
41 |
42 | }
43 | })
--------------------------------------------------------------------------------
/pages/map/map.json:
--------------------------------------------------------------------------------
1 | {
2 | "window":{
3 | "enablePullDownRefresh": true
4 | }
5 | }
--------------------------------------------------------------------------------
/pages/map/map.wxml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/pages/map/map.wxss:
--------------------------------------------------------------------------------
1 | map{
2 | width: 750rpx;
3 | height: 100vh;
4 | }
--------------------------------------------------------------------------------
/pages/note/balance.js:
--------------------------------------------------------------------------------
1 | // pages/note/balance.js
2 | const common = require('../../common/common');
3 | const app = getApp();
4 | Page({
5 | data:{
6 | yue: ''
7 | },
8 | onLoad:function(options){
9 | wx.setNavigationBarTitle({
10 | title: "交易记录"
11 | });
12 | let openid = wx.getStorageSync('user').openid;
13 | let nickname = wx.getStorageSync('userInfo').nickName;
14 | var _this = this;
15 | wx.request({
16 | url: `${app.globalData.request}yu.php`,
17 | data: {openid, nickname},
18 | method: 'GET',
19 | success: function(res){
20 | console.log(res);
21 | _this.setData({
22 | yue: res.data
23 | })
24 | },
25 | fail: function(res) {
26 | // fail
27 | },
28 | complete: function(res) {
29 | // complete
30 | }
31 | })
32 | },
33 | onReady:function(){
34 | // 页面渲染完成
35 | },
36 | onShow:function(){
37 | // 页面显示
38 | },
39 | onHide:function(){
40 | // 页面隐藏
41 | },
42 | onUnload:function(){
43 | // 页面关闭
44 | },
45 | goToPay: function(){
46 | wx.navigateTo({
47 | url: 'pay'
48 | })
49 | }
50 | })
--------------------------------------------------------------------------------
/pages/note/balance.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/pages/note/balance.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 我的会员
6 |
7 |
8 | 您还不是会员
9 |
10 |
11 | 尊贵的{{yue.level}}会员
12 |
13 |
14 | 会员到期时间:
15 | {{yue.level_timer}}
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/pages/note/balance.wxss:
--------------------------------------------------------------------------------
1 | /* pages/note/balance.wxss */
2 | .money_icon{
3 | width: 150rpx;
4 | height: 150rpx;
5 | display: block;
6 | margin: 20px auto;
7 | }
8 | text{
9 | text-align: center;
10 | }
11 | .f16{
12 | font-size: 16px;
13 | }
14 | .f28{
15 | font-size: 28px;
16 | }
17 | button{
18 | font-size: 16px;
19 | }
20 | .border_box_tb{
21 | font-size: 18px;
22 | line-height: 2.4;
23 | display: flex;
24 | }
25 | .border_box_tb::before{
26 | content: '';
27 | width: 8px;
28 | height: 20px;
29 | display: inline-block;
30 | float: left;
31 | background: #1d82d2;
32 | margin: auto 20rpx;
33 | }
34 | .inf_thead{
35 | display: flex;
36 | background: #1d82d2;
37 | text-align: center;
38 | font-size: 14px;
39 | color: #fff;
40 | padding-top: 8px;
41 | padding-bottom: 8px;
42 | }
43 | .inf_tr{
44 | display: flex;
45 | background: #1d82d2;
46 | margin-top: 5px;
47 | line-height: 2;
48 | color: #fff;
49 | }
50 | .w60{
51 | width: 60%;
52 | }
53 | .w40{
54 | width: 40%;
55 | }
56 | .f48{
57 | font-size: 48px;
58 | }
59 | .cccc{
60 | color: #ccc;
61 | }
62 | .c1d82d2{
63 | color: #1d82d2;
64 | }
65 | .line-height48{
66 | line-height: 48px;
67 | }
68 | .page-body-button{
69 | margin-top: 50px;
70 | width: 160px;
71 | height: 40px;
72 | background: #1d82d2;
73 | font-size: 16px;
74 | display: block;
75 | margin: 0 auto;
76 | color: #fff;
77 | text-align: center;
78 | line-height: 40px;
79 | border-radius: 8px;
80 | }
81 | .yutitle{
82 | border-top: 1px solid #ccc;
83 | border-bottom: 1px solid #ccc;
84 | }
--------------------------------------------------------------------------------
/pages/note/myclasses.js:
--------------------------------------------------------------------------------
1 | // pages/note/myclasses.js
2 | const common = require('../../common/common');
3 | const app = getApp();
4 | Page({
5 | data:{
6 | newsList: [],
7 | page: 1,
8 | still: true, //是否还有更多信息
9 | loading: false, //是否正在加载
10 | have: false, //是否有数据
11 | deleteAble: true
12 | },
13 | onLoad:function(options){
14 | wx.setNavigationBarTitle({
15 | title: "我的发布"
16 | });
17 | var _this = this;
18 | let openid = wx.getStorageSync('user').openid;
19 | let nickname = wx.getStorageSync('userInfo').nickName;
20 | wx.request({
21 | url: `${app.globalData.request}member_fabu.php`,
22 | data: {openid, nickname, page: _this.data.page},
23 | method: 'GET',
24 | success: function(res){
25 | _this.setData({
26 | newsList: res.data,
27 | have: true
28 | })
29 | },
30 | fail: function(res) {
31 | // fail
32 | },
33 | complete: function(res) {
34 | // complete
35 | }
36 | })
37 | },
38 | onReady:function(){
39 | // 页面渲染完成
40 | },
41 | onShow:function(){
42 | // 页面显示
43 | },
44 | onHide:function(){
45 | // 页面隐藏
46 | },
47 | onUnload:function(){
48 | // 页面关闭
49 | },
50 | onReachBottom:function(){
51 | var _this = this;
52 | _this.setData({
53 | page: _this.data.page+1,
54 | loading: true
55 | })
56 | var _this = this;
57 | let openid = wx.getStorageSync('user').openid;
58 | let nickname = wx.getStorageSync('userInfo').nickName;
59 | wx.request({
60 | url: `${app.globalData.request}member_fabu.php`,
61 | data: {openid, nickname, page: _this.data.page},
62 | method: 'GET',
63 | success: function(res){
64 | if(res.data.pagezt != 0){
65 | let tream = _this.data.newsList.concat(res.data);
66 | _this.setData({
67 | newsList: tream,
68 | loading: false
69 | })
70 | } else{
71 | _this.setData({
72 | still: false,
73 | loading: false
74 | })
75 | }
76 | },
77 | fail: function(res) {
78 | // fail
79 | },
80 | complete: function(res) {
81 | // complete
82 | }
83 | })
84 | },
85 | destory: function(e){
86 | var _this = this;
87 | wx.showModal({
88 | title: '确定删除吗',
89 | success: function (res) {
90 | if (res.confirm) {
91 | wx.request({
92 | url: `${app.globalData.request}fabu_del.php`,
93 | data: {types: "fabu", id: e.target.dataset.id},
94 | method: 'GET',
95 | success: (res)=>{
96 | console.log(res);
97 | wx.showToast({
98 | title: '删除成功',
99 | })
100 | _this.onLoad();
101 | },
102 | fail: function(){
103 | wx.showToast({
104 | title: '删除失败',
105 | })
106 | }
107 | })
108 | }
109 | }
110 | })
111 | }
112 | })
--------------------------------------------------------------------------------
/pages/note/myclasses.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/pages/note/myclasses.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 我的发布
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/pages/note/myclasses.wxss:
--------------------------------------------------------------------------------
1 | /* pages/note/myclasses.wxss */
2 | @import "../classes/classlist.wxss";
3 | .yutitle{
4 | border-top: 1px solid #ccc;
5 | border-bottom: 1px solid #ccc;
6 | }
7 | .border_box_tb::before{
8 | content: '';
9 | width: 8px;
10 | height: 20px;
11 | display: inline-block;
12 | float: left;
13 | background: #1d82d2;
14 | margin: auto 20rpx;
15 | }
16 | .border_box_tb::before{
17 | content: '';
18 | width: 8px;
19 | height: 20px;
20 | display: inline-block;
21 | float: left;
22 | background: #1d82d2;
23 | margin: auto 20rpx;
24 | }
25 | .yutitle {
26 | border-top:1px solid #ccc;
27 | border-bottom:1px solid #ccc;
28 |
29 | }
30 | .yutitle {
31 | border-top:1px solid #ccc;
32 | border-bottom:1px solid #ccc;
33 |
34 | }
35 | .c1d82d2 {
36 | color:#1d82d2;
37 |
38 | }
39 | .border_box_tb {
40 | font-size:18px;
41 | line-height:2.4;
42 | display:flex;
43 |
44 | }
45 | .delete{
46 | color: #ff0000;
47 | font-size: 12px;
48 | }
49 |
--------------------------------------------------------------------------------
/pages/note/note.js:
--------------------------------------------------------------------------------
1 | // pages/note/note.js
2 | const common = require('../../common/common');
3 | const app = getApp();
4 | Page({
5 | data:{
6 | pageName: '',
7 | chongList: []
8 | },
9 | onLoad:function(options){
10 | var _this = this;
11 | this.setData({
12 | pageName: options.page
13 | })
14 | let openid = wx.getStorageSync('user').openid;
15 | let nickname = wx.getStorageSync('userInfo').nickName;
16 | wx.request({
17 | url: `${app.globalData.request}member_cong.php`,
18 | data: {openid, nickname},
19 | method: 'GET',
20 | success: function(res){
21 | console.log(res)
22 | _this.setData({
23 | chongList: res.data
24 | })
25 | },
26 | fail: function(res) {
27 | // fail
28 | },
29 | complete: function(res) {
30 | // complete
31 | }
32 | })
33 | },
34 | onReady:function(){
35 | // 页面渲染完成
36 | },
37 | onShow:function(){
38 | // 页面显示
39 | },
40 | onHide:function(){
41 | // 页面隐藏
42 | },
43 | onUnload:function(){
44 | // 页面关闭
45 | }
46 | })
--------------------------------------------------------------------------------
/pages/note/note.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/pages/note/note.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 交易记录
6 |
7 |
8 |
9 |
10 |
11 | 交易时间
12 | 交易金额(元)
13 |
14 |
15 |
16 |
17 |
18 | {{item.zf_timer}}
19 |
20 |
21 | {{item.money}}
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/pages/note/note.wxss:
--------------------------------------------------------------------------------
1 | /* pages/note/note.wxss */
2 | @import "balance.wxss";
3 | .inf_thead{
4 | display: flex;
5 | background: #1d82d2;
6 | text-align: center;
7 | font-size: 14px;
8 | color: #fff;
9 | padding-top: 8px;
10 | padding-bottom: 8px;
11 | }
12 | .inf_tr{
13 | display: flex;
14 | background: #1d82d2;
15 | margin-top: 5px;
16 | line-height: 2;
17 | color: #fff;
18 | }
19 | .w60{
20 | width: 60%;
21 | }
22 | .w40{
23 | width: 40%;
24 | }
25 | .yutitle{
26 | border-top: 1px solid #ccc;
27 | border-bottom: 1px solid #ccc;
28 | }
29 | .border_box_tb::before{
30 | content: '';
31 | width: 8px;
32 | height: 20px;
33 | display: inline-block;
34 | float: left;
35 | background: #1d82d2;
36 | margin: auto 20rpx;
37 | }
--------------------------------------------------------------------------------
/pages/note/pay.js:
--------------------------------------------------------------------------------
1 | // pages/note/pay.js
2 | const common = require('../../common/common');
3 | const app = getApp();
4 | Page({
5 | data:{
6 | openid: '',
7 | curNav: 0,
8 | table: [],
9 | money: '',
10 | curNav: 1,
11 | curIndex: 0,
12 | chosed: false,
13 | youhuiid: '0'
14 | },
15 | onLoad:function(options){
16 | var _this = this;
17 | const user = wx.getStorageSync('user');
18 | this.setData({
19 | openid: user.openid
20 | })
21 | wx.request({
22 | url: `${app.globalData.request}chong.php`,
23 | data: {},
24 | method: 'GET',
25 | success: function(res){
26 | var tableList = res.data;
27 | for(let i = 1; i <= tableList.length; i++){
28 | tableList[i-1].cid = i;
29 | }
30 | _this.setData({
31 | table: tableList
32 | })
33 | },
34 | fail: function(res) {
35 | common.showModal('支付失败', res.data);
36 | },
37 | complete: function(res) {
38 | // complete
39 | }
40 | })
41 | wx.request({//获取优惠券
42 | url: `${app.globalData.request}youhui_sy.php`,
43 | data: {openid: _this.data.openid},
44 | method: 'GET',
45 | success: function(res){
46 | console.log(res.data)
47 | _this.setData({
48 | youhuiList: res.data
49 | })
50 | },
51 | fail: function(res) {
52 | // fail
53 | },
54 | complete: function(res) {
55 | // complete
56 | }
57 | })
58 | },
59 | onReady:function(){
60 | // 页面渲染完成
61 | },
62 | onShow:function(){
63 | // 页面显示
64 | },
65 | onHide:function(){
66 | // 页面隐藏
67 | },
68 | onUnload:function(){
69 | // 页面关闭
70 | },
71 | requestPay: function(){
72 | var _this = this;
73 | wx.request({
74 | url: `${app.globalData.request}pay.php`,
75 | data: {openid: _this.data.openid, total: _this.data.table[_this.data.curNav-1].id, youhuiid: _this.data.youhuiid || '0'},
76 | method: 'GET',
77 | success: function(res){
78 | console.log(_this.data.table[_this.data.curNav-1].id);
79 | var _res = res;
80 | wx.requestPayment({
81 | timeStamp: res.data.timeStamp,
82 | nonceStr: res.data.nonceStr,
83 | package: res.data.package,
84 | signType: res.data.signType,
85 | paySign: res.data.paySign,
86 | success: function(res){
87 | console.log(res);
88 | wx.request({
89 | url: `${app.globalData.request}pay_hd.php`,
90 | data: {code: _res.data.package},
91 | method: 'GET',
92 | success: function(res){
93 |
94 | }
95 | })
96 | },
97 | fail: function(res) {
98 | },
99 | complete: function(res) {
100 | // complete
101 | }
102 | })
103 | },
104 | fail: function(res) {
105 | console.log(res);
106 | },
107 | complete: function(res) {
108 | // complete
109 | }
110 | })
111 | },
112 | switchRightTab: function(e) {
113 | let id = e.currentTarget.dataset.cid,
114 | index = parseInt(e.target.dataset.index);
115 | this.setData({
116 | curNav: id,
117 | curIndex: index
118 | })
119 | },
120 | bindYouChange: function(e){
121 | this.setData({
122 | classsecindex: e.detail.value
123 | })
124 | },
125 | choseCard: function(e){
126 | var _this = this;
127 | this.setData({
128 | chosed: !this.data.chosed,
129 | youhuiid: _this.data.youhuiid == '0' ? e.currentTarget.dataset.you : '0'
130 | })
131 | console.log(_this.data.youhuiid)
132 | }
133 | })
--------------------------------------------------------------------------------
/pages/note/pay.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/pages/note/pay.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {{tab.money}}元 \n
6 | {{tab.title}}
7 |
8 |
9 |
10 |
11 |
12 |
13 | 优惠券:
14 |
15 |
16 |
17 | {{youhuiList.sum}}元 \n
18 | 购买立减
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/pages/note/pay.wxss:
--------------------------------------------------------------------------------
1 | /* pages/note/pay.wxss */
2 | @import "../release/releaselist.wxss";
3 | .nav_items{
4 | width: 236rpx;
5 | line-height: 1.7;
6 | border-radius: 3px;
7 | border: 1px solid #d6d6d8;
8 | text-align: center;
9 | background: #fff;
10 | font-size: 14px;
11 | float: left;
12 | margin: 20rpx 10rpx;
13 | margin-left: 0;
14 | margin-bottom: 0;
15 | padding: 16rpx 0;
16 | }
17 | .content .nav_items:nth-child(3n){
18 | margin-right: 0;
19 | }
20 | .nav_items.active{
21 | border: 1px solid #1AAD19;
22 | color: #1AAD19;
23 | }
24 | .flex{
25 | justify-content: space-around;
26 | }
27 | button{
28 | font-size: 16px;
29 | }
30 | .nav_items {
31 | color: #666;
32 | }
--------------------------------------------------------------------------------
/pages/note/youhui.js:
--------------------------------------------------------------------------------
1 | // pages/note/youhui.js
2 | const common = require('../../common/common');
3 | const app = getApp();
4 | Page({
5 | data:{
6 | youhuiList: []
7 | },
8 | onLoad:function(options){
9 | var _this = this;
10 | let openid = wx.getStorageSync('user').openid;
11 | let nickname = wx.getStorageSync('userInfo').nickName;
12 | wx.request({
13 | url: `${app.globalData.request}youhui.php`,
14 | data: {openid, nickname},
15 | method: 'GET',
16 | success: function(res){
17 | console.log(res.data);
18 | _this.setData({
19 | youhuiList: res.data
20 | })
21 | },
22 | fail: function(res) {
23 | // fail
24 | },
25 | complete: function(res) {
26 | // complete
27 | }
28 | })
29 | },
30 | onReady:function(){
31 | // 页面渲染完成
32 | },
33 | onShow:function(){
34 | // 页面显示
35 | },
36 | onHide:function(){
37 | // 页面隐藏
38 | },
39 | onUnload:function(){
40 | // 页面关闭
41 | }
42 | })
--------------------------------------------------------------------------------
/pages/note/youhui.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/pages/note/youhui.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | ¥{{item.sum}}
7 | {{item.timer}}
8 |
9 |
10 |
11 | 1.用户初次使用本平台 系统自动赠予代金券一张。
12 | 2.代金券用于平台充值 系统自动抵扣。
13 | 3.代金券不可折现。
14 |
15 |
--------------------------------------------------------------------------------
/pages/note/youhui.wxss:
--------------------------------------------------------------------------------
1 | /* pages/note/youhui.wxss */
2 | .youhui_box{
3 | padding: 20rpx;
4 | color: #fff;
5 | }
6 | .card{
7 | width: 220px;
8 | height: 88px;
9 | background: url(https://18508788.17tongcheng.cn/api/images/card_03.jpg) no-repeat;
10 | background-size: 100%;
11 | margin: 0 auto 20px;
12 | }
13 | .money{
14 | font-size: 32px;
15 | line-height: 54px;
16 | }
17 | .gettime{
18 | font-size: 14px;
19 | line-height: 32px;
20 | }
21 | .youhui_logo{
22 | width: 100%;
23 | }
24 | .beizhu{
25 | width: 220px;
26 | margin: 0 auto;
27 | line-height: 2.2;
28 | }
--------------------------------------------------------------------------------
/pages/release/releaselist.js:
--------------------------------------------------------------------------------
1 | // pages/release/releaselist.js
2 | const common = require('../../common/common');
3 | const app = getApp();
4 | Page({
5 | data:{
6 | tableList: [
7 | {
8 | name: "招聘",
9 | id: 1
10 | },
11 | {
12 | name: "房产",
13 | id: 2
14 | },
15 | {
16 | name: "其他",
17 | id: 3
18 | },
19 | ],
20 | //switch的信息
21 | sex: ['男', '女', '不限'],
22 | sexindex: 0,
23 | money: ['面议', '2000元以下', '2000-4000元', '4000-6000元', '6000-8000元', '8000-10000元', '1万元以上'],
24 | moneyindex: 0,
25 | mold: [],
26 | moldindex: 1,
27 | quyu: [],
28 | quyuindex: 0,
29 | original: [],
30 | classes: [],
31 | classesindex: 0,
32 | classsec: [],
33 | classsecindex: 0,
34 | date: '2016-09-01',
35 | time: '12:01',
36 | curNav: 1,
37 | curIndex: 0,
38 | areaList: [],
39 | imageList: [],
40 | countIndex: 3,
41 | count: [1, 2, 3, 4],
42 | openId: '',
43 | nickname: '',
44 | lists: [],
45 | first: [],
46 | third: [],
47 | classesindex: 0,
48 | classesindex2: 0,
49 | classesindex3: 0
50 | },
51 | onLoad:function(options){
52 | let openId = wx.getStorageSync('user').openid;
53 | let nickname = wx.getStorageSync('userInfo').nickName;
54 | this.setData({
55 | openid: openId,
56 | nickname: nickname
57 | })
58 | var _this = this;
59 | wx.request({
60 | url: `${app.globalData.request}quyu.php`,
61 | data: {},
62 | method: 'GET',
63 | success: function(res){
64 | var quyu = [];
65 | var quyuid = [];
66 | for(var i=0; i 1) {
160 | for (let i = 0; i < _this.data.lists[_this.data.classesindex].itemlist[e.detail.value].itemlists.length; i++) {
161 | third.push(_this.data.lists[_this.data.classesindex].itemlist[e.detail.value].itemlists[i].title);
162 | }
163 | _this.setData({
164 | third
165 | })
166 | }
167 | },
168 | bindClassesChange3: function (e) {
169 | this.setData({
170 | classesindex3: e.detail.value
171 | })
172 | },
173 | changeSex: function(e){
174 | this.setData({
175 | sexindex: e.detail.value
176 | })
177 | },
178 | bindMoldChange: function(e){
179 | this.setData({
180 | moldindex: e.detail.value
181 | })
182 | },
183 | bindAreaChange: function(e){
184 | this.setData({
185 | quyuindex: e.detail.value
186 | })
187 | },
188 | formSubmit: function (e) {
189 | var _this = this;
190 | wx.request({
191 | url: `${app.globalData.request}fabu.php`,
192 | data: {data: e.detail.value, openid: _this.data.openid, nickname: _this.data.nickname},
193 | method: 'GET',
194 | success: function (res) {
195 | if(res.data == '-1'){
196 | wx.showToast({
197 | title: '发布失败,请填写全部信息',
198 | icon: 'loading',
199 | duration: 2000
200 | });
201 | } else if (res.data == 'no') {
202 | wx.showToast({
203 | title: '已超过当天发布条数上限',
204 | icon: 'loading',
205 | duration: 2000
206 | });
207 | } else if (res.data != 0){
208 | for (var i = 0; i < _this.data.imageList.length; i++) {
209 | wx.uploadFile({
210 | url: `${app.globalData.request}img.php`,
211 | filePath: _this.data.imageList[i],
212 | header: { "content-type": "multipart/form-data" },
213 | name: 'img',
214 | formData: { types: 'img', num: res.data },
215 | success: function (res) {
216 | },
217 | fail: function (res) {
218 | },
219 | complete: function (res) {
220 | }
221 | })
222 | };
223 | wx.showToast({
224 | title: '发布成功,3秒钟后返回首页',
225 | icon: 'success',
226 | duration: 3000
227 | });
228 | setTimeout(()=>{
229 | wx.reLaunch({
230 | url: '/pages/index/index'
231 | });
232 | }, 3000);
233 | } else{
234 | wx.showToast({
235 | title: '发布失败,请核实信息后重新提交',
236 | icon: 'loading',
237 | duration: 2000
238 | });
239 | }
240 | },
241 | fail: function(res) {
242 | common.showModal('提交失败', '请检查网络状态');
243 | },
244 | complete: function(res) {
245 | // complete
246 | }
247 | })
248 | },
249 | formSubmit1: function(e){
250 | var _this = this;
251 | wx.request({
252 | url: `${app.globalData.request}fabu.php`,
253 | data: {data: e.detail.value, openid: _this.data.openid, nickname: _this.data.nickname},
254 | method: 'GET',
255 | success: function(res){
256 | if (res.data == '-1') {
257 | wx.showToast({
258 | title: '发布失败,请填写全部信息',
259 | icon: 'loading',
260 | duration: 2000
261 | });
262 | } else if (res.data == 'no'){
263 | wx.showToast({
264 | title: '已超过当天发布条数上限',
265 | icon: 'loading',
266 | duration: 2000
267 | });
268 | } else if(res.data!= 0){
269 | for(var i=0; i<_this.data.imageList.length; i++){
270 | wx.uploadFile({
271 | url: `${app.globalData.request}img.php`,
272 | filePath: _this.data.imageList[i],
273 | header: {"content-type": "multipart/form-data"},
274 | name: 'img',
275 | formData: {types: 'img', num: res.data},
276 | success: function(res){
277 | },
278 | fail: function(res) {
279 | },
280 | complete: function(res) {
281 | }
282 | })
283 | }
284 | wx.showToast({
285 | title: '发布成功,3秒钟后返回首页',
286 | icon: 'success',
287 | duration: 3000
288 | });
289 | setTimeout(()=>{
290 | wx.reLaunch({
291 | url: '/pages/index/index'
292 | });
293 | }, 3000);
294 | } else{
295 | wx.showToast({
296 | title: '发布失败,请核实信息后重新提交',
297 | icon: 'loading',
298 | duration: 2000
299 | });
300 | }
301 | },
302 | fail: function(res) {
303 | common.showModal('提交失败', '请检查网络状态');
304 | }
305 | });
306 | },
307 | sourceTypeChange: function (e) {
308 | this.setData({
309 | sourceTypeIndex: e.detail.value
310 | })
311 | },
312 | sizeTypeChange: function (e) {
313 | this.setData({
314 | sizeTypeIndex: e.detail.value
315 | })
316 | },
317 | countChange: function (e) {
318 | this.setData({
319 | countIndex: e.detail.value
320 | })
321 | },
322 | chooseImage: function () {
323 | var _this = this
324 | wx.chooseImage({
325 | sizeType: 'compressed',
326 | count: 4,
327 | success: function (res) {
328 | _this.setData({
329 | imageList: res.tempFilePaths
330 | })
331 | }
332 | })
333 | },
334 | previewImage: function (e) {
335 | var current = e.target.dataset.src
336 | wx.previewImage({
337 | current: current,
338 | urls: this.data.imageList
339 | })
340 | }
341 | })
--------------------------------------------------------------------------------
/pages/release/releaselist.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/pages/release/releaselist.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | {{tab.name}}
5 |
6 |
7 |
8 |
9 |
10 |
11 |
91 |
92 |
93 |
94 |
173 |
174 |
175 |
176 |
255 |
256 |
--------------------------------------------------------------------------------
/pages/release/releaselist.wxss:
--------------------------------------------------------------------------------
1 | /* pages/release/releaselist.wxss */
2 | @import "/css/weui.wxss";
3 | .notice{
4 | background: rgba(0, 0, 0, .2);
5 | display: block;
6 | line-height: 32rpx;
7 | border-radius: 16rpx;
8 | padding: 0 8px;
9 | }
10 | .switch-tab{
11 | border-bottom: 1px solid #d1d1d1;
12 | }
13 | .nav_items{
14 | width: 33.333%;
15 | display: block;
16 | color: #b7b7b7;
17 | text-align: center;
18 | font-size: 14px;
19 | line-height: 40px;
20 | box-sizing: border-box;
21 | }
22 | .nav_items.active{
23 | border-bottom: 3px solid #1d82d2;
24 | color: #545454;
25 | }
26 | .tr{
27 | padding: 5px 20rpx 0;
28 | clear: both;
29 | }
30 | .tr label{
31 | display: flex;
32 | border-bottom: 1px solid #efeff4;
33 | padding-bottom: 5px;
34 | }
35 | page{
36 | font-size: 14px;
37 | }
38 | .class_tab{
39 | background: #efeff4;
40 | border-bottom: 10px solid #fff;
41 | }
42 | .class_tab .tr{
43 | background: #fff;
44 | height: auto;
45 | line-height: 36px;
46 | }
47 | .td_title{
48 | width: 175rpx;
49 | display: block;
50 | border-right: 1px solid #d1d1d1;
51 | margin-right: 10px;
52 | text-align: center;
53 | }
54 | .td_text{
55 | width: 535rpx;
56 | line-height: 36px;
57 | height: 36px;
58 | }
59 | .c9a9a9b{
60 | color: #9a9a9b;
61 | padding: 4px 20rpx;
62 | line-height: 32px;
63 | display: block;
64 | }
65 | .area{
66 | min-height: 7em;
67 | height: auto;
68 | padding-top: 10px;
69 | }
70 | .table .tr:last-child{
71 | height: auto;
72 | }
73 | .table .tr:last-child label{
74 | border-bottom: none
75 | }
76 | button{
77 | font-size: 16px;
78 | }
79 | .hidden{
80 | display: none;
81 | }
82 | .bgfff{
83 | background: #fff;
84 | }
--------------------------------------------------------------------------------
/pages/search/search.js:
--------------------------------------------------------------------------------
1 | // pages/search/search.js
2 | Page({
3 | data:{
4 | text: ''
5 | },
6 | onLoad: function(){
7 | wx.setNavigationBarTitle({
8 | title: "搜索"
9 | });
10 | },
11 | setText: function(e){
12 | var text = e.detail.value;
13 | this.setData({
14 | text
15 | })
16 | },
17 | search: function(){
18 | var _this = this;
19 | wx.redirectTo({
20 | url: `/pages/classes/classlist?key=${_this.data.text}`
21 | })
22 | }
23 | })
--------------------------------------------------------------------------------
/pages/search/search.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/pages/search/search.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
--------------------------------------------------------------------------------
/pages/search/search.wxss:
--------------------------------------------------------------------------------
1 | .search-hd {
2 | width: 100%;
3 | height: 140rpx;
4 | background-color: #fff;
5 | border-bottom: 1px solid #f8f8f8;
6 | }
7 | .search-area {
8 | box-sizing: border-box;
9 | position: relative;
10 | margin: 30rpx;
11 | }
12 |
13 | .search-type {
14 | position: absolute;
15 | z-index: 11;
16 | top: 0;
17 | left: 0;
18 | width: 120rpx;
19 | height: 80rpx;
20 | line-height: 80rpx;
21 | text-align: center;
22 | border-right: 1px solid #eee;
23 | }
24 |
25 | .search-txt {
26 | box-sizing: border-box;
27 | width: 100%;
28 | height: 80rpx;
29 | padding-left: 20rpx;
30 | padding-right: 20rpx;
31 | border-radius: 10rpx;
32 | border: 1px solid #eee;
33 | font-family: "微软雅黑";
34 | }
35 |
36 | .search-btn {
37 | position: absolute;
38 | z-index: 11;
39 | top: 0;
40 | right: 0;
41 | height: 80rpx;
42 | width: 120rpx;
43 | text-align: center;
44 | line-height: 80rpx;
45 | font-size: 28rpx;
46 | border-bottom-left-radius: 0;
47 | border-top-left-radius: 0;
48 | }
49 |
50 | .search-btn::after{
51 | border-bottom-left-radius: 0;
52 | border-top-left-radius: 0;
53 | }
54 |
55 | .search-keyword {
56 | padding: 30rpx;
57 | }
58 |
59 | .search-keyword-title {
60 | padding-left: 20rpx;
61 | margin-top: 40rpx;
62 | margin-bottom: 20rpx;
63 | font-size: 30rpx;
64 | border-left: 10rpx solid #47a86c;
65 | }
66 |
67 | .search-keyword-item {
68 | display: inline-block;
69 | padding: 10rpx;
70 | border: 1px solid #ccc;
71 | border-radius: 15rpx;
72 | background-color: #fbfbfb;
73 | margin: 0 10rpx 10rpx 0;
74 | color: #555;
75 | }
--------------------------------------------------------------------------------
/pages/search/searched.js:
--------------------------------------------------------------------------------
1 | // pages/search/searched.js
2 | Page({
3 | data:{},
4 | onLoad:function(options){
5 | // 页面初始化 options为页面跳转所带来的参数
6 | },
7 | onReady:function(){
8 | // 页面渲染完成
9 | },
10 | onShow:function(){
11 | // 页面显示
12 | },
13 | onHide:function(){
14 | // 页面隐藏
15 | },
16 | onUnload:function(){
17 | // 页面关闭
18 | }
19 | })
--------------------------------------------------------------------------------
/pages/search/searched.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/pages/search/searched.wxml:
--------------------------------------------------------------------------------
1 |
2 | pages/search/searched.wxml
3 |
--------------------------------------------------------------------------------
/pages/search/searched.wxss:
--------------------------------------------------------------------------------
1 | /* pages/search/searched.wxss */
--------------------------------------------------------------------------------
/pages/user/user.js:
--------------------------------------------------------------------------------
1 | // pages/user/user.js
2 | const common = require('../../common/common');
3 | const app = getApp();
4 | Page({
5 | data:{
6 | logoSrc: '',
7 | appId:'wx8fd0f04121e3868f',//appId
8 | secret:'1ca90a7e346a184d3a50b69c5c533080',//secret
9 | infoList:[
10 | {imgUrl: '/images/me_12.jpg', name: '我的发布', url: '../note/myclasses'},
11 | {imgUrl: '/images/me_05.jpg', name: '我的会员', url: '../note/balance'},
12 | // {imgUrl: '/images/me_14.jpg', name: '代 金 券', url: '../note/youhui'},
13 | // {imgUrl: '/images/me_10.jpg', name: '交易记录', url: '../note/note?page=充值&name=cost'}
14 | ]
15 | },
16 | onLoad:function(options){
17 | wx.setNavigationBarTitle({
18 | title: '我的'
19 | });
20 | var _this = this;
21 | let logoUrl = wx.getStorageSync('logo');
22 | _this.setData({
23 | logoSrc: logoUrl
24 | });
25 | try {
26 | let user = wx.getStorageSync('user');
27 | let userInfo = wx.getStorageSync('userInfo');
28 | if (user && userInfo) {
29 | let date = new Date(user.expires_in);
30 | let year = date.getFullYear();
31 | let month = date.getMonth();
32 | let day = date.getDate();
33 | let hours = date.getHours();
34 | let minutes = date.getMinutes();
35 | let timer = `${year}年${month+1}月${day}日${hours}时${minutes}分`;
36 | _this.setData({
37 | avatarUrl: userInfo.avatarUrl,
38 | nickName: userInfo.nickName,
39 | openid: user.openid,
40 | expires_in: user.expires_in,
41 | timer: timer
42 | })
43 | }
44 | } catch (e) {
45 | // Do something when catch error
46 | }
47 | },
48 | onReady:function(){
49 | // 页面渲染完成
50 | },
51 | onShow:function(){
52 | // 页面显示
53 | },
54 | onHide:function(){
55 | // 页面隐藏
56 | },
57 | onUnload:function(){
58 | // 页面关闭
59 | },
60 | viewSearch: common.viewSearch
61 | })
--------------------------------------------------------------------------------
/pages/user/user.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/pages/user/user.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | {{nickName}}
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | {{item.name}}
18 | >
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/pages/user/user.wxss:
--------------------------------------------------------------------------------
1 | /* pages/user/user.wxss */
2 | @import "/css/search.wxss";
3 | .person_box{
4 | padding: 16rpx 27rpx;
5 | background: #1d82d2;
6 | background-size: cover;
7 | }
8 | .portrait{
9 | width: 117rpx;
10 | height: 117rpx;
11 | border-radius: 5px;
12 | }
13 | .nick_name{
14 | padding-left: 20px;
15 | line-height: 117rpx;
16 | font-size: 14px;
17 | color: #fff;
18 | }
19 | .user_info{
20 | border-top: 1px solid #ccc;
21 | }
22 | .user_ul .li{
23 | padding: 29rpx 23rpx;
24 | border-bottom: 1px solid #ccc;
25 | line-height: 16px;
26 | font-size: 12px;
27 | }
28 | .user_ul .icon{
29 | width: 16px;
30 | height: 16px;
31 | float: left;
32 | margin-right: 32rpx;
33 | }
34 | .body{
35 | padding-top: 0;
36 | }
--------------------------------------------------------------------------------
/require/banner.js:
--------------------------------------------------------------------------------
1 | function fetchBanner(url, cid="2"){
2 | var _this = this;
3 | wx.request({
4 | url: url,
5 | data: {types:'banner', cid: cid},
6 | method: 'GET',
7 | header: {
8 | "Content-Type": "application/json,application/json"
9 | },
10 | success: function(res){
11 | //console.log(res.data);
12 | _this.setData({
13 | bannerUrlList: res.data
14 | });
15 | }
16 | })
17 | }
18 | module.exports = {
19 | fetchBanner: fetchBanner
20 | }
--------------------------------------------------------------------------------
/require/logo.js:
--------------------------------------------------------------------------------
1 | function fetchLogo(url){
2 | var _this = this;
3 | wx.request({
4 | url: url,
5 | data: {types:'logo'},
6 | method: 'GET',
7 | header: {
8 | "Content-Type": "application/json,application/json"
9 | },
10 | success: function(res){
11 | //console.log(res.data);
12 | wx.setStorageSync('logo', res.data.picurl);
13 | }
14 | })
15 | }
16 | module.exports = {
17 | fetchLogo: fetchLogo
18 | }
--------------------------------------------------------------------------------
/require/nav.js:
--------------------------------------------------------------------------------
1 | function fetchNav(url, cid){
2 | var _this = this;
3 | wx.request({
4 | url: url,
5 | data: {types:'tj'},
6 | method: 'GET',
7 | header: {
8 | "Content-Type": "application/json,application/json"
9 | },
10 | success: function(res){
11 | _this.setData({
12 | navList: res.data
13 | });
14 | }
15 | })
16 | }
17 | module.exports = {
18 | fetchNav: fetchNav
19 | }
--------------------------------------------------------------------------------
/require/news.js:
--------------------------------------------------------------------------------
1 | function fetchNews(url="", types="", page="1", cid="0", quyu="", xmid="", key=""){
2 | var _this = this;
3 | wx.request({
4 | url: url,
5 | data: {types:types,page:page,cid:cid,quyu:quyu,xmid:xmid, key: key},
6 | method: 'GET',
7 | header: {
8 | "Content-Type": "application/json,application/json"
9 | },
10 | success: function(res){
11 | console.log(res);
12 | if(key){
13 | _this.setData({
14 | still: false
15 | });
16 | }
17 | _this.setData({
18 | newsList: res.data,
19 | have: true
20 | });
21 | }
22 | })
23 | }
24 | module.exports = {
25 | fetchNews: fetchNews
26 | }
--------------------------------------------------------------------------------
/require/qqmap-wx-jssdk.min.js:
--------------------------------------------------------------------------------
1 | var _createClass=function(){function a(e,c){for(var b=0;b
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/view/loading.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 加载中...
4 |
5 |
6 |
7 | 我是有底线的
8 |
9 |
10 |
11 | 暂无数据!
12 |
13 |
--------------------------------------------------------------------------------
/view/news.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | [删除]
5 |
6 |
7 |
8 | {{item.title}}
9 | {{item.jianjie}}
10 | V{{item.lv}}{{item.fabu}}
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/view/search.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 输入关键字
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------