<template>
|
<view>
|
<view class="margin-top-xl">
|
<view v-if="config.site_title" class="flex align-center justify-center flex-direction padding margin-top-lg">
|
<image v-if="config.site_title" :src="main_model.icon ? `http://ai.shsening.com${main_model.icon}` : ''" mode="aspectFill"
|
style="background-color: #f4f5f6;width: 160rpx;height: 160rpx;" class="round"></image>
|
<view class="text-bold text-xxl text-cyan padding-tb"> {{ main_model.title ? main_model.title : '专业版' }} </view>
|
<view style="width: calc(100vw - 60rpx);" class="padding-bottom" v-if="config.home_notice">
|
<u-notice-bar :text="config.home_notice" mode="closable"></u-notice-bar>
|
</view>
|
<view class="cu-card bg-gradual-blue padding radius text-lg"
|
style="line-height: 1.5;text-align: justify;">
|
{{ main_model.description ? main_model.description : '你好,欢迎体验智财小屋!我是人工智能胖大海,并经过至今最新的财税法律方面专门训练,因此我可以回答你在财税领域所有的问题,如您有使用问题,可以查阅个人中心-使用指南!' }}
|
</view>
|
</view>
|
</view>
|
<view class="flex justify-center align-center flex-direction">
|
<button @click="toChat" style="width: calc(100vw - 60rpx); height: 100rpx;" class="cu-btn lines-cyan text-bold round">
|
开始咨询 (余{{num}}次) </button>
|
</view>
|
<!-- <text>{{ main_model.icon ? `http://ai.shsening.com${main_model.icon}` : '' }}</text> -->
|
<!-- <view class="flex justify-center align-center flex-direction padding-top">
|
<button @click="toTax" style="width: 650rpx;height: 100rpx;" class="cu-btn lines-orange text-bold round">
|
胖智达(智税咨询) </button>
|
</view> -->
|
<view class="tool padding-top-xl">
|
<view class="header">
|
<view class="title text-bold">功能特性</view>
|
</view>
|
<u-transition :show="true" mode="slide-up">
|
<view class="grid">
|
<view class="item">
|
<view class="icon">
|
<u-icon size="28"
|
name="https://img.alicdn.com/imgextra/i1/2064565174/O1CN01v7Y9311o5k2r5Rwaq_!!2064565174.png">
|
</u-icon>
|
</view>
|
<view class="title">AI回答</view>
|
<view class="desc">浩繁法条直取答案</view>
|
</view>
|
<view class="item">
|
<view class="icon">
|
<u-icon size="28"
|
name="https://img.alicdn.com/imgextra/i1/2064565174/O1CN01H200mY1o5k2ythU1B_!!2064565174.png">
|
</u-icon>
|
</view>
|
<view class="title">智能答案</view>
|
<view class="desc">免去千篇一律</view>
|
</view>
|
<view class="item">
|
<view class="icon">
|
<u-icon size="28"
|
name="https://img.alicdn.com/imgextra/i1/2064565174/O1CN01FDSoxG1o5k2xjTHUD_!!2064565174.png">
|
</u-icon>
|
</view>
|
<view class="title">精准定位</view>
|
<view class="desc">免去繁琐搜索</view>
|
</view>
|
<view class="item">
|
<view class="icon">
|
<u-icon size="28"
|
name="https://img.alicdn.com/imgextra/i4/2064565174/O1CN01UP4ksa1o5k2rDpdOP_!!2064565174.png">
|
</u-icon>
|
</view>
|
<view class="title">引导提示</view>
|
<view class="desc">AI发散思维</view>
|
</view>
|
<view class="item">
|
<view class="icon">
|
<u-icon size="28"
|
name="https://img.alicdn.com/imgextra/i2/2064565174/O1CN01Oep4C01o5k2zlWs2q_!!2064565174.png">
|
</u-icon>
|
</view>
|
<view class="title">安全限制</view>
|
<view class="desc">道德逻辑自洽</view>
|
</view>
|
<view class="item">
|
<view class="icon">
|
<u-icon size="28"
|
name="https://img.alicdn.com/imgextra/i1/2064565174/O1CN01onUFC01o5k2uPHOqj_!!2064565174.png">
|
</u-icon>
|
</view>
|
<view class="title">在线工具</view>
|
<view class="desc">无需下载软件</view>
|
</view>
|
</view>
|
</u-transition>
|
</view>
|
<view class="padding-tb" v-if="config.copyright">
|
<u-loadmore :line="true" status="loadmore" :loadmoreText="config.copyright" color="#909399"></u-loadmore>
|
</view>
|
<m-tabbar v-if="showTab" fixed fill :current="tabIndex" :tabbar="tabbar"></m-tabbar>
|
</view>
|
</template>
|
|
<script>
|
import {
|
mapState
|
} from 'vuex';
|
import mixin from "@/mixin/checkLoaded";
|
export default {
|
mixins: [mixin],
|
data() {
|
return {
|
showTab: false,
|
tabIndex: 0,
|
setting_data:'null'
|
}
|
},
|
computed: {
|
...mapState(['config', 'num', 'userInfo', 'token', 'main_model', 'tabbar'])
|
},
|
onLoad(op) {
|
this.getTabIndex()
|
// #ifdef MP-WEIXIN || MP-JD
|
uni.hideHomeButton()
|
// #endif
|
},
|
onShareAppMessage() {
|
console.log('转发+1')
|
},
|
methods: {
|
getTabIndex() {
|
let list = this.tabbar.list;
|
for (var i = 0; i < list.length; i++) {
|
if (list[i].pagePath == '/pages/index/home') {
|
this.tabIndex = i
|
this.showTab = true
|
}
|
}
|
},
|
toChat() {
|
uni.navigateTo({
|
url: "./index?model=" + JSON.stringify(this.main_model)
|
})
|
},
|
toTax() {
|
uni.showModal({
|
content: "待开放,模型训练中..."
|
})
|
}
|
}
|
}
|
</script>
|
<style>
|
/*每个页面公共css */
|
@import url("@/static/style/color-ui.css");
|
</style>
|
|
<style lang="scss">
|
.tool {
|
width: calc(100vw - 60rpx);
|
margin: 15rpx auto;
|
|
.header {
|
.title {
|
margin-bottom: 30rpx;
|
}
|
}
|
|
.grid {
|
display: flex;
|
flex-direction: row;
|
flex-wrap: wrap;
|
justify-content: space-between;
|
|
.item {
|
width: calc(calc(100vw - 60rpx - 30rpx) / 3);
|
display: flex;
|
flex-direction: column;
|
align-items: center;
|
background-color: #30324f;
|
margin: 12rpx 0rpx;
|
padding: 30rpx 0rpx;
|
border-radius: 10rpx;
|
|
.title {
|
color: #fff;
|
font-size: 28rpx;
|
margin-top: 15rpx;
|
}
|
|
.desc {
|
color: #93949d;
|
font-size: 24rpx;
|
}
|
}
|
}
|
}
|
</style>
|