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
Show 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 @@
},
"abiFilters"
:
[
"armeabi-v7a"
,
"arm64-v8a"
,
"x86"
],
"autoSdkPermissions"
:
true
,
"schemes"
:
"
twofiveone
"
"schemes"
:
""
},
/*
ios打包配置
*/
"ios"
:
{
...
...
vedio/mixins/share.js
View file @
61cc6aa2
...
...
@@ -16,7 +16,8 @@ export default {
share
:
{
title
:
'更多好剧,等你来看'
,
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 @@
"navigationBarBackgroundColor"
:
"#2196f3"
,
"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 @@
</view>
<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_bd ellipsis"
style=
"margin-left: 58rpx;"
></view>
...
...
@@ -53,7 +61,7 @@
{{
versionName
}}
</view>
<coin-popup
:show=
"showAnimate"
@
close=
"showAnimate = false"
>
<coin-popup
:show=
"showAnimate"
@
close=
"showAnimate = false"
>
</coin-popup>
</view>
...
...
@@ -104,17 +112,24 @@
},
hide
()
{
},
handleDotRecord
()
{
// 看点记录
navigateTo
(
`/pagesD/dotRecord/dotRecord`
)
},
handleUseDotRecord
()
{
// 看点消费记录
navigateTo
(
`/pagesD/useDotRecord/useDotRecord`
)
},
handleWatchRecord
()
{
// navigateTo(`/pagesD/watchRecord/watchRecord`)
this
.
showAnimate
=
true
;
this
.
showAnimate
=
true
;
},
handlePayRecord
()
{
navigateTo
(
`/pagesD/payRecord/payRecord`
)
},
handleVipPay
()
{
navigateTo
(
`/pagesA/vipPay/vipPay`
)
},
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
...
...
@@ -3,9 +3,9 @@
<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
style=
"display: flex;flex-direction: row;justify-content:space-between;margin: 20rpx;background-color:white;border-radius:10rpx;padding: 20rpx;"
>
<view
style=
"display: flex;flex-direction: column;
"
>
<view
class=
"flex m-20 pd-20"
style=
"justify-content:space-between;background-color:white;border-radius:10rpx;"
>
<view
class=
"flex1
"
>
<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: 1rpx;"
>
订单编号:
{{
item
.
orderid
}}
</view>
...
...
@@ -22,22 +22,6 @@
<
script
>
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
{
name
:
'index'
,
mixins
:
[
common
],
...
...
@@ -68,8 +52,6 @@
</
script
>
<
style
lang=
"scss"
>
@import
'@/scss/uni.scss'
;
.body
{
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
...
...
@@ -335,3 +335,24 @@ export function getSubList(length, list) {
}
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