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
22830e42
Commit
22830e42
authored
Nov 20, 2024
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
92fa688d
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
111 additions
and
95 deletions
+111
-95
follow.vue
vedio/components/home/follow.vue
+1
-1
index.vue
vedio/components/home/index.vue
+2
-3
my.vue
vedio/components/home/my.vue
+1
-1
player.vue
vedio/components/player/player.vue
+8
-3
pages.json
vedio/pages.json
+8
-2
home.vue
vedio/pages/home.vue
+6
-7
vipPay.vue
vedio/pagesA/vipPay/vipPay.vue
+85
-78
No files found.
vedio/components/home/follow.vue
View file @
22830e42
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
mounted
()
{
mounted
()
{
uni
.
getSystemInfo
({
uni
.
getSystemInfo
({
success
:
(
res
=>
{
success
:
(
res
=>
{
this
.
clientHeight
=
res
.
windowHeight
-
42
;
this
.
clientHeight
=
res
.
windowHeight
-
50
;
})
})
});
});
},
},
...
...
vedio/components/home/index.vue
View file @
22830e42
...
@@ -182,8 +182,7 @@
...
@@ -182,8 +182,7 @@
style=
"width: 30rpx;height: 30rpx;display: flex;align-items: right;margin: 10rpx;"
style=
"width: 30rpx;height: 30rpx;display: flex;align-items: right;margin: 10rpx;"
src=
"../../static/index/ic_quit_white.png"
mode=
"aspectFill"
></image>
src=
"../../static/index/ic_quit_white.png"
mode=
"aspectFill"
></image>
<view
@
click=
"handleBottomPlay(newRecordBean)"
<view
@
click=
"handleBottomPlay(newRecordBean)"
style=
"width: 160rpx;height: 50rpx;line-height: 50rpx;text-align: center;background-color: red;border-radius:30rpx;color: white;font-size: 24rpx;margin-right: 20rpx;"
>
style=
"width: 160rpx;height: 50rpx;line-height: 50rpx;text-align: center;background-color: red;border-radius:30rpx;color: white;font-size: 24rpx;margin-right: 20rpx;"
>
继续观看
继续观看
</view>
</view>
</view>
</view>
...
@@ -242,7 +241,7 @@
...
@@ -242,7 +241,7 @@
mounted
()
{
mounted
()
{
uni
.
getSystemInfo
({
uni
.
getSystemInfo
({
success
:
(
res
=>
{
success
:
(
res
=>
{
this
.
clientHeight
=
res
.
windowHeight
-
42
;
this
.
clientHeight
=
res
.
windowHeight
-
50
;
})
})
});
});
// 匹配视频
// 匹配视频
...
...
vedio/components/home/my.vue
View file @
22830e42
...
@@ -162,7 +162,7 @@
...
@@ -162,7 +162,7 @@
mounted
()
{
mounted
()
{
uni
.
getSystemInfo
({
uni
.
getSystemInfo
({
success
:
(
res
=>
{
success
:
(
res
=>
{
this
.
clientHeight
=
res
.
windowHeight
-
42
;
this
.
clientHeight
=
res
.
windowHeight
-
50
;
})
})
});
});
},
},
...
...
vedio/components/player/player.vue
View file @
22830e42
...
@@ -262,13 +262,13 @@
...
@@ -262,13 +262,13 @@
// 监听视频播放完成
// 监听视频播放完成
this
.
ad
.
onClose
((
data
)
=>
{
this
.
ad
.
onClose
((
data
)
=>
{
uni
.
hideLoading
();
uni
.
hideLoading
();
if
(
data
.
isEnded
)
{
if
(
data
.
isEnded
)
{
if
(
that
.
showRewardAdMorePop
)
{
if
(
that
.
showRewardAdMorePop
)
{
that
.
showRewardAdMorePop
=
false
that
.
showRewardAdMorePop
=
false
that
.
pm
.
setCurrentUnlock
()
that
.
pm
.
setCurrentUnlock
()
that
.
addRewardPoint
()
that
.
addRewardPoint
()
that
.
commitVideo
()
that
.
commitVideo
()
message
.
notify
(
"正在为您解锁剧集"
)
message
.
notify
(
"正在为您解锁剧集"
)
}
else
if
(
that
.
showRewardAdPop
)
{
}
else
if
(
that
.
showRewardAdPop
)
{
that
.
adUnlock
()
that
.
adUnlock
()
...
@@ -295,6 +295,10 @@
...
@@ -295,6 +295,10 @@
var
countDownSeconds
=
3
var
countDownSeconds
=
3
that
.
countDown
=
countDownSeconds
that
.
countDown
=
countDownSeconds
const
timer
=
setInterval
(()
=>
{
const
timer
=
setInterval
(()
=>
{
if
(
!
that
.
showRewardAdPop
)
{
clearInterval
(
timer
)
}
if
(
countDownSeconds
>
0
)
{
if
(
countDownSeconds
>
0
)
{
that
.
countDown
=
countDownSeconds
that
.
countDown
=
countDownSeconds
countDownSeconds
--
countDownSeconds
--
...
@@ -315,6 +319,7 @@
...
@@ -315,6 +319,7 @@
},
},
closeAdPop
()
{
closeAdPop
()
{
this
.
showRewardAdPop
=
false
this
.
showRewardAdPop
=
false
this
.
pm
.
toggleCustomDialog
()
},
},
closeAdMorePop
()
{
closeAdMorePop
()
{
this
.
showRewardAdMorePop
=
false
this
.
showRewardAdMorePop
=
false
...
...
vedio/pages.json
View file @
22830e42
...
@@ -37,8 +37,10 @@
...
@@ -37,8 +37,10 @@
"root"
:
"pagesC"
,
"root"
:
"pagesC"
,
"pages"
:
[{
"pages"
:
[{
"path"
:
"ttvideo/ttVideoDetail"
,
"path"
:
"ttvideo/ttVideoDetail"
,
"usingComponents"
:
{
"style"
:
{
"tt-video-player"
:
"ext://industry/video-player"
"backgroundColor"
:
"#000000"
,
"navigationBarBackgroundColor"
:
"#000000"
,
"navigationBarTextStyle"
:
"#ffffff"
}
}
},
{
},
{
"path"
:
"playlet/index"
,
"path"
:
"playlet/index"
,
...
@@ -99,9 +101,13 @@
...
@@ -99,9 +101,13 @@
"backgroundColor"
:
"#f5f5f5"
,
"backgroundColor"
:
"#f5f5f5"
,
"navigationStyle"
:
"default"
,
"navigationStyle"
:
"default"
,
"navigationBarTextStyle"
:
"black"
,
"navigationBarTextStyle"
:
"black"
,
"navigationBarBackgroundColor"
:
"#ffffff"
,
"app-plus"
:
{
"app-plus"
:
{
"bounce"
:
"none"
,
"bounce"
:
"none"
,
"scrollIndicator"
:
"none"
"scrollIndicator"
:
"none"
},
"usingComponents"
:
{
"tt-video-player"
:
"ext://industry/video-player"
}
}
},
},
"condition"
:
{
//模式配置,仅开发期间生效
"condition"
:
{
//模式配置,仅开发期间生效
...
...
vedio/pages/home.vue
View file @
22830e42
...
@@ -43,8 +43,7 @@
...
@@ -43,8 +43,7 @@
</view>
</view>
</view>
</view>
<view
v-if=
"showEditBar"
class=
"editBar"
<view
v-if=
"showEditBar"
class=
"editBar"
>
:style=
"'padding-top:35rpx;padding-bottom:' + bottomSafePadding + 'px;'"
>
<view
class=
"editItem"
@
click=
"!isFullChoice?fullChoice():noChoice()"
>
<view
class=
"editItem"
@
click=
"!isFullChoice?fullChoice():noChoice()"
>
{{
!
isFullChoice
?
'全选'
:
'全不选'
}}
{{
!
isFullChoice
?
'全选'
:
'全不选'
}}
</view>
</view>
...
@@ -194,13 +193,13 @@
...
@@ -194,13 +193,13 @@
position
:
absolute
;
position
:
absolute
;
bottom
:
0
;
bottom
:
0
;
width
:
100%
;
width
:
100%
;
height
:
60
r
px
;
height
:
60px
;
background
:
white
;
background
:
white
;
display
:
flex
;
display
:
flex
;
.editItem
{
.editItem
{
height
:
60
r
px
;
height
:
60px
;
line-height
:
60
r
px
;
line-height
:
60px
;
text-align
:
center
;
text-align
:
center
;
width
:
50%
;
width
:
50%
;
}
}
...
@@ -210,12 +209,12 @@
...
@@ -210,12 +209,12 @@
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
background-color
:
white
;
background-color
:
white
;
height
:
42
px
;
height
:
50
px
;
.tab
{
.tab
{
flex
:
1
;
flex
:
1
;
text-align
:
center
;
text-align
:
center
;
font-size
:
1
2
px
;
font-size
:
1
4
px
;
font-weight
:
bold
;
font-weight
:
bold
;
color
:
black
;
color
:
black
;
...
...
vedio/pagesA/vipPay/vipPay.vue
View file @
22830e42
...
@@ -62,17 +62,17 @@
...
@@ -62,17 +62,17 @@
<view
v-else
style=
"display: flex;align-items: center;font-size: 40rpx;
<view
v-else
style=
"display: flex;align-items: center;font-size: 40rpx;
color: #f2b068;
color: #f2b068;
font-weight: 700;"
>
font-weight: 700;"
>
{{
multiply
(
item
.
firstPayPrice
)
}}
<image
style=
"width: 50rpx;height: 50rpx;display: flex;margin-right: 10rpx;"
<image
style=
"width: 50rpx;height: 50rpx;display: flex;margin-right: 10rpx;"
src=
"@/static/ic_zuan.png"
>
src=
"@/static/ic_zuan.png"
>
</image>
</image>
+
{{
multiply
(
item
.
firstPayPrice
)
}}
</view>
</view>
<view
class=
"name row"
v-if=
"item.title!=null&&item.title!=''"
>
<view
class=
"name row"
v-if=
"item.title!=null&&item.title!=''"
>
{{
item
.
title
}}
{{
item
.
title
}}
</view>
</view>
<view
class=
"origin row"
v-if=
"item.remarks!=null&&item.remarks!=''"
>
<view
class=
"origin row"
v-if=
"item.remarks!=null&&item.remarks!=''
&&os=='android'
"
>
{{
item
.
remarks
}}
{{
item
.
remarks
}}
</view>
</view>
</view>
</view>
...
@@ -114,12 +114,12 @@
...
@@ -114,12 +114,12 @@
<text>
客服时间
</text>
<text>
客服时间
</text>
<text>
工作日9:00-18:00
</text>
<text>
工作日9:00-18:00
</text>
</view>
</view>
<kefu-popup
:show=
"showKefuPop"
@
close=
"showKefuPop = false"
/>
<kefu-popup
:show=
"showKefuPop"
@
close=
"showKefuPop = false"
/>
<uni-popup
type=
"center"
ref=
"select"
>
<uni-popup
type=
"center"
ref=
"select"
>
<view
class=
"text-box"
>
<view
class=
"text-box"
>
{{
slotParam
}}
{{
slotParam
}}
</view>
</view>
</uni-popup>
</uni-popup>
</view>
</view>
</
template
>
</
template
>
...
@@ -147,15 +147,15 @@
...
@@ -147,15 +147,15 @@
pointList
:
[],
pointList
:
[],
selectedIndex
:
0
,
selectedIndex
:
0
,
selectedVipIndex
:
-
1
,
selectedVipIndex
:
-
1
,
btnText
:
''
,
btnText
:
''
,
slotParam
:
''
,
slotParam
:
''
,
vedioId
:
''
,
vedioId
:
''
,
userBean
:
{},
userBean
:
{},
os
:
'android'
,
os
:
'android'
,
showKefuPop
:
false
showKefuPop
:
false
}
}
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
this
.
vedioId
=
options
.
vedioId
this
.
vedioId
=
options
.
vedioId
let
that
=
this
;
let
that
=
this
;
if
(
tt
.
getSystemInfoSync
().
platform
===
'ios'
)
{
if
(
tt
.
getSystemInfoSync
().
platform
===
'ios'
)
{
...
@@ -207,7 +207,7 @@
...
@@ -207,7 +207,7 @@
if
(
that
.
os
==
'ios'
)
{
if
(
that
.
os
==
'ios'
)
{
that
.
btnText
=
"立即支付"
+
that
.
multiply
(
that
.
pointList
[
i
]
that
.
btnText
=
"立即支付"
+
that
.
multiply
(
that
.
pointList
[
i
]
.
yhqRateBalance
)
+
"钻石,已优惠"
+
.
yhqRateBalance
)
+
"钻石,已优惠"
+
that
.
multiply
(
tempYhq
)
+
"钻石"
that
.
multiply
(
tempYhq
)
+
"钻石"
}
else
{
}
else
{
that
.
btnText
=
"立即支付"
+
that
.
pointList
[
i
].
yhqRateBalance
+
"元,已优惠"
+
that
.
btnText
=
"立即支付"
+
that
.
pointList
[
i
].
yhqRateBalance
+
"元,已优惠"
+
...
@@ -236,16 +236,16 @@
...
@@ -236,16 +236,16 @@
}
}
if
(
that
.
pointList
[
0
].
yhqRateBalance
!=
null
)
{
if
(
that
.
pointList
[
0
].
yhqRateBalance
!=
null
)
{
let
tempYhq
=
new
Decimal
(
cashStr
).
sub
(
new
Decimal
(
that
.
pointList
[
0
]
let
tempYhq
=
new
Decimal
(
cashStr
).
sub
(
new
Decimal
(
that
.
pointList
[
0
]
.
yhqRateBalance
)).
toNumber
()
.
yhqRateBalance
)).
toNumber
()
if
(
that
.
os
==
'ios'
)
{
if
(
that
.
os
==
'ios'
)
{
that
.
btnText
=
"立即支付"
+
that
.
multiply
(
that
.
pointList
[
i
]
that
.
btnText
=
"立即支付"
+
that
.
multiply
(
that
.
pointList
[
i
]
.
yhqRateBalance
)
+
"钻石,已优惠"
+
.
yhqRateBalance
)
+
"钻石,已优惠"
+
that
.
multiply
(
tempYhq
)
+
"钻石"
that
.
multiply
(
tempYhq
)
+
"钻石"
}
else
{
}
else
{
that
.
btnText
=
"立即支付"
+
that
.
pointList
[
i
].
yhqRateBalance
+
"元,已优惠"
+
that
.
btnText
=
"立即支付"
+
that
.
pointList
[
i
].
yhqRateBalance
+
"元,已优惠"
+
tempYhq
+
"元"
tempYhq
+
"元"
}
}
}
}
if
(
that
.
pointList
[
0
].
weixin
)
{
if
(
that
.
pointList
[
0
].
weixin
)
{
that
.
wxShowFlag
=
true
that
.
wxShowFlag
=
true
...
@@ -275,41 +275,44 @@
...
@@ -275,41 +275,44 @@
// this.handlePay();
// this.handlePay();
if
(
this
.
selectedIndex
==
-
1
)
{
if
(
this
.
selectedIndex
==
-
1
)
{
// vip充值
// vip充值
let
cashStr
=
this
.
vipList
[
this
.
selectedVipIndex
].
firstPayPrice
let
cashStr
=
this
.
vipList
[
this
.
selectedVipIndex
].
firstPayPrice
if
(
that
.
os
==
'ios'
)
{
if
(
that
.
os
==
'ios'
)
{
that
.
btnText
=
"立即支付"
+
that
.
multiply
(
cashStr
)
+
"钻石"
that
.
btnText
=
"立即支付"
+
that
.
multiply
(
cashStr
)
+
"钻石"
}
else
{
}
else
{
that
.
btnText
=
"立即支付"
+
cashStr
+
"元"
that
.
btnText
=
"立即支付"
+
cashStr
+
"元"
}
}
if
(
that
.
vipList
[
this
.
selectedVipIndex
].
yhqRateBalance
!=
null
)
{
if
(
that
.
vipList
[
this
.
selectedVipIndex
].
yhqRateBalance
!=
null
)
{
let
tempYhq
=
new
Decimal
(
cashStr
).
sub
(
new
Decimal
(
that
.
vipList
[
this
.
selectedVipIndex
]
let
tempYhq
=
new
Decimal
(
cashStr
).
sub
(
new
Decimal
(
that
.
vipList
[
this
.
selectedVipIndex
]
.
yhqRateBalance
)).
toNumber
()
.
yhqRateBalance
)).
toNumber
()
if
(
that
.
os
==
'ios'
)
{
if
(
that
.
os
==
'ios'
)
{
that
.
btnText
=
"立即支付"
+
that
.
multiply
(
that
.
vipList
[
selectedVipIndex
]
that
.
btnText
=
"立即支付"
+
that
.
multiply
(
that
.
vipList
[
selectedVipIndex
]
.
yhqRateBalance
)
+
"钻石,已优惠"
+
.
yhqRateBalance
)
+
"钻石,已优惠"
+
that
.
multiply
(
tempYhq
)
+
"钻石"
that
.
multiply
(
tempYhq
)
+
"钻石"
}
else
{
}
else
{
that
.
btnText
=
"立即支付"
+
that
.
vipList
[
this
.
selectedVipIndex
].
yhqRateBalance
+
"元,已优惠"
+
tempYhq
+
that
.
btnText
=
"立即支付"
+
that
.
vipList
[
this
.
selectedVipIndex
].
yhqRateBalance
+
"元,已优惠"
+
"元"
tempYhq
+
"元"
}
}
}
}
}
else
{
}
else
{
let
cashStr
=
this
.
pointList
[
this
.
selectedIndex
].
firstPayPrice
let
cashStr
=
this
.
pointList
[
this
.
selectedIndex
].
firstPayPrice
if
(
that
.
os
==
'ios'
)
{
if
(
that
.
os
==
'ios'
)
{
that
.
btnText
=
"立即支付"
+
that
.
multiply
(
cashStr
)
+
"钻石"
that
.
btnText
=
"立即支付"
+
that
.
multiply
(
cashStr
)
+
"钻石"
}
else
{
}
else
{
that
.
btnText
=
"立即支付"
+
cashStr
+
"元"
that
.
btnText
=
"立即支付"
+
cashStr
+
"元"
}
}
if
(
that
.
pointList
[
this
.
selectedIndex
].
yhqRateBalance
!=
null
)
{
if
(
that
.
pointList
[
this
.
selectedIndex
].
yhqRateBalance
!=
null
)
{
let
tempYhq
=
new
Decimal
(
cashStr
).
sub
(
new
Decimal
(
that
.
pointList
[
this
.
selectedIndex
]
let
tempYhq
=
new
Decimal
(
cashStr
).
sub
(
new
Decimal
(
that
.
pointList
[
this
.
selectedIndex
]
.
yhqRateBalance
)).
toNumber
()
.
yhqRateBalance
)).
toNumber
()
if
(
that
.
os
==
'ios'
)
{
if
(
that
.
os
==
'ios'
)
{
that
.
btnText
=
"立即支付"
+
that
.
multiply
(
that
.
pointList
[
this
.
selectedIndex
].
yhqRateBalance
)
+
"钻石,已优惠"
+
that
.
btnText
=
"立即支付"
+
that
.
multiply
(
that
.
pointList
[
this
.
selectedIndex
].
yhqRateBalance
)
+
that
.
multiply
(
tempYhq
)
+
"钻石"
"钻石,已优惠"
+
}
else
{
that
.
multiply
(
tempYhq
)
+
"钻石"
that
.
btnText
=
"立即支付"
+
that
.
pointList
[
this
.
selectedIndex
].
yhqRateBalance
+
"元,已优惠"
+
tempYhq
+
"元"
}
else
{
that
.
btnText
=
"立即支付"
+
that
.
pointList
[
this
.
selectedIndex
].
yhqRateBalance
+
"元,已优惠"
+
tempYhq
+
"元"
}
}
}
}
}
}
...
@@ -322,39 +325,42 @@
...
@@ -322,39 +325,42 @@
if
(
this
.
selectedIndex
==
-
1
)
{
if
(
this
.
selectedIndex
==
-
1
)
{
// vip充值
// vip充值
let
cashStr
=
this
.
vipList
[
this
.
selectedVipIndex
].
firstPayPrice
let
cashStr
=
this
.
vipList
[
this
.
selectedVipIndex
].
firstPayPrice
if
(
that
.
os
==
'ios'
)
{
if
(
that
.
os
==
'ios'
)
{
that
.
btnText
=
"立即支付"
+
that
.
multiply
(
cashStr
)
+
"钻石"
that
.
btnText
=
"立即支付"
+
that
.
multiply
(
cashStr
)
+
"钻石"
}
else
{
}
else
{
that
.
btnText
=
"立即支付"
+
cashStr
+
"元"
that
.
btnText
=
"立即支付"
+
cashStr
+
"元"
}
}
if
(
that
.
vipList
[
this
.
selectedVipIndex
].
yhqRateBalance
!=
null
)
{
if
(
that
.
vipList
[
this
.
selectedVipIndex
].
yhqRateBalance
!=
null
)
{
let
tempYhq
=
new
Decimal
(
cashStr
).
sub
(
new
Decimal
(
that
.
vipList
[
this
.
selectedVipIndex
]
let
tempYhq
=
new
Decimal
(
cashStr
).
sub
(
new
Decimal
(
that
.
vipList
[
this
.
selectedVipIndex
]
.
yhqRateBalance
)).
toNumber
()
.
yhqRateBalance
)).
toNumber
()
if
(
that
.
os
==
'ios'
)
{
if
(
that
.
os
==
'ios'
)
{
that
.
btnText
=
"立即支付"
+
that
.
multiply
(
that
.
vipList
[
selectedVipIndex
]
that
.
btnText
=
"立即支付"
+
that
.
multiply
(
that
.
vipList
[
selectedVipIndex
]
.
yhqRateBalance
)
+
"钻石,已优惠"
+
.
yhqRateBalance
)
+
"钻石,已优惠"
+
that
.
multiply
(
tempYhq
)
+
"钻石"
that
.
multiply
(
tempYhq
)
+
"钻石"
}
else
{
}
else
{
that
.
btnText
=
"立即支付"
+
that
.
vipList
[
this
.
selectedVipIndex
].
yhqRateBalance
+
"元,已优惠"
+
tempYhq
+
that
.
btnText
=
"立即支付"
+
that
.
vipList
[
this
.
selectedVipIndex
].
yhqRateBalance
+
"元,已优惠"
+
"元"
tempYhq
+
}
"元"
}
}
}
}
else
{
}
else
{
let
cashStr
=
this
.
pointList
[
this
.
selectedIndex
].
firstPayPrice
let
cashStr
=
this
.
pointList
[
this
.
selectedIndex
].
firstPayPrice
if
(
that
.
os
==
'ios'
)
{
if
(
that
.
os
==
'ios'
)
{
that
.
btnText
=
"立即支付"
+
that
.
multiply
(
cashStr
)
+
"钻石"
that
.
btnText
=
"立即支付"
+
that
.
multiply
(
cashStr
)
+
"钻石"
}
else
{
}
else
{
that
.
btnText
=
"立即支付"
+
cashStr
+
"元"
that
.
btnText
=
"立即支付"
+
cashStr
+
"元"
}
}
if
(
that
.
pointList
[
this
.
selectedIndex
].
yhqRateBalance
!=
null
)
{
if
(
that
.
pointList
[
this
.
selectedIndex
].
yhqRateBalance
!=
null
)
{
let
tempYhq
=
new
Decimal
(
cashStr
).
sub
(
new
Decimal
(
that
.
pointList
[
this
.
selectedIndex
]
let
tempYhq
=
new
Decimal
(
cashStr
).
sub
(
new
Decimal
(
that
.
pointList
[
this
.
selectedIndex
]
.
yhqRateBalance
)).
toNumber
()
.
yhqRateBalance
)).
toNumber
()
if
(
that
.
os
==
'ios'
)
{
if
(
that
.
os
==
'ios'
)
{
that
.
btnText
=
"立即支付"
+
that
.
multiply
(
that
.
pointList
[
this
.
selectedIndex
].
yhqRateBalance
)
+
"钻石,已优惠"
+
that
.
btnText
=
"立即支付"
+
that
.
multiply
(
that
.
pointList
[
this
.
selectedIndex
].
yhqRateBalance
)
+
that
.
multiply
(
tempYhq
)
+
"钻石"
"钻石,已优惠"
+
}
else
{
that
.
multiply
(
tempYhq
)
+
"钻石"
that
.
btnText
=
"立即支付"
+
that
.
pointList
[
this
.
selectedIndex
].
yhqRateBalance
+
"元,已优惠"
+
tempYhq
+
"元"
}
else
{
that
.
btnText
=
"立即支付"
+
that
.
pointList
[
this
.
selectedIndex
].
yhqRateBalance
+
"元,已优惠"
+
tempYhq
+
"元"
}
}
}
}
}
}
...
@@ -405,9 +411,9 @@
...
@@ -405,9 +411,9 @@
that
.
ttPay
(
largeType
,
res
.
orderId
,
ttData
);
that
.
ttPay
(
largeType
,
res
.
orderId
,
ttData
);
},
},
fail
(
res
)
{
fail
(
res
)
{
// message.notify(res.errMsg);
// message.notify(res.errMsg);
that
.
slotParam
=
JSON
.
stringify
(
res
.
errMsg
);
that
.
slotParam
=
JSON
.
stringify
(
res
.
errMsg
);
console
.
log
(
'requestOrder res.errMsg'
,
res
)
console
.
log
(
'requestOrder res.errMsg'
,
res
)
that
.
$refs
.
select
.
open
(
'center'
);
that
.
$refs
.
select
.
open
(
'center'
);
},
},
});
});
...
@@ -572,12 +578,13 @@
...
@@ -572,12 +578,13 @@
text
{
text
{
color
:
#2c2c2c
;
color
:
#2c2c2c
;
}
}
}
}
.text-box
{
word-break
:
break-all
;
.text-box
{
margin
:
10rpx
;
word-break
:
break-all
;
padding
:
10rpx
;
margin
:
10rpx
;
background-color
:
white
;
padding
:
10rpx
;
color
:
black
;
background-color
:
white
;
color
:
black
;
}
}
</
style
>
</
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