diff --git a/jiuyi2/common/js/config.js b/jiuyi2/common/js/config.js
index fcf97dbc..f1421c4f 100644
--- a/jiuyi2/common/js/config.js
+++ b/jiuyi2/common/js/config.js
@@ -6,8 +6,12 @@ const config = {
// host: 'h5api',
// #endif
// #ifndef H5
+<<<<<<< HEAD
host: 'http://91f.xyz:8080',
// host: 'http://g8rbs6.natappfree.cc',
+=======
+ host: 'http://91f.xyz:8080',
+>>>>>>> 1fb340263bba19031e365ab883932f3f4c4806e3
// #endif
// 支付方式配置
payType: {
diff --git a/jiuyi2/common/js/util.js b/jiuyi2/common/js/util.js
index 2c59d799..fe31a50b 100644
--- a/jiuyi2/common/js/util.js
+++ b/jiuyi2/common/js/util.js
@@ -223,11 +223,12 @@ const util = {
if (res.data.code == 401) {
// 登出
util.logout(() => {
- util.alert('请先登录')
+ util.alert(res.data.msg)
reject(res.data)
- // uni.reLaunch({
- // url: '/login/login',
- // })
+
+ uni.redirectTo({
+ url: '/pages/login/loginPhone',
+ })
})
}
// 嵌套式回调
diff --git a/jiuyi2/components/footerMenu/footerMenu.vue b/jiuyi2/components/footerMenu/footerMenu.vue
index 5e20aafa..ec3926cf 100644
--- a/jiuyi2/components/footerMenu/footerMenu.vue
+++ b/jiuyi2/components/footerMenu/footerMenu.vue
@@ -1,245 +1,245 @@
@@ -252,9 +252,10 @@ function getNoReadNum() {
{{ item.name }}
- {{ noReadNum }}
+ {{ noReadNum }}
+
\ No newline at end of file
diff --git a/jiuyi2/components/index/commentArea.vue b/jiuyi2/components/index/commentArea.vue
index 3a8c9bb7..3fd3b86f 100644
--- a/jiuyi2/components/index/commentArea.vue
+++ b/jiuyi2/components/index/commentArea.vue
@@ -130,13 +130,11 @@
userId: userinfo.value.id,
// 评论的父id
childrenParentId: reply.id || 0,
-
}
}).then(rs => {
console.log('saveComment', rs)
if (rs.code == 200) {
proxy.$refs.comment.close()
- detail.comment++
// 刷新列表
refreshList()
setTimeout(() => {
@@ -144,7 +142,10 @@
content.value = ''
}, 500)
// 修改被评论的视频数据
- uni.$emit('updateVideo', detail)
+ uni.$emit('updateVideo', {
+ ...detail,
+ ...rs.data,
+ })
return
}
util.alert({
diff --git a/jiuyi2/components/index/indexVideo.vue b/jiuyi2/components/index/indexVideo.vue
index 647df013..fae664d3 100644
--- a/jiuyi2/components/index/indexVideo.vue
+++ b/jiuyi2/components/index/indexVideo.vue
@@ -386,11 +386,11 @@
*/
function handleLike(index, likeType, isLike) {
util.isLogin().then(rs => {
- emit('like', {
- index,
- likeType,
- isLike,
- })
+ emit('like', {
+ index,
+ likeType,
+ isLike,
+ })
}).catch(() => {
uni.navigateTo({
url: '/pages/login/loginPhone'
@@ -474,7 +474,7 @@
if (isLong.value) return
play()
isLong.value = true
- videoCtx.value.playbackRate(2)
+ videoCtx.value.playbackRate(1.5)
}
// 前往数据中心
@@ -509,6 +509,7 @@
+
@@ -530,7 +531,7 @@
- 2倍速播放中...
+ 1.5倍速播放中...
@@ -587,7 +588,8 @@
- {{ item.likeCount }}
+ {{ item.likeCount }}
隐私赞
点赞
diff --git a/jiuyi2/components/index/proDetailAlt.vue b/jiuyi2/components/index/proDetailAlt.vue
index 4906e4f1..805c3530 100644
--- a/jiuyi2/components/index/proDetailAlt.vue
+++ b/jiuyi2/components/index/proDetailAlt.vue
@@ -53,7 +53,7 @@
function getDetail() {
api.shop.productDetail({
query: {
- userId: userinfo.value.id,
+ userId: userinfo.value.id || '',
// 产品id
productionId: proId.value
}
diff --git a/jiuyi2/components/news/msgList.vue b/jiuyi2/components/news/msgList.vue
index f1ae14a0..d7df26a0 100644
--- a/jiuyi2/components/news/msgList.vue
+++ b/jiuyi2/components/news/msgList.vue
@@ -360,7 +360,7 @@ function handleDate(timestamp) {
{{ item.unreadCount }}
-
+
{{ item.name }}
diff --git a/jiuyi2/manifest.json b/jiuyi2/manifest.json
index f5e97211..70301450 100644
--- a/jiuyi2/manifest.json
+++ b/jiuyi2/manifest.json
@@ -2,8 +2,8 @@
"name" : "九亿",
"appid" : "__UNI__08B31BC",
"description" : "",
- "versionName" : "1.0.8",
- "versionCode" : 1008,
+ "versionName" : "1.0.9",
+ "versionCode" : 1009,
"transformPx" : false,
/* 5+App特有相关 */
"app-plus" : {
diff --git a/jiuyi2/pages.json b/jiuyi2/pages.json
index 8b9561a8..c08891ba 100644
--- a/jiuyi2/pages.json
+++ b/jiuyi2/pages.json
@@ -747,6 +747,13 @@
"navigationBarTitleText" : "账号解冻"
}
},
+ {
+ "path" : "pages/mine/setting/privacySetting",
+ "style" :
+ {
+ "navigationBarTitleText" : "隐私设置"
+ }
+ },
{
"path": "pages/mine/setting/updateAccount",
"style": {
@@ -766,6 +773,7 @@
}
}
],
+
"subPackages": [
{
"root": "TUIKit",
diff --git a/jiuyi2/pages/index/index.nvue b/jiuyi2/pages/index/index.nvue
index 9c596671..364e4ef3 100644
--- a/jiuyi2/pages/index/index.nvue
+++ b/jiuyi2/pages/index/index.nvue
@@ -96,12 +96,12 @@
data: [],
pageNum: 1,
total: 0,
- pageSize: 10,
+ pageSize: 20,
})
// 关注的视频列表
const attList = reactive({
data: [],
- pageSize: 10,
+ pageSize: 20,
pageNum: 1,
total: 0,
timer: null,
@@ -224,9 +224,12 @@
})
onHide(() => {
+ // console.log('onHide', tabIndex.value, current, proxy.$refs)
+ const videoRefList = proxy.$refs[`videoRef${tabIndex.value}`]
// 暂停视频
- if (proxy.$refs[`videoRef${tabIndex.value}`]) {
- proxy.$refs[`videoRef${tabIndex.value}`][current[tabIndex.value]].pause()
+ if (videoRefList) {
+ videoRefList[videoRefList.length - 2].pause()
+ // videoRefList[current[tabIndex.value]].pause()
}
})
@@ -353,7 +356,7 @@
//
task: 0,
}
- console.log('browseLog data', data)
+ // console.log('browseLog data', data)
//
api.video.browseLog({
data,
@@ -363,7 +366,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) {
@@ -452,6 +455,7 @@
dom.scrollToElement(element, {
animated: true
})
+ console.log('current', current[tab_index])
// 如果视频切换
if (current[tab_index] != currentLast[tab_index]) {
@@ -802,17 +806,16 @@
@touchend="onTouchend($event,index)" @loadmore="item.getMoreList">
-
-
-
-
-
+
+
+
+
|
diff --git a/jiuyi2/pages/index/wallet/wallet.vue b/jiuyi2/pages/index/wallet/wallet.vue
index 51d4b780..38dd5d1f 100644
--- a/jiuyi2/pages/index/wallet/wallet.vue
+++ b/jiuyi2/pages/index/wallet/wallet.vue
@@ -59,15 +59,9 @@
// 待释放列表
const releasedLst = ref([])
// 用户信息
- const userinfo = computed(() => {
- let result = store.state.userinfo || {}
- return result
- })
+ const userinfo = computed(() => store.state.userinfo || {})
// 我的钱包
- const wallet = computed(() => {
- let result = store.state.purse || {}
- return result
- })
+ const wallet = computed(() => store.state.purse || {})
onLoad(() => {
// 获取待释放
@@ -190,7 +184,7 @@
-
+
商家明细
diff --git a/jiuyi2/pages/mine/setting/binding.vue b/jiuyi2/pages/mine/setting/binding.vue
index 9ad9c3f8..f7ce2360 100644
--- a/jiuyi2/pages/mine/setting/binding.vue
+++ b/jiuyi2/pages/mine/setting/binding.vue
@@ -139,7 +139,7 @@
- 请核对信息后进行绑定,因信息错误产生的问题后果自负
+ 免责声明:请核对信息后进行绑定,因信息错误产生问题,后果责任,由用户(您本人)自行承担。
添加
diff --git a/jiuyi2/pages/mine/setting/privacySetting.vue b/jiuyi2/pages/mine/setting/privacySetting.vue
new file mode 100644
index 00000000..9d79a29a
--- /dev/null
+++ b/jiuyi2/pages/mine/setting/privacySetting.vue
@@ -0,0 +1,77 @@
+
+
+
+
+
+
+
+ 个性化推荐管理
+
+
+
+
+ 特别说明: 关闭个性化推荐后,您仍会收到通用内容推荐,但可能与您的兴趣关联性较低。
+ 我们严格遵循《个人信息保护法》,不会将您的个人信息用于未声明的其他用途。
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/jiuyi2/pages/mine/setting/setting.vue b/jiuyi2/pages/mine/setting/setting.vue
index bca429d6..7190a10a 100644
--- a/jiuyi2/pages/mine/setting/setting.vue
+++ b/jiuyi2/pages/mine/setting/setting.vue
@@ -234,6 +234,11 @@ function logOff() {
+
+
+ 隐私设置
+
+
diff --git a/jiuyi2/pages/release/commodity.vue b/jiuyi2/pages/release/commodity.vue
index bea5f729..431bb144 100644
--- a/jiuyi2/pages/release/commodity.vue
+++ b/jiuyi2/pages/release/commodity.vue
@@ -56,7 +56,7 @@
form.commission = detail.commission
// 商品详情
if (detail.infoRichText) {
- form.infoRichText = JSON.parse(detail.infoRichText)
+ form.infoRichText = decodeURIComponent(escape(atob(detail.infoRichText)))
// 富文本编辑器初始化
proxy.$refs.editorAreaRef.init(form.infoRichText)
}
@@ -231,10 +231,8 @@
// 轮播图
data.sliderImage = data.sliderImage.join(',')
// 商品详情
- // if (data.infoRichText) data.infoRichText = Buffer.from(data.infoRichText, 'utf8').toString('base64');
- // if (data.infoRichText) data.infoRichText = JSON.stringify(data.infoRichText)
- console.log(btoa, data.infoRichText)
- return
+ if (data.infoRichText) data.infoRichText = btoa(unescape(encodeURIComponent(data.infoRichText)))
+
//
api.shop.saveProduct({
data,
diff --git a/jiuyi2/pages/shop/commodity/index.vue b/jiuyi2/pages/shop/commodity/index.vue
index e6f9ede5..5b02f9f1 100644
--- a/jiuyi2/pages/shop/commodity/index.vue
+++ b/jiuyi2/pages/shop/commodity/index.vue
@@ -94,8 +94,9 @@
if (rs.code == 200) {
//
const result = rs.data
+ // 商品详情
if (result.infoRichText) {
- result.infoRichText = JSON.parse(result.infoRichText)
+ result.infoRichText = decodeURIComponent(escape(atob(result.infoRichText)))
result.infoRichText = util.imgReplace(result.infoRichText)
}
Object.assign(detail, {}, result)
diff --git a/jiuyi2/pages/shop/store/index.vue b/jiuyi2/pages/shop/store/index.vue
index bb9d5819..93bd251d 100644
--- a/jiuyi2/pages/shop/store/index.vue
+++ b/jiuyi2/pages/shop/store/index.vue
@@ -236,7 +236,7 @@ defineExpose({
-
+
diff --git a/jiuyi2/vite.config.js b/jiuyi2/vite.config.js
index 33eace73..94b029c3 100644
--- a/jiuyi2/vite.config.js
+++ b/jiuyi2/vite.config.js
@@ -4,8 +4,11 @@ import {
import uni from '@dcloudio/vite-plugin-uni';
let target = 'http://91f.xyz:8080'
+<<<<<<< HEAD
// let target = 'http://g8rbs6.natappfree.cc'
+=======
+>>>>>>> 1fb340263bba19031e365ab883932f3f4c4806e3
export default defineConfig({
plugins: [uni()],