[去掉所有console和替换所有积分换成贡献值]
This commit is contained in:
@@ -159,7 +159,6 @@
|
||||
}
|
||||
|
||||
scanList(apiUrl, data).then(res => {
|
||||
console.log(res)
|
||||
this.account = res.all
|
||||
this.lists = this.lists.concat(res.lists.data)
|
||||
this.has_more = res.lists.page.has_more
|
||||
@@ -167,7 +166,6 @@
|
||||
this.ShopList = [{name:'全部',store_id:''},...res.stores]
|
||||
this.isBos = res.isBos
|
||||
}).catch(err => {
|
||||
console.log(err)
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
type: 'error',
|
||||
@@ -192,7 +190,6 @@
|
||||
},
|
||||
// 选择 年 月 日 切换要重置数据
|
||||
selectType(type) {
|
||||
console.log(type, typeof type)
|
||||
if (this.type !== type) {
|
||||
switch (type) {
|
||||
case 'year':
|
||||
|
||||
@@ -60,12 +60,9 @@
|
||||
},
|
||||
methods: {
|
||||
scanCode(e) {
|
||||
console.log(e)
|
||||
this.scanType = e
|
||||
uni.scanCode({
|
||||
success: (res) => {
|
||||
console.log('条码类型:' + res.scanType);
|
||||
console.log('条码内容:' + res.result);
|
||||
// uni.showLoading({
|
||||
// title: '核销请求中..'
|
||||
// })
|
||||
@@ -76,16 +73,13 @@
|
||||
},
|
||||
// 请求核销前置,优惠券前置和权证前置(get) post 是核销
|
||||
scanInfo(token, method) {
|
||||
console.log(token, this.scanType)
|
||||
let apiUrl = ''
|
||||
let data = {
|
||||
code: token
|
||||
}
|
||||
if (this.scanType === 'goods') {
|
||||
console.log('权证核销')
|
||||
apiUrl = 'manages/warrants/verification'
|
||||
} else {
|
||||
console.log('优惠券核销!')
|
||||
apiUrl = 'coupons/verify/coupon'
|
||||
}
|
||||
scanInfo(apiUrl, data, method).then(res => {
|
||||
@@ -104,8 +98,6 @@
|
||||
this.info = res
|
||||
}
|
||||
} else {
|
||||
console.log('优惠券核销 有商品跳转优惠券详情页面,没有商品直接弹出核销页面!')
|
||||
console.log(res, 'res')
|
||||
if (method === 'post') {
|
||||
this.showCode = false
|
||||
this.$refs.uToast.show({
|
||||
|
||||
Reference in New Issue
Block a user