Your Name 5 years ago
parent
commit
82b19d7f42

+ 19 - 2
app.js

@@ -6,7 +6,13 @@ App({
6 6
   },
7 7
 
8 8
 
9
-  asd() {
9
+  share() {   //分享
10
+    wx.showShareMenu();
11
+    console.log(1);
12
+  },
13
+
14
+
15
+  judge_Land() {
10 16
     try {
11 17
       const value = wx.getStorageSync('wx_id')
12 18
       if (value) {
@@ -19,7 +25,13 @@ App({
19 25
     try {
20 26
       const value = wx.getStorageSync('access_token')
21 27
       if (value) {
28
+        // console.log(1234)
29
+        console.log(value);
22 30
         // Do something with return value
31
+      }else{
32
+        wx.reLaunch({
33
+          url: '/pages/Landpage/Land/Land'    //授权过 进入登陆页
34
+        })  
23 35
       }
24 36
     } catch (e) {
25 37
       // Do something when catch error
@@ -35,10 +47,12 @@ App({
35 47
       })
36 48
 
37 49
     } else if (wx.getStorageSync('wx_id')) {  //是否授权
50
+      // console.log(2);
38 51
       wx.reLaunch({
39 52
         url: '/pages/Landpage/Land/Land'    //授权过 进入登陆页
40 53
       })  
41 54
     } 
55
+    
42 56
     // else {
43 57
     //   wx.reLaunch({
44 58
     //     url: '/pages/Jurisdiction/click_Jurisdiction/click_Jurisdiction'   //未授权  进入授权页
@@ -50,6 +64,8 @@ App({
50 64
 
51 65
   
52 66
   onLaunch: function (options) {
67
+    wx.showShareMenu();
68
+
53 69
     var _this = this;
54 70
     // 查看是否授权
55 71
  
@@ -213,7 +229,8 @@ App({
213 229
 
214 230
 
215 231
 
216
-getApp().asd();
232
+getApp().judge_Land(); //判断登陆
233
+getApp().share();  //分享
217 234
 
218 235
 
219 236
 

+ 7 - 2
app.json

@@ -1,10 +1,15 @@
1 1
 {
2 2
   "pages": [
3
-        "pages/Landpage/Land/Land",
3
+  "pages/Setup/Publicaddress/Publicaddress",
4
+  "pages/Setup/Contactus/Contactus",
5
+  "pages/Setup/Aboutus/Aboutus",
6
+  "pages/Setup/Opinion/Opinion",
7
+  "pages/Setup/modify/modify",
8
+  "pages/Landpage/Land/Land",
4 9
   "pages/zheo_More/zheo_More",
5 10
   "pages/details_More/details_More",
6 11
    "pages/personal_core/personaldata/personaldata",
7
-   "pages/Setup/modify/modify",
12
+ 
8 13
    "pages/Setup/security/security",
9 14
    "pages/Setup/Setuplist/Setuplist",
10 15
     "pages/information/chat/chat",

BIN
image/gd.png


BIN
image/sctp1.png


+ 22 - 0
pages/Setup/Aboutus/Aboutus.js

@@ -0,0 +1,22 @@
1
+const app = getApp();
2
+
3
+Page({
4
+
5
+
6
+  data: {
7
+
8
+  },
9
+
10
+
11
+  onLoad: function (options) {
12
+
13
+  },
14
+
15
+
16
+  onReady: function () {
17
+
18
+  },
19
+
20
+
21
+
22
+})

+ 3 - 0
pages/Setup/Aboutus/Aboutus.json

@@ -0,0 +1,3 @@
1
+{
2
+  "navigationBarTitleText": "关于我们"
3
+}

File diff suppressed because it is too large
+ 28 - 0
pages/Setup/Aboutus/Aboutus.wxml


+ 14 - 0
pages/Setup/Aboutus/Aboutus.wxss

@@ -0,0 +1,14 @@
1
+
2
+.m_logo{width:200rpx;height:200rpx;margin:auto;border-radius:20rpx;overflow:hidden;margin-top:40rpx;}
3
+.m_logo image{width:100%;height:100%;}
4
+
5
+.m_text{width:85%;padding:20rpx;margin:auto;margin-top:60rpx;background:#F5F5F5;border-radius:10rpx;font-size:26rpx;color:#333;line-height:48rpx;}
6
+
7
+.box{border-top:1px solid #F8F8F8;margin-top:40rpx;}
8
+.setup_box{padding:0 40rpx;}
9
+.setup_box navigator{border-bottom:1px solid #F8F8F8;padding:26rpx 0;}
10
+/* .setup_box navigator:last-child{border:0;} */
11
+.setup_box navigator text{font-size:30rpx;color:#333;float:left;}
12
+.setup_box navigator image{width:33rpx;height:30rpx;position:relative;top:10rpx;float:right;}
13
+
14
+.company{position:absolute;bottom:40rpx;width:100%;text-align:center;font-size:24rpx;color:#666;}

+ 19 - 0
pages/Setup/Contactus/Contactus.js

@@ -0,0 +1,19 @@
1
+
2
+Page({
3
+
4
+
5
+  data: {
6
+
7
+  },
8
+
9
+  onLoad: function (options) {
10
+
11
+  },
12
+
13
+
14
+  onShow: function () {
15
+
16
+  },
17
+
18
+  
19
+})

+ 3 - 0
pages/Setup/Contactus/Contactus.json

@@ -0,0 +1,3 @@
1
+{
2
+  "navigationBarTitleText": "联系我们"
3
+}

+ 25 - 0
pages/Setup/Contactus/Contactus.wxml

@@ -0,0 +1,25 @@
1
+<view class="yzlist_box">
2
+        <view class='yzlist c' >
3
+                <text>客服微信</text>
4
+
5
+                <view class='yzlist_text'>ninkefu01</view>
6
+        </view>
7
+
8
+        <view class='yzlist c'>
9
+                <text>客服邮箱</text>
10
+
11
+                <view class='yzlist_text'>nini@ninihl.com</view>
12
+        </view>
13
+
14
+        <view class='yzlist c'>
15
+                <text>官方网址</text>
16
+
17
+                <view class='yzlist_text'>www.ninihl.com</view>
18
+        </view>
19
+
20
+        <view class='yzlist c' >
21
+                <text>微信公众号</text>
22
+
23
+                <view class='yzlist_text'>搜索"约会邦"或"ninihunlian"</view>
24
+        </view>
25
+</view>

+ 4 - 0
pages/Setup/Contactus/Contactus.wxss

@@ -0,0 +1,4 @@
1
+.yzlist_box{margin:auto;padding:0 40rpx;}
2
+.yzlist{border-bottom:1px solid #F5F5F5;position:relative;padding:30rpx 0;}
3
+.yzlist text{font-size:26rpx;color:#333;float:left;}
4
+.yzlist .yzlist_text{font-size:26rpx;color: #999;float:right;}

+ 57 - 0
pages/Setup/Opinion/Opinion.js

@@ -0,0 +1,57 @@
1
+const app = getApp();
2
+
3
+Page({
4
+
5
+ 
6
+  data: {
7
+
8
+    selectArray: [], // 性别-数据
9
+    index: '',  // 性别-下标、
10
+    sex: '',     //  性别  
11
+  },
12
+
13
+ 
14
+  onLoad: function (options) {
15
+    var that =this;
16
+        //  性别 ajax
17
+        let p_url = 'public/paramsgather?type=sex';
18
+        let p_data = {
19
+          // pid: '0'
20
+        };
21
+        app.postRequest(p_url, p_data, function (res) {      //  性别 ajax
22
+          if (res.code == 201) {
23
+            // console.log(res.data);
24
+            that.setData({
25
+              selectArray: res.data
26
+            })
27
+
28
+          }
29
+          // let dictObject = res.data;
30
+          // // 对象转成数组
31
+          // var createArr = []
32
+          // for (let i in dictObject) {
33
+          //   createArr.push(dictObject[i]);
34
+          // }
35
+
36
+        })
37
+  },
38
+
39
+
40
+
41
+  onShow: function () {
42
+
43
+  },
44
+
45
+  GenderEvent: function (e) {   //  性别    单项选择器
46
+    // console.log(this);
47
+    // console.log(e);
48
+    // console.log(this.data.selectArray[e.detail.value]);
49
+    // console.log('picker发送选择改变,携带值为', e.detail.value)
50
+    this.setData({
51
+      index: e.detail.value,
52
+      sex: e.detail.value
53
+    })
54
+  },
55
+
56
+
57
+})

+ 3 - 0
pages/Setup/Opinion/Opinion.json

@@ -0,0 +1,3 @@
1
+{
2
+  "navigationBarTitleText": "意见反馈"
3
+}

+ 37 - 0
pages/Setup/Opinion/Opinion.wxml

@@ -0,0 +1,37 @@
1
+
2
+
3
+<view class='data_box'>
4
+
5
+        <view class="Choice_dx_box">     <!--  性别 单项选择器-->
6
+                    <picker  bindchange="GenderEvent" value="{{index}}" range="{{selectArray}}">
7
+                            
8
+                              <view class='Choice_dx c'>
9
+                                    <view class="Choice_dx_title">请选择反馈类型</view>
10
+
11
+                                    <view class='Choice_dx_text' >
12
+                                      
13
+                                          {{selectArray[index] ? selectArray[index]  : "请选择"}}
14
+                                        
15
+                                    </view>
16
+                                        
17
+                              </view>
18
+                  </picker>
19
+        </view>
20
+
21
+        <view class='index_box'>
22
+                 <input type='text' placeholder="请描述您遇到的问题" bindinput="getPhone"  value=""></input>
23
+        </view>
24
+        
25
+        <view class='img_box'>
26
+                <image src='/image/ce1.jpg' mode="aspectFill"></image>
27
+        </view>
28
+
29
+        <view class='upload_box'>
30
+                <image src='/image/sctp1.png'  mode="widthFix"></image>
31
+                <text class='upload_text1'>上传相关截图说明</text>
32
+                <text class='upload_text2'>(可选)</text>
33
+        </view>
34
+
35
+       <view class='NextStep'  bindtap='register'>提交</view>
36
+
37
+</view>

+ 26 - 0
pages/Setup/Opinion/Opinion.wxss

@@ -0,0 +1,26 @@
1
+
2
+.data_box{width:90%;margin:auto;margin-top:44rpx;position:relative;}
3
+
4
+
5
+.Choice_dx_box{border-bottom:1px solid #eee;padding-bottom:14rpx;color:#ECECEC;line-height:50rpx;margin-top:30rpx;}
6
+.Choice_dx_title{float:left;font-size:28rpx;color:#000;}
7
+.Choice_dx_text{float:right;font-size:28rpx;color:#B3B3B3;max-width:620rpx;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;}
8
+/* .Choice_dx_text .picker{} */
9
+.Choice_dx_text .picker text{display:block;float:right;}
10
+
11
+
12
+.index_box{border:1px solid #eee;height:80rpx;margin-top:30rpx;border-radius:10rpx;background:#F5F5F5;}
13
+.index_box input{height:100%;padding:0 30rpx;font-size:26rpx;display:block;}
14
+
15
+.img_box{width:220rpx;height:220rpx;margin-top:30rpx;}
16
+.img_box image{width:100%;height:100%;}
17
+
18
+.upload_box{border:1px solid #eee;height:80rpx;margin-top:30rpx;border-radius:10rpx;
19
+display:flex;justify-content:center;align-items:center;
20
+}
21
+
22
+.upload_box image{width:33rpx;height:0;margin-top:2rpx;}
23
+.upload_box .upload_text1{font-size:26rpx;color:#414141;margin-left:5rpx;}
24
+.upload_box .upload_text2{font-size:26rpx;color:#9F9F9F;margin-left:5rpx;}
25
+
26
+.NextStep{border:1px solid;text-align:center;font-size:32rpx;color:#FFF;background: linear-gradient(to right, #FF9BCA , #FF79B8);height:88rpx;line-height:88rpx;border-radius:10rpx;margin-top:80rpx;}

+ 66 - 0
pages/Setup/Publicaddress/Publicaddress.js

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

+ 3 - 0
pages/Setup/Publicaddress/Publicaddress.json

@@ -0,0 +1,3 @@
1
+{
2
+  "navigationBarTitleText": "约会邦微信公众号"
3
+}

+ 16 - 0
pages/Setup/Publicaddress/Publicaddress.wxml

@@ -0,0 +1,16 @@
1
+
2
+
3
+<view class="m_gzh_box">
4
+            <view style='height:40rpx;'></view>
5
+            <view class="m_2wm"><image src='/image/ico_weibo02.png' mode="aspectFill"></image></view>
6
+
7
+            <view class='m_gzh_text'>
8
+                   <text class='title'>如何关注约会邦微信公众号?</text>
9
+                    <view class='text_box'>
10
+                 
11
+                        <view class='text'>1.点击右上角   <image src='/image/gd.png' mode="widthFix"></image>  选择【关于约会邦婚恋相亲征婚找对象平台】</view>
12
+                        <text class='text'>2.点击相关公众号,选择【约会邦】</text>
13
+                        <text class='text'>3.点击【关注公众号】即可进行关注</text>
14
+                   </view>
15
+            </view>
16
+</view>

+ 11 - 0
pages/Setup/Publicaddress/Publicaddress.wxss

@@ -0,0 +1,11 @@
1
+
2
+.m_gzh_box{width:90%;margin:auto;margin-top:40rpx;background:#FFF;border-radius:20rpx;padding-bottom:100rpx;box-shadow:0 0px 12px 0 rgb(235, 232, 232);}
3
+
4
+.m_2wm{width:240rpx;height:240rpx;margin:auto;}
5
+.m_2wm image{width:100%;height:100%;}
6
+
7
+.m_gzh_text{margin-top:40rpx;padding:0 30rpx;}
8
+.m_gzh_text .title{font-size:32rpx;color:#333;font-weight:600;}
9
+.m_gzh_text .text_box{margin-top:30rpx;}
10
+.m_gzh_text .text_box .text{font-size:26rpx;color:#666;display:block;line-height:48rpx;margin-bottom:10rpx;}
11
+.m_gzh_text .text_box .text image{width:50rpx;height:0;position:relative;top: -4rpx;}

+ 5 - 55
pages/Setup/Setuplist/Setuplist.js

@@ -1,73 +1,23 @@
1
-// pages/Setup/Setuplist/Setuplist.js
1
+
2 2
 Page({
3 3
 
4
-  /**
5
-   * 页面的初始数据
6
-   */
4
+
7 5
   data: {
8 6
 
9 7
   },
10 8
 
11
-  /**
12
-   * 生命周期函数--监听页面加载
13
-   */
9
+ 
14 10
   onLoad: function (options) {
15 11
 
16 12
   },
17 13
 
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 14
 
58
-  },
59 15
 
60
-  /**
61
-   * 用户点击右上角分享
62
-   */
63
-  onShareAppMessage: function () {
64
-
65
-  },
66 16
   register:function(){
67 17
     wx.clearStorageSync();
68
-    wx.navigateTo({
18
+    wx.reLaunch({
69 19
       url: '/pages/Landpage/Land/Land'
70 20
     });
71
-    console.log(111);
21
+    // console.log(111);
72 22
   }
73 23
 })

+ 4 - 4
pages/Setup/Setuplist/Setuplist.wxml

@@ -24,7 +24,7 @@
24 24
              <image src='/image/gengduo.png' mode="aspectFill"></image>
25 25
        </navigator> -->
26 26
 
27
-       <navigator hover-class="none" class='c'>
27
+       <navigator hover-class="none" class='c' url="/pages/Setup/Opinion/Opinion">
28 28
              <text>意见反馈</text>
29 29
              <image src='/image/gengduo.png' mode="aspectFill"></image>
30 30
        </navigator>
@@ -33,17 +33,17 @@
33 33
 <view style='height:10rpx;background:#F5F5F5'></view>
34 34
 
35 35
 <view class="setup_box">
36
-       <navigator hover-class="none" class='c'>
36
+       <navigator hover-class="none" class='c' url="/pages/Setup/Aboutus/Aboutus">
37 37
              <text>关于我们</text>
38 38
              <image src='/image/gengduo.png' mode="aspectFill"></image>
39 39
        </navigator>
40 40
 
41
-       <navigator hover-class="none" class='c'>
41
+       <navigator hover-class="none" class='c' url="/pages/Setup/Contactus/Contactus">
42 42
              <text>联系我们</text>
43 43
              <image src='/image/gengduo.png' mode="aspectFill"></image>
44 44
        </navigator>
45 45
 
46
-       <navigator hover-class="none" class='c'>
46
+       <navigator hover-class="none" class='c' url="/pages/Setup/Publicaddress/Publicaddress">
47 47
              <text>微信公众号</text>
48 48
              <image src='/image/gengduo.png' mode="aspectFill"></image>
49 49
        </navigator>

+ 1 - 1
pages/Setup/Setuplist/Setuplist.wxss

@@ -2,7 +2,7 @@
2 2
 .setup_box{padding:0 40rpx;}
3 3
 .setup_box navigator{border-bottom:1px solid #F8F8F8;padding:26rpx 0;}
4 4
 .setup_box navigator:last-child{border:0;}
5
-.setup_box navigator text{font-size:30rpx;color:#333; }
5
+.setup_box navigator text{font-size:30rpx;color:#333;float:left;}
6 6
 .setup_box navigator image{width:33rpx;height:30rpx;position:relative;top:10rpx;float:right;}
7 7
 
8 8
 .NextStep{text-align:center;font-size:34rpx;color:#FFF;background: linear-gradient(to right, #FF9BCA , #FF79B8);width:675rpx;height:88rpx;line-height:88rpx;border-radius:10rpx;margin:auto;margin-top:50rpx;}

+ 110 - 41
pages/Setup/modify/modify.js

@@ -1,66 +1,135 @@
1
-// pages/Setup/modify/modify.js
1
+const app = getApp();
2 2
 Page({
3 3
 
4
-  /**
5
-   * 页面的初始数据
6
-   */
4
+ 
7 5
   data: {
8 6
 
7
+    past_password:'', //旧密码
8
+    password:'', //新密码
9
+    qpassword:'', //确认密码
10
+
11
+    used_value:'',
12
+    password_value:'',
13
+    qpassword_value:'',
9 14
   },
10 15
 
11
-  /**
12
-   * 生命周期函数--监听页面加载
13
-   */
16
+ 
14 17
   onLoad: function (options) {
15 18
 
16 19
   },
17 20
 
18
-  /**
19
-   * 生命周期函数--监听页面初次渲染完成
20
-   */
21
-  onReady: function () {
22
-
21
+  //获取旧密码
22
+  used_password: function (e) {
23
+    var _used_password = e.detail.value;
24
+    // console.log(_used_password);
25
+    this.setData({
26
+      past_password: _used_password
27
+    });
28
+  },
29
+  
30
+  //获取新密码
31
+  password: function (e) {
32
+    var _password = e.detail.value;
33
+    // console.log(_password);
34
+    this.setData({
35
+      password: _password
36
+    });
37
+  },
38
+  
39
+  //获取确认密码
40
+  qpassword: function (e) {
41
+    var _qpassword = e.detail.value;
42
+    // console.log(_qpassword);
43
+    this.setData({
44
+      qpassword: _qpassword
45
+    });
23 46
   },
24 47
 
25
-  /**
26
-   * 生命周期函数--监听页面显示
27
-   */
28
-  onShow: function () {
29 48
 
30
-  },
49
+  //完成事件
50
+  complete: function (e) {
51
+    var _this = this;
31 52
 
32
-  /**
33
-   * 生命周期函数--监听页面隐藏
34
-   */
35
-  onHide: function () {
53
+    var _past_password = _this.data.past_password;
54
+    var _password = _this.data.password;
55
+    var _qpassword = _this.data.qpassword;
36 56
 
37
-  },
57
+    // console.log(_past_password);
58
+    // console.log(_password);
59
+    // console.log(_qpassword);
38 60
 
39
-  /**
40
-   * 生命周期函数--监听页面卸载
41
-   */
42
-  onUnload: function () {
43 61
 
44
-  },
62
+      if (_past_password  == ''){
63
+          var _qrcode = '原始密码不能为空'
64
+          getApp().Tips(_qrcode);
65
+      } else if (_password == ''){
66
+        var _qrcode = '新密码不能为空'
67
+        getApp().Tips(_qrcode);
68
+      } else if (_qpassword == '') {
69
+        var _qrcode = '确认新密码不能为空'
70
+        getApp().Tips(_qrcode);
71
+      } else if (_password != _qpassword) {
72
+        var _qrcode = '两次新密码输入不一致'
73
+        getApp().Tips(_qrcode);
74
+      }else{
45 75
 
46
-  /**
47
-   * 页面相关事件处理函数--监听用户下拉动作
48
-   */
49
-  onPullDownRefresh: function () {
50 76
 
51
-  },
77
+        let income_url = 'my/accountsecurity/resetpassword';
78
+        let income_data = {
79
+          past_password: _past_password, //旧密码
80
+          password: _password, //新密码
81
+          qpassword: _qpassword, //确认密码
82
+        };
83
+
84
+        app.postRequest(income_url, income_data, function (res) {
85
+
86
+          // console.log(income_data.photo);
87
+          if (res.code == 201) {
88
+
89
+                wx.showToast({
90
+                  title: '修改成功',
91
+                  duration: 1500,
92
+                })
93
+
94
+                
95
+            setTimeout(function () {
96
+              wx.clearStorageSync();
97
+              wx.reLaunch({
98
+                url: '/pages/Landpage/Land/Land'
99
+              });
100
+     
101
+            }, 800)
102
+
103
+  
104
+
105
+            return;
106
+          } 
107
+          // console.log(res.data.past_password);
108
+          if (res.data.past_password){
109
+            getApp().Tips(res.data.past_password[0]);
110
+
111
+            _this.setData({
112
+                used_value: '',
113
+            });
114
+
115
+          } else if (res.data.password){
116
+            getApp().Tips(res.data.password[0]);
117
+
118
+            _this.setData({
119
+              password_value: '',
120
+              qpassword_value: '',
121
+            });
122
+          }
123
+      
124
+
125
+          
126
+        })
127
+
128
+
129
+      }
52 130
 
53
-  /**
54
-   * 页面上拉触底事件的处理函数
55
-   */
56
-  onReachBottom: function () {
57 131
 
58 132
   },
59 133
 
60
-  /**
61
-   * 用户点击右上角分享
62
-   */
63
-  onShareAppMessage: function () {
64 134
 
65
-  }
66 135
 })

+ 3 - 3
pages/Setup/modify/modify.wxml

@@ -4,21 +4,21 @@
4 4
             <view class='form_zh_img1'>
5 5
                   <image  src='/image/dl3.png' mode="widthFix"></image>
6 6
             </view> 
7
-            <input  password type="text"  placeholder="请输入旧的密码"  value=""   bindinput="password"></input>
7
+            <input  password type="text"  placeholder="请输入旧的密码"  value="{{used_value}}"   bindinput="used_password"></input>
8 8
        </view>
9 9
 
10 10
        <view class='form_zh'>
11 11
             <view class='form_zh_img1'>
12 12
                   <image  src='/image/dl3.png' mode="widthFix"></image>
13 13
             </view> 
14
-            <input  password type="text"  placeholder="请输入新的密码"  value=""   bindinput="password"></input>
14
+            <input  password type="text"  placeholder="请输入新的密码"  value="{{password_value}}"   bindinput="password"></input>
15 15
        </view>
16 16
 
17 17
        <view class='form_zh'>
18 18
             <view class='form_zh_img1'>
19 19
                   <image  src='/image/dl3.png' mode="widthFix"></image>
20 20
             </view> 
21
-            <input  password type="text"  placeholder="再次输入新的密码"  value=""   bindinput="password"></input>
21
+            <input  password type="text"  placeholder="再次输入新的密码"  value="{{qpassword_value}}"   bindinput="qpassword"></input>
22 22
        </view>
23 23
 
24 24
       <button class='form_button'   bindtap='complete'>确认</button>

+ 0 - 1
pages/index/index.js

@@ -62,7 +62,6 @@ Page({
62 62
   },
63 63
 
64 64
   onLoad: function (options) {
65
-   
66 65
     webSocket.connectSocket();
67 66
   },
68 67