Commit b71cf67a by chenwq

标签选择,日历

1 parent a8a59aef
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* 2测试 * 2测试
* 3生产环境 * 3生产环境
*/ */
let index = 0 let index = 2
const accountInfo = wx.getAccountInfoSync() const accountInfo = wx.getAccountInfoSync()
const systemInfo = wx.getSystemInfoSync() const systemInfo = wx.getSystemInfoSync()
......
...@@ -573,8 +573,8 @@ Component({ ...@@ -573,8 +573,8 @@ Component({
this.setData({ this.setData({
currentSelect: full, currentSelect: full,
selectDay: o, selectDay: o,
showCurrentMonth: `${o.year}年${o.month}月${o.day}日`, showCurrentMonth: `${o.year}年${o.month}月${o.day}日`
isShow: false // isShow: false
}) })
// this.triggerEvent('change', list) // this.triggerEvent('change', list)
this.triggerEventSelectDay(); this.triggerEventSelectDay();
......
...@@ -13,7 +13,7 @@ Page({ ...@@ -13,7 +13,7 @@ Page({
jump(e) { jump(e) {
let { item, name } = e.currentTarget.dataset let { item, name } = e.currentTarget.dataset
item.id = item.customerId item.id = item.inviteRecordId
wx.$router.go(name, item) wx.$router.go(name, item)
}, },
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<view class="item"> <view class="item">
<view class="label">{{item.label}}</view> <view class="label">{{item.label}}</view>
<view <view
class="value text-hide" class="value {{item.key != 'userPortrait' ? 'text-hide' : ''}}"
style="color:{{item.color}};" style="color:{{item.color}};"
catchtap="{{item.callBack}}" catchtap="{{item.callBack}}"
data-data="{{detail[item.key]}}"> data-data="{{detail[item.key]}}">
......
...@@ -336,7 +336,7 @@ page { ...@@ -336,7 +336,7 @@ page {
.portrait-item { .portrait-item {
box-sizing: border-box; box-sizing: border-box;
height: 48rpx; /* height: 48rpx; */
line-height: 48rpx; line-height: 48rpx;
background: #E6F0FF; background: #E6F0FF;
border-radius: 8rpx; border-radius: 8rpx;
......
...@@ -17,13 +17,14 @@ Page({ ...@@ -17,13 +17,14 @@ Page({
let { pidx, idx } = e.currentTarget.dataset let { pidx, idx } = e.currentTarget.dataset
let { formData } = this.data let { formData } = this.data
let _item = formData[pidx] let _item = formData[pidx]
let _active = formData[pidx].optionList[idx].active
if (!_item.isMult) { if (!_item.isMult) {
this.setData({ this.setData({
[`formData[${pidx}].optionList`]: JSON.parse(JSON.stringify(CONSTANTDATA[_item.optionsName])) [`formData[${pidx}].optionList`]: JSON.parse(JSON.stringify(CONSTANTDATA[_item.optionsName]))
}) })
} }
this.setData({ this.setData({
[`formData[${pidx}].optionList[${idx}].active`]: !this.data.formData[pidx].optionList[idx].active [`formData[${pidx}].optionList[${idx}].active`]: (_item.name == 'customerSex' || _item.isMult) ? !this.data.formData[pidx].optionList[idx].active : !_active
}) })
}, },
...@@ -53,6 +54,10 @@ Page({ ...@@ -53,6 +54,10 @@ Page({
item.optionList.find(k => k.confId == info[item.name]).active = true item.optionList.find(k => k.confId == info[item.name]).active = true
} }
} }
} else {
if (item.name == 'customerSex') {
item.optionList.find(k => k.confId == '1').active = true
}
} }
}) })
this.setData({ this.setData({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!