app
wangxia 5 months ago
parent 52cb02d9b5
commit eaae6306a7

@ -1,6 +1,6 @@
<template> <template>
<div class="p-root-detail-user g_w_all g_bg_page g_kuaishou"> <div class="p-root-detail-user g_w_all g_bg_page g_kuaishou">
<u-navbar backIconColor="#333" :borderBottom="false" immersive="true" :customBack="goHome" :background="{background:navColor}" backIconName="home"></u-navbar> <u-navbar backIconColor="#333" :borderBottom="false" :immersive="true" :customBack="goHome" :background="{background:navColor}" backIconName="home"></u-navbar>
<view class="g_h_136 u-navbar-fixed" style="background-color: #48aaf9 !important"></view> <view class="g_h_136 u-navbar-fixed" style="background-color: #48aaf9 !important"></view>
<div class style="background-color: #48aaf9 !important"> <div class style="background-color: #48aaf9 !important">
<view class="m-info g_p_20 g_pt_12 g_pb_0 g_bg_f g_position_rela" hover-class="none" style="margin-top: 0;border-radius:8px 8px 0 0 "> <view class="m-info g_p_20 g_pt_12 g_pb_0 g_bg_f g_position_rela" hover-class="none" style="margin-top: 0;border-radius:8px 8px 0 0 ">

@ -102,7 +102,7 @@ export default {
that.timer = setInterval(() => { that.timer = setInterval(() => {
that.defaultPercent = that.defaultPercent < 15 ? (that.defaultPercent = 15) : that.defaultPercent + 1 that.defaultPercent = that.defaultPercent < 15 ? (that.defaultPercent = 15) : that.defaultPercent + 1
console.log('12313123123123123') // console.log('12313123123123123')
if (that.defaultPercent >= 99) { if (that.defaultPercent >= 99) {
clearInterval(that.timer) clearInterval(that.timer)
} }
@ -111,7 +111,7 @@ export default {
console.log('5687678678678678678') console.log('5687678678678678678')
that.ailoading = false that.ailoading = false
clearInterval(that.timer) clearInterval(that.timer)
setLoading() // setLoading()
}, 30000) }, 30000)
this.appCoze() this.appCoze()
}, },
@ -126,17 +126,19 @@ export default {
url: 'https://api.coze.cn/v1/workflow/stream_run', url: 'https://api.coze.cn/v1/workflow/stream_run',
// //
headers: { headers: {
Authorization: 'Bearer ' + that.aiConfig.token, // that.aiConfig.token
'Content-Type': 'application/json;charset=UTF-8', Authorization: 'Bearer ' + 'pat_cHNGkdbe3VRsmpMUXCNbZVt1ltDVyCI8k2bt9soIm2te76KXmtIfrOMKJ7xdwtYc',
'Content-Type': 'application/json',
}, },
// post // post
method: 'post', method: 'post',
body: { body: {
parameters: { parameters: {
notice_text: that.aitext, txt: that.aitext,
}, },
// workflow_id: that.aiConfig.id, // workflow_id: that.aiConfig.id,
workflow_id: '7492238568816656410', workflow_id: '7520535773797318690',
// workflow_id: '7492238568816656410',
}, },
}) })
}, },

Loading…
Cancel
Save