├── README.md ├── app.js ├── app.json ├── app.wxss ├── images ├── 1.png ├── 2.png ├── 58b91382af5ce.png ├── 58b91382af631.png ├── 58b91382c80c2.png ├── 58b91382c811f.png ├── account.png ├── accountAct.png ├── address.png ├── address2.png ├── arrowdown.png ├── arrowright.png ├── arrowup.png ├── bac.png ├── close.png ├── delete.png ├── edit.png ├── feiji.png ├── phone.png ├── pic1.png ├── pic2.png ├── serPic1.png ├── serPic2.png ├── serPic3.png ├── serPic4.png ├── serPic5.png ├── serPic6.png ├── serPic7.png ├── serPic8.png ├── tel.png ├── telephone.png ├── time.png └── tipPic.png ├── pages ├── adDetail │ ├── adDetail.js │ ├── adDetail.json │ ├── adDetail.wxml │ └── adDetail.wxss ├── detail │ ├── detail.js │ ├── detail.json │ ├── detail.wxml │ └── detail.wxss ├── edit │ ├── edit.js │ ├── edit.json │ ├── edit.wxml │ └── edit.wxss ├── editDetail │ ├── editDetail.js │ ├── editDetail.json │ ├── editDetail.wxml │ └── editDetail.wxss ├── index │ ├── index(1).json │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss ├── my │ ├── my.js │ ├── my.json │ ├── my.wxml │ └── my.wxss ├── new │ ├── new.js │ ├── new.json │ ├── new.wxml │ └── new.wxss └── publish │ ├── publish.js │ ├── publish.json │ ├── publish.wxml │ ├── publish.wxss │ └── publishDetail │ ├── publishDetail.js │ ├── publishDetail.json │ ├── publishDetail.wxml │ └── publishDetail.wxss ├── style └── weui.wxss ├── utils ├── animation_library.wxss ├── api.js ├── request.js └── util.js ├── wxParse.zip └── wxParse ├── html2json.js ├── htmlparser.js ├── showdown.js ├── wxDiscode.js ├── wxParse.js ├── wxParse.wxml └── wxParse.wxss /README.md: -------------------------------------------------------------------------------- 1 | #大连同城信息查询_wxapp 2 | 3 | 主要功能 4 | 5 | (1)可发布同城招聘、房屋租赁、家教服务等信息。 6 | 7 | (2)可查看不同区域下的分类信息战死后。 8 | 9 | (3)可发布同城活动公告,商家可发布广告。 10 | 11 | (4)可查看个人已发布信息,并进行修改编辑。 12 | -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- 1 | var WxParse = require('wxParse/wxParse.js'); 2 | var util = require('utils/util.js'); 3 | var request = require('utils/request.js'); 4 | App({ 5 | onLaunch: function () { 6 | }, 7 | onShareAppMessage: function () { 8 | return { 9 | success: function (res) { 10 | // 分享成功 11 | console.log(res); 12 | }, 13 | fail: function (res) { 14 | // 分享失败 15 | console.log(res); 16 | } 17 | } 18 | }, 19 | getUserInfo: function () { 20 | var that = this; 21 | wx.login({ 22 | success: function (res) { 23 | console.log(res); 24 | 25 | 26 | if (res.code) { 27 | //发起网络请求 28 | request.login( 29 | { 30 | "code": res.code 31 | }, (res) => { 32 | 33 | console.log(res); 34 | var session_id = res.data.session_id; 35 | that.globalData.session_id = res.data.session_id; 36 | wx.getUserInfo({ 37 | success: function (res) { 38 | console.log(11111); 39 | console.log(res); 40 | 41 | request.checkLogin( 42 | { 43 | 'iv': res.iv, 44 | 'encryptedData': res.encryptedData, 45 | 'session_id': session_id 46 | }, (res) => { 47 | console.log(res); 48 | } 49 | ) 50 | } 51 | }) 52 | } 53 | ) 54 | } else { 55 | console.log('获取用户登录态失败!' + res.errMsg) 56 | } 57 | } 58 | }); 59 | }, 60 | globalData: { 61 | } 62 | }) 63 | 64 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "pages": [ 3 | "pages/index/index", 4 | "pages/detail/detail", 5 | "pages/adDetail/adDetail", 6 | "pages/publish/publish", 7 | "pages/publish/publishDetail/publishDetail", 8 | "pages/new/new", 9 | "pages/my/my", 10 | "pages/edit/edit", 11 | "pages/editDetail/editDetail" 12 | ], 13 | "window": { 14 | "enablePullDownRefresh": false, 15 | "navigationBarBackgroundColor": "#1A93DF", 16 | "navigationBarTextStyle": "white", 17 | "navigationBarTitleText": "大连同城供求信息" 18 | }, 19 | "tabBar": { 20 | "borderStyle": "white", 21 | "color": "#999999", 22 | "selectedColor": "#00A7C9", 23 | "backgroundColor": "#FFFFFF", 24 | "list": [ 25 | { 26 | "iconPath": "images\/58b91382af5ce.png", 27 | "selectedIconPath": "images\/58b91382af631.png", 28 | "text": "首页", 29 | "pagePath": "pages/index/index" 30 | }, 31 | { 32 | "iconPath": "images\/58b91382c80c2.png", 33 | "selectedIconPath": "images\/58b91382c811f.png", 34 | "text": "发布", 35 | "pagePath": "pages/publish/publish" 36 | }, 37 | { 38 | "iconPath": "images/account.png", 39 | "selectedIconPath": "images/accountAct.png", 40 | "text": "我的", 41 | "pagePath": "pages/my/my" 42 | } 43 | ] 44 | }, 45 | "networkTimeout": { 46 | "request": 10000, 47 | "connectSocket": 10000, 48 | "uploadFile": 10000, 49 | "downloadFile": 10000 50 | }, 51 | "debug": false 52 | } -------------------------------------------------------------------------------- /images/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesZZH/dalian/a9ffd85040036a3178db33bc21cbcb1694a4367a/images/1.png -------------------------------------------------------------------------------- /images/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesZZH/dalian/a9ffd85040036a3178db33bc21cbcb1694a4367a/images/2.png -------------------------------------------------------------------------------- /images/58b91382af5ce.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesZZH/dalian/a9ffd85040036a3178db33bc21cbcb1694a4367a/images/58b91382af5ce.png -------------------------------------------------------------------------------- /images/58b91382af631.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesZZH/dalian/a9ffd85040036a3178db33bc21cbcb1694a4367a/images/58b91382af631.png -------------------------------------------------------------------------------- /images/58b91382c80c2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesZZH/dalian/a9ffd85040036a3178db33bc21cbcb1694a4367a/images/58b91382c80c2.png -------------------------------------------------------------------------------- /images/58b91382c811f.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesZZH/dalian/a9ffd85040036a3178db33bc21cbcb1694a4367a/images/58b91382c811f.png -------------------------------------------------------------------------------- /images/account.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesZZH/dalian/a9ffd85040036a3178db33bc21cbcb1694a4367a/images/account.png -------------------------------------------------------------------------------- /images/accountAct.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesZZH/dalian/a9ffd85040036a3178db33bc21cbcb1694a4367a/images/accountAct.png -------------------------------------------------------------------------------- /images/address.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesZZH/dalian/a9ffd85040036a3178db33bc21cbcb1694a4367a/images/address.png -------------------------------------------------------------------------------- /images/address2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesZZH/dalian/a9ffd85040036a3178db33bc21cbcb1694a4367a/images/address2.png -------------------------------------------------------------------------------- /images/arrowdown.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesZZH/dalian/a9ffd85040036a3178db33bc21cbcb1694a4367a/images/arrowdown.png -------------------------------------------------------------------------------- /images/arrowright.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesZZH/dalian/a9ffd85040036a3178db33bc21cbcb1694a4367a/images/arrowright.png -------------------------------------------------------------------------------- /images/arrowup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesZZH/dalian/a9ffd85040036a3178db33bc21cbcb1694a4367a/images/arrowup.png -------------------------------------------------------------------------------- /images/bac.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesZZH/dalian/a9ffd85040036a3178db33bc21cbcb1694a4367a/images/bac.png -------------------------------------------------------------------------------- /images/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesZZH/dalian/a9ffd85040036a3178db33bc21cbcb1694a4367a/images/close.png -------------------------------------------------------------------------------- /images/delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesZZH/dalian/a9ffd85040036a3178db33bc21cbcb1694a4367a/images/delete.png -------------------------------------------------------------------------------- /images/edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesZZH/dalian/a9ffd85040036a3178db33bc21cbcb1694a4367a/images/edit.png -------------------------------------------------------------------------------- /images/feiji.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesZZH/dalian/a9ffd85040036a3178db33bc21cbcb1694a4367a/images/feiji.png -------------------------------------------------------------------------------- /images/phone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesZZH/dalian/a9ffd85040036a3178db33bc21cbcb1694a4367a/images/phone.png -------------------------------------------------------------------------------- /images/pic1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesZZH/dalian/a9ffd85040036a3178db33bc21cbcb1694a4367a/images/pic1.png -------------------------------------------------------------------------------- /images/pic2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesZZH/dalian/a9ffd85040036a3178db33bc21cbcb1694a4367a/images/pic2.png -------------------------------------------------------------------------------- /images/serPic1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesZZH/dalian/a9ffd85040036a3178db33bc21cbcb1694a4367a/images/serPic1.png -------------------------------------------------------------------------------- /images/serPic2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesZZH/dalian/a9ffd85040036a3178db33bc21cbcb1694a4367a/images/serPic2.png -------------------------------------------------------------------------------- /images/serPic3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesZZH/dalian/a9ffd85040036a3178db33bc21cbcb1694a4367a/images/serPic3.png -------------------------------------------------------------------------------- /images/serPic4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesZZH/dalian/a9ffd85040036a3178db33bc21cbcb1694a4367a/images/serPic4.png -------------------------------------------------------------------------------- /images/serPic5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesZZH/dalian/a9ffd85040036a3178db33bc21cbcb1694a4367a/images/serPic5.png -------------------------------------------------------------------------------- /images/serPic6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesZZH/dalian/a9ffd85040036a3178db33bc21cbcb1694a4367a/images/serPic6.png -------------------------------------------------------------------------------- /images/serPic7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesZZH/dalian/a9ffd85040036a3178db33bc21cbcb1694a4367a/images/serPic7.png -------------------------------------------------------------------------------- /images/serPic8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesZZH/dalian/a9ffd85040036a3178db33bc21cbcb1694a4367a/images/serPic8.png -------------------------------------------------------------------------------- /images/tel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesZZH/dalian/a9ffd85040036a3178db33bc21cbcb1694a4367a/images/tel.png -------------------------------------------------------------------------------- /images/telephone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesZZH/dalian/a9ffd85040036a3178db33bc21cbcb1694a4367a/images/telephone.png -------------------------------------------------------------------------------- /images/time.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesZZH/dalian/a9ffd85040036a3178db33bc21cbcb1694a4367a/images/time.png -------------------------------------------------------------------------------- /images/tipPic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JamesZZH/dalian/a9ffd85040036a3178db33bc21cbcb1694a4367a/images/tipPic.png -------------------------------------------------------------------------------- /pages/adDetail/adDetail.js: -------------------------------------------------------------------------------- 1 | var WxParse = require('../../wxParse/wxParse.js'); 2 | var request = require('../../utils/request.js'); 3 | var app = getApp(); 4 | var id; 5 | Page({ 6 | data: {}, 7 | onShareAppMessage: function () { 8 | return { 9 | success: function (res) { 10 | // 分享成功 11 | console.log(res); 12 | }, 13 | fail: function (res) { 14 | // 分享失败 15 | console.log(res); 16 | } 17 | } 18 | }, 19 | onLoad: function (options) { 20 | // 页面初始化 options为页面跳转所带来的参数 21 | console.log(options); 22 | id = options.id; 23 | var that = this; 24 | var that = this; 25 | request.getBannerDetial( 26 | { 27 | "session_id": app.globalData.session_id, 28 | "id": id 29 | }, 30 | (res) => { 31 | console.log(res); 32 | that.setData({ 33 | list: res.data 34 | }) 35 | var article = res.data.content; 36 | WxParse.wxParse('article', 'html', article, that, 5); 37 | // var title = res.data.title; 38 | // WxParse.wxParse('title', 'html', title, that, 5); 39 | } 40 | ) 41 | }, 42 | onShow: function () { 43 | 44 | }, 45 | }) -------------------------------------------------------------------------------- /pages/adDetail/adDetail.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /pages/adDetail/adDetail.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 |