index.wxml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <!--index.wxml-->
  2. <view class="container">
  3. <!--获取用户城市-->
  4. <!-- <view class="retailStore"> -->
  5. <!-- <view class="cnaps borderBottom">
  6. <text>所在城市</text>
  7. <input class='m-bbt' placeholder-class='plhStyle' type='number' maxlength='50' placeholder='' bindinput="bindKeyInput" value='{{province}} {{city}}' disabled></input>
  8. </view> -->
  9. <!-- </view> -->
  10. <!--获取用户城市-->
  11. <view class="city">
  12. <input class='cityShow' type='text' placeholder='' bindinput="bindKeyInput"
  13. value='城市:{{province}} {{city}}' disabled></input>
  14. </view>
  15. <view class="address">
  16. <input class='Text1' type='text' value='地址:{{address}}'></input>
  17. </view>
  18. <input type='text' placeholder='' bindinput="bindKeyInput"
  19. value='{{latitude}}' disabled></input>
  20. <input type='text' placeholder='' bindinput="bindKeyInput"
  21. value='{{longitude}}' disabled></input>
  22. <view class="userinfo">
  23. <button wx:if="{{!hasUserInfo && canIUse}}" open-type="getUserInfo" bindgetuserinfo="getUserInfo"> 获取头像昵称 </button>
  24. <block wx:else>
  25. <image bindtap="bindViewTap" class="userinfo-avatar" src="{{userInfo.avatarUrl}}" mode="cover"></image>
  26. <text class="userinfo-nickname">{{userInfo.nickName}}</text>
  27. </block>
  28. </view>
  29. <view class="usermotto">
  30. <text class="user-motto">{{motto}}</text>
  31. </view>
  32. </view>