Commit b71cf67a by chenwq

标签选择,日历

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