作者 wumengyu

注释掉console

... ... @@ -32,7 +32,7 @@ Page({
img_height = e.detail.height,
//宽高比
ratio = img_width / img_height;
console.log(img_width, img_height);
// console.log(img_width, img_height);
//计算的高度值
var viewHeight = 750 / ratio;
var img_height = viewHeight;
... ... @@ -59,14 +59,14 @@ Page({
},
// 问一问
ask(e) {
console.log('前问一问-display', this.data.display);
// console.log('前问一问-display', this.data.display);
this.setData({
display: !this.data.display,
is_ask:true,is_reply:false,
content:'' ,
placeholder:'输入您的留言',
});
console.log('后问一问-display', this.data.display);
// console.log('后问一问-display', this.data.display);
// wx.navigateTo({
// url: '/pages/comment/comment?activity_id=' + this.data.detail_id
// + '&common_id=' + 0
... ... @@ -80,7 +80,7 @@ Page({
},
//发送评论/回复
clickComment(e) {
console.log('评论', e);
// console.log('评论', e);
this.setData({ display: false });
if(this.data.content === '' ) {
wx.showToast({title:'请输入内容',icon:'none'})
... ... @@ -94,7 +94,7 @@ Page({
formId:e.detail.formId,
};
app.post(url,params,{}).then((res)=>{
console.log('提交评论',res);
// console.log('提交评论',res);
if(+res.code === 1) {
wx.showToast({title:this.data.is_ask?'留言成功':'回复成功',icon:'none',});
this.getDetail();
... ... @@ -113,7 +113,7 @@ Page({
},
//回复
reply(e) {
console.log('回复', e);
// console.log('回复', e);
const id = e.currentTarget.dataset.id;
this.setData({
display: !this.data.display,
... ... @@ -128,7 +128,7 @@ Page({
},
//收藏/取消收藏
collect() {
console.log('收藏');
// console.log('收藏');
let self = this;
let url = '/portal/Active/collection';
let url_del = '/portal/Active/delCollection';
... ... @@ -141,7 +141,7 @@ Page({
};
if (self.data.is_collect) {
app.post(url_del, params, header).then((res) => {
console.log('取消收藏', res);
// console.log('取消收藏', res);
if (+res.code === 1) {
wx.showToast({title: res.message, icon: 'none'});
self.setData({
... ... @@ -151,7 +151,7 @@ Page({
})
} else {
app.post(url, params, header).then((res) => {
console.log('收藏', res);
// console.log('收藏', res);
if (+res.code === 1) {
wx.showToast({title: res.message, icon: 'none'});
self.setData({
... ... @@ -176,7 +176,7 @@ Page({
commonId: id,
};
app.post(url, params, {}).then((res) => {
console.log('点赞', res);
// console.log('点赞', res);
if (+res.code === 1) { //
wx.showToast({title: res.message, icon: 'none'});
self.setData({
... ... @@ -226,7 +226,7 @@ Page({
//获取详情
getDetail() {
const self = this;
console.log('city', self.data.city);
// console.log('city', self.data.city);
let url = '/portal/Active/activeDetail';
let params = {
activeId: self.data.detail_id,
... ... @@ -253,10 +253,10 @@ Page({
// (0全部,2待拼成,3人数不足未拼成,4已拼成,5已取消,6已完成,7已评价,8已拼成(活动未结束),9删除
const status = res.data.active.status;
if (status === 2 || status === 6 || status === 7 || status === 8) {
console.log('调用倒计时');
// console.log('调用倒计时');
self.countDown();
} else {
console.log('不调用倒计时');
// console.log('不调用倒计时');
let countDownArr = [];
let obj = null;
obj = {
... ... @@ -332,7 +332,7 @@ Page({
"token": wx.getStorageSync('token')
};
app.post(url, params, {}).then((res) => {
console.log('倒计时结束', res);
// console.log('倒计时结束', res);
if (+res.code === 1) {
// wx.showToast({title:'拼活动结束',icon:'success'})
}
... ... @@ -342,7 +342,7 @@ Page({
getNavigate() {
const self = this;
const arr = self.data.detail.latng.split(',');
console.log('arr', arr, arr[0], arr[1]);
// console.log('arr', arr, arr[0], arr[1]);
wx.openLocation({//​使用微信内置地图查看位置。
latitude: +arr[1],//要去的纬度-地址
longitude: +arr[0],//要去的经度-地址
... ... @@ -355,7 +355,7 @@ Page({
//确认拼活动
confirmJoin(e) {
const self = this;
console.log('已参与人数',self.data.join_people.length);
// console.log('已参与人数',self.data.join_people.length);
// if(+self.data.is_send === 2){ //可参与
// if(self.data.join_people.length + self.data.num > self.data.detail.max) {
// wx.showToast({title:'参加人数已超过剩余名额',icon:'none'})
... ... @@ -374,7 +374,7 @@ Page({
"token": wx.getStorageSync('token')
};
app.post(url, params, {}).then((res) => {
console.log('确认拼活动', res);
// console.log('确认拼活动', res);
if (+res.code === 1) {
// wx.showToast({title: '拼活动成功', icon: 'success'});
self.setData({is_showRelease_modal:true,order_id:+res.data.orderId,is_join:true});
... ... @@ -396,7 +396,7 @@ Page({
type:2,//1拼活动,2拼餐
};
app.post(url, params, {}).then((res) => {
console.log('获取活动二维码', res);
// console.log('获取活动二维码', res);
if (+res.code === 1) {
self.setData({qr_code:res.data},() => {
// console.log('二维码',self.data.qr_code);
... ... @@ -505,7 +505,7 @@ Page({
ctx.clip()
},
drawCard() {
console.log('开始画');
// console.log('开始画');
const self = this;
//先创建一个画布
const ctx = wx.createCanvasContext("canvas");
... ... @@ -519,18 +519,18 @@ Page({
//填充背景色
ctx.fillStyle = '#fff';
ctx.fillRect(0, 0, 280, 400);
console.log(self.data.local_img);
console.log(self.data.qr_code);
// console.log(self.data.local_img);
// console.log(self.data.qr_code);
//将图片转化为画布
ctx.drawImage(self.data.local_img, 0, 0, 280, 280);//详情图
console.log(111);
// console.log(111);
// ctx.drawImage(self.data.local_qr_code, 220, 209, 60, 60);//二维码
ctx.drawImage('../../../images/qr_code.jpg', 180, 320, 60, 60);//小程序码
//标题
ctx.setFontSize(12);
ctx.setFillStyle('#000');
ctx.textAlign = "left";
console.log(111);
// console.log(111);
ctx.fillText(self.data.detail.title, 16, 306.5);
ctx.fillText(self.data.detail.title, 15.5, 307);
ctx.restore();
... ... @@ -591,7 +591,7 @@ Page({
// wx.hideLoading();
console.log("draw callback success");
self.setData({can_save: true,show_canvas: true});
console.log(self.data.can_save);
// console.log(self.data.can_save);
})
},
//获取保存到相册的权限
... ... @@ -658,7 +658,7 @@ Page({
},
savePic() {
console.log('是否能保存',this.data.can_save);
// console.log('是否能保存',this.data.can_save);
if(this.data.can_save) {
wx.canvasToTempFilePath({
x: 0,
... ... @@ -671,7 +671,7 @@ Page({
fileType: 'jpg',
quality:1,
success: function (res) {
console.log("get tempfilepath(success) is:", res.tempFilePath);
// console.log("get tempfilepath(success) is:", res.tempFilePath);
//将图片保存在系统相册中(应先获取权限,)
wx.saveImageToPhotosAlbum({
filePath: res.tempFilePath,
... ... @@ -748,7 +748,7 @@ Page({
* 用户点击右上角分享
*/
onShareAppMessage: function (res) {
console.log('转发res',res);
// console.log('转发res',res);
let self = this;
if(res.from === 'button') {
return {
... ...
... ... @@ -61,7 +61,7 @@ Page({
goPostDetail(e) {
const id = +e.currentTarget.dataset.id;
const type = +e.currentTarget.dataset.type;
console.log('type', type);
// console.log('type', type);
if(type === 1) { //1是活动,2是拼餐
wx.navigateTo({
url: '/pages/activity/detail/detail?id=' + id,
... ... @@ -135,7 +135,7 @@ Page({
},
//选择开始时间
changeStartTime: function (e) {
console.log('picker发送选择改变,携带值为', e.detail.value)
// console.log('picker发送选择改变,携带值为', e.detail.value)
this.setData({
start_time_date: e.detail.value,
is_showSelect: true,
... ... @@ -144,7 +144,7 @@ Page({
},
//选择结束时间
changeEndTime: function (e) {
console.log('picker发送选择改变,携带值为', e.detail.value)
// console.log('picker发送选择改变,携带值为', e.detail.value)
this.setData({
end_time_date: e.detail.value,
is_showSelect: true,
... ... @@ -161,7 +161,7 @@ Page({
chooseType(e) {
const current = e.currentTarget.dataset.index;
const id = e.currentTarget.dataset.id;
console.log('select_id', id);
// console.log('select_id', id);
this.setData({current_type: current, is_all: false, is_showSelect: false, is_showSort: false,select_id:id});
wx.showLoading({
title: '加载中',
... ... @@ -180,12 +180,12 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
console.log('options', options);
// console.log('options', options);
this.setData({select_id:+options.id?+options.id:''});
wx.setNavigationBarTitle({title:options.name})
if(options.city !== 'null') {
this.setData({city_params:JSON.parse(options.city)});
console.log('load里的调用');
// console.log('load里的调用');
// this.getTypeList();
}
},
... ... @@ -199,7 +199,7 @@ Page({
//获取首页分类列表
getTypeList() {
const self = this;
console.log('city',self.data.city);
// console.log('city',self.data.city);
let url = '/portal/Index/cate';
let params = {
lat: wx.getStorageSync('lat') !== ''?self.data.lat:self.data.latitude,
... ... @@ -215,7 +215,7 @@ Page({
"token": wx.getStorageSync('token')
};
app.post(url, params, {}).then((res) => {
console.log('获取分类列表', res);
// console.log('获取分类列表', res);
if (+res.code === 1) {
self.setData({
list: res.data.active,
... ... @@ -239,7 +239,7 @@ Page({
"token": wx.getStorageSync('token')
};
app.post(url, params, {}).then((res) => {
console.log('获取城市', res);
// console.log('获取城市', res);
if (+res.code === 1) {
self.setData({
addr: res.data.city.city,
... ... @@ -258,7 +258,7 @@ Page({
type: 'wgs84',
altitude: 'true',
success(res) {
console.log('获取地理位', res);
// console.log('获取地理位', res);
self.setData({latitude: res.latitude, longitude: res.longitude});
self.getCity();
}
... ... @@ -274,7 +274,7 @@ Page({
if(wx.getStorageSync('lat') !== '' &&
wx.getStorageSync('lng') !== '' &&
wx.getStorageSync('addr') !== '') {
console.log('已选择城市',wx.getStorageSync('lat'),wx.getStorageSync('lng'),wx.getStorageSync('addr'));
// console.log('已选择城市',wx.getStorageSync('lat'),wx.getStorageSync('lng'),wx.getStorageSync('addr'));
self.setData({
is_city_change:true,
lat:wx.getStorageSync('lat'),
... ...
... ... @@ -31,14 +31,14 @@ Page({
img_height = e.detail.height,
//宽高比
ratio = img_width / img_height;
console.log(img_width, img_height);
// console.log(img_width, img_height);
//计算的高度值
var viewHeight = 750 / ratio;
var img_height = viewHeight;
var img_heights = this.data.img_heights;
//把每一张图片的对应的高度记录到数组里
img_heights[e.target.dataset.id] = img_height;
console.log('img_heights',img_heights);
// console.log('img_heights',img_heights);
this.setData({
img_heights: img_heights
})
... ... @@ -59,14 +59,14 @@ Page({
},
// 问一问
ask(e) {
console.log('前问一问-display', this.data.display);
// console.log('前问一问-display', this.data.display);
this.setData({
display: !this.data.display,
is_ask:true,is_reply:false,
content:'' ,
placeholder:'输入您的留言',
});
console.log('后问一问-display', this.data.display);
// console.log('后问一问-display', this.data.display);
// wx.navigateTo({
// url: '/pages/comment/comment?activity_id=' + this.data.detail_id
// + '&common_id=' + 0
... ... @@ -80,7 +80,7 @@ Page({
},
//发送评论/回复
clickComment(e) {
console.log('评论', e);
// console.log('评论', e);
this.setData({ display: false });
if(this.data.content === '' ) {
wx.showToast({title:'请输入内容',icon:'none'})
... ... @@ -94,7 +94,7 @@ Page({
formId:e.detail.formId,
};
app.post(url,params,{}).then((res)=>{
console.log('提交评论',res);
// console.log('提交评论',res);
if(+res.code === 1) {
wx.showToast({title:this.data.is_ask?'留言成功':'回复成功',icon:'none',});
this.getDetail();
... ... @@ -127,7 +127,7 @@ Page({
},
//收藏/取消收藏
collect() {
console.log('收藏');
// console.log('收藏');
let self = this;
let url = '/portal/Active/collection';
let url_del = '/portal/Active/delCollection';
... ... @@ -140,7 +140,7 @@ Page({
};
if(self.data.is_collect) {
app.post(url_del, params, header).then((res) => {
console.log('取消收藏',res);
// console.log('取消收藏',res);
if(+res.code === 1) {
wx.showToast({title:res.message,icon:'none'});
self.setData({
... ... @@ -150,7 +150,7 @@ Page({
})
}else {
app.post(url, params, header).then((res) => {
console.log('收藏',res);
// console.log('收藏',res);
if(+res.code === 1) {
wx.showToast({title:res.message,icon:'none'});
self.setData({
... ... @@ -175,7 +175,7 @@ Page({
commonId: id,
};
app.post(url, params, {}).then((res) => {
console.log('点赞', res);
// console.log('点赞', res);
if (+res.code === 1) { //
wx.showToast({title:res.message,icon:'none'});
self.setData({
... ... @@ -225,7 +225,7 @@ Page({
//获取详情
getDetail() {
const self = this;
console.log('city',self.data.city);
// console.log('city',self.data.city);
let url = '/portal/Active/mealDetail';
let params = {
token:wx.getStorageSync('token'),
... ... @@ -235,7 +235,7 @@ Page({
"token": wx.getStorageSync('token')
};
app.post(url, params, {}).then((res) => {
console.log('获取详情', res);
// console.log('获取详情', res);
if (+res.code === 1) {
self.setData({
detail: res.data.active,
... ... @@ -259,10 +259,10 @@ Page({
// (0全部,2待拼成,3人数不足未拼成,4已拼成,5已取消,6已完成,7已评价,8已拼成(活动未结束),9删除
const status = res.data.active.status;
if(status === 2 || status === 6 || status === 7 || status === 8) {
console.log('调用倒计时');
// console.log('调用倒计时');
self.countDown();
}else {
console.log('不调用倒计时');
// console.log('不调用倒计时');
let countDownArr = [];
let obj = null;
obj = {
... ... @@ -297,7 +297,7 @@ Page({
"token": wx.getStorageSync('token')
};
app.post(url, params, {}).then((res) => {
console.log('确认拼餐', res);
// console.log('确认拼餐', res);
if (+res.code === 1) {
// wx.showToast({title:'拼餐成功',icon:'success'});
self.setData({is_showRelease_modal:true,order_id:+res.data.orderId,is_join:true});
... ... @@ -366,7 +366,7 @@ Page({
"token": wx.getStorageSync('token')
};
app.post(url, params, {}).then((res) => {
console.log('倒计时结束', res);
// console.log('倒计时结束', res);
if (+res.code === 1) {
// wx.showToast({title:'拼活动结束',icon:'success'})
}
... ... @@ -376,7 +376,7 @@ Page({
getNavigate() {
const self = this;
const arr = self.data.detail.latng.split(',');
console.log('arr',arr,arr[0],arr[1]);
// console.log('arr',arr,arr[0],arr[1]);
wx.openLocation({//​使用微信内置地图查看位置。
latitude: +arr[0],//要去的纬度-地址
... ... @@ -391,7 +391,7 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
console.log('详情options', options);
// console.log('详情options', options);
this.setData({detail_id:+options.id?+options.id:''});
},
//获取活动二维码
... ... @@ -404,7 +404,7 @@ Page({
type:2,//1拼活动,2拼餐
};
app.post(url, params, {}).then((res) => {
console.log('获取活动二维码', res);
// console.log('获取活动二维码', res);
if (+res.code === 1) {
self.setData({qr_code:res.data},() => {
// console.log('二维码',self.data.qr_code);
... ... @@ -513,7 +513,7 @@ Page({
ctx.clip()
},
drawCard() {
console.log('开始画');
// console.log('开始画');
const self = this;
//先创建一个画布
const ctx = wx.createCanvasContext("canvas");
... ... @@ -527,18 +527,18 @@ Page({
//填充背景色
ctx.fillStyle = '#fff';
ctx.fillRect(0, 0, 280, 400);
console.log(self.data.local_img);
console.log(self.data.qr_code);
// console.log(self.data.local_img);
// console.log(self.data.qr_code);
//将图片转化为画布
ctx.drawImage(self.data.local_img, 0, 0, 280, 280);//详情图
console.log(111);
// console.log(111);
// ctx.drawImage(self.data.local_qr_code, 220, 209, 60, 60);//二维码
ctx.drawImage('../../../images/qr_code.jpg', 180, 320, 60, 60);//小程序码
//标题
ctx.setFontSize(12);
ctx.setFillStyle('#000');
ctx.textAlign = "left";
console.log(111);
// console.log(111);
ctx.fillText(self.data.detail.title, 16, 306.5);
ctx.fillText(self.data.detail.title, 15.5, 307);
ctx.restore();
... ... @@ -599,7 +599,7 @@ Page({
// wx.hideLoading();
console.log("draw callback success");
self.setData({can_save: true,show_canvas: true});
console.log(self.data.can_save);
// console.log(self.data.can_save);
})
},
//获取保存到相册的权限
... ... @@ -666,7 +666,7 @@ Page({
},
savePic() {
console.log('是否能保存',this.data.can_save);
// console.log('是否能保存',this.data.can_save);
if(this.data.can_save) {
wx.canvasToTempFilePath({
x: 0,
... ... @@ -679,7 +679,7 @@ Page({
fileType: 'jpg',
quality:1,
success: function (res) {
console.log("get tempfilepath(success) is:", res.tempFilePath);
// console.log("get tempfilepath(success) is:", res.tempFilePath);
//将图片保存在系统相册中(应先获取权限,)
wx.saveImageToPhotosAlbum({
filePath: res.tempFilePath,
... ... @@ -703,7 +703,7 @@ Page({
},
onShareAppMessage: function(res) {
console.log('转发res',res);
// console.log('转发res',res);
let self = this;
self.setData({show_canvas:false,});
if(res.from === 'button') {
... ...
... ... @@ -91,7 +91,7 @@ Page({
let url = '/portal/Send/select';
const list = [];
app.post(url, {}, {}).then((res) => {
console.log('获取分类', res);
// console.log('获取分类', res);
res.data.meals.forEach((item) => {
list.push(item.name)
});
... ...
... ... @@ -37,7 +37,7 @@ Page({
success: function(res) {
// 返回选定照片的本地文件路径列表,tempFilePath可以作为img标签的src属性显示图片
let tempFilePaths = res.tempFilePaths;
console.log(tempFilePaths)
// console.log(tempFilePaths)
//启动上传等待中...
wx.showToast({
title: '正在上传...',
... ... @@ -47,7 +47,7 @@ Page({
})
let token = wx.getStorageSync('token');
let uploadImgCount = 0;
console.log(tempFilePaths.length)
// console.log(tempFilePaths.length)
for (let i = 0, h = tempFilePaths.length; i < h; i++) {
wx.uploadFile({
url: 'http://wmatchrd.com/portal/Index/upload',
... ... @@ -119,7 +119,7 @@ Page({
"token": wx.getStorageSync('token')
};
app.post(url, params, {}).then((res) => {
console.log('上传', res);
// console.log('上传', res);
if (+res.code === 1) {
// self.setData({
// is_write: res.data.is_write,//1:已填写2:未填写
... ... @@ -140,7 +140,7 @@ Page({
"token": wx.getStorageSync('token')
};
app.post(url, params, {}).then((res) => {
console.log('是否填写个人信息', res);
// console.log('是否填写个人信息', res);
if (+res.code === 1) {
self.setData({
is_write:res.data.is_write,//1:已填写2:未填写
... ... @@ -179,19 +179,19 @@ Page({
},
//获取授权
login(e) {
console.log('e', e);
// console.log('e', e);
const self = this;
let url = '/portal/Login/getToken';
wx.login({
success: function (res) {
console.log('获取code', res);
// console.log('获取code', res);
app.post(url, {
code: res.code,
user_nickname: e.detail.userInfo.nickName,
avatar: e.detail.userInfo.avatarUrl,
sex: e.detail.userInfo.gender,
}, {}).then((ret) => {
console.log('获取token', ret);
// console.log('获取token', ret);
wx.setStorageSync('token', ret.data.token);
wx.setStorageSync('isLogin',true);
wx.showToast({title:'登录成功',icon:'success'});
... ... @@ -243,7 +243,6 @@ Page({
},
disableScroll() {},
handleBackground() {
console.log('dianji');
this.setData({is_showAnswer: false, is_showUserInfo: false,is_showRelease:false,is_showResult:false})
},
//首页-导航
... ... @@ -284,7 +283,7 @@ Page({
},
//发布按钮
release(e) {
console.log('发布');
// console.log('发布');
const self = this;
if(!app.globalData.isLogin) {
wx.showToast({title: '还没登录,先去登录吧~', icon: 'none',
... ... @@ -370,12 +369,12 @@ Page({
"XX-token": wx.getStorageSync('token')
};
app.post(url, params, {}).then((res) => {
console.log('获取首页', res);
// console.log('获取首页', res);
this.setData({
user:res.data.member
});
wx.setStorageSync('is_vip',+this.data.user.type);//1:不是2:是vip
console.log('score',wx.getStorageSync('score'));
// console.log('score',wx.getStorageSync('score'));
if(wx.getStorageSync('score') !== '' && wx.getStorageSync('score')>=80) {
self.setData({show_gold_modal:true})
}else if(wx.getStorageSync('score') !== '' && wx.getStorageSync('score')<80) {
... ...
... ... @@ -35,7 +35,7 @@ Page({
pic:images_params,
};
app.post(url, params, {}).then((res) => {
console.log('投诉', res);
// console.log('投诉', res);
if (+res.code === 1) {
wx.showToast({title:'投诉成功',icon:'none',
success:function () {
... ... @@ -86,7 +86,7 @@ Page({
success: function(res) {
uploadImgCount++;
let data = JSON.parse(res.data);
console.log('data',data);
// console.log('data',data);
if (+data.code == 1) {
//服务器返回格式: { "Catalog": "testFolder", "FileName": "1.jpg", "Url": "https://test.com/1.jpg" }
let images = that.data.images;
... ... @@ -97,7 +97,7 @@ Page({
images: images,
images_params:images_params,
});
console.log('images---images_params',images,images_params);
// console.log('images---images_params',images,images_params);
//如果是最后一张,则隐藏等待中
// if (uploadImgCount == tempFilePaths.length) {
// wx.hideToast();
... ... @@ -154,7 +154,7 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
console.log('options', options,JSON.parse(options.order_detail));
// console.log('options', options,JSON.parse(options.order_detail));
this.setData({order_id:+options.id?+options.id:'',
order_detail:JSON.parse(options.order_detail),
})
... ...
... ... @@ -9,7 +9,7 @@ Page({
data: {},
//去投诉
goComplain() {
console.log('tousu');
// console.log('tousu');
const order_detail = JSON.stringify(this.data.detail);
wx.navigateTo({url: '/pages/order/complain/complain?id=' + this.data.order_id
+ '&order_detail=' + order_detail
... ... @@ -19,7 +19,7 @@ Page({
goDetail() {
const id = +this.data.detail.activeId;
const type = +this.data.detail.type;
console.log('type-id', type,id);
// console.log('type-id', type,id);
if(type === 1) { //1是活动,2是拼餐
wx.navigateTo({
url: '/pages/activity/detail/detail?id=' + id,
... ... @@ -39,7 +39,7 @@ Page({
orderId: self.data.order_id,
};
app.post(url, params, {}).then((res) => {
console.log('订单详情', res);
// console.log('订单详情', res);
if (+res.code === 1) {
self.setData({
detail: res.data.list,
... ... @@ -89,7 +89,7 @@ Page({
orderId: self.data.order_id,
};
app.post(url, params, {}).then((res) => {
console.log('完成订单', res);
// console.log('完成订单', res);
if (+res.code === 1) {
wx.showToast({title:'订单已完成',icon:'none'});
self.getOrderDetail();
... ... @@ -106,7 +106,7 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
console.log('options', options);
// console.log('options', options);
this.setData({order_id:+options.id?+options.id:''})
},
... ...
... ... @@ -346,7 +346,7 @@ Page({
// cate: res.data.cate,
});
}
console.log('score',wx.getStorageSync('score'));
// console.log('score',wx.getStorageSync('score'));
if(wx.getStorageSync('score') !== '' && wx.getStorageSync('score')>=80) {
self.setData({show_gold_modal:true})
}else if(wx.getStorageSync('score') !== '' && wx.getStorageSync('score')<80) {
... ...