card-mini/packagecard/cardDetail/cardDetail.wxml

84 lines
5.4 KiB
Plaintext
Raw Normal View History

2021-07-14 14:20:54 +08:00
<cu-custom isCustom="{{false}}" isBack="{{true}}">
2021-08-09 09:19:56 +08:00
<view slot="content">创建名片</view>
2021-07-14 14:20:54 +08:00
</cu-custom>
<button open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber" wx:if="{{bindPhone == '0'}}">获取手机号</button>
<view class="card"
style="padding-bottom:{{(cardInfo.picturesTemplateHeight / cardInfo.picturesTemplateWidth) *100 +'%'}};">
<!-- 背景图 -->
<image src="{{cardUrl}}{{cardInfo.picturesTemplateBackgroundImage}}" alt="" class="card-bgImg"
wx:if="{{cardInfo.picturesTemplateBackgroundImage}}"></image>
<!-- 文字 -->
<view class="area-box" wx:for="{{areaList}}" data-cur="{{index}}" bindtap="giveFocus" wx:key="index"
style="position:absolute;top: {{(item.templateAreaTop / cardInfo.picturesTemplateHeight) * 100 + '%'}};left:{{(item.templateAreaLeft / cardInfo.picturesTemplateWidth) * 100 + '%'}};color:{{item.templateAreaFontColor}};;width:{{(item.templateAreaWidth / cardInfo.picturesTemplateWidth) * 100 + '%'}};height:{{(item.templateAreaHeight / cardInfo.picturesTemplateHeight) * 100 + '%'}};font-size:{{item.templateAreaFontSize}};font-style:{{item.templateAreaFontStyle}};font-weight:{{item.templateAreaFontBold}};text-align:{{item.templateAreaFontCenter}}"
2021-08-06 11:22:40 +08:00
wx:if="{{item.templateAreaServerLink == '1' && item.templateAreaType != '1'}}">
2021-07-14 14:20:54 +08:00
{{item.templateAreaFontValue}}
</view>
<!-- 图片 -->
<view wx:for="{{areaList}}" data-cur="{{index}}" bindtap="choosePhoto" wx:key="index"
style="position:absolute;top: {{(item.templateAreaTop / cardInfo.picturesTemplateHeight) * 100 + '%'}};left:{{(item.templateAreaLeft / cardInfo.picturesTemplateWidth) * 100 + '%'}};color:{{item.templateAreaFontColor}};width:{{(item.templateAreaWidth / cardInfo.picturesTemplateWidth) * 100 + '%'}};height:{{(item.templateAreaHeight / cardInfo.picturesTemplateHeight) * 100 + '%'}}"
wx:if="{{item.templateAreaServerLink == '2'}}">
<image src="{{cardUrl}}{{item.templateAreaFile}}" style="width: 100%;height:100%"></image>
</view>
<!-- 其他 -->
<view class="area-box" wx:for="{{areaList}}" data-cur="{{index}}" wx:key="index" bindtap="giveFocus"
style="position:absolute;top: {{(item.templateAreaTop / cardInfo.picturesTemplateHeight) * 100 + '%'}};left:{{(item.templateAreaLeft / cardInfo.picturesTemplateWidth) * 100 + '%'}};color:{{item.templateAreaFontColor}};width:{{(item.templateAreaWidth / cardInfo.picturesTemplateWidth) * 100 + '%'}};height:{{(item.templateAreaHeight / cardInfo.picturesTemplateHeight) * 100 + '%'}}"
2021-08-06 11:07:14 +08:00
wx:if="{{item.templateAreaType == '1' && item.templateAreaServerLink == '1'}}">
2021-07-14 14:20:54 +08:00
<text wx:if="{{!item.templateAreaFile}}">{{item.templateAreaFontValue}}</text>
<image src="{{cardUrl}}{{item.templateAreaFile}}" wx:else></image>
<!-- <image src="{{cardUrl}}{{item.templateAreaFile}}" style="width: 100%;height:100%"></image> -->
</view>
</view>
<!-- <view class="card-title">{{cardInfo.picturesTemplateTitle}}</view> -->
<view class="card-title">适用行业:{{cardInfo.templateIndustryName}}</view>
<view class="card-info">
<view class="edit-card">
2021-08-09 09:19:56 +08:00
<view wx:for="{{areaList}}" wx:key="index"
2021-07-14 14:20:54 +08:00
wx:if="{{item.templateAreaServerLink != '2' && item.templateAreaType != '1'}}">
2021-08-09 09:19:56 +08:00
<view class="row">
<view class="item-title-box">
<view class="item-title">{{item.templateAreaName}}:</view>
<view class="hint-txt" wx:if="{{item.templateAreaFontLength>0}}">最多输入{{item.templateAreaFontLength}}个字符</view>
</view>
<view class="item-input">
<input type="text" data-num="{{index}}" bindblur="inputBlur" data-item="{{item}}"
value="{{item.templateAreaFontValue}}" focus="{{item.focus}}"
wx:if="{{item.templateAreaServerLink != '1'}}"></input>
<input type="text" placeholder="请输入内容,最多{{item.templateAreaFontLength}}个字" data-item="{{item}}"
bindblur="inputBlur" data-num="{{index}}" value="{{item.templateAreaFontValue}}" focus="{{item.focus}}"
wx:else></input>
</view>
2021-07-14 14:20:54 +08:00
</view>
</view>
2021-08-09 09:19:56 +08:00
2021-07-14 14:20:54 +08:00
<view class="row" wx:for="{{areaList}}" wx:key="index"
wx:if="{{item.templateAreaServerLink == '2' && item.templateAreaType != '1'}}">
<view class="item-title">{{item.templateAreaName}}:</view>
2021-08-06 09:42:15 +08:00
<view bindtap="choosePhoto" data-cur="{{index}}" data-item="{{item}}" class="card-img-box">
2021-07-20 16:39:27 +08:00
<image src="{{cardUrl}}{{item.templateAreaFile}}" mode="widthFix"></image>
2021-08-09 09:19:56 +08:00
<text class="cuIcon-cameraadd" style="font-size: 100rpx;"></text>
2021-07-14 14:20:54 +08:00
</view>
</view>
<!-- <view class="row" wx:for="{{areaList}}" wx:key="index" wx:if="{{item.templateAreaType == '9'}}">
<view class="item-title">二维码:</view>
<view class="item-input item-code-input" bindtap="choosePhoto" data-cur="{{index}}">
<image src="{{cardUrl}}route/file/download/true/{{item.templateAreaTitle}}"></image>
点击修改
</view>
</view> -->
</view>
</view>
<view class="padding-xs foot bg-white" wx:if="{{!isLoading}}">
<button class="cu-btn bg-blue" style="width:100%" bindtap="createMyCard">生成我的名片</button>
</view>
<view class="hide-link" wx:if="{{showHide}}">
<view class="hide">
<view class="hide-text">名片创建成功,如需查看请到"我的"-"我的卡包"</view>
<view class="hide-btn-box">
<view class="hide-btn" bindtap="continueCreate">继续创建</view>
<view class="hide-btn" bindtap="backList">返回模板列表</view>
</view>
</view>
</view>