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
fb63d245
Commit
fb63d245
authored
Feb 09, 2022
by
xieyishang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addxx
parent
f84bb3ff
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
101 additions
and
99 deletions
+101
-99
manifest.json
manifest.json
+2
-2
pages.json
pages.json
+12
-1
pages/edit/pro_manage/pro_manage.vue
pages/edit/pro_manage/pro_manage.vue
+58
-84
pages/eleProduct/eleProduct.scss
pages/eleProduct/eleProduct.scss
+9
-0
pages/eleProduct/eleProduct.vue
pages/eleProduct/eleProduct.vue
+5
-4
pages/evaluate/evaluate.vue
pages/evaluate/evaluate.vue
+15
-8
No files found.
manifest.json
View file @
fb63d245
...
...
@@ -2,8 +2,8 @@
"name"
:
"鹿马商家助手"
,
"appid"
:
"__UNI__1EA80F1"
,
//这个是
web
的
"description"
:
"商家"
,
"versionName"
:
"1.17
3
"
,
"versionCode"
:
117
3
,
"versionName"
:
"1.17
4
"
,
"versionCode"
:
117
4
,
"transformPx"
:
false
,
"compatible"
:
{
"ignoreVersion"
:
true
//
true
表示忽略版本检查提示框,HBuilderX
1.9
.
0
及以上版本支持
...
...
pages.json
View file @
fb63d245
...
...
@@ -155,7 +155,18 @@
{
"path"
:
"pages/edit/pro_manage/pro_manage"
,
"style"
:
{
"navigationBarTitleText"
:
"产品管理"
"navigationBarTitleText"
:
"产品管理"
,
"app-plus"
:
{
"titleNView"
:
{
"buttons"
:
[{
"text"
:
"搜索"
,
"fontSize"
:
"15px"
,
"color"
:
"#000"
,
"float"
:
"right"
}]
}
}
}
}
//外卖订单详情
...
...
pages/edit/pro_manage/pro_manage.vue
View file @
fb63d245
...
...
@@ -46,7 +46,24 @@
</view>
</view>
<view
style=
"height:100px;"
></view>
<view
style=
"height:100px;"
></view>
<!-- 高级搜索弹窗 -->
<uni-popup
:isnonehover=
"false"
type=
"top"
:show=
"isshowsearch"
@
change=
"changepupse"
>
<view
class=
"Advancedsearch"
>
<view
class=
"searcell"
>
<view
class=
"celltit"
>
商品名称
</view>
<view
class=
"cellsinput"
>
<input
class=
"input"
v-model=
"searchtit"
type=
"text"
placeholder=
"商品名称关键词"
></input>
</view>
</view>
<view
class=
"subsearbox flex ali-c jus-c"
>
<view
class=
"searbtn1"
@
tap=
"searchreset"
>
重置
</view>
<view
class=
"searbtn1 searbtn2"
@
tap=
"submitsear"
>
确定
</view>
</view>
</view>
</uni-popup>
<pageScrollTo
v-if=
"isshowtop"
></pageScrollTo>
...
...
@@ -56,11 +73,13 @@
<
script
>
import
uniSegmentedControl
from
"
@/components/uni/uni-segmented-control/uni-segmented-control.vue
"
import
{
goodsList
,
deleteGoods
,
autoManageGoods
}
from
"
@/utils/api/api.js
"
;
import
pageScrollTo
from
"
@/components/pageScrollTo/pageScrollTo.vue
"
import
pageScrollTo
from
"
@/components/pageScrollTo/pageScrollTo.vue
"
import
uniPopup
from
'
@/components/uni-popup/uni-popup.vue
'
;
export
default
{
components
:
{
uniSegmentedControl
,
pageScrollTo
pageScrollTo
,
uniPopup
},
data
()
{
return
{
...
...
@@ -74,7 +93,9 @@
isselect
:
"
2
"
,
sendindex
:
""
,
money_type
:
""
,
activity_type
:
0
activity_type
:
0
,
searchtit
:
""
,
//搜索的关键字
isshowsearch
:
false
,
}
},
onLoad
(
opdata
)
{
...
...
@@ -115,14 +136,43 @@
if
(
this
.
isshowall
){
this
.
getgoodsListfun
();
}
},
//标题栏变点击
onNavigationBarButtonTap
(
e
){
if
(
e
.
index
==
0
){
//显示高级搜索
this
.
isshowsearch
=
!
this
.
isshowsearch
;
}
},
methods
:
{
methods
:
{
//重置搜索
searchreset
(){
this
.
searchtit
=
""
;
this
.
isshowsearch
=
false
;
//关闭弹窗
this
.
page
=
0
;
this
.
goodsListdata
=
[];
this
.
isshowall
=
true
;
this
.
getgoodsListfun
();
},
//确认搜索
submitsear
(){
this
.
isshowsearch
=
false
;
//关闭弹窗
this
.
page
=
0
;
this
.
goodsListdata
=
[];
this
.
isshowall
=
true
;
this
.
getgoodsListfun
();
},
//搜索弹窗
changepupse
(
e
){
this
.
isshowsearch
=
e
.
show
;
},
//获取商城商品列表
async
getgoodsListfun
(){
this
.
page
++
;
let
res
=
await
goodsList
({
closed
:
this
.
current
,
//状态(0上架,1下架)
page
:
this
.
page
,
page
:
this
.
page
,
title
:
this
.
searchtit
,
});
if
(
res
.
code
==
0
){
...
...
@@ -154,31 +204,7 @@
this
.
$api
.
msg
(
res
.
msg
)
}
})
// const that = this
// uni.showModal({
// title: '确定下架?',
// confirmColor:"#ff6900",
// success:(res)=> {
// if (res.confirm == true) {
// //上下架同
// autoManageGoods({
// goods_id:items.goods_id,
// closed:"1",//上下架(0上架,1下架)
// }).then((res)=>{
// if(res.code==0){
// this.$api.msg(res.msg);
// this.goodsListdata.splice(index,1);//本地删除
// }else{
// this.$api.msg(res.msg)
// }
// })
// }
// }
// })
},
//删除
delfun
(
items
,
index
)
{
...
...
@@ -208,37 +234,6 @@
})
})
// this.$api.msg("删除");
// uni.showModal({
// title: '确定删除?',
// confirmColor:"#ff6900",
// success:(res)=> {
// if (res.confirm == true) {
// //请求 删除商品的接口
// deleteGoods({
// goods_id:items.goods_id,
// }).then((res)=>{
// if(res.code==0){
// this.$api.msg(res.msg);
// // this.goodsListdata.splice(index,1);//本地删除
// //刷新列表
// this.goodsListdata = [];
// this.page = 0;
// this.isshowall = true;
// this.getgoodsListfun();
// }else{
// this.$api.msg(res.msg)
// }
// })
// }
// }
// })
},
//上架
pushfun
(
items
,
index
)
{
...
...
@@ -255,28 +250,7 @@
}
})
// this.$api.msg("上架");
// const that = this
// uni.showModal({
// title: '确定上架?',
// success:(res)=> {
// if (res.confirm == true) {
// //上下架同
// autoManageGoods({
// goods_id:items.goods_id,
// closed:"0",//上下架(0上架,1下架)
// }).then((res)=>{
// if(res.code==0){
// this.$api.msg(res.msg);
// this.goodsListdata.splice(index,1);//本地删除
// }else{
// this.$api.msg(res.msg)
// }
// })
// }
// }
// })
},
...
...
pages/eleProduct/eleProduct.scss
View file @
fb63d245
...
...
@@ -3,6 +3,9 @@
background
:
#F5F2F2
;
padding-bottom
:
200upx
;
padding-top
:
110upx
;
}
.ProductManageaa
{
padding-top
:
200upx
;
}
.projuctTab
{
background
:
#FFFFFF
;
...
...
@@ -38,7 +41,13 @@
}
}
}
.projuctTabaa
{
top
:
98upx
;
}
.projuctlist
{
margin
:
20upx
24upx
;
...
...
pages/eleProduct/eleProduct.vue
View file @
fb63d245
<
template
>
<!-- 产品管理 -->
<!-- 产品 -->
<view
class=
"ProductManage pb-100 yocode"
>
<view
class=
"ProductManage pb-100 yocode"
:class=
"
{ProductManageaa:edit==0}"
>
<view
class=
"projuctTab flex"
style=
"justify-content: center;align-items:center ;"
>
<view
class=
"projuctTab flex
"
:class=
"
{projuctTabaa:edit==0}
" style="justify-content: center;align-items:center ;">
<view
class=
""
style=
"width: 70upx;height: 70upx;background-color: #EEEEEE;"
@
click=
"saoma"
>
<image
src=
"../../static/icon/1.png"
mode=
""
style=
"display: inline;"
></image>
</view>
<view
class=
"flex"
style=
"align-items: center;justify-content: center;margin-left: 30upx;"
>
<view
class=
""
>
<input
type=
"text"
value=
""
@
input=
"inputkeys"
v-model=
"keywords"
placeholder=
"搜索要修改的产品"
style=
"background-color: #eee; height: 60upx; border-radius: 20upx; width:460upx;"
/>
<input
type=
"text"
value=
""
@
input=
"inputkeys"
v-model=
"keywords"
placeholder=
"搜索要修改的产品"
style=
"background-color: #eee; height: 60upx; border-radius: 20upx; width:460upx;
padding: 0 10upx;
"
/>
<text
style=
"position: absolute;top: 0;right: 144upx;"
v-if=
"keywords!=''"
@
click=
"clearWord"
>
x
</text>
...
...
@@ -369,7 +369,8 @@
let
res
=
await
eleProductList
({
closed
:
this
.
tabactive
-
1
,
//上下架状态(0上架,1下架)
page
:
this
.
page
,
son
:
son
son
:
son
,
keywords
:
this
.
keywords
,
});
uni
.
hideLoading
();
//结束加载
if
(
res
.
code
==
0
){
...
...
pages/evaluate/evaluate.vue
View file @
fb63d245
...
...
@@ -13,13 +13,7 @@
</view>
</view>
<view
class=
"pingfengboxs"
>
<!--
<Starscom
:fenshu=
"item.score"
></Starscom>
-->
<!--
<view
class=
"pltexts"
v-if=
"item.score==5"
>
非常满意
</view>
<view
class=
"pltexts"
v-if=
"item.score==4"
>
满意
</view>
<view
class=
"pltexts"
v-if=
"item.score==3"
>
一般
</view>
<view
class=
"pltexts"
v-if=
"item.score==2"
>
不满意
</view>
<view
class=
"pltexts"
v-if=
"item.score==1"
>
很不满意
</view>
<view
class=
"pltexts"
v-if=
"item.score==0"
>
用户未评分
</view>
-->
</view>
</view>
<!-- 评论的内容 -->
...
...
@@ -28,7 +22,7 @@
<view
class=
"plcon"
>
{{
item
.
content
}}
</view>
</view>
<view
class=
"imglist"
v-if=
"item.img_url.length!=0"
>
<image
v-for=
"(item1,index1) in item.img_url"
:key=
"index1"
class=
"imgs"
:src=
"staticUrl+item1"
mode=
""
></image>
<image
@
tap=
"previewImagefun(index1,item.img_url)"
v-for=
"(item1,index1) in item.img_url"
:key=
"index1"
class=
"imgs"
:src=
"staticUrl+item1"
mode=
""
></image>
</view>
</view>
...
...
@@ -111,6 +105,19 @@
}
},
methods
:{
//预览评价的图片
previewImagefun
(
index
,
arrlist
){
console
.
info
(
"
预览评价的图片
"
);
arrlist
=
arrlist
.
map
((
item
,
index
)
=>
{
return
this
.
staticUrl
+
item
;
})
// 预览图片
uni
.
previewImage
({
current
:
index
,
urls
:
arrlist
,
//[this.staticUrl+urlimg],
});
},
//提交评论的内容
submitplda
(){
if
(
this
.
reply_content
==
""
){
...
...
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