|
@@ -3,7 +3,7 @@
|
|
|
<view class="cu-timeline" v-for="(v,k) in fetch.times" :key="v.id">
|
|
|
<view class="cu-time">{{v.name}}</view>
|
|
|
<view class="cu-item" :class="v1.id == times ? 'text-blue' : ''" v-for="(v1,k1) in v.child" :key="v1.id" :style="{backgroundImage: v1.icon}">
|
|
|
- <view class="content" :style="{color:v1.color,backgroundColor:v1.bgcolor}">
|
|
|
+ <view class="content" :style="{color:v1.color,backgroundColor:v1.bgcolor}" @click="openTime(k, k1)">
|
|
|
<view class="cu-capsule radius">
|
|
|
<view class="cu-tag bg-cyan">{{v1.name}}</view>
|
|
|
<view class="cu-tag line-white">
|
|
@@ -12,7 +12,7 @@
|
|
|
<view class="uni-input">{{fetch.user_times[v1.id] && fetch.user_times[v1.id].day != 0 ? fetch.user_times[v1.id].day : '主序时间'}}</view>
|
|
|
</picker>
|
|
|
-->
|
|
|
- <view class="uni-input" @click="openTime()">{{fetch.user_times[v1.id] && fetch.user_times[v1.id].day != 0 ? fetch.user_times[v1.id].day : '主序时间'}}</view>
|
|
|
+ <view class="uni-input">{{fetch.user_times[v1.id] && fetch.user_times[v1.id].day != 0 ? fetch.user_times[v1.id].day : '主序时间'}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view @click="go(v1)">
|
|
@@ -22,7 +22,7 @@
|
|
|
</view>
|
|
|
|
|
|
<w-picker
|
|
|
- :visible.sync="timeVisible"
|
|
|
+ :visible.sync="v1.visible"
|
|
|
mode="date"
|
|
|
:startYear="v1.year"
|
|
|
:endYear="(v1.end_year ? v1.end_year : v1.year)"
|
|
@@ -74,8 +74,8 @@ export default {
|
|
|
this.getDate();
|
|
|
},
|
|
|
methods:{
|
|
|
- openTime : function() {
|
|
|
- this.timeVisible = true;
|
|
|
+ openTime : function(k, k1) {
|
|
|
+ this.fetch.times[k].child[k1].visible = true;
|
|
|
},
|
|
|
getDate : function(type) {
|
|
|
const date = new Date();
|