7.24(发布地址

This commit is contained in:
Hong
2024-07-24 18:30:29 +08:00
parent d78b5a511d
commit 9f2dabd0ae
3 changed files with 20 additions and 7 deletions

View File

@@ -252,7 +252,7 @@
getJoinNumFn() {
getJoinNum().then(res => {
this.subscriptNum = res.data
console.log(res);
// console.log(res);
})
},
// 点击轮播图

View File

@@ -123,7 +123,7 @@
res.data.wide = uni.$u.getPx(`${res.data.wide}rpx`) * num + 'rpx'
res.data.high = uni.$u.getPx(`${res.data.high}rpx`) * num + 'rpx'
}
console.log('发布内容', res);
// console.log('发布内容', res);
uni.setStorageSync('trends_info', res.data);
uni.setStorageSync('video_info', {});
uni.hideLoading();
@@ -136,10 +136,10 @@
false,
true,
res => {
console.log(res.data);
// console.log(res.data);
uni.hideLoading();
this.videoInfo = uni.getStorageSync('video_info');
console.log('视频信息', this.videoInfo);
// console.log('视频信息', this.videoInfo);
this.videoImage = res.data
});
},
@@ -157,7 +157,6 @@
} else {
this.getVideo()
}
},
//传图片
getImage() {

View File

@@ -55,19 +55,22 @@
</view>
<!-- #ifdef MP-WEIXIN -->
<image :src="`${config.aliyunOssUrl}/static/images/app/serve/realname_upload.png`" mode=""
@click="getImage"></image>
@click="scanQRCode"></image>
<!-- #endif -->
<!-- #ifdef APP -->
<image src="@/static/images/app/serve/realname_upload.png" mode="" @click="getImage"></image>
<image src="@/static/images/app/serve/realname_upload.png" mode="" @click="scanQRCode"></image>
<!-- #endif -->
</view>
</view>
</view>
<view :class="isFormDataEmpty?'submitbtn':'submitbtncolor'" @click="submit"> </view>
<yk-authpup ref="authpup" type="top" @changeAuth="getImage" permissionID="CAMERA"></yk-authpup>
</view>
</template>
<script>
import ykAuthpup from "@/components/yk-authpup/yk-authpup";
import config from '@/config'
import {
certificationAPI
@@ -128,7 +131,17 @@
deep: true,
}
},
onLoad() {
this.mobileType = uni.getStorageSync('appDetail')
},
methods: {
scanQRCode() {
if (this.mobileType.platform != 'ios') {
this.$refs['authpup'].open()
} else {
this.getImage()
}
},
submit() {
certificationAPI(this.userInfo).then((res) => {
console.log(res, 'then-res');
@@ -207,6 +220,7 @@
top: 0;
right: -25rpx;
z-index: 1;
image {
width: 210rpx;
height: 238rpx;