2025.03.14 工作代码提交

This commit is contained in:
sx 2025-03-15 08:54:19 +08:00
parent c3d184b8b5
commit fdee18b7f8
11 changed files with 39 additions and 30 deletions

View File

@ -28,11 +28,11 @@
getUserinfo()
//
getConfig()
// APP
util.getAppVersion()
// #ifdef APP
// app
init()
// APP
util.getAppVersion()
// #endif
})

View File

@ -6,8 +6,8 @@ const config = {
// host: 'h5api',
// #endif
// #ifndef H5
// host: 'http://91f.xyz:8080',
host: 'http://fc25a42.r24.cpolar.top',
host: 'http://91f.xyz:8080',
// host: 'http://762c9b48.r24.cpolar.top',
// #endif
// 是否vivo显示
showVivo: true,

View File

@ -213,7 +213,7 @@ const util = {
responseType: params.responseType || 'text',
// 请求成功返回
success: res => {
console.log('request success', url, res, params.data ? params.data : '')
// console.log('request success', url, res, params.data ? params.data : '')
// 关闭加载效果
if (params.load) {
uni.hideLoading()
@ -1632,7 +1632,7 @@ const util = {
api.getAppVersion().then(rs => {
if (rs.code == 200) {
const result = rs.data
console.log('getAppVersion result', result)
// console.log('getAppVersion result', result)
// 同步修改云端数据
uni.$store.commit('setState', {
key: 'versionCloud',

View File

@ -32,9 +32,7 @@
//
function init() {
console.log('versionCloud', versionCloud.value)
return
Object.assign(versionkApp, system)
const result = versionCloud.value
// status 1 0
if (result.status != 1) return
// <

View File

@ -87,7 +87,6 @@
//
function getAlarm() {
api.video.getAlarm().then(rs => {
console.log('getAlarm', rs)
if (rs.code == 200) {
const result = rs.data
if (!result) return

View File

@ -18,9 +18,8 @@
default: false,
},
requestFn: {
type: Function,
default: (ev) => {
return api.shop.getProduct(ev)
return api.shop.getProduct
}
},
})
@ -57,14 +56,13 @@
//
function getMoreList() {
if (listPrototype.total <= listPrototype.data.length) return
if (listPrototype.total <= list.length) return
listPrototype.pageNum++
getList()
}
//
function getList() {
console.log('listPrototype', listPrototype)
props.requestFn({
data: {
...listPrototype,

View File

@ -2,8 +2,8 @@
"name" : "九亿",
"appid" : "__UNI__08B31BC",
"description" : "",
"versionName" : "1.0.14",
"versionCode" : 1014,
"versionName" : "1.0.15",
"versionCode" : 1015,
"transformPx" : false,
/* 5+App */
"app-plus" : {

View File

@ -878,11 +878,11 @@
}
},
"condition": {
"current": 1,
"current": 0,
"list": [
{
"name": "test",
"path": "pages/mine/homepage"
"path": "pages/shop/shop"
},
{
"name": "test",

View File

@ -362,7 +362,7 @@
//
task: 0,
}
// console.log('browseLog data', data)
console.log('browseLog data', data)
//
api.video.browseLog({
data,
@ -372,7 +372,7 @@
const result = rs.data
// 现在的有效读秒
const taskValue = task.value
// console.log('browseLog result', rs, taskValue)
console.log('browseLog result', rs, taskValue)
// 如果不是第一次统计
if (taskValue.viewingDuration != 0) {
@ -449,6 +449,7 @@
* @param {Number} target 滚动到下标的元素
*/
function scrollTo(target) {
console.log('scrollTo', proxy.$refs)
// tab下标
const tab_index = tabIndex.value
@ -463,14 +464,14 @@
})
// 如果视频切换
if (current[tab_index] != currentLast[tab_index]) {
// 停止当前有效读秒统计
readSecondPause()
// 浏览记录
browseLog(lastVideoRef)
// 开始记录
readSecondAdd()
}
// if (current[tab_index] != currentLast[tab_index]) {
// 停止当前有效读秒统计
readSecondPause()
// 浏览记录
browseLog(lastVideoRef)
// 开始记录
readSecondAdd()
// }
}
/**

View File

@ -5,10 +5,14 @@
import {
ref,
reactive,
computed,
} from 'vue'
import {
onLoad,
} from '@dcloudio/uni-app'
import {
useStore
} from 'vuex'
//
import getCode from '@/components/getCode/getCode.vue'
@ -20,6 +24,8 @@
import util from '@/common/js/util.js'
//
import CryptoJS from 'crypto-js';
//
const store = useStore()
//
const showPwd = ref(false)
//
@ -37,6 +43,8 @@
const cache = ref('')
//
const read = ref(false)
//
const versionCloud = computed(() => store.state.versionCloud)
onLoad((option) => {
//
@ -104,6 +112,11 @@
name: '安卓下载链接2',
key: '蒲公英',
url: 'https://www.pgyer.com/u24vT3b2',
},
{
name: '安卓下载链接3',
key: 'Ruo-yi',
url: versionCloud.value.downloadUrl,
}
]

View File

@ -3,8 +3,8 @@ import {
} from 'vite';
import uni from '@dcloudio/vite-plugin-uni';
// let target = 'http://91f.xyz:8080'
let target = 'http://fc25a42.r24.cpolar.top'
let target = 'http://91f.xyz:8080'
// let target = 'http://762c9b48.r24.cpolar.top'
export default defineConfig({
plugins: [uni()],