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
61cc6aa2
Commit
61cc6aa2
authored
Nov 02, 2023
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加看点及消费记录页面
parent
416e834f
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
200 additions
and
34 deletions
+200
-34
manifest.json
vedio/manifest.json
+1
-1
share.js
vedio/mixins/share.js
+2
-1
pages.json
vedio/pages.json
+14
-0
my.vue
vedio/pages/my/my.vue
+24
-9
dotRecord.vue
vedio/pagesD/dotRecord/dotRecord.vue
+67
-0
payRecord.vue
vedio/pagesD/payRecord/payRecord.vue
+5
-23
useDotRecord.vue
vedio/pagesD/useDotRecord/useDotRecord.vue
+66
-0
ic_coin.png
vedio/static/ic_coin.png
+0
-0
ic_gift.png
vedio/static/ic_gift.png
+0
-0
ic_shop.png
vedio/static/ic_shop.png
+0
-0
utils.js
vedio/utils/utils.js
+21
-0
No files found.
vedio/manifest.json
View file @
61cc6aa2
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
},
},
"abiFilters"
:
[
"armeabi-v7a"
,
"arm64-v8a"
,
"x86"
],
"abiFilters"
:
[
"armeabi-v7a"
,
"arm64-v8a"
,
"x86"
],
"autoSdkPermissions"
:
true
,
"autoSdkPermissions"
:
true
,
"schemes"
:
"
twofiveone
"
"schemes"
:
""
},
},
/*
ios打包配置
*/
/*
ios打包配置
*/
"ios"
:
{
"ios"
:
{
...
...
vedio/mixins/share.js
View file @
61cc6aa2
...
@@ -16,7 +16,8 @@ export default {
...
@@ -16,7 +16,8 @@ export default {
share
:
{
share
:
{
title
:
'更多好剧,等你来看'
,
title
:
'更多好剧,等你来看'
,
imageUrl
:
'https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_movie.png'
,
imageUrl
:
'https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_movie.png'
,
path
:
'/pages/loading?shareId='
+
getApp
().
globalData
.
userId
,
path
:
'/pages/loading?shareId='
// path: '/pages/loading?shareId=' + getApp().globalData.userId,
}
}
}
}
},
},
...
...
vedio/pages.json
View file @
61cc6aa2
...
@@ -107,6 +107,20 @@
...
@@ -107,6 +107,20 @@
"navigationBarBackgroundColor"
:
"#2196f3"
,
"navigationBarBackgroundColor"
:
"#2196f3"
,
"navigationBarTextStyle"
:
"black"
"navigationBarTextStyle"
:
"black"
}
}
},
{
"path"
:
"dotRecord/dotRecord"
,
"style"
:
{
"navigationStyle"
:
"custom"
,
"navigationBarBackgroundColor"
:
"#2196f3"
,
"navigationBarTextStyle"
:
"black"
}
},
{
"path"
:
"useDotRecord/useDotRecord"
,
"style"
:
{
"navigationStyle"
:
"custom"
,
"navigationBarBackgroundColor"
:
"#2196f3"
,
"navigationBarTextStyle"
:
"black"
}
}]
}]
}],
}],
//
分包预载配置
//
分包预载配置
...
...
vedio/pages/my/my.vue
View file @
61cc6aa2
...
@@ -35,6 +35,14 @@
...
@@ -35,6 +35,14 @@
</view>
</view>
<view
class=
"infobg"
style=
"margin: 20rpx;"
>
<view
class=
"infobg"
style=
"margin: 20rpx;"
>
<view
class=
"item arrow"
@
click=
"handleDotRecord"
>
看点记录
<view
class=
"item_bd ellipsis"
style=
"margin-left: 58rpx;"
></view>
</view>
<view
class=
"item arrow"
@
click=
"handleUseDotRecord"
>
消费记录
<view
class=
"item_bd ellipsis"
style=
"margin-left: 58rpx;"
></view>
</view>
<view
class=
"item arrow"
@
click=
"handleWatchRecord"
>
<view
class=
"item arrow"
@
click=
"handleWatchRecord"
>
观看记录
观看记录
<view
class=
"item_bd ellipsis"
style=
"margin-left: 58rpx;"
></view>
<view
class=
"item_bd ellipsis"
style=
"margin-left: 58rpx;"
></view>
...
@@ -51,10 +59,10 @@
...
@@ -51,10 +59,10 @@
<view
style=
"display: flex;justify-content: center;margin-top: 20rpx;font-size: 26rpx;color: gray;"
>
<view
style=
"display: flex;justify-content: center;margin-top: 20rpx;font-size: 26rpx;color: gray;"
>
{{
versionName
}}
{{
versionName
}}
</view>
</view>
<coin-popup
:show=
"showAnimate"
@
close=
"showAnimate = false"
>
<coin-popup
:show=
"showAnimate"
@
close=
"showAnimate = false"
>
</coin-popup>
</coin-popup>
</view>
</view>
...
@@ -84,7 +92,7 @@
...
@@ -84,7 +92,7 @@
data
()
{
data
()
{
return
{
return
{
statusBarHeight
:
app
.
globalData
.
statusBarHeight
,
statusBarHeight
:
app
.
globalData
.
statusBarHeight
,
userBean
:
{},
userBean
:
{},
showAnimate
:
false
,
showAnimate
:
false
,
versionName
:
app
.
globalData
.
versionName
versionName
:
app
.
globalData
.
versionName
};
};
...
@@ -104,17 +112,24 @@
...
@@ -104,17 +112,24 @@
},
},
hide
()
{
hide
()
{
},
handleDotRecord
()
{
// 看点记录
navigateTo
(
`/pagesD/dotRecord/dotRecord`
)
},
handleUseDotRecord
()
{
// 看点消费记录
navigateTo
(
`/pagesD/useDotRecord/useDotRecord`
)
},
},
handleWatchRecord
()
{
handleWatchRecord
()
{
// navigateTo(`/pagesD/watchRecord/watchRecord`)
// navigateTo(`/pagesD/watchRecord/watchRecord`)
this
.
showAnimate
=
true
;
this
.
showAnimate
=
true
;
},
},
handlePayRecord
()
{
handlePayRecord
()
{
navigateTo
(
`/pagesD/payRecord/payRecord`
)
navigateTo
(
`/pagesD/payRecord/payRecord`
)
},
},
handleVipPay
()
{
handleVipPay
()
{
navigateTo
(
`/pagesA/vipPay/vipPay`
)
navigateTo
(
`/pagesA/vipPay/vipPay`
)
},
},
handlePhone
()
{
handlePhone
()
{
// 联系我们
// 联系我们
...
...
vedio/pagesD/dotRecord/dotRecord.vue
0 → 100644
View file @
61cc6aa2
<
template
>
<view
class=
"body"
>
<status-title
:showBack=
"true"
>
看点记录
</status-title>
<z-paging
class=
"flex-1"
ref=
"paging"
v-model=
"dataList"
@
query=
"queryList"
>
<view
v-for=
"(item, i) in dataList"
:key=
"i"
>
<view
class=
"flex m-20 pd-20"
style=
"background-color:white;border-radius:10rpx;"
>
<image
style=
"margin: auto 10rpx;width: 60rpx;height: 60rpx;"
src=
"../../static/ic_coin.png"
>
</image>
<view
class=
"flex1 ml-10"
>
<view
class=
"mt-10"
style=
"font-size: 28rpx;color: black;"
>
{{
'充值'
+
item
.
createtime
}}
</view>
<view
class=
"mt-10"
style=
"font-size: 26rpx;color: darkgray;"
>
{{
myFormateTime
(
1698911375977
)
}}
</view>
</view>
<view
style=
"margin:auto 10rpx auto auto;font-size: 36rpx;color: steelblue;"
>
3000看点
</view>
</view>
</view>
</z-paging>
</view>
</
template
>
<
script
>
import
common
from
'@/mixins/common'
;
import
{
formateTime
}
from
"@/utils/utils.js"
export
default
{
name
:
'dotRecord'
,
mixins
:
[
common
],
data
()
{
return
{
dataList
:
[
1
,
2
,
3
]
};
},
methods
:
{
show
()
{
if
(
this
.
$refs
.
paging
!=
null
)
{
this
.
$refs
.
paging
.
refresh
();
}
},
myFormateTime
(
time
)
{
return
formateTime
(
time
,
'yyyy-MM-dd hh:mm:ss'
)
},
queryList
(
page
,
size
)
{
this
.
post
({
url
:
'/vip/getOrderList'
,
showLoading
:
false
,
success
:
({
data
})
=>
{
this
.
$refs
.
paging
.
complete
(
data
.
list
);
}
});
}
}
};
</
script
>
<
style
lang=
"scss"
>
.body
{
background-color
:
whitesmoke
;
}
</
style
>
\ No newline at end of file
vedio/pagesD/payRecord/payRecord.vue
View file @
61cc6aa2
<
template
>
<
template
>
<view
class=
"body"
>
<view
class=
"body"
>
<status-title
:showBack=
"true"
>
我的订单
</status-title>
<status-title
:showBack=
"true"
>
我的订单
</status-title>
<z-paging
class=
"flex-1"
ref=
"paging"
v-model=
"dataList"
@
query=
"queryList"
>
<z-paging
class=
"flex-1"
ref=
"paging"
v-model=
"dataList"
@
query=
"queryList"
>
<view
v-for=
"(item, i) in dataList"
:key=
"i"
>
<view
v-for=
"(item, i) in dataList"
:key=
"i"
>
<view
style=
"display: flex;flex-direction: row;justify-content:space-between;margin: 20rpx;background-color:white;border-radius:10rpx;padding: 20rpx;"
>
<view
class=
"flex m-20 pd-20"
style=
"justify-content:space-between;background-color:white;border-radius:10rpx;"
>
<view
style=
"display: flex;flex-direction: column;
"
>
<view
class=
"flex1
"
>
<view
style=
"font-size: 28rpx;color: black;"
>
{{
item
.
remarks
}}
</view>
<view
style=
"font-size: 28rpx;color: black;"
>
{{
item
.
remarks
}}
</view>
<view
style=
"font-size: 26rpx;color: gray;margin-top: 16rpx;"
>
付款时间:
{{
item
.
createtime
}}
</view>
<view
style=
"font-size: 26rpx;color: gray;margin-top: 16rpx;"
>
付款时间:
{{
item
.
createtime
}}
</view>
<view
style=
"font-size: 26rpx;color: gray;margin-top: 1rpx;"
>
订单编号:
{{
item
.
orderid
}}
</view>
<view
style=
"font-size: 26rpx;color: gray;margin-top: 1rpx;"
>
订单编号:
{{
item
.
orderid
}}
</view>
</view>
</view>
<view
style=
"display: flex;align-items: center;margin-right: 8rpx;font-size: 36rpx;color: red;"
>
<view
style=
"display: flex;align-items: center;margin-right: 8rpx;font-size: 36rpx;color: red;"
>
...
@@ -22,22 +22,6 @@
...
@@ -22,22 +22,6 @@
<
script
>
<
script
>
import
common
from
'@/mixins/common'
;
import
common
from
'@/mixins/common'
;
import
{
getToLocal
}
from
"@/utils/utils.js"
import
{
navigateTo
,
message
,
alert
,
loading
}
from
'@/utils/fun.js'
;
import
{
openUrl
}
from
'@/utils/app+.js'
;
const
app
=
getApp
();
export
default
{
export
default
{
name
:
'index'
,
name
:
'index'
,
mixins
:
[
common
],
mixins
:
[
common
],
...
@@ -68,8 +52,6 @@
...
@@ -68,8 +52,6 @@
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
@import
'@/scss/uni.scss'
;
.body
{
.body
{
background-color
:
whitesmoke
;
background-color
:
whitesmoke
;
}
}
...
...
vedio/pagesD/useDotRecord/useDotRecord.vue
0 → 100644
View file @
61cc6aa2
<
template
>
<view
class=
"body"
>
<status-title
:showBack=
"true"
>
消费记录
</status-title>
<z-paging
class=
"flex-1"
ref=
"paging"
v-model=
"dataList"
@
query=
"queryList"
>
<view
v-for=
"(item, i) in dataList"
:key=
"i"
>
<view
class=
"flex m-20 pd-20"
style=
"background-color:white;border-radius:10rpx;"
>
<image
style=
"margin: auto 10rpx;width: 60rpx;height: 60rpx;"
src=
"../../static/ic_shop.png"
>
</image>
<view
class=
"flex1 ml-10"
>
<view
class=
"mt-10"
style=
"font-size: 28rpx;color: black;"
>
{{
'购买《'
+
item
.
createtime
+
'》章节'
}}
</view>
<view
class=
"mt-10"
style=
"font-size: 26rpx;color: darkgray;"
>
{{
myFormateTime
(
1698911375977
)
}}
</view>
</view>
<view
style=
"margin:auto 10rpx auto auto;font-size: 36rpx;color: steelblue;"
>
3000看点
</view>
</view>
</view>
</z-paging>
</view>
</
template
>
<
script
>
import
common
from
'@/mixins/common'
;
import
{
formateTime
}
from
"@/utils/utils.js"
export
default
{
name
:
'useDotRecord'
,
mixins
:
[
common
],
data
()
{
return
{
dataList
:
[
1
,
2
,
3
]
};
},
methods
:
{
show
()
{
if
(
this
.
$refs
.
paging
!=
null
)
{
this
.
$refs
.
paging
.
refresh
();
}
},
myFormateTime
(
time
)
{
return
formateTime
(
time
,
'yyyy-MM-dd hh:mm:ss'
)
},
queryList
(
page
,
size
)
{
this
.
post
({
url
:
'/vip/getOrderList'
,
showLoading
:
false
,
success
:
({
data
})
=>
{
this
.
$refs
.
paging
.
complete
(
data
.
list
);
}
});
}
}
};
</
script
>
<
style
lang=
"scss"
>
.body
{
background-color
:
whitesmoke
;
}
</
style
>
\ No newline at end of file
vedio/static/ic_coin.png
0 → 100644
View file @
61cc6aa2
1.43 KB
vedio/static/ic_gift.png
0 → 100644
View file @
61cc6aa2
1.02 KB
vedio/static/ic_shop.png
0 → 100644
View file @
61cc6aa2
1.11 KB
vedio/utils/utils.js
View file @
61cc6aa2
...
@@ -334,4 +334,25 @@ export function getSubList(length, list) {
...
@@ -334,4 +334,25 @@ export function getSubList(length, list) {
}
}
}
}
return
subList
return
subList
}
export
function
formateTime
(
dateTime
,
fmt
)
{
let
date
=
new
Date
(
dateTime
)
if
(
/
(
y+
)
/
.
test
(
fmt
))
{
fmt
=
fmt
.
replace
(
RegExp
.
$1
,
(
date
.
getFullYear
()
+
''
).
substr
(
4
-
RegExp
.
$1
.
length
));
}
let
o
=
{
'M+'
:
(
date
.
getMonth
()
+
1
).
toString
().
padStart
(
2
,
'0'
),
'd+'
:
date
.
getDate
().
toString
().
padStart
(
2
,
'0'
),
'h+'
:
date
.
getHours
(),
'm+'
:
date
.
getMinutes
(),
's+'
:
date
.
getSeconds
()
};
for
(
let
k
in
o
)
{
if
(
new
RegExp
(
`(
${
k
}
)`
).
test
(
fmt
))
{
let
str
=
o
[
k
]
+
''
;
fmt
=
fmt
.
replace
(
RegExp
.
$1
,
(
RegExp
.
$1
.
length
===
1
)
?
str
:
str
);
}
}
return
fmt
;
}
}
\ No newline at end of file
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