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