<nav type="back" title="微信绑定" background-color="#fff"></nav>
<view class="wrap">
    <view class="item">
        <view class="key">姓名</view>
        <view class="value" wx:if="{{hasInfo}}">{{name}}</view>
        <input class="value" wx:if="{{!hasInfo}}" type="text" style="width:70%" bindinput="bindKeyInput" data-prop="name" value="{{name}}" placeholder="请输入姓名"/>
    </view>
    <view class="item">
        <view class="key">微信账号</view>
        <view class="value" wx:if="{{hasInfo}}">{{accountId}}</view>
        <input class="value" wx:if="{{!hasInfo}}" type="text" style="width:70%" bindinput="bindKeyInput" data-prop="accountId" value="{{accountId}}" placeholder="{{way == 'alipay' ? '请输入支付宝账号':'请输入微信账号'}}"/>
    </view>
</view>
<view class="button" wx:if="{{!hasInfo}}" bind:tap="submit">保存</view>
<view class="button"wx:if="{{hasInfo}}" bind:tap="change">修改</view>
