123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- const app = getApp();
- Page({
-
- data: {
- selectArray: [],
- index: '',
- sex: '',
- },
-
- onLoad: function (options) {
- var that =this;
-
- let p_url = 'public/paramsgather?type=sex';
- let p_data = {
-
- };
- app.postRequest(p_url, p_data, function (res) {
- if (res.code == 201) {
-
- that.setData({
- selectArray: res.data
- })
- }
-
-
-
-
-
-
- })
- },
- onShow: function () {
- },
- GenderEvent: function (e) {
-
-
-
-
- this.setData({
- index: e.detail.value,
- sex: e.detail.value
- })
- },
- })
|