ts_aimz/pages/shop/publishCopyright/publishCopyright.wxml
2025-06-11 11:22:53 +08:00

157 lines
9.8 KiB
Plaintext

<view class="page-container" style="background-color: var(--divider-color);">
<view class="content-box">
<view class="upload-img-box">
<mp-uploader max-count="1" delete="true" select="{{selectFile}}" upload="{{uploadFile}}" bind:delete="deleteImage" files="{{files}}" title=""></mp-uploader>
</view>
<view class="content-container">
<view class="info-title">软著信息</view>
<!-- 第一部分 -->
<view class="section">
<view class="item">
<text class="label star">软著名称</text>
<view class="select-content-item">
<input class="value {{rightName != '' ? 'v-select':''}}" placeholder="请输入软著名称" style="flex:1;align-self: center;" value="{{rightName}}" bindinput="inputRightName" />
<view bind:tap="doClearRightName" wx:if="{{rightName.length>0}}" class="icon-clear-line size-32"></view>
</view>
</view>
<view class="item">
<text class="label star">软著分类</text>
<view class="select-content-no-h">
<view class="select-item-box" bind:tap="onShowRightType">
<view wx:if="{{selRightType.length<=0}}" class="value-hint">请选择软著分类</view>
<block wx:else>
<block wx:for="{{selRightType}}" wx:key="index">
<view class="select-item-item">
<text>{{item.dataName}}</text>
</view>
</block>
</block>
</view>
<view style="display: flex;flex-direction: row;">
<view wx:if="{{selRightType.length>0 }}" bind:tap="clearRightType" class="icon-clear-line size-32"></view>
<view wx:if="{{selRightType.length<=0}}" class="icon-arrow-solid"></view>
</view>
</view>
</view>
<view class="item">
<text class="label star">售卖价格</text>
<view class="select-content-item">
<input class="value {{rightPrice != 0 ? 'v-select':''}}" type="number" placeholder="请输入售价" style="flex:1;align-self: center;" value="{{rightPrice}}" bindinput="inputRightPrice" />
<view bind:tap="doClearPrice" wx:if="{{rightPrice != 0}}" class="icon-clear-line size-32"></view>
</view>
</view>
<view class="item">
<view class="label star">截止售卖日期</view>
<view class="select-content-item" style="align-items: center;">
<picker mode="date" style="flex:1;" value="{{rightStopDate}}" start="{{curStartDate}}" end="2050-01-01" bindchange="bindDateChange">
<view class="select-time {{rightStopDate ==''? 'value-hint':''}}">{{rightStopDate != ''? rightStopDate:'请选择截止售卖日期'}}</view>
</picker>
<view style="display: flex;flex-direction: row;">
<view wx:if="{{rightStopDate !=''}}" bind:tap="clearTime" class="icon-clear-line size-32"></view>
<view wx:if="{{rightStopDate==''}}" class="icon-calendar-ind size-32"></view>
</view>
</view>
</view>
</view>
<view class="info-title">著作权人信息</view>
<!-- 第一部分 -->
<view class="section">
<view class="item">
<text class="label star">类别</text>
<view class="select-content-item">
<picker mode="selector" style="flex:1;" range="{{personType}}" range-key="dataName" bindchange="bindChangePersonType">
<view class="select-time {{selPersonType ==null? 'value-hint':''}}">{{selPersonType != null? selPersonType.dataName:'请选择类别'}}</view>
</picker>
<view style="display: flex;flex-direction: row;">
<view wx:if="{{selPersonType !=null}}" bind:tap="clearPersonType" class="icon-clear-line size-32"></view>
<view wx:if="{{selPersonType==null}}" class="icon-arrow-solid"></view>
</view>
</view>
</view>
<view class="item">
<text class="label star">姓名或机构名称</text>
<view class="select-content-item">
<input class="value {{orgName != '' ? 'v-select':''}}" placeholder="请输入姓名或机构名称" style="flex:1;align-self: center;" value="{{orgName}}" bindinput="inputOrgName" />
</view>
</view>
<view class="item">
<text class="label star">省市</text>
<view class="select-content-item">
<view bind:tap="onShowArea" class="select-time {{selArea ==null? 'value-hint':''}}">{{selArea != null? selArea.areaName+'/'+selCity.areaName:'请选择所在省市'}}</view>
<view style="display: flex;flex-direction: row;">
<view wx:if="{{selArea !=null}}" bind:tap="clearArea" class="icon-clear-line size-32"></view>
<view wx:if="{{selArea==null}}" class="icon-arrow-solid"></view>
</view>
</view>
</view>
<view class="item">
<text class="label star">联系电话</text>
<view class="select-content-item">
<input class="value {{orgPhone != '' ? 'v-select':''}}" placeholder="请输入联系电话" style="flex:1;align-self: center;" value="{{orgPhone}}" bindinput="inputOrgPhone" />
<view wx:if="{{orgPhone.length>0}}" bind:tap="doClearPhone" class="icon-clear-line size-32"></view>
</view>
</view>
<view class="item">
<text class="label star">证件类型</text>
<view class="select-content-item">
<picker mode="selector" style="flex:1;" range="{{creType}}" range-key="dataName" bindchange="bindChangeCreType">
<view class="select-time {{selCreType ==null? 'value-hint':''}}">{{selCreType != null? selCreType.dataName:'请选择证件类型'}}</view>
</picker>
<view style="display: flex;flex-direction: row;">
<view wx:if="{{selCreType !=null}}" bind:tap="clearCreType" class="icon-clear-line size-32"></view>
<view wx:if="{{selCreType==null}}" class="icon-arrow-solid"></view>
</view>
</view>
</view>
<view class="item">
<text class="label star">证件号码</text>
<view class="select-content-item" style="border-bottom: none;">
<input class="value {{cardNumber != '' ? 'v-select':''}}" placeholder="请输入证件号码" style="flex:1;align-self: center;" value="{{cardNumber}}" bindinput="inputCardNumber" />
</view>
</view>
</view>
</view>
</view>
<view class="bottom-fixed-footer">
<view class="bottom-btn-blue" bind:tap="doSave">保存</view>
</view>
</view>
<!-- 软著分类 -->
<mp-half-screen-dialog show="{{showType}}" ext-class="custom-dialog">
<view slot="title" style="font-size: 16px;font-weight: bold;">软件分类</view>
<view slot="desc" style="margin-top: 10rpx;">
<scroll-view scroll-y style="height: 400rpx;">
<view style="display: flex;flex-direction: row;flex-wrap: wrap;">
<checkbox-group bindchange="bindChangeRightType" style="display: flex;flex-direction: row;flex-wrap: wrap;">
<block wx:for="{{rightType}}" wx:key="dataId">
<checkbox checked="{{item.checked}}" value="{{item.dataId}}" class="custom-wx-checkbox" style="display: flex;flex-direction: row;padding: 8rpx 15rpx;">
<view>{{item.dataName}}</view>
</checkbox>
</block>
</checkbox-group>
</view>
</scroll-view>
</view>
<view slot="footer">
<view class="bottom-btn-green" bind:tap="confirmSelRightType">确定</view>
</view>
</mp-half-screen-dialog>
<!-- 所在省市 -->
<mp-half-screen-dialog show="{{showArea}}" ext-class="custom-dialog">
<view slot="title" style="font-size: 16px;font-weight: bold;">省市</view>
<view slot="desc" style="margin-top: 10rpx;">
<picker-view indicator-style="height: 50px;" value="{{prevValue}}" style="width: 100%; height: 400rpx;" bindchange="areaChange">
<picker-view-column>
<view style="line-height: 50px;text-align: center;" wx:for="{{areaList}}" wx:key="index">{{item.areaName}}</view>
</picker-view-column>
<picker-view-column>
<view wx:for="{{cityList}}" wx:key="index" style="line-height: 50px;text-align: center;">{{item.areaName}}</view>
</picker-view-column>
</picker-view>
</view>
<view slot="footer">
<view class="bottom-btn-green" bind:tap="confirmSelArea">确定</view>
</view>
</mp-half-screen-dialog>
<mp-toptips delay="2000" msg="{{msgHint}}" type="{{msgType}}" show="{{msgShow}}"></mp-toptips>