Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lumastoreapp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xieyishang
lumastoreapp
Commits
f008b3a8
Commit
f008b3a8
authored
Sep 04, 2020
by
srf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
srf
parent
6b13166f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
632 additions
and
644 deletions
+632
-644
pages/details/details.vue
pages/details/details.vue
+632
-644
No files found.
pages/details/details.vue
View file @
f008b3a8
...
...
@@ -28,26 +28,143 @@
</view>
-->
<!-- 2222222 -->
<view
class=
"head_1"
v-show=
"btnnum == 1"
>
<view
data-var=
"0"
>
<view
style=
"display: flex;justify-content: space-between;align-items: center;font-weight: bold;font-size: 16px;"
>
<view
class=
"bonus"
>
奖项一
</view>
<!--
<view
data-num=
0
@
tap=
"switching"
>
关闭奖项
</view>
-->
</view>
<view
class=
"bonus_1"
>
<view
class=
"bonus_1_1"
>
<view
class=
"bonus_1_1_1"
>
奖品名称
</view>
<view
class=
"bonus_1_1_1_1"
><input
class=
"input"
type=
"text"
name=
"name_1"
v-model=
"prize[0].title"
placeholder=
"请输入奖品名称"
/></view>
<view
class=
"input_1"
></view>
</view>
<view
class=
"line-h"
></view>
<view
class=
"bonus_1_1"
>
<view
class=
"bonus_1_1_1"
>
中奖名额
</view>
<view
class=
"bonus_1_1_1_1"
><input
class=
"input"
type=
"number"
name=
"name_2"
v-model=
"prize[0].num"
placeholder=
"请输入中奖名额"
/></view>
<view
class=
"input_1"
>
名
</view>
</view>
<view
class=
"line-h"
></view>
<view
class=
"bonus_1_1"
>
<view
class=
"bonus_1_1_1"
>
中奖概率
</view>
<view
class=
"bonus_1_1_1_1"
><input
class=
"input"
type=
"number"
name=
"name_3"
v-model=
"prize[0].proportion"
placeholder=
"请输入中奖概率"
/></view>
<view
class=
"input_1"
>
%
</view>
</view>
<view
class=
"line-h"
></view>
<view
class=
"uni-list"
style=
"padding: 24upx 0 24upx 0;"
>
<view
class=
"uni-list-cell uni-list-cell-pd jus-b"
>
<view
class=
"uni-list-cell-db "
style=
"font-size:28upx;font-weight: bold;margin: 0 20upx 0 20upx;"
>
是否为奖品
</view>
<switch
checked
@
change=
"switchs(1)"
/>
<view
class=
"bonus_1_1_1_1 nome"
><input
class=
"input"
type=
"text"
name=
"name_4"
:value=
"this.prize[0].status"
placeholder=
""
/></view>
</view>
</view>
</view>
<view
class=
"bonus_2"
>
<robby-image-upload
fileKeyName=
"img"
:value=
"c_pics"
:server-url=
"uploadurl1 + '/merchant.php/FileUpload/uploadify'"
:form-data=
"c_formData"
:server-url-delete-image=
"uploadurl1"
@
delete=
"c_delImage"
@
add=
"c_onImg"
@
move=
"onMove_c"
:limit=
"1"
></robby-image-upload>
<!--
<view>
-->
<!--
<view
class=
"jus-c"
><image
class=
"bonus_img"
style=
"margin: auto;"
src=
"../../static/picture.png"
mode=
""
></image></view>
-->
<!--
<view
class=
""
>
请添加奖品图片
</view>
-->
<!--
</view>
-->
</view>
</view>
<!-- 二 -->
<view>
<view
style=
"display: flex;justify-content: space-between;align-items: center;font-weight: bold;font-size: 16px;"
>
<view
class=
"bonus"
>
奖项二
</view>
<!--
<view
data-num=
1
@
tap=
"switching"
>
关闭奖项
</view>
-->
</view>
<view
class=
"bonus_1"
>
<view
class=
"bonus_1_1"
>
<view
class=
"bonus_1_1_1"
>
奖品名称
</view>
<view
class=
"bonus_1_1_1_1"
><input
class=
"input"
type=
"text"
name=
"name_5"
v-model=
"prize[1].title"
placeholder=
"请输入奖品名称"
/></view>
<view
class=
"input_1"
></view>
</view>
<view
class=
"line-h"
></view>
<view
class=
"bonus_1_1"
>
<view
class=
"bonus_1_1_1"
>
中奖名额
</view>
<view
class=
"bonus_1_1_1_1"
><input
class=
"input"
type=
"number"
name=
"name_6"
v-model=
"prize[1].num"
placeholder=
"请输入中奖名额"
/></view>
<view
class=
"input_1"
>
名
</view>
</view>
<view
class=
"line-h"
></view>
<view
class=
"bonus_1_1"
>
<view
class=
"bonus_1_1_1"
>
中奖概率
</view>
<view
class=
"bonus_1_1_1_1"
><input
class=
"input"
type=
"number"
name=
"name_7"
v-model=
"prize[1].proportion"
placeholder=
"请输入中奖概率"
/></view>
<view
class=
"input_1"
>
%
</view>
</view>
<view
class=
"line-h"
></view>
<view
class=
"uni-list"
style=
"padding: 24upx 0 24upx 0;"
>
<view
class=
"uni-list-cell uni-list-cell-pd jus-b"
>
<view
class=
"uni-list-cell-db "
style=
"font-size:28upx;font-weight: bold;margin: 0 20upx 0 20upx;"
>
是否为奖品
</view>
<switch
checked
@
change=
"switchs(2)"
/>
<view
class=
"bonus_1_1_1_1 nome"
><input
class=
"input"
type=
"text"
name=
"name_8"
:value=
"this.prize[1].status"
placeholder=
""
/></view>
</view>
</view>
</view>
<view
class=
"bonus_2"
>
<robby-image-upload
fileKeyName=
"img"
:value=
"c_picss"
:server-url=
"uploadurl1 + '/merchant.php/FileUpload/uploadify'"
:form-data=
"c_formData"
:server-url-delete-image=
"uploadurl1"
@
delete=
"c_delImage"
@
add=
"c_onImgs"
@
move=
"onMove_c"
:limit=
"1"
></robby-image-upload>
<!--
<view>
<view
class=
"jus-c"
><image
class=
"bonus_img"
style=
"margin: auto;"
src=
"../../static/picture.png"
mode=
""
></image></view>
<view
class=
"bonus_2_1"
>
请添加奖品图片
</view>
</view>
-->
</view>
</view>
<!-- 3333333 -->
<view
data-var=
"0"
>
<view
class=
"beack"
>
<view>
<view
style=
"display: flex;justify-content: space-between;align-items: center;font-weight: bold;font-size: 16px;"
>
<view
class=
"bonus"
>
奖项
一
</view>
<!--
<view
data-num=
0
@
tap=
"switching"
>
关闭奖项
</view>
-->
<view
class=
"bonus"
>
奖项
三
</view>
<!--
<view
data-num=
2
@
tap=
"switching"
>
关闭奖项
</view>
-->
</view>
<view
class=
"bonus_1"
>
<view
class=
"bonus_1_1"
>
<view
class=
"bonus_1_1_1"
>
奖品名称
</view>
<view
class=
"bonus_1_1_1_1"
><input
class=
"input"
type=
"text"
name=
"name_1"
v-model=
"prize[0].title"
placeholder=
"请输入奖品名称"
/></view>
<view
class=
"bonus_1_1_1_1"
><input
class=
"input"
type=
"text"
name=
"name_9"
v-model=
"prize[2].title"
placeholder=
"请输入奖品名称"
/></view>
<view
class=
"input_1"
></view>
</view>
<view
class=
"line-h"
></view>
<view
class=
"bonus_1_1"
>
<view
class=
"bonus_1_1_1"
>
中奖名额
</view>
<view
class=
"bonus_1_1_1_1"
><input
class=
"input"
type=
"number"
name=
"name_2"
v-model=
"prize[0].num"
placeholder=
"请输入中奖名额"
/></view>
<view
class=
"bonus_1_1_1_1"
><input
class=
"input"
type=
"number"
name=
"name_10"
v-model=
"prize[2].num"
placeholder=
"请输入中奖名额"
/></view>
<view
class=
"input_1"
>
名
</view>
</view>
...
...
@@ -57,7 +174,7 @@
<view
class=
"bonus_1_1"
>
<view
class=
"bonus_1_1_1"
>
中奖概率
</view>
<view
class=
"bonus_1_1_1_1"
><input
class=
"input"
type=
"number"
name=
"name_
3"
v-model=
"prize[0].proportion"
placeholder=
"请输入中奖概率"
/></view>
<view
class=
"bonus_1_1_1_1"
><input
class=
"input"
type=
"number"
name=
"name_
11"
v-model=
"prize[2].proportion"
placeholder=
"请输入中奖概率"
/></view>
<view
class=
"input_1"
>
%
</view>
</view>
...
...
@@ -66,51 +183,54 @@
<view
class=
"uni-list"
style=
"padding: 24upx 0 24upx 0;"
>
<view
class=
"uni-list-cell uni-list-cell-pd jus-b"
>
<view
class=
"uni-list-cell-db "
style=
"font-size:28upx;font-weight: bold;margin: 0 20upx 0 20upx;"
>
是否为奖品
</view>
<switch
checked
@
change=
"switch1"
/>
<view
class=
"bonus_1_1_1_1 nome"
><input
class=
"input"
type=
"text"
name=
"name_4"
:value=
"this.prize[0].status"
placeholder=
""
/></view>
<switch
checked
@
change=
"switchs(3)"
/>
<view
class=
"bonus_1_1_1_1 nome"
><input
class=
"input"
type=
"text"
name=
"name_12"
:value=
"this.prize[2].status"
placeholder=
""
/></view>
</view>
</view>
</view>
<view
class=
"bonus_2"
>
<robby-image-upload
fileKeyName=
"img"
:value=
"c_pics"
:value=
"c_pics
ss
"
:server-url=
"uploadurl1 + '/merchant.php/FileUpload/uploadify'"
:form-data=
"c_formData"
:server-url-delete-image=
"uploadurl1"
@
delete=
"c_delImage"
@
add=
"c_onImg"
@
add=
"c_onImg
ss
"
@
move=
"onMove_c"
:limit=
"1"
></robby-image-upload>
<!--
<view>
-->
<!--
<view
class=
"jus-c"
><image
class=
"bonus_img"
style=
"margin: auto;"
src=
"../../static/picture.png"
mode=
""
></image></view>
--
>
<!--
<view
class=
""
>
请添加奖品图片
</view>
--
>
<!--
</view>
-->
<!--
<view>
<view
class=
"jus-c"
><image
class=
"bonus_img"
style=
"margin: auto;"
src=
"../../static/picture.png"
mode=
""
></image></view
>
<view
class=
"bonus_2_1"
>
请添加奖品图片
</view
>
</view>
-->
</view>
</view>
</view>
<!-- 444444 -->
<!-- 二 --
>
<view
class=
"beack"
>
<view>
<view
style=
"display: flex;justify-content: space-between;align-items: center;font-weight: bold;font-size: 16px;"
>
<view
class=
"bonus"
>
奖项
二
</view>
<!--
<view
data-num=
1
@
tap=
"switching"
>
关闭奖项
</view>
-->
<view
class=
"bonus"
>
奖项
四
</view>
<!--
<view
data-num=
3
@
tap=
"switching"
>
关闭奖项
</view>
-->
</view>
<view
class=
"bonus_1"
>
<view
class=
"bonus_1_1"
>
<view
class=
"bonus_1_1_1"
>
奖品名称
</view>
<view
class=
"bonus_1_1_1_1"
><input
class=
"input"
type=
"text"
name=
"name_5"
v-model=
"prize[1].title"
placeholder=
"请输入奖品名称"
/></view>
<view
class=
"bonus_1_1_1_1"
><input
class=
"input"
type=
"text"
name=
"name_13"
v-model=
"prize[3].title"
placeholder=
"请输入奖品名称"
/></view>
<view
class=
"input_1"
></view>
</view>
<view
class=
"line-h"
></view>
<view
class=
"bonus_1_1"
>
<view
class=
"bonus_1_1_1"
>
中奖名额
</view>
<view
class=
"bonus_1_1_1_1"
><input
class=
"input"
type=
"number"
name=
"name_6"
v-model=
"prize[1].num"
placeholder=
"请输入中奖名额"
/></view>
<view
class=
"bonus_1_1_1_1"
><input
class=
"input"
type=
"number"
name=
"name_14"
v-model=
"prize[3].num"
placeholder=
"请输入中奖名额"
/></view>
<view
class=
"input_1"
>
名
</view>
</view>
...
...
@@ -118,7 +238,9 @@
<view
class=
"bonus_1_1"
>
<view
class=
"bonus_1_1_1"
>
中奖概率
</view>
<view
class=
"bonus_1_1_1_1"
><input
class=
"input"
type=
"number"
name=
"name_7"
v-model=
"prize[1].proportion"
placeholder=
"请输入中奖概率"
/></view>
<view
class=
"bonus_1_1_1_1"
><input
class=
"input"
type=
"number"
name=
"name_15"
v-model=
"prize[3].proportion"
placeholder=
"请输入中奖概率"
/></view>
<view
class=
"input_1"
>
%
</view>
</view>
...
...
@@ -126,330 +248,193 @@
<view
class=
"uni-list"
style=
"padding: 24upx 0 24upx 0;"
>
<view
class=
"uni-list-cell uni-list-cell-pd jus-b"
>
<view
class=
"uni-list-cell-db "
style=
"font-size:28upx;font-weight: bold;margin: 0 20upx 0 20upx;"
>
是否为奖品
</view>
<switch
checked
@
change=
"switch2"
/>
<view
class=
"bonus_1_1_1_1 nome"
><input
class=
"input"
type=
"text"
name=
"name_8"
:value=
"this.prize[1].status"
placeholder=
""
/></view>
<switch
checked
@
change=
"switchs(4)"
/>
<view
class=
"bonus_1_1_1_1 nome"
><input
class=
"input"
type=
"text"
name=
"name_16"
:value=
"this.prize[3].status"
placeholder=
""
/></view>
</view>
</view>
</view>
<view
class=
"bonus_2"
>
<robby-image-upload
fileKeyName=
"img"
:value=
"c_picss"
:value=
"c_picss
ss
"
:server-url=
"uploadurl1 + '/merchant.php/FileUpload/uploadify'"
:form-data=
"c_formData"
:server-url-delete-image=
"uploadurl1"
@
delete=
"c_delImage"
@
add=
"c_onImgs"
@
add=
"c_onImgs
ss
"
@
move=
"onMove_c"
:limit=
"1"
></robby-image-upload>
<!--
<view>
<view
class=
"jus-c"
><image
class=
"bonus_img"
style=
"margin: auto;"
src=
"../../static/picture.png"
mode=
""
></image></view>
<view
class=
"bonus_2_1"
>
请添加奖品图片
</view>
</view>
-->
</view>
</view>
<!-- 3333333 -->
<view
class=
"beack"
>
<view>
<view
style=
"display: flex;justify-content: space-between;align-items: center;font-weight: bold;font-size: 16px;"
>
<view
class=
"bonus"
>
奖项三
</view>
<!--
<view
data-num=
2
@
tap=
"switching"
>
关闭奖项
</view>
-->
</view>
<view
class=
"bonus_1"
>
<view
class=
"bonus_1_1"
>
<view
class=
"bonus_1_1_1"
>
奖品名称
</view>
<view
class=
"bonus_1_1_1_1"
><input
class=
"input"
type=
"text"
name=
"name_9"
v-model=
"prize[2].title"
placeholder=
"请输入奖品名称"
/></view>
<view
class=
"input_1"
></view>
</view>
<view
class=
"line-h"
></view>
<view
class=
"bonus_1_1"
>
<view
class=
"bonus_1_1_1"
>
中奖名额
</view>
<view
class=
"bonus_1_1_1_1"
><input
class=
"input"
type=
"number"
name=
"name_10"
v-model=
"prize[2].num"
placeholder=
"请输入中奖名额"
/></view>
<view
class=
"input_1"
>
名
</view>
</view>
<view
class=
"line-h"
></view>
<view
class=
"bonus_1_1"
>
<view
class=
"bonus_1_1_1"
>
中奖概率
</view>
<view
class=
"bonus_1_1_1_1"
><input
class=
"input"
type=
"number"
name=
"name_11"
v-model=
"prize[2].proportion"
placeholder=
"请输入中奖概率"
/></view>
<view
class=
"input_1"
>
%
</view>
</view>
<view
class=
"line-h"
></view>
<view
class=
"uni-list"
style=
"padding: 24upx 0 24upx 0;"
>
<view
class=
"uni-list-cell uni-list-cell-pd jus-b"
>
<view
class=
"uni-list-cell-db "
style=
"font-size:28upx;font-weight: bold;margin: 0 20upx 0 20upx;"
>
是否为奖品
</view>
<switch
checked
@
change=
"switch3"
/>
<view
class=
"bonus_1_1_1_1 nome"
><input
class=
"input"
type=
"text"
name=
"name_12"
:value=
"this.prize[2].status"
placeholder=
""
/></view>
</view>
</view>
</view>
<view
class=
"bonus_2"
>
<robby-image-upload
fileKeyName=
"img"
:value=
"c_picsss"
:server-url=
"uploadurl1 + '/merchant.php/FileUpload/uploadify'"
:form-data=
"c_formData"
:server-url-delete-image=
"uploadurl1"
@
delete=
"c_delImage"
@
add=
"c_onImgss"
@
move=
"onMove_c"
:limit=
"1"
></robby-image-upload>
<!--
<view>
<view
class=
"jus-c"
><image
class=
"bonus_img"
style=
"margin: auto;"
src=
"../../static/picture.png"
mode=
""
></image></view>
<view
class=
"bonus_2_1"
>
请添加奖品图片
</view>
</view>
-->
</view>
</view>
</view>
<!-- 444444 -->
<view
class=
"beack"
>
<view>
<view
style=
"display: flex;justify-content: space-between;align-items: center;font-weight: bold;font-size: 16px;"
>
<view
class=
"bonus"
>
奖项四
</view>
<!--
<view
data-num=
3
@
tap=
"switching"
>
关闭奖项
</view>
-->
</view>
<view
class=
"bonus_1"
>
<view
class=
"bonus_1_1"
>
<view
class=
"bonus_1_1_1"
>
奖品名称
</view>
<view
class=
"bonus_1_1_1_1"
><input
class=
"input"
type=
"text"
name=
"name_13"
v-model=
"prize[3].title"
placeholder=
"请输入奖品名称"
/></view>
<view
class=
"input_1"
></view>
</view>
<view
class=
"line-h"
></view>
<view
class=
"bonus_1_1"
>
<view
class=
"bonus_1_1_1"
>
中奖名额
</view>
<view
class=
"bonus_1_1_1_1"
><input
class=
"input"
type=
"number"
name=
"name_14"
v-model=
"prize[3].num"
placeholder=
"请输入中奖名额"
/></view>
<view
class=
"input_1"
>
名
</view>
</view>
<view
class=
"line-h"
></view>
<view
class=
"bonus_1_1"
>
<view
class=
"bonus_1_1_1"
>
中奖概率
</view>
<view
class=
"bonus_1_1_1_1"
><input
class=
"input"
type=
"number"
name=
"name_15"
v-model=
"prize[3].proportion"
placeholder=
"请输入中奖概率"
/></view>
<view
class=
"input_1"
>
%
</view>
</view>
<view
class=
"line-h"
></view>
<view
class=
"uni-list"
style=
"padding: 24upx 0 24upx 0;"
>
<view
class=
"uni-list-cell uni-list-cell-pd jus-b"
>
<view
class=
"uni-list-cell-db "
style=
"font-size:28upx;font-weight: bold;margin: 0 20upx 0 20upx;"
>
是否为奖品
</view>
<switch
checked
@
change=
"switch4"
/>
<view
class=
"bonus_1_1_1_1 nome"
><input
class=
"input"
type=
"text"
name=
"name_16"
:value=
"this.prize[3].status"
placeholder=
""
/></view>
</view>
</view>
</view>
<view
class=
"bonus_2"
>
<robby-image-upload
fileKeyName=
"img"
:value=
"c_picssss"
:server-url=
"uploadurl1 + '/merchant.php/FileUpload/uploadify'"
:form-data=
"c_formData"
:server-url-delete-image=
"uploadurl1"
@
delete=
"c_delImage"
@
add=
"c_onImgsss"
@
move=
"onMove_c"
:limit=
"1"
></robby-image-upload>
<!--
<view>
<view
class=
"jus-c"
><image
class=
"bonus_img"
style=
"margin: auto;"
src=
"../../static/picture.png"
mode=
""
></image></view>
<view
class=
"bonus_2_1"
>
请添加奖品图片
</view>
</view>
-->
</view>
</view>
</view>
</view>
<!-- 55555 -->
<view
v-show=
"additio == 3 || additio == 4"
>
<view>
<view
style=
"display: flex;justify-content: space-between;align-items: center;font-weight: bold;font-size: 16px;"
>
<view
class=
"bonus"
>
奖项五
</view>
<!--
<view
data-num=
4
@
tap=
"switching"
>
关闭奖项
</view>
-->
</view>
<view
class=
"bonus_1"
>
<view
class=
"bonus_1_1"
>
<view
class=
"bonus_1_1_1"
>
奖品名称
</view>
<view
class=
"bonus_1_1_1_1"
><input
class=
"input"
type=
"text"
name=
"name_17"
v-model=
"prize[4].title"
placeholder=
"请输入奖品名称"
/></view>
<view
class=
"input_1"
></view>
</view>
<!-- 55555 -->
<view
v-show=
"additio == 3 || additio == 4"
>
<view>
<view
style=
"display: flex;justify-content: space-between;align-items: center;font-weight: bold;font-size: 16px;"
>
<view
class=
"bonus"
>
奖项五
</view>
<!--
<view
data-num=
4
@
tap=
"switching"
>
关闭奖项
</view>
-->
</view>
<view
class=
"bonus_1"
>
<view
class=
"bonus_1_1"
>
<view
class=
"bonus_1_1_1"
>
奖品名称
</view>
<view
class=
"line-h"
></view>
<view
class=
"bonus_1_1"
>
<view
class=
"bonus_1_1_1"
>
中奖名额
</view>
<view
class=
"bonus_1_1_1_1"
><input
class=
"input"
type=
"text"
name=
"name_17"
v-model=
"prize[4].title"
placeholder=
"请输入奖品名称"
/></view>
<view
class=
"bonus_1_1_1_1"
><input
class=
"input"
type=
"number"
name=
"name_18"
v-model=
"prize[4].num"
placeholder=
"请输入中奖名额"
/></view>
<view
class=
"input_1"
></view>
</view>
<view
class=
"input_1"
>
名
</view>
</view>
<view
class=
"line-h"
></view>
<view
class=
"bonus_1_1"
>
<view
class=
"bonus_1_1_1"
>
中奖名额
</view>
<view
class=
"
line-h"
></view>
<view
class=
"
bonus_1_1_1_1"
><input
class=
"input"
type=
"number"
name=
"name_18"
v-model=
"prize[4].num"
placeholder=
"请输入中奖名额"
/
></view>
<view
class=
"
bonus_1_1"
>
<view
class=
"bonus_1_1_1"
>
中奖概率
</view>
<view
class=
"
input_1"
>
名
</view
>
</view>
<view
class=
"bonus_1_1_1_1"
><input
class=
"input"
type=
"number"
name=
"name_19"
v-model=
"prize[4].proportion"
placeholder=
"请输入中奖概率"
/
></view>
<view
class=
"line-h"
></view>
<view
class=
"input_1"
>
%
</view
>
</view>
<view
class=
"bonus_1_1"
>
<
view
class=
"bonus_1_1_1"
>
中奖概率
<
/view>
<view
class=
"
line-h"
></view>
<view
class=
"
bonus_1_1_1_1"
><input
class=
"input"
type=
"number"
name=
"name_19"
v-model=
"prize[4].proportion"
placeholder=
"请输入中奖概率"
/
></view>
<view
class=
"
uni-list"
style=
"padding: 24upx 0 24upx 0;"
>
<view
class=
"uni-list-cell uni-list-cell-pd jus-b"
>
<view
class=
"
input_1"
>
%
</view
>
</view
>
<view
class=
"uni-list-cell-db "
style=
"font-size:28upx;font-weight: bold;margin: 0 20upx 0 20upx;"
>
是否为奖品
</view>
<switch
checked
@
change=
"switch5"
/>
<view
class=
"bonus_1_1_1_1 nome"
><input
class=
"input"
type=
"text"
name=
"name_20"
:value=
"this.prize[4].status"
placeholder=
""
/></view>
<view
class=
"line-h"
></view>
</view>
<view
class=
"uni-list"
style=
"padding: 24upx 0 24upx 0;"
>
<view
class=
"uni-list-cell uni-list-cell-pd jus-b"
>
<view
class=
"uni-list-cell-db "
style=
"font-size:28upx;font-weight: bold;margin: 0 20upx 0 20upx;"
>
是否为奖品
</view>
<switch
checked
@
change=
"switchs(5)"
/>
<view
class=
"bonus_1_1_1_1 nome"
><input
class=
"input"
type=
"text"
name=
"name_20"
:value=
"this.prize[4].status"
placeholder=
""
/></view>
</view>
</view>
<view
class=
"bonus_2"
>
<robby-image-upload
fileKeyName=
"img"
:value=
"c_picsssss"
:server-url=
"uploadurl1 + '/merchant.php/FileUpload/uploadify'"
:form-data=
"c_formData"
:server-url-delete-image=
"uploadurl1"
@
delete=
"c_delImage"
@
add=
"c_onImgssss"
@
move=
"onMove_c"
:limit=
"1"
></robby-image-upload>
<!--
<view>
</view>
<view
class=
"bonus_2"
>
<robby-image-upload
fileKeyName=
"img"
:value=
"c_picsssss"
:server-url=
"uploadurl1 + '/merchant.php/FileUpload/uploadify'"
:form-data=
"c_formData"
:server-url-delete-image=
"uploadurl1"
@
delete=
"c_delImage"
@
add=
"c_onImgssss"
@
move=
"onMove_c"
:limit=
"1"
></robby-image-upload>
<!--
<view>
<view
class=
"jus-c"
><image
class=
"bonus_img"
style=
"margin: auto;"
src=
"../../static/picture.png"
mode=
""
></image></view>
<view
class=
"bonus_2_1"
>
请添加奖品图片
</view>
</view>
-->
</view>
</view>
</view>
</view>
<!-- 66666 -->
<view
:class=
"
{ beack: additio == 4 }" class="nome">
<view>
<view
style=
"display: flex;justify-content: space-between;align-items: center;font-weight: bold;font-size: 16px;"
>
<view
class=
"bonus"
>
奖项六
</view>
<!--
<view
data-num=
5
@
tap=
"switching"
>
关闭奖项
</view>
-->
</view>
<view
class=
"bonus_1"
>
<view
class=
"bonus_1_1"
>
<view
class=
"bonus_1_1_1"
>
奖品名称
</view>
<view
class=
"bonus_1_1_1_1"
><input
class=
"input"
type=
"text"
name=
"name_21"
v-model=
"prize[5].title"
placeholder=
"请输入奖品名称"
/></view>
<!-- 66666 -->
<view
class=
"input_1"
></view>
</view>
<view
:class=
"
{ beack: additio == 4 }" class="nome">
<view>
<view
style=
"display: flex;justify-content: space-between;align-items: center;font-weight: bold;font-size: 16px;"
>
<view
class=
"bonus"
>
奖项六
</view>
<!--
<view
data-num=
5
@
tap=
"switching"
>
关闭奖项
</view>
-->
</view>
<view
class=
"bonus_1"
>
<view
class=
"bonus_1_1"
>
<view
class=
"bonus_1_1_1"
>
奖品名称
</view>
<view
class=
"line-h"
></view>
<view
class=
"bonus_1_1"
>
<view
class=
"bonus_1_1_1"
>
中奖名额
</view>
<view
class=
"bonus_1_1_1_1"
><input
class=
"input"
type=
"text"
name=
"name_21"
v-model=
"prize[5].title"
placeholder=
"请输入奖品名称"
/></view>
<view
class=
"bonus_1_1_1_1"
><input
class=
"input"
type=
"number"
name=
"name_22"
v-model=
"prize[5].num"
placeholder=
"请输入中奖名额"
/></view>
<view
class=
"input_1"
></view>
</view>
<view
class=
"input_1"
>
名
</view>
</view>
<view
class=
"line-h"
></view>
<view
class=
"bonus_1_1"
>
<view
class=
"bonus_1_1_1"
>
中奖名额
</view>
<view
class=
"
line-h"
></view>
<view
class=
"
bonus_1_1_1_1"
><input
class=
"input"
type=
"number"
name=
"name_22"
v-model=
"prize[5].num"
placeholder=
"请输入中奖名额"
/
></view>
<view
class=
"
bonus_1_1"
>
<view
class=
"bonus_1_1_1"
>
中奖概率
</view>
<view
class=
"
input_1"
>
名
</view
>
</view>
<view
class=
"bonus_1_1_1_1"
><input
class=
"input"
type=
"number"
name=
"name_23"
v-model=
"prize[5].proportion"
placeholder=
"请输入中奖概率"
/
></view>
<view
class=
"line-h"
></view>
<view
class=
"input_1"
>
%
</view
>
</view>
<view
class=
"bonus_1_1"
>
<
view
class=
"bonus_1_1_1"
>
中奖概率
<
/view>
<view
class=
"
line-h"
></view>
<view
class=
"
bonus_1_1_1_1"
><input
class=
"input"
type=
"number"
name=
"name_23"
v-model=
"prize[5].proportion"
placeholder=
"请输入中奖概率"
/
></view>
<view
class=
"
uni-list"
style=
"padding: 24upx 0 24upx 0;"
>
<view
class=
"uni-list-cell uni-list-cell-pd jus-b"
>
<view
class=
"
input_1"
>
%
</view
>
</view
>
<view
class=
"uni-list-cell-db "
style=
"font-size:28upx;font-weight: bold;margin: 0 20upx 0 20upx;"
>
是否为奖品
</view>
<switch
checked
@
change=
"switch6"
/>
<view
class=
"bonus_1_1_1_1 nome"
><input
class=
"input"
type=
"text"
name=
"name_24"
:value=
"this.prize[5].status"
placeholder=
""
/></view>
<view
class=
"line-h"
></view>
</view>
<view
class=
"uni-list"
style=
"padding: 24upx 0 24upx 0;"
>
<view
class=
"uni-list-cell uni-list-cell-pd jus-b"
>
<view
class=
"uni-list-cell-db "
style=
"font-size:28upx;font-weight: bold;margin: 0 20upx 0 20upx;"
>
是否为奖品
</view>
<switch
checked
@
change=
"switchs(6)"
/>
<view
class=
"bonus_1_1_1_1 nome"
><input
class=
"input"
type=
"text"
name=
"name_24"
:value=
"this.prize[5].status"
placeholder=
""
/></view>
</view>
</view>
<view
class=
"bonus_2"
>
<robby-image-upload
fileKeyName=
"img"
:value=
"c_picssssss"
:server-url=
"uploadurl1 + '/merchant.php/FileUpload/uploadify'"
:form-data=
"c_formData"
:server-url-delete-image=
"uploadurl1"
@
delete=
"c_delImage"
@
add=
"c_onImgsssss"
@
move=
"onMove_c"
:limit=
"1"
></robby-image-upload>
<!--
<view>
</view>
<view
class=
"bonus_2"
>
<robby-image-upload
fileKeyName=
"img"
:value=
"c_picssssss"
:server-url=
"uploadurl1 + '/merchant.php/FileUpload/uploadify'"
:form-data=
"c_formData"
:server-url-delete-image=
"uploadurl1"
@
delete=
"c_delImage"
@
add=
"c_onImgsssss"
@
move=
"onMove_c"
:limit=
"1"
></robby-image-upload>
<!--
<view>
<view
class=
"jus-c"
><image
class=
"bonus_img"
style=
"margin: auto;"
src=
"../../static/picture.png"
mode=
""
></image></view>
<view
class=
"bonus_2_1"
>
请添加奖品图片
</view>
</view>
-->
</view>
</view>
</view>
</view>
<view
class=
"jus-c bonus_3"
@
tap=
"addition"
>
<view
class=
"bonus_3_1"
><image
class=
"bonus_1_2"
src=
"../../static/attachment.png"
mode=
""
></image></view>
<view
class=
"bonus_3_2"
>
添加更多奖项
</view>
</view>
<view
class=
"jus-c bonus_3"
@
tap=
"addition"
>
<view
class=
"bonus_3_1"
><image
class=
"bonus_1_2"
src=
"../../static/attachment.png"
mode=
""
></image></view>
<view
class=
"bonus_3_2"
>
添加更多奖项
</view>
</view>
<view
class=
"bonus_4"
>
<view
class=
"box"
>
<view
class=
"box_1"
>
请填写活动名称:
</view>
<view
class=
"bonus_4_1"
style=
"width: 400upx;text-align: center;"
>
<input
class=
"input"
type=
"text"
v-model=
"diameter.name"
placeholder=
"请输入活动名称"
/>
</view>
<!--
<view
class=
"box_2"
>
名
</view>
-->
<view
class=
"bonus_4"
>
<view
class=
"box"
>
<view
class=
"box_1"
>
请填写活动名称:
</view>
<view
class=
"bonus_4_1"
style=
"width: 400upx;text-align: center;"
>
<input
class=
"input"
type=
"text"
v-model=
"diameter.name"
placeholder=
"请输入活动名称"
/>
</view>
<
view
class=
"line-h"
></view
>
<view
class=
"box"
>
<view
class=
"box_1"
>
满足抽奖资格金额:
</view>
<view
class=
"bonus_4_1"
style=
"width: 240upx;text-align: center;
"
>
<input
class=
"input"
type=
"number"
v-model=
"diameter.condition_money"
placeholder=
"例:满100元"
/
>
</view
>
<
view
class=
"box_2"
>
元
</view
>
<
!--
<view
class=
"box_2"
>
名
</view>
--
>
</view
>
<view
class=
"line-h"
>
</view>
<view
class=
"box
"
>
<view
class=
"box_1"
>
满足抽奖资格金额:
</view
>
<view
class=
"bonus_4_1"
style=
"width: 240upx;text-align: center;"
>
<
input
class=
"input"
type=
"number"
v-model=
"diameter.condition_money"
placeholder=
"例:满100元"
/
>
</view>
<view
class=
"box_2"
>
元
</view>
</view>
<!--
<view
class=
"bonus_4_1"
><input
class=
"input"
type=
"text"
name=
"name_14"
placeholder=
"请设置抽奖金额条件(例:满100元即可抽奖)"
/></view>
-->
<!--
<view
class=
"bonus_4_1"
><input
class=
"input"
type=
"text"
name=
"name_14"
placeholder=
"请设置抽奖金额条件(例:满100元即可抽奖)"
/></view>
-->
<view
class=
"line-h"
></view>
<!--
<view
class=
"bonus_4_1"
><input
class=
"input"
type=
"text"
name=
"name_15"
placeholder=
"满()元即可抽奖"
/></view>
<view
class=
"line-h"
></view>
<!--
<view
class=
"bonus_4_1"
><input
class=
"input"
type=
"text"
name=
"name_15"
placeholder=
"满()元即可抽奖"
/></view>
<view
class=
"line-h"
></view>
-->
<!--
<view
class=
"box"
>
<!--
<view
class=
"box"
>
<view
class=
"box_1"
>
请设置抽奖满足金额
</view>
<view
class=
"bonus_4_1"
style=
"width: 240upx;text-align: center;"
>
<input
class=
"input"
type=
"number"
name=
"name_15"
placeholder=
"例:20元"
/>
...
...
@@ -458,50 +443,47 @@
</view>
<view
class=
"line-h"
></view>
-->
<!-- 领取结束时间 -->
<view
class=
"box"
>
<view
class=
"box_1"
>
活动领取结束时间:
</view>
<view
class=
"bonus_4_1"
style=
"width: 240upx;text-align: center;"
>
<input
class=
"input"
type=
"number"
v-model=
"diameter.receive_endtime"
placeholder=
"例:20小时"
/>
</view>
<view
class=
"box_2"
>
小时
</view>
<!-- 领取结束时间 -->
<view
class=
"box"
>
<view
class=
"box_1"
>
活动领取结束时间:
</view>
<view
class=
"bonus_4_1"
style=
"width: 240upx;text-align: center;"
>
<input
class=
"input"
type=
"number"
v-model=
"diameter.receive_endtime"
placeholder=
"例:20小时"
/>
</view>
<view
class=
"box_2"
>
小时
</view>
</view>
<view
class=
"line-h"
></view>
<!-- 时间选择 -->
<view
style=
"display: flex;padding:20upx 20upx 20upx 0;"
>
<view
class=
"title"
style=
"flex:3;font-size: 28upx;font-weight: bold;margin:auto;"
>
活动时间:
</view>
<view
class=
"inputbox"
style=
"flex:4;border: 1upx solid rgba(102,102,102,1);text-align: center;margin: auto;"
@
tap=
"showtime(1)"
>
<input
type=
"text"
class=
"inputs"
value=
""
v-model=
"diameter.start_time"
disabled=
"disabled"
placeholder=
"开始时间"
placeholder-class=
"plclass"
/>
<image
class=
"jiantouicon"
v-show=
"parameter.start_time == ''"
src=
"../../static/LuckDraw/jiantou_icon.png"
mode=
""
></image>
</view>
<view
style=
"margin-left: 10;line-height:50upx;"
>
-
</view>
<view
class=
"inputbox"
style=
"flex:4;border: 1upx solid rgba(102,102,102,1);text-align: center;margin: auto;"
@
tap=
"showtime(2)"
>
<input
type=
"text"
class=
"inputs"
value=
""
v-model=
"diameter.end_time"
disabled=
"disabled"
placeholder=
"结束时间"
placeholder-class=
"plclass"
/>
<image
class=
"jiantouicon"
v-show=
"parameter.start_time == ''"
src=
"../../static/LuckDraw/jiantou_icon.png"
mode=
""
></image>
</view>
<view
class=
"line-h"
></view>
<!-- 时间选择 -->
<view
style=
"display: flex;padding:20upx 20upx 20upx 0;"
>
<view
class=
"title"
style=
"flex:3;font-size: 28upx;font-weight: bold;margin:auto;"
>
活动时间:
</view>
<view
class=
"inputbox"
style=
"flex:4;border: 1upx solid rgba(102,102,102,1);text-align: center;margin: auto;"
@
tap=
"showtime(1)"
>
<input
type=
"text"
class=
"inputs"
value=
""
v-model=
"diameter.start_time"
disabled=
"disabled"
placeholder=
"开始时间"
placeholder-class=
"plclass"
/>
<image
class=
"jiantouicon"
v-show=
"parameter.start_time == ''"
src=
"../../static/LuckDraw/jiantou_icon.png"
mode=
""
></image>
</view>
<view
style=
"margin-left: 10;line-height:50upx;"
>
-
</view>
<view
class=
"inputbox"
style=
"flex:4;border: 1upx solid rgba(102,102,102,1);text-align: center;margin: auto;"
@
tap=
"showtime(2)"
>
<input
type=
"text"
class=
"inputs"
value=
""
v-model=
"diameter.end_time"
disabled=
"disabled"
placeholder=
"结束时间"
placeholder-class=
"plclass"
/>
<image
class=
"jiantouicon"
v-show=
"parameter.start_time == ''"
src=
"../../static/LuckDraw/jiantou_icon.png"
mode=
""
></image>
</view>
</view>
<!--
<view
class=
"bonus_4_1"
><input
class=
"input"
type=
"text"
name=
"name_15"
placeholder=
"请填写活动到期时间(例:2020-8-31 13:00)"
/></view>
-->
<view
class=
"line-h"
></view>
<!--
<view
class=
"bonus_4_1"
><input
class=
"input"
type=
"text"
name=
"name_15"
placeholder=
"请填写活动到期时间(例:2020-8-31 13:00)"
/></view>
-->
<view
style=
"font-size: 28upx;font-weight: bold;margin: 10px 0 10px 0;"
>
活动描述
</view>
<view
class=
"line-h"
>
</view>
<textarea
v-model=
"diameter.content"
style=
"height:300upx;width:660upx ;"
placeholder=
"请输入活动描述"
></textarea
>
<view
style=
"font-size: 28upx;font-weight: bold;margin: 10px 0 10px 0;"
>
活动描述
</view
>
<textarea
v-model=
"diameter.content"
style=
"height:300upx;width:660upx ;"
placeholder=
"请输入活动描述"
></textarea>
</view>
<view
class=
"uni-list"
style=
"padding: 24upx 0 24upx 0;"
>
<view
class=
"uni-list-cell uni-list-cell-pd jus-b"
>
<view
class=
"uni-list-cell-db "
style=
"font-size:28upx;font-weight: bold;margin: 0 20upx 0 20upx;"
>
是否开启活动
</view>
<switch
checked
@
change=
"switch1Change"
/>
</view>
<view
class=
"uni-list"
style=
"padding: 24upx 0 24upx 0;"
>
<view
class=
"uni-list-cell uni-list-cell-pd jus-b"
>
<view
class=
"uni-list-cell-db "
style=
"font-size:28upx;font-weight: bold;margin: 0 20upx 0 20upx;"
>
是否开启活动
</view>
<switch
checked
@
change=
"switch1Change"
/>
</view>
</view>
</view>
<view
class=
"bonus_5"
><button
class=
"bonus_5_1"
@
tap=
"formSubmi"
v-show=
"diameter.status == 2"
>
确认发布
</button></view>
<view
class=
"bonus_5"
><button
class=
"bonus_5_1"
@
tap=
"formSubmi"
v-show=
"diameter.status == 2"
>
确认发布
</button></view>
<!--
</form>
-->
</view>
<!-- 333333 -->
...
...
@@ -554,7 +536,6 @@
<view
class=
"gmbtns"
v-if=
"item.order_status == 3"
@
tap=
"express"
:data-order_id=
"item.order_id"
>
待收货
</view>
<view
class=
"gmbtns"
v-if=
"item.order_status == 4"
@
tap=
"express"
:data-order_id=
"item.order_id"
>
已完成
</view>
</view>
<view
style=
"font-size: 30upx;font-weight: bold;"
>
{{
item
.
nickname
}}
{{
item
.
mobile
}}
</view>
<!--
<view
class=
"flex"
><view
class=
"hongkng"
>
一等奖 中奖名额 2名 3500
</view>
...
...
@@ -588,7 +569,6 @@
</view>
</
template
>
<
script
>
import
robbyImageUpload
from
'
@/components/plan-image-upload/up_img
'
;
//上传资质图片组件
import
wPicker
from
'
@/components/w-picker/w-picker.vue
'
;
//时间弹窗
import
{
addTurntableActivity
,
getTurntableActivityList
,
getShopLuckDrawList
,
getBuyRecord
,
setTurntableActivityStatus
}
from
'
@/utils/api/merchant.js
'
;
...
...
@@ -604,15 +584,14 @@ export default {
},
data
()
{
return
{
targets
:[],
targets
:
[],
prize
:
[
{
title
:
''
,
num
:
''
,
proportion
:
''
,
status
:
1
},
{
title
:
''
,
num
:
''
,
proportion
:
''
,
status
:
1
},
{
title
:
''
,
num
:
''
,
proportion
:
''
,
status
:
1
},
{
title
:
''
,
num
:
''
,
proportion
:
''
,
status
:
1
},
{
title
:
''
,
num
:
''
,
proportion
:
''
,
status
:
1
},
{
title
:
''
,
num
:
''
,
proportion
:
''
,
status
:
1
,},
{
title
:
''
,
num
:
''
,
proportion
:
''
,
status
:
1
},
{
title
:
''
,
num
:
''
,
proportion
:
''
,
status
:
1
},
{
title
:
''
,
num
:
''
,
proportion
:
''
,
status
:
1
},
{
title
:
''
,
num
:
''
,
proportion
:
''
,
status
:
1
},
{
title
:
''
,
num
:
''
,
proportion
:
''
,
status
:
1
},
{
title
:
''
,
num
:
''
,
proportion
:
''
,
status
:
1
}
],
shop_id
:
''
,
statuslist
:
[],
...
...
@@ -774,7 +753,6 @@ export default {
},
// 66666
methods
:
{
express
(
e
)
{
console
.
log
(
e
);
let
num
=
e
.
currentTarget
.
dataset
.
order_id
;
...
...
@@ -792,237 +770,275 @@ export default {
uni
.
pageScrollTo
({
scrollTop
:
0
,
duration
:
200
});
},
});
},
switch6
(
e
)
{
console
.
log
(
e
);
if
(
e
.
target
.
value
==
true
)
{
this
.
prize
[
5
].
status
=
1
;
}
else
{
this
.
prize
[
5
].
status
=
2
;
}
},
switch5
(
e
)
{
console
.
log
(
e
);
if
(
e
.
target
.
value
==
true
)
{
this
.
prize
[
4
].
status
=
1
;
}
else
{
this
.
prize
[
4
].
status
=
2
;
}
},
switch4
(
e
)
{
console
.
log
(
e
);
if
(
e
.
target
.
value
==
true
)
{
this
.
prize
[
3
].
status
=
1
;
}
else
{
this
.
prize
[
3
].
status
=
2
;
}
},
switch3
(
e
)
{
console
.
log
(
e
);
if
(
e
.
target
.
value
==
true
)
{
this
.
prize
[
2
].
status
=
1
;
}
else
{
this
.
prize
[
2
].
status
=
2
;
}
},
switch2
(
e
)
{
console
.
log
(
e
);
if
(
e
.
target
.
value
==
true
)
{
this
.
prize
[
1
].
status
=
1
;
// switch6(e) {
// console.log(e);
// if (e.target.value == true) {
// this.prize[5].status = 1;
// } else {
// this.prize[5].status = 2;
// }
// },
// switch5(e) {
// console.log(e);
// if (e.target.value == true) {
// this.prize[4].status = 1;
// } else {
// this.prize[4].status = 2;
// }
// },
// switch4(e) {
// console.log(e);
// if (e.target.value == true) {
// this.prize[3].status = 1;
// } else {
// this.prize[3].status = 2;
// }
// },
// switch3(e) {
// console.log(e);
// if (e.target.value == true) {
// this.prize[2].status = 1;
// } else {
// this.prize[2].status = 2;
// }
// },
// switch2(e) {
// console.log(e);
// if (e.target.value == true) {
// this.prize[1].status = 1;
// } else {
// this.prize[1].status = 2;
// }
// },
// switch1(e) {
// console.log(e);
// if (e.target.value == true) {
// this.prize[0].status = 1;
// } else {
// this.prize[0].status = 2;
// }
// },
switchs
(
index
)
{
console
.
log
(
index
);
if
(
index
==
1
)
{
if
(
this
.
prize
[
0
].
status
==
1
)
{
this
.
prize
[
0
].
status
=
2
;
}
else
{
this
.
prize
[
1
].
status
=
2
;
}
},
switch1
(
e
)
{
console
.
log
(
e
);
if
(
e
.
target
.
value
==
true
)
{
this
.
prize
[
0
].
status
=
1
;
}
else
{
this
.
prize
[
0
].
status
=
2
;
}
},
switching
(
e
)
{
// console.log(this.shopdata)
// this.shopdata.map((item, index, arr) => {
// if(item.title==""){
// arr.splice(index,1)
// console.log("哈哈",arr)
// }
// })
},
// 9999999
showstatus
(
e
)
{
// this.getTurntableActivityList()
let
num
=
e
.
currentTarget
.
dataset
.
id
;
this
.
published
.
map
((
item
,
index
,
arr
)
=>
{
if
(
num
==
item
.
id
)
{
console
.
log
(
item
);
console
.
log
(
this
.
published
[
index
].
status
);
if
(
item
.
status
==
1
)
{
item
.
status
=
2
;
}
else
{
item
.
status
=
1
;
}
this
.
id
=
item
.
id
;
this
.
status
=
item
.
status
;
this
.
setTurntableActivityStatus
();
}
else
if
(
index
==
2
)
{
if
(
this
.
prize
[
1
].
status
==
1
)
{
this
.
prize
[
1
].
status
=
2
;
}
else
{
this
.
prize
[
1
].
status
=
1
;
}
});
console
.
log
(
e
,
this
.
id
,
this
.
status
);
},
radioChange
:
function
(
e
)
{
var
checked
=
e
.
detail
.
value
;
console
.
log
(
checked
);
},
change
(
e
)
{
console
.
log
(
e
);
this
.
btnnum
=
e
;
// if(e==1){
// this.addTurntableActivity();
// }
if
(
e
==
2
)
{
this
.
getTurntableActivityList
();
}
else
if
(
e
==
3
)
{
this
.
getShopLuckDrawList
();
}
},
// 77777
switch1Change
:
function
(
e
)
{
console
.
log
(
e
.
target
.
value
);
if
(
e
.
target
.
value
==
true
)
{
this
.
diameter
.
status
=
2
;
// this.addTurntableActivity();
}
else
{
this
.
diameter
.
status
=
1
;
// this.formSubmit()
// this.addTurntableActivity();
}
},
onConfirm
(
e
)
{
console
.
log
(
e
);
this
.
diameter
.
start_time
=
e
.
checkArr
[
0
]
+
'
-
'
+
e
.
checkArr
[
1
]
+
'
-
'
+
e
.
checkArr
[
2
];
this
.
diameter
.
end_time
=
e
.
checkArr
[
3
]
+
'
-
'
+
e
.
checkArr
[
4
]
+
'
-
'
+
e
.
checkArr
[
5
];
},
showtime
()
{
this
.
$refs
.
picker
.
show
();
},
hiddetime
()
{
this
.
$refs
.
picker
.
hide
();
},
addition
()
{
this
.
additio
+=
1
;
console
.
log
(
this
.
additio
);
if
(
this
.
additio
>
4
)
{
this
.
additio
=
4
;
uni
.
showToast
({
title
:
'
没有更多了...
'
,
duration
:
2000
});
}
},
//图片上传
c_delImage
(
e
)
{
console
.
log
(
e
,
'
哈哈
'
);
let
arr
=
[];
// for (let k in e.allImages) {
// arr[k] = e.allImages[k].id
// }
this
.
c_photos
=
arr
;
},
c_onImg
(
e
)
{
console
.
info
(
e
);
this
.
c_pics
=
e
.
allImages
;
const
obj
=
e
.
allImages
;
for
(
let
index
in
obj
)
{
let
id
=
obj
[
index
].
data
;
this
.
c_photos
[
index
]
=
id
;
}
console
.
info
(
this
.
c_photos
);
},
c_onImgs
(
e
)
{
console
.
info
(
e
);
this
.
c_picss
=
e
.
allImages
;
const
obj
=
e
.
allImages
;
for
(
let
index
in
obj
)
{
let
id
=
obj
[
index
].
data
;
this
.
c_photos
[
1
]
=
id
;
}
console
.
info
(
this
.
c_photos
);
},
c_onImgss
(
e
)
{
console
.
info
(
e
);
this
.
c_picsss
=
e
.
allImages
;
const
obj
=
e
.
allImages
;
for
(
let
index
in
obj
)
{
let
id
=
obj
[
index
].
data
;
this
.
c_photos
[
2
]
=
id
;
}
console
.
info
(
this
.
c_photos
);
},
c_onImgsss
(
e
)
{
console
.
info
(
e
);
this
.
c_picssss
=
e
.
allImages
;
const
obj
=
e
.
allImages
;
for
(
let
index
in
obj
)
{
let
id
=
obj
[
index
].
data
;
this
.
c_photos
[
3
]
=
id
;
}
console
.
info
(
this
.
c_photos
);
},
c_onImgssss
(
e
)
{
console
.
info
(
e
);
this
.
c_picsssss
=
e
.
allImages
;
const
obj
=
e
.
allImages
;
for
(
let
index
in
obj
)
{
let
id
=
obj
[
index
].
data
;
this
.
c_photos
[
4
]
=
id
;
}
console
.
info
(
this
.
c_photos
);
},
c_onImgsssss
(
e
)
{
console
.
info
(
e
);
this
.
c_picssssss
=
e
.
allImages
;
const
obj
=
e
.
allImages
;
for
(
let
index
in
obj
)
{
let
id
=
obj
[
index
].
data
;
this
.
c_photos
[
5
]
=
id
;
}
console
.
info
(
this
.
c_photos
);
},
onMove_c
(
e
)
{
console
.
log
(
e
);
this
.
c_pics
=
e
;
const
obj
=
e
;
for
(
let
index
in
obj
)
{
let
id
=
obj
[
index
].
data
;
this
.
c_photos
[
index
]
=
id
;
}
else
if
(
index
==
3
)
{
if
(
this
.
prize
[
2
].
status
==
1
)
{
this
.
prize
[
2
].
status
=
2
;
}
else
{
this
.
prize
[
2
].
status
=
1
;
}
}
else
if
(
index
==
4
)
{
if
(
this
.
prize
[
3
].
status
==
1
)
{
this
.
prize
[
3
].
status
=
2
;
}
else
{
this
.
prize
[
3
].
status
=
1
;
}
}
else
if
(
index
==
5
)
{
if
(
this
.
prize
[
4
].
status
==
1
)
{
this
.
prize
[
4
].
status
=
2
;
}
else
{
this
.
prize
[
4
].
status
=
1
;
}
}
else
if
(
index
==
6
)
{
if
(
this
.
prize
[
5
].
status
==
1
)
{
this
.
prize
[
5
].
status
=
2
;
}
else
{
this
.
prize
[
5
].
status
=
1
;
}
}
},
switching
(
e
)
{
// console.log(this.shopdata)
// this.shopdata.map((item, index, arr) => {
// if(item.title==""){
// arr.splice(index,1)
// console.log("哈哈",arr)
// }
// })
},
// 9999999
showstatus
(
e
)
{
// this.getTurntableActivityList()
let
num
=
e
.
currentTarget
.
dataset
.
id
;
this
.
published
.
map
((
item
,
index
,
arr
)
=>
{
if
(
num
==
item
.
id
)
{
console
.
log
(
item
);
console
.
log
(
this
.
published
[
index
].
status
);
if
(
item
.
status
==
1
)
{
item
.
status
=
2
;
}
else
{
item
.
status
=
1
;
}
this
.
id
=
item
.
id
;
this
.
status
=
item
.
status
;
this
.
setTurntableActivityStatus
();
}
},
successvideo
(
e
)
{
console
.
log
(
e
);
},
});
console
.
log
(
e
,
this
.
id
,
this
.
status
);
},
radioChange
:
function
(
e
)
{
var
checked
=
e
.
detail
.
value
;
console
.
log
(
checked
);
},
change
(
e
)
{
console
.
log
(
e
);
this
.
btnnum
=
e
;
// if(e==1){
// this.addTurntableActivity();
// }
if
(
e
==
2
)
{
this
.
getTurntableActivityList
();
}
else
if
(
e
==
3
)
{
this
.
getShopLuckDrawList
();
}
},
// 77777
switch1Change
:
function
(
e
)
{
console
.
log
(
e
.
target
.
value
);
if
(
e
.
target
.
value
==
true
)
{
this
.
diameter
.
status
=
2
;
// this.addTurntableActivity();
}
else
{
this
.
diameter
.
status
=
1
;
// this.formSubmit()
// this.addTurntableActivity();
}
},
onConfirm
(
e
)
{
console
.
log
(
e
);
this
.
diameter
.
start_time
=
e
.
checkArr
[
0
]
+
'
-
'
+
e
.
checkArr
[
1
]
+
'
-
'
+
e
.
checkArr
[
2
];
this
.
diameter
.
end_time
=
e
.
checkArr
[
3
]
+
'
-
'
+
e
.
checkArr
[
4
]
+
'
-
'
+
e
.
checkArr
[
5
];
},
showtime
()
{
this
.
$refs
.
picker
.
show
();
},
hiddetime
()
{
this
.
$refs
.
picker
.
hide
();
},
addition
()
{
this
.
additio
+=
1
;
console
.
log
(
this
.
additio
);
if
(
this
.
additio
>
4
)
{
this
.
additio
=
4
;
uni
.
showToast
({
title
:
'
没有更多了...
'
,
duration
:
2000
});
}
},
//图片上传
c_delImage
(
e
)
{
console
.
log
(
e
,
'
哈哈
'
);
let
arr
=
[];
// for (let k in e.allImages) {
// arr[k] = e.allImages[k].id
// }
this
.
c_photos
=
arr
;
},
c_onImg
(
e
)
{
console
.
info
(
e
);
this
.
c_pics
=
e
.
allImages
;
const
obj
=
e
.
allImages
;
for
(
let
index
in
obj
)
{
let
id
=
obj
[
index
].
data
;
this
.
c_photos
[
index
]
=
id
;
}
console
.
info
(
this
.
c_photos
);
},
c_onImgs
(
e
)
{
console
.
info
(
e
);
this
.
c_picss
=
e
.
allImages
;
const
obj
=
e
.
allImages
;
for
(
let
index
in
obj
)
{
let
id
=
obj
[
index
].
data
;
this
.
c_photos
[
1
]
=
id
;
}
console
.
info
(
this
.
c_photos
);
},
c_onImgss
(
e
)
{
console
.
info
(
e
);
this
.
c_picsss
=
e
.
allImages
;
const
obj
=
e
.
allImages
;
for
(
let
index
in
obj
)
{
let
id
=
obj
[
index
].
data
;
this
.
c_photos
[
2
]
=
id
;
}
console
.
info
(
this
.
c_photos
);
},
c_onImgsss
(
e
)
{
console
.
info
(
e
);
this
.
c_picssss
=
e
.
allImages
;
const
obj
=
e
.
allImages
;
for
(
let
index
in
obj
)
{
let
id
=
obj
[
index
].
data
;
this
.
c_photos
[
3
]
=
id
;
}
console
.
info
(
this
.
c_photos
);
},
c_onImgssss
(
e
)
{
console
.
info
(
e
);
this
.
c_picsssss
=
e
.
allImages
;
const
obj
=
e
.
allImages
;
for
(
let
index
in
obj
)
{
let
id
=
obj
[
index
].
data
;
this
.
c_photos
[
4
]
=
id
;
}
console
.
info
(
this
.
c_photos
);
},
c_onImgsssss
(
e
)
{
console
.
info
(
e
);
this
.
c_picssssss
=
e
.
allImages
;
const
obj
=
e
.
allImages
;
for
(
let
index
in
obj
)
{
let
id
=
obj
[
index
].
data
;
this
.
c_photos
[
5
]
=
id
;
}
console
.
info
(
this
.
c_photos
);
},
onMove_c
(
e
)
{
console
.
log
(
e
);
this
.
c_pics
=
e
;
const
obj
=
e
;
for
(
let
index
in
obj
)
{
let
id
=
obj
[
index
].
data
;
this
.
c_photos
[
index
]
=
id
;
}
},
successvideo
(
e
)
{
console
.
log
(
e
);
},
// 66666666666
formSubmi
:
function
(
e
)
{
// this.fromname = e.detail.value;
// let formdata = this.fromname;
// console.log(this.prize)
...
...
@@ -1060,60 +1076,52 @@ export default {
// };
// console.log(form)
// let form = this.prize;
// console.log(this.prize);
// console.log(this.shop_id);
// console.log(form);
console
.
log
(
this
.
shopdata
,
'
卧槽
'
);
console
.
log
(
this
.
prize
,
'
卧槽
'
);
// this.shopdata==this.prize;
let
target
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
prize
));
console
.
log
(
target
);
target
[
0
].
pic
=
this
.
c_photos
[
0
]
?
this
.
c_photos
[
0
]
:
''
;
target
[
1
].
pic
=
this
.
c_photos
[
1
]
?
this
.
c_photos
[
1
]
:
''
;
target
[
2
].
pic
=
this
.
c_photos
[
2
]
?
this
.
c_photos
[
2
]
:
''
;
target
[
3
].
pic
=
this
.
c_photos
[
3
]
?
this
.
c_photos
[
3
]
:
''
;
target
[
4
].
pic
=
this
.
c_photos
[
4
]
?
this
.
c_photos
[
4
]
:
''
;
target
[
5
].
pic
=
this
.
c_photos
[
5
]
?
this
.
c_photos
[
5
]
:
''
;
target
.
map
((
item
,
index
)
=>
{
item
.
shop_id
=
this
.
shop_id
;
});
// this.shopdata==this.prize;
let
target
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
prize
));
console
.
log
(
target
);
target
[
0
].
pic
=
this
.
c_photos
[
0
]
?
this
.
c_photos
[
0
]
:
''
;
target
[
1
].
pic
=
this
.
c_photos
[
1
]
?
this
.
c_photos
[
1
]
:
''
;
target
[
2
].
pic
=
this
.
c_photos
[
2
]
?
this
.
c_photos
[
2
]
:
''
;
target
[
3
].
pic
=
this
.
c_photos
[
3
]
?
this
.
c_photos
[
3
]
:
''
;
target
[
4
].
pic
=
this
.
c_photos
[
4
]
?
this
.
c_photos
[
4
]
:
''
;
target
[
5
].
pic
=
this
.
c_photos
[
5
]
?
this
.
c_photos
[
5
]
:
''
;
target
.
map
((
item
,
index
)
=>
{
item
.
shop_id
=
this
.
shop_id
;
});
console
.
log
(
target
,
'
aaa卧槽
'
);
if
(
this
.
shopdata
.
length
!=
0
)
{
for
(
let
i
=
target
.
length
-
1
;
i
>=
0
;
i
--
)
{
console
.
log
(
"
啧啧
"
)
if
(
target
[
i
].
proportion
==
""
&&
target
[
i
].
title
==
""
&&
target
[
i
].
num
==
""
)
{
console
.
log
(
i
,
"
哈哈
"
);
for
(
let
i
=
target
.
length
-
1
;
i
>=
0
;
i
--
)
{
console
.
log
(
'
啧啧
'
);
if
(
target
[
i
].
proportion
==
''
&&
target
[
i
].
title
==
''
&&
target
[
i
].
num
==
''
)
{
console
.
log
(
i
,
'
哈哈
'
);
target
.
splice
(
i
,
1
);
}
}
console
.
log
(
target
)
console
.
log
(
target
);
}
console
.
info
(
target
)
console
.
info
(
target
);
if
(
target
.
length
==
0
)
{
uni
.
showModal
({
title
:
'
提示
'
,
content
:
'
请填写内容
'
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
console
.
log
(
'
用户点击确定
'
);
}
else
if
(
res
.
cancel
)
{
console
.
log
(
'
用户点击取消
'
);
}
}
title
:
'
提示
'
,
content
:
'
请填写内容
'
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
console
.
log
(
'
用户点击确定
'
);
}
else
if
(
res
.
cancel
)
{
console
.
log
(
'
用户点击取消
'
);
}
}
});
// uni.showToast({
// title: '请填写内容',
...
...
@@ -1123,18 +1131,17 @@ export default {
let
nums
=
0
;
target
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
title
==
''
||
item
.
proportion
==
''
||
item
.
num
==
''
||
item
.
pic
==
''
)
{
console
.
log
(
'
啊啊啊啊
'
);
uni
.
showModal
({
title
:
'
提示
'
,
content
:
'
有奖项未填写完整
'
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
console
.
log
(
'
用户点击确定
'
);
}
else
if
(
res
.
cancel
)
{
console
.
log
(
'
用户点击取消
'
);
}
}
title
:
'
提示
'
,
content
:
'
有奖项未填写完整
'
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
console
.
log
(
'
用户点击确定
'
);
}
else
if
(
res
.
cancel
)
{
console
.
log
(
'
用户点击取消
'
);
}
}
});
// uni.showToast({
// title: '奖项未填写完整',
...
...
@@ -1142,8 +1149,8 @@ export default {
// });
}
else
{
nums
++
;
console
.
log
(
target
)
this
.
targets
=
target
console
.
log
(
target
)
;
this
.
targets
=
target
;
if
(
nums
==
target
.
length
)
{
this
.
addTurntableActivity
();
}
...
...
@@ -1152,50 +1159,47 @@ export default {
}
// console.log(this.shopdata, this.shopdata.length);
},
// 77777
async
addTurntableActivity
()
{
if
(
this
.
diameter
.
start_time
==
""
||
this
.
diameter
.
end_time
==
""
){
if
(
this
.
diameter
.
start_time
==
''
||
this
.
diameter
.
end_time
==
''
)
{
uni
.
showModal
({
title
:
'
提示
'
,
content
:
'
请选择活动时间
'
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
console
.
log
(
'
用户点击确定
'
);
}
else
if
(
res
.
cancel
)
{
console
.
log
(
'
用户点击取消
'
);
}
}
title
:
'
提示
'
,
content
:
'
请选择活动时间
'
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
console
.
log
(
'
用户点击确定
'
);
}
else
if
(
res
.
cancel
)
{
console
.
log
(
'
用户点击取消
'
);
}
}
});
// uni.showToast({
// title: '请选择活动时间',
// duration: 2000
// });
}
else
if
(
this
.
diameter
.
start_time
==
this
.
diameter
.
end_time
){
console
.
log
(
"
hah
"
)
}
else
if
(
this
.
diameter
.
start_time
==
this
.
diameter
.
end_time
)
{
console
.
log
(
'
hah
'
);
uni
.
showModal
({
title
:
'
提示
'
,
content
:
'
活动开始与结束相同
'
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
console
.
log
(
'
用户点击确定
'
);
}
else
if
(
res
.
cancel
)
{
console
.
log
(
'
用户点击取消
'
);
}
}
title
:
'
提示
'
,
content
:
'
活动开始与结束相同
'
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
console
.
log
(
'
用户点击确定
'
);
}
else
if
(
res
.
cancel
)
{
console
.
log
(
'
用户点击取消
'
);
}
}
});
// uni.showToast({
// title: '开始与结束相同',
// duration: 2000
// });
}
else
{
}
else
{
let
param
=
{
prize
:
this
.
targets
,
prize
:
this
.
targets
,
name
:
this
.
diameter
.
name
,
condition_money
:
Math
.
floor
(
this
.
diameter
.
condition_money
),
receive_endtime
:
Math
.
floor
(
this
.
diameter
.
receive_endtime
),
...
...
@@ -1206,7 +1210,7 @@ export default {
};
console
.
log
(
this
.
shopdata
);
let
res
=
await
addTurntableActivity
(
param
);
uni
.
showToast
({
title
:
res
.
msg
,
duration
:
2000
...
...
@@ -1219,11 +1223,7 @@ export default {
this
.
btnnum
=
2
;
this
.
getTurntableActivityList
();
}
}
},
// 8888
// 奖品专区
...
...
@@ -1235,17 +1235,6 @@ export default {
let
res
=
await
getTurntableActivityList
(
param
);
// uni.hideLoading();//结束加载
// this.isshowloading = false;
// this.shop_list = [...this.shop_list,...res.data];//列表
// // console.log(this.shop_list)
// uni.stopPullDownRefresh();//关闭下拉刷新
// if(res.data.length==0){
// this.$api.msg("没有更多了~");
// }
this
.
published
=
res
.
data
.
list
;
console
.
info
(
res
.
data
.
list
);
...
...
@@ -1271,7 +1260,6 @@ export default {
page
:
this
.
page
,
pagesize
:
10
};
let
res
=
await
getShopLuckDrawList
(
param
);
...
...
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