12345678910111213141516171819202122232425262728293031323334353637 |
- <!--pages/components/wxbutton/wxbutton.wxml-->
- <view wx:if="{{item_data.show_data==='getUserInfo'}}" bind:getuserinfon="onGetUserInfoParent">
- <button class="btn" open-type="getUserInfo" bindgetuserinfo="onGetUserInfo">
- <image mode="widthFix" src="{{item_data.image}}" style="width:'100%'; height:'100%';">
- </image>
- </button>
- </view>
- <view wx:elif="{{item_data.show_data==='getPhoneNumber'}}">
- <button class="btn" open-type="getPhoneNumber" bindgetuserinfo="onGetPhoneNumber">
- <image mode="widthFix" src="{{item_data.image}}" style="width:'100%'; height:'100%';"></image>
- </button>
- </view>
- <view wx:elif="{{item_data.show_data==='contact'}}">
- <button class="btn" open-type="contact" bindgetuserinfo="onContact">
- <image mode="widthFix" src="{{item_data.image}}" style="width:'100%'; height:'100%';"></image>
- </button>
- </view>
- <view wx:elif="{{item_data.show_data==='share'}}">
- <button class="btn" open-type="share" bindgetuserinfo="onShare">
- <image mode="widthFix" src="{{item_data.image}}" style="width:'100%'; height:'100%';"></image>
- </button>
- </view>
- <view wx:elif="{{item_data.show_data==='launchApp'}}">
- <button class="btn" open-type="launchApp" bindgetuserinfo="onLaunchApp">
- <image mode="widthFix" src="{{item_data.image}}" style="width:'100%'; height:'100%';"></image>
- </button>
- </view>
- <view wx:elif="{{item_data.show_data==='openSetting'}}">
- <button class="btn" open-type="openSetting" bindgetuserinfo="onOpenSetting">
- <image mode="widthFix" src="{{item_data.image}}" style="width:'100%'; height:'100%';"></image>
- </button>
- </view>
- <view wx:elif="{{item_data.show_data==='feedback'}}">
- <button class="btn" open-type="feedback" bindgetuserinfo="onFeedback">
- <image mode="widthFix" src="{{item_data.image}}" style="width:'100%'; height:'100%';"></image>
- </button>
- </view>
|