解决视频横竖屏的问题,以及商品列表的问题
This commit is contained in:
parent
1e79bf35d1
commit
98fff8a58b
@ -38,8 +38,8 @@
|
|||||||
|
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
gogogo(item) {
|
gogogo(item) {
|
||||||
|
if (this.userid) {
|
||||||
if (item.video_link.length > 0) {
|
if (item.video_link.length > 0) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
// #ifdef MP || H5
|
// #ifdef MP || H5
|
||||||
@ -54,6 +54,13 @@
|
|||||||
url: `/pages/plantGrass/plant_detail/index?id=${item.community_id}`
|
url: `/pages/plantGrass/plant_detail/index?id=${item.community_id}`
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
this.$util.Tips({
|
||||||
|
title: '用户信息不存在,请完成登录在进行该操作',
|
||||||
|
icon: 'error'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="content-two_one" v-if="item.type==1">
|
<view class="content-two_one" v-if="item.type==1">
|
||||||
<view class="content-two-edita" @click="soldEdit(item)">
|
<view class="content-two-edita" @click="soldEdit">
|
||||||
待处理
|
待处理
|
||||||
</view>
|
</view>
|
||||||
<view class="contentgn">
|
<view class="contentgn">
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
<view v-if="followDetail.author" class="title">
|
<view v-if="followDetail.author" class="title">
|
||||||
<view class="author">
|
<view class="author">
|
||||||
<navigator hover-class="none" :url="'/pages/plantGrass/plant_user/index?id='+followDetail.uid">
|
<navigator hover-class="none" :url="'/pages/plantGrass/plant_user/index?id='+followDetail.uid">
|
||||||
<image class="picture" :src="followDetail.author.avatar || '/static/images/f.png'"></image>
|
<image class="picture" :src="followDetail.author.avatar || '/static/images/f.png'" mode="aspectFit"></image>
|
||||||
</navigator>
|
</navigator>
|
||||||
<view class="name acea-row">
|
<view class="name acea-row">
|
||||||
<text>{{followDetail.author.nickname}}</text>
|
<text>{{followDetail.author.nickname}}</text>
|
||||||
|
@ -401,7 +401,7 @@
|
|||||||
newTime: 0, //跟手滑动后的最新时间💗
|
newTime: 0, //跟手滑动后的最新时间💗
|
||||||
timeNumber: 0, //🌟💗
|
timeNumber: 0, //🌟💗
|
||||||
ProgressBarBottom: 20, //进度条离底部的距离💗
|
ProgressBarBottom: 20, //进度条离底部的距离💗
|
||||||
object_fit: 'cover', //视频样式默认包含🌟💗
|
object_fit: 'contain', //视频样式默认包含🌟💗
|
||||||
mode: 'aspectFit', //图片封面样式🌟💗
|
mode: 'aspectFit', //图片封面样式🌟💗
|
||||||
timeout: "", //🌟用来阻止 setTimeout()方法
|
timeout: "", //🌟用来阻止 setTimeout()方法
|
||||||
voice: "", //🌟用来阻止 setTimeout()方法
|
voice: "", //🌟用来阻止 setTimeout()方法
|
||||||
@ -1116,7 +1116,7 @@
|
|||||||
/* #ifdef MP */
|
/* #ifdef MP */
|
||||||
padding-top: 200rpx;
|
padding-top: 200rpx;
|
||||||
/* #endif */
|
/* #endif */
|
||||||
// background-color: #000000;
|
background-color: #000000;
|
||||||
background-color: #F5F5F5;
|
background-color: #F5F5F5;
|
||||||
|
|
||||||
.goods_item {
|
.goods_item {
|
||||||
|
@ -616,10 +616,8 @@
|
|||||||
if (this.type == 'edit') {
|
if (this.type == 'edit') {
|
||||||
this.formData.product_info = []
|
this.formData.product_info = []
|
||||||
}
|
}
|
||||||
|
|
||||||
this.productList = []
|
this.productList = []
|
||||||
this.price = 0;
|
this.price = 0;
|
||||||
|
|
||||||
if (data.length > 0) {
|
if (data.length > 0) {
|
||||||
this.productList = data;
|
this.productList = data;
|
||||||
for (let i in data) {
|
for (let i in data) {
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
<view>
|
<view>
|
||||||
|
|
||||||
<text class='default t-color'
|
<text class='default t-color'
|
||||||
v-if="addressInfo.is_default">[默认]</text>{{addressInfo.province}}{{addressInfo.city}}{{addressInfo.district}}{{addressInfo.street || ''}}{{typeof(addressInfo.brigade)=='string'?addressInfo.brigade:addressInfo.brigade.name }}{{addressInfo.detail}}
|
v-if="addressInfo.is_default">[默认]</text>{{addressInfo.province}}{{addressInfo.city}}{{addressInfo.district}}{{addressInfo.street || ''}}
|
||||||
|
<text v-if='addressInfo.brigade'>{{typeof(addressInfo.brigade)=='string'?addressInfo.brigade:addressInfo.brigade.name }}{{addressInfo.detail}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<navigator v-else :url="'/pages/users/user_address/index?cartId='+cartId" hover-class="none"
|
<navigator v-else :url="'/pages/users/user_address/index?cartId='+cartId" hover-class="none"
|
||||||
@ -1083,7 +1083,7 @@
|
|||||||
that.order_key = res.data.key
|
that.order_key = res.data.key
|
||||||
that.cartArr[4].title =
|
that.cartArr[4].title =
|
||||||
`结算周期:${res.data.order[0].settle_cycle}天 日利率:${res.data.order[0].interest_rate}%`
|
`结算周期:${res.data.order[0].settle_cycle}天 日利率:${res.data.order[0].interest_rate}%`
|
||||||
console.log(res.data.order[0]);
|
|
||||||
if (res.data.order[0].credit_buy == 1 && this.type_id == 12) {
|
if (res.data.order[0].credit_buy == 1 && this.type_id == 12) {
|
||||||
this.cartArr[4].payStatus = 1
|
this.cartArr[4].payStatus = 1
|
||||||
} else {
|
} else {
|
||||||
@ -1126,7 +1126,7 @@
|
|||||||
real_name: res.data.real_name,
|
real_name: res.data.real_name,
|
||||||
phone: res.data.phone
|
phone: res.data.phone
|
||||||
}
|
}
|
||||||
console.log(that.addressId);
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.getConfirm(that.addressId);
|
this.getConfirm(that.addressId);
|
||||||
})
|
})
|
||||||
|
@ -1,4 +1,9 @@
|
|||||||
import { getGXconfig } from "@/api/uniMP.js";
|
import {
|
||||||
|
getGXconfig
|
||||||
|
} from "@/api/uniMP.js";
|
||||||
|
import {
|
||||||
|
HTTP_REQUEST_URL
|
||||||
|
} from '@/config/app';
|
||||||
const mp = uni.requireNativePlugin('uniMP');
|
const mp = uni.requireNativePlugin('uniMP');
|
||||||
|
|
||||||
let appid = ''; // 应用id
|
let appid = ''; // 应用id
|
||||||
@ -34,7 +39,14 @@ const loadMP = async (id) => {
|
|||||||
})
|
})
|
||||||
mp.getUniMPVersion(id, (ret) => {
|
mp.getUniMPVersion(id, (ret) => {
|
||||||
console.log('当前版本', ret);
|
console.log('当前版本', ret);
|
||||||
if (0 != ret.code || compareVersions(info.data.version, ret.versionInfo.name) == 1 || true) {
|
let flag;
|
||||||
|
if (HTTP_REQUEST_URL == 'https://shop.lihaink.cn') {
|
||||||
|
flag = false
|
||||||
|
} else {
|
||||||
|
flag = true
|
||||||
|
}
|
||||||
|
if (0 != ret.code || compareVersions(info.data.version, ret.versionInfo.name) == 1 || flag ==
|
||||||
|
true) {
|
||||||
let count = 0;
|
let count = 0;
|
||||||
timer = setInterval(() => {
|
timer = setInterval(() => {
|
||||||
if (count < 100) uni.showLoading({
|
if (count < 100) uni.showLoading({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user