<view class="changeBgFixed" bindtap="changeStyle">
    {{codeType == 'city' && !styleShow ?'切换海报':styleShow ?'关闭切换':'切换海报'}}
</view>

<view class="changeBg" wx:if="{{styleShow}}">
    <block wx:if="{{styleType == 'qcode'}}">
        <view class="changeBgItem changeBgItem-qcode" wx:for="{{qrcodes}}" wx:key="*this" data-index='{{index}}' bindtap="selectCodeIndex">
            <image class="changeCover changeCoverCode {{currentCodeIndex == index?'selected':''}}" src="{{item.code}}"/>
            <span>{{item.name}}</span>
        </view>
    </block>
    <block wx:else>
        <view class="changeBgItem" wx:for="{{posterDatasLists}}" wx:key="*this" data-index='{{index}}' bindtap="selectBgIndex">
            <image class="changeCover {{currentBgIndex == index?'selected':''}}" src="{{item.cover}}"/>
        </view>
    </block>
   
</view>

<swiper indicator-dots="{{true}}" class="swiper" bindchange='swiperChange' circular='{{true}}' current='{{currentBgIndex}}'>
    <block wx:for="{{posterDatasLists}}" wx:key="index">
        <swiper-item>
            <view class="swiper-item">
                <view class="code">
                    <image src="{{item.cover}}" class="code-back" />
                    <view class="code-cont" style="left: {{item.position.newx}}px;top: {{item.position.newy}}px;">
                        <view class="code-img">
                            <image class="code-image" style="width: {{item.position.newSize}}px;" src="{{inviteCode}}" mode="widthFix" />
                        </view>
                    </view>
                    <view class="code-share" bindtap="shareTap" wx:if="{{item.show}}">
                        <image src="https://cdn.shuiganying.com/images/2023/03/28/ee2911df7a5e3f9959d5d320cd966146.png" />
                        <view class="code-share-name">分 享</view>
                    </view>
                </view>
            </view>
        </swiper-item>
    </block>
</swiper>



<!-- 海报canvas -->
<canvas type="2d" id="firstCanvas" class="canvasImg" style="width:{{posterDatas.width}}px;height:{{posterDatas.height}}px;"></canvas>

<!-- 分享弹出 -->
<view class="sharePop {{shareSee ? 'active' : ''}}">
    <view class="shareCont">
        <view class="shareCont-label" bindtap="saveImg">
            <image src="https://cdn.shuiganying.com/images/2023/03/28/cfe0efbb53eaf7911ea5211923859c65.png" />保存二维码
        </view>
    </view>
    <view class="shareCancel" bindtap="shareTap">取消</view>
</view>

<view class="pack-center pages-hint pages-load" wx:if="{{loading}}">
    <image src="/static/icons/loadingGif.gif"></image>
    <view>数据加载中，请耐心等待...</view>
</view>