2025.03.14 工作代码提交
This commit is contained in:
parent
c3d184b8b5
commit
fdee18b7f8
|
@ -28,11 +28,11 @@
|
|||
getUserinfo()
|
||||
// 获取系统配置
|
||||
getConfig()
|
||||
// 获取APP版本
|
||||
util.getAppVersion()
|
||||
// #ifdef APP
|
||||
// 处理用户在app端提交的权限
|
||||
init()
|
||||
// 获取APP版本
|
||||
util.getAppVersion()
|
||||
// #endif
|
||||
})
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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
|
||||
// 手机版本号 < 设定版本号
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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" : {
|
||||
|
|
|
@ -878,11 +878,11 @@
|
|||
}
|
||||
},
|
||||
"condition": {
|
||||
"current": 1,
|
||||
"current": 0,
|
||||
"list": [
|
||||
{
|
||||
"name": "test",
|
||||
"path": "pages/mine/homepage"
|
||||
"path": "pages/shop/shop"
|
||||
},
|
||||
{
|
||||
"name": "test",
|
||||
|
|
|
@ -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()
|
||||
// }
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
]
|
||||
|
||||
|
|
|
@ -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()],
|
||||
|
|
Loading…
Reference in New Issue