ts_aimz/pages/index/index.wxml
2025-04-27 18:07:06 +08:00

166 lines
11 KiB
Plaintext

<view style="position: relative;display: flex;flex-direction: column;">
<view class="bg-title" style="position: absolute;height: 500rpx;width: 100vw;"></view>
<view style="position: relative;top:0;left:0;">
<view class="title-box" id="title-box">
<view class="custom-navbar" style="height: {{totalHeight}}px; padding-top: {{statusBarHeight}}px;justify-content: flex-start;color: white;">
<view class="navbar-title">AI喵著</view>
</view>
<view>
<view class="title-func">
<view class="create-btn" bind:tap="createCopy">
<view class="icon-add" style="width: 40rpx;height: 40rpx;"></view>
<text style="margin-left: 46rpx;text-align: center;font-size: 40rpx;">创建软著</text>
</view>
<view class="buy-btn" bind:tap="goPayment">充值</view>
</view>
<view class="notice-box">
<view class="icon icon-horn-ind"></view>
<view class="marquee-container">
<view class="marquee-text">{{noticeContent}}</view>
</view>
</view>
</view>
<view id="tab-box" class="container-title">
<view class="container-box">
<view class="list-title-box">
<view class="list-title-txt">
<view class="title-line"></view>
<view style="margin-left: 12rpx;">软著列表</view>
</view>
<view class="list-title-btns">
<view bind:tap="doChangeStatus" data-value="PROCESSING" class="{{currentStatus=='PROCESSING'? 'btn-select':'btn-normal'}} border-left">进行中的</view>
<view bind:tap="doChangeStatus" data-value="COMPLETE" class="{{currentStatus=='COMPLETE'? 'btn-select':'btn-normal'}} border-right">已完成的</view>
</view>
</view>
<scroll-view scroll-x="{{true}}" class="mt-20">
<view class="list-tabs">
<block wx:for="{{typeList}}" wx:key="index">
<view class="{{currentType==item.value? 'tab-select' :'tab-normal'}} item-margin" bind:tap="doChangeType" data-value="{{item.value}}">
<text>{{item.label}}</text>
</view>
</block>
<view class="divider-h"></view>
<block wx:for="{{expandList}}" wx:key="index">
<view class="{{currentExpand==item.value? 'tab-select' :'tab-normal'}} item-margin" bind:tap="doChangeExpand" data-value="{{item.value}}">
<text>{{item.label}}</text>
</view>
</block>
<view class="divider-h"></view>
<block wx:for="{{tagList}}" wx:key="index">
<view class="{{currentTag==item.key? 'tab-select' :'tab-normal'}} item-margin" bind:tap="doChangeTag" data-value="{{item.key}}">
<text>{{item.value}}</text>
</view>
</block>
</view>
</scroll-view>
</view>
</view>
</view>
<view class="content-box" style="height:{{contentHeight}}rpx;">
<container-loading loadingState="{{listLoading}}" style="height:{{contentHeight}}rpx;" bindrefresh="doRefreshList" bindcreate="doOpenCreate">
<scroll-view scroll-y="{{true}}" style="height: {{contentHeight}}rpx;" bindrefresherrefresh="doRefreshList" refresher-enabled refresher-triggered="{{listRefreshTrig}}" bindscrolltolower="doLoadMore" lower-threshold='30'>
<view class="list-content">
<block wx:for="{{projectList}}" wx:key="index">
<view class="list-item">
<view class="item-img">
<swiper class="cover" autoplay>
<block wx:for="{{item.codeTypePage.previewImgs}}" wx:for-item="imgItem" wx:for-index="imgIndex" wx:key="imgIndex">
<swiper-item class="cover">
<image class="cover" mode="scaleToFill" src="{{imgItem}}"></image>
</swiper-item>
</block>
</swiper>
<view class="item-img-status {{tools.statusColor(item.generate.generateStatus,item.aiSetting.settingStatus)}}">
<text>{{tools.status(item.generate.generateStatus,item.aiSetting.settingStatus)}}</text>
</view>
</view>
<view class="item-content">
<view class="item-content-title">
<view class="project-name single-line">{{item.projName}}</view>
<view class="project-status">{{item.pay.servicePackageId != '' ? '套餐包':'¥'+(item.pay.payment/100)}}</view>
</view>
<view class="project-aff">
<view class="icon icon-user-ind"></view>
<text class="txt">{{item.apply.applyContactName}}</text>
</view>
<view class="project-btns">
<view class="project-create-time">{{item.gmtCreate}}</view>
<view wx:if="{{item.generate.generateStatus=='SUCCESS'}}" class="project-btn" bind:tap="doShowDownload" data-value="{{item}}">下载</view>
<view wx:if="{{item.generate.generateStatus=='FAILED'}}" class="project-re-btn" bind:tap="doReCreate" data-value="{{item}}">重新生成</view>
<view wx:if="{{item.isShowCreate}}" class="project-btn" bind:tap="doCreatePro" data-value="{{item}}">生成</view>
</view>
</view>
</view>
</block>
<mp-loading show="{{isLoadMore}}" type="circle"></mp-loading>
</view>
</scroll-view>
</container-loading>
</view>
</view>
</view>
<custom-tabbar tabList="{{tabList}}" color="{{color}}" selectedColor="{{selectedColor}}"></custom-tabbar>
<mp-half-screen-dialog show="{{showDownload}}" ext-class="custom-dialog">
<view slot="title" style="font-size: 16px;font-weight: bold;">资料下载</view>
<view slot="desc" style="margin-top: 10px;">
<view class="download-desc">
<view class="link-title">项目预览链接</view>
<text class="link" bind:tap="copyLink" data-value="{{sysPreviewUrl}}" selectable="true">{{sysPreviewUrl}}</text>
</view>
<view class="download-item">
<view class="download-title">
<view class="icon-table"></view>
<view class="download-title-txt">申请表</view>
</view>
<view class="download-btn-box">
<view class="download-btn" bind:tap="download" data-path="/route/proj/download/apply/">
<view class="ic-doc" style="width: 20px;height: 20px;"></view>
<view class="download-btn-txt">Word格式下载</view>
</view>
<view class="download-btn" bind:tap="download" data-path="/route/proj/download/apply-txt/">
<view class="ic-txt" style="width: 20px;height: 20px;"></view>
<view class="download-btn-txt">TXT格式下载</view>
</view>
</view>
</view>
<view class="download-item">
<view class="download-title">
<view class="icon-source"></view>
<view class="download-title-txt">操作手册</view>
</view>
<view class="download-btn-box">
<view class="download-btn" bind:tap="download" data-path="/route/proj/download/manual/">
<view class="ic-doc" style="width: 20px;height: 20px;"></view>
<view class="download-btn-txt">Word格式下载</view>
</view>
<view class="download-btn" bind:tap="download" data-path="/route/proj/download/manual/pdf/">
<view class="ic-pdf" style="width: 20px;height: 20px;"></view>
<view class="download-btn-txt">PDF格式下载</view>
</view>
</view>
</view>
<view class="download-item">
<view class="download-title">
<view class="icon-tool"></view>
<view class="download-title-txt">源代码</view>
</view>
<view class="download-btn-box">
<view class="download-btn" bind:tap="download" data-path="/route/proj/download/code/">
<view class="ic-doc" style="width: 20px;height: 20px;"></view>
<view class="download-btn-txt">Word格式下载</view>
</view>
<view class="download-btn" bind:tap="download" data-path="/route/proj/download/code/pdf/">
<view class="ic-pdf" style="width: 20px;height: 20px;"></view>
<view class="download-btn-txt">PDF格式下载</view>
</view>
</view>
</view>
<view class="hint mt-10">温馨提示:若您想把下载的文件留存到本地,打开预览页面后,在界面右上角操作栏内,选择使用其他软件打开或者保存文件功能就能实现。</view>
</view>
</mp-half-screen-dialog>
<down-progress isShow="{{downloading}}" progress="{{downloadProgress}}"></down-progress>
<mp-toptips ext-class="custom-tips" msg="{{errorHint}}" type="error" show="{{showError}}"></mp-toptips>
<mp-toptips ext-class="custom-tips" msg="{{successHint}}" delay="2000" type="success" show="{{showSuccess}}"></mp-toptips>
<ad-popup couponsList="{{tempCoupons}}" bindclose="doCloseAd" bindfurl="doFurlCoupons" visible="{{showAd}}"></ad-popup>
<wxs src="../../utils/comm.wxs" module="tools"></wxs>