diff --git a/App.vue b/App.vue
index 9621055..53bdbee 100644
--- a/App.vue
+++ b/App.vue
@@ -4,11 +4,11 @@
// url: 'http://192.168.3.4:9301/crest',
// imgUrl: 'https://192.168.3.4:9301/filesystem/',
//正式
- url: 'https://pay.bxb.cn/crest',
- imgUrl: 'https://xuan-pay-private.obs.cn-southwest-2.myhuaweicloud.com',
- //测试
- // url: 'https://paycs.dctpay.com/crest',
+ // url: 'https://pay.bxb.cn/crest',
// imgUrl: 'https://xuan-pay-private.obs.cn-southwest-2.myhuaweicloud.com',
+ //测试
+ url: 'https://paycs.dctpay.com/crest',
+ imgUrl: 'https://xuan-pay-private.obs.cn-southwest-2.myhuaweicloud.com',
userInfo: "",
openId: '',
code: '',
diff --git a/Utils/Api.js b/Utils/Api.js
index beb3010..2be773f 100644
--- a/Utils/Api.js
+++ b/Utils/Api.js
@@ -107,3 +107,15 @@ export const storemoveHomeCount = params => {
export const getTradeOrderList = params => {
return POST('GET', `${base}/tradeOrder/getTradeOrderList`, params).then(res => res.data);
}
+//业务员绑定门店二维码
+export const bindStore = params => {
+ return POST('POST', `${base}/payQrCode/bindStore`, params).then(res => res.data);
+}
+//业务员查询二维码列表
+export const getSalesmanQrCodeList = params => {
+ return POST('GET', `${base}/payQrCode/getSalesmanQrCodeList`, params).then(res => res.data);
+}
+//门店查询二维码列表
+export const getStoreQrCodeList = params => {
+ return POST('GET', `${base}/payQrCode/getStoreQrCodeList`, params).then(res => res.data);
+}
diff --git a/pages.json b/pages.json
index 2647a65..965307f 100644
--- a/pages.json
+++ b/pages.json
@@ -1,18 +1,18 @@
{
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
- {
- "path": "pages/login/login",
- "style": {
- "navigationBarTextStyle": "white",
- "navigationBarTitleText": "登录",
- "onReachBottomDistance": 50,
- "app-plus": {
- "titleNView": false, //禁用原生导航栏
- "softinputNavBar": "none"
- }
- }
-
- },{
+ {
+ "path": "pages/login/login",
+ "style": {
+ "navigationBarTextStyle": "white",
+ "navigationBarTitleText": "登录",
+ "onReachBottomDistance": 50,
+ "app-plus": {
+ "titleNView": false, //禁用原生导航栏
+ "softinputNavBar": "none"
+ }
+ }
+
+ }, {
"path": "pages/tabBar/home/home",
"style": {
"navigationBarTextStyle": "white",
@@ -23,7 +23,7 @@
"softinputNavBar": "none"
}
}
- },{
+ }, {
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "首页"
@@ -126,99 +126,114 @@
}
}, {
"path": "pages/index/addStore/addStore",
- "style": {
- "navigationBarTextStyle": "white",
- "navigationBarTitleText": "添加门店",
- "onReachBottomDistance": 50,
- "app-plus": {
- "titleNView": false, //禁用原生导航栏
- "softinputNavBar": "none"
- }
+ "style": {
+ "navigationBarTextStyle": "white",
+ "navigationBarTitleText": "添加门店",
+ "onReachBottomDistance": 50,
+ "app-plus": {
+ "titleNView": false, //禁用原生导航栏
+ "softinputNavBar": "none"
+ }
}
}, {
"path": "pages/index/collection-record/collection-record",
- "style": {
- "navigationBarTextStyle": "white",
- "navigationBarTitleText": "收费记录",
- "onReachBottomDistance": 50,
- "app-plus": {
- "titleNView": false, //禁用原生导航栏
- "softinputNavBar": "none"
- }
+ "style": {
+ "navigationBarTextStyle": "white",
+ "navigationBarTitleText": "收费记录",
+ "onReachBottomDistance": 50,
+ "app-plus": {
+ "titleNView": false, //禁用原生导航栏
+ "softinputNavBar": "none"
+ }
+ }
+
+ }, {
+ "path": "pages/index/mcc-list/mcc-list",
+ "style": {
+ "navigationBarTextStyle": "white",
+ "navigationBarTitleText": "商户类别",
+ "onReachBottomDistance": 50,
+ "app-plus": {
+ "titleNView": false, //禁用原生导航栏
+ "softinputNavBar": "none"
+ }
+ }
+
+ }, {
+ "path": "pages/index/collectNotes/collectNotes",
+ "style": {
+ "navigationBarTextStyle": "white",
+ "navigationBarTitleText": "收款记录",
+ "onReachBottomDistance": 50,
+ "app-plus": {
+ "titleNView": false, //禁用原生导航栏
+ "softinputNavBar": "none"
+ }
+ }
+
+ }, {
+ "path": "pages/index/doorManage/doorManage",
+ "style": {
+ "navigationBarTextStyle": "white",
+ "navigationBarTitleText": "门店管理",
+ "onReachBottomDistance": 50,
+ "app-plus": {
+ "titleNView": false, //禁用原生导航栏
+ "softinputNavBar": "none"
+ }
+ }
+
+ }, {
+ "path": "pages/index/serviceBuild/serviceBuild",
+ "style": {
+ "navigationBarTextStyle": "white",
+ "navigationBarTitleText": "绑定设备",
+ "onReachBottomDistance": 50,
+ "app-plus": {
+ "titleNView": false, //禁用原生导航栏
+ "softinputNavBar": "none"
+ }
+ }
+
+ }, {
+ "path": "pages/index/addService/addService",
+ "style": {
+ "navigationBarTextStyle": "white",
+ "navigationBarTitleText": "绑定设备",
+ "onReachBottomDistance": 50,
+ "app-plus": {
+ "titleNView": false, //禁用原生导航栏
+ "softinputNavBar": "none"
+ }
+ }
+
+ }, {
+ "path": "pages/index/bindScan/bindScan",
+ "style": {
+ "navigationBarTextStyle": "white",
+ "navigationBarTitleText": "绑定二维码",
+ "onReachBottomDistance": 50,
+ "app-plus": {
+ "titleNView": false, //禁用原生导航栏
+ "softinputNavBar": "none"
+ }
+ }
+
+ }, {
+ "path": "pages/index/scanList/scanList",
+ "style": {
+ "navigationBarTextStyle": "white",
+ "navigationBarTitleText": "二维码列表",
+ "onReachBottomDistance": 50,
+ "app-plus": {
+ "titleNView": false, //禁用原生导航栏
+ "softinputNavBar": "none"
+ }
}
}
- ,{
- "path" : "pages/index/mcc-list/mcc-list",
- "style": {
- "navigationBarTextStyle": "white",
- "navigationBarTitleText": "商户类别",
- "onReachBottomDistance": 50,
- "app-plus": {
- "titleNView": false, //禁用原生导航栏
- "softinputNavBar": "none"
- }
- }
-
- }
- ,{
- "path" : "pages/index/collectNotes/collectNotes",
- "style" :
- {
- "navigationBarTextStyle": "white",
- "navigationBarTitleText": "收款记录",
- "onReachBottomDistance": 50,
- "app-plus": {
- "titleNView": false, //禁用原生导航栏
- "softinputNavBar": "none"
- }
- }
-
- }
- ,{
- "path" : "pages/index/doorManage/doorManage",
- "style" :
- {
- "navigationBarTextStyle": "white",
- "navigationBarTitleText": "门店管理",
- "onReachBottomDistance": 50,
- "app-plus": {
- "titleNView": false, //禁用原生导航栏
- "softinputNavBar": "none"
- }
- }
-
- }
- ,{
- "path" : "pages/index/serviceBuild/serviceBuild",
- "style" :
- {
- "navigationBarTextStyle": "white",
- "navigationBarTitleText": "绑定设备",
- "onReachBottomDistance": 50,
- "app-plus": {
- "titleNView": false, //禁用原生导航栏
- "softinputNavBar": "none"
- }
- }
-
- }
- ,{
- "path" : "pages/index/addService/addService",
- "style" :
- {
- "navigationBarTextStyle": "white",
- "navigationBarTitleText": "绑定设备",
- "onReachBottomDistance": 50,
- "app-plus": {
- "titleNView": false, //禁用原生导航栏
- "softinputNavBar": "none"
- }
- }
-
- }
- ],
+ ],
"subpackages": [{
"root": "subPages",
diff --git a/pages/index/bindScan/bindScan.vue b/pages/index/bindScan/bindScan.vue
new file mode 100644
index 0000000..e66ed96
--- /dev/null
+++ b/pages/index/bindScan/bindScan.vue
@@ -0,0 +1,244 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.serialNumber}}
+ 绑定时间: {{item.storeBindTime | timeFormat('yyyy-mm-dd')}}
+ {{item.storeBindTime | timeFormat('hh:mm')}}
+
+ 创建: {{item.createTime | timeFormat('yyyy-mm-dd')}}
+ {{item.createTime | timeFormat('hh:mm')}}
+
+
+
+
+
+
+
+
+
diff --git a/pages/index/collectNotes/collectNotes.vue b/pages/index/collectNotes/collectNotes.vue
index 1082956..3668209 100644
--- a/pages/index/collectNotes/collectNotes.vue
+++ b/pages/index/collectNotes/collectNotes.vue
@@ -1,6 +1,6 @@
-
+
diff --git a/pages/index/merchant-details/merchant-details.vue b/pages/index/merchant-details/merchant-details.vue
index 01bbc62..2a24dda 100644
--- a/pages/index/merchant-details/merchant-details.vue
+++ b/pages/index/merchant-details/merchant-details.vue
@@ -74,9 +74,11 @@
{{item.storeRegion.address}}
-
-
-
+
+
+
+
+
@@ -172,6 +174,12 @@
uni.navigateTo({
url: '../serviceBuild/serviceBuild?storeid=' + item + '&type=' + items
})
+ },
+ //跳转绑定二维码
+ jumpBindScan(item, items) {
+ uni.navigateTo({
+ url: '../bindScan/bindScan?storeid=' + item + '&type=' + items
+ })
}
}
}
@@ -212,14 +220,14 @@
}
.btns {
- width: 25%;
+ width: 21%;
float: right;
height: 35px;
line-height: 35px;
background-color: #0083f5;
color: #FFFFFF;
font-weight: bold;
- font-size: 14px;
+ font-size: 12px;
padding: 0px;
}
diff --git a/pages/index/scanList/scanList.vue b/pages/index/scanList/scanList.vue
new file mode 100644
index 0000000..9c20407
--- /dev/null
+++ b/pages/index/scanList/scanList.vue
@@ -0,0 +1,165 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{item.serialNumber}}
+ 绑定时间:
+ {{item.storeBindTime | timeFormat('yyyy-mm-dd')}}
+ {{item.storeBindTime | timeFormat('hh:mm')}}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/index/serviceBuild/serviceBuild.vue b/pages/index/serviceBuild/serviceBuild.vue
index 07cb44d..bd15965 100644
--- a/pages/index/serviceBuild/serviceBuild.vue
+++ b/pages/index/serviceBuild/serviceBuild.vue
@@ -11,8 +11,11 @@
{{item.deviceSn}}
- 绑定时间: {{item.storeBindTime | timeFormat('yyyy-mm-dd')}}
+ 绑定时间: {{item.storeBindTime | timeFormat('yyyy-mm-dd')}}
{{item.storeBindTime | timeFormat('hh:mm')}}
+
+ 创建时间: {{item.createTime | timeFormat('yyyy-mm-dd')}}
+ {{item.createTime | timeFormat('hh:mm')}}
diff --git a/pages/tabBar/home/home.vue b/pages/tabBar/home/home.vue
index fffa795..be728f1 100644
--- a/pages/tabBar/home/home.vue
+++ b/pages/tabBar/home/home.vue
@@ -116,13 +116,11 @@
title: '收款记录',
url: '../../index/collectNotes/collectNotes',
img: '../../../static/img/home1.png'
- }
- // ,
- // {
- // title: '绑定设备',
- // url: '../../index/serviceBuild/serviceBuild',
- // img: '../../../static/img/home2.png'
- // }
+ },{
+ title: '二维码列表',
+ url: '../../index/scanList/scanList',
+ img: '../../../static/img/home2.png'
+ }
]
return;
}
diff --git a/uni.scss b/uni.scss
index 1af1dfb..6dd14e7 100644
--- a/uni.scss
+++ b/uni.scss
@@ -185,6 +185,10 @@ $uni-font-size-paragraph:30upx;
.marglerig{
margin-right: 5px;
}
+
+.marRight10{
+ margin-right: 10px;
+}
.marRight20{
margin-right: 20px;
}