v1.0发布
This commit is contained in:
parent
b4ffd70e35
commit
25816b0373
4
app.json
4
app.json
@ -1,5 +1,6 @@
|
||||
{
|
||||
"pages": [
|
||||
"pages/mainPage/mainPage",
|
||||
"pages/login/login",
|
||||
"pages/index/index",
|
||||
"pages/mine/mineIndex/mine",
|
||||
@ -25,8 +26,7 @@
|
||||
"custom": true,
|
||||
"color": "#515151",
|
||||
"selectedColor": "#FE9944",
|
||||
"list": [
|
||||
{
|
||||
"list": [{
|
||||
"pagePath": "pages/index/index",
|
||||
"text": "首页",
|
||||
"iconPath": "/static/images/ic_home_normal.png",
|
||||
|
30
app.wxss
30
app.wxss
@ -155,3 +155,33 @@ page {
|
||||
-webkit-line-clamp: 3;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.size-16 {
|
||||
height: 16rpx;
|
||||
height: 16rpx;
|
||||
}
|
||||
|
||||
.size-32 {
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
}
|
||||
|
||||
.size-48 {
|
||||
width: 48rpx;
|
||||
height: 48rpx;
|
||||
}
|
||||
|
||||
.size-48-128 {
|
||||
width: 128rpx;
|
||||
height: 48rpx;
|
||||
}
|
||||
|
||||
.size-64 {
|
||||
width: 64rpx;
|
||||
height: 64rpx;
|
||||
}
|
||||
|
||||
.size-128 {
|
||||
width: 128rpx;
|
||||
height: 128rpx;
|
||||
}
|
@ -37,6 +37,9 @@ Component({
|
||||
notifyParentToRefresh() {
|
||||
// 触发自定义事件 'parentRefresh',并可以传递数据(这里传递一个空对象)
|
||||
this.triggerEvent('refresh', {});
|
||||
},
|
||||
notifyParentCreate() {
|
||||
this.triggerEvent('create', {})
|
||||
}
|
||||
}
|
||||
})
|
@ -8,6 +8,10 @@
|
||||
<image src="/static/images/load_err.png" class="loading_err"></image>
|
||||
<text style="align-self: center;margin-top: 10px;color: #cecece;font-size: 14px;">暂无数据,点击刷新</text>
|
||||
</view>
|
||||
<view wx:elif="{{loadingVisible=='create'}}" class="error-box" bind:tap="notifyParentCreate">
|
||||
<image src="/static/images/load_err.png" class="loading_err"></image>
|
||||
<text style="align-self: center;margin-top: 10px;color: #cecece;font-size: 14px;">点击去创建项目</text>
|
||||
</view>
|
||||
<block wx:else="{{loadingVisible=='success'}}">
|
||||
<slot></slot>
|
||||
</block>
|
||||
|
@ -17,8 +17,13 @@ const apiPath = {
|
||||
proLangList: '/api/env/custom/list-active-lang', //项目语言
|
||||
ruleData: '/app/agreementportal/getrelease/{id}', //使用规则 project="operator"
|
||||
investDetail: "/news-content/listpage?rows=1&page=1", //投资优势
|
||||
mainProCount: '/api/env/custom/get-proj-counts', //首页介绍数量
|
||||
}
|
||||
class ProjectService {
|
||||
//首页介绍数量
|
||||
static doGetMainProCount() {
|
||||
return request(apiPath.mainProCount, 'GET')
|
||||
}
|
||||
//项目列表
|
||||
static doGetSelfProjectList(data) {
|
||||
return request(apiPath.getSelfProjectList, 'GET', data)
|
||||
|
@ -285,6 +285,11 @@ Page({
|
||||
console.log(err)
|
||||
})
|
||||
},
|
||||
doOpenCreate() {
|
||||
wx.navigateTo({
|
||||
url: '/pages/copyright/createBuy/createBuy',
|
||||
})
|
||||
},
|
||||
//获取项目列表
|
||||
doGetSelfList(params, isRefresh) {
|
||||
const _self = this
|
||||
@ -295,7 +300,7 @@ Page({
|
||||
.then(res => {
|
||||
console.log(res)
|
||||
var status = 'success'
|
||||
status = res.rows && res.rows.length > 0 ? 'success' : 'empty'
|
||||
status = res.rows && res.rows.length > 0 ? 'success' : 'create'
|
||||
const list = _self.addPrefixToPreviewImgs(res.rows)
|
||||
_self.setData({
|
||||
listLoading: isRefresh ? status : '',
|
||||
|
@ -57,7 +57,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="content-box" style="height:{{contentHeight}}rpx;">
|
||||
<container-loading loadingState="{{listLoading}}" style="height:{{contentHeight}}rpx;" bindrefresh="doRefreshList">
|
||||
<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">
|
||||
|
56
pages/mainPage/mainPage.js
Normal file
56
pages/mainPage/mainPage.js
Normal file
@ -0,0 +1,56 @@
|
||||
// pages/mainPage/mainPage.js
|
||||
import ProApi from '../../net/api/projectApi';
|
||||
const screenInfo = wx.getWindowInfo();
|
||||
const statusBarHeight = screenInfo.statusBarHeight; // 状态栏高度
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
statusBarHeight: statusBarHeight,
|
||||
recommendList: [{
|
||||
id: '1',
|
||||
content: '生成真实系统 | 可下载安装包'
|
||||
},
|
||||
{
|
||||
id: '2',
|
||||
content: '提供材料撰写 | 提供一键导出'
|
||||
},
|
||||
{
|
||||
id: '2',
|
||||
content: '不下证书就退款 | 免费补正也退款'
|
||||
},
|
||||
{
|
||||
id: '2',
|
||||
content: '全托管包下证 | 也可自行申报'
|
||||
}
|
||||
],
|
||||
docCount: 0,
|
||||
cerCount: 0,
|
||||
recommendDesc: ''
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
this.getMainProCount()
|
||||
},
|
||||
getMainProCount() {
|
||||
ProApi.doGetMainProCount()
|
||||
.then(res => {
|
||||
this.setData({
|
||||
recommendDesc: `AI喵著网累计辅助编写资料<span style="font-size:20px;"> ${res.data[0]} </span>万套,通过平台代办下发证书<span style="font-size:20px;"> ${res.data[1]} </span>万件`
|
||||
})
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err)
|
||||
})
|
||||
},
|
||||
openLogin() {
|
||||
wx.navigateTo({
|
||||
url: '/pages/login/login',
|
||||
})
|
||||
}
|
||||
})
|
4
pages/mainPage/mainPage.json
Normal file
4
pages/mainPage/mainPage.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"navigationStyle": "custom"
|
||||
}
|
157
pages/mainPage/mainPage.wxml
Normal file
157
pages/mainPage/mainPage.wxml
Normal file
@ -0,0 +1,157 @@
|
||||
<view class="page-container">
|
||||
<view class="page-container-img"></view>
|
||||
<!-- 标题图标 -->
|
||||
<view class="main-logo size-48-128" style="margin-top:{{statusBarHeight}}px;"></view>
|
||||
<!-- 文字介绍 -->
|
||||
<view class="main-txt-recommend">
|
||||
<view class="main-recommend-title">不止</view>
|
||||
<swiper class="main-recommend-container" vertical="{{true}}" autoplay="{{true}}" circular="{{true}}" interval="{{2000}}">
|
||||
<block wx:for="{{recommendList}}" wx:key="index">
|
||||
<swiper-item>
|
||||
<view class="main-recommend-content">{{item.content}}</view>
|
||||
</swiper-item>
|
||||
</block>
|
||||
</swiper>
|
||||
<view class="main-recommend-desc">
|
||||
<rich-text nodes="{{recommendDesc}}"></rich-text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="buy-all-container">
|
||||
<view class="buy-all-box">
|
||||
<view class="buy-all-title">
|
||||
<view class="buy-all-txt">
|
||||
<text class="txt-title">全托管</text>
|
||||
<text class="money">¥180~280</text>
|
||||
</view>
|
||||
<view class="buy-all-btn" bind:tap="openLogin" data-type="ALL">购买</view>
|
||||
</view>
|
||||
<view class="pd-20">
|
||||
<view class="buy-desc-box mt-10">
|
||||
<view class="buy-desc-txt">从下单到取证,仅需提供基本信息,我们为您提供一站式管家服务.</view>
|
||||
<view class="mt-10" style="font-size: 25rpx;">提供的服务</view>
|
||||
<view class="buy-desc-item mt-10">
|
||||
<view class="buy-desc-row">
|
||||
<image src="/static/images/ic_check_fit.png" class="buy-desc-row-icon"></image>
|
||||
<text class="txt">包可运行软件开发与搭建</text>
|
||||
</view>
|
||||
<view class="buy-desc-row">
|
||||
<image src="/static/images/ic_check_fit.png" class="buy-desc-row-icon"></image>
|
||||
<text class="txt">包鉴别材料撰写</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="buy-desc-item mt-10">
|
||||
<view class="buy-desc-row">
|
||||
<image src="/static/images/ic_check_fit.png" class="buy-desc-row-icon"></image>
|
||||
<text class="txt">包代办,包下证,包开发票提</text>
|
||||
</view>
|
||||
<view class="buy-desc-row">
|
||||
<image src="/static/images/ic_check_fit.png" class="buy-desc-row-icon"></image>
|
||||
<text class="txt">供可运行软件安装包</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="buy-desc-item mt-10">
|
||||
<view class="buy-desc-row">
|
||||
<image src="/static/images/ic_check_fit.png" class="buy-desc-row-icon"></image>
|
||||
<text class="txt">提供可运行软件云服务900天</text>
|
||||
</view>
|
||||
<view class="buy-desc-row">
|
||||
<image src="/static/images/ic_check_fit.png" class="buy-desc-row-icon"></image>
|
||||
<text class="txt">提供可运行软件演示视频</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="buy-desc-item mt-10">
|
||||
<view class="buy-desc-row">
|
||||
<image src="/static/images/ic_check_fit.png" class="buy-desc-row-icon"></image>
|
||||
<text class="txt">客服一对一服务</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="mt-10">
|
||||
<text style="font-size:25rpx;">使用流程</text>
|
||||
<view class="buy-desc-column mt-10 list">
|
||||
<view class="buy-desc-row-no-margin list-item">
|
||||
<text class="txt-hor">填写系统名称</text>
|
||||
</view>
|
||||
<view class="buy-desc-row-no-margin list-item">
|
||||
<text class="txt-hor">填写基本信息</text>
|
||||
</view>
|
||||
<view class="buy-desc-row-no-margin list-item">
|
||||
<text class="txt-hor">接收证书</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 写材料 -->
|
||||
<view class="buy-all-box">
|
||||
<view class="buy-all-title">
|
||||
<view class="buy-all-txt">
|
||||
<text class="txt-title">写材料</text>
|
||||
<text class="money">¥30~80</text>
|
||||
</view>
|
||||
<view class="buy-all-btn" bind:tap="openLogin" data-type="MATERIAL">购买</view>
|
||||
</view>
|
||||
<view class="pd-20">
|
||||
<view class="buy-desc-box">
|
||||
<view class="buy-desc-txt mt-10">通过平台自己搭建可运行软件后由平台自动生成相关鉴别材料,下载鉴别材料后可自行申报或找相关代理机构申报.</view>
|
||||
<view class="mt-10" style="font-size: 25rpx;">提供的服务</view>
|
||||
<view class="buy-desc-item mt-10">
|
||||
<view class="buy-desc-row">
|
||||
<image src="/static/images/ic_check_fit.png" class="buy-desc-row-icon"></image>
|
||||
<text class="txt">通过平台自己搭建可运行软件</text>
|
||||
</view>
|
||||
<view class="buy-desc-row">
|
||||
<image src="/static/images/ic_check_fit.png" class="buy-desc-row-icon"></image>
|
||||
<text class="txt">平台自动撰写鉴别材料</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="buy-desc-item mt-10">
|
||||
<view class="buy-desc-row">
|
||||
<image src="/static/images/ic_check_fit.png" class="buy-desc-row-icon"></image>
|
||||
<text class="txt">包补正材料撰写一直到下证</text>
|
||||
</view>
|
||||
<view class="buy-desc-row">
|
||||
<image src="/static/images/ic_check_fit.png" class="buy-desc-row-icon"></image>
|
||||
<text class="txt">两次补正不通过平台退款</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="buy-desc-item mt-10">
|
||||
<view class="buy-desc-row">
|
||||
<image src="/static/images/ic_check_fit.png" class="buy-desc-row-icon"></image>
|
||||
<text class="txt">包开发票</text>
|
||||
</view>
|
||||
<view class="buy-desc-row">
|
||||
<image src="/static/images/ic_check_fit.png" class="buy-desc-row-icon"></image>
|
||||
<text class="txt">提供可运行软件云服务300天</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="buy-desc-item mt-10">
|
||||
<view class="buy-desc-row">
|
||||
<image src="/static/images/ic_check_fit.png" class="buy-desc-row-icon"></image>
|
||||
<text class="txt">客服一对一服务</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="mt-10">
|
||||
<text style="font-size: 25rpx;">使用流程</text>
|
||||
<view style="display: flex;flex-direction: column;">
|
||||
<view class="buy-desc-row-no-margin mt-10">
|
||||
<image src="/static/images/ic_check_fit.png" class="buy-desc-row-icon"></image>
|
||||
<text class="single-txt">按系统操作流程执行</text>
|
||||
</view>
|
||||
<view class="buy-desc-row-no-margin mt-10">
|
||||
<image src="/static/images/ic_check_fit.png" class="buy-desc-row-icon"></image>
|
||||
<text class="single-txt ">如需视频文件和安装包请在下证后购买下载</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="main-btn" bind:tap="openLogin">去登录</view>
|
||||
<!-- <view class="main-footer">
|
||||
<view>客服中心</view>
|
||||
<view>关于我们</view>
|
||||
<view>400-086-1633</view>
|
||||
</view> -->
|
||||
</view>
|
314
pages/mainPage/mainPage.wxss
Normal file
314
pages/mainPage/mainPage.wxss
Normal file
File diff suppressed because one or more lines are too long
BIN
static/images/mian_bg.png
Normal file
BIN
static/images/mian_bg.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 84 KiB |
Loading…
Reference in New Issue
Block a user