forked from nsjcy/frontEnd/nsjcy

LAPTOP-RI7D261L\Mr Ke
2020-02-13 a2789abb73725738127b03d95c95081b66954916
1
2
3
4
5
6
7
8
9
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
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
// pages/xsjb/xsjb.js
import { $wuxForm } from '../../templeteDist/wuxDist/index';
 
Page({
 
  /**
   * 页面的初始数据
   */
  data: {
    meetingWayList: [{
      value: 'HY000001',
      title: '线下调解'
    }, {
      value: 'HY000002',
      title: '视频调解'
    }],
    displaymeetingWay: '请选择',
  },
 
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {
 
  },
 
  formSubmit(e) {
    console.log('Default Form Submit \n', e.detail.value)
  },
 
  onSubmit() {
    const {
      getFieldsValue,
      getFieldValue,
      setFieldsValue
    } = $wuxForm()
    const value = getFieldsValue()
 
    console.log('Wux Form Submit \n', value)
  },
 
  // 选择地理位置
  chooseLocation: function(e) {
    const that = this;
    wx.chooseLocation({
      success: function(res) {
        console.log('res', res);
      }
    })
  },
 
 
 
  onPopupSelectChange(e) {
    let _this = this;
    var key = e.currentTarget.dataset['key'];
    console.log('key', key, e);
    this.setData({
      [key]: e.detail.value,
      [`display${key}`]: e.detail.label
    });
  }
})