├── README.md ├── app.js ├── app.json ├── app.wxss ├── image └── icon │ ├── address.png │ ├── boy.png │ ├── cancel.png │ ├── cancelOrder.png │ ├── edit.png │ ├── end.png │ ├── evaluate-empty.png │ ├── evaluate-light.png │ ├── float.png │ ├── girl.png │ ├── houtui.png │ ├── jiantou.png │ ├── know.png │ ├── loot.png │ ├── money.png │ ├── msg.png │ ├── nickName.png │ ├── orderManager.png │ ├── person0.png │ ├── person1.png │ ├── person2.png │ ├── person3.png │ ├── person4.png │ ├── qianbao.png │ ├── return.png │ ├── school.png │ ├── school1.png │ ├── select.png │ ├── selected.png │ ├── sex.png │ ├── shang(1).png │ ├── success.png │ ├── successTime.png │ ├── validation.png │ ├── wannengxiaoyuan.jpg │ ├── we.png │ ├── xia(2).png │ ├── xia.png │ ├── xia1.png │ ├── 圈(1).png │ ├── 圈.png │ ├── 我(1).png │ ├── 我.png │ ├── 跑腿团(1).png │ └── 跑腿团.png ├── lib └── xmldom │ ├── __package__.js │ ├── dom-parser.js │ ├── dom.js │ ├── entities.js │ └── sax.js ├── pages ├── balance │ ├── balance.js │ ├── balance.json │ ├── balance.wxml │ ├── balance.wxss │ └── tixian │ │ ├── tixian.js │ │ ├── tixian.json │ │ ├── tixian.wxml │ │ └── tixian.wxss ├── evaluate │ ├── evaluate.js │ ├── evaluate.json │ ├── evaluate.wxml │ └── evaluate.wxss ├── guanyuwomen │ ├── guanyuwomen.js │ ├── guanyuwomen.json │ ├── guanyuwomen.wxml │ └── guanyuwomen.wxss ├── msgOrder │ ├── msgOrder.js │ ├── msgOrder.json │ ├── msgOrder.wxml │ └── msgOrder.wxss ├── msgSchool │ ├── msgSchool.js │ ├── msgSchool.json │ ├── msgSchool.wxml │ └── msgSchool.wxss ├── msgWallet │ ├── msgWallet.js │ ├── msgWallet.json │ ├── msgWallet.wxml │ └── msgWallet.wxss ├── my │ ├── my.js │ ├── my.json │ ├── my.wxml │ └── my.wxss ├── orderDetail │ ├── orderDetail.js │ ├── orderDetail.json │ ├── orderDetail.wxml │ └── orderDetail.wxss ├── orderLootEvaluate │ ├── orderLootEvaluate.js │ ├── orderLootEvaluate.json │ ├── orderLootEvaluate.wxml │ └── orderLootEvaluate.wxss ├── orderLootPrivate │ ├── orderLootPrivate.js │ ├── orderLootPrivate.json │ ├── orderLootPrivate.wxml │ └── orderLootPrivate.wxss ├── orderManager │ ├── orderManager.js │ ├── orderManager.json │ ├── orderManager.wxml │ └── orderManager.wxss ├── phoneNumber │ ├── phoneNumber.js │ ├── phoneNumber.json │ ├── phoneNumber.wxml │ └── phoneNumber.wxss ├── privateOrder │ ├── privateOrder.js │ ├── privateOrder.json │ ├── privateOrder.wxml │ └── privateOrder.wxss ├── run │ ├── run.js │ ├── run.json │ ├── run.wxml │ └── run.wxss ├── schoolcircle │ ├── schoolcircle.js │ ├── schoolcircle.json │ ├── schoolcircle.wxml │ └── schoolcircle.wxss ├── schoolcircleDetail │ ├── schoolcircleDetail.js │ ├── schoolcircleDetail.json │ ├── schoolcircleDetail.wxml │ └── schoolcircleDetail.wxss ├── selectSchool │ ├── selectSchool.js │ ├── selectSchool.json │ ├── selectSchool.wxml │ └── selectSchool.wxss ├── shenfenValidation │ ├── shenfenValidation.js │ ├── shenfenValidation.json │ ├── shenfenValidation.wxml │ └── shenfenValidation.wxss ├── submitOrder │ ├── submitOrder.js │ ├── submitOrder.json │ ├── submitOrder.wxml │ └── submitOrder.wxss ├── submitOrderMsg │ ├── submitOrderMsg.js │ ├── submitOrderMsg.json │ ├── submitOrderMsg.wxml │ └── submitOrderMsg.wxss ├── submitSchoolCircle │ ├── submitSchoolCircle.js │ ├── submitSchoolCircle.json │ ├── submitSchoolCircle.wxml │ └── submitSchoolCircle.wxss ├── suggest │ ├── suggest.js │ ├── suggest.json │ ├── suggest.wxml │ └── suggest.wxss ├── util │ ├── util.js │ ├── util.json │ ├── util.wxml │ └── util.wxss ├── validation │ ├── validation.js │ ├── validation.json │ ├── validation.wxml │ └── validation.wxss ├── validationImage │ ├── validationImage.js │ ├── validationImage.json │ ├── validationImage.wxml │ └── validationImage.wxss └── validationStatus │ ├── validationStatus.js │ ├── validationStatus.json │ ├── validationStatus.wxml │ └── validationStatus.wxss └── utils ├── chinaUniversityList.js ├── md5.js └── util.js /README.md: -------------------------------------------------------------------------------- 1 | # wnschool 2 | 一个跑腿微信小程序前端部分,嵌入了微信支付,订单管理,发单接单,论坛社区,点赞,钱包等等功能
3 | 由于后台服务器已经过期,效果图有些采取原本的静态设计页面,有的采取获取不到数据后的页面。但作为一个微信小程序,它的第一版本是完整的。
4 | ![image](https://github.com/1996liang/project/blob/master/image/Screenshot_2018-08-29-18-03-40-601_com.tencent.mm.png)
5 | ![image](https://github.com/1996liang/project/blob/master/image/Screenshot_2018-08-29-18-03-47-349_com.tencent.mm.png)
6 | ![image](https://github.com/1996liang/project/blob/master/image/Screenshot_2018-08-29-18-03-57-545_com.tencent.mm.png)
7 | ![image](https://github.com/1996liang/project/blob/master/image/Screenshot_2018-08-29-18-04-18-850_com.tencent.mm.png)
8 | ![image](https://github.com/1996liang/project/blob/master/image/Screenshot_2018-08-29-18-04-27-238_com.tencent.mm.png)
9 | ![image](https://github.com/1996liang/project/blob/master/image/Screenshot_2018-08-29-18-04-41-389_com.tencent.mm.png)
10 | ![image](https://github.com/1996liang/project/blob/master/image/Screenshot_2018-08-29-18-09-12-455_com.tencent.mm.png)
11 | ![image](https://github.com/1996liang/project/blob/master/image/无标题2.png)
12 | -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- 1 | //app.js 2 | App({ 3 | onLaunch: function () { 4 | //调用API从本地缓存中获取数据 5 | // var logs = wx.getStorageSync('logs') || [] 6 | // logs.unshift(Date.now()) 7 | // wx.setStorageSync('logs', logs) 8 | this.getUserInfo(); 9 | }, 10 | getUserInfo:function(){ 11 | var that = this 12 | if (wx.getStorageSync("userInfo")){ 13 | }else{ 14 | //调用登录接口 15 | wx.login({ 16 | success: function (res1) { 17 | var code = res1.code; 18 | wx.getUserInfo({ 19 | success: function (res1) { 20 | console.log(res1) 21 | that.globalData.userInfo = res1.userInfo 22 | wx.request({ 23 | url: 'https://api.wnschool.cn/user-save', 24 | data: { 25 | "code":code, 26 | "clientJSONString": JSON.stringify(res1.userInfo) 27 | }, 28 | header: { 29 | "Content-Type": "application/x-www-form-urlencoded" 30 | }, 31 | method:'POST', 32 | success:function(res){ 33 | console.log(res) 34 | if(res.data!="code is null"){ 35 | console.log(res); 36 | that.globalData.userInfo.openid = res.data.openid; 37 | that.globalData.userInfo.id = res.data.id; 38 | wx.setStorageSync('userInfo', res.data); 39 | } 40 | } 41 | }) 42 | } 43 | }) 44 | } 45 | }) 46 | } 47 | }, 48 | globalData:{ 49 | userInfo:null 50 | } 51 | }) -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | { 2 | "pages": [ 3 | "pages/run/run", 4 | "pages/selectSchool/selectSchool", 5 | "pages/submitOrder/submitOrder", 6 | "pages/orderManager/orderManager", 7 | "pages/msgSchool/msgSchool", 8 | "pages/submitOrderMsg/submitOrderMsg", 9 | "pages/phoneNumber/phoneNumber", 10 | "pages/schoolcircle/schoolcircle", 11 | "pages/balance/balance", 12 | "pages/msgWallet/msgWallet", 13 | "pages/orderDetail/orderDetail", 14 | "pages/privateOrder/privateOrder", 15 | "pages/orderLootPrivate/orderLootPrivate", 16 | "pages/util/util", 17 | "pages/validationStatus/validationStatus", 18 | "pages/validationImage/validationImage", 19 | "pages/validation/validation", 20 | "pages/shenfenValidation/shenfenValidation", 21 | "pages/msgOrder/msgOrder", 22 | "pages/my/my", 23 | "pages/balance/tixian/tixian", 24 | "pages/orderLootEvaluate/orderLootEvaluate", 25 | "pages/schoolcircleDetail/schoolcircleDetail", 26 | "pages/guanyuwomen/guanyuwomen", 27 | "pages/evaluate/evaluate", 28 | "pages/suggest/suggest", 29 | "pages/submitSchoolCircle/submitSchoolCircle" 30 | ], 31 | "window": { 32 | "backgroundTextStyle": "dark", 33 | "navigationBarBackgroundColor": "#58ABDF", 34 | "navigationBarTitleText": "万能校园", 35 | "navigationBarTextStyle": "white" 36 | }, 37 | "tabBar": { 38 | "selectedColor": "#418DEB", 39 | "list": [ 40 | { 41 | "pagePath": "pages/run/run", 42 | "text": "跑腿", 43 | "iconPath": "/image/icon/跑腿团.png", 44 | "selectedIconPath": "/image/icon/跑腿团(1).png" 45 | }, 46 | { 47 | "pagePath": "pages/schoolcircle/schoolcircle", 48 | "text": "校圈", 49 | "iconPath": "/image/icon/圈.png", 50 | "selectedIconPath": "/image/icon/圈(1).png" 51 | }, 52 | { 53 | "pagePath": "pages/my/my", 54 | "text": "我", 55 | "iconPath": "/image/icon/我.png", 56 | "selectedIconPath": "/image/icon/我(1).png" 57 | } 58 | ] 59 | } 60 | } -------------------------------------------------------------------------------- /app.wxss: -------------------------------------------------------------------------------- 1 | /**app.wxss**/ 2 | .container { 3 | height: 100%; 4 | display: flex; 5 | flex-direction: column; 6 | align-items: center; 7 | justify-content: space-between; 8 | padding: 200rpx 0; 9 | box-sizing: border-box; 10 | } 11 | -------------------------------------------------------------------------------- /image/icon/address.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/address.png -------------------------------------------------------------------------------- /image/icon/boy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/boy.png -------------------------------------------------------------------------------- /image/icon/cancel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/cancel.png -------------------------------------------------------------------------------- /image/icon/cancelOrder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/cancelOrder.png -------------------------------------------------------------------------------- /image/icon/edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/edit.png -------------------------------------------------------------------------------- /image/icon/end.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/end.png -------------------------------------------------------------------------------- /image/icon/evaluate-empty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/evaluate-empty.png -------------------------------------------------------------------------------- /image/icon/evaluate-light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/evaluate-light.png -------------------------------------------------------------------------------- /image/icon/float.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/float.png -------------------------------------------------------------------------------- /image/icon/girl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/girl.png -------------------------------------------------------------------------------- /image/icon/houtui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/houtui.png -------------------------------------------------------------------------------- /image/icon/jiantou.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/jiantou.png -------------------------------------------------------------------------------- /image/icon/know.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/know.png -------------------------------------------------------------------------------- /image/icon/loot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/loot.png -------------------------------------------------------------------------------- /image/icon/money.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/money.png -------------------------------------------------------------------------------- /image/icon/msg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/msg.png -------------------------------------------------------------------------------- /image/icon/nickName.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/nickName.png -------------------------------------------------------------------------------- /image/icon/orderManager.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/orderManager.png -------------------------------------------------------------------------------- /image/icon/person0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/person0.png -------------------------------------------------------------------------------- /image/icon/person1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/person1.png -------------------------------------------------------------------------------- /image/icon/person2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/person2.png -------------------------------------------------------------------------------- /image/icon/person3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/person3.png -------------------------------------------------------------------------------- /image/icon/person4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/person4.png -------------------------------------------------------------------------------- /image/icon/qianbao.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/qianbao.png -------------------------------------------------------------------------------- /image/icon/return.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/return.png -------------------------------------------------------------------------------- /image/icon/school.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/school.png -------------------------------------------------------------------------------- /image/icon/school1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/school1.png -------------------------------------------------------------------------------- /image/icon/select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/select.png -------------------------------------------------------------------------------- /image/icon/selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/selected.png -------------------------------------------------------------------------------- /image/icon/sex.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/sex.png -------------------------------------------------------------------------------- /image/icon/shang(1).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/shang(1).png -------------------------------------------------------------------------------- /image/icon/success.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/success.png -------------------------------------------------------------------------------- /image/icon/successTime.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/successTime.png -------------------------------------------------------------------------------- /image/icon/validation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/validation.png -------------------------------------------------------------------------------- /image/icon/wannengxiaoyuan.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/wannengxiaoyuan.jpg -------------------------------------------------------------------------------- /image/icon/we.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/we.png -------------------------------------------------------------------------------- /image/icon/xia(2).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/xia(2).png -------------------------------------------------------------------------------- /image/icon/xia.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/xia.png -------------------------------------------------------------------------------- /image/icon/xia1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/xia1.png -------------------------------------------------------------------------------- /image/icon/圈(1).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/圈(1).png -------------------------------------------------------------------------------- /image/icon/圈.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/圈.png -------------------------------------------------------------------------------- /image/icon/我(1).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/我(1).png -------------------------------------------------------------------------------- /image/icon/我.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/我.png -------------------------------------------------------------------------------- /image/icon/跑腿团(1).png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/跑腿团(1).png -------------------------------------------------------------------------------- /image/icon/跑腿团.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/1996liang/wnschool/3e6b104f83e0ee162ad92765ae75e77e22ba3564/image/icon/跑腿团.png -------------------------------------------------------------------------------- /lib/xmldom/__package__.js: -------------------------------------------------------------------------------- 1 | this.addScript('dom.js',['DOMImplementation','XMLSerializer']); 2 | this.addScript('dom-parser.js',['DOMHandler','DOMParser'], 3 | ['DOMImplementation','XMLReader']); 4 | this.addScript('sax.js','XMLReader'); -------------------------------------------------------------------------------- /lib/xmldom/entities.js: -------------------------------------------------------------------------------- 1 | exports.entityMap = { 2 | lt: '<', 3 | gt: '>', 4 | amp: '&', 5 | quot: '"', 6 | apos: "'", 7 | Agrave: "À", 8 | Aacute: "Á", 9 | Acirc: "Â", 10 | Atilde: "Ã", 11 | Auml: "Ä", 12 | Aring: "Å", 13 | AElig: "Æ", 14 | Ccedil: "Ç", 15 | Egrave: "È", 16 | Eacute: "É", 17 | Ecirc: "Ê", 18 | Euml: "Ë", 19 | Igrave: "Ì", 20 | Iacute: "Í", 21 | Icirc: "Î", 22 | Iuml: "Ï", 23 | ETH: "Ð", 24 | Ntilde: "Ñ", 25 | Ograve: "Ò", 26 | Oacute: "Ó", 27 | Ocirc: "Ô", 28 | Otilde: "Õ", 29 | Ouml: "Ö", 30 | Oslash: "Ø", 31 | Ugrave: "Ù", 32 | Uacute: "Ú", 33 | Ucirc: "Û", 34 | Uuml: "Ü", 35 | Yacute: "Ý", 36 | THORN: "Þ", 37 | szlig: "ß", 38 | agrave: "à", 39 | aacute: "á", 40 | acirc: "â", 41 | atilde: "ã", 42 | auml: "ä", 43 | aring: "å", 44 | aelig: "æ", 45 | ccedil: "ç", 46 | egrave: "è", 47 | eacute: "é", 48 | ecirc: "ê", 49 | euml: "ë", 50 | igrave: "ì", 51 | iacute: "í", 52 | icirc: "î", 53 | iuml: "ï", 54 | eth: "ð", 55 | ntilde: "ñ", 56 | ograve: "ò", 57 | oacute: "ó", 58 | ocirc: "ô", 59 | otilde: "õ", 60 | ouml: "ö", 61 | oslash: "ø", 62 | ugrave: "ù", 63 | uacute: "ú", 64 | ucirc: "û", 65 | uuml: "ü", 66 | yacute: "ý", 67 | thorn: "þ", 68 | yuml: "ÿ", 69 | nbsp: " ", 70 | iexcl: "¡", 71 | cent: "¢", 72 | pound: "£", 73 | curren: "¤", 74 | yen: "¥", 75 | brvbar: "¦", 76 | sect: "§", 77 | uml: "¨", 78 | copy: "©", 79 | ordf: "ª", 80 | laquo: "«", 81 | not: "¬", 82 | shy: "­­", 83 | reg: "®", 84 | macr: "¯", 85 | deg: "°", 86 | plusmn: "±", 87 | sup2: "²", 88 | sup3: "³", 89 | acute: "´", 90 | micro: "µ", 91 | para: "¶", 92 | middot: "·", 93 | cedil: "¸", 94 | sup1: "¹", 95 | ordm: "º", 96 | raquo: "»", 97 | frac14: "¼", 98 | frac12: "½", 99 | frac34: "¾", 100 | iquest: "¿", 101 | times: "×", 102 | divide: "÷", 103 | forall: "∀", 104 | part: "∂", 105 | exist: "∃", 106 | empty: "∅", 107 | nabla: "∇", 108 | isin: "∈", 109 | notin: "∉", 110 | ni: "∋", 111 | prod: "∏", 112 | sum: "∑", 113 | minus: "−", 114 | lowast: "∗", 115 | radic: "√", 116 | prop: "∝", 117 | infin: "∞", 118 | ang: "∠", 119 | and: "∧", 120 | or: "∨", 121 | cap: "∩", 122 | cup: "∪", 123 | 'int': "∫", 124 | there4: "∴", 125 | sim: "∼", 126 | cong: "≅", 127 | asymp: "≈", 128 | ne: "≠", 129 | equiv: "≡", 130 | le: "≤", 131 | ge: "≥", 132 | sub: "⊂", 133 | sup: "⊃", 134 | nsub: "⊄", 135 | sube: "⊆", 136 | supe: "⊇", 137 | oplus: "⊕", 138 | otimes: "⊗", 139 | perp: "⊥", 140 | sdot: "⋅", 141 | Alpha: "Α", 142 | Beta: "Β", 143 | Gamma: "Γ", 144 | Delta: "Δ", 145 | Epsilon: "Ε", 146 | Zeta: "Ζ", 147 | Eta: "Η", 148 | Theta: "Θ", 149 | Iota: "Ι", 150 | Kappa: "Κ", 151 | Lambda: "Λ", 152 | Mu: "Μ", 153 | Nu: "Ν", 154 | Xi: "Ξ", 155 | Omicron: "Ο", 156 | Pi: "Π", 157 | Rho: "Ρ", 158 | Sigma: "Σ", 159 | Tau: "Τ", 160 | Upsilon: "Υ", 161 | Phi: "Φ", 162 | Chi: "Χ", 163 | Psi: "Ψ", 164 | Omega: "Ω", 165 | alpha: "α", 166 | beta: "β", 167 | gamma: "γ", 168 | delta: "δ", 169 | epsilon: "ε", 170 | zeta: "ζ", 171 | eta: "η", 172 | theta: "θ", 173 | iota: "ι", 174 | kappa: "κ", 175 | lambda: "λ", 176 | mu: "μ", 177 | nu: "ν", 178 | xi: "ξ", 179 | omicron: "ο", 180 | pi: "π", 181 | rho: "ρ", 182 | sigmaf: "ς", 183 | sigma: "σ", 184 | tau: "τ", 185 | upsilon: "υ", 186 | phi: "φ", 187 | chi: "χ", 188 | psi: "ψ", 189 | omega: "ω", 190 | thetasym: "ϑ", 191 | upsih: "ϒ", 192 | piv: "ϖ", 193 | OElig: "Œ", 194 | oelig: "œ", 195 | Scaron: "Š", 196 | scaron: "š", 197 | Yuml: "Ÿ", 198 | fnof: "ƒ", 199 | circ: "ˆ", 200 | tilde: "˜", 201 | ensp: " ", 202 | emsp: " ", 203 | thinsp: " ", 204 | zwnj: "‌", 205 | zwj: "‍", 206 | lrm: "‎", 207 | rlm: "‏", 208 | ndash: "–", 209 | mdash: "—", 210 | lsquo: "‘", 211 | rsquo: "’", 212 | sbquo: "‚", 213 | ldquo: "“", 214 | rdquo: "”", 215 | bdquo: "„", 216 | dagger: "†", 217 | Dagger: "‡", 218 | bull: "•", 219 | hellip: "…", 220 | permil: "‰", 221 | prime: "′", 222 | Prime: "″", 223 | lsaquo: "‹", 224 | rsaquo: "›", 225 | oline: "‾", 226 | euro: "€", 227 | trade: "™", 228 | larr: "←", 229 | uarr: "↑", 230 | rarr: "→", 231 | darr: "↓", 232 | harr: "↔", 233 | crarr: "↵", 234 | lceil: "⌈", 235 | rceil: "⌉", 236 | lfloor: "⌊", 237 | rfloor: "⌋", 238 | loz: "◊", 239 | spades: "♠", 240 | clubs: "♣", 241 | hearts: "♥", 242 | diams: "♦" 243 | }; 244 | //for(var n in exports.entityMap){console.log(exports.entityMap[n].charCodeAt())} -------------------------------------------------------------------------------- /pages/balance/balance.js: -------------------------------------------------------------------------------- 1 | // pages/balance/balance.js 2 | Page({ 3 | data:{}, 4 | onLoad:function(options){ 5 | // 页面初始化 options为页面跳转所带来的参数 6 | var userInfo = wx.getStorageSync("userInfo"); 7 | var that = this; 8 | console.log(userInfo); 9 | this.setData({ 10 | "userInfo": userInfo 11 | }) 12 | if(userInfo!=null){ 13 | this.getMoney(); 14 | }else{ 15 | wx.showModal({ 16 | title: '用户未登录,请重新登录', 17 | content: '', 18 | showCancel:false 19 | }) 20 | } 21 | }, 22 | onReady:function(){ 23 | // 页面渲染完成 24 | }, 25 | onShow:function(){ 26 | // 页面显示 27 | }, 28 | onHide:function(){ 29 | // 页面隐藏 30 | }, 31 | onUnload:function(){ 32 | // 页面关闭 33 | }, 34 | returnMy:function(){ 35 | wx.switchTab({ 36 | "url":"/pages/my/my" 37 | }) 38 | }, 39 | withdraw:function(){ 40 | console.log(123) 41 | var that = this; 42 | wx.navigateTo({ 43 | url:"/pages/balance/tixian/tixian?balance="+that.data.balance 44 | }) 45 | // wx.showModal({ 46 | // "title": '提现', 47 | // "content": '你确定要提现50元吗', 48 | // "showCancel":true, 49 | // success: function (res) { 50 | // if (res.confirm) { 51 | // wx.showToast({ 52 | // title: '提现成功', 53 | // icon: 'success', 54 | // duration: 2000, 55 | // mask:true 56 | // }) 57 | // } else if (res.cancel) { 58 | // console.log('用户点击取消') 59 | // } 60 | // } 61 | // }) 62 | }, 63 | getMoney(){ 64 | var that = this; 65 | var util = require('../../utils/util.js'); 66 | wx.request({ 67 | url: 'https://api.wnschool.cn/user-getUserCashFlow', 68 | data: { 69 | "user.id":that.data.userInfo.id 70 | // "tiezi.images":that.data.imagesPath 71 | }, 72 | header: { 73 | "Content-Type": "application/x-www-form-urlencoded" 74 | }, 75 | method: 'POST', 76 | success: function (res) { 77 | // getUserCashFlow 78 | console.log(res); 79 | that.setData({balance:res.data.balance}); 80 | if (res.data.userCashFlow.length != 0) { 81 | console.log(res.data.userCashFlow.length) 82 | for (var i = 0; i < res.data.userCashFlow.length; i++) { 83 | var time = that.DateUtil(res.data.userCashFlow[i].createTime); 84 | var times = time.split("/"); 85 | res.data.userCashFlow[i].createTime= times; 86 | if (res.data.userCashFlow[i].sendUserId==0){ 87 | res.data.userCashFlow[i].avatarUrl="/image/icon/wannengxiaoyuan.jpg"; 88 | res.data.userCashFlow[i].cashFlow = "-" + res.data.userCashFlow[i].cashFlow; 89 | res.data.userCashFlow[i].msg = " 你提现了一笔钱"; 90 | } else if (res.data.userCashFlow[i].fromUserId == 0){ 91 | res.data.userCashFlow[i].avatarUrl = "/image/icon/wannengxiaoyuan.jpg"; 92 | res.data.userCashFlow[i].cashFlow = "+" + res.data.userCashFlow[i].cashFlow; 93 | res.data.userCashFlow[i].msg = res.data.userCashFlow[i].nickName + " 向你支付了一笔钱"; 94 | }else{ 95 | res.data.userCashFlow[i].cashFlow = "+" + res.data.userCashFlow[i].cashFlow; 96 | res.data.userCashFlow[i].msg = res.data.userCashFlow[i].nickName+" 向你支付了一笔钱"; 97 | } 98 | } 99 | that.setData({ data: res.data.userCashFlow }); 100 | } else { 101 | that.setData({ tishi: false }); 102 | } 103 | } 104 | }); 105 | }, 106 | DateUtil:function(date){ 107 | var xianzai = new Date(); 108 | var date = new Date(date); 109 | if(xianzai.getFullYear()==date.getFullYear()&&xianzai.getMonth()==date.getMonth()&&xianzai.getDate()==date.getDate()){ 110 | return "今天 /" + date.getHours() + ":" + date.getMinutes(); 111 | }else{ 112 | return date.getMonth()+1 +" - "+ date.getDate() + "/" + date.getHours() + ":" + date.getMinutes(); 113 | } 114 | } 115 | }) -------------------------------------------------------------------------------- /pages/balance/balance.json: -------------------------------------------------------------------------------- 1 | { 2 | "backgroundTextStyle":"dark", 3 | "navigationBarBackgroundColor": "#58ABDF", 4 | "navigationBarTitleText": "钱包", 5 | "navigationBarTextStyle":"white" 6 | } -------------------------------------------------------------------------------- /pages/balance/balance.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {{balance}} 6 | 7 | 8 | 9 | 10 | 11 | 12 | {{item.createTime[0]}}\n 13 | {{item.createTime[1]}} 14 | 15 | 16 | 17 | 18 | 19 | {{item.cashFlow}}.00\n 20 | {{item.msg}} 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /pages/balance/balance.wxss: -------------------------------------------------------------------------------- 1 | page { 2 | background-color: #f8f8f8; 3 | } 4 | 5 | .head { 6 | background-color: #ededed; 7 | height: 250rpx; 8 | border-bottom: 4px solid #e2e2e2; 9 | position: relative; 10 | } 11 | .head view{ 12 | font-size: 100rpx; 13 | position: absolute; 14 | color: #F15354; 15 | right: 10%; 16 | bottom: 10%; 17 | font-weight: bold; 18 | } 19 | .xuanxiang { 20 | display: flex; 21 | padding-top: 50rpx; 22 | align-items: center; 23 | height: 100rpx; 24 | } 25 | 26 | .dateView { 27 | margin-left: 50rpx; 28 | } 29 | 30 | .day { 31 | font-size: 35rpx; 32 | font-weight: 600; 33 | } 34 | 35 | 36 | .minute { 37 | font-size: 25rpx; 38 | } 39 | 40 | .body{ 41 | margin-bottom: 180rpx; 42 | } 43 | 44 | .avatarUrl { 45 | border-radius: 50%; 46 | height: 90rpx; 47 | width: 90rpx; 48 | background-color: #438aca; 49 | border: 2px solid #e2e2e2; 50 | margin-left: 25rpx; 51 | } 52 | .avatarUrl image{ 53 | height: 90rpx; 54 | width: 90rpx; 55 | border-radius: 50%; 56 | } 57 | 58 | .money { 59 | font-size: 50rpx; 60 | font-weight: 800; 61 | } 62 | 63 | .msg { 64 | font-size: 9.5pt; 65 | font-weight: 500; 66 | color: #acacac; 67 | } 68 | 69 | .msgView { 70 | padding-left: 40rpx; 71 | } 72 | 73 | .btn { 74 | width: 100%; 75 | display: flex; 76 | position: fixed; 77 | bottom: 0px; 78 | } 79 | 80 | .deposit { 81 | border-radius: 0px; 82 | border: 2px solid #e2e2e2; 83 | width: 70%; 84 | color: white; 85 | background-color: #4999fc; 86 | } 87 | 88 | .return { 89 | border-radius: 0px; 90 | border: 2px solid #e2e2e2; 91 | width: 30%; 92 | background-color: #F8F8F8; 93 | } 94 | -------------------------------------------------------------------------------- /pages/balance/tixian/tixian.js: -------------------------------------------------------------------------------- 1 | // pages/balance/tixian/tixian.js 2 | Page({ 3 | 4 | /** 5 | * 页面的初始数据 6 | */ 7 | data: { 8 | 9 | }, 10 | 11 | /** 12 | * 生命周期函数--监听页面加载 13 | */ 14 | onLoad: function (options) { 15 | var userInfo = wx.getStorageSync("userInfo"); 16 | var that = this; 17 | this.setData({ 18 | "userInfo": userInfo, 19 | balance: options.balance 20 | }) 21 | }, 22 | 23 | /** 24 | * 生命周期函数--监听页面初次渲染完成 25 | */ 26 | onReady: function () { 27 | 28 | }, 29 | 30 | /** 31 | * 生命周期函数--监听页面显示 32 | */ 33 | onShow: function () { 34 | 35 | }, 36 | 37 | /** 38 | * 生命周期函数--监听页面隐藏 39 | */ 40 | onHide: function () { 41 | 42 | }, 43 | 44 | /** 45 | * 生命周期函数--监听页面卸载 46 | */ 47 | onUnload: function () { 48 | 49 | }, 50 | 51 | /** 52 | * 页面相关事件处理函数--监听用户下拉动作 53 | */ 54 | onPullDownRefresh: function () { 55 | 56 | }, 57 | 58 | /** 59 | * 页面上拉触底事件的处理函数 60 | */ 61 | onReachBottom: function () { 62 | 63 | }, 64 | getMsg: function (options) { 65 | this.setData({ value: options.detail.value }); 66 | }, 67 | /** 68 | * 用户点击右上角分享 69 | */ 70 | onShareAppMessage: function () { 71 | 72 | }, 73 | jine: function () { 74 | this.setData({ value: this.data.balance }); 75 | }, 76 | send: function () { 77 | var that = this; 78 | if (this.data.balance == 0 || this.data.value == 0){ 79 | console.log(123) 80 | }else if (this.data.balance >= this.data.value) { 81 | wx.showModal({ 82 | "title": '提现', 83 | "content": "你确定要提现" + this.data.value + "元吗", 84 | "showCancel": true, 85 | success: function (res) { 86 | if (res.confirm) { 87 | that.request(that.data.value); 88 | wx.showToast({ 89 | title: '提现申请成功', 90 | icon: 'success', 91 | duration: 2000, 92 | mask: true, 93 | }) 94 | setTimeout(function(){ 95 | wx.navigateBack({ 96 | delta: 1 97 | }) 98 | },2000) 99 | } else if (res.cancel) { 100 | console.log('用户点击取消') 101 | } 102 | } 103 | }) 104 | }else{ 105 | console.log(321) 106 | } 107 | }, 108 | request:function(money){ 109 | var that = this; 110 | wx.request({ 111 | url: 'https://api.wnschool.cn/tixian-save', 112 | data: { 113 | "tixian.user.id": that.data.userInfo.id, 114 | "tixian.money": money 115 | }, 116 | header: { 117 | "Content-Type": "application/x-www-form-urlencoded" 118 | }, 119 | method: 'POST', 120 | success: function (res) { 121 | console.log(res); 122 | 123 | } 124 | }); 125 | } 126 | }) -------------------------------------------------------------------------------- /pages/balance/tixian/tixian.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /pages/balance/tixian/tixian.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 提现方式 4 | 支付宝提现 5 | 6 | 7 | 提现金额 8 | 9 | 10 | 11 | 可用余额 {{balance}} 元, 全部提现 12 | 13 | 14 | -------------------------------------------------------------------------------- /pages/balance/tixian/tixian.wxss: -------------------------------------------------------------------------------- 1 | page { 2 | /*background-color: #f9f9f9;*/ 3 | } 4 | 5 | .table { 6 | width: 90%; 7 | border-radius: 5%; 8 | background-color: white; 9 | margin: 0 auto; 10 | margin-top: 30rpx; 11 | border: 3px solid #f9f9f9; 12 | } 13 | 14 | .type1 { 15 | width: 100%; 16 | margin: 0 auto; 17 | height: 150rpx; 18 | display: flex; 19 | align-items: center; 20 | background-color: #f2f2f2; 21 | } 22 | 23 | .typeText { 24 | font-size: 35rpx; 25 | color:#000000; 26 | padding-left: 50rpx; 27 | } 28 | 29 | .typeText1 { 30 | font-size: 35rpx; 31 | color: #000000; 32 | padding-left: 50rpx; 33 | /*margin-top: 50rpx;*/ 34 | } 35 | .typeText1 { 36 | font-size: 35rpx; 37 | color: #000000; 38 | padding-left: 50rpx; 39 | font-weight:bold; 40 | } 41 | .money{ 42 | margin-top: 30rpx; 43 | } 44 | .money .i { 45 | height: 150rpx; 46 | font-size:45rpx; 47 | /*border-bottom: 1px solid #f9f9f9;*/ 48 | padding-left: 35rpx; 49 | } 50 | 51 | .moneyInput { 52 | width: 85%; 53 | margin: 0 auto; 54 | height: 150rpx; 55 | padding-left: 45rpx; 56 | font-size: 70rpx; 57 | border-bottom: 1px solid #DDDDDD; 58 | } 59 | 60 | .text1{ 61 | padding-top: 30rpx; 62 | padding-bottom:30rpx; 63 | padding-left: 50rpx; 64 | width: 90%; 65 | color: #898989; 66 | margin: 0 auto; 67 | font-size: 27rpx; 68 | } 69 | button{ 70 | width: 90%; 71 | margin-top: 100rpx; 72 | } 73 | .quanbu{ 74 | color: #0A0AAE; 75 | font-weight: bold; 76 | } 77 | -------------------------------------------------------------------------------- /pages/evaluate/evaluate.js: -------------------------------------------------------------------------------- 1 | // pages/evaluate/evaluate.js 2 | Page({ 3 | 4 | /** 5 | * 页面的初始数据 6 | */ 7 | data: { 8 | starImage: "/image/icon/evaluate-empty.png", 9 | starLightImage: "/image/icon/evaluate-light.png", 10 | lightCycle:3, 11 | emptyCycle:2 12 | }, 13 | 14 | /** 15 | * 生命周期函数--监听页面加载 16 | */ 17 | onLoad: function (options) { 18 | var orderId = options.orderId; 19 | var lootUserId = options.lootUserId; 20 | this.setData({orderId:orderId, 21 | lootUserId: lootUserId 22 | }); 23 | }, 24 | 25 | /** 26 | * 生命周期函数--监听页面初次渲染完成 27 | */ 28 | onReady: function () { 29 | 30 | }, 31 | 32 | /** 33 | * 生命周期函数--监听页面显示 34 | */ 35 | onShow: function () { 36 | 37 | }, 38 | 39 | /** 40 | * 生命周期函数--监听页面隐藏 41 | */ 42 | onHide: function () { 43 | 44 | }, 45 | 46 | /** 47 | * 生命周期函数--监听页面卸载 48 | */ 49 | onUnload: function () { 50 | 51 | }, 52 | 53 | /** 54 | * 页面相关事件处理函数--监听用户下拉动作 55 | */ 56 | onPullDownRefresh: function () { 57 | 58 | }, 59 | 60 | /** 61 | * 页面上拉触底事件的处理函数 62 | */ 63 | onReachBottom: function () { 64 | 65 | }, 66 | 67 | /** 68 | * 用户点击右上角分享 69 | */ 70 | onShareAppMessage: function () { 71 | 72 | }, 73 | 74 | /** 75 | * 页面上拉触底事件的处理函数 76 | */ 77 | onReachBottom: function () { 78 | 79 | }, 80 | 81 | /** 82 | * 页面相关事件处理函数--监听用户下拉动作 83 | */ 84 | onPullDownRefresh: function () { 85 | 86 | }, 87 | getInnput:function(options){ 88 | console.log(options.detail.value); 89 | this.setData({ content: options.detail.value}) 90 | }, 91 | star:function(options){ 92 | var that = this; 93 | var star =options.target.dataset.star; 94 | var stars = star.split("-"); 95 | star = stars[1]; 96 | var light; 97 | if(stars[0]=="light"){ 98 | light = parseInt(star) + 1; 99 | }else{ 100 | light = parseInt(star) + 1 + that.data.lightCycle; 101 | } 102 | var empty = 5 - light; 103 | this.setData({ 104 | lightCycle: light, 105 | emptyCycle: empty 106 | }); 107 | }, 108 | send:function(){ 109 | var star = this.data.lightCycle; 110 | var orderId = this.data.orderId; 111 | var lootUserId = this.data.lootUserId; 112 | var content = this.data.content; 113 | var that = this; 114 | wx.request({ 115 | url: 'https://api.wnschool.cn/evaluate-save', 116 | data: { 117 | "order.id": orderId, 118 | "user.id": lootUserId, 119 | "evaluate.content":content, 120 | "evaluate.stars":star 121 | // "tiezi.images":that.data.imagesPath 122 | }, 123 | header: { 124 | "Content-Type": "application/x-www-form-urlencoded" 125 | }, 126 | method: 'POST', 127 | success: function (res) { 128 | console.log(res); 129 | if(res.data=="success"){ 130 | wx.showToast({ 131 | title: "评价成功", 132 | success: function () { 133 | 134 | setTimeout(function () { 135 | wx.hideToast(); 136 | wx.redirectTo({ 137 | url: '/pages/orderManager/orderManager', 138 | }) 139 | }, 2000) 140 | } 141 | }) 142 | } 143 | } 144 | }); 145 | } 146 | }) -------------------------------------------------------------------------------- /pages/evaluate/evaluate.json: -------------------------------------------------------------------------------- 1 | { 2 | "backgroundTextStyle": "dark", 3 | "navigationBarBackgroundColor": "#58ABDF", 4 | "navigationBarTitleText": "评价", 5 | "navigationBarTextStyle": "white" 6 | } -------------------------------------------------------------------------------- /pages/evaluate/evaluate.wxml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 你对抢单人的服务满意吗?\n 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |