template.wxml
5.3 KB
<!-- 点按钮 --> <template name='hideBtn'> <form wx:for='{{hideBtnData.length}}' wx:key='' bindsubmit="hidepushFormSubmit" report-submit='true'> <view class="btn-area"> <button plain="true" formType="submit" style='{{hideBtnData.length[index]}}'></button> </view> </form> </template> <template name='customizedBtn'> <form bindsubmit="pushFormSubmit" report-submit='true'> <view class="btn-area"> <button plain="true" formType="submit" style='{{btn_style.style}}'>{{btn_style.name}}</button> </view> </form> <template is='hideBtn'></template> </template> <template name='miniSubscribeBtn'> <template is='hideBtn'></template> <form bindsubmit="pushFormSubmit" report-submit='true'> <view class="btn-area"> <button data-name='miniSubscribeBtn' data-id='{{miniSubscribeBtn.id}}' plain="true" formType="submit" style='{{miniSubscribeBtn.style}}'>{{miniSubscribeBtn.name}}</button> </view> </form> </template> <template name='miniFollowBtn'> <template is='hideBtn'></template> <form bindsubmit="pushFormSubmit" report-submit='true'> <view class="btn-area"> <button plain="true" formType="submit" style='{{miniFollowBtn.style}}'>{{miniFollowBtn.name}}</button> </view> </form> </template> <template name='longSubscribeBtn'> <template is='hideBtn'></template> <form bindsubmit="pushFormSubmit" report-submit='true'> <view class="btn-area"> <button plain="true" formType="submit" style='{{longSubscribeBtn.style}}'>{{longSubscribeBtn.name}}</button> </view> </form> </template> <template name='longFollowBtn'> <template is='hideBtn'></template> <form bindsubmit="pushFormSubmit" report-submit='true'> <view class="btn-area"> <button plain="true" formType="submit" style='{{longFollowBtn.style}}'>{{longFollowBtn.name}}</button> </view> </form> </template> <template name='longFollowBtn'> <template is='hideBtn'></template> <form bindsubmit="pushFormSubmit" report-submit='true'> <view class="btn-area"> <button plain="true" formType="submit" style='{{longFollowBtn.style}}'>{{longFollowBtn.name}}</button> </view> </form> </template> <template name='onLineTierText'> <view class="popover" wx:if="{{onlineData.temp_type == 2}}"> <view class='popover_box' wx:if="{{onlineData.isShow}}"> <view class='popover_box_three'> <form bindsubmit="pushFormSubmit" report-submit='true'> <view class='box_one_top bgImgBox'> <image class='bgImg' src="https://openapi.xiaoshentui.com/push_sdk_img/online-push_type1_title.png"></image> <text>{{onlineData.line_title}}</text> </view> <view class='box_one_btm btn_three_btm'> <view class='box_one_btm_son'>{{onlineData.line_contents}}</view> </view> <button class='check_detail_three' bindtap="atDetails" data-acdetail="{{onlineData.line_page}}" data-type="{{onlineData.msg_lp_type}}" data-msgkey="{{onlineData.msg_key}}" data-apd="{{onlineData.app_id}}" formType="submit">{{onlineData.button_content}}</button> <button class='threeCloseImg' bindtap="colseOneBox" plain="true" formType="submit"> <image src="https://openapi.xiaoshentui.com/push_sdk_img/online-push_type1_clone_3.0.png"></image> </button> </form> </view> </view> </view> <view class="popover" wx:if="{{onlineData.temp_type == 1}}"> <view class='popover_box' wx:if="{{onlineData.isShow}}"> <view class='popover_box_two'> <form bindsubmit="pushFormSubmit" report-submit='true'> <image class='bellImg' src="https://openapi.xiaoshentui.com/push_sdk_img/online-push_type2_title.png"></image> <button class='closeTwoBox' bindtap="colseOneBox" plain="true" formType="submit"> <image src="https://openapi.xiaoshentui.com/push_sdk_img/online-push_type2_clone.png"></image> </button> <view class='box_two_top'>{{onlineData.line_title}}</view> <view class='box_two_btm'>{{onlineData.line_contents}}</view> <button class='check_detail_two' bindtap="atDetails" data-acdetail="{{onlineData.line_page}}" data-type="{{onlineData.msg_lp_type}}" data-msgkey="{{onlineData.msg_key}}" data-apd="{{onlineData.app_id}}" formType="submit">{{onlineData.button_content}}</button> </form> </view> </view> </view> <view class="popover" wx:if="{{onlineData.temp_type == 3}}"> <view class='popover_box' wx:if="{{onlineData.isShow}}"> <view class='popover_box_one'> <form bindsubmit="pushFormSubmit" report-submit='true'> <view class='box_one_top'>{{onlineData.line_title}} <button class='closeTwoBox' bindtap="colseOneBox" plain="true" formType="submit"> <image src="https://openapi.xiaoshentui.com/push_sdk_img/online-push_type3_clone.png"></image> </button> </view> <view class='box_one_btm'> <view class='box_one_btm_son'>{{onlineData.line_contents}}</view> </view> <button class='check_detail' bindtap="atDetails" data-acdetail="{{onlineData.line_page}}" data-type="{{onlineData.msg_lp_type}}" data-msgkey="{{onlineData.msg_key}}" data-apd="{{onlineData.app_id}}" formType="submit">{{onlineData.button_content}}</button> </form> </view> </view> </view> </template> <template name='onLineTierPic'> <view class='popover_box' wx:if="{{onlineData.isShow}}"> <view class='popover_box_pic'> <view> <image bindtap="atDetails" data-acdetail="{{onlineData.line_page}}" data-type="{{onlineData.msg_lp_type}}" data-msgkey="{{onlineData.msg_key}}" data-apd="{{onlineData.app_id}}" src="{{onlineData.line_url}}" class="popover_box_pic_img" mode="widthFix" /> <image src="https://openapi.xiaoshentui.com/push_sdk_img/online-push_type4_clone.png" bindtap="colseOneBox" class="popover_box_pic_clone"></image> </view> </view> </view> </template>