首页致命bug修复
This commit is contained in:
4
main.js
4
main.js
@@ -7,8 +7,8 @@ Vue.prototype.$music = music
|
||||
Vue.prototype.$bgm = bgm
|
||||
|
||||
// 地址
|
||||
Vue.prototype.$baseUrl = "http://192.168.110.100:9100/pb/"
|
||||
// Vue.prototype.$baseUrl = "http://59.110.212.44:9100/pb/"
|
||||
// Vue.prototype.$baseUrl = "http://192.168.110.100:9100/pb/"
|
||||
Vue.prototype.$baseUrl = "http://59.110.212.44:9100/pb/"
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
<view v-if="linkProducts && linkProducts.length > 0 && linkProducts[0]">
|
||||
<view class="spbh" v-for="(item, index) in linkProducts" :key="item.id">
|
||||
<view class="flexbox aligncenter" @click="previewProduct(item,index)">
|
||||
<view class="spbhimg">
|
||||
<view class="spbhimg" >
|
||||
<image :src="item.productImages" mode="aspectFit"></image>
|
||||
</view>
|
||||
<text class="username nowrap ">{{item.productName}}</text>
|
||||
@@ -170,13 +170,13 @@
|
||||
<view style="height: 120rpx;"></view>
|
||||
</view>
|
||||
<view class="" v-if="upoShow">
|
||||
<u-popup :show="upoShow" :round="10" @close="closeUpo">
|
||||
<u-popup :show="upoShow" :round="10" @close="closeUpo" style="z-index: 2;">
|
||||
<view class="tanchu">
|
||||
<view class="list">
|
||||
<view class="imgBox">
|
||||
<image v-if="linkimg == ''" src="../../static/icon/wufeng.jpg" mode="aspectFit"
|
||||
style="width: 100%; height: 100%;"></image>
|
||||
<image v-else :src="linkimg" mode="aspectFit" style="width: 100%; height: 100%;"></image>
|
||||
<image v-else :src="linkimg" mode="aspectFit" style="width: 100%; height: 100%;" @click="previewImage(linkimg)"></image>
|
||||
<view class="xiangxi" v-if="productId != linkProducts[linkCur].productId"
|
||||
@click="gotoDetail(linkProducts[linkCur])">
|
||||
<text>查看详情</text>
|
||||
@@ -185,8 +185,8 @@
|
||||
<view :class="['spbh', linkCur == index ? 'cur' :'']" v-for="(item, index) in linkProducts"
|
||||
:key="item.id">
|
||||
<view class="flexbox aligncenter" @click="previewProduct(item,index)">
|
||||
<view class="spbhimg">
|
||||
<image :src="item.productImages" mode="aspectFit"></image>
|
||||
<view class="spbhimg" >
|
||||
<image :src="item.productImages" mode="aspectFit" ></image>
|
||||
</view>
|
||||
<text class="username nowrap ">{{item.productName}}</text>
|
||||
<text class="price"
|
||||
|
||||
@@ -201,16 +201,16 @@
|
||||
<view v-if="tjProList.length > 0" >
|
||||
<view class="flexbox" style="flex-wrap: wrap;">
|
||||
<view class="goodsItem" v-for="(item,index) in tjProList" :key="index"
|
||||
@click="goDetail(item.shopproudicts[0].productId)">
|
||||
<image :src="item.shopproudicts[0].productImages" mode="" class="goodsImg"></image>
|
||||
@click="goDetail(item.productId)">
|
||||
<image :src="item.productImages" mode="" class="goodsImg"></image>
|
||||
<view class="goodsContent">
|
||||
<view class="goodsName">
|
||||
{{item.shopproudicts[0].productName}}
|
||||
{{item.productName}}
|
||||
</view>
|
||||
<view class="goodsPrice">
|
||||
<span class="price" v-if="item.shopproudicts[0].activityPrice && item.shopproudicts[0].activityPrice > 0">¥{{item.shopproudicts[0].activityPrice}}</span>
|
||||
<span class="price" v-else>¥{{item.shopproudicts[0].price}}</span>
|
||||
<span class="Salesnum">已售:{{item.shopproudicts[0].sumSales}} 件</span>
|
||||
<span class="price" v-if="item.activityPrice && item.activityPrice > 0">¥{{item.activityPrice}}</span>
|
||||
<span class="price" v-else>¥{{item.price}}</span>
|
||||
<span class="Salesnum">已售:{{item.sumSales}} 件</span>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -307,9 +307,9 @@
|
||||
onHide() {
|
||||
this.page = 1
|
||||
this.tjProList = []
|
||||
if(this.tagList.length > 0){
|
||||
this.tabsid = this.tagList[0].splId
|
||||
}
|
||||
// if(this.tagList.length > 0){
|
||||
// this.tabsid = this.tagList[0].splId
|
||||
// }
|
||||
},
|
||||
//页面显示
|
||||
onShow() {
|
||||
@@ -392,16 +392,17 @@
|
||||
},
|
||||
getJtData(){
|
||||
this.$http
|
||||
.post('book/label/list',{
|
||||
// .post('book/label/list',{
|
||||
.post('book/label/getProductsByLabel',{
|
||||
'splId': this.tabsid,
|
||||
'limit': this.pageSize,
|
||||
'page': this.page
|
||||
})
|
||||
.then(res => {
|
||||
|
||||
if(res.code == 0 && res.page.list.length > 0){
|
||||
this.tjProList = this.tjProList.concat(res.page.list)
|
||||
this.totalPage = res.page.totalPage
|
||||
if(res.code == 0 && res.page.records.length > 0){
|
||||
this.tjProList = this.tjProList.concat(res.page.records)
|
||||
this.totalPage = res.page.pages
|
||||
this.status = 3
|
||||
console.log(this.tjProList,'按标签检索结果')
|
||||
}else{
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
<view class="tanchu">
|
||||
<view class="dp_title">请输入昵称</view>
|
||||
<u--input v-model="userMes.nickname" placeholder="请输入昵称" border="surround" clearable></u--input>
|
||||
<u-button color="linear-gradient(to right, #72d386, #317e42)" text="确定" @click="choseNickname()"
|
||||
<u-button color="linear-gradient(to right, #72d386, #317e42)" text="确定" @click="choseNickname(userMes.nickname)"
|
||||
style="margin-top: 50rpx;"></u-button>
|
||||
<view @click="nicknameShow=false" class="dp_canBtn">取消</view>
|
||||
</view>
|
||||
@@ -124,7 +124,8 @@
|
||||
nickname: '',
|
||||
tel: '',
|
||||
password: '',
|
||||
Repassword: ''
|
||||
Repassword: '',
|
||||
oldName:'', // 老的用户名
|
||||
},
|
||||
avatarShow: false,
|
||||
nicknameShow: false,
|
||||
@@ -176,6 +177,7 @@
|
||||
that.userMes.nickname = res.user.nickname
|
||||
that.userMes.tel = res.user.tel
|
||||
that.userMes.avatar = res.user.avatar
|
||||
that.userMes.oldName = that.userMes.nickname
|
||||
});
|
||||
}
|
||||
},
|
||||
@@ -212,8 +214,18 @@
|
||||
// 昵称
|
||||
choseNickname(e) {
|
||||
let that = this
|
||||
that.choseData()
|
||||
that.nicknameShow = false
|
||||
if(e && e != ''){
|
||||
|
||||
that.choseData()
|
||||
that.nicknameShow = false
|
||||
}else{
|
||||
that.userMes.nickname = that.userMes.oldName
|
||||
console.log(that.userMes.nickname)
|
||||
uni.showToast({
|
||||
title:'请输入昵称',
|
||||
icon:'none'
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
// 性别
|
||||
|
||||
Reference in New Issue
Block a user