<view class="material_search">
	<view class="content">
		<view class="sousuoWrap">
			<icon class="iconfont icon-sousuo1" bindtap="getData"></icon>
			<input type="text" bindinput="changeValue" bindconfirm="getData"  placeholder="请输入素材标题" style="display:flex;flex:1;margin-left:10rpx;"/>
		</view>
		<view class="user_info" wx:for="{{list}}" wx:key="index">
			<view class="user_name">
				<view class="user">
					<image src="{{item.logo}}" mode='widthFix' />
				</view>
				<view class="ul right">
					<view class="name li">{{ item.name }}</view>
					<view class="time li">{{ item.created_at }}</view>
				</view>
			</view>
			<view class="p share_text">
				<text>{{ item.content }}</text>
			</view>
			<view class="goods_box" data-image="{{item.images}}">
				<view class="img" wx:for-index="imgidx" wx:key="{{imgidx}}" wx:for-item="img" wx:for="{{item.images}}" catchtap="showimage" data-images="{{item.images}}"
				 data-imgidx="{{imgidx}}">
					<image src="{{img}}" mode='aspectFill' />
				</view>
				<view class="video">
					<video src="{{item.videos.video_url}}" poster="{{item.videos.video_image}}"></video>
				</view>
			</view>
			<view class="goods_lik" wx:if="{{item.goods}}" catchtap="toGoods" data-id="{{item.goods.id}}">
				<view class="goods_img">
					<image src="{{item.goods.thumb}}" mode='widthFix' />
				</view>
				<view class="ul goods_name">
					<view class="ul name" style="-webkit-box-orient: vertical;">
						{{ item.goods.title}}
					</view>
					<view class="ul number">{{language['money']}}{{ item.goods.price }}</view>
				</view>
			</view>
			<view class="goods_share">
				<view class="left" catchtap="update" data-title="{{item.content}}" data-id="{{item.id}}">
					<icon class="iconfont icon-ht_operation_copypage"></icon>
					<view class="span">复制文案</view>
				</view>
				<view class="left" data-id="{{item.goods.id}}" catchtap="postShow">
					<icon class="iconfont icon-material_goodsCode"></icon>
					<view class="span">商品码</view>
				</view>
				<view class="right" bindtap="download" data-images="{{item.images}}" data-video="{{item.videos}}">
					<icon class="iconfont icon-fontclass-xaizai"></icon>
					<view class="span">下载图文</view>
				</view>
			</view>
		</view>
	</view>
  <van-popup show="{{posterShow}}" closeable close-on-click-overlay="true" bind:close="posterShowClose" custom-style="background:none;" class="posterPopup_style" position="bottom">
	<view class="code_box">
		<image wx:if="{{posterImg}}" src="{{posterImg}}"
		 mode='widthFix' />
		<image wx:if="{{!posterImg}}" src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/img_default.png" mode='widthFix' />
	</view>
  <view class="icon_btn">
		<view class="box" >
      <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/images/poster_share.png" />
      <text>分享好友</text>
      <button style="position:absolute;width:100%;height:100%;opacity:0;top: 0;right: 0;" open-type="share"></button>
    </view>
    <view class="box" catchtap='saveImg'>
      <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/images/poster_save.png" />
      <text>保存海报</text>
    </view>
	</view>
  <!-- 关闭图标 -->
  <view class="icon_close" style="{{iPnoneBottomBol?'padding-bottom: 34px;':''}}" catchtap="posterShowClose">取消</view>
</van-popup>
</view>