| | |
| | | let setting = { |
| | | // base_url: 'http://192.168.0.104:8998', // 本地调试 |
| | | // ws: 'ws://192.168.0.104:7272', // 本地socket |
| | | base_url: 'https://newgpt.nauzone.cn', |
| | | ws: 'wss://newgpt.nauzone.cn/wss', |
| | | // base_url: 'http://ai.shsening.com', |
| | | // ws: 'ws://ai.shsening.com/wss', |
| | | // base_url: 'https://newgpt.nauzone.cn', |
| | | // ws: 'wss://newgpt.nauzone.cn/wss', |
| | | base_url: 'http://ai.shsening.com', |
| | | ws: 'ws://ai.shsening.com/wss', |
| | | official_accounts_appid: 'wxa447f988edc97797' |
| | | } |
| | | |
| | |
| | | <view v-for="(item,index) in arr" :key="index" :id="'message' + item.message_id"> |
| | | <view class="body_l" v-if="item.role == 'assistant'"> |
| | | <view class="body_lpic a"> |
| | | <image :src="now_model.icon" mode=""></image> |
| | | <image :src="`${setting_data.base_url+now_model.icon}`" mode=""></image> |
| | | </view> |
| | | <view class="body_box"> |
| | | <view class="body_jt"></view> |
| | |
| | | </view> |
| | | <view class="body_l" v-if="loading" style="margin-left: 30rpx;" id="loading"> |
| | | <view class="body_lpic a"> |
| | | <image :src="now_model.icon" mode=""></image> |
| | | <image :src="`${setting_data.base_url+now_model.icon}`" mode=""></image> |
| | | </view> |
| | | <view class="body_box "> |
| | | <view class="body_lcon pdg" style="display: flex;overflow-x: hidden;"> |
| | |
| | | showLeftList: false, |
| | | chatList: [], |
| | | showTab: false, |
| | | tabIndex: 0 |
| | | tabIndex: 0, |
| | | setting_data:'null' |
| | | } |
| | | }, |
| | | computed: { |
| | | ...mapState(['config', 'num', 'userInfo','tabbar']) |
| | | }, |
| | | onLoad(op) { |
| | | this.setting_data = setting |
| | | this.getTabIndex() |
| | | if (op.model) { |
| | | this.now_model = JSON.parse(op.model) |
| | |
| | | <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" |
| | | <image v-if="config.site_title" :src="main_model.icon ? `${setting_data.base_url+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"> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import setting from "@/common/config.js" |
| | | import wx from '../../node_modules/jweixin-module/lib/index.js' |
| | | import { |
| | | mapState |
| | | } from 'vuex'; |
| | |
| | | // #ifdef MP-WEIXIN || MP-JD |
| | | uni.hideHomeButton() |
| | | // #endif |
| | | |
| | | this.setting_data = setting |
| | | |
| | | |
| | | }, |
| | | onShareAppMessage() { |
| | | console.log('转发+1') |
| | |
| | | <view class="tool_name">{{item.title}}</view> |
| | | <view class="tool_hint">{{item.description}}</view> |
| | | </view> |
| | | <u--image :showLoading="true" :src="item.icon" width="80rpx" height="80rpx"></u--image> |
| | | <u--image :showLoading="true" :src="`${setting_data.base_url+item.icon}`" width="80rpx" height="80rpx"></u--image> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import setting from "@/common/config.js" |
| | | // import { |
| | | // handleConfig, |
| | | // handleTime |
| | |
| | | // }, |
| | | data() { |
| | | return { |
| | | setting_data:'null' |
| | | }; |
| | | }, |
| | | computed: { |
| | | ...mapState(['models','tabbar']) |
| | | }, |
| | | async onLoad() { |
| | | this.setting_data = setting |
| | | this.getTabIndex() |
| | | // await recognition() |
| | | // const flag = await handleTime() |