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
3f1d9c59
Commit
3f1d9c59
authored
Jun 18, 2024
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
da038380
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
128 additions
and
23 deletions
+128
-23
ad-popup.vue
vedio/components/ad-popup/ad-popup.vue
+1
-1
coin-popup.vue
vedio/components/coin-popup/coin-popup.vue
+4
-4
my.vue
vedio/components/home/my.vue
+2
-13
kefu-popup.vue
vedio/components/kefu-popup/kefu-popup.vue
+1
-1
pages.json
vedio/pages.json
+8
-0
vipPay.vue
vedio/pagesA/vipPay/vipPay.vue
+5
-4
cdkey.vue
vedio/pagesD/cdkey/cdkey.vue
+107
-0
No files found.
vedio/components/ad-popup/ad-popup.vue
View file @
3f1d9c59
...
...
@@ -49,7 +49,7 @@
methods
:
{
handleShow
()
{
this
.
$refs
.
adPop
.
open
(
'center'
);
this
.
startCountdown
()
//
this.startCountdown()
},
startCountdown
()
{
let
that
=
this
;
...
...
vedio/components/coin-popup/coin-popup.vue
View file @
3f1d9c59
...
...
@@ -199,10 +199,10 @@
this
.
handlePay
();
},
handlePay
()
{
//
if (this.os == 'ios') {
//
message.notify('暂不支持ios支付');
//
return
//
}
if
(
this
.
os
==
'ios'
)
{
message
.
notify
(
'暂不支持ios支付'
);
return
}
let
that
=
this
;
let
vipBean
=
this
.
vipList
[
this
.
selectedIndex
];
...
...
vedio/components/home/my.vue
View file @
3f1d9c59
...
...
@@ -111,7 +111,7 @@
<view
class=
"item_bd ellipsis"
style=
"margin-left: 58rpx;"
></view>
</view>
<view
class=
"item arrow"
@
click=
"handleFind"
>
如何找到我
兑换会员
<view
class=
"item_bd ellipsis"
style=
"margin-left: 58rpx;"
></view>
</view>
<view
class=
"item arrow"
@
click=
"handlePhone"
>
...
...
@@ -153,7 +153,6 @@
},
methods
:
{
show
()
{
// loadData() {
this
.
post
({
url
:
'/user/baseMsg'
,
showLoading
:
false
,
...
...
@@ -171,11 +170,9 @@
navigateTo
(
`/pagesA/task/task`
)
},
handleDotRecord
()
{
// 看点记录
navigateTo
(
`/pagesD/dotRecord/dotRecord`
)
},
handleUseDotRecord
()
{
// 看点消费记录
navigateTo
(
`/pagesD/useDotRecord/useDotRecord`
)
},
handleWatchRecord
()
{
...
...
@@ -191,16 +188,13 @@
navigateTo
(
`/pagesA/vipPay/vipPay`
)
},
handleFind
()
{
this
.
showMask
=
true
navigateTo
(
`/pagesD/cdkey/cdkey`
)
},
handlePhone
()
{
this
.
showKefuPop
=
true
},
paySuccess
(
largeType
)
{
// largeType=vip 开通vip
// largeType=point 购买看点
message
.
notify
(
'支付成功'
);
this
.
post
({
url
:
'/user/baseMsg'
,
showLoading
:
false
,
...
...
@@ -210,11 +204,6 @@
this
.
userBean
=
data
;
}
});
},
getPhoneNumber
(
e
)
{
console
.
log
(
e
.
detail
.
code
)
// 动态令牌
console
.
log
(
e
.
detail
.
errMsg
)
// 回调信息(成功失败都会返回)
console
.
log
(
e
.
detail
.
errno
)
// 错误码(失败时返回)
}
}
};
...
...
vedio/components/kefu-popup/kefu-popup.vue
View file @
3f1d9c59
...
...
@@ -28,7 +28,7 @@
},
data
()
{
return
{
imId
:
"58428734699
"
test
:
"
"
};
},
methods
:
{
...
...
vedio/pages.json
View file @
3f1d9c59
...
...
@@ -117,6 +117,14 @@
"navigationBarBackgroundColor"
:
"#ffffff"
,
"navigationBarTextStyle"
:
"black"
}
},{
"path"
:
"cdkey/cdkey"
,
"style"
:
{
"navigationStyle"
:
"default"
,
"navigationBarTitleText"
:
"兑换会员"
,
"navigationBarBackgroundColor"
:
"#ffffff"
,
"navigationBarTextStyle"
:
"black"
}
}]
}
],
...
...
vedio/pagesA/vipPay/vipPay.vue
View file @
3f1d9c59
...
...
@@ -263,10 +263,11 @@
// this.$refs.alertDialog.open();
},
handlePay
()
{
// if (this.os == 'ios') {
// message.notify('暂不支持ios支付');
// return
// }
if
(
this
.
os
==
'ios'
)
{
message
.
notify
(
'暂不支持ios支付'
);
return
}
let
that
=
this
;
let
vipBean
=
this
.
pointList
[
this
.
selectedIndex
];
if
(
this
.
selectedIndex
==
-
1
)
{
...
...
vedio/pagesD/cdkey/cdkey.vue
0 → 100644
View file @
3f1d9c59
<
template
>
<view
class=
"body"
>
<view
class=
"search-head"
>
<view
class=
"search-bar"
>
<input
class=
"inputkeyword"
type=
"text"
placeholder=
"请输入兑换码"
@
input=
"showChangePrompt"
:value=
"keyword"
/>
<image
v-if=
"keyword!=''"
@
click=
"clearWord"
style=
"width: 36rpx; height: 36rpx"
src=
"@/static/video/close.png"
></image>
</view>
<text
class=
"searchbutton"
@
click=
"addByCDK"
>
去兑换
</text>
</view>
</view>
</
template
>
<
script
>
import
common
from
'@/mixins/common'
;
import
{
navigateBack
,
message
,
alert
,
}
from
'@/utils/fun.js'
;
import
{
openUrl
}
from
'@/utils/app+.js'
;
const
app
=
getApp
();
export
default
{
name
:
'index'
,
mixins
:
[
common
],
data
()
{
return
{
keyword
:
''
,
};
},
methods
:
{
showChangePrompt
(
e
)
{
this
.
keyword
=
e
.
detail
.
value
},
addByCDK
()
{
if
(
this
.
keyword
==
''
)
{
message
.
notify
(
'请输入兑换码'
)
return
}
this
.
post
({
url
:
'/vip/addByCDK'
,
showLoading
:
false
,
data
:
{
cdk
:
this
.
keyword
},
success
:
({
data
})
=>
{
message
.
notify
(
'恭喜您,成功兑换会员!'
)
setTimeout
(()
=>
{
navigateBack
()
},
1000
)
}
});
}
}
};
</
script
>
<
style
lang=
"scss"
>
@import
'@/scss/uni.scss'
;
.body
{
background-color
:
whitesmoke
;
}
.search-head
{
display
:
flex
;
flex-direction
:
row
;
justify-content
:
space-between
;
align-items
:
center
;
height
:
8%
;
}
.search-bar
{
border-radius
:
60rpx
;
margin
:
10rpx
15rpx
;
padding
:
15rpx
30rpx
;
width
:
80%
;
background-color
:
white
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
space-between
}
.inputkeyword
{
flex
:
1
;
margin-left
:
30rpx
;
}
.searchbutton
{
text-align
:
center
;
color
:
#000000
;
font-size
:
30rpx
;
width
:
20%
;
margin-right
:
10rpx
;
}
</
style
>
\ 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