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
9341882d
Commit
9341882d
authored
Jun 05, 2024
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
64ac8765
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
67 additions
and
34 deletions
+67
-34
index.vue
vedio/components/home/index.vue
+1
-1
my.vue
vedio/components/home/my.vue
+2
-2
home.vue
vedio/pages/home.vue
+1
-1
ttVideoDetail.vue
vedio/pagesC/ttvideo/ttVideoDetail.vue
+2
-1
invite.vue
vedio/pagesD/invite/invite.vue
+61
-29
No files found.
vedio/components/home/index.vue
View file @
9341882d
...
...
@@ -483,7 +483,7 @@
.search-wrap
{
height
:
80rpx
;
margin
:
10rpx
12rpx
;
margin
:
10rpx
0
;
display
:
flex
;
flex-direction
:
row
;
}
...
...
vedio/components/home/my.vue
View file @
9341882d
...
...
@@ -94,11 +94,11 @@
我的订单
<view
class=
"item_bd ellipsis"
style=
"margin-left: 58rpx;"
></view>
</view>
<view
v-if=
"false"
class=
"item arrow"
@
click=
"handle
DotRecord
"
>
<view
v-if=
"false"
class=
"item arrow"
@
click=
"handle
Coupon
"
>
优惠券
<view
class=
"item_bd ellipsis"
style=
"margin-left: 58rpx;"
></view>
</view>
<view
class=
"item arrow"
@
click=
"handle
Use
DotRecord"
>
<view
class=
"item arrow"
@
click=
"handleDotRecord"
>
看点记录
<view
class=
"item_bd ellipsis"
style=
"margin-left: 58rpx;"
></view>
</view>
...
...
vedio/pages/home.vue
View file @
9341882d
<
template
>
<view
class=
"body"
>
<view
style=
"height: 9
2
%;"
>
<view
style=
"height: 9
4
%;"
>
<indexPage
v-show=
"currentPage==0"
ref=
"index"
/>
<recommendPage
v-show=
"currentPage==1"
ref=
"recommend"
/>
<followPage
v-on:showEditBarH=
"showEditBarH"
v-on:goRecommend=
"goRecommend"
v-show=
"currentPage==2"
...
...
vedio/pagesC/ttvideo/ttVideoDetail.vue
View file @
9341882d
...
...
@@ -179,7 +179,8 @@
success
:
({
data
})
=>
{
this
.
showAdForServer
=
data
.
douyinAdTipOpen
;
// this.showAdForServer = data.douyinAdTipOpen;
this
.
showAdForServer
=
true
;
}
});
...
...
vedio/pagesD/invite/invite.vue
View file @
9341882d
<
template
>
<view
class=
"body"
>
<z-paging
style=
"height:
88
%;"
>
<z-paging
style=
"height:
92
%;"
>
<view
class=
"pageclass"
>
<image
style=
"width: 750rpx; height: 476rpx"
src=
"https://mints-web.oss-cn-beijing.aliyuncs.com/images/bg_invite0.png"
mode=
"scaleToFill"
>
...
...
@@ -48,7 +48,7 @@
<button
open-type=
"share"
style=
"
display: flex;
color: #9d3c13;
font-size: 26rpx;
font-size: 26rpx;
background-color: #fdbd3d;
height: 80rpx;
justify-content: center;
...
...
@@ -57,7 +57,7 @@
邀请好友
</button>
</view>
</view>
</view>
...
...
@@ -65,25 +65,57 @@
</
template
>
<
script
>
import
common
from
'@/mixins/common'
;
const
app
=
getApp
();
const
app
=
getApp
();
import
{
formateTime
}
from
"@/utils/utils.js"
}
from
"@/utils/utils.js"
import
{
navigateTo
,
message
,
loading
}
from
'@/utils/fun.js'
;
export
default
{
name
:
'invite'
,
mixins
:
[
common
],
data
()
{
return
{
inviteData
:
{},
share
:
{
title
:
'更多好剧,等你来看'
,
imageUrl
:
'https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_movie.png'
,
path
:
'/pages/loading?shareId='
inviteData
:
{},
share
:
{
title
:
'更多好剧,等你来看'
,
imageUrl
:
'https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_movie.png'
,
path
:
'/pages/loading?shareId='
}
};
},
methods
:
{
async
onShareAppMessage
(
option
)
{
const
title
=
'更多好剧,等你来看'
;
return
{
title
,
// 这是要转发的小程序标题
desc
:
""
,
path
:
this
.
share
.
path
+
getApp
().
globalData
.
userId
,
// ?后面的参数会在转发页面打开时传入onLoad方法
imageUrl
:
this
.
share
.
imageUrl
,
// 支持本地或远程图片,默认是小程序 icon
templateId
:
"这是开发者后台设置的分享素材模板id"
,
success
()
{
message
.
notify
(
'分享成功22222123'
);
console
.
log
(
"转发发布器已调起,并不意味着用户转发成功,微头条不提供这个时机的回调"
);
},
fail
()
{
message
.
notify
(
'分享失败1111321'
);
console
.
log
(
"转发发布器调起失败"
);
},
};
},
getTitle
()
{
return
new
Promise
((
resolve
)
=>
{
setTimeout
(()
=>
{
resolve
(
"This is a mock title"
);
},
2000
);
});
},
loadData
()
{
this
.
post
({
url
:
'/vTask/share/pageMsg'
,
...
...
@@ -93,25 +125,25 @@ const app = getApp();
})
=>
{
this
.
inviteData
=
data
;
}
});
},
onShareAppMessage
(
res
)
{
//发送给朋友
return
{
title
:
this
.
share
.
title
,
imageUrl
:
this
.
share
.
imageUrl
,
path
:
this
.
share
.
path
+
getApp
().
globalData
.
userId
,
}
},
handleRule
()
{
uni
.
showModal
({
title
:
'邀请好友规则'
,
content
:
'1、本周邀请新用户活动!邀请好友越多,获得奖励越高,邀请达到页面展示的人数时,系统发放对应档位的奖励看点,各档位可累积获得。邀请第8人及以上,每多邀请1位新用户可得120看点,上不封顶。
\
n
\
n2、本活动为限时活动,用户需要在活动页面展示的时间内邀请成功,可获得本活动页面展示的奖励看点。注意:通过签到分享、早中晚任务分享的奖励不计入此活动奖励。
\
n
\
n3、被邀请的好友必须是没有使用过河狸刷剧的新用户。好友点击你分享的链接,进入本软件内播放剧集,算邀请成功。
\
n
\
n4、本页面的邀请记录明细中只展示通过当前活动页面邀请到的用户。在之前活动期内邀请成功的用户不计入此活动,获得的奖励请到【我的-看点记录】里查看。
\
n
\
n5、郑重声明,为了保障广大用户的利益,对于非正常邀请用户,平台将取消其参加活动资格,并扣除相应奖励。'
,
showCancel
:
false
,
confirmColor
:
'#33dd44'
,
confirmText
:
'确定'
})
});
},
// onShareAppMessage(res) { //发送给朋友
// return {
// title: this.share.title,
// imageUrl: this.share.imageUrl,
// path: this.share.path + getApp().globalData.userId,
// }
// },
handleRule
()
{
uni
.
showModal
({
title
:
'邀请好友规则'
,
content
:
'1、本周邀请新用户活动!邀请好友越多,获得奖励越高,邀请达到页面展示的人数时,系统发放对应档位的奖励看点,各档位可累积获得。邀请第8人及以上,每多邀请1位新用户可得120看点,上不封顶。
\
n
\
n2、本活动为限时活动,用户需要在活动页面展示的时间内邀请成功,可获得本活动页面展示的奖励看点。注意:通过签到分享、早中晚任务分享的奖励不计入此活动奖励。
\
n
\
n3、被邀请的好友必须是没有使用过河狸刷剧的新用户。好友点击你分享的链接,进入本软件内播放剧集,算邀请成功。
\
n
\
n4、本页面的邀请记录明细中只展示通过当前活动页面邀请到的用户。在之前活动期内邀请成功的用户不计入此活动,获得的奖励请到【我的-看点记录】里查看。
\
n
\
n5、郑重声明,为了保障广大用户的利益,对于非正常邀请用户,平台将取消其参加活动资格,并扣除相应奖励。'
,
showCancel
:
false
,
confirmColor
:
'#33dd44'
,
confirmText
:
'确定'
})
}
}
};
...
...
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