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
b619463e
Commit
b619463e
authored
Dec 16, 2020
by
home
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zxf
parent
563d4e49
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
6 deletions
+19
-6
manifest.json
manifest.json
+0
-1
pages/addEditEleProduct/addEditEleProduct.vue
pages/addEditEleProduct/addEditEleProduct.vue
+19
-5
No files found.
manifest.json
View file @
b619463e
...
...
@@ -5,7 +5,6 @@
"description"
:
"商家"
,
"versionName"
:
"1.0.98"
,
"versionCode"
:
198
,
"transformPx"
:
false
,
"compatible"
:
{
"ignoreVersion"
:
true
,
//
true
表示忽略版本检查提示框,HBuilderX
1.9
.
0
及以上版本支持
...
...
pages/addEditEleProduct/addEditEleProduct.vue
View file @
b619463e
...
...
@@ -221,7 +221,7 @@
<view
class=
"inputs"
@
tap=
'pickerone'
>
<view
class=
""
style=
"padding-left: 15upx;"
>
{{
cate_name
}}
</view>
</view>
<lb-picker
ref=
"picker"
:list=
"chindformList"
:value=
'
index'
range-key=
"label"
:props=
"myProps
"
@
confirm=
'confirm'
></lb-picker>
<lb-picker
ref=
"picker"
:list=
"chindformList"
:value=
'
chindformList.cate_name'
range-key=
"label
"
@
confirm=
'confirm'
></lb-picker>
</view>
</view>
...
...
@@ -611,6 +611,7 @@
}
},
async
findEleProduct
(
results
){
console
.
log
(
'
查找商品
'
)
uni
.
showLoading
({
title
:
'
请稍后
'
});
let
res
=
await
findEleProduct
({
code
:
results
.
code
});
...
...
@@ -662,6 +663,8 @@
this
.
codeDisabled
=
true
;
//条形码输入框是否禁止输入
this
.
c_pics
=
[{
code
:
0
,
data
:
res
.
data
.
photo
,
msg
:
"
success
"
,
time
:
"
1587101904
"
}];
// console.log(this.chindformList);
for
(
var
i
=
0
;
i
<
this
.
chindformList
.
length
;
i
++
)
{
if
(
this
.
chindformList
[
i
].
cate_id
==
res
.
data
.
cate_id
){
this
.
cate_name
=
this
.
chindformList
[
i
].
cate_name
;
...
...
@@ -669,6 +672,9 @@
}
}
}
},
myProps
(){
},
saoma
(
e
){
uni
.
scanCode
({
...
...
@@ -725,11 +731,12 @@
},
confirm
(
e
){
console
.
log
(
e
)
console
.
log
(
e
)
;
this
.
cate_name
=
e
.
item
.
cate_name
;
this
.
form
.
cate_id
=
e
.
item
.
cate_id
;
this
.
index
=
e
.
index
;
},
},
pickerone
(){
this
.
$refs
.
picker
.
show
()
// 显示
},
...
...
@@ -741,7 +748,8 @@
},
//分类选中
bindPickerChange
(
e
){
console
.
info
(
e
.
detail
.
value
);
console
.
info
(
e
.
detail
.
value
);
console
.
log
(
this
.
chindformList
)
this
.
cate_name
=
this
.
chindformList
[
e
.
detail
.
value
].
cate_name
;
this
.
form
.
cate_id
=
this
.
chindformList
[
e
.
detail
.
value
].
cate_id
;
this
.
index
=
e
.
detail
.
value
;
...
...
@@ -800,8 +808,11 @@
this
.
form
.
commission
=
res
.
data
.
commission
,
//返佣比例
this
.
form
.
sell_type
=
res
.
data
.
sell_type
,
// 售卖类型
this
.
form
.
mandatory
=
res
.
data
.
mandatory
this
.
video_photos
=
res
.
data
.
video_photos
;
//轮播
this
.
detail_photos
=
res
.
data
.
detail_photos
;
//详情
res
.
data
.
video_photos
.
map
(
item
=>
{
//轮播
this
.
c_pics1
.
push
({
code
:
0
,
...
...
@@ -826,6 +837,8 @@
}
});
if
(
res
.
data
.
commodity_type
==
'
ordinary
'
)
{
this
.
ordinary
.
map
(
item
=>
{
if
(
this
.
linkage_product_id
==
item
.
product_id
){
...
...
@@ -983,7 +996,8 @@
async
typeManagerfun
(){
let
res
=
await
typeManager
({});
if
(
res
.
code
==
0
){
this
.
chindformList
=
res
.
data
;
this
.
chindformList
=
res
.
data
;
if
(
this
.
product_id
!=
undefined
&&
this
.
product_id
!=
""
){
this
.
eleProductInfofun
();
}
...
...
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