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
ea4296ad
Commit
ea4296ad
authored
Sep 04, 2020
by
srf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
srf
parent
f008b3a8
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
187 additions
and
217 deletions
+187
-217
pages/edit/pro_manage/pro_manage.vue
pages/edit/pro_manage/pro_manage.vue
+6
-1
pages/edit/product/addshop.vue
pages/edit/product/addshop.vue
+13
-3
pages/index/index.vue
pages/index/index.vue
+168
-213
No files found.
pages/edit/pro_manage/pro_manage.vue
View file @
ea4296ad
...
...
@@ -72,9 +72,14 @@
isshowall
:
true
,
isselect
:
"
2
"
,
sendindex
:
""
,
money_type
:
""
}
},
onLoad
(
opdata
)
{
console
.
info
(
opdata
)
this
.
money_type
=
opdata
.
money_type
;
if
(
opdata
.
isselect
==
1
){
this
.
isselect
=
1
;
this
.
sendindex
=
opdata
.
sendindex
;
//插入索引
...
...
@@ -268,7 +273,7 @@
jump_edit
(
item
)
{
uni
.
navigateTo
({
//url: '/pages/edit/product/product?id=' + id
url
:
"
/pages/edit/product/addshop?id=
"
+
item
.
goods_id
,
url
:
"
/pages/edit/product/addshop?id=
"
+
item
.
goods_id
+
'
&money_type=
'
+
this
.
money_type
,
})
},
//tab切换事件
...
...
pages/edit/product/addshop.vue
View file @
ea4296ad
...
...
@@ -128,12 +128,17 @@
</view>
<!-- 富文本 -->
<view
class=
"noecellbox"
v-show=
"money_type==3"
>
<view
class=
"title"
>
佣金金额
</view>
<view
class=
"inputbox flex"
>
<input
class=
"input flex1"
type=
"text"
v-model=
"canform.money"
value=
""
placeholder-class=
"plclass"
placeholder=
"请填写产品名称"
/>
</view>
</view>
<!-- 多选列表 勾选的位置 -->
<view
class=
"checkboxs"
>
<view
class=
"title"
>
标识:
</view>
<!-- 表特和类目 -->
<checkbox-group
@
change=
"checkboxChange"
>
<view
class=
"chindlost ali-c flex flex-wrap"
>
<label
class=
"lableitem flex ali-c"
v-for=
"(item,index) in listchind"
:key=
"index"
>
...
...
@@ -179,6 +184,7 @@
},
data
()
{
return
{
money_type
:
""
,
//佣金
myProps
:
{
label
:
'
value
'
,
value
:
'
cate_id
'
,
...
...
@@ -228,6 +234,7 @@
is_new
:
"
0
"
,
//0 1 是否新产品
is_hot
:
"
0
"
,
//0 1 是否热卖产品
action
:
"
add
"
,
//方式(添加:add,修改:edit)
money
:
''
},
goodsCate
:[],
...
...
@@ -259,6 +266,9 @@
}
},
onLoad
(
opdata
)
{
console
.
info
(
opdata
)
this
.
money_type
=
opdata
.
money_type
if
(
opdata
.
id
!=
""
&&
opdata
.
id
!=
undefined
){
this
.
canform
.
goods_id
=
opdata
.
id
;
//修改的商品id
this
.
canform
.
action
=
"
edit
"
;
...
...
@@ -306,7 +316,7 @@
this
.
canform
.
details
=
res
.
data
.
details
;
///商品详情(编辑器插件)
this
.
canform
.
num
=
res
.
data
.
num
;
//库存 num
this
.
canform
.
cate_id
=
res
.
data
.
cate_id
;
//产品分类
this
.
canform
.
money
=
res
.
data
.
money
;
//佣金
//处理分类初始值
for
(
let
i
=
0
;
i
<
this
.
goodsCate
.
length
;
i
++
){
...
...
pages/index/index.vue
View file @
ea4296ad
This diff is collapsed.
Click to expand it.
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