Commit 092a94db authored by sujie@126.com's avatar sujie@126.com

dd

parent 6714bede
...@@ -190,7 +190,6 @@ Page({ ...@@ -190,7 +190,6 @@ Page({
wx.downloadFile({ wx.downloadFile({
url: imgSrc, url: imgSrc,
success: function (res) { success: function (res) {
console.log(res);
//图片保存到本地 //图片保存到本地
wx.saveImageToPhotosAlbum({ wx.saveImageToPhotosAlbum({
filePath: res.tempFilePath, filePath: res.tempFilePath,
...@@ -200,7 +199,23 @@ Page({ ...@@ -200,7 +199,23 @@ Page({
icon: 'success', icon: 'success',
duration: 2000 duration: 2000
}) })
that.getIntegral() integralLog({
type: 1,
source_type: 1,
source_id: that.data.clockId,
customerId: visitor && visitor.id
}).then((res) => {
if (res.integral && Number(res.integral) > 0) {
that.setData({
scoreFeedBackStatus: {
integral: res.integral,
show: true,
scoretype: 2,
}
})
that.autoclosefeedback();
}
})
}, },
fail: function (err) { fail: function (err) {
console.log(err); console.log(err);
...@@ -261,7 +276,7 @@ Page({ ...@@ -261,7 +276,7 @@ Page({
open_id: visitor && visitor.openid, open_id: visitor && visitor.openid,
school_id: this.data.clockDetail.school_id, school_id: this.data.clockDetail.school_id,
remark: '', remark: '',
class_id: this.data.id class_id: this.data.clockDetail.class_id
}) })
} }
......
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