@ -0,0 +1,95 @@ |
|||||||
|
<template> |
||||||
|
<view> |
||||||
|
<view class="contents"> |
||||||
|
<input class="inputs" maxlength="20" v-model="codenums" placeholder-style="color:#ffffff;" |
||||||
|
placeholder="请输入设备的SN号" /> |
||||||
|
<button class="btns" @click="configStoreDevice">确认</button> |
||||||
|
</view> |
||||||
|
</view> |
||||||
|
</template> |
||||||
|
|
||||||
|
<script> |
||||||
|
import { |
||||||
|
configStoreDevice |
||||||
|
} from '../../../Utils/Api.js'; |
||||||
|
let app = getApp(); |
||||||
|
export default { |
||||||
|
data() { |
||||||
|
return { |
||||||
|
codenums: '', //输入的sn号 |
||||||
|
userInfo: app.globalData.userInfo |
||||||
|
} |
||||||
|
}, |
||||||
|
methods: { |
||||||
|
//添加设备 |
||||||
|
configStoreDevice() { |
||||||
|
if (!this.codenums) { |
||||||
|
uni.showToast({ |
||||||
|
title: '请填写设备SN号', |
||||||
|
icon: "none", |
||||||
|
duration: 2000 |
||||||
|
}); |
||||||
|
return; |
||||||
|
} |
||||||
|
uni.showLoading({ |
||||||
|
title: '提交中...' |
||||||
|
}) |
||||||
|
let params = { |
||||||
|
storeId: this.userInfo.store.id, |
||||||
|
deviceSn: this.codenums |
||||||
|
} |
||||||
|
configStoreDevice(params).then(res => { |
||||||
|
uni.hideLoading(); |
||||||
|
if (res.return_code == '000000') { |
||||||
|
uni.showToast({ |
||||||
|
title: '绑定成功', |
||||||
|
icon: 'none', |
||||||
|
duration: 2000, |
||||||
|
success() { |
||||||
|
setTimeout(() => { |
||||||
|
uni.navigateBack({}) |
||||||
|
}, 1000); |
||||||
|
} |
||||||
|
}) |
||||||
|
} else { |
||||||
|
uni.showToast({ |
||||||
|
title: res.return_msg, |
||||||
|
icon: 'none', |
||||||
|
duration: 2000 |
||||||
|
}) |
||||||
|
} |
||||||
|
}); |
||||||
|
}, |
||||||
|
} |
||||||
|
} |
||||||
|
</script> |
||||||
|
|
||||||
|
<style lang="scss"> |
||||||
|
.contents { |
||||||
|
position: relative; |
||||||
|
top: 240rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.inputs { |
||||||
|
height: 50px; |
||||||
|
line-height: 50px; |
||||||
|
background-color: #b4d5fb; |
||||||
|
width: 86%; |
||||||
|
margin-left: 6%; |
||||||
|
padding-left: 10px; |
||||||
|
border-radius: 5px; |
||||||
|
color: white; |
||||||
|
font-size: 20px; |
||||||
|
} |
||||||
|
|
||||||
|
.btns { |
||||||
|
margin-top: 200rpx; |
||||||
|
width: 60%; |
||||||
|
margin-left: 20%; |
||||||
|
height: 50px; |
||||||
|
line-height: 50px; |
||||||
|
background-color: #0083f5; |
||||||
|
color: #FFFFFF; |
||||||
|
font-weight: bold; |
||||||
|
} |
||||||
|
</style> |
@ -0,0 +1,62 @@ |
|||||||
|
<template> |
||||||
|
<view> |
||||||
|
<view v-if="!notesList" class="mart60 fotct font14 fcor666"> |
||||||
|
<image mode="widthFix" style="width: 70vw;" src="../../../static/img/noorder.png"></image> |
||||||
|
</view> |
||||||
|
<view class="height90 width94 backcorfff mart20" v-for="(item,index) in notesList" :key="index"> |
||||||
|
<view class="font24 fcor333 paddtop10 padleft15">¥ <text |
||||||
|
class="font306adb fontwig6 margle font28">{{item.tradeAmount}}</text></view> |
||||||
|
<view class="mart10 fcor666 padleft15 font15">{{item.createTime | timeFormat('yyyy-mm-dd')}} |
||||||
|
{{item.createTime | timeFormat('hh:mm')}}</view> |
||||||
|
</view> |
||||||
|
</view> |
||||||
|
</template> |
||||||
|
|
||||||
|
<script> |
||||||
|
import { |
||||||
|
getTradeOrderList |
||||||
|
} from '../../../Utils/Api.js'; |
||||||
|
export default { |
||||||
|
data() { |
||||||
|
return { |
||||||
|
notesList: [] |
||||||
|
} |
||||||
|
}, |
||||||
|
onLoad() { |
||||||
|
this.getTradeOrderList(); |
||||||
|
}, |
||||||
|
methods: { |
||||||
|
getTradeOrderList() { |
||||||
|
uni.showLoading({ |
||||||
|
title: '加载中...' |
||||||
|
}) |
||||||
|
let datas = { |
||||||
|
pageNum: 1, |
||||||
|
pageSize: 10 |
||||||
|
} |
||||||
|
getTradeOrderList(datas).then(res => { |
||||||
|
uni.hideLoading(); |
||||||
|
if (res.return_code == '000000' && res.return_data.pageInfo.list) { |
||||||
|
this.notesList = res.return_data.pageInfo.list; |
||||||
|
} else { |
||||||
|
uni.showToast({ |
||||||
|
title: res.return_msg, |
||||||
|
duration: 2000, |
||||||
|
icon: 'none' |
||||||
|
}) |
||||||
|
} |
||||||
|
}) |
||||||
|
}, |
||||||
|
} |
||||||
|
} |
||||||
|
</script> |
||||||
|
|
||||||
|
<style lang="scss"> |
||||||
|
page { |
||||||
|
background-color: #f8f9f9; |
||||||
|
} |
||||||
|
|
||||||
|
.font306adb { |
||||||
|
color: #306adb; |
||||||
|
} |
||||||
|
</style> |
@ -0,0 +1,136 @@ |
|||||||
|
<template> |
||||||
|
<view> |
||||||
|
<view v-if="!storeList" class="mart60 fotct font14 fcor666"> |
||||||
|
<image mode="widthFix" style="width: 70vw;" src="../../../static/img/noorder.png"></image> |
||||||
|
</view> |
||||||
|
<view class="width94 backcorfff border-r mart15" v-for="(item,index) in storeList" :key="index" |
||||||
|
@click="jumpstoredes(item.id)"> |
||||||
|
<view class="notes" style="border-bottom: 0px;"> |
||||||
|
<image src="../../../static/img/store/store7.png" mode="widthFix" class="iconw40"></image> |
||||||
|
<view class="width65 margle"> |
||||||
|
<view class="font14 fcor333">{{item.name}}</view> |
||||||
|
<view class="font12 fcor999">{{item.createTime | timeFormat('yyyy-mm-dd')}} |
||||||
|
{{item.createTime | timeFormat('hh:mm')}} |
||||||
|
</view> |
||||||
|
</view> |
||||||
|
<view class="storestus" v-if="item.status == 1"> |
||||||
|
正常 |
||||||
|
</view> |
||||||
|
<view class="otstatucs" v-if="item.status == 2"> |
||||||
|
停用 |
||||||
|
</view> |
||||||
|
</view> |
||||||
|
<view class="conts" style="border-bottom: 0px;"> |
||||||
|
<image src="../../../static/img/store/store8.png" mode="widthFix" class="iconw"></image> |
||||||
|
<view class="margle10 font14 fcor999">{{item.account.telephone}}</view> |
||||||
|
</view> |
||||||
|
<view class="conts" style="border-bottom: 0px;"> |
||||||
|
<image src="../../../static/img/store/store9.png" mode="widthFix" class="iconw"></image> |
||||||
|
<view class="margle10 font14 fcor999">{{item.telephone}}</view> |
||||||
|
</view> |
||||||
|
<view class="conts" style="border-bottom: 0px;"> |
||||||
|
<image src="../../../static/img/store/store10.png" mode="widthFix" class="iconw"></image> |
||||||
|
<view class="margle10 font14 fcor999 width90p">{{item.storeRegion.address}}</view> |
||||||
|
</view> |
||||||
|
</view> |
||||||
|
<image src="../../../static/img/addser.png" mode="widthFix" class="xfimg" @click="jumpaddstore"></image> |
||||||
|
</view> |
||||||
|
</template> |
||||||
|
|
||||||
|
<script> |
||||||
|
import { |
||||||
|
getStoreListByMer |
||||||
|
} from '../../../Utils/Api.js'; |
||||||
|
let app = getApp(); |
||||||
|
export default { |
||||||
|
data() { |
||||||
|
return { |
||||||
|
storeList: [], |
||||||
|
userInfo: app.globalData.userInfo |
||||||
|
} |
||||||
|
}, |
||||||
|
onShow() { |
||||||
|
this.storeList = []; |
||||||
|
this.getStoreListByMer(); |
||||||
|
}, |
||||||
|
methods: { |
||||||
|
//跳转到门店详情 |
||||||
|
jumpstoredes(item) { |
||||||
|
uni.navigateTo({ |
||||||
|
url: '../store-details/store-details?id=' + item |
||||||
|
}) |
||||||
|
}, |
||||||
|
//查询门店列表 |
||||||
|
getStoreListByMer() { |
||||||
|
uni.showLoading({ |
||||||
|
title: '加载中...' |
||||||
|
}) |
||||||
|
let datas = { |
||||||
|
merId: this.userInfo.mer.id, |
||||||
|
pageNum: 1, |
||||||
|
pageSize: 10 |
||||||
|
} |
||||||
|
getStoreListByMer(datas).then(res => { |
||||||
|
uni.hideLoading(); |
||||||
|
if (res.return_code == '000000' && res.return_data.list) { |
||||||
|
this.storeList = res.return_data.list; |
||||||
|
} else { |
||||||
|
uni.showToast({ |
||||||
|
title: res.return_msg, |
||||||
|
duration: 2000, |
||||||
|
icon: 'none' |
||||||
|
}) |
||||||
|
} |
||||||
|
}) |
||||||
|
}, |
||||||
|
//跳转添加门店 |
||||||
|
jumpaddstore() { |
||||||
|
uni.navigateTo({ |
||||||
|
url: '../addStore/addStore' |
||||||
|
}) |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
</script> |
||||||
|
|
||||||
|
<style lang="scss"> |
||||||
|
page { |
||||||
|
background-color: #f6f6f6; |
||||||
|
} |
||||||
|
|
||||||
|
.notes { |
||||||
|
width: calc(100% - 40rpx); |
||||||
|
display: flex; |
||||||
|
align-items: center; |
||||||
|
padding: 30rpx 0 30rpx 20rpx; |
||||||
|
border-bottom: 1px solid #f6f6f6; |
||||||
|
} |
||||||
|
|
||||||
|
.storestus { |
||||||
|
padding: 1px 5px; |
||||||
|
color: #91bb88; |
||||||
|
font-size: 14px; |
||||||
|
background-color: #e8fbe6; |
||||||
|
} |
||||||
|
|
||||||
|
.otstatucs { |
||||||
|
background-color: #fbeee4; |
||||||
|
color: #db8c73; |
||||||
|
font-size: 14px; |
||||||
|
padding: 1px 5px; |
||||||
|
} |
||||||
|
|
||||||
|
.conts { |
||||||
|
width: calc(100% - 60rpx); |
||||||
|
display: flex; |
||||||
|
align-items: center; |
||||||
|
padding: 0 30rpx 10rpx 30rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.xfimg { |
||||||
|
width: 100rpx; |
||||||
|
bottom: 60rpx; |
||||||
|
position: fixed; |
||||||
|
right: 40rpx; |
||||||
|
} |
||||||
|
</style> |
@ -0,0 +1,145 @@ |
|||||||
|
<template> |
||||||
|
<view> |
||||||
|
<view v-if="!serviceList" class="mart60 fotct font14 fcor666"> |
||||||
|
<image mode="widthFix" style="width: 70vw;" src="../../../static/img/noorder.png"></image> |
||||||
|
</view> |
||||||
|
<view class="height110 width94 backcorfff mart20" v-for="(item,index) in serviceList" :key="index"> |
||||||
|
<view class="font20 font306adb paddtop10 fontwig6 padleft15">{{item.deviceSn}}</view> |
||||||
|
<view class="mart10 fcor666 padleft15 font14">绑定时间: {{item.createTime | timeFormat('yyyy-mm-dd')}} |
||||||
|
{{item.createTime | timeFormat('hh:mm')}} |
||||||
|
</view> |
||||||
|
<button class="btns" @click="delStoreDevice(item.id)">删除设备</button> |
||||||
|
</view> |
||||||
|
<image src="../../../static/img/addser.png" mode="widthFix" class="xfimg" @click="jumpaddService"></image> |
||||||
|
</view> |
||||||
|
</template> |
||||||
|
|
||||||
|
<script> |
||||||
|
import { |
||||||
|
getStoreDeviceList, |
||||||
|
delStoreDevice |
||||||
|
} from '../../../Utils/Api.js'; |
||||||
|
let app = getApp(); |
||||||
|
export default { |
||||||
|
data() { |
||||||
|
return { |
||||||
|
serviceList: [], |
||||||
|
pageNum: 1, |
||||||
|
pagesize: 15, |
||||||
|
isLoadMore: false, //是否加载中 |
||||||
|
userInfo: app.globalData.userInfo |
||||||
|
} |
||||||
|
}, |
||||||
|
onReachBottom() { //上拉触底函数 |
||||||
|
if (!this.isLoadMore) { //此处判断,上锁,防止重复请求 |
||||||
|
this.isLoadMore = true |
||||||
|
this.pageNum += 1 |
||||||
|
this.getStoreDeviceList() |
||||||
|
} |
||||||
|
}, |
||||||
|
onShow() { |
||||||
|
this.serviceList = []; |
||||||
|
this.getStoreDeviceList(); |
||||||
|
}, |
||||||
|
methods: { |
||||||
|
//跳转设备添加 |
||||||
|
jumpaddService() { |
||||||
|
uni.navigateTo({ |
||||||
|
url: '../addService/addService' |
||||||
|
}) |
||||||
|
}, |
||||||
|
//查询列表 |
||||||
|
getStoreDeviceList() { |
||||||
|
let params = { |
||||||
|
pageNum: this.pageNum, |
||||||
|
pageSize: this.pagesize, |
||||||
|
storeId: this.userInfo.store.id |
||||||
|
} |
||||||
|
getStoreDeviceList(params).then(res => { |
||||||
|
if (res.return_code == '000000' && res.return_data.list) { |
||||||
|
this.serviceList = this.serviceList.concat(res.return_data.list); |
||||||
|
if (res.return_data.pages == this.pageNum) { |
||||||
|
this.isLoadMore = true; |
||||||
|
} else { |
||||||
|
this.isLoadMore = false |
||||||
|
} |
||||||
|
} else { |
||||||
|
this.isLoadMore = true |
||||||
|
} |
||||||
|
}); |
||||||
|
}, |
||||||
|
//删除设备 |
||||||
|
delStoreDevice(item) { |
||||||
|
let that = this; |
||||||
|
uni.showModal({ |
||||||
|
title: '删除设备', |
||||||
|
content: '是否删除当前设备呢。', |
||||||
|
success: (res) => { |
||||||
|
if (res.confirm) { |
||||||
|
uni.showLoading({ |
||||||
|
title: '提交中...' |
||||||
|
}) |
||||||
|
let params = { |
||||||
|
id: item |
||||||
|
} |
||||||
|
delStoreDevice(params).then(res => { |
||||||
|
uni.hideLoading(); |
||||||
|
if (res.return_code == '000000') { |
||||||
|
uni.showToast({ |
||||||
|
title: '提交成功', |
||||||
|
icon: 'none', |
||||||
|
duration: 2000, |
||||||
|
success() { |
||||||
|
setTimeout(() => { |
||||||
|
that.serviceList = []; |
||||||
|
that.pageNum = 1; |
||||||
|
that.isLoadMore = false; |
||||||
|
that.getStoreDeviceList(); |
||||||
|
}, 1000); |
||||||
|
} |
||||||
|
}) |
||||||
|
} else { |
||||||
|
uni.showToast({ |
||||||
|
title: res.return_msg, |
||||||
|
icon: 'none', |
||||||
|
duration: 2000 |
||||||
|
}) |
||||||
|
} |
||||||
|
}) |
||||||
|
} else if (res.cancel) { |
||||||
|
console.log('用户点击取消'); |
||||||
|
} |
||||||
|
} |
||||||
|
}); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
</script> |
||||||
|
|
||||||
|
<style lang="scss"> |
||||||
|
page { |
||||||
|
background-color: #f8f9f9; |
||||||
|
} |
||||||
|
|
||||||
|
.font306adb { |
||||||
|
color: #306adb; |
||||||
|
} |
||||||
|
|
||||||
|
.xfimg { |
||||||
|
width: 100rpx; |
||||||
|
bottom: 60rpx; |
||||||
|
position: fixed; |
||||||
|
right: 40rpx; |
||||||
|
} |
||||||
|
|
||||||
|
.btns { |
||||||
|
width: 25%; |
||||||
|
margin-left: 68%; |
||||||
|
height: 35px; |
||||||
|
line-height: 35px; |
||||||
|
background-color: #0083f5; |
||||||
|
color: #FFFFFF; |
||||||
|
font-weight: bold; |
||||||
|
font-size: 14px; |
||||||
|
} |
||||||
|
</style> |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 4.2 KiB |
@ -1,2 +1,2 @@ |
|||||||
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>炫支付</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)')) |
<!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>炫支付</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)')) |
||||||
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/cweb/static/index.a5c69d49.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/cweb/static/js/chunk-vendors.5a385107.js></script><script src=/cweb/static/js/index.2ecf215f.js></script></body></html> |
document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/cweb/static/index.a5c69d49.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/cweb/static/js/chunk-vendors.5a385107.js></script><script src=/cweb/static/js/index.33a4581c.js></script></body></html> |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 4.2 KiB |