sui 5 лет назад
Родитель
Сommit
699aa57722
2 измененных файлов: 34 добавлений и 10 удалений
  1. +31
    -1
      496_dongfengqichen/pages/poster/poster.js
  2. +3
    -9
      496_dongfengqichen/pages/star/star.js

+ 31
- 1
496_dongfengqichen/pages/poster/poster.js Просмотреть файл

wx.showToast({ wx.showToast({
title: '保存成功' title: '保存成功'
}) })
}
},
fail:res=>{
// wx.getSetting({
// })
// wx.showModal({
// title: '设置',
// content: '请授权“保存到相册”',
// success:()=>{
// wx.openSetting({
// success(e){
// if (e.scope.writePhotosAlbum){
// wx.saveImageToPhotosAlbum({
// filePath: this.data.posterUrl[this.data.swiperCurrent],
// success(res) {
// wx.showToast({
// title: '保存成功'
// })
// }
// })
// }else{
// wx.showToast({
// title: '授权失败',
// icon:"none"
// })
// }
// }
// })
// }
// })
}
}) })
}, },
posterDrawing: function (e) {//海报绘制 posterDrawing: function (e) {//海报绘制

+ 3
- 9
496_dongfengqichen/pages/star/star.js Просмотреть файл

phonebolb:function(_phone){ phonebolb:function(_phone){
app.wxRequest(app.globalData.urlRoot + "userInfo/getCertificationInfo", {}, res => { app.wxRequest(app.globalData.urlRoot + "userInfo/getCertificationInfo", {}, res => {
if (res.code == 200) { if (res.code == 200) {
// if(res.data!=null){
app.globalData.certificationState = res.data.certificationState; app.globalData.certificationState = res.data.certificationState;
wx.navigateTo({ wx.navigateTo({
url: '../scout/scout'
url: '/pages/scout/scout'
}) })
// }else{
// wx.navigateTo({
// url: '../scout/register/register'
// })
// }
} else if (res.code == -307){ } else if (res.code == -307){
wx.navigateTo({ wx.navigateTo({
url: '../mobileVerification/mobileVerification'
url: '/pages/mobileVerification/mobileVerification'
}) })
} else if (res.code == -308) { } else if (res.code == -308) {
wx.navigateTo({ wx.navigateTo({
url: '../scout/register/register'
url: '/pages/scout/register/register'
}) })
}else{ }else{
this.setData({isbtn: true}) this.setData({isbtn: true})

Загрузка…
Отмена
Сохранить