template.wxml 1.2 KB
<!--pages/template/template.wxml-->
<template name="goindex">
 <view class="service" bindtap='goindex'>
  <image mode="scaleToFill" src="https://wxapp.xianghejia.cn/imgs/goindex.png"></image>
 </view>
</template>
<template name="poster">
 <view class='posterbox' wx:if='{{showposter}}' bindtap='sershowposterno'>

  <view class='postermain' catchtap='voidfun'>
   <view class='poster_img'>

    <image src='{{imgurl}}'></image>
   </view>
   <view class='poster_btnbox'>
    <view class='poster_btn' catchtap='saveImg'>
     <text class='iconfont icon-xiazai'></text> 保存相册</view>
    <button class='poster_btn' open-type='share'>
     <text class='iconfont icon-fenxiang'></text>分享好友</button>
   </view>
   <view class='guanbi_img' catchtap='sershowposterno'>
   <image src='../imgs/guanbi@2x.png'></image>
   </view>
  </view>
 </view>
</template>
<template name='callback'>
 <view class='void_mold' wx:if='{{showlocation}}' bindtap='showlocationno'>
  <view class='void_mian' catchtap='voldfun'>
   <view class='vold_title'>提示</view>
   <view>请设置授权信息</view>
   <button open-type='openSetting' bindopensetting='callback' class='mold_btns'>授权</button>
  </view>
 </view>
</template>