Showing
3 changed files
with
6 additions
and
3 deletions
| @@ -6,7 +6,10 @@ Page({ | @@ -6,7 +6,10 @@ Page({ | ||
| 6 | }, | 6 | }, |
| 7 | onLoad(opt){ | 7 | onLoad(opt){ |
| 8 | console.log(opt) | 8 | console.log(opt) |
| 9 | - this.action=opt.action ? opt.action : null | 9 | + this.action=opt.action ? opt.action : null, |
| 10 | + this.setData({ | ||
| 11 | + action:this.action | ||
| 12 | + }) | ||
| 10 | }, | 13 | }, |
| 11 | onShow(){ | 14 | onShow(){ |
| 12 | this.getlist(); | 15 | this.getlist(); |
| 1 | -<nav hasHome>常用联系人</nav> | 1 | +<nav hasHome>{{action ? '选择联系人' : '常用联系人'}}</nav> |
| 2 | <view class="concat-list"> | 2 | <view class="concat-list"> |
| 3 | <block wx:for="{{concatlist}}" wx:key="{{index}}"> | 3 | <block wx:for="{{concatlist}}" wx:key="{{index}}"> |
| 4 | <view class="flex-lr item font30r black-font" data-index="{{index}}" catchtap="edit"> | 4 | <view class="flex-lr item font30r black-font" data-index="{{index}}" catchtap="edit"> |
| 1 | <!--pages/me/setting.wxml--> | 1 | <!--pages/me/setting.wxml--> |
| 2 | -<nav hasHome>常用信息</nav> | 2 | +<nav hasHome>{{user.id ? '编辑联系人' : '新建联系人'}}</nav> |
| 3 | <view class="page"> | 3 | <view class="page"> |
| 4 | <!-- <view class="tip">在这里维护你的常用预订信息</view> --> | 4 | <!-- <view class="tip">在这里维护你的常用预订信息</view> --> |
| 5 | <view class="card"> | 5 | <view class="card"> |
-
Please register or login to post a comment