Compare commits

...

34 Commits

Author SHA1 Message Date
杨杰 aaef8d1d84 Merge branch 'huipay-h5' into huipay-app-dev 1 year ago
杨杰 6363074843 1.新增首页收款记录 1 year ago
杨杰 cdb172b43f Merge branch 'huipay-h5' into huipay-app-dev 1 year ago
杨杰 26f4dda7a6 1上架app 1 year ago
杨杰 4d0e241c6e Merge branch 'huipay-h5' into huipay-app-dev 1 year ago
杨杰 b897ddd4a4 1.修改app 文案 1 year ago
杨杰 49b4e65571 1.上线ios 新版本 1.0.11 1 year ago
杨杰 db0a865e91 1. 修改消息推送ios 1 year ago
杨杰 91f4822df1 1.对接ios 的推送消息 1 year ago
杨杰 55730706ac Merge branch 'huipay-h5' into huipay-app-dev 1 year ago
杨杰 96c32f7a9a Merge branch 'huipay-h5' into huipay-app-dev 1 year ago
杨杰 133ca52824 1修改logo 1 year ago
杨杰 225630e702 1.修改开通分账问题 上线1.0.3版本 1 year ago
杨杰 d74611e838 Merge branch 'huipay-h5' into huipay-app-dev 1 year ago
杨杰 257b1b3391 1.打包app 1.0.2 1 year ago
杨杰 dcd52a8e8e Merge branch 'huipay-h5' into huipay-app-dev 1 year ago
杨杰 66f16fc263 1.打包app版本 1 year ago
杨杰 d3db054e49 1.修改版本号 1 year ago
杨杰 23004934fc 1. 修改订单列表弹窗 1 year ago
杨杰 ee7ab73ab2 修改商户管理没有头部 1 year ago
杨杰 ac91f2ed39 Merge branch 'huipay-h5' into huipay-app-dev 1 year ago
杨杰 c203f7c668 Merge branch 'huipay-h5' into huipay-app-dev 1 year ago
杨杰 0c5f15dbd1 Merge branch 'huipay-h5' into huipay-app-dev 1 year ago
杨杰 ee2c91d794 1.修改app版本问题 1 year ago
杨杰 e188920664 Merge branch 'huipay-h5' into huipay-app-dev 1 year ago
杨杰 8f25b05713 1. 开发推送以及热更新功能 1 year ago
杨杰 0b7da8dfcf 1.对接桌码 1 year ago
杨杰 704f9ec888 1.新增热更新代码 1 year ago
杨杰 d415f3b8ff 1.对接扫码分配桌码 1 year ago
杨杰 aeae307634 1.对接安卓app 推送通知 1 year ago
杨杰 9b8ae23c76 Merge branch 'huipay-h5' into huipay-app-dev 1 year ago
杨杰 9438c69d75 1.对接app. 接受通知 1 year ago
杨杰 c5f7eaccc6 Merge branch 'huipay-h5' into huipay-app-dev 1 year ago
杨杰 70b15e145f 1.对接app 1 year ago
  1. 13
      App.vue
  2. 44
      Utils/Api.js
  3. 323
      components/downloadUp.vue
  4. 64
      manifest.json
  5. 382
      pages.json
  6. 2
      pages/index/addService/addService.vue
  7. 16
      pages/index/bindScan/bindScan.vue
  8. 33
      pages/index/merchant-details/merchant-details.vue
  9. 30
      pages/index/salesOrderList/salesOrderList.vue
  10. 105
      pages/index/scanCodeAllocation/scanCodeAllocation.vue
  11. 7
      pages/index/serviceApplicationList/serviceApplicationList.vue
  12. 13
      pages/login/login.vue
  13. 255
      pages/tabBar/home/home.vue
  14. 3
      pages/tabBar/user/user.vue
  15. 42
      pages/welcome/welcome.vue
  16. BIN
      static/img/welcome.png
  17. BIN
      static/logo.png

@ -17,7 +17,7 @@
businessid: '', businessid: '',
// //
businessname: '', businessname: '',
//mccid //mccid
mccid: '', mccid: '',
//mcc //mcc
mccname: '', mccname: '',
@ -39,6 +39,9 @@
storeAddress: '' storeAddress: ''
}, },
onLaunch: function() { onLaunch: function() {
// uni.onPushMessage((res) => {
// console.log("", res) //
// })
let that = this; let that = this;
uni.getStorage({ uni.getStorage({
key: 'payuser', key: 'payuser',
@ -53,6 +56,14 @@
} }
}); });
const res = uni.getSystemInfoSync();
uni.setStorageSync('platform', res.platform);
plus.runtime.getProperty(plus.runtime.appid, function(inf) {
uni.setStorageSync('version', inf.versionCode);
});
let uuid = plus.device.uuid;
}, },
onShow: function() {}, onShow: function() {},
onHide: function() {} onHide: function() {}

@ -177,18 +177,6 @@ export const deviceRefund = params => {
// //门店添加设备
// export const bindStoreDevice = params => {
// return POST('POST', `${base}/device/bindStoreDevice`, params).then(res => res.data);
// }
// //业务员查询设备列表
// export const getSalesmanDeviceList = params => {
// return POST('GET', `${base}/device/getSalesmanDeviceList`, params).then(res => res.data);
// }
// //门店查询设备列表
// export const getStoreDeviceList = params => {
// return POST('GET', `${base}/device/getStoreDeviceList`, params).then(res => res.data);
// }
//业务员查询统计 //业务员查询统计
export const moveHomeCount = params => { export const moveHomeCount = params => {
@ -264,16 +252,36 @@ export const enrollActivity = params => {
// 配置费率 // 配置费率
export const configRosterRate = params => { export const configRosterRate = params => {
return POST('POST', `${base}/bankActivity/configRosterRate`, params).then(res => res.data); return POST('POST', `${base}/bankActivity/configRosterRate`, params).then(res => res.data);
} }
//进件复议 //进件复议
export const reconsider = params => { export const reconsider = params => {
return POST('POST', `${base}/mer/reconsider`, params).then(res => res.data); return POST('POST', `${base}/mer/reconsider`, params).then(res => res.data);
} }
//根据商户查询结算
//根据商户查询结算
export const getSettleAcctByMer = params => { export const getSettleAcctByMer = params => {
return POST('GET', `${base}/merSettleAcct/getSettleAcctByMer`, params).then(res => res.data); return POST('GET', `${base}/merSettleAcct/getSettleAcctByMer`, params).then(res => res.data);
}
//上传cid
export const uniPush = params => {
return POST('GET', `${base}/test/uniPush`, params).then(res => res.data);
}
//绑定门店关系
export const connectStoreCid = params => {
return POST('POST', `${base}/storeCid/connectStoreCid`, params).then(res => res.data);
}
//解除绑定
export const qrcodeunbindStore = params => {
return POST('POST', `${base}/payQrCode/unbindStore`, params).then(res => res.data);
}
//结束播报语音
export const voiceSucceed = params => {
return POST('GET', `${base}/storeCid/voiceSucceed`, params).then(res => res.data);
}
//查询版本号?termType=APP
export const queryVersion = params => {
return POST('GET', `${base}/sysVersion/queryVersion`, params).then(res => res.data);
} }
// 查询商户渠道平台列表 // 查询商户渠道平台列表

@ -0,0 +1,323 @@
<template>
<view class="content" v-if="bannerShow">
<!-- 弹出层 -->
<view class="uni-banner">
<!-- <image src="../static/logo.png" class="startUpHeaderLogo" /> -->
<view class="banner_box">
<view class="startUpHeaderBox h6">发现新版本</view>
<view class="conter">{{ msg }}</view>
<view class="banner_foot"><button @click="goUpdate()" class="banner_foot_button">前往升级</button></view>
</view>
</view>
<view class="uni-mask"></view>
</view>
</template>
<script>
// import {
// getUpgrade
// } from '@/common/js/apis';
import {
queryVersion
} from '../Utils/Api.js'
export default {
data() {
return {
bannerShow: false, // app
msg: '', //
type: '', // android:2, ios:1
updateApkObj: null //
};
},
created() {
const appUpdate = uni.getStorageSync('platform');
// #ifdef APP-PLUS
this.checkUpdate();
// #endif
},
methods: {
checkUpdate() {
let that = this;
let localAppVersonName = uni.getStorageSync('version');
// #ifdef APP-PLUS
let datas = {
termType: "APP"
}
queryVersion(datas).then(res => {
if (res.return_code == '000000') {
that.msg = res.return_data.content;
if (res.return_data.versionType == 1 && that.comparisonVersionHandler(localAppVersonName,
res.return_data.version)) {
that.downloadWgt(res.return_data.fileUrl);
return;
}
if (res.return_data.versionType == 2 && that.comparisonVersionHandler(localAppVersonName,
res.return_data.version)) {
that.updateApkObj = res.return_data;
that.bannerShow = true; //
return;
}
}
})
// #endif
},
downloadWgt(updateWgtUrl) {
//
// wgt
const that = this;
// wgt
plus.nativeUI.showWaiting('正在更新...');
plus.downloader.createDownload(
updateWgtUrl, {
filename: '_doc/update/'
},
function(d, status) {
if (status == 200) {
that.installWgt(d.filename); // wgt
}
plus.nativeUI.closeWaiting();
}
).start();
},
installWgt(path) {
// wgt
plus.nativeUI.showWaiting('安装文件...');
plus.runtime.install(
path, {
force: true
},
function() {
plus.nativeUI.closeWaiting();
plus.nativeUI.alert('应用资源更新完成!', function() {
plus.runtime.restart();
});
},
function(e) {
plus.nativeUI.closeWaiting();
}
);
},
goUpdate() {
// if (this.type == 2) {
//
var dtask = plus.downloader.createDownload(
this.updateApkObj.fileUrl, {},
function(d, status) {
this.bannerShow = false;
//
if (status == 200) {
plus.runtime.install(plus.io.convertLocalFileSystemURL(d.filename), {}, {}, function(
error) {
uni.showToast({
title: '安装失败',
mask: false,
duration: 1500
});
});
} else {
uni.showToast({
title: '更新失败',
mask: false,
duration: 1500
});
}
});
try {
dtask.start(); //
let prg = 0;
const showLoading = plus.nativeUI.showWaiting('正在下载'); //showWaiting
dtask.addEventListener('statechanged', function(task, status) {
//
switch (task.state) {
case 1:
showLoading.setTitle('正在下载');
break;
case 2:
showLoading.setTitle('已连接到服务器');
break;
case 3:
prg = parseInt((parseFloat(task.downloadedSize) / parseFloat(task.totalSize)) *
100);
showLoading.setTitle(' 正在下载' + prg + '% ');
break;
case 4:
plus.nativeUI.closeWaiting();
//
break;
}
});
} catch (err) {
plus.nativeUI.closeWaiting();
uni.showToast({
title: '更新失败-03',
mask: false,
duration: 1500
});
}
// } else if (this.type == 1) { // iosapp store
// plus.runtime.openURL(updateApkObj.downloadUrl);
// }
},
//
comparisonVersionHandler(reqV, curV) {
/*
curV string :当前最新
reqV string :之前
返回 true 表示需要升级
*/
if (curV && reqV) {
curV = String(curV);
reqV = String(reqV);
//
let arr1 = curV.split('.'), //
arr2 = reqV.split('.');
let minLength = Math.min(arr1.length, arr2.length),
position = 0,
diff = 0;
//
while (position < minLength && ((diff = parseInt(arr1[position]) - parseInt(arr2[position])) == 0)) {
position++;
}
diff = (diff != 0) ? diff : (arr1.length - arr2.length);
//curVreqVtrue
return diff > 0;
} else {
//
return false;
}
}
}
};
</script>
<style lang="scss" scoped>
.content,
#img {
width: 100%;
height: 100%;
}
.content .con {
font-size: 0;
display: flex;
align-items: center;
}
#info {
position: absolute;
top: 0;
left: 0;
width: 72rpx;
height: 72rpx;
line-height: 72rpx;
border-radius: 50%;
background-color: rgba(0, 0, 0, 0.3);
text-align: center;
color: #fff;
font-size: 24rpx;
}
.wrapper {
width: 36rpx;
height: 72rpx;
position: absolute;
top: 0;
overflow: hidden;
}
.right {
right: 0;
}
.left {
left: 0;
}
/* 弹出层形式的广告 */
.uni-banner {
display: flex;
align-items: center;
flex-direction: column;
position: fixed;
left: 50%;
top: 50%;
z-index: 1000;
transform: translate(-50%, -50%);
width: 80%;
.startUpHeaderLogo {
width: 200rpx;
height: 200rpx;
}
.banner_box {
width: 100%;
background: #fff;
border-radius: 20rpx;
}
.startUpHeaderBox {
width: 100%;
height: 96rpx;
background-image: url('/static/logo.png');
background-position: left top;
background-repeat: no-repeat;
background-size: cover;
}
}
.banner_box .h6 {
text-align: center;
line-height: 96rpx;
font-size: 36rpx;
color: #fff;
font-weight: bold;
}
.banner_box .conter {
font-size: 28rpx;
color: #333;
margin: 48rpx;
}
.banner_foot {
width: 238rpx;
margin: 48rpx auto;
}
.banner_foot_button {
background-image: linear-gradient(to right, #3aaf7a, #41bf7f);
line-height: 72rpx;
height: 72rpx;
font-size: 30rpx;
color: #fff;
font-weight: bold;
border-radius: 40rpx;
border: none;
box-shadow: 0 8rpx 20rpx 0 rgba(46, 189, 88, 0.36);
}
.banner_foot_button:active {
background-image: linear-gradient(to right, #41bf7f, #3aaf7a);
}
.uni-mask {
background: rgba(0, 0, 0, 0.6);
position: fixed;
width: 100%;
height: 100%;
left: 0;
top: 0;
z-index: 2;
}
</style>

@ -2,14 +2,17 @@
"name" : "惠支付", "name" : "惠支付",
"appid" : "__UNI__190622D", "appid" : "__UNI__190622D",
"description" : "", "description" : "",
"versionName" : "1.0.0", "versionName" : "1.0.5",
"versionCode" : "100", "versionCode" : 105,
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */
"app-plus" : { "app-plus" : {
"usingComponents" : true, "usingComponents" : true,
"nvueStyleCompiler" : "uni-app", "nvueStyleCompiler" : "uni-app",
"compilerVersion" : 3, "compilerVersion" : 3,
"compatible" : {
"ignoreVersion" : true //trueHBuilderX1.9.0
},
"splashscreen" : { "splashscreen" : {
"alwaysShowBeforeRender" : true, "alwaysShowBeforeRender" : true,
"waiting" : true, "waiting" : true,
@ -17,7 +20,10 @@
"delay" : 0 "delay" : 0
}, },
/* */ /* */
"modules" : {}, "modules" : {
"Push" : {},
"Camera" : {}
},
/* */ /* */
"distribute" : { "distribute" : {
/* android */ /* android */
@ -41,9 +47,54 @@
] ]
}, },
/* ios */ /* ios */
"ios" : {}, "ios" : {
"dSYMs" : false,
"privacyDescription" : {
"NSPhotoLibraryAddUsageDescription" : "请放心,开启权限不会获取您在其他站点的隐私信息,该权限用于您上传资料",
"NSCameraUsageDescription" : "请放心,开启权限不会获取您在其他站点的隐私信息,该权限用于您上传资料时拍照",
"NSLocationAlwaysAndWhenInUseUsageDescription" : "请放心,开启权限不会获取您在其他站点的隐私信息,该权限用于方便你上传位置信息",
"NSUserTrackingUsageDescription" : "请放心,开启权限不会获取您在其他站点的隐私信息,该权限仅用于标识设备并保障服务安全与提示浏览体验"
}
},
/* SDK */ /* SDK */
"sdkConfigs" : {} "sdkConfigs" : {
"push" : {
"unipush" : {}
},
"ad" : {}
},
"icons" : {
"android" : {
"hdpi" : "unpackage/res/icons/72x72.png",
"xhdpi" : "unpackage/res/icons/96x96.png",
"xxhdpi" : "unpackage/res/icons/144x144.png",
"xxxhdpi" : "unpackage/res/icons/192x192.png"
},
"ios" : {
"appstore" : "unpackage/res/icons/1024x1024.png",
"ipad" : {
"app" : "unpackage/res/icons/76x76.png",
"app@2x" : "unpackage/res/icons/152x152.png",
"notification" : "unpackage/res/icons/20x20.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"proapp@2x" : "unpackage/res/icons/167x167.png",
"settings" : "unpackage/res/icons/29x29.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"spotlight" : "unpackage/res/icons/40x40.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png"
},
"iphone" : {
"app@2x" : "unpackage/res/icons/120x120.png",
"app@3x" : "unpackage/res/icons/180x180.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"notification@3x" : "unpackage/res/icons/60x60.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"settings@3x" : "unpackage/res/icons/87x87.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png",
"spotlight@3x" : "unpackage/res/icons/120x120.png"
}
}
}
} }
}, },
/* */ /* */
@ -87,3 +138,6 @@
} }
} }
} }
// "NSPhotoLibraryUsageDescription" : ""
/* SDK */

@ -4,23 +4,18 @@
"path": "pages/welcome/welcome", "path": "pages/welcome/welcome",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "",
"enablePullDownRefresh": false, "enablePullDownRefresh": false
"app-plus": {
"titleNView": false, //
"softinputNavBar": "none"
}
} }
}, { }, {
"path": "pages/login/login", "path": "pages/login/login",
"style": { "style": {
"navigationBarTextStyle": "white",
"navigationBarTitleText": "登录", "navigationBarTitleText": "登录",
"onReachBottomDistance": 50, "enablePullDownRefresh": false,
"app-plus": { "backgroundTextStyle": "light",
"titleNView": false, // "navigationBarBackgroundColor": "#6fbdee",
"softinputNavBar": "none" "backgroundColorTop": "#6fbdee",
} "navigationBarTextStyle": "white"
} }
}, { }, {
@ -28,12 +23,10 @@
"style": { "style": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"navigationBarTitleText": "设备申请列表", "navigationBarTitleText": "设备申请列表",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"onReachBottomDistance": 50, "backgroundTextStyle": "light",
"app-plus": { "navigationBarBackgroundColor": "#6fbdee",
"titleNView": false, // "backgroundColorTop": "#6fbdee"
"softinputNavBar": "none"
}
} }
}, { }, {
@ -41,12 +34,10 @@
"style": { "style": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"navigationBarTitleText": "订单详情", "navigationBarTitleText": "订单详情",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"onReachBottomDistance": 50, "backgroundTextStyle": "light",
"app-plus": { "navigationBarBackgroundColor": "#6fbdee",
"titleNView": false, // "backgroundColorTop": "#6fbdee"
"softinputNavBar": "none"
}
} }
}, { }, {
@ -54,12 +45,10 @@
"style": { "style": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"navigationBarTitleText": "我的设备", "navigationBarTitleText": "我的设备",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"onReachBottomDistance": 50, "backgroundTextStyle": "light",
"app-plus": { "navigationBarBackgroundColor": "#6fbdee",
"titleNView": false, // "backgroundColorTop": "#6fbdee"
"softinputNavBar": "none"
}
} }
}, { }, {
@ -67,38 +56,39 @@
"style": { "style": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"navigationBarTitleText": "首页", "navigationBarTitleText": "首页",
"onReachBottomDistance": 50, "enablePullDownRefresh": false,
"app-plus": { "backgroundTextStyle": "light",
"titleNView": false, // "navigationBarBackgroundColor": "#6fbdee",
"softinputNavBar": "none" "backgroundColorTop": "#6fbdee"
}
} }
}, { }, {
"path": "pages/index/index", "path": "pages/index/index",
"style": { "style": {
"navigationBarTitleText": "首页" "navigationBarTitleText": "首页",
"enablePullDownRefresh": false,
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#6fbdee",
"backgroundColorTop": "#6fbdee"
} }
}, { }, {
"path": "pages/tabBar/user/user", "path": "pages/tabBar/user/user",
"style": { "style": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"navigationBarTitleText": "个人中心", "navigationBarTitleText": "个人中心",
"onReachBottomDistance": 50, "enablePullDownRefresh": false,
"app-plus": { "backgroundTextStyle": "light",
"titleNView": false, // "navigationBarBackgroundColor": "#6fbdee",
"softinputNavBar": "none" "backgroundColorTop": "#6fbdee"
}
} }
}, { }, {
"path": "pages/index/merchant-list/merchant-list", "path": "pages/index/merchant-list/merchant-list",
"style": { "style": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"navigationBarTitleText": "门店管理", "navigationBarTitleText": "门店管理",
"onReachBottomDistance": 50, "enablePullDownRefresh": false,
"app-plus": { "backgroundTextStyle": "light",
"titleNView": false, // "navigationBarBackgroundColor": "#6fbdee",
"softinputNavBar": "none" "backgroundColorTop": "#6fbdee"
}
} }
}, { }, {
@ -106,11 +96,10 @@
"style": { "style": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"navigationBarTitleText": "商户详情", "navigationBarTitleText": "商户详情",
"onReachBottomDistance": 50, "enablePullDownRefresh": false,
"app-plus": { "backgroundTextStyle": "light",
"titleNView": false, // "navigationBarBackgroundColor": "#6fbdee",
"softinputNavBar": "none" "backgroundColorTop": "#6fbdee"
}
} }
}, { }, {
@ -118,11 +107,10 @@
"style": { "style": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"navigationBarTitleText": "商户进件", "navigationBarTitleText": "商户进件",
"onReachBottomDistance": 50, "enablePullDownRefresh": false,
"app-plus": { "backgroundTextStyle": "light",
"titleNView": false, // "navigationBarBackgroundColor": "#6fbdee",
"softinputNavBar": "none" "backgroundColorTop": "#6fbdee"
}
} }
} }
@ -132,11 +120,10 @@
"style": { "style": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"navigationBarTitleText": "消息中心", "navigationBarTitleText": "消息中心",
"onReachBottomDistance": 50, "enablePullDownRefresh": false,
"app-plus": { "backgroundTextStyle": "light",
"titleNView": false, // "navigationBarBackgroundColor": "#6fbdee",
"softinputNavBar": "none" "backgroundColorTop": "#6fbdee"
}
} }
}, { }, {
@ -144,11 +131,10 @@
"style": { "style": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"navigationBarTitleText": "经营品类", "navigationBarTitleText": "经营品类",
"onReachBottomDistance": 50, "enablePullDownRefresh": false,
"app-plus": { "backgroundTextStyle": "light",
"titleNView": false, // "navigationBarBackgroundColor": "#6fbdee",
"softinputNavBar": "none" "backgroundColorTop": "#6fbdee"
}
} }
}, { }, {
@ -156,11 +142,10 @@
"style": { "style": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"navigationBarTitleText": "商户管理", "navigationBarTitleText": "商户管理",
"onReachBottomDistance": 50, "enablePullDownRefresh": false,
"app-plus": { "backgroundTextStyle": "light",
"titleNView": false, // "navigationBarBackgroundColor": "#6fbdee",
"softinputNavBar": "none" "backgroundColorTop": "#6fbdee"
}
} }
}, { }, {
@ -168,22 +153,20 @@
"style": { "style": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"navigationBarTitleText": "门店信息", "navigationBarTitleText": "门店信息",
"onReachBottomDistance": 50, "enablePullDownRefresh": false,
"app-plus": { "backgroundTextStyle": "light",
"titleNView": false, // "navigationBarBackgroundColor": "#6fbdee",
"softinputNavBar": "none" "backgroundColorTop": "#6fbdee"
}
} }
}, { }, {
"path": "pages/index/addStore/addStore", "path": "pages/index/addStore/addStore",
"style": { "style": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"navigationBarTitleText": "添加门店", "navigationBarTitleText": "添加门店",
"onReachBottomDistance": 50, "enablePullDownRefresh": false,
"app-plus": { "backgroundTextStyle": "light",
"titleNView": false, // "navigationBarBackgroundColor": "#6fbdee",
"softinputNavBar": "none" "backgroundColorTop": "#6fbdee"
}
} }
}, { }, {
@ -191,11 +174,10 @@
"style": { "style": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"navigationBarTitleText": "收费记录", "navigationBarTitleText": "收费记录",
"onReachBottomDistance": 50, "enablePullDownRefresh": false,
"app-plus": { "backgroundTextStyle": "light",
"titleNView": false, // "navigationBarBackgroundColor": "#6fbdee",
"softinputNavBar": "none" "backgroundColorTop": "#6fbdee"
}
} }
}, { }, {
@ -203,11 +185,10 @@
"style": { "style": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"navigationBarTitleText": "商户类别", "navigationBarTitleText": "商户类别",
"onReachBottomDistance": 50, "enablePullDownRefresh": false,
"app-plus": { "backgroundTextStyle": "light",
"titleNView": false, // "navigationBarBackgroundColor": "#6fbdee",
"softinputNavBar": "none" "backgroundColorTop": "#6fbdee"
}
} }
}, { }, {
@ -215,11 +196,10 @@
"style": { "style": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"navigationBarTitleText": "收款记录", "navigationBarTitleText": "收款记录",
"onReachBottomDistance": 50, "enablePullDownRefresh": false,
"app-plus": { "backgroundTextStyle": "light",
"titleNView": false, // "navigationBarBackgroundColor": "#6fbdee",
"softinputNavBar": "none" "backgroundColorTop": "#6fbdee"
}
} }
}, { }, {
@ -227,11 +207,10 @@
"style": { "style": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"navigationBarTitleText": "门店管理", "navigationBarTitleText": "门店管理",
"onReachBottomDistance": 50, "enablePullDownRefresh": false,
"app-plus": { "backgroundTextStyle": "light",
"titleNView": false, // "navigationBarBackgroundColor": "#6fbdee",
"softinputNavBar": "none" "backgroundColorTop": "#6fbdee"
}
} }
}, { }, {
@ -239,11 +218,10 @@
"style": { "style": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"navigationBarTitleText": "绑定设备", "navigationBarTitleText": "绑定设备",
"onReachBottomDistance": 50, "enablePullDownRefresh": false,
"app-plus": { "backgroundTextStyle": "light",
"titleNView": false, // "navigationBarBackgroundColor": "#6fbdee",
"softinputNavBar": "none" "backgroundColorTop": "#6fbdee"
}
} }
}, { }, {
@ -251,11 +229,10 @@
"style": { "style": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"navigationBarTitleText": "绑定设备", "navigationBarTitleText": "绑定设备",
"onReachBottomDistance": 50, "enablePullDownRefresh": false,
"app-plus": { "backgroundTextStyle": "light",
"titleNView": false, // "navigationBarBackgroundColor": "#6fbdee",
"softinputNavBar": "none" "backgroundColorTop": "#6fbdee"
}
} }
}, { }, {
@ -263,11 +240,10 @@
"style": { "style": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"navigationBarTitleText": "绑定二维码", "navigationBarTitleText": "绑定二维码",
"onReachBottomDistance": 50, "enablePullDownRefresh": false,
"app-plus": { "backgroundTextStyle": "light",
"titleNView": false, // "navigationBarBackgroundColor": "#6fbdee",
"softinputNavBar": "none" "backgroundColorTop": "#6fbdee"
}
} }
}, { }, {
@ -275,11 +251,10 @@
"style": { "style": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"navigationBarTitleText": "二维码列表", "navigationBarTitleText": "二维码列表",
"onReachBottomDistance": 50, "enablePullDownRefresh": false,
"app-plus": { "backgroundTextStyle": "light",
"titleNView": false, // "navigationBarBackgroundColor": "#6fbdee",
"softinputNavBar": "none" "backgroundColorTop": "#6fbdee"
}
} }
}, { }, {
"path": "pages/index/salesOrderList/salesOrderList", "path": "pages/index/salesOrderList/salesOrderList",
@ -287,11 +262,9 @@
"navigationBarTitleText": "设备订单", "navigationBarTitleText": "设备订单",
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"onReachBottomDistance": 50, "backgroundTextStyle": "light",
"app-plus": { "navigationBarBackgroundColor": "#6fbdee",
"titleNView": false, // "backgroundColorTop": "#6fbdee"
"softinputNavBar": "none"
}
} }
}, { }, {
@ -300,11 +273,9 @@
"navigationBarTitleText": "选择支行", "navigationBarTitleText": "选择支行",
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"onReachBottomDistance": 50, "backgroundTextStyle": "light",
"app-plus": { "navigationBarBackgroundColor": "#6fbdee",
"titleNView": false, // "backgroundColorTop": "#6fbdee"
"softinputNavBar": "none"
}
} }
}, { }, {
@ -313,11 +284,9 @@
"navigationBarTitleText": "开通分账", "navigationBarTitleText": "开通分账",
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"onReachBottomDistance": 50, "backgroundTextStyle": "light",
"app-plus": { "navigationBarBackgroundColor": "#6fbdee",
"titleNView": false, // "backgroundColorTop": "#6fbdee"
"softinputNavBar": "none"
}
} }
}, { }, {
@ -326,11 +295,9 @@
"navigationBarTitleText": "绑定接收方", "navigationBarTitleText": "绑定接收方",
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"onReachBottomDistance": 50, "backgroundTextStyle": "light",
"app-plus": { "navigationBarBackgroundColor": "#6fbdee",
"titleNView": false, // "backgroundColorTop": "#6fbdee"
"softinputNavBar": "none"
}
} }
}, { }, {
@ -339,11 +306,9 @@
"navigationBarTitleText": "绑定分账接收方", "navigationBarTitleText": "绑定分账接收方",
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"onReachBottomDistance": 50, "backgroundTextStyle": "light",
"app-plus": { "navigationBarBackgroundColor": "#6fbdee",
"titleNView": false, // "backgroundColorTop": "#6fbdee"
"softinputNavBar": "none"
}
} }
}, { }, {
@ -352,11 +317,9 @@
"navigationBarTitleText": "接收方列表", "navigationBarTitleText": "接收方列表",
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"onReachBottomDistance": 50, "backgroundTextStyle": "light",
"app-plus": { "navigationBarBackgroundColor": "#6fbdee",
"titleNView": false, // "backgroundColorTop": "#6fbdee"
"softinputNavBar": "none"
}
} }
}, { }, {
@ -365,11 +328,9 @@
"navigationBarTitleText": "选择地址", "navigationBarTitleText": "选择地址",
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"onReachBottomDistance": 50, "backgroundTextStyle": "light",
"app-plus": { "navigationBarBackgroundColor": "#6fbdee",
"titleNView": false, // "backgroundColorTop": "#6fbdee"
"softinputNavBar": "none"
}
} }
}, { }, {
@ -378,11 +339,9 @@
"navigationBarTitleText": "修改结算信息", "navigationBarTitleText": "修改结算信息",
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"onReachBottomDistance": 50, "backgroundTextStyle": "light",
"app-plus": { "navigationBarBackgroundColor": "#6fbdee",
"titleNView": false, // "backgroundColorTop": "#6fbdee"
"softinputNavBar": "none"
}
} }
}, { }, {
@ -391,11 +350,9 @@
"navigationBarTitleText": "结算信息", "navigationBarTitleText": "结算信息",
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"onReachBottomDistance": 50, "backgroundTextStyle": "light",
"app-plus": { "navigationBarBackgroundColor": "#6fbdee",
"titleNView": false, // "backgroundColorTop": "#6fbdee"
"softinputNavBar": "none"
}
} }
}, { }, {
@ -404,11 +361,9 @@
"navigationBarTitleText": "结算详情", "navigationBarTitleText": "结算详情",
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"onReachBottomDistance": 50, "backgroundTextStyle": "light",
"app-plus": { "navigationBarBackgroundColor": "#6fbdee",
"titleNView": false, // "backgroundColorTop": "#6fbdee"
"softinputNavBar": "none"
}
} }
}, { }, {
@ -417,11 +372,9 @@
"navigationBarTitleText": "分配桌码", "navigationBarTitleText": "分配桌码",
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"onReachBottomDistance": 50, "backgroundTextStyle": "light",
"app-plus": { "navigationBarBackgroundColor": "#6fbdee",
"titleNView": false, // "backgroundColorTop": "#6fbdee"
"softinputNavBar": "none"
}
} }
}, { }, {
@ -430,11 +383,9 @@
"navigationBarTitleText": "权益活动", "navigationBarTitleText": "权益活动",
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"onReachBottomDistance": 50, "backgroundTextStyle": "light",
"app-plus": { "navigationBarBackgroundColor": "#6fbdee",
"titleNView": false, // "backgroundColorTop": "#6fbdee"
"softinputNavBar": "none"
}
} }
}, { }, {
@ -443,41 +394,40 @@
"navigationBarTitleText": "活动详情", "navigationBarTitleText": "活动详情",
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"onReachBottomDistance": 50, "backgroundTextStyle": "light",
"app-plus": { "navigationBarBackgroundColor": "#6fbdee",
"titleNView": false, // "backgroundColorTop": "#6fbdee"
"softinputNavBar": "none" }
}
}, {
"path": "pages/index/equity-activity-review/equity-activity-review",
"style": {
"navigationBarTitleText": "活动审核",
"navigationBarTextStyle": "white",
"enablePullDownRefresh": false,
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#6fbdee",
"backgroundColorTop": "#6fbdee"
}
}, {
"path": "pages/index/order-list-details/order-list-details",
"style": {
"navigationBarTitleText": "订单详情",
"navigationBarTextStyle": "white",
"enablePullDownRefresh": false,
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#6fbdee",
"backgroundColorTop": "#6fbdee"
} }
} }
,{ ,{
"path" : "pages/index/equity-activity-review/equity-activity-review", "path" : "pages/index/scanCodeAllocation/scanCodeAllocation",
"style" :
{
"navigationBarTitleText": "活动审核",
"navigationBarTextStyle": "white",
"enablePullDownRefresh": false,
"onReachBottomDistance": 50,
"app-plus": {
"titleNView": false, //
"softinputNavBar": "none"
}
}
}
,{
"path" : "pages/index/order-list-details/order-list-details",
"style" : "style" :
{ {
"navigationBarTitleText": "订单详情", "navigationBarTitleText": "",
"navigationBarTextStyle": "white", "enablePullDownRefresh": false
"enablePullDownRefresh": false,
"onReachBottomDistance": 50,
"app-plus": {
"titleNView": false, //
"softinputNavBar": "none"
}
} }
} }
@ -485,14 +435,12 @@
"path" : "pages/index/normal-Merchant/normal-Merchant", "path" : "pages/index/normal-Merchant/normal-Merchant",
"style" : "style" :
{ {
"navigationBarTitleText": "商户", "navigationBarTitleText": "商户管理",
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"onReachBottomDistance": 50, "backgroundTextStyle": "light",
"app-plus": { "navigationBarBackgroundColor": "#6fbdee",
"titleNView": false, // "backgroundColorTop": "#6fbdee"
"softinputNavBar": "none"
}
} }
} }

@ -134,7 +134,7 @@
"deviceType": this.serviceid, "deviceType": this.serviceid,
"deviceNum": "1" "deviceNum": "1"
} }
createDeviceOrder(datas).then(res => { createDeviceOrder(datas).then(res => {
if (res.return_code == '000000') { if (res.return_code == '000000') {
this.payOrder(res.return_data.orderNo); this.payOrder(res.return_data.orderNo);
} else { } else {

@ -17,16 +17,16 @@
<view class="mart10 fcor666 padleft15 font14" v-else>创建: {{item.createTime | timeFormat('yyyy-mm-dd')}} <view class="mart10 fcor666 padleft15 font14" v-else>创建: {{item.createTime | timeFormat('yyyy-mm-dd')}}
{{item.createTime | timeFormat('hh:mm')}} {{item.createTime | timeFormat('hh:mm')}}
</view> </view>
<button class="btns" @click="bindStore(item.id)" v-if="typeId == 1">绑定二维码</button> <button class="btns" @click="qrcodeunbindStore(item.id)">解除绑定</button>
</view> </view>
</view> </view>
</template> </template>
<script> <script>
import { import {
bindStore,
getSalesmanQrCodeList, getSalesmanQrCodeList,
getStoreQrCodeList getStoreQrCodeList,
qrcodeunbindStore
} from '../../../Utils/Api.js'; } from '../../../Utils/Api.js';
let app = getApp(); let app = getApp();
export default { export default {
@ -135,12 +135,12 @@
} }
}); });
}, },
// //
bindStore(item) { qrcodeunbindStore(item) {
let that = this; let that = this;
uni.showModal({ uni.showModal({
title: '绑二维码', title: '绑二维码',
content: '是否绑当前二维码。', content: '是否绑当前二维码。',
success: (res) => { success: (res) => {
if (res.confirm) { if (res.confirm) {
uni.showLoading({ uni.showLoading({
@ -150,7 +150,7 @@
"qrCodeId": item, "qrCodeId": item,
"storeId": that.storeId "storeId": that.storeId
} }
bindStore(params).then(res => { qrcodeunbindStore(params).then(res => {
uni.hideLoading(); uni.hideLoading();
if (res.return_code == '000000') { if (res.return_code == '000000') {
uni.showToast({ uni.showToast({

@ -9,7 +9,7 @@
<!-- 商户信息 --> <!-- 商户信息 -->
<view class="mart15 width100 backcorfff" v-if="current == 0"> <view class="mart15 width100 backcorfff" v-if="current == 0">
<view class="notes"> <view class="notes" v-if="merDesInfo.account">
<view class="fcor666 width25">账号</view> <view class="fcor666 width25">账号</view>
<view class="font14 fcor333 text2 width75 fotrt">{{merDesInfo.account.loginName}}</view> <view class="font14 fcor333 text2 width75 fotrt">{{merDesInfo.account.loginName}}</view>
</view> </view>
@ -22,12 +22,12 @@
<view class="font14 fcor333 text2 width75 fotrt">{{merDesInfo.merName}}</view> <view class="font14 fcor333 text2 width75 fotrt">{{merDesInfo.merName}}</view>
</view> </view>
<view class="notes"> <view class="notes" v-if="merDesInfo.account">
<view class="fcor666 width25">商户状态</view> <view class="fcor666 width25">商户状态</view>
<view class="font14 fcor333 text2 width75 fotrt" v-if="merDesInfo.account.status == 1">正常</view> <view class="font14 fcor333 text2 width75 fotrt" v-if="merDesInfo.account.status == 1">正常</view>
<view class="font14 fcor333 text2 width75 fotrt" v-if="merDesInfo.account.status == 4">违规</view> <view class="font14 fcor333 text2 width75 fotrt" v-if="merDesInfo.account.status == 4">违规</view>
</view> </view>
<view class="notes"> <view class="notes" v-if="merDesInfo.account">
<view class="fcor666 width25">联系人</view> <view class="fcor666 width25">联系人</view>
<view class="font14 fcor333 text2 width75 fotrt">{{merDesInfo.account.userName}}</view> <view class="font14 fcor333 text2 width75 fotrt">{{merDesInfo.account.userName}}</view>
</view> </view>
@ -39,11 +39,11 @@
<view class="fcor666 width25">身份证号</view> <view class="fcor666 width25">身份证号</view>
<view class="font14 fcor333 text2 width75 fotrt">-</view> <view class="font14 fcor333 text2 width75 fotrt">-</view>
</view> --> </view> -->
<view class="notes"> <view class="notes" v-if="merDesInfo.merSettleAcct">
<view class="fcor666 width25">银行卡号</view> <view class="fcor666 width25">银行卡号</view>
<view class="font14 fcor333 text2 width75 fotrt">{{merDesInfo.merSettleAcct.bankCardNo}}</view> <view class="font14 fcor333 text2 width75 fotrt">{{merDesInfo.merSettleAcct.bankCardNo}}</view>
</view> </view>
<view class="notes"> <view class="notes" v-if="merDesInfo.merSettleAcct">
<view class="fcor666 width25">所属银行</view> <view class="fcor666 width25">所属银行</view>
<view class="font14 fcor333 text2 width75 fotrt">{{merDesInfo.merSettleAcct.bankName}}</view> <view class="font14 fcor333 text2 width75 fotrt">{{merDesInfo.merSettleAcct.bankName}}</view>
</view> </view>
@ -90,7 +90,7 @@
<view class="margle10 font14 fcor999 width90p">{{item.storeRegion.address}}</view> <view class="margle10 font14 fcor999 width90p">{{item.storeRegion.address}}</view>
</view> </view>
<view class="height45 width100"> <view class="height45 width100">
<button class="btns mart10 margle10" @click.stop="jumpBindScan(item.id,1)">绑定二维码</button> <button class="btns mart10 margle10" @click.stop="jumpBindScan(item,1)">绑定二维码</button>
<button class="btns mart10 margle10" @click.stop="jumpBindScan(item.id,2)">二维码列表</button> <button class="btns mart10 margle10" @click.stop="jumpBindScan(item.id,2)">二维码列表</button>
<button class="btns mart10 margle10" @click.stop="jumpService(item.id)">绑定设备</button> <button class="btns mart10 margle10" @click.stop="jumpService(item.id)">绑定设备</button>
<!-- <button class="btns mart10 marRight10" @click.stop="jumpService(item.id,2)">设备列表</button> --> <!-- <button class="btns mart10 marRight10" @click.stop="jumpService(item.id,2)">设备列表</button> -->
@ -271,9 +271,24 @@
}, },
// //
jumpBindScan(item, items) { jumpBindScan(item, items) {
uni.navigateTo({ if (items == 1) {
url: '../bindScan/bindScan?storeid=' + item + '&type=' + items //
}) uni.scanCode({
success: function(res) {
let scanCont = res.result.split('=');
let scanNo = scanCont[1];
uni.navigateTo({
url: '/pages/index/scanCodeAllocation/scanCodeAllocation?storename=' +
item.name + '&scanno=' + scanNo +
'&storeId=' + item.id
})
}
});
} else {
uni.navigateTo({
url: '../bindScan/bindScan?storeid=' + item + '&type=' + items
})
}
}, },
// //
jumpDetailsparts(item, item1) { jumpDetailsparts(item, item1) {

@ -29,7 +29,8 @@
<view class="margle10 font13 fcor999">申请数量: 1</view> <view class="margle10 font13 fcor999">申请数量: 1</view>
</view> </view>
<view class="width90 paddbotm10 alijusstart"> <view class="width90 paddbotm10 alijusstart">
<view class="otstatucs border-r marRight10" @click.stop="orderRefund(item.orderNo)" v-if="item.status == 2"> <view class="otstatucs border-r marRight10" @click.stop="orderRefund(item.orderNo)"
v-if="item.status == 2">
订单退款 订单退款
</view> </view>
<view class="otstatucs border-r marRight10" @click.stop="replace(item.orderAssignList[0].id)" <view class="otstatucs border-r marRight10" @click.stop="replace(item.orderAssignList[0].id)"
@ -66,7 +67,7 @@
], // ], //
pageNum: 1, pageNum: 1,
pagesize: 15, pagesize: 15,
goodtyid: 2, // goodtyid: 2, //
isLoadMore: false, // isLoadMore: false, //
serviceList: [] //˚ serviceList: [] //˚
} }
@ -98,7 +99,7 @@
methods: { methods: {
//id //id
switchid(item) { switchid(item) {
this.goodtyid = item.id; this.goodtyid = item.id;
this.pageNum = 1; this.pageNum = 1;
this.serviceList = []; this.serviceList = [];
this.getOrderList(); this.getOrderList();
@ -115,17 +116,18 @@
status: this.goodtyid status: this.goodtyid
} }
getOrderList(datas).then(res => { getOrderList(datas).then(res => {
uni.hideLoading(); uni.hideLoading();
if (res.return_code == '000000' && res.return_data.list != '') { if (res.return_code == '000000' && res.return_data.list !='') {
this.serviceList = this.serviceList.concat(res.return_data.list); this.isLoadMore = res.return_data.list.length == this.pageSize ? false : true;
if (res.return_data.pages == this.pageNum) { this.serviceList = this.serviceList.concat(res.return_data.list);
this.isLoadMore = true; if (res.return_data.total == (this.pageNum * this.pageSize)) {
} else { this.isLoadMore = true;
this.isLoadMore = false }
} this.pageNum = res.return_data.list.length == this.pageSize ? ++pagenum : pagenum;
} else { } else {
this.serviceList = []; this.serviceList = [];
} }
}) })
}, },
// //

@ -0,0 +1,105 @@
<template>
<view>
<view class="username">
<view class="namecont">绑定门店</view>
<view class="font14 fcor333 text2 width75 fotrt">{{storeName}}</view>
</view>
<view class="username">
<view class="namecont">绑定编号</view>
<view class="font14 fcor333 text2 width75 fotrt">{{scanNo}}</view>
</view>
<view class="btn" @tap="bindStore">提交绑定</view>
</view>
</template>
<script>
import {
bindStore
} from '../../../Utils/Api.js';
export default {
data() {
return {
scanNo: '', //,
storeName: '', //
storeId: '' //
}
},
onLoad(options) {
this.scanNo = options.scanno;
this.storeName = options.storename;
this.storeId = options.storeId;
},
methods: {
//
bindStore() {
uni.showModal({
title: '温馨提示',
content: '是否分配当前设备',
success: (res) => {
if (res.confirm) {
uni.showLoading({
title: '加载中'
})
let datas = {
"serialNumber": this.scanNo,
"storeId": this.storeId
}
bindStore(datas).then(res => {
uni.hideLoading();
if (res.return_code == '000000') {
uni.showToast({
title: '分配成功',
duration: 2000,
icon: 'none'
})
uni.navigateBack({})
} else {
uni.showToast({
title: res.return_msg,
duration: 2000,
icon: 'none'
})
}
})
} else if (res.cancel) {}
}
});
}
}
}
</script>
<style lang="scss">
.username {
width: calc(100% - 90upx);
height: 100upx;
display: flex;
align-items: center;
background-color: rgba($color: #ffffff, $alpha: 0.1);
border-bottom: 1px solid #f6f6f6;
padding: 8upx 45upx;
.namecont {
color: #666666;
width: 28%;
}
}
.btn {
color: #FFFFFF;
background-color: #0083f5;
width: 90%;
margin-left: 5%;
margin-top: 80rpx;
margin-bottom: 50rpx;
height: 90rpx;
display: flex;
justify-content: center;
align-items: center;
border-radius: 10rpx;
font-size: 40rpx;
}
</style>

@ -78,6 +78,11 @@
}, },
// //
jumpaddservice() { jumpaddservice() {
// uni.showToast({
// title: '',
// duration: 2000,
// icon: 'none'
// })
uni.navigateTo({ uni.navigateTo({
url: '../addService/addService' url: '../addService/addService'
}) })
@ -131,4 +136,4 @@
position: fixed; position: fixed;
right: 40rpx; right: 40rpx;
} }
</style> </style>

@ -10,7 +10,7 @@
<wInput v-model="phoneData" type="text" placeholder="用户名/电话" :focus="isFocus"></wInput> <wInput v-model="phoneData" type="text" placeholder="用户名/电话" :focus="isFocus"></wInput>
<wInput v-model="passData" type="password" placeholder="密码" isShowPass="true"></wInput> <wInput v-model="passData" type="password" placeholder="密码" isShowPass="true"></wInput>
</view> </view>
<wButton class="wbutton" text="登 录" bgColor="#089bf5" :rotate="isRotate" @click="startLogin"></wButton> <wButton class="wbutton" text="登 录" bgColor="#089bf5" :rotate="isRotate" @click="startLogin"></wButton>
</view> </view>
</view> </view>
</template> </template>
@ -19,7 +19,8 @@
import wInput from '../../components/watch-login/watch-input.vue' //input import wInput from '../../components/watch-login/watch-input.vue' //input
import wButton from '../../components/watch-login/watch-button.vue' //button import wButton from '../../components/watch-login/watch-button.vue' //button
import { import {
userLogin userLogin,
uniPush
} from '../../Utils/Api.js'; } from '../../Utils/Api.js';
let app = getApp(); let app = getApp();
export default { export default {
@ -37,10 +38,14 @@
}, },
mounted() { mounted() {
this.isLogin(); this.isLogin();
},
onShow() {
}, },
methods: { methods: {
// //
isLogin() { isLogin() {
// uni.getStorage({ // uni.getStorage({
// key: 'payuser', // key: 'payuser',
// success: (res) => { // success: (res) => {
@ -143,4 +148,4 @@
<style lang="scss"> <style lang="scss">
@import url("../../components/watch-login/css/icon.css"); @import url("../../components/watch-login/css/icon.css");
@import url("./css/main.css"); @import url("./css/main.css");
</style> </style>

@ -63,28 +63,122 @@
</view> </view>
</view> </view>
<view class="width100 height40p"></view> <view class="width100 height40p"></view>
<downloadup></downloadup>
</view> </view>
</template> </template>
<script> <script>
import { import {
// getDiscountList,
moveHomeCount, moveHomeCount,
mermoveHomeCount, mermoveHomeCount,
storemoveHomeCount, storemoveHomeCount,
getDictionaries getDictionaries,
connectStoreCid,
voiceSucceed
} from '../../../Utils/Api.js' } from '../../../Utils/Api.js'
import downloadup from '../../../components/downloadUp.vue'
let app = getApp(); let app = getApp();
export default { export default {
components: {
downloadup
},
data() { data() {
return { return {
funcList: [], funcList: [],
userInfo: app.globalData.userInfo, // userInfo: app.globalData.userInfo, //
auditnum: '' // auditnum: '', //
//
playurl: "",
voicePlayer: null, //
watchProximity: null, //
sessionPlayMode: 0, // 0 1
wakeLock: null, // Android
audioManager: null, // Android
audioFocus: false, //
storeCid: '', //cid
taskNo: '' //
}; };
}, },
onLoad() { onLoad() {
if (this.userInfo.secUser.objectType == 5) {
let status = 1;
let that = this;
uni.getPushClientId({
success: res => {
that.storeCid = res.cid;
uni.getStorage({
key: "clientId",
success: (res) => {
if (res.data && res.data != undefined && res.data != that
.storeCid) {
status = 2;
}
},
fail(err) {
status = 3;
uni.setStorage({
key: "clientId",
data: that.storeCid
})
}
})
},
fail(err) {
console.log(err);
}
})
setTimeout(function() {
console.log('====='+status);
console.log('====='+that.storeCid);
if (status == 1 && that.storeCid) {
that.setTimer();
}
if ((status == 2 || status == 3) && that.storeCid) {
that.connectStoreCid(that.storeCid)
}
}, 1500);
}
uni.onPushMessage((res) => {
// console.log("", res.data.content) //
let conts = res.data.content.split('!@#PUSH#@!');
this.playurl = conts[0];
this.taskNo = conts[1];
if (this.playurl) {
this.starts();
this.voicePlayer.play();
}
})
//
plus.push.addEventListener('click', (msg) => {
uni.navigateTo({
url: '/pages/index/collectNotes/collectNotes'
})
}, false)
//
plus.push.addEventListener('receive', (msg) => {
//
let payload = msg
let contsplist = payload.content.split('!@#PUSH#@!');;
let messageContent = contsplist[2]
// this.playurl = contsplist[0];
// this.taskNo = contsplist[1];
// if (this.playurl) {
// this.starts();
// this.voicePlayer.play();
// }
plus.push.createMessage(messageContent, JSON.stringify(payload), {
title: '惠支付',
cover: false
})
}, false)
// //
if (this.userInfo.secUser.objectType == 3) { if (this.userInfo.secUser.objectType == 3) {
this.funcList = [{ this.funcList = [{
@ -172,29 +266,158 @@
}, },
onShow() { onShow() {
if (this.userInfo.secUser.objectType == 3) { if (this.userInfo.secUser.objectType == 3) {
this.moveHomeCount(); this.moveHomeCount();
} }
if (this.userInfo.secUser.objectType == 4) { if (this.userInfo.secUser.objectType == 4) {
this.mermoveHomeCount(); this.mermoveHomeCount();
} }
if (this.userInfo.secUser.objectType == 5) {
if (this.userInfo.secUser.objectType == 5) {
this.storemoveHomeCount(); this.storemoveHomeCount();
} }
this.getDictionaries(); this.getDictionaries();
}, },
methods: { methods: {
// getDiscountList() { Timersockt() {},
// let params = { //cid
// pageNum: 1, connectStoreCid(item) {
// pageSize: 10 let datas = {
// } "cid": item,
// getDiscountList(params).then(res => { "storeId": this.userInfo.store.id
// if (res.return_code == '000000') { }
connectStoreCid(datas).then(res => {
this.setTimer();
})
},
setTimer() {
let holdTime = 10;
this.Timersockt = setInterval(() => {
if (holdTime <= 0) {
holdTime = 10;
clearInterval(this.Timersockt);
let status = 1;
let that = this;
uni.getPushClientId({
success: res => {
that.storeCid = res.cid;
uni.getStorage({
key: "clientId",
success: (res) => {
if (res.data && res.data != undefined && res
.data != that
.storeCid) {
status = 2;
}
},
fail(err) {
status = 3;
uni.setStorage({
key: "clientId",
data: that.storeCid
})
}
})
},
fail(err) {
console.log(err);
}
})
setTimeout(function() {
if (status == 1 && that.storeCid) {
that.setTimer();
}
if ((status == 2 || status == 3) && that.storeCid) {
that.connectStoreCid(that.storeCid)
}
}, 1500);
return;
}
holdTime--;
}, 1000)
},
//
voiceSucceed(item) {
let datas = {
storeId: this.userInfo.store.id,
taskNo: this.taskNo
}
voiceSucceed(datas).then(res => {
});
},
//
starts() {
this.watchProximity = plus.proximity.watchProximity((distance) => {
/**
* iOS端接近为0远离为Infinity
* Android端接近为0远离为5
*/
if (this.playMode === 0) {
//
this.voicePlayer.pause();
if (distance !== 0) {
//
this.voicePlayer.setRoute(0);
} else {
//
this.voicePlayer.setRoute(1);
}
this.voicePlayer.resume();
}
});
this.voicePlayer = plus.audio.createPlayer({
src: this.playurl
});
this.voicePlayer.setRoute(this.playMode);
//
this.voicePlayer.addEventListener('ended', () => {
//
if (this.watchProximity) {
plus.proximity.clearWatch(this.watchProximity);
this.watchProximity = null;
}
//
if (this.wakeLock) {
this.wakeLock.release();
this.wakeLock = null;
}
this.voiceSucceed();
this.storemoveHomeCount();
});
//
this.voicePlayer.addEventListener('play', () => {
//
if (this.playState !== 2) {
// plus.audio.ROUTE_SPEAKER 0
// plus.audio.ROUTE_EARPIECE 1
this.voicePlayer.setRoute(this.playMode);
this.playState++;
}
});
//
this.voicePlayer.addEventListener('error', (err) => {
console.log('报错err', err);
//
if (this.wakeLock) {
this.wakeLock.release();
this.wakeLock = null;
}
//
if (this.watchProximity) {
plus.proximity.clearWatch(this.watchProximity);
this.watchProximity = null;
}
});
},
// }
// })
// },
// //
getDictionaries() { getDictionaries() {
getDictionaries().then(res => { getDictionaries().then(res => {
@ -302,7 +525,7 @@
// //
.funcss { .funcss {
width: 33%; width: 32%;
height: 100px; height: 100px;
border-right: 1px solid #e8e8e8; border-right: 1px solid #e8e8e8;
border-bottom: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8;

@ -56,6 +56,9 @@
}) })
uni.removeStorage({ uni.removeStorage({
key: "paytoken" key: "paytoken"
})
uni.removeStorage({
key: "clientId"
}) })
uni.reLaunch({ uni.reLaunch({
url: '../../login/login' url: '../../login/login'

@ -17,28 +17,28 @@
}, },
onLoad(options) { onLoad(options) {
let that = this; let that = this;
// uni.reLaunch({ uni.reLaunch({
// url: '../tabBar/home/home' url: '/pages/login/login'
// }) })
// #ifdef H5 // #ifdef H5
let arr1 = window.location.href; // let arr1 = window.location.href;
let arr2 = arr1.split('='); // let arr2 = arr1.split('=');
if (arr2[2]) { // if (arr2[2]) {
var arr3 = arr2[2].split('&'); // var arr3 = arr2[2].split('&');
if (arr3[0] != undefined && arr3[0]) { // if (arr3[0] != undefined && arr3[0]) {
app.globalData.h5code = arr3[0]; // app.globalData.h5code = arr3[0];
uni.setStorage({ // uni.setStorage({
key: "h5code", // key: "h5code",
data: arr3[0] // data: arr3[0]
}) // })
} // }
} else { // } else {
// openid // openid
that.jumpcdx(); // that.jumpcdx();
} // }
if (app.globalData.h5code) { // if (app.globalData.h5code) {
that.getAccessToken(); // that.getAccessToken();
} // }
// #endif // #endif
}, },
methods: { methods: {

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 8.0 KiB

Loading…
Cancel
Save