|
@@ -154,13 +154,17 @@ Page({ |
|
@@ -154,13 +154,17 @@ Page({ |
|
154
|
}
|
154
|
}
|
|
155
|
},
|
155
|
},
|
|
156
|
swiperChange(e){
|
156
|
swiperChange(e){
|
|
|
|
157
|
+ let current=e.detail.current
|
|
157
|
this.setData({
|
158
|
this.setData({
|
|
158
|
- current:e.detail.current,
|
159
|
+ current:current,
|
|
|
|
160
|
+ [`seller.date`]:util.unixtoTime(new Date()/1000,this.data.tpls[current].timeStr)
|
|
159
|
})
|
161
|
})
|
|
160
|
},
|
162
|
},
|
|
161
|
switchTabs(e){
|
163
|
switchTabs(e){
|
|
|
|
164
|
+ let current=util.attr(e,'current')
|
|
162
|
this.setData({
|
165
|
this.setData({
|
|
163
|
- current:util.attr(e,'current'),
|
166
|
+ current:current,
|
|
|
|
167
|
+ [`seller.date`]:util.unixtoTime(new Date()/1000,this.data.tpls[current].timeStr)
|
|
164
|
})
|
168
|
})
|
|
165
|
},
|
169
|
},
|
|
166
|
goEditor(){
|
170
|
goEditor(){
|