Commit 408f72ab by 陈玉桐

test

parent 1953a9be
...@@ -468,25 +468,25 @@ export default { ...@@ -468,25 +468,25 @@ export default {
var u = navigator.userAgent, app = navigator.appVersion; var u = navigator.userAgent, app = navigator.appVersion;
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端 var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
// if (isiOS) { // if (isiOS) {
// me.uploadPic = res.localIds[0] // 返回选定照片的本地ID列表,localId可以作为img标签的src属性显示图片 me.uploadPic = res.localIds[0] // 返回选定照片的本地ID列表,localId可以作为img标签的src属性显示图片
// }else{ // }else{
wx.getLocalImgData({ // wx.getLocalImgData({
localId: res.localIds[0], // 图片的localID // localId: res.localIds[0], // 图片的localID
success: function (res) { // success: function (res) {
console.log(res.localData) // console.log(res.localData)
if (res.localData.substr(0, 5) != 'data:') { // if (res.localData.substr(0, 5) != 'data:') {
// me.uploadPic = 'data:image;base64,' + res.localData // // me.uploadPic = 'data:image;base64,' + res.localData
me.option.img = 'data:image;base64,' + res.localData // me.option.img = 'data:image;base64,' + res.localData
me.cropperShow = true // me.cropperShow = true
}else{ // }else{
// me.uploadPic = res.localData // localData是图片的base64数据,可以用img标签显示 // // me.uploadPic = res.localData // localData是图片的base64数据,可以用img标签显示
me.option.img = res.localData // me.option.img = res.localData
me.cropperShow = true // me.cropperShow = true
} // }
} // }
}) // })
// } // }
} }
}) })
...@@ -572,7 +572,7 @@ export default { ...@@ -572,7 +572,7 @@ export default {
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
span{ span{
color: green; color: #fff;
font-weight: 500; font-weight: 500;
padding: 15px 20px; padding: 15px 20px;
} }
......
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