ts_aimz/pages/copyright/createProjectInfo/createProjectInfo.wxml
2025-04-16 16:16:35 +08:00

214 lines
12 KiB
Plaintext

<view class="create-container">
<view class="container-box">
<swiper indicator-dots style="height: 120rpx;" autoplay indicator-active-color="#fff">
<swiper-item>
<image src="/static/images/banner_1.png" style="width: 100vw;height: 120rpx;"></image>
</swiper-item>
<swiper-item>
<image src="/static/images/banner_2.png" style="width: 100vw;height: 120rpx;"></image>
</swiper-item>
</swiper>
<view class="info-box">
<view class="info-title">项目信息</view>
<textarea value="{{projectName}}" bindinput="inputProjectName" class="info-value" placeholder="请输入系统全称(注:建议以'软件''平台''系统'等字眼结尾)" placeholder-style="font-size:14px;"></textarea>
<view class="info-btn" bind:tap="doCommendProjectName">推荐</view>
</view>
<view class="content-box">
<!-- 第一部分 -->
<view class="section">
<view class="item">
<text class="label">产权联系人</text>
<picker style="flex:1;" mode="selector" range="{{contactList}}" range-key="name" bindchange="doChangeContact">
<view style="display: flex;align-items: center;">
<view style="font-size: 14px;text-align: center;flex:1;color: #000000;">{{selectContact.name}}</view>
<view class="icon-arrow-down-line" style="width: 24rpx;height: 24rpx;margin-right: 20px;"></view>
</view>
</picker>
<view class="link" bind:tap="doCreateContact">新建</view>
</view>
<view class="item">
<view class="flex-1">
<text class="label" style="flex: 1;">系统版本</text>
<input class="value {{version != '' ? 'v-select':''}}" placeholder="v1.0" style="flex:1;" value="{{version}}" bindinput="inputVersion" />
</view>
<view class="flex-1">
<text class="label">系统语言</text>
<view class="value selection-box ml-20">
<view style="display: flex;align-items: center;">
<view class="language-sel {{selectLang != ''? 'v-select':''}}" bindtap="toggleOptions">{{selectLang}}</view>
<view class="icon-arrow-down-line" style="width: 28rpx;height: 28rpx;"></view>
</view>
</view>
</view>
</view>
<view class="item">
<view class="label">开发完成时间</view>
<picker mode="date" style="flex:1;" value="{{date}}" start="2010-01-01" end="2050-01-01" bindchange="bindDateChange">
<view class="select-time {{completeDate ==''? 'value-hint':''}}">{{completeDate != ''? completeDate:'请选择开发完成时间'}}</view>
</picker>
<view style="display: flex;flex-direction: row;">
<view wx:if="{{completeDate !=''}}" bind:tap="clearTime" class="icon-clear clear-icon"></view>
<view wx:if="{{completeDate==''}}" class="icon-calendar-ind" style="height: 32rpx;width: 32rpx;"></view>
</view>
</view>
</view>
<!-- 第二部分 -->
<view class="section">
<view wx:if="{{canSelPackage}}" class="item" style="justify-content: space-between;">
<text class="label">套餐包</text>
<text class="value {{!tools.isEmpty(selectPackage) ? 'v-select':''}}" style="flex: 1;text-align: right;" bind:tap="doShowPackage">{{selectPackage.packageName?selectPackage.packageName:'请选择套餐包'}}</text>
<text wx:if="{{!tools.isEmpty(selectPackage)}}" class="link" bind:tap="clearSelectPackageOrCoupons">取消</text>
</view>
<view wx:if="{{canSelCoupons}}" class="item">
<text class="label">优惠券</text>
<text bindtap="doShowCoupons" class="value {{!tools.isEmpty(selectCoupons)? 'v-select':''}}">{{selectCoupons.couponId? selectCoupons.coupon.title : '请选择优惠券'}}</text>
<text class="link" wx:if="{{!tools.isEmpty(selectCoupons)}}" bind:tap="clearSelectPackageOrCoupons">取消</text>
<text class="link" bindtap="doShowCoupons" wx:if="{{tools.isEmpty(selectCoupons)}}">选择</text>
</view>
</view>
</view>
</view>
<view class="bottom-box">
<view class="money">
<view>金额:<text class="price">{{price/100}}元</text></view>
<checkbox-group class="custom-checkbox" bindchange="doUrgent" wx:if="{{isShowUrgent}}">
<checkbox checked="{{isUrgent}}" class="custom-wx-checkbox" disabled="{{isUrgentDisable}}">
<tex style="color: #532A00;padding-left: 3rpx;font-weight: 400;">加急办理{{urgent/100}}元</tex>
</checkbox>
</checkbox-group>
</view>
<view class="btn" bind:tap="doCreateProject">保存并付款</view>
</view>
</view>
<mp-half-screen-dialog show="{{isShowContact}}">
<view slot="title">创建联系人</view>
<view slot="desc">
<view class="form-box">
<view class="form-item">
<view class="form-item-title">姓名</view>
<input adjust-position="{{true}}" cursor-spacing="{{50}}" value="{{contactName}}" placeholder="请输入姓名" class="form-item-content" bindinput="inputContactName" />
</view>
<view class="form-item">
<view class="form-item-title">联系电话</view>
<input adjust-position="{{true}}" cursor-spacing="{{50}}" value="{{contactPhone}}" placeholder="请输入联系电话" class="form-item-content" bindinput="inputContactPhone" />
</view>
<view class="form-item">
<view class="form-item-title no-after" style="padding-left: 16rpx;">联系邮箱</view>
<input adjust-position="{{true}}" cursor-spacing="{{50}}" value="{{contactEmail}}" placeholder="请输入联系邮箱" class="form-item-content" bindinput="inputContactEmail" />
</view>
<view class="form-item">
<view class="form-item-title no-after" style="padding-left: 16rpx;">公司</view>
<input adjust-position="{{true}}" cursor-spacing="{{50}}" value="{{contactCompany}}" placeholder="请输入公司名称" class="form-item-content" bindinput="inputContactCompany" />
</view>
</view>
</view>
<view slot="footer">
<button class="confirm-btn" bind:tap="doSaveContact">保存</button>
</view>
</mp-half-screen-dialog>
<!-- 推荐系统名称 -->
<mp-half-screen-dialog show="{{showCommendProject}}" maskClosable="{{false}}">
<view slot="title">推荐系统全称</view>
<view slot="desc">
<textarea bindinput="inputCommendProjectName" placeholder="请简单介绍您想创建的系统,我们会根据您的描述为您推荐系统全称" style="border: 1px solid #f2f2f2;width: 82vw;padding: 10px;height: 50px;"></textarea>
<!-- 推荐回来的列表 -->
<scroll-view scroll-y style="height: 300rpx;">
<view class="project-box">
<block wx:for="{{projectNameList}}" wx:key="index">
<view class="project-item" bind:tap="doSelectProjectName" data-value="{{item}}">{{item}}</view>
</block>
</view>
</scroll-view>
</view>
<view slot="footer">
<button class="confirm-btn" bind:tap="doCreateFullName">生成</button>
</view>
</mp-half-screen-dialog>
<!-- 优惠卷弹窗 -->
<mp-half-screen-dialog show="{{showCoupons}}">
<view slot="title">优惠卷</view>
<view slot="desc">
<scroll-view scroll-y style="height: 500rpx;">
<view class="coupons-list-box">
<radio-group>
<block wx:for="{{couponsList}}" wx:key="index">
<view class="tickets" bind:tap="selectCoupons" data-value="{{item}}">
<view class="l-tickets">
<view class="ticket-title">
<view style="display: flex;flex-direction: row;justify-content: center;align-items: center;">
<view class="coupons-icon" style="width: 24px;height: 24px;">
</view>
<text>优惠卷</text>
</view>
<view>减{{item.coupon.amount/100}}元</view>
</view>
<view class="ticket-content">{{item.coupon.title}}</view>
<view class="ticket-desc">有效期:{{item.coupon.useGmtStart}}至{{item.coupon.useGmtEnd}}</view>
</view>
<view class="r-tickets">
<radio class="custom-radio" style="margin-left: 5px;" checked="{{tempCoupons.couponId==item.couponId}}"></radio>
</view>
</view>
</block>
</radio-group>
</view>
</scroll-view>
</view>
<view slot="footer">
<button class="confirm-btn" style="margin-top: 10px;" bind:tap="confirmSelCoupons">确定</button>
</view>
</mp-half-screen-dialog>
<!-- 套餐包 -->
<mp-half-screen-dialog show="{{showPackage}}">
<view slot="title">套餐包</view>
<view slot="desc">
<scroll-view scroll-y style="height: 500rpx;">
<view class="coupons-list-box">
<radio-group>
<block wx:for="{{packageList}}" wx:key="index">
<view class="tickets" bind:tap="selectPackage" data-value="{{item}}">
<view class="l-tickets">
<view class="ticket-title">
<view>套餐包</view>
<view>剩余{{item.packageTotalSurplusCount}}件</view>
</view>
<view class="ticket-content">{{item.packageInfoAppDTO.packageName}}</view>
<view class="ticket-desc">{{item.packageInfoAppDTO.packageDescription}}</view>
</view>
<view class="r-tickets">
<radio class="custom-radio" style="margin-left: 5px;" checked="{{tempPackage.packageInfoId==item.packageInfoId}}"></radio>
</view>
</view>
</block>
</radio-group>
</view>
</scroll-view>
</view>
<view slot="footer">
<button class="confirm-btn" style="margin-top: 10px;" bind:tap="confirmSelectPackage">确定</button>
</view>
</mp-half-screen-dialog>
<mp-half-screen-dialog show="{{showLang}}">
<view slot="title">系统语言</view>
<view slot="desc">
<view class="coupons-list-box">
<radio-group style="display: flex;flex-direction: column;" bindchange="changeLang">
<block wx:for="{{langList}}" wx:key="index">
<radio class="custom-radio" style="margin-top: 10px;width: 100vw;" checked="{{selectLang==item}}" value="{{item}}">
<view>{{item}}</view>
</radio>
</block>
</radio-group>
</view>
</view>
<view slot="footer">
<button class="confirm-btn" style="margin-top: 10px;" bind:tap="confirmSelectLang">确定</button>
</view>
</mp-half-screen-dialog>
<mp-toptips msg="{{errorHint}}" type="error" show="{{showError}}"></mp-toptips>
<mp-toptips msg="{{successHint}}" delay="2000" type="success" show="{{showSuccess}}"></mp-toptips>
<wxs src="../../../utils/comm.wxs" module="tools"></wxs>