国庆头像制作小程序相关代码

news2024/9/28 17:09:02

↓↓ 点击下方搜索开始制作您的专属头像 ↓↓

发现-》搜一搜-》最美易飞证件照制作

4c4b4580ffc7483cabe23b7d72835a8f.png

 

 

5c2590c163d5f0ad045d5ac3a0d7d1b2.png

国庆头像自定义头像制作、微信头像直接获取制作小程序源码

index.wxml文件代码

// pages/userPhoto/userPhoto.js//获取应用实例const app = getApp()import {  Router} from '../../utils/router.js'import constant from './constant.js'import config from '../../config/index';import RewardedAds from '../../utils/rewarded-ads';
const instanceRewardedAds = new RewardedAds(config.rewardAdsSaveHead);Router({  /**   * 页面的初始数据   */  data: {        isiPhoneX: false,    userImage: 'https://qiniu.bigerfe.com/default_avator.jpeg',    new_userImage: '',    new_showuserImage: false,    isLead: false,    userInfo: {},    hasUserInfo: true,    canIUse: wx.canIUse('button.open-type.getUserInfo'),    photo_bj_num: constant.Head_TIP_PIC,    photo_select_idx: 0,    indexAdCode: config.indexAdCode,    indexPageAdCode: config.indexPageAdCode  },
  // 插屏广告  initAdShow() {    // 在页面中定义插屏广告    let interstitialAd = null
    // 在页面onLoad回调事件中创建插屏广告实例    if (wx.createInterstitialAd) {      interstitialAd = wx.createInterstitialAd({        adUnitId: this.data.indexPageAdCode      })      interstitialAd.onLoad(() => { })      interstitialAd.onError((err) => { })      interstitialAd.onClose(() => { })    }
    // 在适合的场景显示插屏广告    if (interstitialAd) {      interstitialAd.show().catch((err) => {        console.error(err)      })    }  },
  /**   * 生命周期函数--监听页面加载   */  onLoad: function () {    const initAvator = getApp().globalData?.initAvator;    if (initAvator) {      this.setData({        userImage: getApp().globalData?.initAvator,      });    }    this.initAdShow();    //初始化激励性广告    instanceRewardedAds.adInit();  },  onChooseAvatar(e) {    const {      avatarUrl    } = e.detail;    console.log(avatarUrl)    this.setUserCusPhoto(avatarUrl);  },  /**   * 用户点击获取图片   */  tapWxAvator: function () {    this.getUSerWechatInfo_Photo();  },
  tapOpenPhoto() {    this.getUSerMobile_Photo();  },
  /**   * 下载用户微信头像   */  setUserWeCahtPhoto: function (url) {    let that = this    console.log('url', url);    getApp().globalData.initAvator = url;    wx.downloadFile({      url: that.headimgHD(url),      success: function (res) {        if (res.statusCode === 200) {          that.drawImg(res.tempFilePath, that.data.photo_select_idx);        }      }    })  },
  /**   * 下载截图页面返回的图片   */  setUserCusPhoto: function (url) {    getApp().globalData.initAvator = url;    this.drawImg(url, this.data.photo_select_idx);  },
  //从自定义图片页面返回调用的方法,需要增加延迟,否则会出现神器的问题  setFromCusPhotoBack: function (url) {    wx.showLoading({      title: '处理中...',    })    setTimeout(() => {      this.setUserCusPhoto(url);    }, 1500);  },
  /**   * 获取用户微信头像   */  getUSerWechatInfo_Photo: function () {    let that = this    wx.getUserProfile({      desc: '不需要再次上传',      success: res => {        app.globalData.userInfo = res.userInfo        that.setData({          userInfo: res.userInfo,          hasUserInfo: true        })        that.setUserWeCahtPhoto(app.globalData.userInfo.avatarUrl);      },      fail: error => {        console.log('fail', error);      },      complete: data => {        console.log('complete', data);      }    })    //}  },
  /**   * 打开用户相册   */  getUSerMobile_Photo: function () {    let that = this    // let index = e.currentTarget.dataset.index    wx.chooseImage({      count: 1,      sizeType: ['original', 'compressed'],      sourceType: ['album'],      success(res) {        // tempFilePath可以作为img标签的src属性显示图片        let tempFilePaths = res.tempFilePaths[0];        wx.showLoading({          title: '安全检测中...',        });        wx.uploadFile({          url: getApp().globalData.appurl+'sec/checkimg',          formData: {              appid: "wx738e184b4b0280d6"          },          filePath: tempFilePaths,          name: "file",           header: {              "content-type": "multipart/form-data"          },          success: function (res) {            wx.hideLoading()              if (res.data == "true") {                  wx.showModal({                      title: '提示',                      content: "请勿上传违规违法图片",                      success: () => {}                  })              }              const data = JSON.parse(res.data)              console.log(tempFilePaths)              if (data.code == 200 && data.resultStatus == false) {                  wx.showToast({                      title: "图片检测完成",                      icon: "none",                      duration: 1500                  });
                  wx.navigateTo({                    url: `/pages/avatarUpload/upload/upload?src=${tempFilePaths}`                  });
                //   t.setData({                //     bncolor:"#fff",                //     imageSrc: tempFilePaths                 // }), t.loadImage();              } else {                  wx.showModal({                      title: '提示',                      content: data.data,                      success: () => {
                      }                  })              }          },          fail: function (err) {              wx.showToast({                  title: "上传失败",                  icon: "none",                  duration: 2000              })          },          complete: function (result) {              console.log(result.errMsg)          }      })              },      fail: function (res) {        console.log(res.errMsg)      }    });  },  /**   * 重置画布   */  editClick: function () {    this.setData({      hasUserInfo: false,      userImage: '',      new_userImage: '',      new_showuserImage: false    })  },
  /**   * 获取高清微信头像   */  headimgHD: function (imageUrl) {    imageUrl = imageUrl.split('/');    if (imageUrl[imageUrl.length - 1] &&      (imageUrl[imageUrl.length - 1] == 46 || imageUrl[imageUrl.length - 1] == 64 || imageUrl[imageUrl.length - 1] == 96 || imageUrl[imageUrl.length - 1] == 132)) {      imageUrl[imageUrl.length - 1] = 0;    }    imageUrl = imageUrl.join('/');    return imageUrl;  },  saveloadFile: function () {    let thisT = this;    console.log("1,老铁没毛病" + thisT.data.isLead);    if (!thisT.data.new_userImage) {      wx.showModal({        content: '没有图片可保存~',        showCancel: false,        confirmText: '明白了',      })      return    } else {      if (!thisT.data.isLead) {        wx.showModal({          content: '即将展示广告,看完广告即可下载',          showCancel: true,          confirmText: '确认',          success(res) {            if (res.confirm) {              console.log("222点击确定,老铁没毛病");              //展示激励性广告              if (!instanceRewardedAds.isEnded) {                console.log("333点击确定,老铁没毛病");                instanceRewardedAds.showAd();                thisT.data.isLead = true;                console.log("2,老铁没毛病" + thisT.data.isLead);                return;              }            }          }        })      } else {        wx.showLoading({          title: '保存中...'        })        let that = this        wx.saveImageToPhotosAlbum({          filePath: that.data.new_userImage,          success(res) {            wx.hideLoading();            wx.showModal({              content: '图片已保存到相册了~',              showCancel: false,              confirmText: '保存成功',              success(res) {                if (res.confirm) {                  console.log("点击确定,老铁没毛病");                 // instanceRewardedAds.resetAd(); //下次还需要继续看广告                  // thisT.data.isLead=false;                }              }            })          },          fail() {            wx.hideLoading();            instanceRewardedAds.resetAd(); //下次还需要继续看广告            thisT.data.isLead=false;          }        })      }    }  },  bigimg: function (e) {    if (this.data.userImage) {      this.setData({        photo_select_idx: e.currentTarget.dataset.item      });      this.drawImg(this.data.userImage, this.data.photo_select_idx);    }  },  //绘图  drawImg(headImg, index) {    let that = this    wx.showLoading({      title: '头像生成中...',    })
    let promiseHead = new Promise((resolve, reject) => {      wx.getImageInfo({        src: headImg,        success(res) {          resolve(res)        },        fail(e) {          reject("调用失败head");          wx.hideLoading()        }      })    })    Promise.all([promiseHead]).then(promiseRes => {      let num = 1024      let width_userIcon = num      let x_userIcon = (num - (num)) / 2      let frameImgUrl = that.data.photo_bj_num[index];      const query = wx.createSelectorQuery()      query.select('#genimg')        .fields({          node: true,          size: true        })        .exec((res) => {          const canvas = res[0].node          const ctx = canvas.getContext('2d');          // 初始化画布大小          const dpr = wx.getWindowInfo().pixelRatio;          canvas.width = 1024 * dpr          canvas.height = 1024 * dpr          ctx.scale(dpr, dpr)          const bg1 = canvas.createImage();          const bg2 = canvas.createImage();          bg1.src = promiseRes[0].path;          bg1.onload = () => {            ctx.drawImage(bg1, x_userIcon, x_userIcon, width_userIcon, width_userIcon);            bg2.onload = () => {              ctx.drawImage(bg2, 0, 0, num, num);            }            bg2.src = frameImgUrl;          }          setTimeout(() => {            // 第一个参数为false,表示先清空画布再绘制            wx.canvasToTempFilePath({              x: 0,              y: 0,              width: num,              height: num,              destWidth: num,              destHeight: num,              canvas,              quality: 1,              success(res) {                that.setData({                  new_userImage: res.tempFilePath,                  new_showuserImage: true,                  userImage: headImg                })                wx.hideLoading()              },              fail(res) {                console.log("绘图错误:" + JSON.stringify(res));                wx.hideLoading();              }            }, that);          }, 1000);        })    }).catch(e => console.log(e));  }})

index.wxss文件代码

/* pages/userPhoto/userPhoto.wxss */
.isIPx{  padding-bottom: 64rpx !important;}.background{  width: 100%;  min-height: 1000px;  position:absolute;   background-size:100% 100%;  z-index: -1;}.logo{  display: flex;  justify-content: center;  align-items: center;}.hearder{  text-align: center;  overflow-wrap: break-word;  display: flex;  flex-direction: row;  justify-content: center;  align-items: center;}.hearder_logo{  margin-top: 5rpx;  height: 250rpx;}.hearder_title{  display: block;  margin-left: 40rpx;  margin-right: 40rpx;  color: white;}.hearder-mainView{  background-color: white;  display: flex;  align-items: center;  justify-content: center;    height: 320rpx;  width: 320rpx;  border-radius: 5px;}.add-photo{  width: 140rpx;  height: 140rpx;}.user-photo{  width: 100%;  height: 100%;}.user-photo-wechat{  width: 300rpx;  height: 300rpx;}.hearder-button{  display: flex;  align-items: flex-start;  flex-direction: column;}.hearder-button button{  margin: 20rpx;  width: 320rpx;  height: 70rpx; line-height: 70rpx;  background-color: rgb(224, 224, 28);  color: #000;}/* 将画布隐藏起来 */canvas {  position: fixed;  top: 0;  left: 1024px;}
.bjphoto_view{  margin: 20rpx;  padding: 10rpx;  background-color: white;}
.photo_bj{  width: 100%;  height:100%;   white-space: nowrap; }.photo_bj_img{  margin-left: 10rpx;  width: 120rpx;  height: 120rpx;  border: solid 1rpx #f0f0f0;  border-radius: 15rpx;}.photo_bj_br{  border: solid 4rpx red;}.avatar-wrapper{  width: 200rpx;}
/* userPhoto.wxss */.notice-wrap {  position: fixed;  bottom: 0;  left: 0;  width: 100%;  background-color: #00000080; /* 半透明背景 */  color: #fff; /* 白色文字 */  padding: 10rpx 0;  z-index: 999; /* 确保在最上层 */}
.notice-scroll {  height: 60rpx; /* 滚动区域的高度 */  overflow-y: auto; /* 允许垂直滚动 */}
.notice-text {  margin: 0 auto;  text-align: center;}
.notice-text-content {  font-size: 12px; /* 更小的字体 */  color: #00ff00; /* 绿色文字 */  padding: 10rpx;}

index.js代码如下

// pages/userPhoto/userPhoto.js//获取应用实例const app = getApp()import {  Router} from '../../utils/router.js'import constant from './constant.js'import config from '../../config/index';import RewardedAds from '../../utils/rewarded-ads';
const instanceRewardedAds = new RewardedAds(config.rewardAdsSaveHead);Router({  /**   * 页面的初始数据   */  data: {        isiPhoneX: false,    userImage: 'https://qiniu.bigerfe.com/default_avator.jpeg',    new_userImage: '',    new_showuserImage: false,    isLead: false,    userInfo: {},    hasUserInfo: true,    canIUse: wx.canIUse('button.open-type.getUserInfo'),    photo_bj_num: constant.Head_TIP_PIC,    photo_select_idx: 0,    indexAdCode: config.indexAdCode,    indexPageAdCode: config.indexPageAdCode  },
  // 插屏广告  initAdShow() {    // 在页面中定义插屏广告    let interstitialAd = null
    // 在页面onLoad回调事件中创建插屏广告实例    if (wx.createInterstitialAd) {      interstitialAd = wx.createInterstitialAd({        adUnitId: this.data.indexPageAdCode      })      interstitialAd.onLoad(() => { })      interstitialAd.onError((err) => { })      interstitialAd.onClose(() => { })    }
    // 在适合的场景显示插屏广告    if (interstitialAd) {      interstitialAd.show().catch((err) => {        console.error(err)      })    }  },
  /**   * 生命周期函数--监听页面加载   */  onLoad: function () {    const initAvator = getApp().globalData?.initAvator;    if (initAvator) {      this.setData({        userImage: getApp().globalData?.initAvator,      });    }    this.initAdShow();    //初始化激励性广告    instanceRewardedAds.adInit();  },  onChooseAvatar(e) {    const {      avatarUrl    } = e.detail;    console.log(avatarUrl)    this.setUserCusPhoto(avatarUrl);  },  /**   * 用户点击获取图片   */  tapWxAvator: function () {    this.getUSerWechatInfo_Photo();  },
  tapOpenPhoto() {    this.getUSerMobile_Photo();  },
  /**   * 下载用户微信头像   */  setUserWeCahtPhoto: function (url) {    let that = this    console.log('url', url);    getApp().globalData.initAvator = url;    wx.downloadFile({      url: that.headimgHD(url),      success: function (res) {        if (res.statusCode === 200) {          that.drawImg(res.tempFilePath, that.data.photo_select_idx);        }      }    })  },
  /**   * 下载截图页面返回的图片   */  setUserCusPhoto: function (url) {    getApp().globalData.initAvator = url;    this.drawImg(url, this.data.photo_select_idx);  },
  //从自定义图片页面返回调用的方法,需要增加延迟,否则会出现神器的问题  setFromCusPhotoBack: function (url) {    wx.showLoading({      title: '处理中...',    })    setTimeout(() => {      this.setUserCusPhoto(url);    }, 1500);  },
  /**   * 获取用户微信头像   */  getUSerWechatInfo_Photo: function () {    let that = this    wx.getUserProfile({      desc: '不需要再次上传',      success: res => {        app.globalData.userInfo = res.userInfo        that.setData({          userInfo: res.userInfo,          hasUserInfo: true        })        that.setUserWeCahtPhoto(app.globalData.userInfo.avatarUrl);      },      fail: error => {        console.log('fail', error);      },      complete: data => {        console.log('complete', data);      }    })    //}  },
  /**   * 打开用户相册   */  getUSerMobile_Photo: function () {    let that = this    // let index = e.currentTarget.dataset.index    wx.chooseImage({      count: 1,      sizeType: ['original', 'compressed'],      sourceType: ['album'],      success(res) {        // tempFilePath可以作为img标签的src属性显示图片        let tempFilePaths = res.tempFilePaths[0];        wx.showLoading({          title: '安全检测中...',        });        wx.uploadFile({          url: getApp().globalData.appurl+'sec/checkimg',          formData: {              appid: "wx738e184b4b0280d6"          },          filePath: tempFilePaths,          name: "file",           header: {              "content-type": "multipart/form-data"          },          success: function (res) {            wx.hideLoading()              if (res.data == "true") {                  wx.showModal({                      title: '提示',                      content: "请勿上传违规违法图片",                      success: () => {}                  })              }              const data = JSON.parse(res.data)              console.log(tempFilePaths)              if (data.code == 200 && data.resultStatus == false) {                  wx.showToast({                      title: "图片检测完成",                      icon: "none",                      duration: 1500                  });
                  wx.navigateTo({                    url: `/pages/avatarUpload/upload/upload?src=${tempFilePaths}`                  });
                //   t.setData({                //     bncolor:"#fff",                //     imageSrc: tempFilePaths                 // }), t.loadImage();              } else {                  wx.showModal({                      title: '提示',                      content: data.data,                      success: () => {
                      }                  })              }          },          fail: function (err) {              wx.showToast({                  title: "上传失败",                  icon: "none",                  duration: 2000              })          },          complete: function (result) {              console.log(result.errMsg)          }      })              },      fail: function (res) {        console.log(res.errMsg)      }    });  },  /**   * 重置画布   */  editClick: function () {    this.setData({      hasUserInfo: false,      userImage: '',      new_userImage: '',      new_showuserImage: false    })  },
  /**   * 获取高清微信头像   */  headimgHD: function (imageUrl) {    imageUrl = imageUrl.split('/');    if (imageUrl[imageUrl.length - 1] &&      (imageUrl[imageUrl.length - 1] == 46 || imageUrl[imageUrl.length - 1] == 64 || imageUrl[imageUrl.length - 1] == 96 || imageUrl[imageUrl.length - 1] == 132)) {      imageUrl[imageUrl.length - 1] = 0;    }    imageUrl = imageUrl.join('/');    return imageUrl;  },  saveloadFile: function () {    let thisT = this;    console.log("1,老铁没毛病" + thisT.data.isLead);    if (!thisT.data.new_userImage) {      wx.showModal({        content: '没有图片可保存~',        showCancel: false,        confirmText: '明白了',      })      return    } else {      if (!thisT.data.isLead) {        wx.showModal({          content: '即将展示广告,看完广告即可下载',          showCancel: true,          confirmText: '确认',          success(res) {            if (res.confirm) {              console.log("222点击确定,老铁没毛病");              //展示激励性广告              if (!instanceRewardedAds.isEnded) {                console.log("333点击确定,老铁没毛病");                instanceRewardedAds.showAd();                thisT.data.isLead = true;                console.log("2,老铁没毛病" + thisT.data.isLead);                return;              }            }          }        })      } else {        wx.showLoading({          title: '保存中...'        })        let that = this        wx.saveImageToPhotosAlbum({          filePath: that.data.new_userImage,          success(res) {            wx.hideLoading();            wx.showModal({              content: '图片已保存到相册了~',              showCancel: false,              confirmText: '保存成功',              success(res) {                if (res.confirm) {                  console.log("点击确定,老铁没毛病");                 // instanceRewardedAds.resetAd(); //下次还需要继续看广告                  // thisT.data.isLead=false;                }              }            })          },          fail() {            wx.hideLoading();            instanceRewardedAds.resetAd(); //下次还需要继续看广告            thisT.data.isLead=false;          }        })      }    }  },  bigimg: function (e) {    if (this.data.userImage) {      this.setData({        photo_select_idx: e.currentTarget.dataset.item      });      this.drawImg(this.data.userImage, this.data.photo_select_idx);    }  },  //绘图  drawImg(headImg, index) {    let that = this    wx.showLoading({      title: '头像生成中...',    })
    let promiseHead = new Promise((resolve, reject) => {      wx.getImageInfo({        src: headImg,        success(res) {          resolve(res)        },        fail(e) {          reject("调用失败head");          wx.hideLoading()        }      })    })    Promise.all([promiseHead]).then(promiseRes => {      let num = 1024      let width_userIcon = num      let x_userIcon = (num - (num)) / 2      let frameImgUrl = that.data.photo_bj_num[index];      const query = wx.createSelectorQuery()      query.select('#genimg')        .fields({          node: true,          size: true        })        .exec((res) => {          const canvas = res[0].node          const ctx = canvas.getContext('2d');          // 初始化画布大小          const dpr = wx.getWindowInfo().pixelRatio;          canvas.width = 1024 * dpr          canvas.height = 1024 * dpr          ctx.scale(dpr, dpr)          const bg1 = canvas.createImage();          const bg2 = canvas.createImage();          bg1.src = promiseRes[0].path;          bg1.onload = () => {            ctx.drawImage(bg1, x_userIcon, x_userIcon, width_userIcon, width_userIcon);            bg2.onload = () => {              ctx.drawImage(bg2, 0, 0, num, num);            }            bg2.src = frameImgUrl;          }          setTimeout(() => {            // 第一个参数为false,表示先清空画布再绘制            wx.canvasToTempFilePath({              x: 0,              y: 0,              width: num,              height: num,              destWidth: num,              destHeight: num,              canvas,              quality: 1,              success(res) {                that.setData({                  new_userImage: res.tempFilePath,                  new_showuserImage: true,                  userImage: headImg                })                wx.hideLoading()              },              fail(res) {                console.log("绘图错误:" + JSON.stringify(res));                wx.hideLoading();              }            }, that);          }, 1000);        })    }).catch(e => console.log(e));  }})

index.json文件

{  "navigationBarTitleText": "点击更多制作证件照",  "usingComponents": {}}

国庆头像制作小程序相关代码大致如上,如有需要可以自行自作。小编是自己加了鉴黄设置哦。提前祝大家国庆快乐呀。预览:

dd4ce6abc7ba4f7ba62197833637585c.jpeg

 

 

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/2174174.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

Transformer 算法模型详解

核心点:完整讲解Transformer模型! 让我们用简单的语言来解释:想象一下,你正在阅读一本书,书中的每个字都很重要。但如果你每次只能关注一个字,理解整本书就会变得很慢。而Transformer模型就像是赋予你超能…

机器学习-SVM

线性感知机分类 支持向量机 线性感知机(Perceptron) 感知机是线性二值分类器。 注意:什么是线性?线性分割面就是,就是在分割面中,任意两个的连线也在分割面中,这个分割面,就是线…

【鸿蒙】HarmonyOS NEXT应用开发快速入门教程之布局篇(上)

系列文章目录 【鸿蒙】HarmonyOS NEXT开发快速入门教程之ArkTS语法装饰器(上) 【鸿蒙】HarmonyOS NEXT开发快速入门教程之ArkTS语法装饰器(下) 【鸿蒙】HarmonyOS NEXT应用开发快速入门教程之布局篇(上) 文…

在系统开发中提升 Excel 数据导出一致性与可维护性的统一规范与最佳实践

背景: 在系统开发过程中,数据导出为 Excel 格式是一个常见的需求。然而,由于各个开发人员的编码习惯和实现方式不同,导致导出代码风格不一。有的人使用第三方库,有的人则自定义实现。这种多样化不仅影响了代码的一致性…

Electron 安装以及搭建一个工程

安装Node.js 在使用Electron进行开发之前,需要安装 Node.js。 官方建议使用最新的LTS版本。 检查 Node.js 是否正确安装: # 查看node版本 node -v # 查看npm版本 npm -v注意 开发者需要在开发环境安装 Node.js 才能编写 Electron 项目,但是…

Vue之axios请求

Vue之axios请求 axios请求, 是Vue前端框架非常重要的一部分, 今天我们就讲解axios请求, 到底有什么作用, 以及会告诉大家axios的常见用法。 axios请求, 是网页向后端发起请求, 后端吧数据给我们网页, 这是一个前后端交互的过程。当我们学会了axios, 我们可以实现前端和后端练…

如何评估婚恋交友小程序的投资回报率

在这个数字化的时代,越来越多的人选择通过手机应用程序寻找自己的另一半。随着婚恋交友小程序的兴起,编辑h17711347205如何评估这类产品的投资回报率(ROI)成为了投资者和运营者关注的重点。本文将探讨如何有效地评估婚恋交友小程序…

生活中重大决定,除了你自己,谁也帮不了你!

随着年龄增长,越来越发现:生活是非常现实,更现实的社会,自己除了自己,谁也帮不了你。 因此,一个人的生活是好是坏,往往取决于我们自己的努力程度,越努力才会越幸运。没有伞的孩子&am…

程序设计题(65—72)

第六十五题 题目 请编写函数fun&#xff0c;它的功能是&#xff1a;计算下列级数和&#xff0c;和值由函数值返回。 例如&#xff0c;当n10&#xff0c;x0.3时&#xff0c;函数值为1.349859。 #include <conio.h> #include <stdio.h> #include <math.h> #…

万博智云CEO王嘉在华为全联接大会:以创新云应用场景,把握增长机遇

一、大会背景 2024年9月19-21日&#xff0c;第九届华为全联接大会将在上海世博展览馆和上海世博中心举办。作为华为的旗舰盛会&#xff0c;本次大会以“共赢行业智能化”为主题邀请了众多思想领袖、商业精英、技术专家、合作伙伴、开发者等业界同仁&#xff0c;从战略、产业、…

同比和环比怎么算?有什么区别一文讲清楚,附同比环比计算器

大家好&#xff0c;这里是效率办公指南&#xff01; &#x1f4ca; 在数据分析和财务报告中&#xff0c;同比和环比是两个常用的指标&#xff0c;它们帮助我们评估数据的时间序列变化。今天&#xff0c;我们将详细介绍同比和环比的定义、它们之间的区别以及如何计算这两个重要…

【漏洞复现】孚盟云oa AjaxSendDingdingMessage接口 存在sql注入漏洞

》》》产品描述《《《 孚盟与阿里强强联手将最受青睐的经典C系列产品打造成全新的孚盟云产品&#xff0c;让用户可以用云模式实现信息化管理&#xff0c;让用户的异地办公更加流畅&#xff0c;大大降低中小企业在信息化上成本&#xff0c;用最小的投入享受大型企业级别的信息化…

CSS 浏览器兼容问题探讨

目录 非 VIP 用户可前往公众号回复“css”进行免费阅读 浏览器介绍 css 选择器兼容介绍 ie6 微型盒子兼容解决方法 ie6双倍margin div中放入一个img元素导致div高度多出几像素 非 VIP 用户可前往公众号回复“css”进行免费阅读 浏览器介绍 在国内,常见的网页浏览…

Java:插入排序

目录 排序的概念 插入排序 直接插入排序 哈希排序 排序的概念 排序&#xff1a;所谓的排序&#xff0c;就是使一串记录&#xff0c;按照某个或某些关键字的大小&#xff0c;递增或递减的排列起来的操作。 稳定性&#xff1a;假定在待排序的记录序列中&#xff0c;存在多个…

代码写得是真优雅呀!

工作多年后&#xff0c;越发觉得代码整洁真的是太重要了&#xff01;尤其是在团队开发中&#xff0c;写出优雅工整的代码&#xff0c;能让同事更乐于跟你合作。 下面&#xff0c;将通过命名、类、函数、测试这四个章节,使我们的代码变得整洁。 1.为什么要保持代码整洁? 不整…

大厂面试真题-说一下Mybatis的缓存

首先看一下原理图 Mybatis提供了两种缓存机制&#xff1a;一级缓存&#xff08;L1 Cache&#xff09;和二级缓存&#xff08;L2 Cache&#xff09;&#xff0c;旨在提高数据库查询的性能&#xff0c;减少数据库的访问次数。注意查询的顺序是先二级缓存&#xff0c;再一级缓存。…

牛肉高脂猫粮,福派斯猫粮新选择?乳鸽猫粮

福派斯鲜肉宠粮品牌近期对其旗舰产品——无麸质牛肉高脂猫粮单品进行了全面的配方和包装升级&#xff0c;这一举措不仅提升了产品的市场竞争力&#xff0c;更从多个维度确保了宠物食品的安全性与便捷性。 专业解析 "福派斯牛肉高脂猫粮&#xff0c;凭借其卓越的高肉配方&a…

javaweb 实验3

我发现了有些人喜欢静静看博客不聊天呐&#xff0c; 但是ta会点赞。 这样的人呢帅气低调有内涵&#xff0c; 美丽大方很优雅。 说的就是你&#xff0c; 不用再怀疑哦 实验三 Web基础-JavaScript 目的&#xff1a; 1、 理解和掌握Javascript基本语法 2、 掌握JavaScr…

【JAVA开源】基于Vue和SpringBoot的足球俱乐部管理后台

博主说明&#xff1a;本文项目编号 T 051 &#xff0c;文末自助获取源码 \color{red}{T051&#xff0c;文末自助获取源码} T051&#xff0c;文末自助获取源码 目录 一、系统介绍二、演示录屏三、启动教程四、功能截图五、文案资料5.1 选题背景5.2 国内外研究现状5.3 可行性分析…

多跳问答中的语言模型知识编辑增强

人工智能咨询培训老师叶梓 转载标明出处 大模型在整合实时知识更新方面常常遇到困难&#xff0c;这可能导致回答过时或不准确。尤其当处理多跳问题时&#xff0c;挑战进一步增加&#xff0c;因为这类问题需要模型更新和整合与问题相关的多个知识点。图 1为传统基于相似度的搜索…