随笔 - 77  文章 - 0  评论 - 0  阅读 - 21309 
  2023年1月7日
摘要: gotmgs(){ let self = this wx.chooseMedia({ count: 1, mediaType: ['image'], sourceType: ['album', 'camera'], maxDuration: 30, camera: 'back', success(r 阅读全文
posted @ 2023-01-07 14:00 rider_yang 阅读(124) 评论(0) 推荐(0) 编辑
摘要: <template> <view class="camera-box"> <camera class="camera-el" frame-size="large" device-position="front" flash="off" @error="error"> </camera> <view 阅读全文
posted @ 2023-01-07 13:43 rider_yang 阅读(136) 评论(0) 推荐(0) 编辑
摘要: getBase64(file) { return new Promise(function (resolve, reject) { const reader = new FileReader() let imgResult = '' reader.readAsDataURL(file) reader 阅读全文
posted @ 2023-01-07 13:29 rider_yang 阅读(86) 评论(0) 推荐(0) 编辑
  2022年5月14日
摘要: import { mergeConfig, dispatchRequest, jsonpRequest} from "./utils" export default class request { constructor(options) { // 请求公共地址 this.baseUrl = opt 阅读全文
posted @ 2022-05-14 01:19 rider_yang 阅读(153) 评论(0) 推荐(0) 编辑
摘要: // 微信小程序一键授权登录(获取用户基本信息) LoginMpWx({ commit }, data) { return new Promise((resolve, reject) => { LoginApi.loginMpWx({ form: data }, { isPrompt: false 阅读全文
posted @ 2022-05-14 01:16 rider_yang 阅读(2568) 评论(0) 推荐(0) 编辑
摘要: /** * 获取当前运行的客户端(APP H5 小程序) * https://uniapp.dcloud.io/platform */const getPlatform = () => { // #ifdef APP-PLUS const platform = 'APP' // #endif // 阅读全文
posted @ 2022-05-14 01:11 rider_yang 阅读(389) 评论(0) 推荐(0) 编辑
摘要: export const wxPayment = (option) => { const options = { timeStamp: '', nonceStr: '', prepay_id: '', paySign: '', ...option } return new Promise((reso 阅读全文
posted @ 2022-05-14 01:09 rider_yang 阅读(209) 评论(0) 推荐(0) 编辑
摘要: export default{ // 计算当前日期星座 getHoroscope(date) { let c = ['摩羯','水瓶','双鱼','白羊','金牛','双子','巨蟹','狮子','处女','天秤','天蝎','射手','摩羯'] date=new Date(date); let m 阅读全文
posted @ 2022-05-14 01:04 rider_yang 阅读(34) 评论(0) 推荐(0) 编辑
摘要: gotoSetwechat:function(){ if(this.personalData.set_wechat == 0){ var auth = this.auths[this.authId]; var waiting = plus.nativeUI.showWaiting(); auth.a 阅读全文
posted @ 2022-05-14 00:57 rider_yang 阅读(91) 评论(0) 推荐(0) 编辑
摘要: getUserLocation:function(){ //获取当前设备位置 plus.geolocation.getCurrentPosition(function(position) { // console.log(JSON.stringify(position)) if(position.c 阅读全文
posted @ 2022-05-14 00:54 rider_yang 阅读(108) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示