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
ef43d451
Commit
ef43d451
authored
Aug 16, 2024
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
9365b1d5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
45 deletions
+43
-45
App.vue
vedio/App.vue
+1
-1
coin-popup.vue
vedio/components/coin-popup/coin-popup.vue
+36
-40
kefu-popup.vue
vedio/components/kefu-popup/kefu-popup.vue
+5
-4
common.js
vedio/mixins/common.js
+1
-0
No files found.
vedio/App.vue
View file @
ef43d451
...
...
@@ -94,7 +94,7 @@
inviteUId
:
''
,
serviceUrl
:
''
,
downUrl
:
''
,
//
versionName
:
'
v 1.0
.0'
,
versionName
:
'
1.1
.0'
,
auth
:
false
,
// 三要素实名认证
userInfo
:
null
,
pkgName
:
'com.mints.dybrightvideo'
...
...
vedio/components/coin-popup/coin-popup.vue
View file @
ef43d451
...
...
@@ -81,8 +81,9 @@
</view>
<view
style=
"display: flex;flex-direction: column;align-items: center;"
>
<button
@
click=
"handleKefu"
open-type=
"im"
data-im-id=
"dy1d1fub8mqd"
style=
"font-size: 24rpx;color: gray;margin-top: 16rpx;margin-bottom: 18rpx;background-color: transparent;"
>
订单中如有疑问,请联系客服
</button>
<view
style=
"font-size: 29rpx;color: gray;margin-top: 16rpx;"
>
客服时间工作日 9:00-18:00
</view>
<button
class=
"button2"
open-type=
"im"
data-im-id=
"du_movie"
>
在线客服
</button>
</view>
</scroll-view>
</view>
...
...
@@ -175,11 +176,11 @@
},
handleAgree
()
{
this
.
agreeFlag
=
true
},
handleClickClose
()
{
this
.
$refs
.
coinPop
.
close
(
'bottom'
);
this
.
$emit
(
'clickClose'
);
this
.
$emit
(
'close'
);
},
handleClickClose
()
{
this
.
$refs
.
coinPop
.
close
(
'bottom'
);
this
.
$emit
(
'clickClose'
);
this
.
$emit
(
'close'
);
},
handleClose
()
{
this
.
$refs
.
coinPop
.
close
(
'bottom'
);
...
...
@@ -190,12 +191,12 @@
this
.
handlePay
();
},
handlePay
()
{
if
(
this
.
os
==
'ios'
)
{
message
.
notify
(
'iOS暂不支持购买'
);
return
}
handlePay
()
{
// if (this.os == 'ios') {
// message.notify('iOS暂不支持购买');
// return
// }
let
that
=
this
;
let
vipBean
=
this
.
vipList
[
this
.
selectedIndex
];
...
...
@@ -242,33 +243,14 @@
}
let
that
=
this
;
if
(
this
.
os
==
'ios'
)
{
if
(
!
tt
.
canIUse
(
'getOrderPayment.object.imId'
))
{
message
.
notify
(
'请升级抖音APP版本'
);
return
}
tt
.
getOrderPayment
({
orderId
:
oid
,
imId
:
ttData
.
imId
,
success
(
res
)
{
that
.
queryOrderStatus
(
largeType
,
ttData
.
tidStr
);
},
fail
(
res
)
{
// message.notify(res.errMsg);
},
});
}
else
{
tt
.
getOrderPayment
({
orderId
:
oid
,
success
(
res
)
{
that
.
queryOrderStatus
(
largeType
,
ttData
.
tidStr
);
},
fail
(
res
)
{
// message.notify(res.errMsg);
},
});
}
tt
.
getOrderPayment
({
orderId
:
oid
,
success
(
res
)
{
that
.
queryOrderStatus
(
largeType
,
ttData
.
tidStr
);
},
fail
(
res
)
{
},
});
},
queryOrderStatus
(
largeType
,
tid
)
{
let
that
=
this
;
...
...
@@ -391,4 +373,18 @@
}
}
}
.button2
{
width
:
300rpx
;
height
:
50rpx
;
line-height
:
50rpx
;
text-align
:
center
;
margin
:
10rpx
20rpx
;
border-radius
:
10rpx
;
background-color
:
white
;
border
:
1px
orange
solid
;
color
:
orange
;
font-size
:
26rpx
;
box-shadow
:
0
0
2px
0px
rgba
(
255
,
255
,
255
,
0
.1
);
}
</
style
>
\ No newline at end of file
vedio/components/kefu-popup/kefu-popup.vue
View file @
ef43d451
...
...
@@ -5,8 +5,9 @@
<image
@
click=
"onClose"
style=
"width: 50rpx; height: 50rpx;margin-left:auto;margin-right: 30rpx;
margin-bottom: 30rpx;"
src=
"https://mints-web.oss-cn-beijing.aliyuncs.com/images/ic_close_white.png"
></image>
<view
class=
"content"
>
<text
style=
"font-size: 40rpx;margin-bottom: 15rpx;"
>
客服时间: 工作日9:00-18:00
</text>
<text
class=
"button1"
@
click=
"handleBtn1"
>
客服电话
</text>
<button
class=
"button2"
open-type=
"im"
data-im-id=
"d
y1d1fub8mqd"
>
客服在线
</button>
<button
class=
"button2"
open-type=
"im"
data-im-id=
"d
u_movie"
>
在线客服
</button>
</view>
</view>
</uni-popup>
...
...
@@ -52,11 +53,11 @@
this
.
onClose
()
},
imCallback
(
e
)
{
console
.
log
(
"跳转IM客服成功"
,
e
.
detail
);
console
.
log
(
"跳转IM客服成功"
,
e
.
detail
);
this
.
onClose
()
},
onimError
(
e
)
{
console
.
log
(
"拉起IM客服失败"
,
e
.
detail
);
console
.
log
(
"拉起IM客服失败"
,
e
.
detail
);
this
.
onClose
()
}
},
...
...
@@ -65,7 +66,7 @@
handler
:
function
(
newVal
,
oldVal
)
{
if
(
newVal
)
{
this
.
handleShow
();
}
}
},
immediate
:
true
}
...
...
vedio/mixins/common.js
View file @
ef43d451
...
...
@@ -131,6 +131,7 @@ export default {
Object
.
assign
(
header
,
{
token
:
uni
.
getStorageSync
(
'token'
),
pkgName
:
app
.
globalData
.
pkgName
,
version
:
app
.
globalData
.
versionName
,
proChannel
:
uniChannel
})
...
...
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