cshenfu
2023-05-12 03cf7c151d1873ca8c6d6e49677971988be8236f
change icon
4个文件已修改
29 ■■■■■ 已修改文件
common/config.js 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/index/chat.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/index/home.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/tab/assistant.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
common/config.js
@@ -1,10 +1,10 @@
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'
}
pages/index/chat.vue
@@ -12,7 +12,7 @@
            <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>
@@ -43,7 +43,7 @@
        </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;">
@@ -131,13 +131,15 @@
                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)
pages/index/home.vue
@@ -2,7 +2,7 @@
    <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">
@@ -94,6 +94,8 @@
</template>
<script>
    import setting from "@/common/config.js"
    import wx from '../../node_modules/jweixin-module/lib/index.js'
    import {
        mapState
    } from 'vuex';
@@ -115,6 +117,10 @@
            // #ifdef MP-WEIXIN || MP-JD
            uni.hideHomeButton()
            // #endif
            this.setting_data = setting
        },
        onShareAppMessage() {
            console.log('转发+1')
pages/tab/assistant.vue
@@ -28,7 +28,7 @@
                            <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>
@@ -38,6 +38,7 @@
</template>
<script>
    import setting from "@/common/config.js"
    // import {
    //     handleConfig,
    //     handleTime
@@ -55,12 +56,14 @@
        // },
        data() {
            return {
                setting_data:'null'
            };
        },
        computed: {
            ...mapState(['models','tabbar'])
        },
        async onLoad() {
            this.setting_data = setting
            this.getTabIndex()
            // await recognition()
            // const flag = await handleTime()