sharePopup.wxml 2.26 KB
<!--components/sharePopup/sharePopup.wxml-->
<view class="share-popup" wx:if="{{data.showSharePopup}}" catchtouchmove="noScroll">
  <view class="share-popup-bg" />
  <view class="share-box" style="transform: translate(-50%, calc(-50% + {{navHeight / 2}}px));">
    <view class="close-box">
      <view class="close_btn" bindtap="close">
        <image webp src="{{IMGURL}}popup_close_btn.png"></image>
      </view>
    </view>
    <view class="share-popup-content" style="height: {{postersBoxHeight}}px;">
    <!-- 用户活动信息 -->
    <block>
      <image class="bg" style="height: {{boxImageHeight}}px;" webp src="{{IMGURL}}taskDetail_bg.png"></image>
      <view class="user-box">
        <image webp class="user_image" src="{{USERINFO.weChatAvatarUrl ? USERINFO.weChatAvatarUrl : IMGURL + 'order_person_default.png'}}"></image>
        <view class="message">
          <view class="name">{{USERINFO.weChatNickName || USERINFO.name || ""}}<text>邀请你参加</text></view>
          <view class="activity"><text>{{data.activityName || ""}}</text><text class="activity-type-tag">{{activityTypList[0]}}</text></view>
        </view>
      </view>
    </block>
    <!-- 海报 -->
    <block>
      <view class="content-box">
        <image class="posters_img" style="height: {{postersImageHeight}}px;" mode="aspectFit" src="{{data.posterImg}}"></image>
        <!-- <view class="merchant_box">
          <view class="merchant_message">
            <view class="name">{{USERINFO.merchantName}}</view>
            <view class="address">{{data.address}}</view>
          </view>
          <view class="qrcode">
            <image src="{{data.imagePath}}"></image>
          </view>
        </view> -->
      </view>
    </block>
    <!-- 保存 -->
    </view>
    <view class="btn-box">
      <view class="btn" bind:tap="saveImage">保存至相册</view>
      <view class="tip">提示:这是您的专属活动海报,请保存至手机相册后转发给客户微信,系统将自动记录成交订单归属,并发放积分奖励!</view>
    </view>
  </view>
  <view class="canvas-box">
		<canvas style="width:355px;height:370px; margin:0 auto;" canvas-id="mycanvas" />
	</view>
</view>
<!-- <authorize scopeType="writePhotosAlbum" bindfail="authFail" show="{{showAuth}}" id="auth"></authorize> -->