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
fed5ec73
Commit
fed5ec73
authored
Dec 07, 2020
by
home
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zxzf
parent
4d0103d9
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
601 additions
and
506 deletions
+601
-506
manifest.json
manifest.json
+2
-2
pages/eleProduct/eleProduct.vue
pages/eleProduct/eleProduct.vue
+3
-5
pages/index/index.vue
pages/index/index.vue
+582
-498
static/icon/download.png
static/icon/download.png
+0
-0
utils/api/api.js
utils/api/api.js
+10
-1
utils/api/merchant.js
utils/api/merchant.js
+4
-0
No files found.
manifest.json
View file @
fed5ec73
...
...
@@ -3,8 +3,8 @@
//
"appid"
:
"__UNI__FC9419E"
,
"appid"
:
"__UNI__1EA80F1"
,
//这个是
web
的
"description"
:
"商家"
,
"versionName"
:
"1.0.9
5
"
,
"versionCode"
:
19
5
,
"versionName"
:
"1.0.9
6
"
,
"versionCode"
:
19
6
,
"transformPx"
:
false
,
"compatible"
:
{
"ignoreVersion"
:
true
,
//
true
表示忽略版本检查提示框,HBuilderX
1.9
.
0
及以上版本支持
...
...
pages/eleProduct/eleProduct.vue
View file @
fed5ec73
...
...
@@ -19,11 +19,9 @@
<text
>
搜索
</text>
</view>
</view>
</view>
</view>
</view>
<!-- tab切换 -->
<view
class=
"projuctTab flex"
v-if=
"edit==0"
>
<view
class=
"tabitems flex1"
:class=
"
{active:tabactive==1}" @tap="taggletab(1)">
...
...
pages/index/index.vue
View file @
fed5ec73
<
template
>
<!-- 商家助手首页 -->
<view
class=
"index"
>
<view
class=
"head"
>
<view
class=
"tit"
>
店铺名称:
{{
storeinfo
.
shop_name
}}
</view>
<!--
{{
shop
.
shop_name
}}
-->
<
template
>
<!-- 商家助手首页 -->
<view
class=
"index"
>
<view
class=
"head"
>
<view
class=
"tit"
>
店铺名称:
{{
storeinfo
.
shop_name
}}
</view>
<!--
{{
shop
.
shop_name
}}
-->
<view
:class=
"['jiu', shop_type == 'ele'?'':'jus-b']"
>
<view
class=
"jiu_01"
v-if=
"is_bld == 1"
>
<view
@
tap=
"saoma"
>
<image
class=
"img"
src=
"/static/icon/1.png"
mode=
""
></image>
<image
class=
"img"
src=
"/static/icon/1.png"
mode=
""
></image>
<view>
扫码入库
</view>
</view>
</view>
<view
class=
"jiu_01"
:style=
"is_bld==1?'':'width: 33%;'"
>
<navigator
url=
"/pages/notice/notice"
>
<view><image
class=
"img"
src=
"/static/icon/newsicon.png"
mode=
""
></image></view>
<view>
消息通知
</view>
</navigator>
</view>
<view
class=
"jiu_01"
:style=
"is_bld==1?'':'width: 33%;'"
>
<navigator
url=
"/pages/notice/notice"
>
<view>
<image
class=
"img"
src=
"/static/icon/newsicon.png"
mode=
""
></image>
</view>
<view>
消息通知
</view>
</navigator>
</view>
<view
class=
"jiu_01"
:style=
"is_bld==1?'':'width: 33%;'"
>
<navigator
url=
"/pages/user/tongji/tongji"
>
<view><image
class=
"img"
src=
"/static/icon/zijinicons.png"
mode=
""
></image></view>
<view>
<image
class=
"img"
src=
"/static/icon/zijinicons.png"
mode=
""
></image>
</view>
<view>
商户资金
</view>
</navigator>
</view>
<view
class=
"jiu_01"
:style=
"is_bld==1?'':'width: 33%;'"
>
<navigator
url=
"/pages/user/mingxi/mingxi"
>
<view><image
class=
"img"
src=
"/static/icon/3.png"
mode=
""
></image></view>
<view>
佣金明细
</view>
</navigator>
</view>
</view>
</view>
<view
class=
"more"
>
<view
class=
"mo"
>
<view
class=
"mo_01"
>
数据交易
</view>
<navigator
url=
"/pages/user/tongji/tongji"
>
<view
class=
"mo_02"
>
更多
<uni-icon
type=
"arrowright"
size=
"15"
color=
"#D6D6D6"
></uni-icon>
</view>
</navigator>
</view>
</view>
<navigator
url=
"/pages/user/tongji/tongji"
class=
"shuju"
>
<view
class=
"shuju_01"
>
<view>
今日订单/今日收益
</view>
<view
class=
"shuju_01_s"
v-if=
"countdata.order_day"
>
{{
countdata
.
order_day
}}
/¥
{{
countdata
.
money_day
}}
</view>
<view
class=
"shuju_01_s"
v-else
>
0 / ¥0
</view>
</view>
<view
class=
"shuju_01 no"
>
<view>
昨日订单/金额
</view>
<view
class=
"shuju_01_s"
v-if=
"countdata.order_yesterday"
>
{{
countdata
.
order_yesterday
}}
/¥
{{
countdata
.
money_yesterday
}}
</view>
<view
class=
"shuju_01_s"
v-else
>
0 / ¥0
</view>
</view>
<view
class=
"shuju_01"
>
<view>
总订单数
</view>
<view
class=
"shuju_01_s"
v-if=
"countdata.total_order"
>
{{
countdata
.
total_order
}}
</view>
<view
class=
"shuju_01_s"
v-else
>
0
</view>
</view>
<view
class=
"shuju_01 no"
>
<view>
总收入
</view>
<view
class=
"shuju_01_s"
v-if=
"countdata.money"
>
¥
{{
countdata
.
money
}}
</view>
<view
class=
"shuju_01_s"
v-else
>
¥0
</view>
</view>
<view
class=
"shuju_01"
v-if=
"is_bld"
>
<view>
现金支付数
</view>
<view
class=
"shuju_01_s"
v-if=
"countdata.cash"
>
¥
{{
countdata
.
cash
}}
</view>
<view
class=
"shuju_01_s"
v-else
>
¥0
</view>
</view>
<view
class=
"shuju_01 no"
v-if=
"is_bld"
>
<view>
昨日/现金支付数
</view>
<view
class=
"shuju_01_s"
v-if=
"countdata.yesterday_cash"
>
¥
{{
countdata
.
yesterday_cash
}}
</view>
<view
class=
"shuju_01_s"
v-else
>
¥0
</view>
<view
class=
"jiu_01"
:style=
"is_bld==1?'':'width: 33%;'"
>
<navigator
url=
"/pages/user/mingxi/mingxi"
>
<view>
<image
class=
"img"
src=
"/static/icon/3.png"
mode=
""
></image>
</view>
<view>
佣金明细
</view>
</navigator>
</view>
</navigator>
<view
class=
"BH"
></view>
<view
class=
"six"
>
<view
class=
"jiu_max"
v-if=
"shop_type == 'goods'"
@
tap=
"jump"
>
<!--
<navigator
url=
"/pages/edit/pro_manage/pro_manage"
>
-->
<view
class=
"jiu_min"
>
<view><image
class=
"img"
src=
"/static/icon/20.png"
mode=
""
></image></view>
<view>
商品管理
</view>
</view>
<!--
</navigator>
-->
</view>
<view
class=
"jiu_max "
v-if=
"shop_type == 'ele'"
>
<navigator
:url=
"'/pages/eleProduct/eleProduct?edit=0&activity_type='+ activity_type "
>
<view
class=
"jiu_min"
>
<view><image
class=
"img"
src=
"/static/icon/eleproduct.png"
mode=
""
></image></view>
<view>
外卖产品
</view>
</view>
</navigator>
</view>
<!-- 酒店管理 -->
<view
class=
"jiu_max "
v-if=
"shop_type == 'hotel'"
>
<navigator
url=
"/pages/HotelManage/HotelManage"
>
<view
class=
"jiu_min"
>
<view><image
class=
"img"
src=
"/static/icon/20.png"
mode=
""
></image></view>
<view>
酒店管理
</view>
</view>
</navigator>
</view>
<!-- 商城不要分类 这个是外卖的-->
<view
class=
"jiu_max"
v-if=
"shop_type == 'ele'"
>
<navigator
url=
"/pages/shopCategory/shopCategory?type=1"
>
<view
class=
"jiu_min"
>
<view><image
class=
"img"
src=
"/static/icon/eleclass.png"
mode=
""
></image></view>
<view>
商品分类
</view>
</view>
</navigator>
</view>
<!-- 这个是商城的 -->
<view
class=
"jiu_max"
v-if=
"shop_type == 'goods'"
>
<navigator
url=
"/pages/storeCategory/storeCategory?type=1"
>
<view
class=
"jiu_min"
>
<view><image
class=
"img"
src=
"/static/icon/6.png"
mode=
""
></image></view>
<view>
商品分类
</view>
</view>
</navigator>
</view>
<!--
<view
class=
"jiu_01"
>
<navigator
url=
"/pages/shopCategory/shopCategory?type=2"
>
<view>
<image
class=
"img"
src=
"/static/icon/21.png"
mode=
""
></image>
</view>
<view>
商品属性
</view>
</navigator>
</view>
-->
<!-- 只有商城才有规格 外卖没有规格 -->
<!-- v-if="shop_type=='goods'" -->
<!-- 商城和外卖都有规格 -->
<view
class=
"jiu_max"
>
<navigator
url=
"/pages/specs/specs?type=2"
>
<view
class=
"jiu_min"
>
<view><image
class=
"img"
src=
"/static/icon/eleguige.png"
mode=
""
></image></view>
<view>
商品规格
</view>
</view>
</navigator>
</view>
<view
class=
"jiu_max"
v-if=
"shop_type == 'ele'"
>
<!-- 外卖订单 -->
<navigator
url=
"/pages/order/order"
>
<view
class=
"jiu_min"
>
<view><image
class=
"img"
src=
"/static/icon/eleguanli.png"
mode=
""
></image></view>
<view>
订单管理
</view>
</view>
</navigator>
</view>
<view
class=
"jiu_max"
v-if=
"shop_type == 'goods'"
>
<!-- 商城订单 -->
<navigator
url=
"/pages/order/shopOrder"
>
<view
class=
"jiu_min"
>
<view><image
class=
"img"
src=
"/static/icon/8.png"
mode=
""
></image></view>
<view>
订单管理
</view>
</view>
</navigator>
</view>
<!-- 酒店的订单 酒店订单管理-->
<view
class=
"jiu_max"
v-if=
"shop_type == 'hotel'"
>
<!-- 酒店的订单 -->
<navigator
url=
"/pages/hotelOrder/hotelOrder"
>
<view
class=
"jiu_min"
>
<view><image
class=
"img"
src=
"/static/icon/8.png"
mode=
""
></image></view>
<view>
订单管理
</view>
</view>
</navigator>
</view>
<view
class=
"jiu_max "
>
<navigator
url=
"/pages/kehu/kehu"
>
<view
class=
"jiu_min"
>
<view><image
class=
"img"
src=
"/static/icon/elesuoke.png"
mode=
""
></image></view>
<view>
锁客列表
</view>
</view>
</navigator>
</view>
<!-- 活动管理 只有商城才有抽奖活动-->
<view
class=
"jiu_max "
v-if=
"shop_type == 'goods'"
>
<navigator
url=
"/pages/LuckDraw/homenav/homenav"
>
<view
class=
"jiu_min"
>
<view><image
class=
"img"
src=
"/static/news/liwuiocn.png"
mode=
""
></image></view>
<view>
抽奖活动
</view>
</view>
</navigator>
</view>
<view
class=
"jiu_max "
>
<navigator
url=
"/pages/CardSend/CardSend"
>
<view
class=
"jiu_min"
>
<view><image
class=
"img"
src=
"/static/news/elecoup.png"
mode=
""
></image></view>
<view>
优惠券管理
</view>
</view>
</navigator>
</view>
<view
class=
"jiu_max "
>
<navigator
url=
"/pages/Printer/AddPrinter"
>
<view
class=
"jiu_min"
>
<view><image
class=
"img"
src=
"/static/news/printer.png"
mode=
""
></image></view>
<view>
添加打印机
</view>
</view>
</navigator>
</view>
<view
class=
"jiu_max "
@
tap=
"shops"
>
<view
class=
"jiu_min"
>
<view><image
class=
"img"
src=
"/static/news/turntable.png"
mode=
""
></image></view>
<view>
大转盘
</view>
</view>
</view>
<view
class=
"jiu_max "
>
<navigator
url=
"/pages/deliveryCost/deliveryCost"
>
</view>
<view
class=
"more"
>
<view
class=
"mo"
>
<view
class=
"mo_01"
>
数据交易
</view>
<navigator
url=
"/pages/user/tongji/tongji"
>
<view
class=
"mo_02"
>
更多
<uni-icon
type=
"arrowright"
size=
"15"
color=
"#D6D6D6"
></uni-icon>
</view>
</navigator>
</view>
</view>
<navigator
url=
"/pages/user/tongji/tongji"
class=
"shuju"
>
<view
class=
"shuju_01"
>
<view>
今日订单/今日收益
</view>
<view
class=
"shuju_01_s"
v-if=
"countdata.order_day"
>
{{
countdata
.
order_day
}}
/¥
{{
countdata
.
money_day
}}
</view>
<view
class=
"shuju_01_s"
v-else
>
0 / ¥0
</view>
</view>
<view
class=
"shuju_01 no"
>
<view>
昨日订单/金额
</view>
<view
class=
"shuju_01_s"
v-if=
"countdata.order_yesterday"
>
{{
countdata
.
order_yesterday
}}
/¥
{{
countdata
.
money_yesterday
}}
</view>
<view
class=
"shuju_01_s"
v-else
>
0 / ¥0
</view>
</view>
<view
class=
"shuju_01"
>
<view>
总订单数
</view>
<view
class=
"shuju_01_s"
v-if=
"countdata.total_order"
>
{{
countdata
.
total_order
}}
</view>
<view
class=
"shuju_01_s"
v-else
>
0
</view>
</view>
<view
class=
"shuju_01 no"
>
<view>
总收入
</view>
<view
class=
"shuju_01_s"
v-if=
"countdata.money"
>
¥
{{
countdata
.
money
}}
</view>
<view
class=
"shuju_01_s"
v-else
>
¥0
</view>
</view>
<view
class=
"shuju_01"
v-if=
"is_bld"
>
<view>
现金支付数
</view>
<view
class=
"shuju_01_s"
v-if=
"countdata.cash"
>
¥
{{
countdata
.
cash
}}
</view>
<view
class=
"shuju_01_s"
v-else
>
¥0
</view>
</view>
<view
class=
"shuju_01 no"
v-if=
"is_bld"
>
<view>
昨日/现金支付数
</view>
<view
class=
"shuju_01_s"
v-if=
"countdata.yesterday_cash"
>
¥
{{
countdata
.
yesterday_cash
}}
</view>
<view
class=
"shuju_01_s"
v-else
>
¥0
</view>
</view>
</navigator>
<view
class=
"BH"
></view>
<view
class=
"six"
>
<view
class=
"jiu_max"
v-if=
"shop_type == 'goods'"
@
tap=
"jump"
>
<!--
<navigator
url=
"/pages/edit/pro_manage/pro_manage"
>
-->
<view
class=
"jiu_min"
>
<view>
<image
class=
"img"
src=
"/static/icon/20.png"
mode=
""
></image>
</view>
<view>
商品管理
</view>
</view>
<!--
</navigator>
-->
</view>
<view
class=
"jiu_max "
v-if=
"shop_type == 'ele'"
>
<navigator
:url=
"'/pages/eleProduct/eleProduct?edit=0&activity_type='+ activity_type "
>
<view
class=
"jiu_min"
>
<view><image
class=
"img"
src=
"/static/icon/psfei.png"
mode=
""
></image></view>
<view>
外卖配送费设置
</view>
<view>
<image
class=
"img"
src=
"/static/icon/eleproduct.png"
mode=
""
></image>
</view>
<view>
外卖产品
</view>
</view>
</navigator>
</view>
<!-- hgService.showSafeSetting(); -->
<view
class=
"jiu_max "
>
<navigator
url=
"/pages/eleProduct/eleProduct?edit=1"
>
<!-- 酒店管理 -->
<view
class=
"jiu_max "
v-if=
"shop_type == 'hotel'"
>
<navigator
url=
"/pages/HotelManage/HotelManage"
>
<view
class=
"jiu_min"
>
<view><image
class=
"img"
src=
"/static/icon/editPrice.png"
mode=
""
></image></view>
<view>
快捷改价
</view>
<view>
<image
class=
"img"
src=
"/static/icon/20.png"
mode=
""
></image>
</view>
<view>
酒店管理
</view>
</view>
</navigator>
</view>
<view
class=
"jiu_max "
>
<navigator
url=
"/pages/eleProduct/eleProduct?edit=2"
>
<!-- 商城不要分类 这个是外卖的-->
<view
class=
"jiu_max"
v-if=
"shop_type == 'ele'"
>
<navigator
url=
"/pages/shopCategory/shopCategory?type=1"
>
<view
class=
"jiu_min"
>
<view>
<image
class=
"img"
src=
"/static/icon/eleclass.png"
mode=
""
></image>
</view>
<view>
商品分类
</view>
</view>
</navigator>
</view>
<!-- 这个是商城的 -->
<view
class=
"jiu_max"
v-if=
"shop_type == 'goods'"
>
<navigator
url=
"/pages/storeCategory/storeCategory?type=1"
>
<view
class=
"jiu_min"
>
<view>
<image
class=
"img"
src=
"/static/icon/6.png"
mode=
""
></image>
</view>
<view>
商品分类
</view>
</view>
</navigator>
</view>
<!--
<view
class=
"jiu_01"
>
<navigator
url=
"/pages/shopCategory/shopCategory?type=2"
>
<view>
<image
class=
"img"
src=
"/static/icon/21.png"
mode=
""
></image>
</view>
<view>
商品属性
</view>
</navigator>
</view>
-->
<!-- 只有商城才有规格 外卖没有规格 -->
<!-- v-if="shop_type=='goods'" -->
<!-- 商城和外卖都有规格 -->
<view
class=
"jiu_max"
>
<navigator
url=
"/pages/specs/specs?type=2"
>
<view
class=
"jiu_min"
>
<view>
<image
class=
"img"
src=
"/static/icon/eleguige.png"
mode=
""
></image>
</view>
<view>
商品规格
</view>
</view>
</navigator>
</view>
<view
class=
"jiu_max"
v-if=
"shop_type == 'ele'"
>
<!-- 外卖订单 -->
<navigator
url=
"/pages/order/order"
>
<view
class=
"jiu_min"
>
<view>
<image
class=
"img"
src=
"/static/icon/eleguanli.png"
mode=
""
></image>
</view>
<view>
订单管理
</view>
</view>
</navigator>
</view>
<view
class=
"jiu_max"
v-if=
"shop_type == 'goods'"
>
<!-- 商城订单 -->
<navigator
url=
"/pages/order/shopOrder"
>
<view
class=
"jiu_min"
>
<view>
<image
class=
"img"
src=
"/static/icon/8.png"
mode=
""
></image>
</view>
<view>
订单管理
</view>
</view>
</navigator>
</view>
<!-- 酒店的订单 酒店订单管理-->
<view
class=
"jiu_max"
v-if=
"shop_type == 'hotel'"
>
<!-- 酒店的订单 -->
<navigator
url=
"/pages/hotelOrder/hotelOrder"
>
<view
class=
"jiu_min"
>
<view><image
class=
"img"
src=
"/static/icon/editStore.png"
mode=
""
></image></view>
<view>
增减库存
</view>
<view>
<image
class=
"img"
src=
"/static/icon/8.png"
mode=
""
></image>
</view>
<view>
订单管理
</view>
</view>
</navigator>
</view>
<view
class=
"jiu_max "
>
<navigator
url=
"/pages/kehu/kehu"
>
<view
class=
"jiu_min"
>
<view>
<image
class=
"img"
src=
"/static/icon/elesuoke.png"
mode=
""
></image>
</view>
<view>
锁客列表
</view>
</view>
</navigator>
</view>
<!-- 活动管理 只有商城才有抽奖活动-->
<view
class=
"jiu_max "
v-if=
"shop_type == 'goods'"
>
<navigator
url=
"/pages/LuckDraw/homenav/homenav"
>
<view
class=
"jiu_min"
>
<view>
<image
class=
"img"
src=
"/static/news/liwuiocn.png"
mode=
""
></image>
</view>
<view>
抽奖活动
</view>
</view>
</navigator>
</view>
<view
class=
"jiu_max "
>
<navigator
url=
"/pages/CardSend/CardSend"
>
<view
class=
"jiu_min"
>
<view>
<image
class=
"img"
src=
"/static/news/elecoup.png"
mode=
""
></image>
</view>
<view>
优惠券管理
</view>
</view>
</navigator>
</view>
<view
class=
"jiu_max "
>
<navigator
url=
"/pages/Printer/AddPrinter"
>
<view
class=
"jiu_min"
>
<view>
<image
class=
"img"
src=
"/static/news/printer.png"
mode=
""
></image>
</view>
<view>
添加打印机
</view>
</view>
</navigator>
</view>
<view
class=
"jiu_max "
@
tap=
"shops"
>
<view
class=
"jiu_min"
>
<view>
<image
class=
"img"
src=
"/static/news/turntable.png"
mode=
""
></image>
</view>
<view>
大转盘
</view>
</view>
</view>
<view
class=
"jiu_max "
>
<navigator
url=
"/pages/deliveryCost/deliveryCost"
>
<view
class=
"jiu_min"
>
<view>
<image
class=
"img"
src=
"/static/icon/psfei.png"
mode=
""
></image>
</view>
<view>
外卖配送费设置
</view>
</view>
</navigator>
</view>
<!-- hgService.showSafeSetting(); -->
</view>
<view
class=
"BH"
></view>
<Welcome
ref=
"Welcome"
></Welcome>
<!-- 欢迎回来 -->
</view>
</
template
>
<view
class=
"jiu_max "
v-if=
"is_bld"
>
<navigator
url=
"/pages/eleProduct/eleProduct?edit=1"
>
<view
class=
"jiu_min"
>
<view>
<image
class=
"img"
src=
"/static/icon/editPrice.png"
mode=
""
></image>
</view>
<view>
快捷改价
</view>
</view>
</navigator>
</view>
<view
class=
"jiu_max "
v-if=
"is_bld"
>
<navigator
url=
"/pages/eleProduct/eleProduct?edit=2"
>
<view
class=
"jiu_min"
>
<view>
<image
class=
"img"
src=
"/static/icon/editStore.png"
mode=
""
></image>
</view>
<view>
增减库存
</view>
</view>
</navigator>
</view>
<view
class=
"jiu_max "
@
click=
"download"
v-if=
"is_bld"
>
<view>
<view
class=
"jiu_min"
>
<view>
<image
class=
"img"
src=
"/static/icon/download.png"
mode=
""
></image>
</view>
<view>
下载称重商品
</view>
</view>
</view>
</view>
</view>
<view
class=
"BH"
></view>
<Welcome
ref=
"Welcome"
></Welcome>
<!-- 欢迎回来 -->
</view>
</
template
>
<
script
>
import
{
getskipShop
}
from
"
@/utils/api/merchant.js
"
;
import
uniBadge
from
"
@/components/uni/uni-badge/uni-badge.vue
"
import
uniIcon
from
"
@/components/uni/uni-icon/uni-icon.vue
"
import
Welcome
from
"
@/components/Welcome/Welcome.vue
"
;
//欢迎回来
import
{
storeIndex
}
from
"
@/utils/api/api.js
"
;
export
default
{
data
()
{
return
{
tancl
:
false
,
shop_id
:
""
,
shop
:
{},
countdata
:
{},
shop_type
:
""
,
//店铺类型 ele goods
is_luck_draw
:
""
,
money_type
:
""
,
activity_type
:
0
,
is_bld
:
''
}
},
components
:
{
uniIcon
,
uniBadge
,
Welcome
,
},
computed
:
{
storeinfo
()
{
return
this
.
$store
.
state
.
userInfo
;
}
},
import
{
getskipShop
}
from
"
@/utils/api/merchant.js
"
;
import
uniBadge
from
"
@/components/uni/uni-badge/uni-badge.vue
"
import
uniIcon
from
"
@/components/uni/uni-icon/uni-icon.vue
"
import
Welcome
from
"
@/components/Welcome/Welcome.vue
"
;
//欢迎回来
import
{
storeIndex
,
excel
}
from
"
@/utils/api/api.js
"
;
export
default
{
data
()
{
return
{
tancl
:
false
,
shop_id
:
""
,
shop
:
{},
countdata
:
{},
shop_type
:
""
,
//店铺类型 ele goods
is_luck_draw
:
""
,
money_type
:
""
,
activity_type
:
0
,
is_bld
:
''
}
},
components
:
{
uniIcon
,
uniBadge
,
Welcome
,
},
computed
:
{
storeinfo
()
{
return
this
.
$store
.
state
.
userInfo
;
}
},
onLoad
()
{
getskipShop
({
type
:
'
bld
'
}).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
type
:
'
bld
'
}).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
this
.
is_bld
=
res
.
data
.
is_bld
// this.is_bld = 1
}
})
//显示欢迎回来~
setTimeout
(()
=>
{
this
.
$refs
.
Welcome
.
show
();
},
2000
)
})
//显示欢迎回来~
setTimeout
(()
=>
{
this
.
$refs
.
Welcome
.
show
();
},
2000
)
//#ifdef APP-PLUS
if
(
(
plus
.
device
.
getVolume
()
*
1000
)
<
600
){
//获取手机音量
if
((
plus
.
device
.
getVolume
()
*
1000
)
<
600
)
{
//获取手机音量
uni
.
showModal
({
title
:
'
提示:音量较小
'
,
content
:
'
当前手机音量较小,可能无法及时获取新的订单播报,建议设置为最大音量
'
,
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
if
(
res
.
confirm
)
{
plus
.
device
.
setVolume
(
1
);
//设置手机音量
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
$api
.
msg
(
'
设置成功
'
);
},
500
)
}
},
500
)
}
},
});
}
getApp
().
hgServiceFun
()
//#endif
},
//下拉刷新
onPullDownRefresh
()
{
this
.
storeIndexfun
();
//获取信息
// uni.stopPullDownRefresh();//结束下拉刷新
},
onShow
()
{
//#endif
},
//下拉刷新
onPullDownRefresh
()
{
this
.
storeIndexfun
();
//获取信息
// uni.stopPullDownRefresh();//结束下拉刷新
},
onShow
()
{
this
.
storeIndexfun
();
if
(
uni
.
getSystemInfoSync
().
platform
!=
'
ios
'
)
{
getApp
().
getnewsRemind
().
then
((
res
)
=>
{
if
(
uni
.
getSystemInfoSync
().
platform
!=
'
ios
'
)
{
getApp
().
getnewsRemind
().
then
((
res
)
=>
{
console
.
log
(
res
)
if
(
res
)
{
if
(
this
.
$store
.
state
.
Timer
==
''
)
{
let
Timer
=
setInterval
(()
=>
{
if
(
res
)
{
if
(
this
.
$store
.
state
.
Timer
==
''
)
{
let
Timer
=
setInterval
(()
=>
{
getApp
().
getnewsRemind
(
2
);
console
.
log
(
'
这里
'
);
},
5000
);
this
.
$store
.
commit
(
'
Timer
'
,
Timer
);
},
5000
);
this
.
$store
.
commit
(
'
Timer
'
,
Timer
);
}
}
})
}
},
},
methods
:
{
saoma
(
e
){
saoma
(
e
)
{
uni
.
scanCode
({
success
:
res
=>
{
success
:
res
=>
{
uni
.
request
({
url
:
'
https://www.mxnzp.com/api/barcode/goods/details
'
,
//仅为示例,并非真实接口地址。
data
:
{
barcode
:
res
.
result
,
needImg
:
true
,
app_id
:
'
qkkbptetyohxoiod
'
,
app_secret
:
'
Wkp2a3NiNjAzTFJLRmwrZXN3QW1jZz09
'
url
:
'
https://www.mxnzp.com/api/barcode/goods/details
'
,
//仅为示例,并非真实接口地址。
data
:
{
barcode
:
res
.
result
,
needImg
:
true
,
app_id
:
'
qkkbptetyohxoiod
'
,
app_secret
:
'
Wkp2a3NiNjAzTFJLRmwrZXN3QW1jZz09
'
},
method
:
'
GET
'
,
method
:
'
GET
'
,
success
:
(
results
)
=>
{
console
.
log
(
results
);
if
(
results
.
data
.
code
==
0
)
{
if
(
results
.
data
.
code
==
0
)
{
// this.$api.msg(results.data.msg);
results
.
isScanCode
=
false
;
results
.
code
=
res
.
result
;
results
.
isScanCode
=
false
;
results
.
code
=
res
.
result
;
uni
.
navigateTo
({
url
:
'
/pages/addEditEleProduct/addEditEleProduct?results=
'
+
JSON
.
stringify
(
results
)
url
:
'
/pages/addEditEleProduct/addEditEleProduct?results=
'
+
JSON
.
stringify
(
results
)
})
}
else
if
(
results
.
data
.
code
==
1
)
{
results
.
isScanCode
=
false
;
results
.
code
=
res
.
result
;
}
else
if
(
results
.
data
.
code
==
1
)
{
results
.
isScanCode
=
false
;
results
.
code
=
res
.
result
;
uni
.
navigateTo
({
url
:
'
/pages/addEditEleProduct/addEditEleProduct?results=
'
+
JSON
.
stringify
(
results
)
url
:
'
/pages/addEditEleProduct/addEditEleProduct?results=
'
+
JSON
.
stringify
(
results
)
})
console
.
log
(
results
)
}
}
},
fail
:
(
results
)
=>
{
fail
:
(
results
)
=>
{
console
.
log
(
results
);
results
.
isScanCode
=
false
;
results
.
code
=
res
.
result
;
results
.
isScanCode
=
false
;
results
.
code
=
res
.
result
;
uni
.
navigateTo
({
url
:
'
/pages/addEditEleProduct/addEditEleProduct?results=
'
+
JSON
.
stringify
(
results
)
url
:
'
/pages/addEditEleProduct/addEditEleProduct?results=
'
+
JSON
.
stringify
(
results
)
})
}
})
}
});
}
});
},
jump
()
{
uni
.
navigateTo
({
url
:
'
/pages/edit/pro_manage/pro_manage?money_type=
'
+
this
.
money_type
+
'
&
'
+
'
activity_type=
'
+
this
.
activity_type
})
},
shops
()
{
uni
.
navigateTo
({
url
:
"
/pages/details/details?shop_id=
"
+
this
.
shop_id
})
},
download
()
{
let
that
=
this
uni
.
showModal
({
title
:
'
复制链接在电脑端浏览器打开
'
,
content
:
`
${
that
.
$store
.
state
.
uploadurl
}
api/index/excel?shop_id=
${
this
.
shop_id
}
`
,
confirmText
:
'
复制
'
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
uni
.
setClipboardData
({
data
:
`
${
that
.
$store
.
state
.
uploadurl
}
api/index/excel?shop_id=
${
this
.
shop_id
}
`
,
success
:
()
=>
{
//复制成功的回调函数
uni
.
showToast
({
//提示
title
:
'
复制成功
'
})
}
});
console
.
log
(
'
用户点击确定
'
);
}
else
if
(
res
.
cancel
)
{
console
.
log
(
'
用户点击取消
'
);
}
}
});
},
jump
(){
uni
.
navigateTo
({
url
:
'
/pages/edit/pro_manage/pro_manage?money_type=
'
+
this
.
money_type
+
'
&
'
+
'
activity_type=
'
+
this
.
activity_type
})
},
shops
(){
uni
.
navigateTo
({
url
:
"
/pages/details/details?shop_id=
"
+
this
.
shop_id
})
},
//弹窗
tan
()
{
this
.
tancl
=
!
this
.
tancl
},
//获取首页的数据
async
storeIndexfun
()
{
//弹窗
tan
()
{
this
.
tancl
=
!
this
.
tancl
},
//获取首页的数据
async
storeIndexfun
()
{
let
res
=
await
storeIndex
({});
uni
.
stopPullDownRefresh
();
//结束下拉刷新
if
(
res
.
code
==
0
)
{
this
.
countdata
=
res
.
data
.
counts
;
//统计的数据
this
.
shop_type
=
res
.
data
.
shop_type
;
//店铺类型 商城 goods
this
.
shop_id
=
res
.
data
.
shop_info
.
shop_id
;
this
.
is_luck_draw
=
res
.
data
.
shop_info
.
is_luck_draw
this
.
money_type
=
res
.
data
.
shop_info
.
money_type
this
.
activity_type
=
res
.
data
.
shop_info
.
activity_type
//判断是否有秒杀资格
}
else
{
this
.
$api
.
msg
(
res
.
msg
);
}
}
}
}
</
script
>
<
style
lang=
"scss"
>
.index
{
background
:
#fff
;
.H50
{
height
:
100upx
;
}
.head
{
//background: linear-gradient(to bottom, #52c693, #27a26c);
background
:
linear-gradient
(
to
bottom
,
#f37b1d
,
#ff3600
);
text-align
:
center
;
padding
:
40upx
0
20upx
;
color
:
#fff
;
font-size
:
28upx
;
}
.jiu
{
padding
:
20upx
;
display
:
flex
;
flex-wrap
:
wrap
;
color
:
#fff
;
}
.jiu_01
{
width
:
25%
;
text-align
:
center
;
padding
:
30upx
20upx
30upx
;
box-sizing
:
border-box
;
font-size
:
24upx
;
uni
.
stopPullDownRefresh
();
//结束下拉刷新
if
(
res
.
code
==
0
)
{
this
.
countdata
=
res
.
data
.
counts
;
//统计的数据
this
.
shop_type
=
res
.
data
.
shop_type
;
//店铺类型 商城 goods
this
.
shop_id
=
res
.
data
.
shop_info
.
shop_id
;
this
.
is_luck_draw
=
res
.
data
.
shop_info
.
is_luck_draw
this
.
money_type
=
res
.
data
.
shop_info
.
money_type
this
.
activity_type
=
res
.
data
.
shop_info
.
activity_type
//判断是否有秒杀资格
}
else
{
this
.
$api
.
msg
(
res
.
msg
);
}
}
}
}
.jiu_max
{
width
:
33%
;
</
script
>
<
style
lang=
"scss"
>
.index
{
background
:
#fff
;
.H50
{
height
:
100upx
;
}
.head
{
//background: linear-gradient(to bottom, #52c693, #27a26c);
background
:
linear-gradient
(
to
bottom
,
#f37b1d
,
#ff3600
);
text-align
:
center
;
padding
:
40upx
0
20upx
;
color
:
#fff
;
font-size
:
28upx
;
}
.jiu
{
padding
:
20upx
;
display
:
flex
;
flex-wrap
:
wrap
;
color
:
#fff
;
}
.jiu_01
{
width
:
25%
;
text-align
:
center
;
padding
:
30upx
20upx
30upx
;
box-sizing
:
border-box
;
font-size
:
24upx
;
}
.jiu_max
{
width
:
33%
;
}
.jiu_min
{
width
:
100%
;
text-align
:
center
;
padding
:
30upx
20upx
30upx
;
box-sizing
:
border-box
;
font-size
:
24upx
;
}
.jiu_01
.img
{
width
:
64upx
;
height
:
64upx
;
margin-bottom
:
20upx
;
}
.jiu_min
.img
{
width
:
64upx
;
height
:
64upx
;
margin-bottom
:
10upx
;
}
.mo
{
padding
:
20upx
;
display
:
flex
;
justify-content
:
space-between
;
border-bottom
:
2upx
solid
#f0f0f0
;
line-height
:
40upx
;
}
.mo_01
{
padding-left
:
20upx
;
box-sizing
:
border-box
;
width
:
80%
;
height
:
40upx
;
overflow
:
hidden
;
border-left
:
6upx
solid
#ec521b
;
font-size
:
28upx
;
font-weight
:
bold
;
}
.mo_01
span
{
color
:
#8e8e8e
;
font-weight
:
100
;
font-size
:
24upx
;
padding-left
:
20upx
;
}
.mo_02
{
color
:
#d6d6d6
;
}
.shuju
{
display
:
flex
;
flex-wrap
:
wrap
;
}
.shuju_01
{
width
:
50%
;
text-align
:
center
;
padding
:
32upx
20upx
;
box-sizing
:
border-box
;
font-size
:
28upx
;
line-height
:
50upx
;
font-size
:
32upx
;
border-right
:
1px
solid
#f0f0f0
;
border-bottom
:
1px
solid
#f0f0f0
;
}
.shuju_01_s
{
color
:
#eb511b
;
font-weight
:
800
;
font-size
:
32upx
;
}
.no
{
border-right
:
none
;
}
.BH
{
background-color
:
#f1f1f1
;
height
:
10upx
;
}
.six
{
padding
:
20upx
;
display
:
flex
;
flex-wrap
:
wrap
;
}
.list_01
{
padding
:
30upx
20upx
16upx
;
border-bottom
:
1px
solid
#f4f4f4
;
font-size
:
24upx
;
}
}
.jiu_min
{
width
:
100%
;
text-align
:
center
;
padding
:
30upx
20upx
30upx
;
box-sizing
:
border-box
;
font-size
:
24upx
;
}
.jiu_01
.img
{
width
:
64upx
;
height
:
64upx
;
margin-bottom
:
20upx
;
}
.jiu_min
.img
{
width
:
64upx
;
height
:
64upx
;
margin-bottom
:
10upx
;
}
.mo
{
padding
:
20upx
;
display
:
flex
;
justify-content
:
space-between
;
border-bottom
:
2upx
solid
#f0f0f0
;
line-height
:
40upx
;
}
.mo_01
{
padding-left
:
20upx
;
box-sizing
:
border-box
;
width
:
80%
;
height
:
40upx
;
overflow
:
hidden
;
border-left
:
6upx
solid
#ec521b
;
font-size
:
28upx
;
font-weight
:
bold
;
}
.mo_01
span
{
color
:
#8e8e8e
;
font-weight
:
100
;
font-size
:
24upx
;
padding-left
:
20upx
;
}
.mo_02
{
color
:
#d6d6d6
;
}
.shuju
{
display
:
flex
;
flex-wrap
:
wrap
;
}
.shuju_01
{
width
:
50%
;
text-align
:
center
;
padding
:
32upx
20upx
;
box-sizing
:
border-box
;
font-size
:
28upx
;
line-height
:
50upx
;
font-size
:
32upx
;
border-right
:
1px
solid
#f0f0f0
;
border-bottom
:
1px
solid
#f0f0f0
;
}
.shuju_01_s
{
color
:
#eb511b
;
font-weight
:
800
;
font-size
:
32upx
;
}
.no
{
border-right
:
none
;
}
.BH
{
background-color
:
#f1f1f1
;
height
:
10upx
;
}
.six
{
padding
:
20upx
;
display
:
flex
;
flex-wrap
:
wrap
;
}
.list_01
{
padding
:
30upx
20upx
16upx
;
border-bottom
:
1px
solid
#f4f4f4
;
font-size
:
24upx
;
}
}
</
style
>
static/icon/download.png
0 → 100644
View file @
fed5ec73
1.87 KB
utils/api/api.js
View file @
fed5ec73
...
...
@@ -491,5 +491,14 @@ export function geTPublicadvices(data)
export
function
getShopDeliveryPrice
(
data
)
{
return
request
.
post
(
"
user/getShopDeliveryPrice
"
,
data
,{
noAuth
:
true
});
}
}
/**
* 下载
* @param {} data
*/
export
function
excel
(
data
)
{
return
request
.
post
(
"
index/excel
"
,
data
,{
noAuth
:
true
});
}
utils/api/merchant.js
View file @
fed5ec73
...
...
@@ -46,3 +46,7 @@ export function getshopclass(data){
return
request
.
post
(
"
/ele/weigh
"
,
data
,
{
noAuth
:
true
});
}
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