1234567891011121314151617181920212223242526272829303132 |
- import * as WxJsApi from '@/utils/wxJsApi.js'
- export default {
- data() {
- return {
- imgBase64:'',
- step:1,
- }
- },
- methods: {
-
- uploadPic(){
- WxJsApi.chooseImage(9,true).then(res=>{
- var localId=res[0]
- uni.navigateTo({
- url:'/pages/buytickets/adjust?localId='+localId
- })
- })
-
- }
- },
-
- onReady() {
- this.$refs.common.showLoading()
- WxJsApi.getWxConfig(['chooseImage']).then(()=>{
- this.$refs.common.showLoading(false)
- });
-
- }
- }
|