Commit 5b36a937 authored by 高宇's avatar 高宇

拍摄小票查订阅

parent 392f00bf
......@@ -105,32 +105,38 @@
})
},
handleshoot(){
if(this.name === '') {
uni.showToast({
title: '请选择商铺',
icon: 'error'
})
} else {
const that = this
let tempFilePaths = ''
uni.chooseImage({
count: 1,
sourceType: ['camera'],
success: function(res){
tempFilePaths = res.tempFilePaths[0]
that.img = tempFilePaths
that.$u.post('/user/receipt/mobile/insert',{
tenantId:that.tenantId,
shopId: that.shopId,
img:that.img,
userId: that.userId
}).then(res => {
console.log('res',res)
})
console.log('tempFilePaths',tempFilePaths)
}
})
}
const that = this
wx.requestSubscribeMessage({
tmplIds: ['Z1GyWI2Q9m6VZna-AeIGvvKCQzhxHWBbBVe8UY49fbA'],
success (res) {
if(that.name === '') {
uni.showToast({
title: '请选择商铺',
icon: 'error'
})
} else {
let tempFilePaths = ''
uni.chooseImage({
count: 1,
sourceType: ['camera'],
success: function(res){
tempFilePaths = res.tempFilePaths[0]
that.img = tempFilePaths
that.$u.post('/user/receipt/mobile/insert',{
tenantId:that.tenantId,
shopId: that.shopId,
img:that.img,
userId: that.userId
}).then(res => {
console.log('res',res)
})
console.log('tempFilePaths',tempFilePaths)
}
})
}
}
})
},
goshopList(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment