cshenfu
2023-06-08 7281600f12dc879ef86d7d35bfb02fecd9beb072
change icon bug
4个文件已修改
43 ■■■■ 已修改文件
App.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/index/chat.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/tab/assistant.vue 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/vip/vip.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
App.vue
@@ -71,7 +71,8 @@
                if (userInfo) {
                    await this.login(userInfo);
                    this.$request('/api/Member/checkNum', 'POST').then(res => {
                        userInfo.num = res.data.num // 更新数量
                        console.log(res,"checkNumres")
                        userInfo.num = res.data.num+res.data.pay_num // 更新数量
                        this.syncUserInfo(userInfo)
                    })
                }
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>
                        <u--image :src="`${setting_data.base_url+now_model.icon}`" mode=""></u--image>
                    </view>
                    <view class="body_box">
                        <view class="body_jt"></view>
@@ -43,7 +43,7 @@
            
            <view class="body_l" v-if="loading" id="loading">
                <view class="body_lpic a">
                    <image :src="`${now_model.icon}`" mode=""></image>
                    <u--image :src="`${setting_data.base_url+now_model.icon}`" mode=""></u--image>
                </view>
                <view class="body_box">
                    <view class="body_lcon pdg border_radius_l" style="display:flex; overflow-x: hidden;">
pages/tab/assistant.vue
@@ -7,7 +7,7 @@
            <view class="tool_list">
                <view class="group_tool_wrap" v-for="item in models" :key="item.assistant_id" @click="handleJump(item)">
                    <view class="tool_wrap">
                        <u--image :showLoading="true" :src="`${item.icon}`" width="112rpx" height="112rpx" class="tool_icon"></u--image>
                        <u--image :showLoading="true" :src="`${setting_data.base_url+item.icon}`" width="112rpx" height="112rpx" class="tool_icon"></u--image>
                        <view class="tool_info">
                            <view class="tool_name">
                                <view class="tool_name_l">
@@ -55,34 +55,10 @@
            ...mapState(['models','tabbar','userInfo'])
        },
        async onLoad() {
            console.log(this.models,"assisstent")
            this.setting_data = setting
            this.getTabIndex()
            // await recognition()
            // const flag = await handleTime()
            // const value = uni.getStorageSync('config');
            // const that = this
            // if (value && flag) {
            //     const {
            //         admin
            //     } = value
            //     that.admin = admin
            //     const data = {
            //         pageIndex: 1,
            //         pageSize: 12
            //     }
            //     await this.handlegetAppla(data)
            //     return
            // }
            // uni.login({
            //     provider: "weixin",
            //     success(res) {
            //         uni.showLoading({
            //             title: '加载中',
            //             mask: true
            //         })
            //         that.handlefig(res.code)
            //     }
            // })
        },
        onShareAppMessage: function() {
            return {
pages/vip/vip.vue
@@ -146,9 +146,10 @@
                                this.$request('/api/Member/checkNum', 'POST',{
                                    comb_id: this.rechargeOptions[this.current].comb_id
                                }).then(re => {
                                    console.log(re,"checkNumre")
                                    this.data_content3 = re
                                     // 更新数量
                                    this.$store.commit('syncUserNum',re.data.num)
                                    this.$store.commit('syncUserNum',re.data.num+re.data.pay_num)
                                })
                            }
                        }, (er) => {
@@ -182,8 +183,9 @@
                        this.$request('/api/Member/checkNum', 'POST',{
                                    comb_id: this.rechargeOptions[this.current].comb_id
                                }).then(re => {
                                    console.log(re,"checkNumre22222")
                             // 更新数量
                            this.$store.commit('syncUserNum',re.data.num)
                            this.$store.commit('syncUserNum',re.data.num+re.data.pay_num)
                        })
                    }
                    // #endif