Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
ybf
Project
Project
Details
Activity
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
xulili
ybf
Commits
a58777c4
Commit
a58777c4
authored
Apr 21, 2020
by
leiqingsong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改活动详情
parent
03700c6d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
15 deletions
+22
-15
activeDetail.vue
wx_application/src/views/active/activeDetail.vue
+11
-11
createBigWheelActive.vue
wx_application/src/views/active/createBigWheelActive.vue
+10
-3
index.vue
wx_application/src/views/mainSale/active/main/index.vue
+1
-1
No files found.
wx_application/src/views/active/activeDetail.vue
View file @
a58777c4
...
...
@@ -204,7 +204,7 @@ export default {
)
{
// 1.获取code
if
(
this
.
$route
.
query
.
unionid
===
undefined
)
{
//
this.getUnionid();
this
.
getUnionid
();
}
else
{
this
.
userBaseInfo
.
unionid
=
JSON
.
stringify
(
this
.
$route
.
query
.
unionid
);
this
.
userBaseInfo
.
openid
=
JSON
.
stringify
(
this
.
$route
.
query
.
openid
);
...
...
@@ -217,7 +217,7 @@ export default {
if
(
res
.
data
.
errMessage
===
"会员不存在"
)
{
this
.
isMember
=
false
;
Dialog
.
confirm
({
title
:
"
确认框
"
,
title
:
"
提示
"
,
message
:
"当前活动为会员才可参加,尚未找到您的会员信息,是否前往注册?"
})
...
...
@@ -341,13 +341,13 @@ export default {
},
Start_Game
()
{
// 在微信端打开 会有身份验证 路径中会带上 unionid
//
if (
//
this.env.match(/MicroMessenger/i) !== "micromessenger" ||
//
this.env.match(/wxwork/i) == "wxwork"
//
) {
//
this.$toast("请在微信端参与活动!");
//
return false;
//
}
if
(
this
.
env
.
match
(
/MicroMessenger/i
)
!==
"micromessenger"
||
this
.
env
.
match
(
/wxwork/i
)
==
"wxwork"
)
{
this
.
$toast
(
"请在微信端参与活动!"
);
return
false
;
}
if
(
this
.
game_end
)
{
this
.
$toast
(
"活动已结束"
);
return
false
;
...
...
@@ -358,9 +358,9 @@ export default {
}
let
params
=
{
activityId
:
this
.
active_id
,
openId
:
this
.
userBaseInfo
.
openid
||
"ofoA-xH5niSEVKKdaw2rE4bEZ3KY"
,
openId
:
this
.
userBaseInfo
.
openid
,
phone
:
this
.
userBaseInfo
.
phone
,
unionId
:
this
.
userBaseInfo
.
unionid
||
"oCIMxuC30KJI9Kn_y4miMflyQ7BY"
,
unionId
:
this
.
userBaseInfo
.
unionid
,
userName
:
this
.
userBaseInfo
.
name
};
APi_Active
.
play
(
params
)
...
...
wx_application/src/views/active/createBigWheelActive.vue
View file @
a58777c4
...
...
@@ -338,6 +338,7 @@ import { Toast } from "vant";
export
default
{
data
()
{
return
{
remain_probability
:
100
,
can_create
:
true
,
minStartDate
:
null
,
minEndDate
:
null
,
...
...
@@ -419,7 +420,9 @@ export default {
confirmTime
:
new
Date
()
};
},
created
()
{},
created
()
{
// this.prizeList[0].probability = this.remain_probability;
},
methods
:
{
// 限制 vant stepper 输入长度
handleProbalitity
(
val
)
{
...
...
@@ -837,10 +840,14 @@ export default {
return
newString
;
},
addPrice
()
{
if
(
this
.
prizeList
.
length
>
7
)
{
this
.
$toast
(
"最多设置
8
个奖项"
);
if
(
this
.
prizeList
.
length
>
5
)
{
this
.
$toast
(
"最多设置
6
个奖项"
);
return
;
}
// 计算剩余 概率
// this.prizeList.forEach(p => {
// this.remain_probability -= Number(p.probability)
// })
this
.
prizeList
.
push
({
name
:
""
,
timeLine_type
:
""
,
...
...
wx_application/src/views/mainSale/active/main/index.vue
View file @
a58777c4
...
...
@@ -238,7 +238,7 @@ export default {
this
.
flag
=
sessionStorage
.
getItem
(
"role"
);
}
}
else
{
//
this.zReadyUserId()
this
.
zReadyUserId
()
this
.
zTestGetNowUrlInfo
()
}
this
.
GET_CurrentActive
()
...
...
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