1.设备管理修改问题

huipay-master
杨杰 2 years ago
parent fe16280d0c
commit d7ec5835ba
  1. 4
      Utils/Api.js
  2. 28
      pages.json
  3. 2
      pages/index/addService/addService.vue
  4. 26
      pages/index/doorManage/doorManage.vue
  5. 4
      pages/index/merchant-details/merchant-details.vue
  6. 2
      pages/index/merchant-management/merchant-management.vue
  7. 25
      pages/index/mineService/mineService.vue
  8. 60
      pages/index/serviceOrderDetails/serviceOrderDetails.vue
  9. 11
      pages/tabBar/home/home.vue
  10. 17
      pages/welcome/welcome.vue
  11. 2
      unpackage/dist/build/h5/index.html

@ -129,6 +129,10 @@ export const replace = params => {
export const orderRefund = params => { export const orderRefund = params => {
return POST('POST', `${base}/deviceOrder/orderRefund`, params).then(res => res.data); return POST('POST', `${base}/deviceOrder/orderRefund`, params).then(res => res.data);
} }
//订单分配退款
export const deviceRefund = params => {
return POST('POST', `${base}/deviceOrder/deviceRefund`, params).then(res => res.data);
}
// ---------------- // ----------------

@ -1,18 +1,6 @@
{ {
"pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages "pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages
{ {
"path": "pages/login/login",
"style": {
"navigationBarTextStyle": "white",
"navigationBarTitleText": "登录",
"onReachBottomDistance": 50,
"app-plus": {
"titleNView": false, //
"softinputNavBar": "none"
}
}
}, {
"path" : "pages/welcome/welcome", "path" : "pages/welcome/welcome",
"style" : "style" :
{ {
@ -24,7 +12,19 @@
} }
} }
}, { },{
"path": "pages/login/login",
"style": {
"navigationBarTextStyle": "white",
"navigationBarTitleText": "登录",
"onReachBottomDistance": 50,
"app-plus": {
"titleNView": false, //
"softinputNavBar": "none"
}
}
}, {
"path": "pages/index/serviceApplicationList/serviceApplicationList", "path": "pages/index/serviceApplicationList/serviceApplicationList",
"style": { "style": {
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",

@ -164,7 +164,7 @@
title: '支付中...' title: '支付中...'
}) })
jweixin.config({ jweixin.config({
debug: true, // ,apialertpclogpc // debug: true, // ,apialertpclogpc
appId: self.return_data.appId, // appId: self.return_data.appId, //
timestamp: self.return_data.timeStamp, // timestamp: self.return_data.timeStamp, //
nonceStr: self.return_data.nonceStr, // nonceStr: self.return_data.nonceStr, //

@ -38,7 +38,12 @@
<view class="conts" style="border-bottom: 0px;"> <view class="conts" style="border-bottom: 0px;">
<image src="../../../static/img/store/store10.png" mode="widthFix" class="iconw"></image> <image src="../../../static/img/store/store10.png" mode="widthFix" class="iconw"></image>
<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">
<button class="btns mart10 marRight10" @click.stop="jumpMineDevice(item.id)">查看设备</button>
</view>
<view class="width100 height10"></view>
</view> </view>
<image src="../../../static/img/addser.png" mode="widthFix" class="xfimg" @click="jumpaddstore"></image> <image src="../../../static/img/addser.png" mode="widthFix" class="xfimg" @click="jumpaddstore"></image>
</view> </view>
@ -91,6 +96,12 @@
uni.navigateTo({ uni.navigateTo({
url: '../addStore/addStore' url: '../addStore/addStore'
}) })
},
//
jumpMineDevice(item){
uni.navigateTo({
url:'/pages/index/mineService/mineService?id=5'+'&storeid='+item
})
} }
} }
} }
@ -135,5 +146,18 @@
bottom: 60rpx; bottom: 60rpx;
position: fixed; position: fixed;
right: 40rpx; right: 40rpx;
}
.btns {
width: 21%;
margin-left: 5%;
float: left;
height: 35px;
line-height: 35px;
background-color: #0083f5;
color: #FFFFFF;
font-weight: bold;
font-size: 12px;
padding: 0px;
} }
</style> </style>

@ -74,12 +74,12 @@
<image src="../../../static/img/store/store10.png" mode="widthFix" class="iconw"></image> <image src="../../../static/img/store/store10.png" mode="widthFix" class="iconw"></image>
<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 marRight10" @click.stop="jumpBindScan(item.id,1)">二维码列表</button> <button class="btns mart10 marRight10" @click.stop="jumpBindScan(item.id,1)">二维码列表</button>
<button class="btns mart10 marRight10" @click.stop="jumpBindScan(item.id,2)">绑定二维码</button> <button class="btns mart10 marRight10" @click.stop="jumpBindScan(item.id,2)">绑定二维码</button>
<button class="btns mart10 marRight10" @click.stop="jumpService(item.id,1)">绑定设备</button> <button class="btns mart10 marRight10" @click.stop="jumpService(item.id,1)">绑定设备</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>
</view> </view> -->
<view class="lin10"></view> <view class="lin10"></view>
</view> </view>
</view> </view>

@ -14,7 +14,7 @@
@click="jumpmerdes(item.id)"> @click="jumpmerdes(item.id)">
<view class="notes"> <view class="notes">
<image src="../../../static/img/merchantstu.png" mode="widthFix" class="iconw40"></image> <image src="../../../static/img/merchantstu.png" mode="widthFix" class="iconw40"></image>
<view class="width65 margle"> <view class="width60 margle">
<view class="font14 fcor333">{{item.regPhone}}</view> <view class="font14 fcor333">{{item.regPhone}}</view>
<view class="font12 fcor999"> <view class="font12 fcor999">
{{item.createTime | timeFormat('yyyy-mm-dd')}} {{item.createTime | timeFormat('yyyy-mm-dd')}}

@ -28,7 +28,7 @@
<view class="margle10 font13 fcor999">设备类型: {{item.deviceType | toFilter()}}</view> <view class="margle10 font13 fcor999">设备类型: {{item.deviceType | toFilter()}}</view>
</view> </view>
</view> </view>
<view class="height40"></view> <view class="height40"></view>
</view> </view>
</template> </template>
@ -47,7 +47,8 @@
orderNo: '', // orderNo: '', //
buildStatus: false, // buildStatus: false, //
deviceNo: '', // deviceNo: '', //
assderid: '', //id assderid: '', //id
storeid:'', //id
pageNum: 1, pageNum: 1,
pagesize: 10, pagesize: 10,
isLoadMore: false, // isLoadMore: false, //
@ -64,19 +65,20 @@
} }
return codeName; return codeName;
}, },
}, },
onReachBottom() { // onReachBottom() { //
if (!this.isLoadMore) { // if (!this.isLoadMore) { //
this.isLoadMore = true this.isLoadMore = true
this.pageNum += 1 this.pageNum += 1
this.getDeviceList() this.getDeviceList()
} }
}, },
onLoad(options) { onLoad(options) {
this.sourceId = options.id; this.sourceId = options.id;
this.orderNo = options.orderNo; this.orderNo = options.orderNo;
this.storeid = options.storeid;
this.assderid = options.assderid; this.assderid = options.assderid;
if (this.sourceId == 1) { if (this.sourceId == 1 || this.sourceId == 5) {
this.buildStatus = true; this.buildStatus = true;
this.getDeviceList(); this.getDeviceList();
} }
@ -96,7 +98,8 @@
pageNum: this.pageNum, pageNum: this.pageNum,
pageSize: this.pagesize, pageSize: this.pagesize,
buildStatus: this.buildStatus, buildStatus: this.buildStatus,
deviceNo: this.deviceNo deviceNo: this.deviceNo,
storeId: this.storeid
} }
getDeviceList(datas).then(res => { getDeviceList(datas).then(res => {
if (res.return_code == '000000' && res.return_data.list != '') { if (res.return_code == '000000' && res.return_data.list != '') {

@ -59,19 +59,22 @@
{{ orderDetails.orderAssignList[0].orderType | toFilterDdevic()}} {{ orderDetails.orderAssignList[0].orderType | toFilterDdevic()}}
</view> </view>
</view> </view>
</view>
</view>
<button class="btns marb40" @click="deviceRefund" v-if="userInfo.secUser.objectType == 5 && orderDetails.status == 3">申请退款</button>
</view> </view>
</template> </template>
<script> <script>
import { import {
getOrderDetail getOrderDetail,
deviceRefund
} from '../../../Utils/Api.js'; } from '../../../Utils/Api.js';
let app = getApp(); let app = getApp();
export default { export default {
data() { data() {
return { return {
userInfo: app.globalData.userInfo, //
orderNo: '', // orderNo: '', //
orderDetails: '' // orderDetails: '' //
} }
@ -120,6 +123,44 @@
this.orderDetails = res.return_data; this.orderDetails = res.return_data;
} }
}) })
},
//退
deviceRefund(){
let that = this;
uni.showModal({
title: '温馨提示',
content: '是否申请设备退款',
success: (res) => {
if (res.confirm) {
uni.showLoading({
title: '加载中'
})
let datas = {
"deviceOrderAssignId": that.orderDetails.orderAssignList[0].id
}
deviceRefund(datas).then(res => {
uni.hideLoading();
if (res.return_code == '000000') {
uni.showToast({
title: '退款成功',
icon: 'none',
success() {
setTimeout(() => {
that.getOrderDetail();
}, 2000);
}
})
} else {
uni.showToast({
title: res.return_msg,
duration: 5000,
icon: 'none'
})
}
})
} else if (res.cancel) {}
}
});
} }
} }
} }
@ -136,5 +177,16 @@
align-items: center; align-items: center;
padding: 30rpx 0 30rpx 20rpx; padding: 30rpx 0 30rpx 20rpx;
border-bottom: 1px solid #f6f6f6; border-bottom: 1px solid #f6f6f6;
}
.btns {
margin-top: 200rpx;
width: 80%;
margin-left: 10%;
height: 50px;
line-height: 50px;
background-color: #0083f5;
color: #FFFFFF;
font-weight: bold;
} }
</style> </style>

@ -45,7 +45,7 @@
</view> </view>
</view> </view>
<!-- 消息中心 --> <!-- 消息中心 -->
<view class="width100 backcorfff mart145" @click="jumpmescon"> <view class="width100 backcorfff " style="position: absolute;top: 300px;" @click="jumpmescon">
<view class="width94 alijusstart height50"> <view class="width94 alijusstart height50">
<image src="../../../static/img/mer6.png" mode="widthFix" class="iconw25 marglerig"></image> <image src="../../../static/img/mer6.png" mode="widthFix" class="iconw25 marglerig"></image>
<text class="width90p">消息中心</text> <text class="width90p">消息中心</text>
@ -53,10 +53,11 @@
</view> </view>
</view> </view>
<!-- 菜单功能 --> <!-- 菜单功能 -->
<view class="width100 line10"></view> <view class="width100" style="position: absolute;top:360px;">
<view class="funcss" v-for="(item,index) in funcList" :key="index" @click="jumpdesfun(item)"> <view class="funcss" v-for="(item,index) in funcList" :key="index" @click="jumpdesfun(item)">
<image :src="item.img" mode="widthFix" class="funicon"></image> <image :src="item.img" mode="widthFix" class="funicon"></image>
<view class="width100 font14 mart5">{{item.title}}</view> <view class="width100 font14 mart5">{{item.title}}</view>
</view>
</view> </view>
<view class="width100 height40p"></view> <view class="width100 height40p"></view>
</view> </view>

@ -12,7 +12,7 @@
export default { export default {
data() { data() {
return { return {
userInfo: app.globalData.userInfo, //
} }
}, },
onLoad(options) { onLoad(options) {
@ -31,7 +31,7 @@
} }
} else { } else {
// openid // openid
// that.jumpcdx(); that.jumpcdx();
} }
if (app.globalData.h5code) { if (app.globalData.h5code) {
that.getAccessToken(); that.getAccessToken();
@ -50,10 +50,17 @@
uni.setStorage({ uni.setStorage({
key: "openId", key: "openId",
data: res.return_data.openid data: res.return_data.openid
})
uni.reLaunch({
url: '/pages/login/login'
}) })
if (this.userInfo) {
uni.reLaunch({
url: '../tabBar/home/home'
})
} else {
uni.reLaunch({
url: '/pages/login/login'
})
}
} else { } else {
this.jumpcdx(); this.jumpcdx();
} }

@ -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.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> 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.8334b05a.js></script></body></html>
Loading…
Cancel
Save