作者 xuqiang

提交

... ... @@ -160,7 +160,6 @@
this.max = 9
nowNum = Math.abs(this.uploadLists.length - this.max);
thisNum = (this.chooseNum > nowNum ? nowNum : this.chooseNum) //可选数量
console.log('111111111111111111',nowNum,thisNum)
this.$emit('changeType',1)
this.chooseImage(thisNum)
} else if (res.tapIndex == 1) {
... ... @@ -178,10 +177,6 @@
this.max = 9
nowNum = Math.abs(this.uploadLists.length - this.max);
thisNum = (this.chooseNum > nowNum ? nowNum : this.chooseNum) //可选数量
console.log('111111111111111111',nowNum,thisNum)
nowNum = Math.abs(this.uploadLists.length - this.max);
thisNum = (this.chooseNum > nowNum ? nowNum : this.chooseNum) //可选数量
console.log('111111111111111111',nowNum,thisNum)
this.uploadType = 'image'
this.chooseImage(thisNum)
}else{
... ... @@ -192,9 +187,7 @@
uni.chooseVideo({
count: thisNum,
sourceType: this.sourceType,
maxDuration:15,
success: (res) => {
console.log('11111111111111',res.size/(1024*1024))
if(res.size/(1024*1024) > 100){
uni.showToast({
title:'视频大小大于100M,请重新选择',
... ... @@ -212,26 +205,27 @@
// #ifndef APP-PLUS
let suffix = res.name.substr(res.name.lastIndexOf('.'),res.name.length)
// #endif
console.log('待上传视频的后缀名为',suffix)
//获取七牛云token
uni.request({
url:this.apiUrl + '/common/getQiniuToken',
method:'POST',
success: (qiniuRet) => {
console.log('获取七牛云配置信息',qiniuRet)
uni.uploadFile({
url: 'https://up-z2.qiniup.com',
filePath: filePath,
name: 'file',
formData: {
'key': qiniuRet.data.data.key+suffix,
'token': qiniuRet.data.data.token
'key' : qiniuRet.data.data.key+suffix,
'token' : qiniuRet.data.data.token
},
success: (uploadFileRes) => {
console.log('上传七牛云结果',JSON.parse(uploadFileRes.data))
uni.hideLoading()
this.uploadLists.push('/'+JSON.parse(uploadFileRes.data).key)
this.$emit("changeVideo", this.uploadLists);
},
fail: (err) => {
console.log('上传七牛云报错',err)
}
})
}
... ...
<template>
<view>
<map id="around-food-map" @regionchange="regionchange" :style="{width: '100%',height:mapHeight + 'px'}" :scale="scale" :layer-style="layerStyle" @markertap="markertap" :latitude="latitude" :longitude="longitude" :markers="covers"></map>
<map id="around-food-map" @regionchange="regionchange" :style="{width: '100%',height:mapHeight + 'px'}" :scale="scale" layer-style="d5f046428dcc29769f0256117754064b" @markertap="markertap" :latitude="latitude" :longitude="longitude" :markers="covers"></map>
<!-- 查询地址区域 -->
<view class="searchWrap" :style="{top:statusBarHeight + 'rpx'}">
<view class="searchTab">
... ... @@ -268,8 +268,7 @@
showSearchLand:false,//展示查询地主列表弹框
addressList:[],
becomeLandImg:'',//成为地主弹框图片
showLandInfo:false,
layerStyle:'d5f046428dcc29769f0256117754064b'
showLandInfo:false
}
},
computed:{
... ...
... ... @@ -26,8 +26,8 @@
登录
</view>
<view class="userProt">
<!-- <image @click="checkProt = true" v-if="!checkProt" style="width: 23rpx;height: 23rpx;" src="../../static/image/gouxuankuang_1@2x.png" mode=""></image> -->
<!-- <image @click="checkProt = false" v-if="checkProt" style="width: 23rpx;height: 23rpx;" src="../../static/image/Group_592@2x.png" mode=""></image> -->
<image @click="checkProt = true" v-if="!checkProt" style="width: 23rpx;height: 23rpx;" src="../../static/image/gouxuankuang_1@2x.png" mode=""></image>
<image @click="checkProt = false" v-if="checkProt" style="width: 23rpx;height: 23rpx;" src="../../static/image/Group_592@2x.png" mode=""></image>
登录即代表您同意<text @click="goTo('../my/aboutUs?navTitle=用户协议')">《用户协议》</text>和<text @click="goTo('../my/aboutUs?navTitle=隐私政策')">《隐私政策》</text>
</view>
<view class="otherLoginTxt">
... ... @@ -53,7 +53,7 @@
data(){
return{
showLogin:false,
// checkProt:false,
checkProt:false,
codeFlag:true,
codeTxt:"获取验证码",
mobile:'',
... ... @@ -85,13 +85,13 @@
})
return
}
/* if(!this.checkProt){
if(!this.checkProt){
uni.showToast({
title:'请阅读并同意《用户协议》',
title:'请阅读并同意《用户协议》及《隐私政策》',
icon:'none'
})
return
} */
}
uni.request({
url:this.apiUrl + '/user/mobilelogin',
method:'GET',
... ...