├── 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 | 
5 | 
6 | 
7 | 
8 | 
9 | 
10 | 
11 | 
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 |
17 |
18 |
19 | 你的评价就是对抢单人的肯定\n
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/pages/evaluate/evaluate.wxss:
--------------------------------------------------------------------------------
1 | /* pages/evaluate/evaluate.wxss */
2 | page{
3 | margin:0 auto;
4 | text-align: center;
5 | background-color: #F8F8F8;
6 | }
7 | .big{
8 | margin-top: 100rpx;
9 | }
10 | .zi{
11 | color: #D4D8DC;
12 | font-size: 28rpx;
13 | font-weight: bold;
14 | margin-bottom: 25rpx;
15 | letter-spacing: 3rpx;
16 | }
17 | .zi1{
18 | color: #D4D8DC;
19 | font-size: 23rpx;
20 | font-weight: bold;
21 | margin-top: 20rpx;
22 | }
23 | .zi1 text{
24 | letter-spacing: 4rpx;
25 | }
26 | .star{
27 | margin-bottom: 35rpx;
28 | }
29 | image{
30 | width:100rpx;
31 | padding: 0px 7rpx 0px 7rpx;
32 | height:100rpx;
33 | }
34 | textarea{
35 | width: 100%;
36 | height:600rpx;
37 | }
38 | .edit{
39 | margin: 0 auto;
40 | padding: 25rpx;
41 | background-color:white;
42 | border: 2px solid #C7C7C7;
43 | width: 60%;
44 | }
45 | .btnView{
46 | position: fixed;
47 | bottom: 0px;
48 | display: flex;
49 | width: 100%;
50 | font-size: 35rpx;
51 | border-radius: 0px;
52 | }
53 | .btnView .cancel{
54 | width: 30%;
55 | border-radius: 0px;
56 | border-bottom-right-radius: 0px;
57 | padding: 5rpx;
58 | font-weight: 600;
59 | border: 1px solid #C9C9C9;
60 | }
61 | .btnView .send{
62 | width:70%;
63 | border-radius: 0px;
64 | padding: 5rpx;
65 | background-color: #418DEB;
66 | color: white;
67 | font-weight: 600;
68 | border: 1px solid #C9C9C9;
69 | }
--------------------------------------------------------------------------------
/pages/guanyuwomen/guanyuwomen.js:
--------------------------------------------------------------------------------
1 | // pages/guanyuwomen/guanyuwomen.js
2 | Page({
3 |
4 | /**
5 | * 页面的初始数据
6 | */
7 | data: {
8 |
9 | },
10 |
11 | /**
12 | * 生命周期函数--监听页面加载
13 | */
14 | onLoad: function (options) {
15 |
16 | },
17 |
18 | /**
19 | * 生命周期函数--监听页面初次渲染完成
20 | */
21 | onReady: function () {
22 |
23 | },
24 |
25 | /**
26 | * 生命周期函数--监听页面显示
27 | */
28 | onShow: function () {
29 |
30 | },
31 |
32 | /**
33 | * 生命周期函数--监听页面隐藏
34 | */
35 | onHide: function () {
36 |
37 | },
38 |
39 | /**
40 | * 生命周期函数--监听页面卸载
41 | */
42 | onUnload: function () {
43 |
44 | },
45 |
46 | /**
47 | * 页面相关事件处理函数--监听用户下拉动作
48 | */
49 | onPullDownRefresh: function () {
50 |
51 | },
52 |
53 | /**
54 | * 页面上拉触底事件的处理函数
55 | */
56 | onReachBottom: function () {
57 |
58 | },
59 |
60 | /**
61 | * 用户点击右上角分享
62 | */
63 | onShareAppMessage: function () {
64 |
65 | },
66 | return1: function () {
67 | wx.switchTab({
68 | url: '/pages/my/my',
69 | })
70 | }
71 | })
--------------------------------------------------------------------------------
/pages/guanyuwomen/guanyuwomen.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/pages/guanyuwomen/guanyuwomen.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/pages/guanyuwomen/guanyuwomen.wxss:
--------------------------------------------------------------------------------
1 | /* pages/guanyuwomen/guanyuwomen.wxss */
2 | .head image{
3 | width: 450rpx;
4 | height: 450rpx;
5 | }
6 | .head{
7 | background-color: #58ABDF;
8 | display: flex;
9 | justify-content: center;
10 | align-items: center;
11 | }
12 | .buttonView{
13 | position: fixed;
14 | bottom: 0px;
15 | width: 100%;
16 | }
17 | .button{
18 | background-color: #6CA9F9;
19 | border-radius: 0px;
20 | border: 2px solid gainsboro;
21 | font-size: 35rpx;
22 | color: white;
23 | font-weight: bold;
24 | }
--------------------------------------------------------------------------------
/pages/msgOrder/msgOrder.js:
--------------------------------------------------------------------------------
1 | // pages/msgOrder/msgOrder.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 | console.log(userInfo);
18 | this.setData({
19 | "userInfo": userInfo
20 | })
21 | this.getOrderStatusAndFinishTime();
22 | },
23 |
24 | /**
25 | * 生命周期函数--监听页面初次渲染完成
26 | */
27 | onReady: function () {
28 |
29 | },
30 |
31 | /**
32 | * 生命周期函数--监听页面显示
33 | */
34 | onShow: function () {
35 |
36 | },
37 |
38 | /**
39 | * 生命周期函数--监听页面隐藏
40 | */
41 | onHide: function () {
42 |
43 | },
44 |
45 | /**
46 | * 生命周期函数--监听页面卸载
47 | */
48 | onUnload: function () {
49 |
50 | },
51 |
52 | /**
53 | * 页面相关事件处理函数--监听用户下拉动作
54 | */
55 | onPullDownRefresh: function () {
56 |
57 | },
58 |
59 | /**
60 | * 页面上拉触底事件的处理函数
61 | */
62 | onReachBottom: function () {
63 |
64 | },
65 |
66 | /**
67 | * 用户点击右上角分享
68 | */
69 | onShareAppMessage: function () {
70 |
71 | },
72 |
73 | /**
74 | * 页面上拉触底事件的处理函数
75 | */
76 | onReachBottom: function () {
77 |
78 | },
79 |
80 | /**
81 | * 页面相关事件处理函数--监听用户下拉动作
82 | */
83 | onPullDownRefresh: function () {
84 |
85 | },
86 | wallet:function(){
87 | wx.redirectTo({
88 | url: '/pages/msgWallet/msgWallet',
89 | })
90 | },
91 | school: function () {
92 | wx.redirectTo({
93 | url: '/pages/msgSchool/msgSchool',
94 | })
95 | },
96 | return1:function(){
97 | // getOrderStatusAndFinishTime
98 | wx.switchTab({
99 | url: '/pages/my/my',
100 | })
101 | },
102 | getOrderStatusAndFinishTime:function(){
103 | var that = this;
104 | var util = require('../../utils/util.js');
105 | wx.request({
106 | url: 'https://api.wnschool.cn/order-getOrderStatusAndFinishTime',
107 | data: {
108 | "user.id":that.data.userInfo.id
109 | },
110 | header: {
111 | "Content-Type": "application/x-www-form-urlencoded"
112 | },
113 | method: 'POST',
114 | success: function (res) {
115 | if (res.data.length != 0) {
116 | for (var i = 0; i < res.data.length; i++) {
117 | var time = util.formatTime(res.data[i][0]);
118 | res.data[i][0] = time;
119 | var status = res.data[i][1];
120 | res.data[i][1] = that.getArray(status);
121 | }
122 | that.setData({ data: res.data });
123 | } else {
124 | that.setData({ tishi: false });
125 | }
126 | }
127 | });
128 | },
129 | getArray:function(i){
130 | var s0="您的订单正在等待接单中"
131 | var s1 = "您的订单已经被承接,请督促承接人完成订单";
132 | var s2 = "承接人已完成订单,请确认订单";
133 | var s3 = "您的订单已完成,祝您生活愉快";
134 | var a = new Array();
135 | switch(i){
136 | case 1:
137 | a.push(s0);
138 | break;
139 | case 2:
140 | a.push(s0);
141 | a.push(s1);
142 | break;
143 | case 3:
144 | a.push(s0);
145 | a.push(s1);
146 | a.push(s2);
147 | break;
148 | case 4:
149 | a.push(s0);
150 | a.push(s1);
151 | a.push(s2);
152 | a.push(s3);
153 | break;
154 | }
155 | return a;
156 | }
157 | })
--------------------------------------------------------------------------------
/pages/msgOrder/msgOrder.json:
--------------------------------------------------------------------------------
1 | {
2 | "backgroundTextStyle": "dark",
3 | "navigationBarBackgroundColor": "#58ABDF",
4 | "navigationBarTitleText": "信息详情",
5 | "navigationBarTextStyle": "white"
6 | }
--------------------------------------------------------------------------------
/pages/msgOrder/msgOrder.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | 4-30\n
10 | {{item[0]}}
11 |
12 |
13 |
14 |
15 |
16 | {{item}}
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/pages/msgOrder/msgOrder.wxss:
--------------------------------------------------------------------------------
1 | /* pages/msgOrder/msgOrder.wxss */
2 |
3 | page {
4 | background-color: #f8f8f8;
5 | }
6 |
7 | .fang {
8 | position: absolute;
9 | top: 6%;
10 | left: 9%;
11 | background-color: white;
12 | height: 10rpx;
13 | width: 15%;
14 | }
15 |
16 | .element {
17 | display: flex;
18 | border-bottom: 2px solid #eee;
19 | padding: 30rpx 0rpx 30rpx 0rpx;
20 | width: 100%;
21 | flex-wrap: wrap;
22 | }
23 |
24 | .date {
25 | text-align: center;
26 | height: 100%;
27 | width: 20%;
28 | }
29 |
30 | .day {
31 | font-weight: bolder;
32 | font-size: 44rpx;
33 | color: #3d3d3d;
34 | }
35 |
36 | .time {
37 | font-weight: bold;
38 | font-size: 30rpx;
39 | color: #3d3d3d;
40 | }
41 |
42 | .li {
43 | border-radius: 50%;
44 | width: 15rpx;
45 | height: 15rpx;
46 | background-color: #4f4f4f;
47 | margin-right: 10rpx;
48 | }
49 |
50 | .tishi {
51 | font-weight: bold;
52 | font-size: 28rpx;
53 | color: #a7a7a7;
54 | display: flex;
55 | justify-content: center;
56 | align-items: center;
57 | width: 100%;
58 | margin-bottom: 30rpx;
59 | }
60 |
61 | .tishi1 {
62 | width: 70%;
63 | }
64 |
65 | .tishi text {
66 | width: 90%;
67 | }
68 |
69 | .body{
70 | margin-bottom: 100rpx;
71 | }
72 | .buttonView{
73 | position: fixed;
74 | bottom: 0px;
75 | width: 100%;
76 | }
77 | .button{
78 | background-color: #6CA9F9;
79 | border-radius: 0px;
80 | border: 2px solid gainsboro;
81 | font-size: 35rpx;
82 | color: white;
83 | }
84 | @import "/pages/util/util.wxss"
85 |
--------------------------------------------------------------------------------
/pages/msgSchool/msgSchool.js:
--------------------------------------------------------------------------------
1 | // pages/msgSchool/msgSchool.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 | console.log(userInfo);
18 | this.setData({
19 | "userInfo": userInfo
20 | });
21 | this.getSchool();
22 | },
23 |
24 | /**
25 | * 生命周期函数--监听页面初次渲染完成
26 | */
27 | onReady: function () {
28 |
29 | },
30 |
31 | /**
32 | * 生命周期函数--监听页面显示
33 | */
34 | onShow: function () {
35 |
36 | },
37 |
38 | /**
39 | * 生命周期函数--监听页面隐藏
40 | */
41 | onHide: function () {
42 |
43 | },
44 |
45 | /**
46 | * 生命周期函数--监听页面卸载
47 | */
48 | onUnload: function () {
49 |
50 | },
51 |
52 | /**
53 | * 页面相关事件处理函数--监听用户下拉动作
54 | */
55 | onPullDownRefresh: function () {
56 |
57 | },
58 |
59 | /**
60 | * 页面上拉触底事件的处理函数
61 | */
62 | onReachBottom: function () {
63 |
64 | },
65 |
66 | /**
67 | * 用户点击右上角分享
68 | */
69 | onShareAppMessage: function () {
70 |
71 | },
72 |
73 | /**
74 | * 页面上拉触底事件的处理函数
75 | */
76 | onReachBottom: function () {
77 |
78 | },
79 |
80 | /**
81 | * 页面相关事件处理函数--监听用户下拉动作
82 | */
83 | onPullDownRefresh: function () {
84 |
85 | },
86 | order: function () {
87 | wx.redirectTo({
88 | url: '/pages/msgOrder/msgOrder',
89 | })
90 | },
91 | wallet: function () {
92 | wx.redirectTo({
93 | url: '/pages/msgWallet/msgWallet',
94 | })
95 | }
96 | ,
97 | return1: function () {
98 | wx.switchTab({
99 | url: '/pages/my/my',
100 | })
101 | },
102 | tiaozhuan:function(options){
103 | console.log(options.currentTarget.dataset.index);
104 | var index = options.currentTarget.dataset.index;
105 | var that= this;
106 | wx.navigateTo({
107 | url: '/pages/schoolcircleDetail/schoolcircleDetail?id=' + that.data.msg[index].schoolCircleCommentId,
108 | })
109 | },
110 | getSchool() {
111 | var that = this;
112 | var util = require('../../utils/util.js');
113 | wx.request({
114 | url: 'https://api.wnschool.cn/schoolCircle-getUserSchoolCircleMsg',
115 | data: {
116 | "user.id": that.data.userInfo.id
117 | // "tiezi.images":that.data.imagesPath
118 | },
119 | header: {
120 | "Content-Type": "application/x-www-form-urlencoded"
121 | },
122 | method: 'POST',
123 | success: function (res) {
124 | console.log(res);
125 | if (res.data.schoolcircle.length > 0) {
126 | for (var i = 0; i < res.data.schoolcircle.length; i++) {
127 | var time = util.formatTime(res.data.schoolcircle[i].createTime);
128 | res.data.schoolcircle[i].createTime = time;
129 | if (res.data.schoolcircle[i].content.length>50){
130 | res.data.schoolcircle[i].content = res.data.schoolcircle[i].content.substring(0,50)+"......";
131 | }
132 | }
133 | that.setData({ msg: res.data.schoolcircle});
134 | }
135 | }
136 | })
137 | }
138 | })
--------------------------------------------------------------------------------
/pages/msgSchool/msgSchool.json:
--------------------------------------------------------------------------------
1 | {
2 | "backgroundTextStyle": "dark",
3 | "navigationBarBackgroundColor": "#58ABDF",
4 | "navigationBarTitleText": "信息详情",
5 | "navigationBarTextStyle": "white"
6 | }
--------------------------------------------------------------------------------
/pages/msgSchool/msgSchool.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | {{item.nickName}}\n
12 | {{item.content}}
13 |
14 |
15 | {{item.createTime}}
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/pages/msgSchool/msgSchool.wxss:
--------------------------------------------------------------------------------
1 | page {
2 | background-color: #f8f8f8;
3 | }
4 |
5 | .fang {
6 | position: absolute;
7 | top: 6%;
8 | right: 9%;
9 | background-color: white;
10 | height: 10rpx;
11 | width: 15%;
12 | }
13 | .xuanxiang {
14 | display: flex;
15 | padding-top: 30rpx;
16 | /*align-items: center;*/
17 | /*height: 100rpx;*/
18 | position: relative;
19 | }
20 | .avatarUrl {
21 | border-radius: 50%;
22 | height: 90rpx;
23 | width: 90rpx;
24 | background-color: #438aca;
25 | border: 2px solid #e2e2e2;
26 | margin-left: 25rpx;
27 | }
28 | .avatarUrl image{
29 | width: 90rpx;
30 | height: 90rpx;
31 | border-radius: 50%;
32 | }
33 | .msgView {
34 | padding-left: 40rpx;
35 | width: 70%;
36 | }
37 | .title {
38 | font-size: 32rpx;
39 | font-weight: 800;
40 | }
41 |
42 | .msgView .content {
43 | font-size: 27rpx;
44 | font-weight: 500;
45 | color: #acacac;
46 | /*width: 10%;*/
47 | }
48 | .dateView {
49 | margin-left: 50rpx;
50 | position: absolute;
51 | right: 10%;
52 | }
53 | .minute {
54 | font-size: 25rpx;
55 | color: #acacac;
56 | }
57 |
58 | .body{
59 | margin-bottom: 100rpx;
60 | }
61 | .buttonView{
62 | position: fixed;
63 | bottom: 0px;
64 | width: 100%;
65 | }
66 | .button{
67 | background-color: #6CA9F9;
68 | border-radius: 0px;
69 | border: 2px solid gainsboro;
70 | font-size: 35rpx;
71 | color: white;
72 | }
73 | @import "/pages/util/util.wxss"
--------------------------------------------------------------------------------
/pages/msgWallet/msgWallet.js:
--------------------------------------------------------------------------------
1 | // pages/msgWallet/msgWallet.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 | console.log(userInfo);
18 | this.setData({
19 | "userInfo": userInfo
20 | });
21 | this.getMoney();
22 | },
23 |
24 | /**
25 | * 生命周期函数--监听页面初次渲染完成
26 | */
27 | onReady: function () {
28 |
29 | },
30 |
31 | /**
32 | * 生命周期函数--监听页面显示
33 | */
34 | onShow: function () {
35 |
36 | },
37 |
38 | /**
39 | * 生命周期函数--监听页面隐藏
40 | */
41 | onHide: function () {
42 |
43 | },
44 |
45 | /**
46 | * 生命周期函数--监听页面卸载
47 | */
48 | onUnload: function () {
49 |
50 | },
51 |
52 | /**
53 | * 页面相关事件处理函数--监听用户下拉动作
54 | */
55 | onPullDownRefresh: function () {
56 |
57 | },
58 |
59 | /**
60 | * 页面上拉触底事件的处理函数
61 | */
62 | onReachBottom: function () {
63 |
64 | },
65 |
66 | /**
67 | * 用户点击右上角分享
68 | */
69 | onShareAppMessage: function () {
70 |
71 | },
72 |
73 | /**
74 | * 页面上拉触底事件的处理函数
75 | */
76 | onReachBottom: function () {
77 |
78 | },
79 |
80 | /**
81 | * 页面相关事件处理函数--监听用户下拉动作
82 | */
83 | onPullDownRefresh: function () {
84 |
85 | }
86 | ,
87 | order: function () {
88 | wx.redirectTo({
89 | url: '/pages/msgOrder/msgOrder',
90 | })
91 | },
92 | school: function () {
93 | wx.redirectTo({
94 | url: '/pages/msgSchool/msgSchool',
95 | })
96 | },
97 | return1: function () {
98 | wx.switchTab({
99 | url: '/pages/my/my',
100 | })
101 | },
102 | getMoney() {
103 | var that = this;
104 | var util = require('../../utils/util.js');
105 | wx.request({
106 | url: 'https://api.wnschool.cn/user-getUserCashFlow',
107 | data: {
108 | "user.id": that.data.userInfo.id
109 | // "tiezi.images":that.data.imagesPath
110 | },
111 | header: {
112 | "Content-Type": "application/x-www-form-urlencoded"
113 | },
114 | method: 'POST',
115 | success: function (res) {
116 | // getUserCashFlow
117 | console.log(res);
118 | that.setData({ balance: res.data.balance });
119 | if (res.data.userCashFlow.length != 0) {
120 | console.log(res.data.userCashFlow.length)
121 | for (var i = 0; i < res.data.userCashFlow.length; i++) {
122 | var time = that.DateUtil(res.data.userCashFlow[i].createTime);
123 | var times = time.split("/");
124 | res.data.userCashFlow[i].createTime = times;
125 | if (res.data.userCashFlow[i].sendUserId == 0) {
126 | res.data.userCashFlow[i].avatarUrl = "/image/icon/wannengxiaoyuan.jpg";
127 | res.data.userCashFlow[i].cashFlow = "-" + res.data.userCashFlow[i].cashFlow;
128 | res.data.userCashFlow[i].msg = " 你提现了一笔钱";
129 | } else if (res.data.userCashFlow[i].fromUserId == 0) {
130 | res.data.userCashFlow[i].avatarUrl = "/image/icon/wannengxiaoyuan.jpg";
131 | res.data.userCashFlow[i].cashFlow = "+" + res.data.userCashFlow[i].cashFlow;
132 | res.data.userCashFlow[i].msg = res.data.userCashFlow[i].nickName + " 向你支付了一笔钱";
133 | } else {
134 | res.data.userCashFlow[i].cashFlow = "+" + res.data.userCashFlow[i].cashFlow;
135 | res.data.userCashFlow[i].msg = res.data.userCashFlow[i].nickName + " 向你支付了一笔钱";
136 | }
137 | }
138 | that.setData({ data: res.data.userCashFlow });
139 | } else {
140 | that.setData({ tishi: false });
141 | }
142 | }
143 | });
144 | },
145 | DateUtil: function (date) {
146 | var xianzai = new Date();
147 | var date = new Date(date);
148 | if (xianzai.getFullYear() == date.getFullYear() && xianzai.getMonth() == date.getMonth() && xianzai.getDate() == date.getDate()) {
149 | return "今天 /" + date.getHours() + ":" + date.getMinutes();
150 | } else {
151 | return date.getMonth() + 1 + " - " + date.getDate() + "/" + date.getHours() + ":" + date.getMinutes();
152 | }
153 | }
154 | })
--------------------------------------------------------------------------------
/pages/msgWallet/msgWallet.json:
--------------------------------------------------------------------------------
1 | {
2 | "backgroundTextStyle": "dark",
3 | "navigationBarBackgroundColor": "#58ABDF",
4 | "navigationBarTitleText": "信息详情",
5 | "navigationBarTextStyle": "white"
6 | }
--------------------------------------------------------------------------------
/pages/msgWallet/msgWallet.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | {{item.createTime[0]}}\n
10 | {{item.createTime[1]}}
11 |
12 |
13 |
14 |
15 |
16 | {{item.cashFlow}}.00\n
17 | {{item.msg}}
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/pages/msgWallet/msgWallet.wxss:
--------------------------------------------------------------------------------
1 | page {
2 | background-color: #f8f8f8;
3 | }
4 |
5 | .fang {
6 | position: absolute;
7 | top: 6%;
8 | left: 42%;
9 | right: 42%;
10 | background-color: white;
11 | height: 10rpx;
12 | width: 15%;
13 | }
14 | .xuanxiang {
15 | display: flex;
16 | padding-top: 50rpx;
17 | align-items: center;
18 | height: 100rpx;
19 | }
20 |
21 | .dateView {
22 | margin-left: 50rpx;
23 | }
24 |
25 | .day {
26 | font-size: 35rpx;
27 | font-weight: 600;
28 | }
29 |
30 |
31 | .minute {
32 | font-size: 25rpx;
33 | }
34 |
35 | .body{
36 | margin-bottom: 180rpx;
37 | }
38 |
39 | .avatarUrl {
40 | border-radius: 50%;
41 | height: 90rpx;
42 | width: 90rpx;
43 | background-color: #438aca;
44 | border: 2px solid #e2e2e2;
45 | margin-left: 25rpx;
46 | }
47 |
48 | .avatarUrl image{
49 | height: 90rpx;
50 | width: 90rpx;
51 | border-radius: 50%;
52 | }
53 | .money {
54 | font-size: 50rpx;
55 | font-weight: 800;
56 | }
57 |
58 | .msg {
59 | font-size: 9.5pt;
60 | font-weight: 500;
61 | color: #acacac;
62 | }
63 |
64 | .msgView {
65 | padding-left: 40rpx;
66 | }
67 |
68 | .body{
69 | margin-bottom: 100rpx;
70 | }
71 | .buttonView{
72 | position: fixed;
73 | bottom: 0px;
74 | width: 100%;
75 | }
76 | .button{
77 | background-color: #6CA9F9;
78 | border-radius: 0px;
79 | border: 2px solid gainsboro;
80 | font-size: 35rpx;
81 | color: white;
82 | }
83 | @import "/pages/util/util.wxss"
--------------------------------------------------------------------------------
/pages/my/my.js:
--------------------------------------------------------------------------------
1 | // pages/my/my.js
2 | Page({
3 | data: {
4 | "userInfo": null
5 | },
6 | onLoad: function (options) {
7 | // 页面初始化 options为页面跳转所带来的参数
8 | var userInfo = wx.getStorageSync("userInfo");
9 | console.log(userInfo);
10 | this.setData({
11 | "userInfo": userInfo
12 | });
13 | this.getMsg();
14 | },
15 | onReady:function(){
16 | // 页面渲染完成
17 | },
18 | onShow:function(){
19 | // 页面显示
20 | },
21 | onHide:function(){
22 | // 页面隐藏
23 | },
24 | onUnload:function(){
25 | // 页面关闭
26 | },
27 | /**
28 | * 页面相关事件处理函数--监听用户下拉动作
29 | */
30 | onPullDownRefresh: function () {
31 | wx.showLoading({
32 | "title": "加载中",
33 | "mask": true,
34 | "success": function () {
35 | setTimeout(function () {
36 | wx.stopPullDownRefresh();
37 | wx.hideLoading();
38 | }, 2000)
39 | }
40 | })
41 |
42 | },
43 | onShareAppMessage:function(){
44 | return {
45 | title: '无敌率真的超级帅哥的个人中心',
46 | path: '/pages/my/my',
47 | success: function (res) {
48 | // 转发成功
49 | },
50 | fail: function (res) {
51 | // 转发失败
52 | }
53 | }
54 | },
55 | msg:function(){
56 | wx.navigateTo({
57 | 'url':"/pages/msgOrder/msgOrder"
58 | })
59 | },
60 | qianbao:function(){
61 | wx.navigateTo({
62 | 'url': "/pages/balance/balance"
63 | })
64 | },
65 | validation:function(){
66 | wx.navigateTo({
67 | 'url': "/pages/validationStatus/validationStatus"
68 | })
69 | },
70 | we:function(){
71 | wx.navigateTo({
72 | url: '/pages/guanyuwomen/guanyuwomen',
73 | })
74 | },
75 | orderManager: function () {
76 | wx.navigateTo({
77 | url: "/pages/orderManager/orderManager",
78 | })
79 | },
80 | getMsg(){
81 | var that = this;
82 | wx.request({
83 | url: 'https://api.wnschool.cn/user-getCount',
84 | data: {
85 | "user.id":that.data.userInfo.id
86 | },
87 | header: {
88 | "Content-Type": "application/x-www-form-urlencoded"
89 | },
90 | method: 'POST',
91 | success: function (res) {
92 | console.log(res);
93 | that.setData({"count":res.data});
94 | }
95 | });
96 | }
97 |
98 | })
--------------------------------------------------------------------------------
/pages/my/my.json:
--------------------------------------------------------------------------------
1 | {
2 | "backgroundTextStyle":"dark",
3 | "navigationBarBackgroundColor": "#6CA9F9",
4 | "navigationBarTitleText": "我的",
5 | "navigationBarTextStyle":"white",
6 | "enablePullDownRefresh": true
7 | }
--------------------------------------------------------------------------------
/pages/my/my.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | {{userInfo.nickName}}
8 |
9 |
10 |
11 | {{count.schoolCount}}\n
12 | 校圈
13 |
14 |
15 | {{count.lootCount}}\n
16 | 结单
17 |
18 |
19 | {{count.hostCount}}\n
20 | 发单
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | 订单管理
30 |
31 |
32 |
33 |
34 |
35 |
36 | 信息详情
37 |
38 |
39 |
40 |
41 |
42 |
43 | 钱包
44 |
45 |
46 |
47 |
48 |
49 |
50 | 实名认证
51 |
52 |
53 |
54 |
55 |
56 |
57 | 关于我们
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
--------------------------------------------------------------------------------
/pages/my/my.wxss:
--------------------------------------------------------------------------------
1 | page{
2 | background-color: white;
3 | }
4 | .head{
5 | padding-top: 100rpx;
6 | background-color: white;
7 | }
8 | .anView{
9 | text-align: center;
10 | }
11 | .avatarUrlView{
12 | margin: 0 auto;
13 | background-color: #019FE9;
14 | border-radius: 50%;
15 | height: 150rpx;
16 | width: 150rpx;
17 | border: 2px solid #BCBCBC;
18 | margin-bottom:0rpx;
19 | }
20 | .avatarUrlView image{
21 | border-radius: 50%;
22 | height: 150rpx;
23 | width: 150rpx;
24 |
25 | }
26 | .nickName{
27 | font-size: 40rpx;
28 | font-weight: 600;
29 | }
30 | .msg{
31 | text-align: center;
32 | display: flex;
33 | margin-top: 50rpx;
34 | padding-bottom: 15rpx;
35 | border-bottom: 2px solid gainsboro;
36 | }
37 | .msg view{
38 | width: 33%;
39 | }
40 | .number{
41 | font-size: 27rpx;
42 | color: #3DBEFA;
43 | padding-bottom: 5rpx;
44 | }
45 | .zi{
46 | font-size: 33rpx;
47 | font-weight: 800;
48 | color: #5F5F5F;
49 | }
50 | .xuanxiang{
51 | display: flex;
52 | height: 100rpx;
53 | align-items: center;
54 | border-bottom: 2px solid #E9E9E9;
55 | /*padding-left: 40rpx;*/
56 | width: 100%;
57 | margin: 0 auto;
58 | position: relative;
59 | }
60 | .xuanxiang text{
61 | padding-left: 40rpx;
62 | font-size: 30rpx;
63 | font-weight: bold;
64 | color: #414141;
65 | }
66 | .images{
67 | margin-left: 5%;
68 | border-radius: 0px;
69 | width: 45rpx;
70 | height: 45rpx;
71 | /*background-color: #888888;*/
72 | }
73 | .jiantou{
74 | height: 35rpx;
75 | width: 35rpx;
76 | position: absolute;
77 | right: 30rpx;
78 | }
79 | image{
80 | width:45rpx;
81 | height: 45rpx;
82 | }
83 | .contact{
84 | width: 120rpx;
85 | height: 70rpx;
86 | position: fixed;
87 | bottom: 10%;
88 | right: 0%;
89 | background-color: #48C23D;
90 | display: flex;
91 | justify-content: center;
92 | align-items: center;
93 | border-radius: 7% 0% 0% 7%;
94 | }
--------------------------------------------------------------------------------
/pages/orderDetail/orderDetail.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/pages/orderDetail/orderDetail.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | {{data[1].nickName}}
9 |
10 |
11 |
12 |
13 | {{data[1].school}}
14 |
15 |
16 | {{data[0].createTime}}
17 |
18 |
19 |
20 |
21 |
22 |
23 | {{data[0].content}}
24 |
25 |
26 |
27 | 订单要求
28 |
29 |
30 |
31 | 订单类型
32 | {{data[0].orderType}}
33 |
34 |
35 | 规定时间
36 | {{data[0].successTime}}
37 |
38 |
39 | 指定性别
40 | {{data[0].sex}}
41 |
42 |
43 |
44 |
45 |
46 | 佣金
47 |
48 | ¥{{data[0].money}}元
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 | {{item[6]}}
63 |
64 |
65 | {{item[3]}}
66 |
67 |
68 |
69 | {{item[2]}}
70 |
71 |
72 |
73 | 回复
74 | {{item[5]}}
75 |
76 |
77 |
78 |
79 |
80 |
81 | {{tishi}}
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
--------------------------------------------------------------------------------
/pages/orderLootEvaluate/orderLootEvaluate.js:
--------------------------------------------------------------------------------
1 | // pages/orderLootEvaluate/orderLootEvaluate.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: null,
11 | emptyCycle: null
12 | },
13 |
14 | /**
15 | * 生命周期函数--监听页面加载
16 | */
17 | onLoad: function (options) {
18 | var userInfo = wx.getStorageSync("userInfo");
19 | console.log(userInfo);
20 | var id = options.id;
21 | var user = JSON.parse(options.user);
22 | console.log(user)
23 | this.setData({
24 | "userInfo": userInfo,
25 | "user":user,
26 | id:id
27 | })
28 |
29 | this.getMsg();
30 | },
31 |
32 | /**
33 | * 生命周期函数--监听页面初次渲染完成
34 | */
35 | onReady: function () {
36 |
37 | },
38 |
39 | /**
40 | * 生命周期函数--监听页面显示
41 | */
42 | onShow: function () {
43 |
44 | },
45 |
46 | /**
47 | * 生命周期函数--监听页面隐藏
48 | */
49 | onHide: function () {
50 |
51 | },
52 |
53 | /**
54 | * 生命周期函数--监听页面卸载
55 | */
56 | onUnload: function () {
57 |
58 | },
59 |
60 | /**
61 | * 页面相关事件处理函数--监听用户下拉动作
62 | */
63 | onPullDownRefresh: function () {
64 |
65 | },
66 |
67 | /**
68 | * 页面上拉触底事件的处理函数
69 | */
70 | onReachBottom: function () {
71 |
72 | },
73 |
74 | /**
75 | * 用户点击右上角分享
76 | */
77 | onShareAppMessage: function () {
78 |
79 | },
80 | getMsg(){
81 | var that = this;
82 | var util = require('../../utils/util.js');
83 | var touxiang = new Array('/image/icon/person0.png', '/image/icon/person1.png', '/image/icon/person2.png', '/image/icon/person3.png', '/image/icon/person4.png');
84 | wx.request({
85 | url: 'https://api.wnschool.cn/evaluate-getEvaluates',
86 | data: {
87 | "user.id": that.data.id
88 | },
89 | header: {
90 | "Content-Type": "application/x-www-form-urlencoded"
91 | },
92 | method: 'POST',
93 | success: function (res) {
94 | console.log(res)
95 | if (res.data.length > 0) {
96 | for (var i = 0; i < res.data.length; i++) {
97 | res.data[i].createTime = util.formatTime(res.data[i].createTime);
98 | res.data[i].emptyCycle = 5 - res.data[i].stars;
99 | res.data[i].lightCycle = res.data[i].stars;
100 | res.data[i].avatarUrl = touxiang[Math.floor(Math.random() * touxiang.length)]
101 | }
102 | that.setData({ data:res.data })
103 | }
104 | }
105 | })
106 | }
107 | })
--------------------------------------------------------------------------------
/pages/orderLootEvaluate/orderLootEvaluate.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/pages/orderLootEvaluate/orderLootEvaluate.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | {{user.nickName}}
10 |
11 |
12 |
13 |
14 | {{user.schoool}}
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 | ******
28 |
29 |
30 | {{item.createTime}}
31 |
32 |
33 |
34 |
35 | {{item.content}}
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/pages/orderLootEvaluate/orderLootEvaluate.wxss:
--------------------------------------------------------------------------------
1 | /* pages/orderLootEvaluate/orderLootEvaluate.wxss */
2 |
3 | .head {
4 | display: flex;
5 | width: 100%;
6 | margin-top: 15rpx;
7 | margin-bottom: 15rpx;
8 | padding-bottom: 20rpx;
9 | }
10 |
11 | .avatar {
12 | width: 110rpx;
13 | height: 110rpx;
14 | border-radius: 50%;
15 | /*background-color: #4999fc;*/
16 | margin-left: 25rpx;
17 | margin-top: 20rpx;
18 | position: relative;
19 | }
20 |
21 | .avatar image {
22 | width: 120rpx;
23 | height: 120rpx;
24 | border-radius: 50%;
25 | }
26 | .gender{
27 | width: 35rpx;
28 | height: 35rpx;
29 | position: absolute;
30 | left: -2%;
31 | bottom: -12%;
32 | }
33 | .nickName {
34 | margin-left: 50rpx;
35 | margin-top: 25rpx;
36 | }
37 |
38 | .nickName text {
39 | color: #333;
40 | font-size: 35rpx;
41 | font-weight: bold;
42 | }
43 |
44 | .headmsg {
45 | width: 80%;
46 | position: relative;
47 | }
48 |
49 | .school {
50 | margin-top: 10rpx;
51 | margin-left: 40rpx;
52 | }
53 |
54 | .school image {
55 | width: 35rpx;
56 | height: 35rpx;
57 | margin-top: 5rpx;
58 | }
59 |
60 | .school text {
61 | margin-left: 10rpx;
62 | font-size: 25rpx;
63 | color: #5e5e5e;
64 | }
65 |
66 | .Evaluate {
67 | border-bottom: 1px solid #dcdbdb;
68 | border-top: 1px solid #dcdbdb;
69 | padding-bottom: 10rpx;
70 | padding-top: 15rpx;
71 | }
72 |
73 | .EvaluateHead {
74 | display: flex;
75 | width: 100%;
76 | }
77 |
78 | .evaluateAvatar {
79 | width: 80rpx;
80 | height: 80rpx;
81 | border-radius: 50%;
82 | /*background-color: #4999fc;*/
83 | margin-left: 30rpx;
84 | margin-top: 20rpx;
85 | }
86 |
87 | .evaluateAvatar image {
88 | width: 80rpx;
89 | height: 80rpx;
90 | border-radius: 50%;
91 | }
92 |
93 | .evaluateNickName {
94 | margin-left: 25rpx;
95 | margin-top: 15rpx;
96 | }
97 |
98 | .evaluateNickName text {
99 | color: #545454;
100 | font-size: 30rpx;
101 | font-weight: bold;
102 | }
103 |
104 | .evaluateHeadmsg {
105 | width: 80%;
106 | position: relative;
107 | }
108 |
109 | .date {
110 | /*margin-top: rpx;*/
111 | margin-left: 23rpx;
112 | }
113 |
114 | .date text {
115 | margin-left: 10rpx;
116 | font-size: 23rpx;
117 | color: #b2b2b2;
118 | }
119 |
120 | .content {
121 | display: flex;
122 | justify-content: center;
123 | align-items: center;
124 | flex-direction: column;
125 | width: 90%;
126 | margin: 0 auto;
127 | background-color: #f2f2f2;
128 | padding-top: 30rpx;
129 | padding-bottom: 30rpx;
130 | padding-right: 20rpx;
131 | margin-top: 10rpx;
132 | margin-bottom: 20rpx;
133 | border-bottom: 1px solid #dcdcdc;
134 | border-radius: 3%;
135 | }
136 |
137 | .content text {
138 | width: 90%;
139 | font-size: 26rpx;
140 | letter-spacing: 1.5px;
141 | color: #707070;
142 | font-weight: bold;
143 | margin-left: 3%;
144 | }
145 |
146 | .star {
147 | /*margin-bottom: 35rpx;*/
148 | width: 90%;
149 | margin: 0 auto;
150 | }
151 |
152 | image {
153 | width: 35rpx;
154 | padding: 0px 4rpx 0px 4rpx;
155 | height: 35rpx;
156 | }
157 |
158 | .block{
159 | padding-bottom: 110rpx;
160 | }
161 |
162 | .buttonView {
163 | position: fixed;
164 | bottom: 0px;
165 | width: 100%;
166 | display: flex;
167 | justify-content: center;
168 | align-items: center;
169 | border-top: 2px solid #c0c0c0;
170 | padding-top: 15rpx;
171 | background-color: white;
172 | padding-bottom: 15rpx;
173 | }
174 |
175 | .button {
176 | padding-left: 45rpx;
177 | padding-right: 45rpx;
178 | font-size: 30rpx;
179 | border: 1px solid #dadada;
180 | background-color: white;
181 | color: #888;
182 | font-weight: bold;
183 | margin: 0px;
184 | margin-left: 20rpx;
185 | margin-right: 20rpx;
186 | }
187 |
188 | .return {
189 | color: #6ca9f9;
190 | border: 1px solid #6ca9f9;
191 | }
192 |
--------------------------------------------------------------------------------
/pages/orderLootPrivate/orderLootPrivate.js:
--------------------------------------------------------------------------------
1 | // pages/orderLootPrivate/orderLootPrivate.js
2 | Page({
3 |
4 | /**
5 | * 页面的初始数据
6 | */
7 | data: {
8 | "buttonViewHide": false,
9 | "inputViewHide": true,
10 | animationData: {}
11 | },
12 |
13 | /**
14 | * 生命周期函数--监听页面加载
15 | */
16 | onLoad: function (options) {
17 | var userInfo = wx.getStorageSync("userInfo");
18 | var id = options.id;
19 | var orderid = options.orderid;
20 | console.log(orderid)
21 | this.setData({
22 | "userInfo": userInfo,
23 | id:id,
24 | orderId:orderid
25 | })
26 | console.log(options);
27 | this.getMsg();
28 | this.getTalk(orderid);
29 | },
30 |
31 | /**
32 | * 生命周期函数--监听页面初次渲染完成
33 | */
34 | onReady: function () {
35 |
36 | },
37 |
38 | /**
39 | * 生命周期函数--监听页面显示
40 | */
41 | onShow: function () {
42 |
43 | },
44 |
45 | /**
46 | * 生命周期函数--监听页面隐藏
47 | */
48 | onHide: function () {
49 |
50 | },
51 |
52 | /**
53 | * 生命周期函数--监听页面卸载
54 | */
55 | onUnload: function () {
56 |
57 | },
58 |
59 | /**
60 | * 页面相关事件处理函数--监听用户下拉动作
61 | */
62 | onPullDownRefresh: function () {
63 |
64 | },
65 |
66 | /**
67 | * 页面上拉触底事件的处理函数
68 | */
69 | onReachBottom: function () {
70 |
71 | },
72 |
73 | /**
74 | * 用户点击右上角分享
75 | */
76 | onShareAppMessage: function () {
77 |
78 | },
79 | lootEvaluate:function(){
80 | var id = this.data.userId;
81 | var user = this.data.data.user;
82 | console.log(user);
83 | console.log(JSON.stringify(user));
84 | user = JSON.stringify(user);
85 | wx.navigateTo({
86 | url: '/pages/orderLootEvaluate/orderLootEvaluate?id=' + id + "&user=" + user,
87 | })
88 | },
89 | question: function () {
90 | console.log(123)
91 | var that = this;
92 | var animation = wx.createAnimation({
93 | duration: 700,
94 | timingFunction: 'ease',
95 | })
96 | setTimeout(function () {
97 | animation.scale(0.3).step();
98 | that.setData({ animationData: animation.export() });
99 | that.setData({
100 | buttonViewHide: !that.data.buttonViewHide,
101 | inputViewHide: !that.data.inputViewHide
102 | });
103 |
104 | animation.scale(1).step();
105 | that.setData({ animationData: animation.export() });
106 | }, 100)
107 | },
108 | getInput: function (options) {
109 | console.log(options.detail.value)
110 | this.setData({ inputValue: options.detail.value })
111 | },
112 | send: function () {
113 | var inputValue = this.data.inputValue;
114 | var that = this;
115 | wx.request({
116 | url: 'https://api.wnschool.cn/order-sendOrderTalk',
117 | data: {
118 | "orderTalk.hostId": that.data.userInfo.id,
119 | "orderTalk.content": inputValue,
120 | "orderTalk.orderId": that.data.orderId
121 | },
122 | header: {
123 | "Content-Type": "application/x-www-form-urlencoded"
124 | },
125 | method: 'POST',
126 | success: function (res) {
127 | console.log(res);
128 | if (res.data == "success") {
129 | var wo = {
130 | hostId: that.data.userInfo.id,
131 | content: inputValue
132 | }
133 | var msg = that.data.msg
134 | msg.unshift(wo);
135 | that.setData({ msg: msg, inputValue: "" })
136 | that.question();
137 | }
138 | }
139 | });
140 | },
141 | getMsg:function(){
142 | var that = this;
143 | wx.request({
144 | url: 'https://api.wnschool.cn/evaluate-getCount',
145 | data: {
146 | "user.id": that.data.id
147 | },
148 | header: {
149 | "Content-Type": "application/x-www-form-urlencoded"
150 | },
151 | method: 'POST',
152 | success: function (res) {
153 | console.log(res);
154 | res.data.count[0] = res.data.count[0]*20;
155 | if (res.data.user.gender==1){
156 | res.data.user.gender="/image/icon/boy.png"
157 | } else if (res.data.user.gender == 2){
158 | res.data.user.gender = "/image/icon/girl.png"
159 | }else{
160 | res.data.user.gender = "/image/icon/know.png"
161 | }
162 | var id = res.data.user.id
163 | that.setData({"data":res.data,userId:id})
164 | }
165 | })
166 | },
167 | call: function () {
168 | var that = this;
169 | wx.makePhoneCall({
170 | phoneNumber: that.data.data.user.phoneNumber //仅为示例,并非真实的电话号码
171 | })
172 | },
173 | copy:function(){
174 | var that = this;
175 | wx.setClipboardData({
176 | data: that.data.data.user.weChatNumber,
177 | success: function () {
178 |
179 | }
180 | })
181 | },
182 | getTalk(id) {
183 | var that = this;
184 | var userInfo = this.data.userInfo;
185 | var util = require('../../utils/util.js');
186 | wx.request({
187 | url: 'https://api.wnschool.cn/order-getUserOrderTalk',
188 | data: {
189 | "order.id": id
190 | //注意这里要改回来 userInfo.id 漏洞
191 | },
192 | header: {
193 | "Content-Type": "application/x-www-form-urlencoded"
194 | },
195 | method: 'POST',
196 | success: function (res) {
197 | console.log(res);
198 | // var wo = new Array();
199 | // var ni = new Array();
200 | for (var i = 0; i < res.data.orderTalk.length; i++) {
201 | var date = util.formatTime(res.data.orderTalk[i].createTime);
202 | res.data.orderTalk[i].createTime = date;
203 | //注意这里要改回来 userInfo.id 漏洞
204 | console.log(res.data.orderTalk[i].hostId + "-------" + userInfo.id);
205 | // if (res.data.orderTalk[i].hostId == userInfo.id) {
206 | // wo.push(res.data.orderTalk[i]);
207 | // } else {
208 | // ni.push(res.data.orderTalk[i]);
209 | // }
210 | }
211 | that.setData({ msg:res.data.orderTalk })
212 | // that.setData({ wo: wo, ni: ni })
213 | }
214 | });
215 |
216 | },
217 | return1:function(){
218 | wx.navigateBack({
219 | delta: 1
220 | })
221 | }
222 | })
--------------------------------------------------------------------------------
/pages/orderLootPrivate/orderLootPrivate.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/pages/orderLootPrivate/orderLootPrivate.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | {{data.user.nickName}}
10 |
11 |
12 |
13 |
14 | {{data.user.school}}
15 |
16 |
17 |
18 |
19 |
20 | 订单量
21 | {{data.count[1]}}
22 |
23 |
24 | 好评率
25 | {{data.count[0]}} %
26 |
27 |
28 |
29 | 手机号
30 | {{data.user.phoneNumber}}
31 |
32 |
33 |
34 | 微信号
35 | {{data.user.weChatNumber}}
36 |
37 |
38 |
39 | 他的评价
40 |
41 |
42 |
43 |
44 |
45 |
46 | 留言板
47 |
48 |
49 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 | {{item.content}}
79 |
80 |
81 |
82 |
83 | {{item.content}}
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
--------------------------------------------------------------------------------
/pages/orderManager/orderManager.json:
--------------------------------------------------------------------------------
1 | {
2 | "backgroundTextStyle": "dark",
3 | "navigationBarBackgroundColor": "#58ABDF",
4 | "navigationBarTitleText": "订单管理",
5 | "navigationBarTextStyle": "white"
6 | }
--------------------------------------------------------------------------------
/pages/orderManager/orderManager.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | 全部
12 |
13 | 发布的单
14 | 接过的单
15 | 待办
16 | 待完成
17 | 待评价
18 |
19 |
20 |
21 |
22 | {{item[0].orderType}}
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 | {{item[1].nickName}}
32 |
33 |
34 |
35 |
36 | {{item[0].content}}
37 |
38 |
39 |
40 | {{item[0].finishTime}}
41 |
42 |
43 | {{item[0].status}}
44 |
45 |
46 |
47 |
48 | {{item[2].shenfen}}
49 | 金额:{{item[0].money}}元
50 |
51 |
52 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
69 |
70 |
71 |
72 |
--------------------------------------------------------------------------------
/pages/orderManager/orderManager.wxss:
--------------------------------------------------------------------------------
1 |
2 | .titleHead{
3 | display: flex;
4 | justify-content: space-between;
5 | align-items: center;
6 | border-bottom:1px solid ghostwhite;
7 | }
8 | .titleHead image{
9 | width: 100rpx;
10 | height: 100rpx;
11 | }
12 | .orderType{
13 | font-size: 28rpx;
14 | color: lightslategray;
15 | margin-left: 25rpx;
16 | padding-top: 20rpx;
17 | padding-bottom:20rpx;
18 | display: flex;
19 | justify-content: flex-start;
20 | }
21 | .xingshi{
22 | font-size: 30rpx;
23 | padding-top: 5rpx;
24 | padding-bottom:5rpx;
25 | margin-left: 25rpx;
26 | /*margin-right: 25rpx;*/
27 | letter-spacing: 5px;
28 | font-weight: bold;
29 | color: mediumvioletred;
30 | }
31 | .element {
32 |
33 | padding-top: 50rpx;
34 | width: 100%;
35 | /*border-bottom: 1px solid gainsboro;*/
36 | position: relative;
37 | background-color: ghostwhite;
38 | }
39 |
40 | .head {
41 | display: flex;
42 | width: 80%;
43 | }
44 |
45 | .avatar {
46 | width: 100rpx;
47 | height: 100rpx;
48 | border-radius: 50%;
49 | background-color: #4999fc;
50 | margin-left: 30rpx;
51 | margin-top: -10rpx;
52 | }
53 |
54 | .avatar image {
55 | width: 100rpx;
56 | height: 100rpx;
57 | border-radius: 50%;
58 | }
59 |
60 | .nickName {
61 | margin-left: 35rpx;
62 | margin-top: -15rpx;
63 | }
64 |
65 | .nickName text {
66 | color: #345685;
67 | font-size: 28rpx;
68 | font-weight: bold;
69 | }
70 |
71 |
72 | .msg {
73 | margin: 0 auto;
74 | width: 60%;
75 | }
76 |
77 | .content {
78 | color: #919191;
79 | font-size: 26rpx;
80 | font-weight: bold;
81 | letter-spacing: 2rpx;
82 | margin-top: -35rpx;
83 | margin-left: 15rpx;
84 | }
85 |
86 | .date {
87 | position: absolute;
88 | right: 5%;
89 | top: 3%;
90 | }
91 |
92 | .date text {
93 | color: #919191;
94 | font-size: 25rpx;
95 | }
96 | .status{
97 | display: flex;
98 | justify-content: flex-end;
99 | padding-top: 30rpx;
100 | padding-bottom: 30rpx;
101 | font-size: 32rpx;
102 | color: #FE6B23;
103 | font-weight: bold;
104 | margin-right:25rpx;
105 | }
106 | .money {
107 | width: 100rpx;
108 | height: 60rpx;
109 | position: absolute;
110 | right: 0%;
111 | top: 10%;
112 | z-index: 0;
113 | }
114 |
115 | .money canvas {
116 | width: 100%;
117 | height: 60rpx;
118 | display: block;
119 | z-index: 0;
120 | }
121 |
122 | .imageStatus {
123 | position: absolute;
124 | right: 3%;
125 | top: 5%;
126 | }
127 |
128 | .imageStatus image {
129 | width: 100px;
130 | height: 77px;
131 | }
132 |
133 | /*.buttonView {
134 | width: 100%;
135 | padding-top: 15rpx;
136 | padding-bottom: 15rpx;
137 | border-bottom: 5px solid gainsboro;
138 | display: flex;
139 | justify-content: flex-end;
140 | align-items: flex-end;
141 | }
142 |
143 | .buttonView view {
144 | display: flex;
145 | justify-content: flex-start;
146 | align-items: flex-end;
147 | }
148 |
149 | .buttonView button {
150 | font-size: 30rpx;
151 | border-radius: 0px;
152 | letter-spacing: 0.7px;
153 | margin-right: 15rpx;
154 | background-color: #F8F8F8;
155 |
156 | }
157 |
158 | .buttonView .complate {
159 | background-color: #6ca9f9;
160 | color: white;
161 | font-weight: bold;
162 | }*/
163 | .buttonView {
164 | width: 100%;
165 | padding-top: 15rpx;
166 | padding-bottom: 15rpx;
167 | border-bottom: 5px solid gainsboro;
168 | display: flex;
169 | justify-content: flex-end;
170 | align-items: flex-end;
171 | }
172 |
173 | .button {
174 | padding-left: 35rpx;
175 | padding-right: 35rpx;
176 | font-size: 30rpx;
177 | border: 1px solid #dadada;
178 | background-color: white;
179 | color: #888;
180 | font-weight: bold;
181 | margin: 0px;
182 | margin-left: 10rpx;
183 | margin-right: 10rpx;
184 | }
185 |
186 | .zhuyao {
187 | color: #6ca9f9;
188 | border: 1px solid #6ca9f9;
189 | }
190 | .moneyView {
191 | margin-top: 15rpx;
192 | /*margin-bottom: 15rpx;*/
193 | font-size: 28rpx;
194 | color: gray;
195 | text-align: end;
196 | border-bottom: 1px solid gainsboro;
197 | }
198 |
199 | .moneyView view {
200 | display: flex;
201 | justify-content: space-between;
202 | align-items: center;
203 | padding-bottom: 15rpx;
204 | margin-right: 15rpx;
205 | }
206 |
207 | /*.scroll_view_horizotal{
208 | height: 50px;
209 | background-color: whitesmoke;
210 | white-space: nowrap;
211 | display: flex;
212 | }
213 | .title{
214 | display: flex;
215 | justify-content: center;
216 | align-items: center;
217 | margin-top: 15rpx;
218 | padding-bottom: 15rpx;
219 | border-bottom: 5px solid gainsboro;
220 | }
221 | .title view{
222 | width: 200rpx;
223 | height: 50rpx;
224 | text-align: center;
225 | }
226 | .quanbu{
227 | display: flex;
228 | align-items: center;
229 | justify-content: center;
230 | padding-top: 10rpx;
231 | padding-left: 20rpx;
232 |
233 | }
234 |
235 |
236 | .title view text{
237 | font-size: 28rpx;
238 | padding-bottom:15rpx;
239 | padding-left:20rpx;
240 | padding-right:20rpx;
241 | }*/
242 |
243 | .scroll_view_horizotal{
244 | height: 65rpx;
245 | background-color: whitesmoke;
246 | white-space: nowrap;
247 | line-height: 60rpx;
248 | /*padding-top: 15rpx;*/
249 | /*padding-bottom: 15rpx;*/
250 | border-bottom: 5px solid gainsboro;
251 | }
252 | .big{
253 | display: flex;
254 | white-space: nowrap;
255 | }
256 | .item{
257 | height: 50rpx;
258 | width: 200rpx;
259 | display: inline-block;
260 | font-size: 28rpx;
261 | padding-bottom:7rpx;
262 | padding-left:10rpx;
263 | padding-right:10rpx;
264 | margin: 0 auto;
265 | text-align: center;
266 | }
267 | @import "/pages/util/util.wxss"
268 |
--------------------------------------------------------------------------------
/pages/phoneNumber/phoneNumber.js:
--------------------------------------------------------------------------------
1 | // pages/phoneNumber/phoneNumber.js
2 | Page({
3 |
4 | data: {
5 | 'phoneNumber': null,
6 | randomNumber: null,
7 | "animationData": [],
8 | "hiddent": true,
9 | timeStamp: null,
10 | 'tishi': null,
11 | disabled:false,
12 | daojishi:"获取验证码"
13 | },
14 | onLoad: function (options) {
15 | console.log(options)
16 | var name = options.name;
17 | var weChat = options.weChat;
18 | // var loot = options.loot;
19 | // console.log(loot)
20 | this.setData({name:name,weChat:weChat})
21 | // 页面初始化 options为页面跳转所带来的参数
22 | },
23 | onReady: function () {
24 | // 页面渲染完成
25 | },
26 | onShow: function () {
27 | // 页面显示
28 | },
29 | onHide: function () {
30 | // 页面隐藏
31 | },
32 | onUnload: function () {
33 | // 页面关闭
34 | },
35 | getInput: function (options) {
36 | var phoneNumber = options.detail.value;
37 | this.setData({ 'phoneNumber': phoneNumber });
38 | },
39 | getRandom: function (options) {
40 | var randomInput = options.detail.value;
41 | this.setData({ 'randomInput': randomInput });
42 | },
43 | getWeChat:function(options){
44 | var weChatInput = options.detail.value;
45 | this.setData({ 'weChatInput': weChatInput });
46 | },
47 | idCode: function () {
48 | if (this.data.phoneNumber == null || this.data.phoneNumber == "") {
49 | this.setData({ 'tishi': "请输入手机号码" });
50 | this.tishi();
51 | return;
52 | } else {
53 | this.randomNumber();
54 | var randomNumber = this.data.randomNumber;
55 | var timeStamp = Date.parse(new Date());
56 | var phoneNumber = this.data.phoneNumber;
57 | this.setData({ timeStamp: timeStamp });
58 | console.log(randomNumber);
59 | this.daojishi();
60 | }
61 | },
62 | daojishi:function(){
63 | var s = 5;
64 | var that = this;
65 | that.setData({ disabled: true, daojishi: s + "秒后重新发送"})
66 | var i = setInterval(function(){
67 | if (s == 0) {
68 | clearInterval(i);
69 | that.setData({ daojishi: "获取验证码", disabled: false })
70 | return;
71 | }
72 | s = s-1;
73 | that.setData({daojishi:s+"秒后重新发送"})
74 | },1000);
75 |
76 |
77 | },
78 | randomNumber: function () {
79 | var randomNumber = (Math.random() * 1000000).toFixed();
80 | while (randomNumber.length != 6) {
81 | randomNumber = (Math.random() * 1000000).toFixed();
82 | }
83 | this.setData({ 'randomNumber': randomNumber });
84 | },
85 |
86 | confirm: function () {
87 | var that = this;
88 | if (this.data.timeStamp == null || this.data.randomNumber == null || this.data.phoneNumber == null || this.data.phoneNumber == "") {
89 | this.setData({ 'tishi': "请认真输入信息" });
90 | this.tishi();
91 | return;
92 | }
93 | if (this.data.randomInput == null || this.data.randomInput == "") {
94 | this.setData({ 'tishi': "请输入验证码" });
95 | this.tishi();
96 | return;
97 | }
98 | if (this.data.randomInput == this.data.randomNumber) {
99 | var userInfo = wx.getStorageSync("userInfo");
100 | wx.request({
101 | url: 'https://api.wnschool.cn/user-phoneNumberSave',
102 | data: {
103 | "user.id":userInfo.id,
104 | "user.phoneNumber":that.data.phoneNumber,
105 | "user.weChatNumber": that.data.weChat,
106 | "user.contactName":that.data.name
107 | },
108 | header: {
109 | "Content-Type": "application/x-www-form-urlencoded"
110 | },
111 | method: 'POST',
112 | success: function (res) {
113 | console.log(res);
114 | if(res.data=="success"){
115 | userInfo.phoneNumber = that.data.phoneNumber,
116 | userInfo.weChatNumber = that.data.weChat,
117 | userInfo.contactName = that.data.name;
118 | wx.setStorageSync("userInfo", userInfo);
119 | wx.showToast({
120 | title: '验证成功',
121 | success:function(){
122 | var id = that.data.loot;
123 | console.log(id);
124 | setTimeout(function(){
125 | wx.hideToast();
126 | wx.navigateBack({
127 | delta: 1
128 | })
129 | },2000)
130 | }
131 | })
132 | }
133 | }
134 | })
135 | } else {
136 | this.setData({ 'tishi': "验证码错误" });
137 | this.tishi();
138 | return;
139 | }
140 | },
141 |
142 |
143 |
144 | tishi: function () {
145 | var that = this;
146 | //动画
147 | var animation = wx.createAnimation({
148 | duration: 200,
149 | timingFunction: "ease-in-out",
150 | delay: 0
151 | });
152 | //显示
153 | that.setData({ "hiddent": false })
154 | //开始动画,导入动画
155 | animation.translateY(-60).step();
156 | that.setData({ "animationData": animation.export() })
157 | setTimeout(function () {
158 | that.setData({ "hiddent": true })
159 | }, 1500)
160 | }
161 | })
--------------------------------------------------------------------------------
/pages/phoneNumber/phoneNumber.json:
--------------------------------------------------------------------------------
1 | {
2 | "backgroundTextStyle": "dark",
3 | "navigationBarBackgroundColor": "#58ABDF",
4 | "navigationBarTitleText": "信息详情",
5 | "navigationBarTextStyle": "white"
6 | }
--------------------------------------------------------------------------------
/pages/phoneNumber/phoneNumber.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 请验证您的手机号码。
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | {{tishi}}
15 |
16 |
17 |
--------------------------------------------------------------------------------
/pages/phoneNumber/phoneNumber.wxss:
--------------------------------------------------------------------------------
1 | .bigView{
2 | padding-top: 170rpx;
3 | }
4 | .text {
5 | font-size: 28rpx;
6 | font-weight: 600;
7 | line-height: 180%;
8 | letter-spacing: 2rpx;
9 | }
10 | .textView{
11 | text-align: center;
12 | }
13 | .content .phoneNumber {
14 | margin: 0 auto;
15 | border: 2px solid #ccc;
16 | width: 85%;
17 | padding: 7rpx;
18 | margin-top: 40rpx;
19 | margin-bottom: 40rpx;
20 | }
21 | .phoneNumber1{
22 | text-align: center;
23 | color: #DADADA;
24 | font-size: 30rpx;
25 | font-weight: 600;
26 | }
27 | .idCode {
28 | display: flex;
29 | width: 90%;
30 | margin: 0 auto;
31 | }
32 |
33 | .idCode button {
34 | width: 45%;
35 | border-radius: 0% 0% 0% 0%;
36 | border: 2px solid #ccc;
37 | background-color: #65abf3;
38 | color: white;
39 | font-size: 30rpx;
40 | margin: 0 auto;
41 | }
42 | .idCode input{
43 | border: 2px solid #ccc;
44 | width: 45%;
45 | margin:0 auto;
46 | padding: 10rpx;
47 | }
48 |
49 | .confirm {
50 | position: absolute;
51 | align-content: center;
52 | justify-content: center;
53 | bottom: 0px;
54 | width: 100%;
55 | border-radius: 0% 0% 0% 0%;
56 | background-color: #65abf3;
57 | color: white;
58 | font-weight: 600;
59 | font-size: 35rpx;
60 | padding: 1rpx;
61 | }
62 |
63 | .tishi {
64 | width: 35%;
65 | background-color: #E2E2E2;
66 | border-radius: 5%;
67 | height: 70rpx;
68 | display: flex;
69 | justify-content: center;
70 | align-items: center;
71 | color: white;
72 | font-size: 30rpx;
73 | font-weight: bold;
74 | position: absolute;
75 | bottom: 0%;
76 | left: 35%;
77 | right: 35%;
78 | }
79 |
80 | .name{
81 | border: 2px solid #ccc;
82 | width: 45%;
83 |
84 | padding: 10rpx;
85 | }
86 |
--------------------------------------------------------------------------------
/pages/privateOrder/privateOrder.js:
--------------------------------------------------------------------------------
1 | // pages/primaryOrder/primaryOrder.js
2 | Page({
3 |
4 | /**
5 | * 页面的初始数据
6 | */
7 | data: {
8 | "buttonViewHide": false,
9 | "inputViewHide": true,
10 | userInfo:null,
11 | "animationData":[],
12 | "hiddent":true
13 | },
14 |
15 | /**
16 | * 生命周期函数--监听页面加载
17 | */
18 | onLoad: function (options) {
19 | var id = options.id;
20 | var userInfo = wx.getStorageSync("userInfo");
21 | console.log(id);
22 | this.setData({
23 | "userInfo": userInfo
24 | })
25 | this.getMsg(id);
26 | this.getTalk(id);
27 | },
28 |
29 | /**
30 | * 生命周期函数--监听页面初次渲染完成
31 | */
32 | onReady: function () {
33 |
34 | },
35 |
36 | /**
37 | * 生命周期函数--监听页面显示
38 | */
39 | onShow: function () {
40 |
41 | },
42 |
43 | /**
44 | * 生命周期函数--监听页面隐藏
45 | */
46 | onHide: function () {
47 |
48 | },
49 |
50 | /**
51 | * 生命周期函数--监听页面卸载
52 | */
53 | onUnload: function () {
54 |
55 | },
56 |
57 | /**
58 | * 页面相关事件处理函数--监听用户下拉动作
59 | */
60 | onPullDownRefresh: function () {
61 |
62 | },
63 |
64 | /**
65 | * 页面上拉触底事件的处理函数
66 | */
67 | onReachBottom: function () {
68 |
69 | },
70 |
71 | /**
72 | * 用户点击右上角分享
73 | */
74 | onShareAppMessage: function () {
75 |
76 | },
77 |
78 | /**
79 | * 页面上拉触底事件的处理函数
80 | */
81 | onReachBottom: function () {
82 |
83 | },
84 |
85 | /**
86 | * 页面相关事件处理函数--监听用户下拉动作
87 | */
88 | onPullDownRefresh: function () {
89 |
90 | },
91 | getInput:function(options){
92 | console.log(options.detail.value)
93 | this.setData({ inputValue:options.detail.value})
94 | },
95 | send:function(){
96 | var inputValue = this.data.inputValue;
97 | var that = this;
98 | wx.request({
99 | url: 'https://api.wnschool.cn/order-sendOrderTalk',
100 | data: {
101 | "orderTalk.lootId": that.data.userInfo.id,
102 | "orderTalk.content":inputValue,
103 | "orderTalk.orderId": that.data.data.orderPrivate.id
104 | },
105 | header: {
106 | "Content-Type": "application/x-www-form-urlencoded"
107 | },
108 | method: 'POST',
109 | success: function (res) {
110 | console.log(res);
111 | if(res.data=="success"){
112 | var wo = {
113 | lootId: that.data.userInfo.id,
114 | content: inputValue
115 | }
116 | var msg = that.data.msg
117 | msg.unshift(wo);
118 | that.setData({ msg: msg, inputValue: "" })
119 | that.question();
120 | }
121 | }
122 | });
123 | },
124 | question: function () {
125 | console.log(123)
126 | var that = this;
127 | var animation = wx.createAnimation({
128 | duration: 700,
129 | timingFunction: 'ease',
130 | })
131 | setTimeout(function () {
132 | animation.scale(0.3).step();
133 | that.setData({ animationData: animation.export() });
134 | that.setData({
135 | buttonViewHide: !that.data.buttonViewHide,
136 | inputViewHide: !that.data.inputViewHide
137 | });
138 |
139 | animation.scale(1).step();
140 | that.setData({ animationData: animation.export() });
141 | }, 100)
142 | },
143 | getMsg(id){
144 | var that = this;
145 | var userInfo = this.data.userInfo;
146 | var util = require('../../utils/util.js');
147 | wx.request({
148 | url: 'https://api.wnschool.cn/order-getOrderPrivateMsg',
149 | data: {
150 | "order.id": id
151 | },
152 | header: {
153 | "Content-Type": "application/x-www-form-urlencoded"
154 | },
155 | method: 'POST',
156 | success: function (res) {
157 | console.log(res);
158 | var time =util.getSuccessTime(res.data.orderPrivate.order.successTime);
159 | res.data.orderPrivate.order.successTime= time;
160 | if (res.data.user.gender == 1) {
161 | res.data.user.gender = "/image/icon/boy.png"
162 | } else if (res.data.user.gender == 2) {
163 | res.data.user.gender = "/image/icon/girl.png"
164 | } else {
165 | res.data.user.gender = "/image/icon/know.png"
166 | }
167 | that.setData({data:res.data})
168 | }
169 | });
170 | },
171 | getTalk(id){
172 | var that = this;
173 | var userInfo = this.data.userInfo;
174 | var util = require('../../utils/util.js');
175 | wx.request({
176 | url: 'https://api.wnschool.cn/order-getUserOrderTalk',
177 | data: {
178 | "order.id": id,
179 | //注意这里要改回来 userInfo.id 漏洞
180 | "user.id": userInfo.id
181 | },
182 | header: {
183 | "Content-Type": "application/x-www-form-urlencoded"
184 | },
185 | method: 'POST',
186 | success: function (res) {
187 | console.log(res);
188 | // var wo = new Array();
189 | // var ni = new Array();
190 | for(var i=0;i
2 |
3 |
4 |
5 |
6 |
7 |
8 | {{data.user.nickName}}
9 |
10 |
11 |
12 |
13 | {{data.user.school}}
14 |
15 |
16 |
17 |
18 |
19 | 个人信息
20 |
21 |
22 | 联系姓名
23 | {{data.orderPrivate.phoneNumber}}
24 |
25 |
26 | 手机号
27 | {{data.orderPrivate.phoneNumber}}
28 |
29 |
30 |
31 | 微信号
32 | {{data.orderPrivate.weChatNumber}}
33 |
34 |
35 |
36 | 订单信息
37 |
38 |
39 | 订单类型
40 | {{data.orderPrivate.order.orderType}}
41 |
42 |
43 | 规定时间
44 | {{data.orderPrivate.order.successTime}}
45 |
46 |
47 | 订单金额
48 | {{data.orderPrivate.order.money}}
49 |
50 |
51 | 订单要求
52 | {{data.orderPrivate.order.content}}
53 |
54 |
55 | 订单图片
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 | 留言板
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 | {{item.content}}
77 |
78 |
79 |
80 |
81 | {{item.content}}
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
104 |
--------------------------------------------------------------------------------
/pages/run/run.json:
--------------------------------------------------------------------------------
1 | {
2 | "enablePullDownRefresh":true
3 | }
--------------------------------------------------------------------------------
/pages/run/run.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 | 我的订单
25 |
26 |
27 | 发布订单
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 | {{item[0].orderType}}
36 |
37 |
38 |
39 | ¥{{item[0].money}}
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 | {{item[1].nickName}}
49 |
50 |
51 |
52 | {{item[0].content}}.
53 |
54 |
55 |
56 |
57 | {{item[0].createTime}}
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 | 规定时间
66 | {{item[0].successTime}}
67 |
68 |
69 |
70 | 指定性别
71 | {{item[0].sex}}
72 |
73 |
74 |
75 |
76 |
77 |
78 | {{tishiText}}
79 |
80 |
81 |
--------------------------------------------------------------------------------
/pages/run/run.wxss:
--------------------------------------------------------------------------------
1 | /* pages/run/run.wxss */
2 |
3 | page {
4 | background-color: #f8f8f8;
5 | z-index: 0;
6 | }
7 |
8 | swiper view {
9 | background-color: pink;
10 | width: 100%;
11 | height: 350rpx;
12 | }
13 |
14 | swiper {
15 | height: 350rpx;
16 | }
17 |
18 | .button {
19 | display: flex;
20 | width: 100%;
21 | height: 100rpx;
22 | justify-content: center;
23 | align-items: center;
24 | font-size: 32rpx;
25 | }
26 |
27 | .my {
28 | text-align: center;
29 | width: 50%;
30 | background-color: #15222b;
31 | color: white;
32 | padding-top: 30rpx;
33 | padding-bottom: 30rpx;
34 | }
35 |
36 | .submit {
37 | text-align: center;
38 | width: 50%;
39 | background-color:#3598DB;
40 | color: white;
41 | padding-top: 30rpx;
42 | padding-bottom: 30rpx;
43 | }
44 |
45 | .element {
46 | /*margin-top: 30rpx;*/
47 | /*padding-bottom: 50rpx;*/
48 | width: 100%;
49 | border: 2px solid gainsboro;
50 | /*border-radius: 5%;*/
51 | position: relative;
52 | margin-bottom: 15rpx;
53 | background-color: white;
54 | }
55 |
56 | .head {
57 | display: flex;
58 | width: 80%;
59 | padding-top: 15rpx;
60 | }
61 |
62 | .avatar {
63 | width: 100rpx;
64 | height: 100rpx;
65 | border-radius: 50%;
66 | background-color: #4999fc;
67 | margin-left: 30rpx;
68 | }
69 |
70 | .avatar image {
71 | width: 100rpx;
72 | height: 100rpx;
73 | border-radius: 50%;
74 | }
75 |
76 | .nickName {
77 | /*margin-left: 20rpx;*/
78 | }
79 |
80 | .nickName text {
81 | color: #345685;
82 | font-size: 28rpx;
83 | font-weight: bold;
84 | }
85 |
86 | .orderType{
87 | margin-left: 30rpx;
88 | /*margin-top: 35rpx;*/
89 | /*margin-bottom: 25rpx;*/
90 | color: #FEFEFE;
91 | font-size: 30rpx;
92 | font-weight: bold;
93 | }
94 | .msg {
95 | /*margin: 0 auto;*/
96 | margin-left: 5%;
97 | width: 80%;
98 | position: relative;
99 | }
100 |
101 | .place {
102 | margin-bottom: 15rpx;
103 | }
104 |
105 | .place text {
106 | color: #62a5f7;
107 | font-size: 28rpx;
108 | font-weight: bold;
109 | }
110 |
111 | .content {
112 | color: #919191;
113 | font-size: 30rpx;
114 | font-weight: bold;
115 | letter-spacing: 2rpx;
116 | margin-top: 20rpx;
117 | /*margin-left: 30rpx;
118 | mmargin-bottom: 15rpx;*/
119 | }
120 |
121 | .date {
122 | position: absolute;
123 | right: 5%;
124 | bottom: 25%;
125 | }
126 |
127 | .date text {
128 | color: #919191;
129 | font-size: 25rpx;
130 | }
131 | .typeAndMoney{
132 | display: flex;
133 | justify-content: space-between;
134 | align-items: center;
135 | padding-top: 15rpx;
136 | padding-bottom: 15rpx;
137 | /*border-radius: 5%;*/
138 | /*border-bottom: 2px solid #DEDDDD;*/
139 | margin-bottom: 20rpx;
140 | background-color :#D2D2D2;
141 | }
142 | .money {
143 | /*width: 100rpx;
144 | height: 60rpx;*/
145 | /*position: absolute;
146 | right: 3%;
147 | top: 10%;*/
148 | font-size: 40rpx;
149 | font-weight: bolder;
150 | color:#E74C3C;
151 | z-index: 0;
152 | margin-right: 3%;
153 | /*transform:skew(-30deg);
154 | -webkit-transform: skew(-5deg);
155 | -moz-transform: skew(-111deg);
156 | background-color: red;
157 | margin: 50px auto; */
158 | }
159 |
160 | /*.money canvas {
161 | width: 100%;
162 | height: 60rpx;
163 | display: block;
164 | z-index: 0;
165 | }*/
166 |
167 | .imageStatus {
168 | position: absolute;
169 | right: 2%;
170 | top: 25%;
171 | }
172 |
173 | .imageStatus image {
174 | width: 70px;
175 | height: 53.9px;
176 | }
177 |
178 | .xinxi {
179 | display: flex;
180 | justify-content: center;
181 | align-items: center;
182 | margin-top: 55rpx;
183 | padding-top: 10rpx;
184 | padding-bottom: 10rpx;
185 | border-top: 2px solid #E0E0E0;
186 | }
187 |
188 | .xinxi view {
189 | width: 50%;
190 | /*height: 50rpx;*/
191 | display: flex;
192 | line-height: 50rpx;
193 | justify-content: center;
194 | align-items: center;
195 | /*border: 1px solid #DEDDDD;*/
196 | font-size: 26rpx;
197 | color: #9B9B9B;
198 | }
199 | .xinxi image{
200 | width: 40rpx;
201 | height: 40rpx;
202 | margin-right: 20rpx;
203 | }
204 | .xinxi .biaoti{
205 | color: #726E6E;
206 | font-weight: bold;
207 | margin-right: 25rpx;
208 | }
209 | .tishiView{
210 | margin-top:15rpx;
211 | padding-bottom: 15rpx;
212 | }
213 | .tishi{
214 | display: flex;
215 | justify-content: center;
216 | align-items: center;
217 | font-size: 26rpx;
218 | height: 24rpx;
219 | line-height: 24rpx;
220 | color: #818181;
221 | font-weight: bold;
222 | padding-bottom: 15rpx;
223 | }
224 | @import "/pages/util/util.wxss"
225 |
--------------------------------------------------------------------------------
/pages/schoolcircle/schoolcircle.js:
--------------------------------------------------------------------------------
1 | // pages/schoolcircle/schoolcircle.js
2 | Page({
3 | data: {
4 | personal2: true,
5 | "userInfo": null,
6 | pageNo:1,
7 | tishi:true,
8 | },
9 | onLoad: function (options) {
10 | // 页面初始化 options为页面跳转所带来的参数
11 | var userInfo = wx.getStorageSync("userInfo");
12 | var that = this;
13 | console.log(userInfo);
14 | this.setData({
15 | "userInfo": userInfo
16 | })
17 | this.getSchoolList("暂时没有人发布校圈哦");
18 | },
19 | onReady: function () {
20 | // 页面渲染完成
21 | },
22 | onShow: function () {
23 | // 页面显示
24 | },
25 | onHide: function () {
26 | // 页面隐藏
27 | },
28 | onUnload: function () {
29 | // 页面关闭
30 | },
31 |
32 | /**
33 | * 页面上拉触底事件的处理函数
34 | */
35 | onReachBottom: function () {
36 | var that = this;
37 | wx.showLoading({
38 | "title": "加载中",
39 | "mask": true,
40 | "success": function () {
41 | var pageNo = that.data.pageNo + 1
42 | that.setData({ pageNo: pageNo });
43 | that.getSchoolList("没有更多了哦");
44 | setTimeout(function () {
45 | wx.hideLoading();
46 | that.setData({ tishi: true });
47 | }, 1000)
48 | }
49 | })
50 | },
51 | /**
52 | * 页面相关事件处理函数--监听用户下拉动作
53 | */
54 | onPullDownRefresh: function () {
55 | var that = this;
56 | wx.showLoading({
57 | "title": "加载中",
58 | "mask": true,
59 | "success": function () {
60 | that.setData({ pageNo: 1 });
61 | that.getSchoolList("暂时没有人发布校圈哦");
62 | setTimeout(function () {
63 | wx.stopPullDownRefresh();
64 | wx.hideLoading();
65 | that.setData({ tishi: true});
66 | }, 1000)
67 | }
68 | })
69 | },
70 | submitSchoolCircle: function () {
71 | wx.navigateTo({
72 | "url": "/pages/submitSchoolCircle/submitSchoolCircle"
73 | })
74 | },
75 | personal2: function (options) {
76 | var user = options.currentTarget.dataset;
77 | this.setData({
78 | schoolCircle:user,
79 | personal2: false
80 | })
81 | }, exit: function () {
82 | this.setData({
83 | personal2: true
84 | })
85 | }
86 | ,
87 | preview: function () {
88 | console.log(1123)
89 | var avatar = this.data.userInfo.avatarUrl;
90 | console.log(avatar)
91 | wx.previewImage({
92 | urls: [avatar]
93 | })
94 | },
95 | detail: function (options) {
96 | var item = options.currentTarget.dataset.item
97 | console.log(item)
98 | wx.navigateTo({
99 | "url": "/pages/schoolcircleDetail/schoolcircleDetail?item=" + JSON.stringify(item)
100 | })
101 | },
102 | getSchoolList: function (tishiText){
103 | var that = this;
104 | var util = require('../../utils/util.js');
105 | wx.request({
106 | url: 'https://api.wnschool.cn/schoolCircle-getSchoolList',
107 | data: {
108 | "pageNo": that.data.pageNo,
109 | "pageSize": 7,
110 | // "tiezi.images":that.data.imagesPath
111 | },
112 | header: {
113 | "Content-Type": "application/x-www-form-urlencoded"
114 | },
115 | method: 'POST',
116 | success: function (res) {
117 | console.log(res)
118 | if(res.data.length!=0){
119 | for (var i = 0; i < res.data.length; i++) {
120 | var time = util.formatTime(res.data[i].schoolCreateTime);
121 | res.data[i].schoolCreateTime = time;
122 | if (res.data[i].schoolImages != null){
123 | var images = res.data[i].schoolImages;
124 | images = images.split(",");
125 | res.data[i].schoolImages = images;
126 | res.data[i].isOneImages = true;
127 | res.data[i].isManyImages = true;
128 | if(images.length==1&&images[0]!=""){
129 | res.data[i].imagesOne = images;
130 | res.data[i].isOneImages=false;
131 | } else if (images.length>1){
132 | res.data[i].isManyImages = false;
133 | }
134 | }
135 | }
136 | that.setData({ data: res.data });
137 | } else {
138 | that.setData({ tishi: false, tishiText: tishiText});
139 | }
140 | }
141 | });
142 | }
143 | })
--------------------------------------------------------------------------------
/pages/schoolcircle/schoolcircle.json:
--------------------------------------------------------------------------------
1 | {
2 | "backgroundTextStyle":"dark",
3 | "navigationBarBackgroundColor": "#58ABDF",
4 | "navigationBarTitleText": "校圈",
5 | "navigationBarTextStyle":"white",
6 | "enablePullDownRefresh": true
7 | }
--------------------------------------------------------------------------------
/pages/schoolcircle/schoolcircle.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 | {{item.userNickName}}
16 |
17 |
18 | {{item.schoolContent}}
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 | {{item.schoolCreateTime}}
32 |
33 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 | {{tishiText}}
45 |
46 |
47 |
--------------------------------------------------------------------------------
/pages/schoolcircle/schoolcircle.wxss:
--------------------------------------------------------------------------------
1 | page{
2 | background-color: #F8F8F8;
3 | }
4 | .slide{
5 | width: 100%;
6 | height: 320rpx;
7 | background-color: #EFF0CF;
8 | border: 2px solid #E0E0E0;
9 | }
10 | .avatar{
11 | width: 90rpx;
12 | height: 90rpx;
13 | border-radius: 50%;
14 | background-color: #4999FC;
15 | }
16 | .avatar image{
17 | width: 90rpx;
18 | height: 90rpx;
19 | border-radius: 50%;
20 | }
21 | .element{
22 | position: relative;
23 | display: flex;
24 | width: 95%;
25 | margin: 0 auto;
26 | margin-top: 35rpx;
27 | border-bottom: 2px solid #E1E1E1;
28 | }
29 | .msg{
30 | margin-left: 30rpx;
31 | width: 85%;
32 | }
33 | .nickName{
34 | color: #345685;
35 | font-weight: bold;
36 | font-size: 30rpx;
37 | }
38 | .content{
39 | font-size: 33rpx;
40 | font-weight: bold;
41 | color: #404141;
42 | }
43 | .msg view{
44 | margin-bottom: 20rpx;
45 | }
46 | .imgs{
47 | height: 400rpx;
48 | width:60%;
49 | background-color: #418DEB;
50 | }
51 | .imgs image{
52 | height: 400rpx;
53 | width:100%;
54 | }
55 | .date{
56 | color: #AEABAA;
57 | font-size: 25rpx;
58 | font-weight: bold;
59 | }
60 | .fang{
61 | /*background-color: #898484;*/
62 | width: 40rpx;
63 | height: 40rpx;
64 | position: absolute;
65 | right: 5%;
66 | bottom: 0px;
67 | }
68 | image{
69 | width: 40rpx;
70 | height: 40rpx;
71 | }
72 | .edit{
73 | position: fixed;
74 | bottom: 5%;
75 | right: 5%;
76 | }
77 | .edit image{
78 | width: 100rpx;
79 | height: 100rpx;
80 | /*background-color: #F2EFEF;*/
81 | box-shadow: 10rpx 10rpx 5rpx #E8E8E8;
82 | border-radius: 5%;
83 | }
84 | .block1 {
85 | display: flex;
86 | flex-wrap: wrap;
87 | }
88 |
89 | .images2 {
90 | margin-right: 30rpx;
91 | margin-top: 20rpx;
92 | margin-bottom: 10rpx;
93 | width: 130rpx;
94 | height: 130rpx;
95 | background-color: #adadad;
96 | }
97 |
98 | .images2 image {
99 | width: 130rpx;
100 | height: 130rpx;
101 | }
102 | .tishiView{
103 | margin-top:15rpx;
104 | padding-bottom: 15rpx;
105 | }
106 | .tishi{
107 | display: flex;
108 | justify-content: center;
109 | align-items: center;
110 | font-size: 28rpx;
111 | height: 24rpx;
112 | line-height: 24rpx;
113 | color: #818181;
114 | font-weight: bold;
115 | padding-bottom: 15rpx;
116 | }
117 | @import "/pages/util/util.wxss"
--------------------------------------------------------------------------------
/pages/schoolcircleDetail/schoolcircleDetail.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/pages/schoolcircleDetail/schoolcircleDetail.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | {{item.userNickName}}
10 |
11 |
12 |
13 | {{item.schoolCreateTime}}
14 |
15 |
16 |
17 |
18 | {{item.schoolContent}}
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 | 回复信息
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 | {{item[6]}}
46 |
47 |
48 | {{item[3]}}
49 |
50 |
51 |
52 |
53 |
54 | {{item[2]}}
55 |
56 |
57 | 回复
58 | {{item[5]}}
59 |
60 |
61 |
62 |
63 |
64 |
65 | {{tishi}}
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
--------------------------------------------------------------------------------
/pages/selectSchool/selectSchool.js:
--------------------------------------------------------------------------------
1 | // pages/selectSchool/selectSchool.js
2 | Page({
3 |
4 | /**
5 | * 页面的初始数据
6 | */
7 | data: {
8 | selectSchoolHidden: true,
9 | },
10 |
11 | /**
12 | * 生命周期函数--监听页面加载
13 | */
14 | onLoad: function (options) {
15 | var userInfo;
16 | var that = this;
17 | wx.getStorage({
18 | key: "userInfo",
19 | success: function (res) {
20 | wx.hideLoading();
21 | that.setData({
22 | "userInfo": res.data
23 | })
24 | userInfo = res.data;
25 | console.log(res.data)
26 | }
27 | });
28 | wx.showLoading();
29 | },
30 |
31 | /**
32 | * 生命周期函数--监听页面初次渲染完成
33 | */
34 | onReady: function () {
35 |
36 | },
37 |
38 | /**
39 | * 生命周期函数--监听页面显示
40 | */
41 | onShow: function () {
42 |
43 | },
44 |
45 | /**
46 | * 生命周期函数--监听页面隐藏
47 | */
48 | onHide: function () {
49 |
50 | },
51 |
52 | /**
53 | * 生命周期函数--监听页面卸载
54 | */
55 | onUnload: function () {
56 |
57 | },
58 |
59 | /**
60 | * 页面相关事件处理函数--监听用户下拉动作
61 | */
62 | onPullDownRefresh: function () {
63 |
64 | },
65 |
66 | /**
67 | * 页面上拉触底事件的处理函数
68 | */
69 | onReachBottom: function () {
70 |
71 | },
72 |
73 | /**
74 | * 用户点击右上角分享
75 | */
76 | onShareAppMessage: function () {
77 |
78 | },
79 | getValue: function (options) {
80 | var data = this.data.schoolData;
81 | var index = options.currentTarget.dataset.index;
82 | this.setData({ value: data[index], schoolData: [], selectSchoolHidden: true });
83 | console.log(this.data.value)
84 | },
85 | getMsg: function (options) {
86 | var value = options.detail.value;
87 | var util = require('../../utils/chinaUniversityList.js');
88 | var schoolList = util.getSchoolList();
89 | var data = new Array();
90 | for (var i = 0; i < schoolList.length; i++) {
91 | for (var j = 0; j < schoolList[i].school.length; j++) {
92 | var name = schoolList[i].school[j].name;
93 | if (name.indexOf(value) >= 0) {
94 | // console.log(name)
95 | data.push(name);
96 | }
97 | }
98 | }
99 | this.setData({ schoolData: data, selectSchoolHidden: false,value:value });
100 | },
101 | send:function(){
102 | console.log(this.data.value)
103 | var userInfo = this.data.userInfo;
104 | console.log(userInfo)
105 | console.log(userInfo.id)
106 | var school = this.data.value;
107 | if(school==null||school==""){
108 | wx.showModal({
109 | title: '学校不能为空哦!',
110 | content: '',
111 | showCancel:false
112 | })
113 | }else{
114 | wx.request({
115 | url: 'https://api.wnschool.cn/user-userSchoolSave',
116 | data: {
117 | "user.id": userInfo.id,
118 | "user.school": school
119 | },
120 | header: {
121 | "Content-Type": "application/x-www-form-urlencoded"
122 | },
123 | method: 'POST',
124 | success: function (res) {
125 | console.log(res);
126 | if (res.data == "success") {
127 | wx.showToast({
128 | title: "选择成功",
129 | success: function () {
130 | var userInfo = wx.getStorageSync("userInfo");
131 | userInfo.school = school;
132 | wx.setStorageSync('userInfo', userInfo);
133 |
134 | setTimeout(function () {
135 | wx.hideToast();
136 | wx.switchTab({
137 | url: '/pages/run/run',
138 | })
139 | }, 2000)
140 | }
141 | })
142 | }
143 | }
144 | });
145 | }
146 | }
147 | })
--------------------------------------------------------------------------------
/pages/selectSchool/selectSchool.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/pages/selectSchool/selectSchool.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 请选择你的学校
7 |
8 |
9 |
10 | {{item}}
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/pages/selectSchool/selectSchool.wxss:
--------------------------------------------------------------------------------
1 | /* pages/selectSchool/selectSchool.wxss */
2 |
3 | .selectSchool {
4 | /*text-align: center;*/
5 | position: fixed;
6 | top: 10%;
7 | bottom: 10%;
8 | left: 10%;
9 | right: 10%;
10 | display: flex;
11 | flex-direction: column;
12 | justify-content: center;
13 | align-items: center;
14 | z-index: 5;
15 | background-color: white;
16 | }
17 |
18 | .selectSchool text {
19 | margin-top: 55rpx;
20 | font-size: 32rpx;
21 | color: #7d7b7b;
22 | font-weight: bold;
23 | }
24 |
25 | .selectSchool input {
26 | margin-top: 55rpx;
27 | padding-top: 30rpx;
28 | padding-bottom: 30rpx;
29 | padding: 0;
30 | padding-left:15rpx;
31 | border: 2rpx solid #f2f2f2;
32 | width: 70%;
33 | font-size: 30rpx;
34 | letter-spacing: 1px;
35 | }
36 |
37 | .selectSchool image {
38 | width: 100rpx;
39 | height: 100rpx;
40 | }
41 |
42 | .selectSchool button {
43 | width: 60%;
44 | margin-top: 30rpx;
45 | font-weight: bold;
46 | }
47 |
48 | .selectSchool .scroll {
49 | width: 70%;
50 | height: 250rpx;
51 | border-bottom: 2rpx solid #B6B5B5;
52 | border-left: 2rpx solid #B6B5B5;
53 | border-right: 2rpx solid #B6B5B5;
54 | }
55 |
56 | .selectSchool .input {
57 | height: 1.4rem;
58 | width: 100%;
59 | margin: 0 auto;
60 | font-size: 32rpx;
61 | color: #7d7b7b;
62 | display: flex;
63 | justify-content:center;
64 | align-items: center;
65 | letter-spacing: 1px;
66 | border-bottom: 2rpx solid #f2f2f2;
67 | padding-top: 20rpx;
68 | padding-bottom:20rpx;
69 | }
70 | .mengban {
71 | position: fixed;
72 | top: 0%;
73 | width: 100%;
74 | height: 1500rpx;
75 | background-color: grey;
76 | z-index: 1;
77 | opacity: 0.3;
78 | }
--------------------------------------------------------------------------------
/pages/shenfenValidation/shenfenValidation.js:
--------------------------------------------------------------------------------
1 | // pages/shenfenValidation/shenfenValidation.js
2 | Page({
3 |
4 | /**
5 | * 页面的初始数据
6 | */
7 | data: {
8 | "animationData": [],
9 | "hiddent": true,
10 | 'tishi': null
11 | },
12 |
13 | /**
14 | * 生命周期函数--监听页面加载
15 | */
16 | onLoad: function (options) {
17 | // var loot = options.loot;
18 | // console.log(loot)
19 | // if(loot!=null){
20 | // this.setData({loot,loot})
21 | // }
22 | },
23 |
24 | /**
25 | * 生命周期函数--监听页面初次渲染完成
26 | */
27 | onReady: function () {
28 |
29 | },
30 |
31 | /**
32 | * 生命周期函数--监听页面显示
33 | */
34 | onShow: function () {
35 |
36 | },
37 |
38 | /**
39 | * 生命周期函数--监听页面隐藏
40 | */
41 | onHide: function () {
42 |
43 | },
44 |
45 | /**
46 | * 生命周期函数--监听页面卸载
47 | */
48 | onUnload: function () {
49 |
50 | },
51 |
52 | /**
53 | * 页面相关事件处理函数--监听用户下拉动作
54 | */
55 | onPullDownRefresh: function () {
56 |
57 | },
58 |
59 | /**
60 | * 页面上拉触底事件的处理函数
61 | */
62 | onReachBottom: function () {
63 |
64 | },
65 |
66 | /**
67 | * 用户点击右上角分享
68 | */
69 | onShareAppMessage: function () {
70 |
71 | },
72 | getInput:function(options){
73 | var name = options.detail.value;
74 | this.setData({name:name});
75 | },
76 | getWeChat:function(options){
77 | var weChat = options.detail.value;
78 | this.setData({ weChat: weChat });
79 | },
80 |
81 | confirm: function () {
82 | var that = this;
83 | var name = this.data.name ;
84 | var weChat = this.data.weChat;
85 | var loot = this.data.loot;
86 | if (name== null ||weChat == null ||name=="" ||weChat=="" ) {
87 | this.setData({ 'tishi': "请认真输入信息" });
88 | this.tishi();
89 | return;
90 | }else{
91 | // var s = '/pages/phoneNumber/phoneNumber?name='+name+"&weChat="+weChat
92 | // if(loot==null){
93 | // +"&loot=" + loot
94 | // }
95 | wx.redirectTo({
96 | url: '/pages/phoneNumber/phoneNumber?name='+name+"&weChat="+weChat,
97 | })
98 | }
99 | },
100 | tishi: function () {
101 | var that = this;
102 | //动画
103 | var animation = wx.createAnimation({
104 | duration: 200,
105 | timingFunction: "ease-in-out",
106 | delay: 0
107 | });
108 | //显示
109 | that.setData({ "hiddent": false })
110 | //开始动画,导入动画
111 | animation.translateY(-60).step();
112 | that.setData({ "animationData": animation.export() })
113 | setTimeout(function () {
114 | that.setData({ "hiddent": true })
115 | }, 1500)
116 | },
117 |
118 | })
--------------------------------------------------------------------------------
/pages/shenfenValidation/shenfenValidation.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/pages/shenfenValidation/shenfenValidation.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 为保障您的代办事项能顺利进行,\n在您发布跑腿订单,需要填写一些身份信息
6 |
7 |
8 |
9 |
10 |
11 | {{tishi}}
12 |
13 |
14 |
--------------------------------------------------------------------------------
/pages/shenfenValidation/shenfenValidation.wxss:
--------------------------------------------------------------------------------
1 | /* pages/shenfenValidation/shenfenValidation.wxss */
2 | .bigView{
3 | padding-top: 170rpx;
4 | }
5 | .text {
6 | font-size: 28rpx;
7 | font-weight: 600;
8 | line-height: 180%;
9 | letter-spacing: 2rpx;
10 | }
11 | .textView{
12 | text-align: center;
13 | }
14 | .content .phoneNumber {
15 | margin: 0 auto;
16 | border: 2px solid #ccc;
17 | width: 85%;
18 | padding: 7rpx;
19 | margin-top: 40rpx;
20 | margin-bottom: 40rpx;
21 | }
22 | .phoneNumber1{
23 | text-align: center;
24 | color: #DADADA;
25 | font-size: 30rpx;
26 | font-weight: 600;
27 | }
28 | .idCode {
29 | display: flex;
30 | width: 90%;
31 | margin: 0 auto;
32 | }
33 |
34 | .idCode button {
35 | width: 45%;
36 | border-radius: 0% 0% 0% 0%;
37 | border: 2px solid #ccc;
38 | background-color: #65abf3;
39 | color: white;
40 | font-size: 30rpx;
41 | margin: 0 auto;
42 | }
43 | .idCode input{
44 | border: 2px solid #ccc;
45 | width: 45%;
46 | margin:0 auto;
47 | padding: 10rpx;
48 | }
49 |
50 | .confirm {
51 | position: absolute;
52 | align-content: center;
53 | justify-content: center;
54 | bottom: 0px;
55 | width: 100%;
56 | border-radius: 0% 0% 0% 0%;
57 | background-color: #65abf3;
58 | color: white;
59 | font-weight: 600;
60 | font-size: 35rpx;
61 | padding: 1rpx;
62 | }
63 |
64 | .tishi {
65 | width: 35%;
66 | background-color: #E2E2E2;
67 | border-radius: 5%;
68 | height: 70rpx;
69 | display: flex;
70 | justify-content: center;
71 | align-items: center;
72 | color: white;
73 | font-size: 30rpx;
74 | font-weight: bold;
75 | position: absolute;
76 | bottom: 0%;
77 | left: 35%;
78 | right: 35%;
79 | }
80 |
81 | .name{
82 | border: 2px solid #ccc;
83 | width: 45%;
84 |
85 | padding: 10rpx;
86 | }
--------------------------------------------------------------------------------
/pages/submitOrder/submitOrder.json:
--------------------------------------------------------------------------------
1 | {
2 | "backgroundTextStyle": "dark",
3 | "navigationBarBackgroundColor": "#58ABDF",
4 | "navigationBarTitleText": "发布订单",
5 | "navigationBarTextStyle": "white"
6 | }
--------------------------------------------------------------------------------
/pages/submitOrder/submitOrder.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
92 |
--------------------------------------------------------------------------------
/pages/submitOrder/submitOrder.wxss:
--------------------------------------------------------------------------------
1 | .element {
2 | display: flex;
3 | flex-wrap: wrap;
4 | border-bottom: 5px solid gainsboro;
5 | padding-bottom: 45rpx;
6 | }
7 |
8 | .element view {
9 | width: 95%;
10 | display: flex;
11 | justify-content: flex-end;
12 | align-items: center;
13 | margin-top: 25rpx;
14 | }
15 |
16 | .element text {
17 | font-size: 30rpx;
18 | font-weight: bold;
19 | }
20 |
21 | .element input {
22 | border: 1px solid gainsboro;
23 | width: 75%;
24 | margin-left: 15rpx;
25 | font-size: 30rpx;
26 | padding-left: 15rpx;
27 | background-color: white;
28 | }
29 |
30 | .orderView {
31 | display: flex;
32 | flex-wrap: wrap;
33 | border-bottom: 5px solid gainsboro;
34 | padding-bottom: 45rpx;
35 | }
36 |
37 | .orderView view {
38 | width: 95%;
39 | display: flex;
40 | justify-content: flex-end;
41 | align-items: center;
42 | margin-top: 25rpx;
43 | margin-right: 10%;
44 | }
45 |
46 | .orderView text {
47 | font-size: 30rpx;
48 | font-weight: bold;
49 | }
50 |
51 | .orderView input {
52 | border: 1px solid gainsboro;
53 | width: 70%;
54 | margin-left: 15rpx;
55 | font-size: 30rpx;
56 | padding-left: 15rpx;
57 | background-color: white;
58 | }
59 |
60 | .orderView .type2 {
61 | position: relative;
62 | /*width: 80%;*/
63 | }
64 |
65 | .selectIcon {
66 | width: 55rpx;
67 | height: 55rpx;
68 | position: absolute;
69 | right: 0%;
70 | z-index: 3;
71 | }
72 |
73 | .select {
74 | display: flex;
75 | flex-direction: column;
76 | font-size: 30rpx;
77 | font-weight: bold;
78 | }
79 |
80 | .select label {
81 | margin-top: 10rpx;
82 | margin-bottom: 10rpx;
83 | }
84 |
85 | .select label radio {
86 | margin-right: 20rpx;
87 | }
88 |
89 | .orderView .type2 .typeInput {
90 | position: relative;
91 | text-align: center;
92 | font-weight: bold;
93 | }
94 |
95 | .selectView {
96 | z-index: 5;
97 | display: flex;
98 | /*justify-content: flex-start;*/
99 | justify-content: center;
100 | align-items: center;
101 | /*position: absolute;*/
102 | /*top: 60%;
103 | left: 50%;
104 | right: 50%;
105 | width: 300rpx;*/
106 | height: 300rpx;
107 | width: 85%;
108 | margin: 0 auto;
109 | background-color: white;
110 | border-left: 1px solid gainsboro;
111 | border-right: 1px solid gainsboro;
112 | border-bottom: 1px solid gainsboro;
113 | }
114 | .selectView view{
115 | width: 100%;
116 | display: flex;
117 | justify-content: space-between;
118 | }
119 | .selectView radio-group {
120 | width: 100%;
121 | }
122 | .selectView radio-group label{
123 | margin-left: 25rpx;
124 | }
125 | .timeView {
126 | margin: 0 auto;
127 | position: relative;
128 | }
129 | .timeView .selectIcon1{
130 | width: 55rpx;
131 | height: 55rpx;
132 | position: absolute;
133 | right: 0%;
134 | z-index: 3;
135 | }
136 | .orderView {
137 | display: flex;
138 | justify-content: center;
139 | align-items: center;
140 | }
141 |
142 | textarea {
143 | border: 1px solid gainsboro;
144 | margin-left: 15rpx;
145 | width: 70%;
146 | height: 200rpx;
147 | padding: 20rpx;
148 | background-color: white;
149 | }
150 |
151 | .sex {
152 | margin-left: 40rpx;
153 | font-weight: bold;
154 | font-size: 35rpx;
155 | }
156 |
157 | .element .imageView {
158 | width: 70%;
159 | height: 250rpx;
160 | background-color: lightgrey;
161 | margin: 0 auto;
162 | display: flex;
163 | justify-content: center;
164 | align-items: center;
165 | margin-top: 50rpx;
166 | }
167 |
168 | .element .imageView text {
169 | text-align: center;
170 | font-size: 25rpx;
171 | color: white;
172 | }
173 |
174 | .element .imageView image {
175 | width: 100%;
176 | height: 250rpx;
177 | }
178 |
179 | .orderView .primary {
180 | width: 90%;
181 | }
182 |
183 | .imageBig {
184 | margin-bottom: 100rpx;
185 | }
186 |
187 | .btnView {
188 | position: fixed;
189 | bottom: 0px;
190 | display: flex;
191 | width: 100%;
192 | font-size: 35rpx;
193 | border-radius: 0px;
194 | }
195 |
196 | .btnView .cancel {
197 | width: 30%;
198 | border-radius: 0px;
199 | border-bottom-right-radius: 0px;
200 | padding: 5rpx;
201 | font-weight: 600;
202 | border: 1px solid #c9c9c9;
203 | }
204 |
205 | .btnView .send {
206 | width: 70%;
207 | border-radius: 0px;
208 | padding: 5rpx;
209 | background-color: #418deb;
210 | color: white;
211 | font-weight: 600;
212 | border: 1px solid #c9c9c9;
213 | }
214 |
215 | page {
216 | position: relative;
217 | background-color: #F8F8F8;
218 | }
219 |
220 | .picker {
221 | width: 100%;
222 | height: 200rpx;
223 | position: absolute;
224 | top: 30%;
225 | bottom: 30%;
226 | z-index: 7;
227 | background-color: white;
228 | text-align: center;
229 | margin: 0 auto;
230 | }
231 |
--------------------------------------------------------------------------------
/pages/submitOrderMsg/submitOrderMsg.js:
--------------------------------------------------------------------------------
1 | // pages/submitOrderMsg/submitOrderMsg.js
2 | Page({
3 |
4 | /**
5 | * 页面的初始数据
6 | */
7 | data: {
8 |
9 | },
10 |
11 | /**
12 | * 生命周期函数--监听页面加载
13 | */
14 | onLoad: function (options) {
15 |
16 | },
17 |
18 | /**
19 | * 生命周期函数--监听页面初次渲染完成
20 | */
21 | onReady: function () {
22 |
23 | },
24 |
25 | /**
26 | * 生命周期函数--监听页面显示
27 | */
28 | onShow: function () {
29 |
30 | },
31 |
32 | /**
33 | * 生命周期函数--监听页面隐藏
34 | */
35 | onHide: function () {
36 |
37 | },
38 |
39 | /**
40 | * 生命周期函数--监听页面卸载
41 | */
42 | onUnload: function () {
43 |
44 | },
45 |
46 | /**
47 | * 页面相关事件处理函数--监听用户下拉动作
48 | */
49 | onPullDownRefresh: function () {
50 |
51 | },
52 |
53 | /**
54 | * 页面上拉触底事件的处理函数
55 | */
56 | onReachBottom: function () {
57 |
58 | },
59 |
60 | /**
61 | * 用户点击右上角分享
62 | */
63 | onShareAppMessage: function () {
64 |
65 | },
66 |
67 | uploadImage:function (options, userInfo, successTime) {
68 | var that = this;
69 | wx.uploadFile({
70 | url: 'https://api.wnschool.cn/order-upload',
71 | filePath: that.data.image,
72 | name: 'file',
73 | success: function (options1) {
74 | console.log(options1)
75 | var images = that.data.imagesUrl;
76 | var o = JSON.parse(options1.data).imageUrl;
77 | images.push(o);
78 | that.setData({ imagesUrl: images });
79 | that.check(options, userInfo, successTime);
80 | },
81 | fail: function (options) {
82 | console.log(options)
83 | }
84 | })
85 | },
86 | submit: function (options, userInfo, successTime) {
87 | console.log(userInfo)
88 | var that = this;
89 | wx.request({
90 | url: 'https://api.wnschool.cn/order-orderSave',
91 | data: {
92 | "user.id": userInfo.id,
93 | "orderPrivate.phoneNumber": options.detail.value.phoneNumber,
94 | "orderPrivate.contactName": options.detail.value.contactName,
95 | "orderPrivate.weChatNumber": options.detail.value.weChatNumber,
96 | "orderTalk.content": options.detail.value.privateTalk,
97 | "orderTalk.hostId": userInfo.id,
98 | "orderPrivate.imageUrl": that.data.imagesUrl.toString(),
99 | content: options.detail.value.content,
100 | money: options.detail.value.money,
101 | orderType: options.detail.value.orderType,
102 | sex: parseInt(options.detail.value.sex),
103 | successTime: successTime,
104 |
105 |
106 | },
107 | header: {
108 | "Content-Type": "application/x-www-form-urlencoded"
109 | },
110 | method: 'POST',
111 | success: function (res) {
112 | if (res.data == "success") {
113 | wx.showToast({
114 | title: '发布成功',
115 | success: function () {
116 | setTimeout(function () {
117 | wx.switchTab({
118 | url: "/pages/run/run",
119 | })
120 | }, 1000);
121 | }
122 | })
123 | }
124 | }
125 | })
126 | },
127 | })
--------------------------------------------------------------------------------
/pages/submitOrderMsg/submitOrderMsg.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/pages/submitOrderMsg/submitOrderMsg.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
9 |
10 |
11 | 联系姓名
12 | {{data.orderPrivate.phoneNumber}}
13 |
14 |
15 | 手机号
16 | {{data.orderPrivate.phoneNumber}}
17 |
18 |
19 | 微信号
20 | {{data.orderPrivate.weChatNumber}}
21 |
22 |
23 |
26 |
27 |
28 |
29 |
30 | 订单类型
31 | {{data.orderPrivate.order.orderType}}
32 |
33 |
34 | 规定时间
35 | {{data.orderPrivate.order.successTime}}
36 |
37 |
38 | 指定性别
39 | {{data.orderPrivate.order.successTime}}
40 |
41 |
42 | 订单金额
43 | {{data.orderPrivate.order.money}}
44 |
45 |
46 | 订单要求
47 | {{data.orderPrivate.order.content}}
48 |
49 |
50 | 订单图片
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/pages/submitOrderMsg/submitOrderMsg.wxss:
--------------------------------------------------------------------------------
1 | /* pages/submitOrderMsg/submitOrderMsg.wxss */
2 | page{
3 | background-color: #DFDFDF;
4 |
5 | /*z-index: 0;*/
6 | /*opacity: 0.3;*/
7 | }
8 | .lan {
9 | left: 100px;
10 | top:100px;
11 | width: 280px;
12 | height: 180px;
13 | display: inline-block;
14 | padding: 10px;
15 | background: radial-gradient( transparent 0px, transparent 4px, white 4px, white );
16 | background-size: 20px 20px;
17 | background-position: -10px -10px;
18 |
19 |
20 | }
21 | .lan:after {
22 | content: '';
23 | position: absolute;
24 | left: 5px;
25 | top: 5px;
26 | right: 5px;
27 | bottom: 5px;
28 | box-shadow: 0 0 20px 1px rgba(0, 0, 0, 0.5);
29 | z-index: -1;
30 | }
31 | .msg {
32 | width: 100%;
33 | font-size: 32rpx;
34 | color: #7c7c7c;
35 | font-weight: bold;
36 | margin: 0 auto;
37 | margin-top: 30rpx;
38 | background-color: white;
39 |
40 | }
41 |
42 | .big{
43 | margin-bottom: 120rpx;
44 | }
45 | .msg view {
46 | width: 95%;
47 | display: flex;
48 | align-items: center;
49 | justify-content: space-between;
50 | flex-wrap: wrap;
51 | /*height: 60rpx;*/
52 | padding-top: 20rpx;
53 | padding-bottom:20rpx;
54 | margin: 0 auto;
55 | }
56 |
57 | .msg .first {
58 | width: 100%;
59 | border-top: 1px solid #c9c9c9;
60 | /*padding-top: 10rpx;
61 | padding-bottom: 10rpx;*/
62 | }
63 |
64 | .msg .first text {
65 | margin-right: 35rpx;
66 | margin-left: 35rpx;
67 | }
68 |
69 | .line {
70 | border-top: 1px solid #c9c9c9;
71 | /*padding-top: 10rpx;
72 | padding-bottom: 10rpx;*/
73 | /*border-bottom: 3px solid #c9c9c9;*/
74 | }
75 |
76 | .msg .jiange {
77 | width: 100%;
78 | height: 20rpx;
79 | background-color: #f2f2f2;
80 | color:#444445;
81 | font-size: 32rpx;
82 | opacity: 1;
83 | }
84 |
85 | .msg view text {
86 | margin-right: 15rpx;
87 | margin-left: 15rpx;
88 | }
89 |
90 | .line1 {
91 | border-bottom: 1px solid #c9c9c9;
92 | /*padding-top: 10rpx;
93 | padding-bottom: 10rpx;*/
94 | display: flex;
95 | justify-content: space-between;
96 | /*border-bottom: 3px solid #c9c9c9;*/
97 | }
98 |
99 | .line1 button{
100 | /*width: 10%;*/
101 | margin-left: 0;
102 | margin-right: 0;
103 | font-size: 28rpx;
104 | color: #8888A5;
105 | }
106 | .evaluate {
107 | color: #505050;
108 | font-size: 40rpx;
109 | padding-top: 10rpx;
110 | padding-bottom: 10rpx;
111 | }
112 |
113 | .value {
114 | color: #444445;
115 | font-size: 28rpx;
116 | font-weight: 500;
117 | letter-spacing: 1px;
118 | }
119 |
120 | .value1{
121 | margin-top: 20rpx;
122 | }
123 |
124 |
125 | .xiang .image {
126 | background-color: gainsboro;
127 | width: 80%;
128 | height: 200rpx;
129 | margin: 0 auto;
130 | }
131 | .image image{
132 | width: 100%;
133 | height: 200rpx;
134 | margin: 0 auto;
135 | }
136 | .jiantou {
137 | width: 35rpx;
138 | height: 35rpx;
139 | margin-right: 10rpx;
140 | }
141 | .buttonView {
142 | position: fixed;
143 | bottom: 0px;
144 | width: 100%;
145 | display: flex;
146 | justify-content: flex-end;
147 | align-items: flex-end;
148 | border-top: 2px solid #c0c0c0;
149 | padding-top: 15rpx;
150 | background-color: white;
151 | padding-bottom: 15rpx;
152 | }
153 |
154 | .button {
155 | padding-left: 35rpx;
156 | padding-right: 35rpx;
157 | font-size: 30rpx;
158 | border: 1px solid #dadada;
159 | background-color: white;
160 | color: #888;
161 | font-weight: bold;
162 | margin: 0px;
163 | margin-left: 20rpx;
164 | margin-right: 20rpx;
165 | }
166 |
167 | .return {
168 | color: #6ca9f9;
169 | border: 1px solid #6ca9f9;
170 | }
171 |
--------------------------------------------------------------------------------
/pages/submitSchoolCircle/submitSchoolCircle.js:
--------------------------------------------------------------------------------
1 | // pages/submitSchoolCircle/submitSchoolCircle.js
2 | Page({
3 | data: {
4 | imageLeng: 1,
5 | imageHidden: true,
6 | images: [],
7 | animation1: {},
8 | "hiddent": true,
9 | finish: false,
10 | tishi: null,
11 | imagesUrl: []
12 | },
13 | onLoad: function (options) {
14 | var userInfo = wx.getStorageSync("userInfo");
15 | this.setData({ userInfo: userInfo });
16 | const ctx = wx.createCanvasContext("addCanvas");
17 | ctx.beginPath();
18 | ctx.setStrokeStyle("#C9C9C9");
19 | ctx.setLineWidth(2);
20 | ctx.moveTo(10, 30);
21 | ctx.lineTo(50, 30);
22 | ctx.moveTo(30, 10);
23 | ctx.lineTo(30, 50);
24 | ctx.stroke();
25 | ctx.draw();
26 | },
27 | onReady: function () {
28 | // 页面渲染完成
29 | },
30 | onShow: function () {
31 | // 页面显示
32 | },
33 | onHide: function () {
34 | // 页面隐藏
35 | },
36 | onUnload: function () {
37 | // 页面关闭
38 | },
39 | cancel: function () {
40 | wx.switchTab({
41 | "url": "/pages/schoolcircle/schoolcircle"
42 | })
43 | },
44 | send: function () {
45 | var that = this;
46 | console.log(this.data.content)
47 | if (that.data.content == null) {
48 | that.setData({ 'tishi': "不能为空" });
49 | that.tishi();
50 | } else {
51 | if (that.data.images[0] != null) {
52 | that.uploadImage(0);
53 | console.log(1111111111);
54 | return;
55 | }
56 | that.submitSchool();
57 | console.log(that.data.imagesUrl.toString())
58 | }
59 | },
60 | uploadImage: function (i) {
61 | var that = this;
62 | // console.log(that.data.images[i]);
63 | wx.uploadFile({
64 | url: 'https://api.wnschool.cn/school-upload',
65 | filePath: that.data.images[i],
66 | name: 'file',
67 | success: function (options) {
68 | var images = that.data.imagesUrl;
69 | var o = JSON.parse(options.data).imageUrl;
70 | images.push(o);
71 | that.setData({ imagesUrl: images });
72 | // console.log(o);
73 | },
74 | fail: function (options) {
75 | console.log(options)
76 | },
77 | complete: function (options) {
78 | ++i;
79 | if (i == that.data.images.length) { //当图片传完时,停止调用
80 | console.log('执行完毕');
81 | that.submitSchool();
82 | } else {//若图片还没有传完,则继续调用函数
83 | that.uploadImage(i);
84 | }
85 | }
86 | })
87 | },
88 | submitSchool: function () {
89 | var that = this;
90 | wx.request({
91 | url: 'https://api.wnschool.cn/schoolCircle-save',
92 | data: {
93 | "user.id": that.data.userInfo.id,
94 | "tiezi.content": that.data.content,
95 | "tiezi.images": that.data.imagesUrl.toString()
96 | // "tiezi.images":that.data.imagesPath
97 | },
98 | header: {
99 | "Content-Type": "application/x-www-form-urlencoded"
100 | },
101 | method: 'POST',
102 | success: function (res) {
103 | console.log(res)
104 | if (res.data == "success") {
105 | wx.showToast({
106 | title: '成功',
107 | icon: 'success',
108 | duration: 2000,
109 | mask: true,
110 | success: function () {
111 | setTimeout(function () {
112 | wx.switchTab({
113 | "url": "/pages/schoolcircle/schoolcircle"
114 | })
115 | }, 2000)
116 | }
117 | })
118 | }
119 | }
120 | })
121 | console.log(that.data.imagesUrl.toString())
122 | },
123 | addImage: function () {
124 | var that = this;
125 | var images = that.data.images;
126 | wx.chooseImage({
127 | count: 9,
128 | success: function (res) {
129 | for (var i = 0; i < res.tempFilePaths.length; i++) {
130 | images.push(res.tempFilePaths[i]);
131 | }
132 | if (images.length == 9) {
133 | that.setData({ finish: true });
134 | }
135 | that.setData({ images: images, "imageHidden": false });
136 | console.log(res)
137 | },
138 | })
139 | },
140 | getMsg: function (options) {
141 | this.setData({ content: options.detail.value });
142 | },
143 | //动画提示
144 | tishi: function () {
145 | var that = this;
146 | //动画
147 | var animation = wx.createAnimation({
148 | duration: 200,
149 | timingFunction: "ease-in-out",
150 | delay: 0
151 | });
152 | //显示
153 | that.setData({ "hiddent": false })
154 | //开始动画,导入动画
155 | animation.translateY(-60).step();
156 | that.setData({ "animation1": animation.export() })
157 | setTimeout(function () {
158 | that.setData({ "hiddent": true })
159 | animation.translateY(0).step();
160 | that.setData({ "animation1": animation.export() })
161 | }, 1500)
162 | },
163 | })
--------------------------------------------------------------------------------
/pages/submitSchoolCircle/submitSchoolCircle.json:
--------------------------------------------------------------------------------
1 | {
2 | "backgroundTextStyle":"dark",
3 | "navigationBarBackgroundColor": "#58ABDF",
4 | "navigationBarTitleText": "发布校圈",
5 | "navigationBarTextStyle":"white"
6 | }
--------------------------------------------------------------------------------
/pages/submitSchoolCircle/submitSchoolCircle.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 | {{tishi}}
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/pages/submitSchoolCircle/submitSchoolCircle.wxss:
--------------------------------------------------------------------------------
1 | /* pages/submitSchoolCircle/submitSchoolCircle.wxss */
2 |
3 | page {
4 | background-color: #f8f8f8;
5 | }
6 |
7 | .image {
8 | width: 60px;
9 | height: 60px;
10 | border: 2px solid #c9c9c9;
11 | background-color: white;
12 | margin: 35rpx 0rpx 0rpx 45rpx;
13 | }
14 |
15 | .image image {
16 | width: 60px;
17 | height: 60px;
18 | }
19 |
20 | .addCanvas {
21 | width: 60px;
22 | height: 60px;
23 | }
24 |
25 | .imageAdd {
26 | width: 60px;
27 | height: 60px;
28 | border: 2px solid #c9c9c9;
29 | background-color: white;
30 | margin: 35rpx 0rpx 0rpx 45rpx;
31 | }
32 |
33 | .images {
34 | display: flex;
35 | flex-wrap: wrap;
36 | margin-bottom: 150rpx;
37 | }
38 |
39 | .textarea {
40 | color: #c1c1c1;
41 | font-size: 35rpx;
42 | }
43 |
44 | .textarea1 {
45 | background-color: white;
46 | margin: 0 auto;
47 | width: 90%;
48 | height: 400rpx;
49 | border-bottom: 2px solid #c1c1c1;
50 | border-top: 2px solid #c1c1c1;
51 | padding: 35rpx 45rpx 35rpx 45rpx;
52 | }
53 |
54 | .btnView {
55 | position: fixed;
56 | bottom: 0px;
57 | display: flex;
58 | width: 100%;
59 | font-size: 35rpx;
60 | border-radius: 0px;
61 | }
62 |
63 | .btnView .cancel {
64 | width: 30%;
65 | border-radius: 0px;
66 | border-bottom-right-radius: 0px;
67 | padding: 5rpx;
68 | font-weight: 600;
69 | border: 1px solid #c9c9c9;
70 | }
71 |
72 | .btnView .send {
73 | width: 70%;
74 | border-radius: 0px;
75 | padding: 5rpx;
76 | background-color: #418deb;
77 | color: white;
78 | font-weight: 600;
79 | border: 1px solid #c9c9c9;
80 | }
81 | .tishi {
82 | width: 35%;
83 | background-color: #E2E2E2;
84 | border-radius: 5%;
85 | height: 70rpx;
86 | display: flex;
87 | justify-content: center;
88 | align-items: center;
89 | color: white;
90 | font-size: 30rpx;
91 | font-weight: bold;
92 | position: absolute;
93 | bottom: 0%;
94 | left: 35%;
95 | right: 35%;
96 | }
--------------------------------------------------------------------------------
/pages/suggest/suggest.js:
--------------------------------------------------------------------------------
1 | // pages/suggest/suggest.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/suggest/suggest.json:
--------------------------------------------------------------------------------
1 | {
2 | "backgroundTextStyle":"dark",
3 | "navigationBarBackgroundColor": "#58ABDF",
4 | "navigationBarTitleText": "意见与反馈",
5 | "navigationBarTextStyle":"white"
6 | }
--------------------------------------------------------------------------------
/pages/suggest/suggest.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 我们会根据您的意见对服务做进一步的改造优化
7 | 感谢您的支持
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/pages/suggest/suggest.wxss:
--------------------------------------------------------------------------------
1 | page{
2 | background-color: #F8F8F8;
3 | margin-top:70rpx;
4 | margin-bottom: 150rpx;
5 | }
6 | .areaView{
7 | height:20rem;
8 | border: 2px solid #DCDCDC;
9 | margin: 0 auto;
10 | width: 13rem;
11 | background-color: white;
12 | }
13 | .textarea{
14 | height: 18rem;
15 | background-color: white;
16 | width: 85%;
17 | padding: 25rpx 0rpx 0rpx 30rpx;
18 | }
19 | .textView{
20 | margin-top: 50rpx;
21 | text-align: center;
22 | width: 100%;
23 |
24 | }
25 | .text{
26 | font-size: 23rpx;
27 | letter-spacing: 0.3px;
28 | color: #B8B8B8;
29 | font-weight: 600;
30 | }
31 | .btnView{
32 | position: fixed;
33 | bottom: 0px;
34 | display: flex;
35 | width: 100%;
36 | font-size: 35rpx;
37 | border-radius: 0px;
38 | }
39 | .btnView .cancel{
40 | width: 30%;
41 | border-radius: 0px;
42 | border-bottom-right-radius: 0px;
43 | padding: 5rpx;
44 | font-weight: 600;
45 | border: 1px solid #C9C9C9;
46 | }
47 | .btnView .send{
48 | width:70%;
49 | border-radius: 0px;
50 | padding: 5rpx;
51 | background-color: #418DEB;
52 | color: white;
53 | font-weight: 600;
54 | border: 1px solid #C9C9C9;
55 | }
--------------------------------------------------------------------------------
/pages/util/util.js:
--------------------------------------------------------------------------------
1 | // pages/util/util.js
2 | Page({
3 | /**
4 | * 页面的初始数据
5 | */
6 | data: {
7 | personal: true,
8 | "userInfo": null,
9 | selectSchoolHidden:true,
10 | value:""
11 | },
12 | onLoad: function (options) {
13 | const date = new Date()
14 | const years = []
15 | const months = []
16 | const days = []
17 |
18 | for (let i = 1990; i <= date.getFullYear(); i++) {
19 | years.push(i)
20 | }
21 |
22 | for (let i = 1; i <= 12; i++) {
23 | months.push(i)
24 | }
25 |
26 | for (let i = 1; i <= 31; i++) {
27 | days.push(i)
28 | }
29 |
30 | Page({
31 | data: {
32 | years: years,
33 | year: date.getFullYear(),
34 | months: months,
35 | month: 2,
36 | days: days,
37 | day: 2,
38 | year: date.getFullYear(),
39 | value: [9999, 1, 1],
40 | },
41 | bindChange: function (e) {
42 | const val = e.detail.value
43 | this.setData({
44 | year: this.data.years[val[0]],
45 | month: this.data.months[val[1]],
46 | day: this.data.days[val[2]]
47 | })
48 | }
49 | })
50 | },
51 |
52 | /**
53 | * 生命周期函数--监听页面初次渲染完成
54 | */
55 | onReady: function () {
56 |
57 | },
58 |
59 | /**
60 | * 生命周期函数--监听页面显示
61 | */
62 | onShow: function () {
63 |
64 | },
65 |
66 | /**
67 | * 生命周期函数--监听页面隐藏
68 | */
69 | onHide: function () {
70 |
71 | },
72 |
73 | /**
74 | * 生命周期函数--监听页面卸载
75 | */
76 | onUnload: function () {
77 |
78 | },
79 |
80 | /**
81 | * 页面相关事件处理函数--监听用户下拉动作
82 | */
83 | onPullDownRefresh: function () {
84 |
85 | },
86 |
87 | /**
88 | * 页面上拉触底事件的处理函数
89 | */
90 | onReachBottom: function () {
91 |
92 | },
93 |
94 | /**
95 | * 用户点击右上角分享
96 | */
97 | onShareAppMessage: function () {
98 |
99 | },
100 |
101 | /**
102 | * 页面上拉触底事件的处理函数
103 | */
104 | onReachBottom: function () {
105 |
106 | },
107 |
108 | /**
109 | * 页面相关事件处理函数--监听用户下拉动作
110 | */
111 | onPullDownRefresh: function () {
112 |
113 | },
114 |
115 | getValue:function(options){
116 | var data = this.data.schoolData;
117 | var index = options.currentTarget.dataset.index;
118 | this.setData({ value: data[index], schoolData: [], selectSchoolHidden: true});
119 | console.log(this.data.value)
120 | },
121 | getMsg:function(options){
122 | var value = options.detail.value;
123 | var util = require('../../utils/chinaUniversityList.js');
124 | var schoolList = util.getSchoolList();
125 | var data = new Array();
126 | for (var i = 0; i < schoolList.length;i++){
127 | for(var j=0;j=0){
130 | // console.log(name)
131 | data.push(name);
132 | }
133 | }
134 | }
135 | this.setData({ schoolData: data, selectSchoolHidden:false});
136 | }
137 | })
--------------------------------------------------------------------------------
/pages/util/util.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/pages/util/util.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 订单
5 | 钱包
6 | 校圈
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | {{orderUser.nickName}}
21 |
22 |
23 |
24 | 999\n
25 | 校圈
26 |
27 |
28 | 999\n
29 | 好评
30 |
31 |
32 | 999\n
33 | 详情
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 | {{schoolCircle.nickname}}
50 |
51 |
52 |
53 |
54 |
55 |
56 | {{schoolCircle.school}}
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
--------------------------------------------------------------------------------
/pages/util/util.wxss:
--------------------------------------------------------------------------------
1 | .tabBar {
2 | display: flex;
3 | justify-content: center;
4 | height: 50rpx;
5 | align-items: center;
6 | color: white;
7 | font-size: 27rpx;
8 | background-color: #6ca9f9;
9 | text-align: center;
10 | font-weight: bold;
11 | padding: 20rpx 0rpx 20rpx 0rpx;
12 | position: relative;
13 | }
14 |
15 | .tabBar view {
16 | width: 33%;
17 | margin: 0 auto;
18 | }
19 |
20 | .mengban {
21 | position: fixed;
22 | top: 0%;
23 | width: 100%;
24 | height: 1500rpx;
25 | background-color: grey;
26 | z-index: 1;
27 | opacity: 0.7;
28 | }
29 |
30 | .personal {
31 | position: fixed;
32 | z-index: 2;
33 | top: 30%;
34 | left: 10%;
35 | right: 10%;
36 | width: 80%;
37 | /*padding-top: 30%;*/
38 | margin: 0 auto;
39 | }
40 |
41 | .head1 {
42 | /*width: 80%;*/
43 | margin: 0 auto;
44 | padding-top: 20rpx;
45 | background-color: white;
46 | border-radius: 7%;
47 | border: 1px solid #bcbcbc;
48 | }
49 |
50 | .anView1 {
51 | text-align: center;
52 | }
53 |
54 | .avatarUrlView1 {
55 | margin: 0 auto;
56 | background-color: #019fe9;
57 | border-radius: 50%;
58 | height: 150rpx;
59 | width: 150rpx;
60 | border: 2px solid #bcbcbc;
61 | margin-bottom: 20rpx;
62 | }
63 |
64 | .avatarUrlView1 image {
65 | width: 150rpx;
66 | height: 150rpx;
67 | border-radius: 50%;
68 | }
69 |
70 | .nickName1 {
71 | font-size: 40rpx;
72 | font-weight: 600;
73 | }
74 |
75 | .msg1 {
76 | text-align: center;
77 | display: flex;
78 | margin-top: 20rpx;
79 | padding-bottom: 15rpx;
80 | /*border-bottom: 2px solid gainsboro;*/
81 | }
82 |
83 | .msg1 view {
84 | width: 33%;
85 | }
86 |
87 | .number1 {
88 | font-size: 27rpx;
89 | color: #3dbefa;
90 | padding-bottom: 5rpx;
91 | }
92 |
93 | .zi1 {
94 | font-size: 33rpx;
95 | font-weight: 800;
96 | color: #5f5f5f;
97 | }
98 |
99 | .personal2 {
100 | width: 80%;
101 | margin: 0 auto;
102 | padding: 35rpx 25rpx 35rpx 25rpx;
103 | z-index: 2;
104 | background-color: white;
105 | border-radius: 2%;
106 | position: fixed;
107 | top: 30%;
108 | left: 5%;
109 | right: 5%;
110 | }
111 |
112 | /*.head2{
113 | display: flex;
114 | justify-content: center;
115 | align-items: center;
116 | flex-direction: column;
117 | flex-wrap: wrap;
118 | }*/
119 |
120 | .avatarUrlView2 {
121 | position: absolute;
122 | right: 5%;
123 | bottom: 15%;
124 | background-color: #019fe9;
125 | border-radius: 50%;
126 | height: 110rpx;
127 | width: 110rpx;
128 | border: 2px solid #bcbcbc;
129 | /*margin-left: 25%;*/
130 | }
131 |
132 | .avatarUrlView2 image {
133 | border-radius: 50%;
134 | height: 110rpx;
135 | width: 110rpx;
136 | }
137 |
138 | .nickName2View {
139 | width: 60%;
140 | }
141 |
142 | .nickNameIcon {
143 | width: 55rpx;
144 | height: 55rpx;
145 | margin-right: 10rpx;
146 | }
147 |
148 | .nickName2 {
149 | font-size: 33rpx;
150 | /*font-weight: 600;*/
151 | color: #5f5f5f;
152 | width: 70%;
153 | }
154 |
155 | .schoolView {
156 | margin-top: 20rpx;
157 | /*height: 55rpx;*/
158 | line-height: 55rpx;
159 | width: 60%;
160 | }
161 |
162 | .schoolIcon {
163 | width: 55rpx;
164 | height: 55rpx;
165 | margin-right: 10rpx;
166 | }
167 |
168 | .school {
169 | font-size: 30rpx;
170 | color: #bcbcbc;
171 | }
172 |
--------------------------------------------------------------------------------
/pages/validation/validation.js:
--------------------------------------------------------------------------------
1 | // pages/validation/validation.js
2 | Page({
3 | data: {
4 | animation1: {},
5 | "hiddent": true,
6 | "imageHidden":true,
7 | icon: "/image/icon/xia(2).png",
8 | shenfenHidden:false,
9 | xueshengHidden:false
10 | },
11 | onLoad: function (options) {
12 | // 页面初始化 options为页面跳转所带来的参数
13 | var userInfo = wx.getStorageSync("userInfo");
14 | var that = this;
15 | this.setData({
16 | "userInfo": userInfo
17 | })
18 | },
19 | onReady: function () {
20 | // 页面渲染完成
21 | },
22 | onShow: function () {
23 | // 页面显示
24 | },
25 | onHide: function () {
26 | // 页面隐藏
27 | },
28 | onUnload: function () {
29 | // 页面关闭
30 | },
31 | send: function (options) {
32 | console.log(options.detail.value)
33 | this.setData({msg:options.detail.value})
34 | this.request();
35 | // wx.showToast({
36 | // title: '提交审核成功',
37 | // icon: 'success',
38 | // duration: 2000,
39 | // mask: true,
40 | // success: function () {
41 | // setTimeout(function () {
42 | // wx.switchTab({
43 | // "url": "/pages/my/my"
44 | // })
45 | // }, 2000)
46 | // }
47 | // })
48 | },
49 | xueshengImage:function(){
50 | var that = this;
51 | wx.chooseImage({
52 | count: 1,
53 | success: function (res) {
54 | console.log(res)
55 | that.setData({ xueshengImage: res.tempFilePaths[0], xueshengHidden:true});
56 | },
57 | })
58 | },
59 | shenfenImage:function () {
60 | var that = this;
61 | wx.chooseImage({
62 | count: 1,
63 | success: function (res) {
64 | console.log(res)
65 | that.setData({ shenfenImage: res.tempFilePaths[0], shenfenHidden:true });
66 | },
67 | })
68 | },
69 | uploadImage: function () {
70 | if (this.data.xueshengImage != null && this.data.shenfenImage != null) {
71 | this.upload(this.data.shenfenImage,1);
72 | }else if (this.data.xueshengImage!=null){
73 | this.upload(this.data.xueshengImage,0);
74 | }else if (this.data.shenfenImage != null) {
75 | this.upload(this.data.shenfenImage,0);
76 | } else if (this.data.xueshengImage == null && this.data.shenfenImage == null){
77 | this.setData({tishi:"至少上传一张照片!!"})
78 | this.tishi();
79 | }
80 | },
81 | upload:function(options,isUploads){
82 | var that = this;
83 | wx.uploadFile({
84 | url: 'https://api.wnschool.cn/validation-upload',
85 | filePath: options,
86 | name: 'file',
87 | success: function (options1) {
88 | console.log(options1)
89 | if (options = that.data.shenfenImage){
90 | var shenfenImage = JSON.parse(options1.data).imageUrl;
91 | that.setData({ shenfenImageUrl: shenfenImage})
92 | }
93 | if (options = that.data.xueshengImage) {
94 | var xueshengImage = JSON.parse(options1.data).imageUrl;
95 | that.setData({ xueshengImageUrl: xueshengImage })
96 | }
97 | },
98 | fail: function (options) {
99 | console.log(options)
100 | },
101 | complete: function (options) {
102 | if(isUploads==1){
103 | that.upload(that.data.xueshengImage,0);
104 | }else{
105 | console.log("执行完毕")
106 | that.submit();
107 | }
108 | }
109 | })
110 | },
111 | request: function () {
112 | var loot = this.data.msg;
113 | if (loot.contactName==null||loot.contactName==""){
114 | this.setData({ tishi: "身份证姓名不能为空" })
115 | this.tishi();
116 | return;
117 | }
118 | if (loot.idCardNo == null || loot.idCardNo == "") {
119 | this.setData({ tishi: "身份证号码不能为空" })
120 | this.tishi();
121 | return;
122 | }
123 | if (loot.zhifubao == null || loot.zhifubao == "") {
124 | this.setData({ tishi: "支付宝账户不能为空" })
125 | this.tishi();
126 | return;
127 | }
128 | if (loot.xueyuan == null || loot.xueyuan == "") {
129 | this.setData({ tishi: "学院不能为空" })
130 | this.tishi();
131 | return;
132 | }
133 | if (loot.banji == null || loot.banji == "") {
134 | this.setData({ tishi: "班级不能为空" })
135 | this.tishi();
136 | return;
137 | }
138 | if (loot.xuehao == null || loot.xuehao == "") {
139 | this.setData({ tishi: "学号不能为空" })
140 | this.tishi();
141 | return;
142 | }
143 | this.uploadImage();
144 |
145 | },
146 | submit:function(){
147 | var that = this;
148 | var loot = this.data.msg;
149 | var util = require('../../utils/util.js');
150 | wx.request({
151 | url: 'http://localhost:8080/wnschool/lootValidation-saveValidation',
152 | data: {
153 | "user.id":that.data.userInfo.id,
154 | "loot.contactName": loot.contactName,
155 | "loot.idCardNo": loot.idCardNo,
156 | "loot.zhifubao": loot.zhifubao,
157 | "loot.xueyuan": loot.xueyuan,
158 | "loot.banji": loot.banji,
159 | "loot.xuehao": loot.xuehao,
160 | "loot.status": 1,
161 | "loot.studentIdCardImage":that.data.xueshengImageUrl,
162 | "loot.idCardImage": that.data.shenfenImageUrl,
163 | },
164 | header: {
165 | "Content-Type": "application/x-www-form-urlencoded"
166 | },
167 | method: 'POST',
168 | success: function (res) {
169 | var msg = "";
170 | if (that.data.xueshengImageUrl==null){
171 | msg = "student";
172 | } else if (that.data.shenfenImageUrl==null){
173 | msg = "idCard";
174 | }
175 | wx.redirectTo({
176 | url: '/pages/validationStatus/validationStatus?msg='+msg,
177 | })
178 | }
179 | });
180 | },
181 | xianshi:function(){
182 | var icon = "";
183 | if (this.data.icon =="/image/icon/xia(2).png"){
184 | icon = "/image/icon/shang(1).png"
185 | }else{
186 | icon = "/image/icon/xia(2).png"
187 | }
188 | this.setData({ imageHidden: !this.data.imageHidden, icon: icon})
189 | },
190 | //动画提示
191 | tishi: function () {
192 | var that = this;
193 | //动画
194 | var animation = wx.createAnimation({
195 | duration: 200,
196 | timingFunction: "ease-in-out",
197 | delay: 0
198 | });
199 | //显示
200 | that.setData({ "hiddent": false })
201 | //开始动画,导入动画
202 | animation.translateY(-60).step();
203 | that.setData({ "animation1": animation.export() })
204 | setTimeout(function () {
205 | that.setData({ "hiddent": true })
206 | animation.translateY(0).step();
207 | that.setData({ "animation1": animation.export() })
208 | }, 1500)
209 | },
210 | })
--------------------------------------------------------------------------------
/pages/validation/validation.json:
--------------------------------------------------------------------------------
1 | {
2 | "backgroundTextStyle":"dark",
3 | "navigationBarBackgroundColor": "#58ABDF",
4 | "navigationBarTitleText": "实名认证",
5 | "navigationBarTextStyle":"white"
6 | }
--------------------------------------------------------------------------------
/pages/validation/validation.wxml:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/pages/validation/validation.wxss:
--------------------------------------------------------------------------------
1 | page {
2 | /*background-color: #F8F8F8;*/
3 | }
4 |
5 | .name {
6 | margin-bottom: 25rpx;
7 | }
8 |
9 | .name view {
10 | display: flex;
11 | justify-content: center;
12 | margin-top: 30rpx;
13 | align-items: center;
14 | }
15 |
16 | .name view input {
17 | /*width: 70%;*/
18 | border: 2px solid #d7d7d7;
19 | margin-left: 35rpx;
20 | padding-top: 5rpx;
21 | padding-bottom: 5rpx;
22 | padding-left: 15rpx;
23 | background-color: #fafafa;
24 | }
25 |
26 | .name text {
27 | font-size: 27rpx;
28 | font-weight: bold;
29 | color: #7C7C7C;
30 | }
31 |
32 | .jian {
33 | height: 20rpx;
34 | width: 100%;
35 | margin: 0 auto;
36 | border-top: 10px solid #f2f2f2;
37 | }
38 |
39 | .zi {
40 | display: flex;
41 | justify-content: center;
42 | align-items: center;
43 | }
44 |
45 | .zi1 {
46 | display: flex;
47 | justify-content: center;
48 | align-items: center;
49 | }
50 |
51 | .zi1 .tishi {
52 | color: #616060;
53 | font-size: 21rpx;
54 | margin-top: 0;
55 | margin: 0 auto;
56 | text-align: center;
57 | }
58 | .name .tishi {
59 | margin: 0 auto;
60 | color: #616060;
61 | font-size: 21rpx;
62 | }
63 | .name .tishiView{
64 | margin-top: 0px;
65 | }
66 |
67 | .zi .tishi {
68 | color: #616060;
69 | font-size: 21rpx;
70 | margin-top: 0;
71 | margin: 0 auto;
72 | text-align: center;
73 | line-height: 200%;
74 | }
75 |
76 | .img {
77 | width: 85%;
78 | height: 330rpx;
79 | border: 2px solid #cdcdcd;
80 | background-color: #f2f2f2;
81 | margin: 0 auto;
82 | text-align: center;
83 | display: flex;
84 | justify-content: center;
85 | align-items: center;
86 | /*margin-bottom: 30rpx;*/
87 | }
88 |
89 | .img image{
90 | width: 100%;
91 | height: 330rpx;
92 | }
93 | .img text {
94 | color: #3c3c3c;
95 | font-size: 24rpx;
96 | font-weight: bold;
97 | }
98 |
99 | .submit {
100 | width: 100%;
101 | background-color: #418deb;
102 | border-radius: 0%;
103 | border: 2px solid gainsboro;
104 | color: white;
105 | }
106 |
107 | .buttonView {
108 | position: fixed;
109 | bottom: 0px;
110 | width: 100%;
111 | }
112 |
113 | .icon{
114 | width: 50rpx;
115 | height: 50rpx;
116 | margin: 0 auto;
117 | margin-top: 15rpx;
118 | margin-bottom:150rpx;
119 | display: flex;
120 | justify-content: center;
121 | box-shadow: 1px 1px 1px #DCDCDC;
122 | }
123 | .tishi1 {
124 | /*width: 35%;*/
125 | padding-left: 15rpx;
126 | padding-right: 15rpx;
127 | background-color: #E2E2E2;
128 | border-radius: 5%;
129 | height: 70rpx;
130 | display: flex;
131 | justify-content: center;
132 | align-items: center;
133 | color: white;
134 | font-size: 30rpx;
135 | font-weight: bold;
136 | position: absolute;
137 | bottom: 0%;
138 | margin: 0 auto;
139 | left: 25%;
140 | right: 25%;
141 | }
142 | /*button{
143 | width: 100%;
144 | background-color: #418DEB;
145 | border-radius: 0%;
146 | border:2px solid gainsboro;
147 | color: white;
148 | }
149 | .name{
150 | margin-top: 40rpx;
151 | margin-bottom: 40rpx;
152 | }
153 | .name view{
154 | display: flex;
155 | align-items: center;
156 | margin-top: 30rpx;
157 | justify-content: flex-end;
158 | margin-right: 10%
159 | }
160 | .name view input{
161 | border: 2px solid #D7D7D7;
162 | background-color: white;
163 | width: 70%;
164 | margin-left: 30rpx;
165 | }
166 | .name text{
167 | font-size: 27rpx;
168 | font-weight: 600;
169 | }
170 | .jian{
171 | height: 20rpx;
172 | width: 90%;
173 | margin: 0 auto;
174 | border-top: 3px solid #D7D7D7;
175 | }
176 | .zi{
177 | text-align: center;
178 | margin-bottom: 170rpx;
179 | }
180 | .tishi{
181 | color: #CBCDCF;
182 | font-size: 21rpx;
183 | }
184 | .img{
185 | width: 85%;
186 | height: 330rpx;
187 | border: 2px solid #CDCDCD;
188 | background-color: white;
189 | margin: 0 auto;
190 | text-align: center;
191 | display: flex;
192 | justify-content: center;
193 | align-items: center;
194 | }
195 | .img text{
196 | color: #3C3C3C;
197 | font-size: 24rpx;
198 | font-weight: 600;
199 | }
200 | .buttonView{
201 | position: fixed;
202 | bottom: 0px;
203 | width: 100%;
204 | }*/
205 |
--------------------------------------------------------------------------------
/pages/validationImage/validationImage.js:
--------------------------------------------------------------------------------
1 | // pages/validationImage/validationImage.js
2 | Page({
3 |
4 | /**
5 | * 页面的初始数据
6 | */
7 | data: {
8 | animation1: {},
9 | "hiddent": true,
10 | "Hidden": false,
11 | },
12 |
13 | /**
14 | * 生命周期函数--监听页面加载
15 | */
16 | onLoad: function (options) {
17 | var zi = options.zi;
18 | var userInfo = wx.getStorageSync("userInfo");
19 | var that = this;
20 | this.setData({
21 | "userInfo": userInfo,
22 | zi:zi
23 | })
24 | },
25 |
26 | /**
27 | * 生命周期函数--监听页面初次渲染完成
28 | */
29 | onReady: function () {
30 |
31 | },
32 |
33 | /**
34 | * 生命周期函数--监听页面显示
35 | */
36 | onShow: function () {
37 |
38 | },
39 |
40 | /**
41 | * 生命周期函数--监听页面隐藏
42 | */
43 | onHide: function () {
44 |
45 | },
46 |
47 | /**
48 | * 生命周期函数--监听页面卸载
49 | */
50 | onUnload: function () {
51 |
52 | },
53 |
54 | /**
55 | * 页面相关事件处理函数--监听用户下拉动作
56 | */
57 | onPullDownRefresh: function () {
58 |
59 | },
60 |
61 | /**
62 | * 页面上拉触底事件的处理函数
63 | */
64 | onReachBottom: function () {
65 |
66 | },
67 |
68 | /**
69 | * 用户点击右上角分享
70 | */
71 | onShareAppMessage: function () {
72 | },
73 | Image: function () {
74 | var that = this;
75 | wx.chooseImage({
76 | count: 1,
77 | success: function (res) {
78 | console.log(res)
79 | that.setData({ Image: res.tempFilePaths[0], Hidden: true });
80 | },
81 | })
82 | },
83 | upload: function () {
84 | var that = this;
85 | wx.uploadFile({
86 | url: 'https://api.wnschool.cn/validation-upload',
87 | filePath: that.data.Image,
88 | name: 'file',
89 | success: function (options1) {
90 | var imageUrl = JSON.parse(options1.data).imageUrl;
91 | that.setData({ imageUrl: imageUrl});
92 | that.request();
93 | },
94 | fail: function (options) {
95 | console.log(options)
96 | }
97 | })
98 | },
99 | request:function(){
100 | var that = this;
101 | console.log(that.data.imageUrl)
102 | wx.request({
103 | url: 'https://api.wnschool.cn/lootValidation-updateValidation',
104 | data: {
105 | "user.id": that.data.userInfo.id,
106 | "image": that.data.imageUrl
107 | },
108 | header: {
109 | "Content-Type": "application/x-www-form-urlencoded"
110 | },
111 | method: 'POST',
112 | success: function (res) {
113 | wx.redirectTo({
114 | url: '/pages/validationStatus/validationStatus',
115 | })
116 | }
117 | });
118 | },
119 | submit:function(){
120 | this.upload();
121 | }
122 | })
--------------------------------------------------------------------------------
/pages/validationImage/validationImage.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/pages/validationImage/validationImage.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 你还缺一张{{zi}}信息页没有上传
5 |
6 |
7 |
8 | 请上传您的{{zi}}信息页
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/pages/validationImage/validationImage.wxss:
--------------------------------------------------------------------------------
1 | /* pages/validationImage/validationImage.wxss */
2 | page{
3 | margin-top:200rpx;
4 | }
5 | .img {
6 | width: 85%;
7 | height: 330rpx;
8 | border: 2px solid #cdcdcd;
9 | background-color: #f2f2f2;
10 | margin: 0 auto;
11 | text-align: center;
12 | display: flex;
13 | justify-content: center;
14 | align-items: center;
15 | margin-top: 35rpx;
16 | /*margin-bottom: 30rpx;*/
17 | }
18 |
19 | .img image{
20 | width: 100%;
21 | height: 330rpx;
22 | }
23 | .img text {
24 | color: #3c3c3c;
25 | font-size: 24rpx;
26 | font-weight: bold;
27 | }
28 | .submit {
29 | width: 100%;
30 | background-color: #418deb;
31 | border-radius: 0%;
32 | border: 2px solid gainsboro;
33 | color: white;
34 | }
35 |
36 | .buttonView {
37 | position: fixed;
38 | bottom: 0px;
39 | width: 100%;
40 | }
41 | .zi1 {
42 | display: flex;
43 | justify-content: center;
44 | align-items: center;
45 | }
46 |
47 | .zi1 .tishi {
48 | color: #424141;
49 | font-size: 30rpx;
50 | font-weight: bold;
51 | margin-top: 0;
52 | margin: 0 auto;
53 | text-align: center;
54 | }
--------------------------------------------------------------------------------
/pages/validationStatus/validationStatus.js:
--------------------------------------------------------------------------------
1 | // pages/validationStatus/validationStatus.js
2 | Page({
3 |
4 | /**
5 | * 页面的初始数据
6 | */
7 | data: {
8 |
9 | },
10 |
11 | /**
12 | * 生命周期函数--监听页面加载
13 | */
14 | onLoad: function (options) {
15 | console.log(options)
16 | var userInfo = wx.getStorageSync("userInfo");
17 | var that = this;
18 | this.setData({
19 | "userInfo": userInfo
20 | })
21 | if (options.msg == "student") {
22 | that.setData({ iconType: "info", title: "缺少图片", content: "你还缺一张学生证信息页没有上传,\n请在24小时内上传", button: "继续认证" })
23 | } else if (options.msg == "idCard") {
24 | that.setData({ iconType: "info", title: "缺少图片", content: "你还缺一张身份证信息页没有上传,\n请在24小时内上传", button: "继续认证" })
25 | } else {
26 | this.getMsg();
27 | }
28 | },
29 |
30 | /**
31 | * 生命周期函数--监听页面初次渲染完成
32 | */
33 | onReady: function () {
34 |
35 | },
36 |
37 | /**
38 | * 生命周期函数--监听页面显示
39 | */
40 | onShow: function () {
41 |
42 | },
43 |
44 | /**
45 | * 生命周期函数--监听页面隐藏
46 | */
47 | onHide: function () {
48 |
49 | },
50 |
51 | /**
52 | * 生命周期函数--监听页面卸载
53 | */
54 | onUnload: function () {
55 |
56 | },
57 |
58 | /**
59 | * 页面相关事件处理函数--监听用户下拉动作
60 | */
61 | onPullDownRefresh: function () {
62 |
63 | },
64 |
65 | /**
66 | * 页面上拉触底事件的处理函数
67 | */
68 | onReachBottom: function () {
69 |
70 | },
71 |
72 | /**
73 | * 用户点击右上角分享
74 | */
75 | onShareAppMessage: function () {
76 |
77 | },
78 | return1:function(){
79 | wx.navigateBack({
80 | delta:1
81 | })
82 | },
83 | redirect: function () {
84 | var button = this.data.button;
85 | if (button == "重新认证") {
86 | wx.redirectTo({
87 | url: '/pages/validation/validation',
88 | })
89 | } else if (button == "返回") {
90 | wx.switchTab({
91 | url: '/pages/my/my',
92 | })
93 | } else if (button == "继续认证") {
94 | var zi = "";
95 | if (this.data.content == "你还缺一张学生证信息页没有上传") {
96 | zi = "学生证";
97 | } else if (this.data.content == "你还缺一张身份证信息页没有上传") {
98 | zi = "身份证";
99 | }
100 | wx.redirectTo({
101 | url: '/pages/validationImage/validationImage?zi='+zi,
102 | })
103 | }
104 | },
105 | getMsg: function () {
106 | var that = this;
107 | wx.request({
108 | url: 'https://api.wnschool.cn/lootValidation-getValidationImage',
109 | data: {
110 | "user.id": that.data.userInfo.id,
111 | },
112 | header: {
113 | "Content-Type": "application/x-www-form-urlencoded"
114 | },
115 | method: 'POST',
116 | success: function (res) {
117 | console.log(res)
118 | if (res.data == "student not upload") {
119 | that.setData({ iconType: "info", title: "缺少图片", content: "你还缺一张学生证信息页没有上传", button: "继续认证" })
120 | } else if (res.data == "idCard not upload") {
121 | that.setData({ iconType: "info", title: "缺少图片", content: "你还缺一张身份证信息页没有上传", button: "继续认证" })
122 | } else if (res.data == "-1") {
123 | wx.redirectTo({
124 | url: '/pages/validation/validation',
125 | })
126 | } else if (res.data == "0") {
127 | that.setData({ iconType: "warn", title: "认证失败", content: "由于你上传的资料有误,认证失败,\n点击下方重新认证", button: "重新认证" })
128 | } else if (res.data == "1") {
129 | that.setData({ iconType: "waiting", title: "正在认证", content: "你的信息正在认证中,请等候一个工作日,\n由后台人员为您审核", button: "返回" })
130 | } else if (res.data == "2") {
131 | that.setData({ iconType: "success_no_circle", title: "实名认证成功", content: "你已经实名认证成功,可以开始接单了", button: "返回" })
132 | }
133 | }
134 | });
135 | },
136 | })
--------------------------------------------------------------------------------
/pages/validationStatus/validationStatus.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/pages/validationStatus/validationStatus.wxml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | {{title}}
5 | {{content}}
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/pages/validationStatus/validationStatus.wxss:
--------------------------------------------------------------------------------
1 | /* pages/validationStatus/validationStatus.wxss */
2 | page{
3 | text-align: center;
4 | margin-top: 250rpx;
5 | }
6 | .bigView{
7 | display: flex;
8 | flex-direction: column;
9 | }
10 | .title{
11 | font-size: 33rpx;
12 | font-weight: bold;
13 | }
14 | text{
15 | margin-top: 40rpx;
16 | font-size: 28rpx;
17 | line-height: 200%;
18 | }
19 | .buttonView {
20 | position: fixed;
21 | bottom: 0px;
22 | width: 100%;
23 | display: flex;
24 | justify-content: flex-end;
25 | align-items: flex-end;
26 | border-top: 2px solid #c0c0c0;
27 | padding-top: 15rpx;
28 | background-color: white;
29 | padding-bottom: 15rpx;
30 | }
31 |
32 | .button {
33 | padding-left: 35rpx;
34 | padding-right: 35rpx;
35 | font-size: 30rpx;
36 | border: 1px solid #dadada;
37 | background-color: white;
38 | color: #888;
39 | font-weight: bold;
40 | margin: 0px;
41 | margin-left: 20rpx;
42 | margin-right: 20rpx;
43 | }
44 | .zhuyao{
45 | color: #6ca9f9;
46 | border: 1px solid #6ca9f9;
47 | }
--------------------------------------------------------------------------------
/utils/util.js:
--------------------------------------------------------------------------------
1 | function formatTime(date) {
2 | date = new Date(date);
3 | var year = date.getFullYear()
4 | var month = date.getMonth() + 1
5 | var day = date.getDate()
6 | var hour = date.getHours()
7 | var minute = date.getMinutes()
8 | var second = date.getSeconds()
9 |
10 | var date = new Date();
11 | var msg = "";
12 | if (date.getDate() - day == 1) {
13 | return '昨天 ' + [hour, minute].map(formatNumber).join(":");
14 | } else if (date.getDate() - day == 2) {
15 | return '前天 ' + [hour, minute].map(formatNumber).join(":");
16 | } else if (date.getDate() - day > 2) {
17 | var time = [hour, minute].map(formatNumber).join(":");
18 | return [month, day].map(formatNumber).join("-") + " " + time;
19 | } else if (date.getMonth() + 1 - month > 0) {
20 | return [month, day].map(formatNumber).join("-");
21 | } else {
22 | return [hour, minute].map(formatNumber).join(":");
23 | }
24 | // return [year, month, day].map(formatNumber).join('/') + ' ' + [hour, minute, second].map(formatNumber).join(':')
25 | }
26 | function trim(mystr) {
27 | while ((mystr.indexOf(" ") == 0) && (mystr.length > 1)) {
28 | mystr = mystr.substring(1, mystr.length);
29 | }//去除前面空格
30 | while ((mystr.lastIndexOf(" ") == mystr.length - 1) && (mystr.length > 1)) {
31 | mystr = mystr.substring(0, mystr.length - 1);
32 | }//去除后面空格
33 | if (mystr == " ") {
34 | mystr = "";
35 | }
36 | return mystr;
37 | }
38 |
39 | function reg(pattern,value){
40 | // console.log(pattern+"---------"+value)
41 | if (pattern == null || pattern == "") {
42 | return true;
43 | }
44 | if(value==null || value==""){
45 | return true;
46 | }
47 | var patrn = new RegExp(pattern);
48 | if (patrn.exec(value))
49 | return true
50 | return false
51 | }
52 | function getSuccessTime(date){
53 | date = new Date(date);
54 | //数据库的时间
55 | var year = date.getFullYear()
56 | var month = date.getMonth() + 1
57 | var day = date.getDate()
58 | var hour = date.getHours()
59 | var minute = date.getMinutes()
60 | var second = date.getSeconds()
61 |
62 | //现在的时间
63 | var date = new Date();
64 | if ((month - (date.getMonth()+1) ) > 0 ) {
65 | return month - date.getMonth() + "月内"
66 | }else if (day - date.getDate() > 0) {
67 | return day - date.getDate() + "天内";
68 | }else{
69 | return hour - date.getHours() + "小时内";
70 | }
71 | // if (year - date.getFullYear()>0)
72 | }
73 | function formatNumber(n) {
74 | var t = n > 9 ? n : '0' + n;
75 | return t;
76 | }
77 |
78 | module.exports = {
79 | formatTime: formatTime,
80 | trim:trim,
81 | reg:reg,
82 | getSuccessTime:getSuccessTime
83 | }
84 |
--------------------------------------------------------------------------------