<wxs module="urls" src="../../utils/photoUrl.wxs"></wxs>
<view class="home">
	<view class="title1">上传照片</view>
	<view class="title2">生成专属身份卡</view>
	<image wx:if="{{isTrue}}" src="/images/caream.png" style="width:350rpx;height:350rpx" bindtap="goPhoto"></image>
	<image wx:else class="image" style="width:350rpx;height:350rpx" src="{{urls.url(imgPath)}}" mode='scaleToFill' bindtap="previewImg"></image>
	<van-icon wx:if="{{!isTrue}}" size='23' name="clear" class="close" data-index="{{index}}" bindtap="closeImage" />
	<view class="btn" bindtap="goShenFen">立即生成</view>
</view>