Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mini_own
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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
geruidan
mini_own
Commits
e5901262
Commit
e5901262
authored
Jun 06, 2023
by
小耗子
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企业
parent
e0cfeda4
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
232 additions
and
14 deletions
+232
-14
env.js
env.js
+2
-2
file-md.md
file-md.md
+51
-0
manifest.json
manifest.json
+1
-1
md.md
md.md
+7
-0
pages.json
pages.json
+12
-7
pages/h5/bindPh.vue
pages/h5/bindPh.vue
+1
-1
pages/public/conceal.vue
pages/public/conceal.vue
+0
-0
pages/public/user.vue
pages/public/user.vue
+0
-0
pages/user/enterprise.vue
pages/user/enterprise.vue
+151
-0
shopro/request/apis.js
shopro/request/apis.js
+7
-3
static/img/user/bg.png
static/img/user/bg.png
+0
-0
No files found.
env.js
View file @
e5901262
...
...
@@ -10,6 +10,6 @@ export const IMG_URL = 'http://file.shopro.top' //全局网络图片地址变量
export
const
MAP_KEY
=
'
426ebc3f1bbaced***89ee6061a98
'
;
//高德地图开发者Web服务key,逆坐标解析
export
const
HAS_LIVE
=
false
//后台是否开通直播权限,根据情况在manifest.json中,开启注释相应组件的引入,pages.json中打开直播
// http://172.18.1.66:9001/api/a1/mall/homePage/mp?code={前端传入的code}
export
const
MALL_ID
=
"
1
79480211100680
"
;
export
const
COMPANY_ID
=
"
00000775
"
;
export
const
MALL_ID
=
"
1
01277511100685
"
;
export
const
COMPANY_ID
=
"
2023053102
"
;
\ No newline at end of file
file-md.md
0 → 100644
View file @
e5901262
#### 文件说明
#### h5
{
h5页面支持...
}
#### app
{
礼品卡
积分卡
优惠券
....
}
#### goods
{
商品详情
商品列表
}
#### index
{
购物车
商品分类
首页
个人中心
}
#### order
{
提交订单
确认订单
订单列表
订单详情
退货列表
退货详情
}
#### public
{
协议
客服
}
#### user
{
地址
钱包
选择企业 1
最爱
收藏
}
\ No newline at end of file
manifest.json
View file @
e5901262
...
...
@@ -54,7 +54,7 @@
"quickapp"
:
{},
/*
小程序特有相关
*/
"mp-weixin"
:
{
"appid"
:
"wx
ebbbc2cc63e9d74
e"
,
"appid"
:
"wx
bcd69823dff3146
e"
,
"setting"
:
{
"urlCheck"
:
true
,
"minified"
:
false
,
...
...
md.md
View file @
e5901262
...
...
@@ -63,4 +63,11 @@ APPID:wxebbbc2cc63e9d74e
APPsecret:78e7f63bb15c8238c6baef7c393d0050
企业id:00000775
商城id:179480211100680
```
### 小移商城小程序
```
APPID:wxebbbc2cc63e9d74e
APPsecret:78e7f63bb15c8238c6baef7c393d0050
企业id:00000775
商城id:179480211100680
```
\ No newline at end of file
pages.json
View file @
e5901262
...
...
@@ -4,8 +4,15 @@
"^mpShop-(.*)"
:
"@/components/mpShop-$1/mpShop-$1.vue"
},
"pages"
:
[
//pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
"path"
:
"pages/user/enterprise"
,
"name"
:
"enterprise"
,
"style"
:
{
"navigationBarTitleText"
:
"选择企业"
,
"enablePullDownRefresh"
:
false
}
},{
"path"
:
"pages/index/defalutScreen"
,
"style"
:
{
...
...
@@ -20,7 +27,6 @@
"navigationBarTextStyle"
:
"black"
,
"enablePullDownRefresh"
:
true
,
"navigationBarBackgroundColor"
:
"#ffffff"
//
"navigationStyle"
:
"custom"
},
"meta"
:
{
"auth"
:
true
,
...
...
@@ -66,7 +72,7 @@
},
{
"path"
:
"pages/
agreement
/conceal"
,
"path"
:
"pages/
public
/conceal"
,
"style"
:
{
"navigationBarTitleText"
:
"用户隐私协议"
,
...
...
@@ -74,7 +80,7 @@
}
},
{
"path"
:
"pages/
agreement
/user"
,
"path"
:
"pages/
public
/user"
,
"style"
:
{
"navigationBarTitleText"
:
"用户服务协议"
,
...
...
@@ -98,7 +104,6 @@
"navigationBarTitleText"
:
"京东比价"
,
"enablePullDownRefresh"
:
false
}
}
],
...
...
@@ -138,8 +143,8 @@
"current"
:
0
,
//当前激活的模式(list
的索引项)
"list"
:
[
{
"name"
:
"
pay
"
,
//模式名称
"path"
:
"/pages/
index/defalutScreen
"
//启动页面,必选
"name"
:
"
enterprise
"
,
//模式名称
"path"
:
"/pages/
user/enterprise
"
//启动页面,必选
}
]
},
...
...
pages/h5/bindPh.vue
View file @
e5901262
...
...
@@ -29,7 +29,7 @@
...
mapActions
([
'
getPhoneNumber
'
]),
agreement
(
flag
){
uni
.
navigateTo
({
url
:
`/pages/
agreement
/
${
flag
}
`
,
url
:
`/pages/
public
/
${
flag
}
`
,
})
},
agreeChange
(
event
){
...
...
pages/
agreement
/conceal.vue
→
pages/
public
/conceal.vue
View file @
e5901262
File moved
pages/
agreement
/user.vue
→
pages/
public
/user.vue
View file @
e5901262
File moved
pages/user/enterprise.vue
0 → 100644
View file @
e5901262
<
template
>
<view
class=
"enterprise-boxs"
>
<view
class=
"enterprise-ul"
>
<view
class=
"enterprice-li"
>
<view
class=
"lf"
>
米粒优选商城
<view
class=
"icon-tips"
>
标
<text
class=
"tips"
>
欢迎访问
</text>
</view>
</view>
<view
class=
"rt"
>
<u-icon
name=
"arrow-right"
color=
"#2979ff"
size=
"28"
></u-icon>
</view>
</view>
<view
class=
"enterprice-li"
>
<view
class=
"lf"
>
米粒优选商城
<view
class=
"icon-tips"
>
标
<text
class=
"tips"
>
欢迎访问
</text>
</view>
</view>
<view
class=
"rt"
>
<u-icon
name=
"arrow-right"
color=
"#2979ff"
size=
"28"
></u-icon>
</view>
</view>
</view>
<image
class=
"bg"
src=
"../../static/img/user/bg.png"
mode=
"scaleToFill"
></image>
<!--
<view
v-for=
"item in list"
:key=
"item.companyId"
@
click=
"selectEnterprise(item)"
>
{{
item
.
businessName
}}
</view>
-->
</view>
</
template
>
<
script
>
/**
* loginType 1需要注册页,0不需要,直接注册
* mallType 1开放、封闭
* registerPageType
* 此字段是当loginType为普通登录时有意义
0-页面有 手机号+验证码
1-页面有 手机号+验证码+工号
2-页面有 输入密码
3-页面有 礼品卡+密码
4-页面有 手机号验证码+姓名+工号
*/
import
http
from
'
@/shopro/request/index
'
export
default
{
computed
:
{
},
data
()
{
return
{
list
:[],
registerInfo
:{
companyId
:
''
,
//开放式传
mobile
:
''
,
//封闭式传
empcardno
:
''
,
//封闭式传
registerType
:
'
register
'
//注册时的类型为普通注册
},
}
},
onLoad
()
{
this
.
companysList
()
},
onShow
(){
uni
.
hideHomeButton
()
},
methods
:
{
/**
* 获取企业列表
*/
companysList
(){
let
that
=
this
;
console
.
log
(
http
)
http
(
'
user.companysList
'
).
then
(
res
=>
{
if
(
!
res
.
code
)
{
this
.
list
=
res
.
data
}
else
{
that
.
$u
.
toast
(
res
.
msg
);
}
});
},
/**
* 选择企业
*/
selectEnterprise
(
item
){
if
(
item
.
loginType
){
//1需要注册页
}
else
{
//不需要注册
this
.
registerInfo
.
companyId
=
item
.
companyId
http
(
'
user.register
'
,
this
.
registerInfo
).
then
(
res
=>
{
if
(
!
res
.
code
)
{
this
.
list
=
res
.
data
;
// this.$Router.push({ path: '/pages/index/category' });
uni
.
redirectTo
({
url
:
'
/pages/index/category
'
,
})
}
else
{
that
.
$u
.
toast
(
res
.
msg
);
}
})
}
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.enterprise-boxs
{
.enterprise-ul
{
position
:
absolute
;
z-index
:
1
;
padding
:
40rpx
0
;
width
:
100%
;
.enterprice-li
{
margin-bottom
:
26rpx
;
background-color
:
#fff
;
border-radius
:
20rpx
;
display
:
flex
;
padding
:
46rpx
;
margin
:
0
40rpx
24rpx
40rpx
;
align-items
:
center
;
.lf
{
flex
:
1
;
font-size
:
30rpx
;
font-weight
:
bold
;
.icon-tips
{
margin-top
:
10rpx
;
.tips
{
font-size
:
24rpx
;
color
:
#7f7f7f
;
font-weight
:
normal
;
}
}
}
.rt
{
width
:
50rpx
;
}
}
}
.bg
{
width
:
100%
;
height
:
100%
;
position
:
fixed
;
top
:
0
;
left
:
0
;
}
}
</
style
>
\ No newline at end of file
shopro/request/apis.js
View file @
e5901262
...
...
@@ -49,10 +49,14 @@ export default {
auth
:
true
,
method
:
"
post
"
},
companysList
:
{
url
:
"
mall/companys/list
"
,
auth
:
true
,
method
:
"
get
"
,
// desc: '企业列表',
},
},
index
:{
},
};
static/img/user/bg.png
0 → 100644
View file @
e5901262
197 KB
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