Browse Source

在线时间

dev_des
1054425342@qq.com 2 months ago
parent
commit
a9748db0c6
  1. 10
      App.vue
  2. 6
      components/ProductSection.vue
  3. 5
      pages/index/intelligentAgent.vue
  4. 2
      static/js/CommonFunction.js
  5. 2
      static/js/request.js

10
App.vue

@ -1,4 +1,6 @@
<script>
import store from './store'
export default {
globalData: {
mainSliderIndex: 0,
@ -32,12 +34,20 @@ export default {
onShow: function () {
//
this.recordAppShow();
this.getUserInfo()
},
onHide: function () {
// 退
this.recordAppHide();
},
methods: {
getUserInfo(){
if(!this.getUserId())return
this.Post({}, "/framework/user/getInfo", "DES")
.then((res) => {
uni.setStorageSync('userInfo', JSON.stringify(res.data))
})
},
// 使
initUserUsageStats() {
// ID

6
components/ProductSection.vue

@ -25,8 +25,8 @@
<!-- 图片蒙层 -->
<view class="image-overlay" v-if="!isFeel"></view>
<!-- 智能体标签 -->
<view class="content-box-info" v-if="!isFeel">
<view class="ai-tag" v-if="item.agent">
<view class="content-box-info" v-if="!isFeel&&item.agent">
<view class="ai-tag">
<view
class="ai-label"
:style="{
@ -180,7 +180,7 @@ export default {
if (img.indexOf("https://") != -1 || img.indexOf("http://") != -1) {
return img;
} else {
return this.$options._base.prototype.NEWAPIURL + img;
return this.$options._base.prototype.NEWAPIURLIMG + img;
}
},
},

5
pages/index/intelligentAgent.vue

@ -1,11 +1,12 @@
<template>
<view class="bg">
<view class="content">
<swiper class="top-banner" :indicator-dots="false" :autoplay="false" v-if="topBanner && topBanner.length > 0">
<!-- <swiper class="top-banner" :indicator-dots="false" :autoplay="false" v-if="topBanner && topBanner.length > 0">
<swiper-item v-for="(item, index) in topBanner" :key="index" @click.stop="gotoUrlNew(item)">
<image class="top-banner" :src="showImg(item.head_img)" mode="aspectFill" lazy-load="true"></image>
</swiper-item>
</swiper>
</swiper> -->
<image class="top-banner" :src="showImg('/uploads/20250821/ebc938df8942dee581971d0584980fba.gif')" mode="aspectFill" lazy-load="true"></image>
</view>
<CustomTabBar :currentTab="3" />
<MusicControl />

2
static/js/CommonFunction.js

@ -91,7 +91,7 @@ Vue.prototype.showImg = img => {
if (img.indexOf('https://') != -1 || img.indexOf('http://') != -1) {
return img;
} else {
return Vue.prototype.NEWAPIURL + img ;
return Vue.prototype.NEWAPIURLIMG + img ;
}
}

2
static/js/request.js

@ -51,6 +51,8 @@ const handleError = (res, reject, noForceLogin) => {
// 挂载到 Vue 原型上
Vue.prototype.NEWAPIURL = NEWAPIURL;
Vue.prototype.NEWAPIURLIMG = 'https://epic.js-dyyj.com';
Vue.prototype.NEWAPIURL = NEWAPIURL;
Vue.prototype.NEWAPIURL_DES = NEWAPIURL_DES;
// #ifdef H5

Loading…
Cancel
Save