diy_user_info.wxml 4.46 KB
<view class="xc-user"  >
    <view class="xc-head rel">
        <block wx:if="{{object.bg_type==1}}">
            <image class="xc-background" src="{{iurl}}{{ad_img?ad_img:'/miniapp/images/user_index_powder.jpg'}}">
                <block wx:if="{{object.style==0}}">
                    <include src="style1.wxml"></include>s
                </block>
                <block wx:if="{{object.style==1}}">
                    <include src="style2.wxml"></include>s
                </block>
                <block wx:if="{{object.style==2}}">
                    <include src="style3.wxml"></include>s
                </block>

            </image>
        </block>
        <block wx:else>
             <view class="xc-background" style="background-color:{{object.bg_color}}">
                 <block wx:if="{{object.style==0}}">
                     <include src="style1.wxml"></include>
                 </block>
                 <block wx:if="{{object.style==1}}">
                     <include src="style2.wxml"></include>
                 </block>
                 <block wx:if="{{object.style==2}}">
                     <include src="style3.wxml"></include>
                 </block>
             </view>
        </block>
    </view>
</view>

<block wx:if="{{is_no_plus}}">
    <view class="xc-add-member-frame flex-level rel addplus" wx:if="{{is_dengji==2 && show_buy_plus }}">
        <view class="xc-add-member flex-center-around ">
            <view class="flex jc-center ai-center">
                <image class="xc-icon" src="{{iurl}}/miniapp/images/user/user_vip.png"></image>
                <view class="member fs28 "> 加入plus会员预计可省3031元</view>
            </view>
            <view class="xc-opening-button t-c" data-url="/pages/user/plus/plus" bindtap="goto">
                <view class="xc-opening fs28">立即开通</view>
            </view>
        </view>
    </view>

    <view class="xc-add-member-frame flex-level rel addplus" wx:if="{{is_dengji==3 && show_buy_plus}}">
        <view class="xc-add-member flex-center-around ">
            <view class="flex jc-center ai-center">
                <image class="xc-icon" src="{{iurl}}/miniapp/images/user/user_vip.png"></image>
                <view class="member fs28 "> 加入plus会员预计可省3031元</view>
            </view>
            <view class="xc-opening-button t-c" data-url="/packageE/pages/user/cardinfo/cardinfo" bindtap="goto">
                <view class="xc-opening fs28">立即续费</view>
            </view>
        </view>
    </view>
</block>



<!--弹出层内容,其中的“我知道”中绑定让弹出层消失的函数:bindtap="hide"-->
<view class="tc_view" hidden='{{tc_hide}}' bindtap='hide_tc'>
    <view class="modal-box" hidden="{{flag}}" bindtap="hide" catchtouchmove="true"></view>
    <view class="modal-body" catchtouchmove="true">
        <view class="modal-content">
            <view class="flex">
                <image src="{{userInfo.head_pic?userInfo.head_pic:defaultAvatar}}" class="hd_img"></image>
                <view class="ctent_txt">
                    <view class='txt1'>{{userInfo.nickname}}
                        <image wx:if="{{userInfo.sex==2}}" class="arrow-right" style="width: 35rpx; height:35rpx; top: 5rpx" src="{{iurl}}/miniapp/images/user/wum.png"></image>
                        <image wx:else class="arrow-right fu" style="width: 35rpx; height:35rpx;top:5rpx" src="{{iurl}}/miniapp/images/user/man.png"></image>
                    </view>
                    <view wx:if="{{userInfo.address}}" class='txt2'>{{userInfo.address}}</view>
                </view>
            </view>
            <view class="canvas_box">
                <!--<image class='g_img' src='https://mshop.yolipai.net//index.php?m=Home&c=Index&a=qr_code&data={{userInfo.mobile}}'></image>-->
                <canvas class="g_img" canvas-id="qrcode" />
            </view>
            <view style="width: 100%;display: flex;justify-content: center;">
            <canvas class="barcode" style="width: 100%;height: 140rpx;" canvas-id="barcode" />
          </view>
          <view wx:if="{{showvipcode}}"  class="fs24" style="width: 100%;color: #898989;display: flex;text-align: center;align-content: center;justify-content: center;">
            {{brcode}}
      </view>
      <view wx:else catchtap="showtext" class="fs24" style="width: 100%;color: #898989;display: flex;text-align: center;align-content: center;justify-content: center;">
        点击可查看条形数据
      </view>
        </view>
    </view>
</view>