Commit 1924a1f3 by 胡悦

提交AI集市

1 parent 7257ef82
...@@ -245,5 +245,13 @@ module.exports = { ...@@ -245,5 +245,13 @@ module.exports = {
projectName: 'pad', projectName: 'pad',
...data ...data
}) })
},
// 获取ai智能体入口
getAiagentList(data) {
return http.post({
method: 'dj.pad.api.aiagent.get.entry.list',
projectName: 'pad',
...data
})
} }
} }

2.31 MB | W: | H:

2.42 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
<template>
<view class="ai-box">
<view class="ai-welcome">
<view class="sprite-icon icon-ai-bazaar"></view>
<view class="welcome-title">欢迎使用广联AI集市</view>
</view>
<view class="ai-content">
<view class="list-box">
<view class="list-title">人力行政</view>
<view class="item-box">
<view class="item">
<view class="text">驻店管理制度</view>
<image
class="item-img"
src="https://img02.glsx.com.cn/weapp/resource/saas/ai/system.png"
mode="scaleToFill"
/>
</view>
</view>
</view>
</view>
</view>
</template>
<script type="text/ecmascript-6">
export default {
name: 'AIBazaar',
data () {
return {}
},
mounted() {
this.getAiagentList()
},
methods: {
async getAiagentList() {
const {phone} = uni.$storage.get("userInfo")
const params = {
ownerShipType: 1, // 驻店
accountPhone: phone
}
const res = await uni.$api.commonApi.getAiagentList(params)
}
}
}
</script>
<style scoped lang="scss">
.ai-box {
box-sizing: border-box;
height: calc(100vh - #{toRpx(160)});
overflow: hidden;
background-color: rgba(255, 255, 255, 0.35);
box-shadow: inset 0 0 16px 0 rgb(255, 255, 255);
margin-top: toRpx(80);
margin-right: toRpx(66);
border-radius: toRpx(48);
.ai-welcome {
display: flex;
flex-direction: column;
align-items: center;
margin-top: toRpx(120);
.welcome-title {
margin-top: toRpx(48);
font-size: toRpx(48);
font-weight: 500;
background: linear-gradient(90deg, #369EFF, #2C66F7);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
}
.ai-content {
margin: toRpx(64) toRpx(64);
}
.list-box {
border-radius: toRpx(16);
background-color: #fff;
padding: toRpx(48);
.list-title {
position: relative;
margin-left: toRpx(24);
font-size: toRpx(32);
font-weight: 500;
color: #333;
&::before {
content: '';
display: inline-block;
position: absolute;
top: 50%;
left: toRpx(-24);
transform: translateY(-50%);
width: toRpx(8);
height: toRpx(36);
background: linear-gradient(158deg, #4FACFE, #00F2FE);
border-radius: 0 toRpx(8) toRpx(8) 0;
}
}
.item-box {
display: flex;
margin-top: toRpx(40);
.item {
display: inline-flex;
align-items: center;
font-size: toRpx(30);
color: #333;
border-radius: toRpx(16);
box-shadow: 0 toRpx(8) toRpx(24) 0 #2c66f71a;
padding: toRpx(16) toRpx(32);
.text {
width: toRpx(160);
}
&-img {
width: toRpx(96);
height: toRpx(96);
// margin-left: toRpx(20);
}
}
}
}
}
</style>
...@@ -53,6 +53,11 @@ export default { ...@@ -53,6 +53,11 @@ export default {
name: 'HomeSlot' name: 'HomeSlot'
}, },
{ {
label: "AI集市",
icon: "ai",
name: 'AIBazaar'
},
{
label: "接待记录", label: "接待记录",
icon: "record", icon: "record",
name: 'RecordList' name: 'RecordList'
......
...@@ -59,6 +59,7 @@ ...@@ -59,6 +59,7 @@
</template> </template>
<script> <script>
import RecordList from './components/RecordList.vue' import RecordList from './components/RecordList.vue'
import AIBazaar from './components/AIBazaar.vue'
// import myClick from '@/mixin/click' // import myClick from '@/mixin/click'
import timeout from '@/mixin/timeout' import timeout from '@/mixin/timeout'
import recorder from '@/mixin/record/recorder' import recorder from '@/mixin/record/recorder'
...@@ -80,7 +81,7 @@ import merge from '@/mixin/record/merge.js' ...@@ -80,7 +81,7 @@ import merge from '@/mixin/record/merge.js'
import MessageDetail from './components/Message/MessageDetail.vue' import MessageDetail from './components/Message/MessageDetail.vue'
export default { export default {
mixins: [recorder, uploader, timeout, versionCheck, merge], mixins: [recorder, uploader, timeout, versionCheck, merge],
components: { RecordList, CustomerFile, LeftSide, Point, dayPoint, rulePoint, Course, Ranking, LevelPoint, Calendar, Promotion, History, LevelMedal, MessageDetail }, components: { RecordList, AIBazaar, CustomerFile, LeftSide, Point, dayPoint, rulePoint, Course, Ranking, LevelPoint, Calendar, Promotion, History, LevelMedal, MessageDetail },
props: { props: {
id: [String, Number], id: [String, Number],
finishDoneText: String, finishDoneText: String,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!