yunlingyin 7 years ago
parent
commit
0878fd95df

+ 3 - 1
app.json

@@ -10,7 +10,9 @@
10 10
     "pages/card/card",
11 11
     "pages/questions/questions",
12 12
     "pages/feedback/feedback",
13
-    "pages/application/application"
13
+    "pages/application/application",
14
+    "pages/getPhone/getPhone",
15
+    "pages/card2/card2"
14 16
   ],
15 17
   "window":{
16 18
     "backgroundTextStyle":"dark",

+ 17 - 20
pages/feedback/feedback.js

@@ -2,7 +2,7 @@
2 2
 //logs.js
3 3
 const util = require('../../utils/util.js')
4 4
 // var util = require('../../utils/util.js');
5
-
5
+var app = getApp();
6 6
 //textarea.js
7 7
 Page({
8 8
   data: {
@@ -18,25 +18,29 @@ Page({
18 18
     })
19 19
   },
20 20
   bindFormSubmit: function (e) {
21
-    console.log(e.detail.value.textarea)
21
+    var that = this, token = wx.getStorageSync('token'), value = e.detail.value.textarea;
22
+    console.log(token)
23
+    wx.request({
24
+      url: app.globalData.HOST + '/user/wx/addMessage',
25
+      method: 'POST',
26
+      data: {
27
+        token: token,
28
+        content: value
29
+      },
30
+      success: function (res) {        
31
+        console.log(res)
32
+        console.log(111)
33
+      }
34
+    });
22 35
   },
23 36
   bindTextAreaBlur: function (e) {
24
-    // console.log(e)
25 37
     var that = this;
26 38
     var textvalue = e.detail.value, int_number = that.data.int_number, list_number = that.data.list_number,
27 39
       slen = '';
28
-    // console.log(int_number);
29 40
     var strlen = textvalue.length;
30
-    // console.log(strlen);
31 41
     int_number = strlen;
32 42
     if (int_number > list_number) {
33 43
       slen = textvalue.substr(0, list_number - 1);
34
-      // console.log(slen)
35
-
36
-
37
-      // e.detail.value = slen;
38
-      // int_number.innerHTML = list_number;
39
-      // 
40 44
       that.setData({
41 45
         userInput: slen
42 46
       })
@@ -45,17 +49,10 @@ Page({
45 49
       that.setData({
46 50
         int_number: int_number,
47 51
       })
48
-      // console.log(list_number - int_number);
49 52
     }
50
-
51
-
52
-
53
-  },
54
-
55
-
56
-
53
+  }
57 54
 })
58
-// that.setData()
55
+
59 56
 
60 57
 
61 58
 

+ 66 - 0
pages/getIt/logs_to.js

@@ -0,0 +1,66 @@
1
+// pages/logs_to/logs_to.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
+})

+ 1 - 0
pages/getIt/logs_to.json

@@ -0,0 +1 @@
1
+{}

+ 5 - 0
pages/getIt/logs_to.wxml

@@ -0,0 +1,5 @@
1
+<view class='pd64'>
2
+  <button type="btn" class='wx_login_btn'> <image src='../img/wx_login.png'></image>微信快速登录</button>
3
+  <button type="btn" class='zfb_login_btn'> <image src='../img/zfb_login.png'></image>手机验证码注册 </button>
4
+</view>
5
+<view class='details'>同时申请<text>3</text>款以上产品,成功率提升90%</view>

+ 72 - 0
pages/getIt/logs_to.wxss

@@ -0,0 +1,72 @@
1
+page {
2
+  /* font-size: 100px; */
3
+  font-family: "PingFangSC-Regular, 微软雅黑, sans-serif";
4
+  background: #f5f4f9;
5
+}
6
+
7
+view {
8
+  /* font-size: 100px; */
9
+  border-top: 1px solid#f5f4f9;
10
+  background: #fff;
11
+}
12
+
13
+.pd64 {
14
+  padding-bottom: 64px;
15
+}
16
+
17
+.wx_login_btn {
18
+  width: 90%;
19
+  height: 45px;
20
+  /* margin: auto; */
21
+  display: block;
22
+  border-radius: 0;
23
+  margin-top: 34px;
24
+  background-color: #52a939;
25
+  font-size: 18px;
26
+  color: #fff;
27
+  line-height: 45px;
28
+}
29
+
30
+.wx_login_btn image {
31
+  width: 25px;
32
+  height: 25px;
33
+  line-height: 45px;
34
+  position: relative;
35
+  top: 5px;
36
+  margin-right: 8px;
37
+}
38
+
39
+.zfb_login_btn {
40
+  height: 45px;
41
+  width: 90%;
42
+  display: block;
43
+  border-radius: 0;
44
+  margin-top: 20px;
45
+  background-color: #6082f9;
46
+  font-size: 18px;
47
+  color: #fff;
48
+}
49
+
50
+.zfb_login_btn image {
51
+  width: 25px;
52
+  height: 25px;
53
+  position: relative;
54
+  top: 5px;
55
+  margin-right: 8px;
56
+}
57
+
58
+.details {
59
+  display: block;
60
+  height: 84px;
61
+  width: 100%;
62
+  font-size: 14px;
63
+  margin: auto;
64
+  text-align: center;
65
+  line-height: 84px;
66
+  margin-top: 10px;
67
+  color: #8c8c8c;
68
+}
69
+
70
+.details  text {
71
+  color: #db3232;
72
+}

+ 66 - 0
pages/getPhone/getPhone.js

@@ -0,0 +1,66 @@
1
+// pages/logs_to/logs_to.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
+})

+ 1 - 0
pages/getPhone/getPhone.json

@@ -0,0 +1 @@
1
+{}

+ 5 - 0
pages/getPhone/getPhone.wxml

@@ -0,0 +1,5 @@
1
+<view class='pd64'>
2
+  <button type="btn" class='wx_login_btn'> <image src='../img/wx_login.png'></image>微信快速登录</button>
3
+  <button type="btn" class='zfb_login_btn'> <image src='../img/zfb_login.png'></image>手机验证码注册 </button>
4
+</view>
5
+<view class='details'>同时申请<text>3</text>款以上产品,成功率提升90%</view>

+ 72 - 0
pages/getPhone/getPhone.wxss

@@ -0,0 +1,72 @@
1
+page {
2
+  /* font-size: 100px; */
3
+  font-family: "PingFangSC-Regular, 微软雅黑, sans-serif";
4
+  background: #f5f4f9;
5
+}
6
+
7
+view {
8
+  /* font-size: 100px; */
9
+  border-top: 1px solid#f5f4f9;
10
+  background: #fff;
11
+}
12
+
13
+.pd64 {
14
+  padding-bottom: 64px;
15
+}
16
+
17
+.wx_login_btn {
18
+  width: 90%;
19
+  height: 45px;
20
+  /* margin: auto; */
21
+  display: block;
22
+  border-radius: 0;
23
+  margin-top: 34px;
24
+  background-color: #52a939;
25
+  font-size: 18px;
26
+  color: #fff;
27
+  line-height: 45px;
28
+}
29
+
30
+.wx_login_btn image {
31
+  width: 25px;
32
+  height: 25px;
33
+  line-height: 45px;
34
+  position: relative;
35
+  top: 5px;
36
+  margin-right: 8px;
37
+}
38
+
39
+.zfb_login_btn {
40
+  height: 45px;
41
+  width: 90%;
42
+  display: block;
43
+  border-radius: 0;
44
+  margin-top: 20px;
45
+  background-color: #6082f9;
46
+  font-size: 18px;
47
+  color: #fff;
48
+}
49
+
50
+.zfb_login_btn image {
51
+  width: 25px;
52
+  height: 25px;
53
+  position: relative;
54
+  top: 5px;
55
+  margin-right: 8px;
56
+}
57
+
58
+.details {
59
+  display: block;
60
+  height: 84px;
61
+  width: 100%;
62
+  font-size: 14px;
63
+  margin: auto;
64
+  text-align: center;
65
+  line-height: 84px;
66
+  margin-top: 10px;
67
+  color: #8c8c8c;
68
+}
69
+
70
+.details  text {
71
+  color: #db3232;
72
+}

+ 15 - 0
pages/logs/logs.js

@@ -0,0 +1,15 @@
1
+//logs.js
2
+const util = require('../../utils/util.js')
3
+
4
+Page({
5
+  data: {
6
+    logs: []
7
+  },
8
+  onLoad: function () {
9
+    this.setData({
10
+      logs: (wx.getStorageSync('logs') || []).map(log => {
11
+        return util.formatTime(new Date(log))
12
+      })
13
+    })
14
+  }
15
+})

+ 3 - 0
pages/logs/logs.json

@@ -0,0 +1,3 @@
1
+{
2
+  "navigationBarTitleText": "查看启动日志"
3
+}

+ 6 - 0
pages/logs/logs.wxml

@@ -0,0 +1,6 @@
1
+<!--logs.wxml-->
2
+<view class="container log-list">
3
+  <block wx:for="{{logs}}" wx:for-item="log">
4
+    <text class="log-item">{{index + 1}}. {{log}}</text>
5
+  </block>
6
+</view>

+ 8 - 0
pages/logs/logs.wxss

@@ -0,0 +1,8 @@
1
+.log-list {
2
+  display: flex;
3
+  flex-direction: column;
4
+  padding: 40rpx;
5
+}
6
+.log-item {
7
+  margin: 10rpx;
8
+}

+ 66 - 0
pages/logs_to/logs_to.js

@@ -0,0 +1,66 @@
1
+// pages/logs_to/logs_to.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
+})

+ 1 - 0
pages/logs_to/logs_to.json

@@ -0,0 +1 @@
1
+{}

+ 5 - 0
pages/logs_to/logs_to.wxml

@@ -0,0 +1,5 @@
1
+<view class='pd64'>
2
+  <button type="btn" class='wx_login_btn'> <image src='../img/wx_login.png'></image>微信快速登录</button>
3
+  <button type="btn" class='zfb_login_btn'> <image src='../img/zfb_login.png'></image>手机验证码注册 </button>
4
+</view>
5
+<view class='details'>同时申请<text>3</text>款以上产品,成功率提升90%</view>

+ 72 - 0
pages/logs_to/logs_to.wxss

@@ -0,0 +1,72 @@
1
+page {
2
+  /* font-size: 100px; */
3
+  font-family: "PingFangSC-Regular, 微软雅黑, sans-serif";
4
+  background: #f5f4f9;
5
+}
6
+
7
+view {
8
+  /* font-size: 100px; */
9
+  border-top: 1px solid#f5f4f9;
10
+  background: #fff;
11
+}
12
+
13
+.pd64 {
14
+  padding-bottom: 64px;
15
+}
16
+
17
+.wx_login_btn {
18
+  width: 90%;
19
+  height: 45px;
20
+  /* margin: auto; */
21
+  display: block;
22
+  border-radius: 0;
23
+  margin-top: 34px;
24
+  background-color: #52a939;
25
+  font-size: 18px;
26
+  color: #fff;
27
+  line-height: 45px;
28
+}
29
+
30
+.wx_login_btn image {
31
+  width: 25px;
32
+  height: 25px;
33
+  line-height: 45px;
34
+  position: relative;
35
+  top: 5px;
36
+  margin-right: 8px;
37
+}
38
+
39
+.zfb_login_btn {
40
+  height: 45px;
41
+  width: 90%;
42
+  display: block;
43
+  border-radius: 0;
44
+  margin-top: 20px;
45
+  background-color: #6082f9;
46
+  font-size: 18px;
47
+  color: #fff;
48
+}
49
+
50
+.zfb_login_btn image {
51
+  width: 25px;
52
+  height: 25px;
53
+  position: relative;
54
+  top: 5px;
55
+  margin-right: 8px;
56
+}
57
+
58
+.details {
59
+  display: block;
60
+  height: 84px;
61
+  width: 100%;
62
+  font-size: 14px;
63
+  margin: auto;
64
+  text-align: center;
65
+  line-height: 84px;
66
+  margin-top: 10px;
67
+  color: #8c8c8c;
68
+}
69
+
70
+.details  text {
71
+  color: #db3232;
72
+}

+ 19 - 3
project.config.json

@@ -10,7 +10,7 @@
10 10
 	"compileType": "miniprogram",
11 11
 	"libVersion": "1.5.2",
12 12
 	"appid": "wx9eea95b64560bb4c",
13
-	"projectname": "borrow_money",
13
+	"projectname": "bwApp2",
14 14
 	"condition": {
15 15
 		"search": {
16 16
 			"current": -1,
@@ -20,8 +20,11 @@
20 20
 			"current": -1,
21 21
 			"list": []
22 22
 		},
23
+		"game": {
24
+			"list": []
25
+		},
23 26
 		"miniprogram": {
24
-			"current": 10,
27
+			"current": -1,
25 28
 			"list": [
26 29
 				{
27 30
 					"id": -1,
@@ -86,7 +89,20 @@
86 89
 				{
87 90
 					"id": -1,
88 91
 					"name": "application",
89
-					"pathName": "pages/application/application"
92
+					"pathName": "pages/application/application",
93
+					"query": ""
94
+				},
95
+				{
96
+					"id": -1,
97
+					"name": "getPhone",
98
+					"pathName": "pages/getPhone/getPhone",
99
+					"query": ""
100
+				},
101
+				{
102
+					"id": -1,
103
+					"name": "card2",
104
+					"pathName": "pages/card2/card2",
105
+					"query": ""
90 106
 				}
91 107
 			]
92 108
 		}