Browse Source

提交

master
chenkainan 5 months ago
parent
commit
82dda3a757
  1. 24
      pages/index/index.vue
  2. 8
      pages/login/login.vue
  3. 11
      subPackages/order/trades.vue

24
pages/index/index.vue

@ -3,11 +3,11 @@
<!-- 头部banner --> <!-- 头部banner -->
<view class="top-box"> <view class="top-box">
<!-- 搜索 --> <!-- 搜索 -->
<view class="search-box"> <!-- <view class="search-box">
<image src="https://static.ticket.sz-trip.com/cgc/images/index/search.png" mode=""></image> <image src="https://static.ticket.sz-trip.com/cgc/images/index/search.png" mode=""></image>
<span>|</span> <span>|</span>
搜一搜您想要的 搜一搜您想要的
</view> </view> -->
<swiper class="top-banner" :circular="true" :interval="6000" <swiper class="top-banner" :circular="true" :interval="6000"
:duration="800" :indicator-dots="false" :autoplay="true" v-if="topBanner"> :duration="800" :indicator-dots="false" :autoplay="true" v-if="topBanner">
@ -68,7 +68,7 @@
<image src="https://static.ticket.sz-trip.com/cgc/images/index/plays.png" mode="widthFix" class="play-img" v-if="hotIndex" lazy-load="true"></image> <image src="https://static.ticket.sz-trip.com/cgc/images/index/plays.png" mode="widthFix" class="play-img" v-if="hotIndex" lazy-load="true"></image>
</view> </view>
<view class="hot-content"> <view class="hot-content">
<view class="title text-overflowRows">{{item.title || item.name}}</view> <view class="title text-overflowRows">{{item.title || item.goods.title}}</view>
<view class="subtitle" v-if="hotIndex"> <view class="subtitle" v-if="hotIndex">
<image src="https://static.ticket.sz-trip.com/tongli/images/index/user.png" mode="aspectFill"></image> <image src="https://static.ticket.sz-trip.com/tongli/images/index/user.png" mode="aspectFill"></image>
{{item.author}} {{item.author}}
@ -237,7 +237,7 @@
item.src = this.showImg(item.image); item.src = this.showImg(item.image);
break; break;
default: default:
item.src = this.showImg(item.image); item.src = this.showImg(item.goods.image);
} }
if (index % 2 === columnIndex) { if (index % 2 === columnIndex) {
@ -267,14 +267,12 @@
}) })
}else { }else {
this.Post({ this.Post({
type_id: this.hotType[this.hotIndex].id, tag_id: 51,
offset: this.hotList.length, offset: this.hotList.length,
limit: this.limit limit: this.limit,
},'/api/Article/getArticleByType').then(res => { },'/api/tag/getGoodsByTagId').then(res => {
if(res) { if(res.data.length < this.limit) this.isLoading = true
if(res.data.length < this.limit) this.isLoading = true this.hotList = this.hotList.concat(res.data)
this.hotList = this.hotList.concat(res.data)
}
}) })
} }
}, },
@ -288,7 +286,9 @@
// //
this.gotoVideo(item) this.gotoVideo(item)
}else { }else {
uni.navigateTo({
url: '/subPackages/techan/detail?id=' + item.goods_id
})
} }
} }
} }

8
pages/login/login.vue

@ -98,14 +98,6 @@ export default {
uni.getUserInfo({ uni.getUserInfo({
withCredentials: true, withCredentials: true,
success: (res) => { success: (res) => {
this.Post({
mobile: '18639595995',
captcha: '123456'
}, '/api/user/mobilelogin').then(res=>{
this.$store.commit('changeUserInfo', res.data.userinfo);
this.navigateBasedOnPath();
})
return
this.Post({ this.Post({
code: loginRes.code, code: loginRes.code,
userInfo: res.userInfo, userInfo: res.userInfo,

11
subPackages/order/trades.vue

@ -200,7 +200,7 @@
}, },
'/api/order/confirmPost' '/api/order/confirmPost'
).then(res => { ).then(res => {
if (res.code == 1) { if (res.code == 200) {
list[index].order_child.map(item => { list[index].order_child.map(item => {
item.status = 'WAIT_COMMENT'; item.status = 'WAIT_COMMENT';
}); });
@ -219,8 +219,6 @@
}, },
// //
closeOrder(id, index) { closeOrder(id, index) {
console.log(id);
console.log(index);
let that = this; let that = this;
uni.showModal({ uni.showModal({
title: '提示', title: '提示',
@ -232,7 +230,7 @@
}, },
'/api/order/closeOrder' '/api/order/closeOrder'
).then(res => { ).then(res => {
if (res.code == 1) { if (res.code == 200) {
uni.showToast({ uni.showToast({
title: '关闭成功', title: '关闭成功',
icon: 'success' icon: 'success'
@ -259,7 +257,7 @@
}, },
'/api/order/delOrder' '/api/order/delOrder'
).then(res => { ).then(res => {
if (res.code == 1) { if (res.code == 200) {
uni.showToast({ uni.showToast({
title: '删除成功', title: '删除成功',
icon: 'success' icon: 'success'
@ -275,7 +273,6 @@
}, },
// 退 // 退
refund(id, index) { refund(id, index) {
console.log(id);
let that = this; let that = this;
uni.showModal({ uni.showModal({
title: '提示', title: '提示',
@ -287,7 +284,7 @@
}, },
'/api/order/applyRefund' '/api/order/applyRefund'
).then(res => { ).then(res => {
if (res.code == 1) { if (res.code == 200) {
uni.showToast({ uni.showToast({
title: '申请成功', title: '申请成功',
icon: 'success' icon: 'success'

Loading…
Cancel
Save