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

6
components/ProductSection.vue

@ -25,8 +25,8 @@
<!-- 图片蒙层 --> <!-- 图片蒙层 -->
<view class="image-overlay" v-if="!isFeel"></view> <view class="image-overlay" v-if="!isFeel"></view>
<!-- 智能体标签 --> <!-- 智能体标签 -->
<view class="content-box-info" v-if="!isFeel"> <view class="content-box-info" v-if="!isFeel&&item.agent">
<view class="ai-tag" v-if="item.agent"> <view class="ai-tag">
<view <view
class="ai-label" class="ai-label"
:style="{ :style="{
@ -180,7 +180,7 @@ export default {
if (img.indexOf("https://") != -1 || img.indexOf("http://") != -1) { if (img.indexOf("https://") != -1 || img.indexOf("http://") != -1) {
return img; return img;
} else { } 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> <template>
<view class="bg"> <view class="bg">
<view class="content"> <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)"> <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> <image class="top-banner" :src="showImg(item.head_img)" mode="aspectFill" lazy-load="true"></image>
</swiper-item> </swiper-item>
</swiper> </swiper> -->
<image class="top-banner" :src="showImg('/uploads/20250821/ebc938df8942dee581971d0584980fba.gif')" mode="aspectFill" lazy-load="true"></image>
</view> </view>
<CustomTabBar :currentTab="3" /> <CustomTabBar :currentTab="3" />
<MusicControl /> <MusicControl />

2
static/js/CommonFunction.js

@ -91,7 +91,7 @@ Vue.prototype.showImg = img => {
if (img.indexOf('https://') != -1 || img.indexOf('http://') != -1) { if (img.indexOf('https://') != -1 || img.indexOf('http://') != -1) {
return img; return img;
} else { } 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 原型上
Vue.prototype.NEWAPIURL = NEWAPIURL; Vue.prototype.NEWAPIURL = NEWAPIURL;
Vue.prototype.NEWAPIURLIMG = 'https://epic.js-dyyj.com';
Vue.prototype.NEWAPIURL = NEWAPIURL;
Vue.prototype.NEWAPIURL_DES = NEWAPIURL_DES; Vue.prototype.NEWAPIURL_DES = NEWAPIURL_DES;
// #ifdef H5 // #ifdef H5

Loading…
Cancel
Save