parent
30e8656005
commit
fe16280d0c
@ -0,0 +1,13 @@ |
||||
{ |
||||
"name": "基于uview职位分类选择,具备模糊搜索功能,使用更方便", |
||||
"version": "1.1.1", |
||||
"lockfileVersion": 2, |
||||
"requires": true, |
||||
"packages": { |
||||
"node_modules/jweixin-module": { |
||||
"version": "1.6.0", |
||||
"resolved": "https://registry.npmjs.org/jweixin-module/-/jweixin-module-1.6.0.tgz", |
||||
"integrity": "sha512-dGk9cf+ipipHmtzYmKZs5B2toX+p4hLyllGLF6xuC8t+B05oYxd8fYoaRz0T30U2n3RUv8a4iwvjhA+OcYz52w==" |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,30 @@ |
||||
# jweixin-module |
||||
|
||||
微信JS-SDK |
||||
|
||||
## 安装 |
||||
|
||||
### NPM |
||||
|
||||
```shell |
||||
npm install jweixin-module --save |
||||
``` |
||||
|
||||
### UMD |
||||
|
||||
```http |
||||
https://unpkg.com/jweixin-module/out/index.js |
||||
``` |
||||
|
||||
## 使用 |
||||
|
||||
```js |
||||
var jweixin = require('jweixin-module') |
||||
jweixin.ready(function(){ |
||||
// TODO |
||||
}); |
||||
``` |
||||
|
||||
## 完整API |
||||
|
||||
>[微信JS-SDK说明文档](https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421141115) |
File diff suppressed because one or more lines are too long
@ -0,0 +1,26 @@ |
||||
{ |
||||
"name": "jweixin-module", |
||||
"version": "1.6.0", |
||||
"description": "微信JS-SDK", |
||||
"main": "lib/index.js", |
||||
"scripts": {}, |
||||
"repository": { |
||||
"type": "git", |
||||
"url": "git+https://github.com/zhetengbiji/jweixin-module.git" |
||||
}, |
||||
"keywords": [ |
||||
"wxjssdk", |
||||
"weixin", |
||||
"jweixin", |
||||
"wechat", |
||||
"jssdk", |
||||
"wx" |
||||
], |
||||
"author": "Shengqiang Guo", |
||||
"license": "ISC", |
||||
"bugs": { |
||||
"url": "https://github.com/zhetengbiji/jweixin-module/issues" |
||||
}, |
||||
"homepage": "https://github.com/zhetengbiji/jweixin-module#readme", |
||||
"devDependencies": {} |
||||
} |
@ -0,0 +1,27 @@ |
||||
{ |
||||
"name": "基于uview职位分类选择,具备模糊搜索功能,使用更方便", |
||||
"version": "1.1.1", |
||||
"lockfileVersion": 2, |
||||
"requires": true, |
||||
"packages": { |
||||
"": { |
||||
"name": "基于uview职位分类选择,具备模糊搜索功能,使用更方便", |
||||
"version": "1.1.1", |
||||
"dependencies": { |
||||
"jweixin-module": "^1.6.0" |
||||
} |
||||
}, |
||||
"node_modules/jweixin-module": { |
||||
"version": "1.6.0", |
||||
"resolved": "https://registry.npmjs.org/jweixin-module/-/jweixin-module-1.6.0.tgz", |
||||
"integrity": "sha512-dGk9cf+ipipHmtzYmKZs5B2toX+p4hLyllGLF6xuC8t+B05oYxd8fYoaRz0T30U2n3RUv8a4iwvjhA+OcYz52w==" |
||||
} |
||||
}, |
||||
"dependencies": { |
||||
"jweixin-module": { |
||||
"version": "1.6.0", |
||||
"resolved": "https://registry.npmjs.org/jweixin-module/-/jweixin-module-1.6.0.tgz", |
||||
"integrity": "sha512-dGk9cf+ipipHmtzYmKZs5B2toX+p4hLyllGLF6xuC8t+B05oYxd8fYoaRz0T30U2n3RUv8a4iwvjhA+OcYz52w==" |
||||
} |
||||
} |
||||
} |
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,274 @@ |
||||
<template> |
||||
<view> |
||||
<view class="input-box"> |
||||
<view class="icon search"></view> |
||||
<input placeholder="搜索设备编号" v-model="deviceNo" placeholder-style="color:#c0c0c0;" @input="toSearch()" /> |
||||
</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="width94 serlist border-r mart15" v-for="(item,index) in serviceList" :key="index" |
||||
@click="assignOrder(item.deviceNo)"> |
||||
<view class="notes"> |
||||
<view class="width75 margle"> |
||||
<view class="font18 fcor333 fontwig6">编号: {{item.deviceNo}}</view> |
||||
<view class="font13 fcor999 mart5" v-if="sourceId == 1">申请时间: |
||||
{{item.createTime | timeFormat('yyyy-mm-dd hh:mm:ss')}} |
||||
</view> |
||||
</view> |
||||
<view class="storestus" v-if="item.bindStatus"> |
||||
已绑定 |
||||
</view> |
||||
<view class="otstatucs" v-if="!item.bindStatus"> |
||||
未绑定 |
||||
</view> |
||||
</view> |
||||
<view class="conts"> |
||||
<view class="margle10 font13 fcor999">设备类型: {{item.deviceType | toFilter()}}</view> |
||||
</view> |
||||
</view> |
||||
<view class="height40"></view> |
||||
</view> |
||||
</template> |
||||
|
||||
<script> |
||||
import { |
||||
getDeviceList, |
||||
assignOrder, |
||||
replace |
||||
} from '../../../Utils/Api.js'; |
||||
let app = getApp(); |
||||
export default { |
||||
data() { |
||||
return { |
||||
serviceList: [], //设备列表˚ |
||||
sourceId: '', // 来源id |
||||
orderNo: '', //订单号 |
||||
buildStatus: false, //是否分配 |
||||
deviceNo: '', // 设备编号 |
||||
assderid: '', //分配id |
||||
pageNum: 1, |
||||
pagesize: 10, |
||||
isLoadMore: false, //是否加载中 |
||||
} |
||||
}, |
||||
filters: { |
||||
// 过滤器 |
||||
toFilter: function(id) { |
||||
let codeName; |
||||
for (let i = 0; i < app.globalData.Dictionaries.DEVICE_TYPE.length; i++) { |
||||
if (id == app.globalData.Dictionaries.DEVICE_TYPE[i].codeValue) { |
||||
codeName = app.globalData.Dictionaries.DEVICE_TYPE[i].codeName; |
||||
} |
||||
} |
||||
return codeName; |
||||
}, |
||||
}, |
||||
onReachBottom() { //上拉触底函数 |
||||
if (!this.isLoadMore) { //此处判断,上锁,防止重复请求 |
||||
this.isLoadMore = true |
||||
this.pageNum += 1 |
||||
this.getDeviceList() |
||||
} |
||||
}, |
||||
onLoad(options) { |
||||
this.sourceId = options.id; |
||||
this.orderNo = options.orderNo; |
||||
this.assderid = options.assderid; |
||||
if (this.sourceId == 1) { |
||||
this.buildStatus = true; |
||||
this.getDeviceList(); |
||||
} |
||||
if (this.sourceId == 2 || this.sourceId == 4) { |
||||
this.buildStatus = false; |
||||
this.getDeviceList(); |
||||
} |
||||
if (this.sourceId == 3) { |
||||
this.buildStatus = ''; |
||||
this.getDeviceList(); |
||||
} |
||||
}, |
||||
methods: { |
||||
//查询列表 |
||||
getDeviceList() { |
||||
let datas = { |
||||
pageNum: this.pageNum, |
||||
pageSize: this.pagesize, |
||||
buildStatus: this.buildStatus, |
||||
deviceNo: this.deviceNo |
||||
} |
||||
getDeviceList(datas).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.serviceList = ''; |
||||
} |
||||
}) |
||||
}, |
||||
//搜索设备 |
||||
toSearch() { |
||||
this.pageNum = 1; |
||||
this.pageSize = 10; |
||||
this.serviceList = []; |
||||
this.getDeviceList(); |
||||
}, |
||||
//分配设备 |
||||
assignOrder(item) { |
||||
if (this.sourceId == 2) { |
||||
uni.showModal({ |
||||
title: '温馨提示', |
||||
content: '是否分配当前设备', |
||||
success: (res) => { |
||||
if (res.confirm) { |
||||
uni.showLoading({ |
||||
title: '加载中' |
||||
}) |
||||
let serviceList = []; |
||||
serviceList.push(item); |
||||
let datas = { |
||||
"orderNo": this.orderNo, |
||||
"deviceNoList": serviceList |
||||
} |
||||
assignOrder(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) {} |
||||
} |
||||
}); |
||||
} |
||||
|
||||
if (this.sourceId == 4) { |
||||
uni.showModal({ |
||||
title: '温馨提示', |
||||
content: '是否更换当前设备', |
||||
success: (res) => { |
||||
if (res.confirm) { |
||||
uni.showLoading({ |
||||
title: '加载中' |
||||
}) |
||||
let serviceList = []; |
||||
serviceList.push(item); |
||||
let datas = { |
||||
"deviceOrderAssignId": this.assderid, |
||||
"deviceNo": item |
||||
} |
||||
replace(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"> |
||||
.input-box { |
||||
width: 90%; |
||||
margin-left: 5%; |
||||
margin-top: 15px; |
||||
margin-bottom: 15px; |
||||
height: 70rpx; |
||||
background-color: #f5f5f5; |
||||
border-radius: 10rpx; |
||||
position: relative; |
||||
display: flex; |
||||
align-items: center; |
||||
|
||||
.icon { |
||||
display: flex; |
||||
align-items: center; |
||||
position: absolute; |
||||
top: 2px; |
||||
left: 5px; |
||||
width: 60upx; |
||||
height: 60upx; |
||||
font-size: 34upx; |
||||
color: #c0c0c0; |
||||
} |
||||
|
||||
input { |
||||
padding-left: 50upx; |
||||
height: 28upx; |
||||
font-size: 28upx; |
||||
width: 100%; |
||||
} |
||||
} |
||||
|
||||
.serlist { |
||||
border: 1px solid #f6f6f6; |
||||
box-shadow: 0upx 4upx 8upx rgba(0, 0, 0, 0.2); |
||||
} |
||||
|
||||
.notes { |
||||
width: calc(100% - 40rpx); |
||||
display: flex; |
||||
align-items: center; |
||||
padding: 30rpx 0 10rpx 20rpx; |
||||
} |
||||
|
||||
.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; |
||||
margin-bottom: 10px; |
||||
padding: 0 0rpx 30rpx 14rpx; |
||||
} |
||||
|
||||
.xfimg { |
||||
width: 100rpx; |
||||
bottom: 60rpx; |
||||
position: fixed; |
||||
right: 40rpx; |
||||
} |
||||
</style> |
@ -0,0 +1,229 @@ |
||||
<template> |
||||
<view> |
||||
<view class=" mart10 marb20 alijus"> |
||||
<view class="font16 fcor333 paddtop5 paddbotm5 margle20 marRight40" v-for="(item,index) in orderStatus" |
||||
@click="switchid(item)" :class="[goodtyid == item.id ? 'fcor089 borbtom fontwig6' : '']" :key="index"> |
||||
{{item.title}} |
||||
</view> |
||||
</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="width94 backcorfff border-r mart15" v-for="(item,index) in serviceList" :key="index" |
||||
@click="jumpService(item.orderNo)"> |
||||
<view class="notes"> |
||||
<view class="width75 margle"> |
||||
<view class="font18 fcor333 fontwig6">{{item.orderNo}}</view> |
||||
<view class="font13 fcor999 mart5">支付金额: ¥{{item.payPrice}}</view> |
||||
<view class="font13 fcor999 mart5">支付时间: {{item.payTime | timeFormat('yyyy-mm-dd hh:mm:ss')}} |
||||
</view> |
||||
</view> |
||||
<view class="otstatucs border-r" @click.stop="orderRefund(item.orderNo)" v-if="item.status == 2"> |
||||
订单退款 |
||||
</view> |
||||
<view class="otstatucs border-r" @click.stop="replace(item.orderAssignList[0].id)" |
||||
v-if="item.status == 3"> |
||||
更换设备 |
||||
</view> |
||||
</view> |
||||
|
||||
<view class="conts" v-if="item.orderAssignList !=''"> |
||||
<view class="margle10 font13 fcor999" >设备编号: {{item.orderAssignList[0].deviceNo}}</view> |
||||
</view> |
||||
<view class="conts"> |
||||
<view class="margle10 font13 fcor999">设备类型: {{item.deviceType | toFilter()}}</view> |
||||
<view class="margle10 font13 fcor999">申请数量: 1台</view> |
||||
</view> |
||||
|
||||
</view> |
||||
</view> |
||||
</template> |
||||
|
||||
<script> |
||||
import { |
||||
getOrderList, |
||||
orderRefund |
||||
} from '../../../Utils/Api.js'; |
||||
let app = getApp(); |
||||
export default { |
||||
data() { |
||||
return { |
||||
orderStatus: [{ |
||||
id: 2, |
||||
title: '已支付' |
||||
}, |
||||
{ |
||||
id: 3, |
||||
title: '已完成' |
||||
}, |
||||
{ |
||||
id: 4, |
||||
title: '已退款' |
||||
} |
||||
], //状态 |
||||
pageNum: 1, |
||||
pagesize: 15, |
||||
goodtyid: 2, //当前状态 |
||||
serviceList: [] //设备列表˚ |
||||
} |
||||
}, |
||||
filters: { |
||||
// 过滤器 |
||||
toFilter: function(id) { |
||||
let codeName; |
||||
for (let i = 0; i < app.globalData.Dictionaries.DEVICE_TYPE.length; i++) { |
||||
if (id == app.globalData.Dictionaries.DEVICE_TYPE[i].codeValue) { |
||||
codeName = app.globalData.Dictionaries.DEVICE_TYPE[i].codeName; |
||||
} |
||||
} |
||||
return codeName; |
||||
} |
||||
}, |
||||
onReachBottom() { //上拉触底函数 |
||||
if (!this.isLoadMore) { //此处判断,上锁,防止重复请求 |
||||
this.isLoadMore = true |
||||
this.pageNum += 1 |
||||
this.serviceList = []; |
||||
this.getDeviceList(); |
||||
} |
||||
}, |
||||
onShow() { |
||||
this.serviceList = []; |
||||
this.getOrderList(); |
||||
}, |
||||
methods: { |
||||
//切换id |
||||
switchid(item) { |
||||
this.goodtyid = item.id; |
||||
this.serviceList = []; |
||||
this.getOrderList(); |
||||
}, |
||||
|
||||
//查询订单设备 |
||||
getOrderList() { |
||||
uni.showLoading({ |
||||
title: '加载中' |
||||
}) |
||||
let datas = { |
||||
pageNum: this.pageNum, |
||||
pageSize: this.pagesize, |
||||
status: this.goodtyid |
||||
} |
||||
getOrderList(datas).then(res => { |
||||
uni.hideLoading(); |
||||
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.serviceList = []; |
||||
} |
||||
}) |
||||
}, |
||||
//分配设备 |
||||
jumpService(item) { |
||||
if (this.goodtyid == 2) { |
||||
uni.navigateTo({ |
||||
url: '../mineService/mineService?id=2' + '&orderNo=' + item |
||||
}) |
||||
} |
||||
if (this.goodtyid == 3 || this.goodtyid == 4) { |
||||
uni.navigateTo({ |
||||
url: '../serviceOrderDetails/serviceOrderDetails?orderNo=' + item |
||||
}) |
||||
} |
||||
}, |
||||
//更换设备 |
||||
replace(item) { |
||||
uni.navigateTo({ |
||||
url: '../mineService/mineService?id=4' + '&assderid=' + item |
||||
}) |
||||
}, |
||||
//订单退款 |
||||
orderRefund(item) { |
||||
uni.showModal({ |
||||
title: '温馨提示', |
||||
content: '是否退款当前订单', |
||||
success: (res) => { |
||||
if (res.confirm) { |
||||
uni.showLoading({ |
||||
title: '加载中' |
||||
}) |
||||
let datas = { |
||||
"orderNo": item |
||||
} |
||||
orderRefund(datas).then(res => { |
||||
uni.hideLoading(); |
||||
if (res.return_code == '000000') { |
||||
uni.showToast({ |
||||
title: '退款成功', |
||||
duration: 2000, |
||||
icon: 'none' |
||||
}) |
||||
this.serviceList = []; |
||||
this.getOrderList(); |
||||
} else { |
||||
uni.showToast({ |
||||
title: res.return_msg, |
||||
duration: 2000, |
||||
icon: 'none' |
||||
}) |
||||
} |
||||
}) |
||||
} else if (res.cancel) {} |
||||
} |
||||
}); |
||||
} |
||||
} |
||||
} |
||||
</script> |
||||
|
||||
<style lang="scss"> |
||||
.borbtom { |
||||
border-bottom: 3px solid #089bf5; |
||||
} |
||||
|
||||
page { |
||||
background-color: #f6f6f6; |
||||
} |
||||
|
||||
.notes { |
||||
width: calc(100% - 40rpx); |
||||
display: flex; |
||||
align-items: center; |
||||
padding: 30rpx 0 10rpx 20rpx; |
||||
} |
||||
|
||||
.storestus { |
||||
padding: 1px 5px; |
||||
color: #91bb88; |
||||
font-size: 14px; |
||||
background-color: #e8fbe6; |
||||
} |
||||
|
||||
.otstatucs { |
||||
background-color: #fbeee4; |
||||
color: #db8c73; |
||||
margin-top: -20px; |
||||
font-size: 14px; |
||||
padding: 4px 8px; |
||||
} |
||||
|
||||
.conts { |
||||
width: calc(100% - 60rpx); |
||||
display: flex; |
||||
align-items: center; |
||||
padding: 2px 0rpx 14rpx 14rpx; |
||||
} |
||||
|
||||
.xfimg { |
||||
width: 100rpx; |
||||
bottom: 60rpx; |
||||
position: fixed; |
||||
right: 40rpx; |
||||
} |
||||
</style> |
@ -0,0 +1,134 @@ |
||||
<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="width94 backcorfff border-r mart15" v-for="(item,index) in serviceList" :key="index" |
||||
@click="jumpdetails(item.orderNo)"> |
||||
<view class="notes"> |
||||
<view class="width75 margle"> |
||||
<view class="font18 fcor333 fontwig6">{{item.orderNo}}</view> |
||||
<view class="font13 fcor999 mart5">支付金额: ¥{{item.payPrice}}</view> |
||||
<view class="font13 fcor999 mart5">支付时间: {{item.payTime | timeFormat('yyyy-mm-dd hh:mm:ss')}} |
||||
</view> |
||||
</view> |
||||
<view class="storestus" v-if="item.status == 2"> |
||||
已支付 |
||||
</view> |
||||
<view class="storestus" v-if="item.status == 3"> |
||||
已完成 |
||||
</view> |
||||
<view class="otstatucs" v-if="item.status == 4"> |
||||
已退款 |
||||
</view> |
||||
</view> |
||||
<view class="conts" v-if="item.orderAssignList !=''"> |
||||
<view class="margle10 font13 fcor999">设备编号: {{item.orderAssignList[0].deviceNo}}</view> |
||||
</view> |
||||
<view class="conts"> |
||||
<view class="margle10 font13 fcor999">设备类型: {{item.deviceType | toFilter()}}</view> |
||||
<view class="margle10 font13 fcor999">申请数量: 1台</view> |
||||
</view> |
||||
</view> |
||||
<image src="../../../static/img/addser.png" mode="widthFix" class="xfimg" @click="jumpaddservice"></image> |
||||
</view> |
||||
</template> |
||||
|
||||
<script> |
||||
import { |
||||
getOrderList |
||||
} from '../../../Utils/Api.js'; |
||||
let app = getApp(); |
||||
export default { |
||||
data() { |
||||
return { |
||||
serviceList: '', //设备列表 |
||||
pageNum: 1, |
||||
pagesize: 999 |
||||
} |
||||
}, |
||||
filters: { |
||||
// 过滤器 |
||||
toFilter: function(id) { |
||||
let codeName; |
||||
for (let i = 0; i < app.globalData.Dictionaries.DEVICE_TYPE.length; i++) { |
||||
if (id == app.globalData.Dictionaries.DEVICE_TYPE[i].codeValue) { |
||||
codeName = app.globalData.Dictionaries.DEVICE_TYPE[i].codeName; |
||||
} |
||||
} |
||||
return codeName; |
||||
} |
||||
}, |
||||
onShow() { |
||||
this.getOrderList(); |
||||
}, |
||||
methods: { |
||||
//查询订单设备 |
||||
getOrderList() { |
||||
let datas = { |
||||
pageNum: this.pageNum, |
||||
pageSize: this.pagesize, |
||||
status: '2,3,4' |
||||
} |
||||
getOrderList(datas).then(res => { |
||||
if (res.return_code == '000000' && res.return_data.list != '') { |
||||
this.serviceList = res.return_data.list; |
||||
} |
||||
}) |
||||
}, |
||||
// 添加设备 |
||||
jumpaddservice() { |
||||
uni.navigateTo({ |
||||
url: '../addService/addService' |
||||
}) |
||||
}, |
||||
//进入详情 |
||||
jumpdetails(item) { |
||||
uni.navigateTo({ |
||||
url: '../serviceOrderDetails/serviceOrderDetails?orderNo=' + item |
||||
}) |
||||
} |
||||
} |
||||
} |
||||
</script> |
||||
|
||||
<style lang="scss"> |
||||
page { |
||||
background-color: #f6f6f6; |
||||
} |
||||
|
||||
.notes { |
||||
width: calc(100% - 40rpx); |
||||
display: flex; |
||||
align-items: center; |
||||
padding: 30rpx 0 10rpx 20rpx; |
||||
} |
||||
|
||||
.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: 2px 0rpx 14rpx 14rpx; |
||||
} |
||||
|
||||
.xfimg { |
||||
width: 100rpx; |
||||
bottom: 60rpx; |
||||
position: fixed; |
||||
right: 40rpx; |
||||
} |
||||
</style> |
@ -0,0 +1,140 @@ |
||||
<template> |
||||
<view> |
||||
|
||||
<view class="mart15 width100 backcorfff"> |
||||
<view class="notes"> |
||||
<view class="fcor666 width25">门店名称</view> |
||||
<view class="font14 fcor333 width75 fotrt">{{orderDetails.storeName}}</view> |
||||
</view> |
||||
|
||||
<view class="notes"> |
||||
<view class="fcor666 width25">订单状态</view> |
||||
<view class="font14 fcor333 width75 fotrt" v-if="orderDetails.status == 2">已支付</view> |
||||
<view class="font14 fcor333 width75 fotrt" v-if="orderDetails.status == 3">已完成</view> |
||||
<view class="font14 fcor333 width75 fotrt" v-if="orderDetails.status == 4">已退款</view> |
||||
</view> |
||||
|
||||
<view class="notes"> |
||||
<view class="fcor666 width25">订单编号</view> |
||||
<view class="font14 fcor333 width75 fotrt">{{orderDetails.orderNo}}</view> |
||||
</view> |
||||
|
||||
<view class="notes"> |
||||
<view class="fcor666 width25">支付流水号</view> |
||||
<view class="font14 fcor333 width75 fotrt">{{orderDetails.paySerialNo}}</view> |
||||
</view> |
||||
|
||||
<view class="notes"> |
||||
<view class="fcor666 width25">订单时间</view> |
||||
<view class="font14 fcor333 width75 fotrt"> |
||||
{{orderDetails.createTime | timeFormat('yyyy-mm-dd hh:mm:ss')}} |
||||
</view> |
||||
</view> |
||||
|
||||
<view class="notes"> |
||||
<view class="fcor666 width25">支付时间</view> |
||||
<view class="font14 fcor333 width75 fotrt">{{orderDetails.payTime | timeFormat('yyyy-mm-dd hh:mm:ss')}} |
||||
</view> |
||||
</view> |
||||
|
||||
<view class="notes"> |
||||
<view class="fcor666 width25">支付金额</view> |
||||
<view class="font14 fcor333 width75 fotrt">¥{{orderDetails.payPrice}}</view> |
||||
</view> |
||||
|
||||
<view class="notes" v-if="orderDetails.orderAssignList.length !=0"> |
||||
<view class="fcor666 width25">设备编号</view> |
||||
<view class="font14 fcor333 width75 fotrt">{{orderDetails.orderAssignList[0].deviceNo}}</view> |
||||
</view> |
||||
|
||||
<view class="notes" v-if="orderDetails.orderAssignList.length !=0"> |
||||
<view class="fcor666 width25">设备类型</view> |
||||
<view class="font14 fcor333 width75 fotrt">{{orderDetails.orderAssignList[0].deviceType | toFilter()}} |
||||
</view> |
||||
</view> |
||||
|
||||
<view class="notes" v-if="orderDetails.orderAssignList.length !=0"> |
||||
<view class="fcor666 width25">购买类型</view> |
||||
<view class="font14 fcor333 width75 fotrt"> |
||||
{{ orderDetails.orderAssignList[0].orderType | toFilterDdevic()}} |
||||
</view> |
||||
</view> |
||||
|
||||
</view> |
||||
</view> |
||||
</template> |
||||
|
||||
<script> |
||||
import { |
||||
getOrderDetail |
||||
} from '../../../Utils/Api.js'; |
||||
let app = getApp(); |
||||
export default { |
||||
data() { |
||||
return { |
||||
orderNo: '', // 订单号 |
||||
orderDetails: '' // 订单详情 |
||||
} |
||||
}, |
||||
//过滤器 |
||||
filters: { |
||||
// 设备类型 |
||||
toFilter: function(id) { |
||||
let codeName; |
||||
for (let i = 0; i < app.globalData.Dictionaries.DEVICE_TYPE.length; i++) { |
||||
if (id == app.globalData.Dictionaries.DEVICE_TYPE[i].codeValue) { |
||||
codeName = app.globalData.Dictionaries.DEVICE_TYPE[i].codeName; |
||||
} |
||||
} |
||||
return codeName; |
||||
}, |
||||
//购买方式 |
||||
toFilterDdevic: function(id) { |
||||
let codeName; |
||||
for (let i = 0; i < app.globalData.Dictionaries.DEVICE_ORDER_TYPE.length; i++) { |
||||
if (id == app.globalData.Dictionaries.DEVICE_ORDER_TYPE[i].codeValue) { |
||||
codeName = app.globalData.Dictionaries.DEVICE_ORDER_TYPE[i].codeName; |
||||
} |
||||
} |
||||
return codeName; |
||||
}, |
||||
}, |
||||
onLoad(options) { |
||||
this.orderNo = options.orderNo; |
||||
if (this.orderNo) { |
||||
this.getOrderDetail(); |
||||
} |
||||
}, |
||||
methods: { |
||||
//查询详情 |
||||
getOrderDetail() { |
||||
uni.showLoading({ |
||||
title: '加载中' |
||||
}) |
||||
let datas = { |
||||
orderNo: this.orderNo |
||||
} |
||||
getOrderDetail(datas).then(res => { |
||||
uni.hideLoading(); |
||||
if (res.return_code == '000000') { |
||||
this.orderDetails = res.return_data; |
||||
} |
||||
}) |
||||
} |
||||
} |
||||
} |
||||
</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; |
||||
} |
||||
</style> |
@ -0,0 +1,72 @@ |
||||
<template> |
||||
<view> |
||||
|
||||
</view> |
||||
</template> |
||||
|
||||
<script> |
||||
import { |
||||
getAccessToken |
||||
} from '../../Utils/Api.js'; |
||||
let app = getApp(); |
||||
export default { |
||||
data() { |
||||
return { |
||||
|
||||
} |
||||
}, |
||||
onLoad(options) { |
||||
let that = this; |
||||
// #ifdef H5 |
||||
let arr1 = window.location.href; |
||||
let arr2 = arr1.split('='); |
||||
if (arr2[2]) { |
||||
var arr3 = arr2[2].split('&'); |
||||
if (arr3[0] != undefined && arr3[0]) { |
||||
app.globalData.h5code = arr3[0]; |
||||
uni.setStorage({ |
||||
key: "h5code", |
||||
data: arr3[0] |
||||
}) |
||||
} |
||||
} else { |
||||
// 获取openid |
||||
// that.jumpcdx(); |
||||
} |
||||
if (app.globalData.h5code) { |
||||
that.getAccessToken(); |
||||
} |
||||
// #endif |
||||
}, |
||||
methods: { |
||||
//H5 获取openId |
||||
getAccessToken() { |
||||
let params = { |
||||
code: app.globalData.h5code |
||||
} |
||||
getAccessToken(params).then(res => { |
||||
if (res.return_code == '000000' && res.return_data.openid) { |
||||
app.globalData.openId = res.return_data.openid; |
||||
uni.setStorage({ |
||||
key: "openId", |
||||
data: res.return_data.openid |
||||
}) |
||||
uni.reLaunch({ |
||||
url: '/pages/login/login' |
||||
}) |
||||
} else { |
||||
this.jumpcdx(); |
||||
} |
||||
}); |
||||
}, |
||||
jumpcdx() { |
||||
location.href = |
||||
'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxa075e8509802f826&redirect_uri=https://hsgcs.dctpay.com/wechat_authorize/?redirect_uri=https://gratia-pay.dctpay.com/cweb&response_type=code&scope=snsapi_base#wechat_redirect'; |
||||
}, |
||||
} |
||||
} |
||||
</script> |
||||
|
||||
<style> |
||||
|
||||
</style> |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 927 B |
@ -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)')) |
||||
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.3ace2746.js></script></body></html> |
||||
<!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.2772579d.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/cweb/static/js/chunk-vendors.e911c294.js></script><script src=/cweb/static/js/index.ffd9f4df.js></script></body></html> |
Before Width: | Height: | Size: 18 KiB |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
Loading…
Reference in new issue