订单核销功能处理

This commit is contained in:
jia 2023-09-28 17:18:39 +08:00
parent 3420bbbe48
commit 0d7a893e59
8 changed files with 32 additions and 22 deletions

View File

@ -161,7 +161,7 @@
jpushModule.initJPushService() jpushModule.initJPushService()
jpushModule.addConnectEventListener(result => { jpushModule.addConnectEventListener(result => {
let connectEnable = result.connectEnable let connectEnable = result.connectEnable
console.log("jpush连接", connectEnable) // console.log("jpush", connectEnable)
}) })
@ -444,6 +444,7 @@
@import 'static/iconfont/iconfont.css'; @import 'static/iconfont/iconfont.css';
@import 'static/iconfont/iconlihai.css'; @import 'static/iconfont/iconlihai.css';
@import 'static/iconfont/icontan.css'; @import 'static/iconfont/icontan.css';
@import 'static/iconfont/demo.css';
@import 'static/css/style.scss'; @import 'static/css/style.scss';

View File

@ -91,6 +91,7 @@
import authorize from '@/components/Authorize'; import authorize from '@/components/Authorize';
import emptyPage from '@/components/emptyPage.vue' import emptyPage from '@/components/emptyPage.vue'
import { configMap } from '@/utils'; import { configMap } from '@/utils';
import { navigateBack } from '../../../libs/uniApi';
const app = getApp(); const app = getApp();
export default { export default {
components: { components: {
@ -198,6 +199,14 @@
that.$util.Tips({ that.$util.Tips({
title: res.message title: res.message
}); });
if(res.status==200){
// uni.redirectTo({
// url:'/admin/orderList/index?types=4&merId='+that.mer_id
// })
uni.navigateBack({
delta:2
})
}
that.getOrderData(); that.getOrderData();
}) })
.catch(res => { .catch(res => {

View File

@ -293,6 +293,9 @@
this.merId = option.merId; this.merId = option.merId;
this.getIndex(); this.getIndex();
}, },
onShow(){
this.getIndex();
},
methods: { methods: {
// //
popUpClose() { popUpClose() {

View File

@ -122,6 +122,7 @@
}, },
// //
scanCode() { scanCode() {
var self = this; var self = this;
// #ifdef MP || APP-PLUS // #ifdef MP || APP-PLUS
wx.scanCode({ wx.scanCode({
@ -129,15 +130,14 @@
success(res) { success(res) {
self.verify_code = res.result self.verify_code = res.result
// console.log(self.verify_code); // console.log(self.verify_code);
console.log('111',self.mer_id,self.verify_code)
verifierOrder(self.mer_id,self.verify_code) verifierOrder(self.mer_id,self.verify_code)
.then(res => { .then(res => {
// uni.navigateTo({
// url: '/pages/admin/cancellate_result/index?code='+self.verify_code+'&mer_id='+self.mer_id
// });
uni.navigateTo({ uni.navigateTo({
url: '/pages/admin/orderList/index?types=2'+'&mer_id='+self.mer_id url: '/pages/admin/cancellate_result/index?code='+self.verify_code+'&mer_id='+self.mer_id
}); });
}) })
.catch(res => { .catch(res => {
self.verify_code = '' self.verify_code = ''
@ -165,12 +165,11 @@
scanType: ["qrCode", "barCode"] scanType: ["qrCode", "barCode"]
}).then(res=>{ }).then(res=>{
this.verify_code = res.resultStr this.verify_code = res.resultStr
// uni.navigateTo({
// url: '/pages/admin/cancellate_result/index?code='+self.verify_code+'&mer_id='+self.mer_id
// });
uni.navigateTo({ uni.navigateTo({
url: '/pages/admin/orderList/index?types=2'+'&mer_id='+self.mer_id url: '/pages/admin/cancellate_result/index?code='+self.verify_code+'&mer_id='+self.mer_id
}); });
// this.codeChange(); // this.codeChange();
}).catch(res => { }).catch(res => {
this.$util.Tips({ this.$util.Tips({

View File

@ -112,23 +112,18 @@
merchant({ merchant({
id: this.mer_id id: this.mer_id
}).then((res) => { }).then((res) => {
this.merchant_Data = res.data this.merchant_Data = res.data
}); });
}, },
// //
paydecimal() { paydecimal() {
let that = this let that = this
uni.showModal({ uni.showModal({
title: '提示', title: '提示',
content: '商户' + this.merchant_Data.mer_name + '是否同意缴纳保证金', content: '商户' + this.merchant_Data.mer_name + '是否同意缴纳保证金',
success: (res) => { success: (res) => {
if (res.confirm) { if (res.confirm) {
// console.log('');
paymerchant().then((res) => { paymerchant().then((res) => {
uni.requestPayment({ uni.requestPayment({
provider: 'wxpay', provider: 'wxpay',
orderInfo: res.data orderInfo: res.data
@ -144,15 +139,14 @@
that.$util.Tips({ that.$util.Tips({
title: '支付失败' title: '支付失败'
}); });
console.log('fail:' + JSON.stringify(err)); console.log('fail:' + JSON.stringify(err));
} }
}); });
}).catch((err) => { }).catch((err) => {
console.log(err) console.log(err)
that.$util.Tips({ that.$util.Tips({
title: err title: err
}) })
}) })
} else if (res.cancel) { } else if (res.cancel) {
console.log('用户点击取消'); console.log('用户点击取消');

View File

@ -5,7 +5,7 @@
<text class="title">评论 {{all}}</text> <text class="title">评论 {{all}}</text>
<image @click="close" class="closeBnt" src="../static/img/index/close.png" mode=""></image> <image @click="close" class="closeBnt" src="../static/img/index/close.png" mode=""></image>
<view class="main"> <view class="main">
<scroll-view :scroll-y="true" class="scroll-view"> <scroll-view :scroll-y="true" class="scroll-view" >
<view v-if="list.length > 0" @touchmove="onTouchmove" id="reply"> <view v-if="list.length > 0" @touchmove="onTouchmove" id="reply">
<view class="common_list" v-for="(item, index) in list" :key="index"> <view class="common_list" v-for="(item, index) in list" :key="index">
<view class="commen_one"> <view class="commen_one">
@ -18,10 +18,13 @@
<text class="desc">{{item.content}}</text> <text class="desc">{{item.content}}</text>
<text class="time">{{item.create_time}}</text> <text class="time">{{item.create_time}}</text>
</view> </view>
<view class="like" @click="starComment(item)">
<image v-if="item.relevance_id" class="dianzan" src="../static/img/index/zan02.png"></image> <view class="like_two" @click="starComment(item)" >
<image v-else class="dianzan" src="../static/img/index/zan01.png"></image> <!-- <image v-if="item.relevance_id" class="dianzan" src="../static/img/index/xin.png"></image>
<image v-else class="dianzan" src="../static/img/index/xin-2.png"></image> -->
<text class="iconfont":class="item.relevance_id ? 'icon-dianzan' : 'icon-dianzan1'"></text>
<text class="like-text">{{item.count_start}}</text> <text class="like-text">{{item.count_start}}</text>
</view> </view>
</view> </view>
@ -306,6 +309,7 @@
.main_content{ .main_content{
padding: 12px 15rpx; padding: 12px 15rpx;
border-bottom: 2px solid #F5F5F5; border-bottom: 2px solid #F5F5F5;
background-color: #e1e1e1;
position: relative; position: relative;
} }
.header{ .header{

Binary file not shown.

Before

Width:  |  Height:  |  Size: 944 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 747 B