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
cb98a8c6
Commit
cb98a8c6
authored
Sep 18, 2020
by
home
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zxh
parent
e50a2d61
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
25 deletions
+25
-25
pages/edit/product/addshop.vue
pages/edit/product/addshop.vue
+24
-22
pages/specsShop/specsShop.vue
pages/specsShop/specsShop.vue
+1
-3
No files found.
pages/edit/product/addshop.vue
View file @
cb98a8c6
...
...
@@ -157,6 +157,15 @@
<view
class=
"titles"
>
{{
item
.
name
}}
</view>
</label>
</view>
<!--
<view
v-for=
"(item,index) in seckilltimelist"
>
<label
class=
"lableitem flex ali-c"
>
<view>
<checkbox
color=
"#FF6900"
value=
"is_seckill"
:checked=
"false"
/>
</view>
<view
class=
"titles"
>
{{
item
.
title
}}
</view>
</label>
</view>
-->
</view>
</checkbox-group>
</view>
...
...
@@ -164,8 +173,8 @@
<!-- 单选列表 -->
<view
class=
"checkboxs"
v-if=
"isshowsetkilltime"
>
<view
class=
"title"
>
选择秒杀时段:
</view>
<!-- scroll-view 与 picker-view 达成效果一致-->
<!-- scroll-view 与 picker-view 达成效果一致-->
<!--
<scroll-view
scroll-y=
"true"
>
<view
class=
"chindlost ali-c flex flex-wrap"
style=
"height: 200upx;margin-top: 40upx;"
>
<radio-group
@
change=
"radioChange"
>
...
...
@@ -178,7 +187,7 @@
</radio-group>
</view>
</scroll-view>
-->
<picker-view
indicator-style=
"height: 50px;"
style=
"width: 100%; height: 200px;"
@
change=
"
radio
Change"
>
<picker-view
indicator-style=
"height: 50px;"
style=
"width: 100%; height: 200px;"
@
change=
"
picker
Change"
>
<picker-view-column>
<view
v-for=
"(item,index) in seckilltimelist"
:key=
"index"
style=
"line-height: 50px; text-align: center;"
>
{{
item
.
title
}}
</view>
</picker-view-column>
...
...
@@ -244,10 +253,11 @@
// {name:"是否秒杀产品",value:"is_seckill",checked:false,status:1}, /* */
],
seckilltimelist
:[],
//秒杀时间列表
isshowsetkilltime
:
false
,
//是否显示秒杀时间
段
isshowsetkilltime
:
false
,
//是否显示秒杀时间
listissetkill
:[{
name
:
"
是否秒杀产品
"
,
value
:
"
is_seckill
"
,
checked
:
false
}],
activity_type
:
0
,
activity_type
:
0
,
//判断是否可以秒杀
index
:
0
,
idx
:
0
,
idj
:
0
,
...
...
@@ -314,17 +324,13 @@
}
},
onLoad
(
opdata
)
{
console
.
info
(
opdata
,
2222222
)
this
.
money_type
=
opdata
.
money_type
this
.
activity_type
=
opdata
.
activity_type
if
(
opdata
.
id
!=
""
&&
opdata
.
id
!=
undefined
){
this
.
canform
.
goods_id
=
opdata
.
id
;
//修改的商品id
this
.
canform
.
action
=
"
edit
"
;
uni
.
setNavigationBarTitle
({
title
:
"
编辑产品
"
})
...
...
@@ -350,7 +356,6 @@
pickertow
(){
this
.
$refs
.
picker1
.
show
()
// 显示
},
// 秒杀列表
async
getActivityListfun
(){
let
res
=
await
getActivityList
({
...
...
@@ -359,7 +364,7 @@
if
(
res
.
code
==
0
){
console
.
log
(
res
,
3333
)
this
.
seckilltimelist
=
res
.
data
.
head
// this.canform.activity_id = res.data.activity_id
}
},
//获取原来的商品详情信息
...
...
@@ -565,6 +570,7 @@
},
1000
)
}
else
{
this
.
$api
.
msg
(
res
.
msg
);
}
this
.
issubmit
=
true
;
...
...
@@ -574,8 +580,7 @@
//多选 勾选 列表
checkboxChange
(
e
){
console
.
log
(
e
,
111111111
);
// console.log()
this
.
isshowsetkilltime
=
e
.
detail
.
value
.
indexOf
(
'
is_seckill
'
)
==-
1
?
false
:
true
;
if
(
e
.
detail
.
value
.
indexOf
(
'
is_seckill
'
)
!=-
1
){
this
.
getActivityListfun
();
...
...
@@ -584,14 +589,11 @@
this
.
selchildList
=
e
.
detail
.
value
;
},
//单选框
radio
Change
(
e
){
picker
Change
(
e
){
// console.log(e)
// console.log(this.seckilltimelist[e.detail.value[0]].activity_id)
this
.
activity_id
=
this
.
seckilltimelist
[
e
.
detail
.
value
[
0
]].
activity_id
;
// this.activity_id = e.detail.value;
// let listindex = e.detail.value
// console.log(this.activity_id,111111)
// console.log( e.detail.value,111111)
},
changepicker
(
e
){
...
...
pages/specsShop/specsShop.vue
View file @
cb98a8c6
...
...
@@ -99,8 +99,6 @@
import
{
getActivityList
}
from
'
@/utils/api/merchant.js
'
;
/**
* 查询商品的规格 商品规格详情 goodsSpec
*
*
* */
export
default
{
components
:{
...
...
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