Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uniapp_vedio
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
uniapp_vedio
Commits
0afa8f4f
Commit
0afa8f4f
authored
Dec 23, 2024
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
河狸故事汇
parent
d93855f0
Changes
13
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
258 additions
and
335 deletions
+258
-335
launch.json
vedio/.hbuilderx/launch.json
+4
-0
App.vue
vedio/App.vue
+0
-16
userServices.js
vedio/common/services/userServices.js
+0
-18
c-navi.vue
vedio/components/c-navi/c-navi.vue
+1
-1
my.vue
vedio/components/home/my.vue
+1
-1
manifest.json
vedio/manifest.json
+232
-234
common.js
vedio/mixins/common.js
+1
-1
book-content.vue
vedio/page-subs/sub_A/book-content/book-content.vue
+2
-8
pages.json
vedio/pages.json
+1
-1
home.vue
vedio/pages/home.vue
+9
-36
loading.vue
vedio/pages/loading.vue
+6
-18
logo.png
vedio/static/images/logo.png
+0
-0
utils.js
vedio/utils/utils.js
+1
-1
No files found.
vedio/.hbuilderx/launch.json
View file @
0afa8f4f
...
...
@@ -10,6 +10,10 @@
{
"launchtype"
:
"local"
},
"mp-kuaishou"
:
{
"launchtype"
:
"local"
},
"mp-toutiao"
:
{
"launchtype"
:
"local"
...
...
vedio/App.vue
View file @
0afa8f4f
...
...
@@ -54,22 +54,6 @@
}
// checkUpdate(this);
// #ifdef H5
if
(
window
.
location
.
host
===
'www.baosheji.cn'
)
{
var
icp
=
document
.
createElement
(
'div'
);
icp
.
innerText
=
'京ICP备18032652号'
;
icp
.
style
.
color
=
'white'
;
icp
.
style
.
textAlign
=
'center'
;
icp
.
style
.
position
=
'fixed'
;
icp
.
style
.
bottom
=
'0'
;
icp
.
style
.
left
=
'0'
;
icp
.
style
.
right
=
'0'
;
icp
.
style
.
zIndex
=
'100'
;
document
.
body
.
appendChild
(
icp
);
}
// #endif
},
onShow
:
function
(
options
)
{
this
.
globalData
.
resetLogin
=
true
...
...
vedio/common/services/userServices.js
View file @
0afa8f4f
...
...
@@ -240,22 +240,6 @@ function logout(callback, exprireOut = false) {
// }
}
const
KEY_STORAGE_ACTIVITY
=
"ACTIVITY"
let
LOCAL_ACTIVITY
;
function
saveActivity
(
activity
)
{
LOCAL_ACTIVITY
=
activity
;
saveStorage
(
KEY_STORAGE_ACTIVITY
,
activity
);
}
function
readaActivity
()
{
if
(
!
LOCAL_ACTIVITY
)
{
LOCAL_ACTIVITY
=
readStorage
(
KEY_STORAGE_ACTIVITY
)
}
return
LOCAL_ACTIVITY
;
}
const
KEY_STORAGE_TOKEN
=
"TOKEN"
let
LOCAL_TOKEN
;
...
...
@@ -355,6 +339,4 @@ module.exports = {
removeUserInfoChangeWatch
,
saveToken
,
readToken
,
saveActivity
,
readaActivity
}
\ No newline at end of file
vedio/components/c-navi/c-navi.vue
View file @
0afa8f4f
...
...
@@ -20,7 +20,7 @@
props
:
{
title
:
{
type
:
String
,
default
:
"河狸
小故事
"
default
:
"河狸
故事汇
"
}
},
data
()
{
...
...
vedio/components/home/my.vue
View file @
0afa8f4f
...
...
@@ -6,7 +6,7 @@
border-radius: 40rpx;border: 2px solid darkgray;"
src=
"@/static/index/ic_quit_white.png"
/>
</view>
<text
class=
"mt-10"
style=
"font-size: 46rpx;"
>
如何继续使用?
</text>
<text
class=
"m-10"
>
找到“河狸
小故事
”小程序
</text>
<text
class=
"m-10"
>
找到“河狸
故事汇
”小程序
</text>
<image
class=
"mt-30"
mode=
"widthFix"
:src=
"maskImage1"
></image>
<image
:src=
"maskImage2"
mode=
"widthFix"
></image>
...
...
vedio/manifest.json
View file @
0afa8f4f
This diff is collapsed.
Click to expand it.
vedio/mixins/common.js
View file @
0afa8f4f
...
...
@@ -124,7 +124,7 @@ export default {
})
}
else
{
fail
(
_data
)
message
.
notify
(
res
.
data
.
message
);
message
.
notify
(
_data
);
}
}
})
...
...
vedio/page-subs/sub_A/book-content/book-content.vue
View file @
0afa8f4f
...
...
@@ -62,8 +62,7 @@
watchUserInfoChange
,
removeUserInfoChangeWatch
,
refreshUserInfo
,
postPhone
,
readaActivity
postPhone
}
from
"../../../common/services/userServices.js"
import
{
noticeCollectionListChange
,
...
...
@@ -248,17 +247,12 @@
// 文章数据刷新
refreshBookData
(
bookId
)
{
getBookDetailData
(
bookId
,
(
success
,
data
)
=>
{
// setTimeout(() => {
// uni.stopPullDownRefresh();
if
(
success
)
{
if
(
readaActivity
()
!=
1
)
{
data
.
isUnlock
=
1
}
data
.
isUnlock
=
1
this
.
bookData
=
new
BookDetail
(
data
);
// console.log('bookData=' + JSON.stringify(this.bookData));
}
// }, 100)
})
},
paySuccess
()
{
...
...
vedio/pages.json
View file @
0afa8f4f
...
...
@@ -21,7 +21,7 @@
{
"path"
:
"pages/home"
,
"style"
:
{
"navigationBarTitleText"
:
"河狸
小故事
"
,
"navigationBarTitleText"
:
"河狸
故事汇
"
,
"navigationStyle"
:
"default"
,
"navigationBarBackgroundColor"
:
"#ffffff"
,
"navigationBarTextStyle"
:
"black"
...
...
vedio/pages/home.vue
View file @
0afa8f4f
<
template
>
<view
v-if=
"localActiviteFlag==1"
class=
"body"
>
<view
class=
"body"
>
<view
style=
"height: 92%;"
>
<bookshelf
v-show=
"currentPage==0"
ref=
"shelf"
v-on:showEditBarH=
"showEditBarH"
/>
<bookcity
v-show=
"currentPage==1"
ref=
"city"
/>
...
...
@@ -51,21 +51,7 @@
</view>
</view>
<view
v-else
class=
"body"
>
<view
:style=
"'display: flex;flex-direction: row;align-items: center;margin: 20rpx;padding-left: 10rpx;margin-top:'+10+'px;'"
>
<image
class=
"avatar"
src=
"@/static/images/logo.png"
></image>
<view>
<view
style=
"font-size: 34rpx;color: black;margin-left: 30rpx;"
>
用户ID:
{{
localIdcode
}}
</view>
<view
style=
"font-size: 26rpx;color: #b5b5b5;margin-left: 30rpx;margin-top: 10rpx;"
>
书中自有颜如玉,书中自有黄金屋,书中自有千钟黍
</view>
</view>
</view>
<view
style=
"height: 92%;"
>
<warehouse
ref=
"recommend2"
/>
</view>
</view>
</
template
>
<
script
>
...
...
@@ -93,7 +79,6 @@
data
()
{
return
{
currentPage
:
1
,
localActiviteFlag
:
0
,
localIdcode
:
0
,
showEditBar
:
false
,
isFullChoice
:
false
,
...
...
@@ -101,7 +86,6 @@
},
onLoad
(
options
)
{
let
index
=
options
.
index
??
''
this
.
localActiviteFlag
=
options
.
activiteFlag
;
this
.
localIdcode
=
options
.
idcode
;
if
(
index
!=
''
&&
index
!=
undefined
)
{
this
.
currentPage
=
index
...
...
@@ -131,13 +115,6 @@
mounted
()
{
// 渲染完成 初始化首页数据
this
.
loadComponentData
();
let
that
=
this
if
(
this
.
localActiviteFlag
==
1
)
{
uni
.
$on
(
'goWareHouse'
,
function
(
data
)
{
that
.
tabChange
(
1
)
})
}
},
methods
:
{
tabChange
(
index
)
{
...
...
@@ -146,18 +123,14 @@
this
.
loadComponentData
();
},
loadComponentData
()
{
if
(
this
.
localActiviteFlag
==
1
)
{
if
(
this
.
currentPage
==
0
)
{
this
.
$refs
.
shelf
.
show
();
}
else
if
(
this
.
currentPage
==
1
)
{
this
.
$refs
.
city
.
show
();
}
else
if
(
this
.
currentPage
==
2
)
{
this
.
$refs
.
recommend
.
show
();
}
else
if
(
this
.
currentPage
==
3
)
{
this
.
$refs
.
user
.
show
();
}
}
else
{
this
.
$refs
.
recommend2
.
show
();
if
(
this
.
currentPage
==
0
)
{
this
.
$refs
.
shelf
.
show
();
}
else
if
(
this
.
currentPage
==
1
)
{
this
.
$refs
.
city
.
show
();
}
else
if
(
this
.
currentPage
==
2
)
{
this
.
$refs
.
recommend
.
show
();
}
else
if
(
this
.
currentPage
==
3
)
{
this
.
$refs
.
user
.
show
();
}
},
showEditBarH
(
b
)
{
...
...
vedio/pages/loading.vue
View file @
0afa8f4f
...
...
@@ -38,8 +38,7 @@
<
script
>
import
{
saveToken
,
saveActivity
saveToken
}
from
'../common/services/userServices.js'
import
{
...
...
@@ -61,7 +60,7 @@
sourceType
:
''
,
slotParam
:
''
,
vipList
:
[],
appName
:
'河狸
小故事
'
,
appName
:
'河狸
故事汇
'
,
isVip
:
false
,
localToken
:
''
}
...
...
@@ -130,21 +129,10 @@
app
.
globalData
.
userId
=
data
.
idcode
;
that
.
localToken
=
data
.
token
saveToken
(
data
.
token
)
saveActivity
(
data
.
activiteFlag
)
// saveToken(
// 'A5CFAE67AF32E71D10CA6127546E82C20A8DE7C0EAAA5697BEEC2AC2E333F9945F433703067DF5142735505C42F58997'
// )
// that.handlePay()
if
(
data
.
activiteFlag
==
101
)
{
that
.
handlePay
()
}
else
{
setTimeout
(()
=>
{
redirectTo
(
'home?activiteFlag='
+
data
.
activiteFlag
+
"&idcode="
+
data
.
idcode
);
},
1000
);
}
setTimeout
(()
=>
{
redirectTo
(
'home?activiteFlag='
+
"&idcode="
+
data
.
idcode
);
},
500
);
}
});
},
...
...
vedio/static/images/logo.png
View replaced file @
d93855f0
View file @
0afa8f4f
13.9 KB
|
W:
|
H:
20.1 KB
|
W:
|
H:
2-up
Swipe
Onion skin
vedio/utils/utils.js
View file @
0afa8f4f
export
const
PAKEAGE_NAME
=
'com.min
gce.wxhelibook
'
export
const
PAKEAGE_NAME
=
'com.min
ts.wxhelistory
'
export
const
VERSION_CODE
=
'1.0.5'
// export const PAKEAGE_NAME = 'com.test.test'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment