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() getUserinfo()
// //
getConfig() getConfig()
// APP
util.getAppVersion()
// #ifdef APP // #ifdef APP
// app // app
init() init()
// APP
util.getAppVersion()
// #endif // #endif
}) })

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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