Commit e5901262 authored by 小耗子's avatar 小耗子

企业

parent e0cfeda4
......@@ -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 ="179480211100680";
export const COMPANY_ID ="00000775";
export const MALL_ID ="101277511100685";
export const COMPANY_ID ="2023053102";
\ No newline at end of file
#### 文件说明
#### h5
{
h5页面支持...
}
#### app
{
礼品卡
积分卡
优惠券
....
}
#### goods
{
商品详情
商品列表
}
#### index
{
购物车
商品分类
首页
个人中心
}
#### order
{
提交订单
确认订单
订单列表
订单详情
退货列表
退货详情
}
#### public
{
协议
客服
}
#### user
{
地址
钱包
选择企业 1
最爱
收藏
}
\ No newline at end of file
......@@ -54,7 +54,7 @@
"quickapp" : {},
/* 小程序特有相关 */
"mp-weixin" : {
"appid" : "wxebbbc2cc63e9d74e",
"appid" : "wxbcd69823dff3146e",
"setting" : {
"urlCheck" : true,
"minified" : false,
......
......@@ -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
......@@ -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" //启动页面,必选
}
]
},
......
......@@ -29,7 +29,7 @@
...mapActions(['getPhoneNumber']),
agreement(flag){
uni.navigateTo({
url: `/pages/agreement/${flag}`,
url: `/pages/public/${flag}`,
})
},
agreeChange(event){
......
<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
......@@ -49,10 +49,14 @@ export default {
auth: true,
method: "post"
},
companysList: {
url: "mall/companys/list",
auth: true,
method: "get",
// desc: '企业列表',
},
},
index:{
},
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment