zoukankan      html  css  js  c++  java
  • 修改头像

    //修改头像
    // getImage() {
    // var that = this
    // wx.chooseImage({
    // count: 1,
    // sizeType: ['original', 'compressed'],
    // sourceType: ['album', 'camera'],
    // success(res) {
    // // tempFilePath可以作为img标签的src属性显示图片
    // wx.showLoading({
    // title: '上传中',
    // })
    // console.log('获取需上传头像', res)
    // const tempFilePaths = res.tempFilePaths
    // that.setData({
    // usertv: tempFilePaths
    // })
    // // wx.uploadFile({
    // // url: baseUrl + 'uploads_images',
    // // filePath: tempFilePaths[0],
    // // name: 'file',
    // // success: function (res) {
    // // console.log('上传头像返回===', res)
    // // that.setData({
    // // user_image: res.data
    // // })
    // // wx.hideLoading()
    // // console.log('头像', that.data.user_image)
    // // },
    // // })
    // }
    // })
    // },
  • 相关阅读:
    table布局与div布局
    HTML一般标签
    jquery
    PDO对象
    分页例题
    投票练习
    封装 链接数据库类
    访问数据方法
    面相对象多态
    面向对象
  • 原文地址:https://www.cnblogs.com/Annely/p/11169581.html
Copyright © 2011-2022 走看看