点赞功能
This commit is contained in:
parent
87092eb46f
commit
2adf635cb1
@ -9,8 +9,8 @@ let httpApiThree
|
|||||||
// 网络接口修改此字符 小程序域名要求https
|
// 网络接口修改此字符 小程序域名要求https
|
||||||
// let httpApi = 'http://192.168.31.110:8324' // 测试
|
// let httpApi = 'http://192.168.31.110:8324' // 测试
|
||||||
if (process.env.NODE_ENV === "development") {
|
if (process.env.NODE_ENV === "development") {
|
||||||
// httpApi = "https://crmeb-test.shop.lihaink.cn"
|
httpApi = "https://crmeb-test.shop.lihaink.cn"
|
||||||
httpApi = "http://192.168.0.109:8325"
|
// httpApi = "http://192.168.0.109:8325"
|
||||||
// #ifdef MP-WEIXIN
|
// #ifdef MP-WEIXIN
|
||||||
httpApiTwo = "http://cms.com"
|
httpApiTwo = "http://cms.com"
|
||||||
httpApiThree = 'http://ceshi-oa.lihaink.cn'
|
httpApiThree = 'http://ceshi-oa.lihaink.cn'
|
||||||
|
@ -36,7 +36,8 @@
|
|||||||
<text class="text">提现管理</text>
|
<text class="text">提现管理</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="examine" @click="navigator(`/pages/nongKe/teach_video/teach_video`)">
|
<view class="examine" @click="navigator(`/pages/nongKe/teach_video/teach_video`)">
|
||||||
<image class="icon_img" :src="`${prefix}txgl.png`" mode="aspectFill">
|
<image class="icon_img" src="https://lihai001.oss-cn-chengdu.aliyuncs.com/public/kk/spjs.png"
|
||||||
|
mode="aspectFill">
|
||||||
</image>
|
</image>
|
||||||
<text class="text">视频教学</text>
|
<text class="text">视频教学</text>
|
||||||
</view>
|
</view>
|
||||||
|
@ -167,8 +167,14 @@
|
|||||||
graphicStartApi(item.community_id, {
|
graphicStartApi(item.community_id, {
|
||||||
status: status
|
status: status
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
Toast(res.message)
|
if (item.relevance_id) {
|
||||||
this.getGoods()
|
item.count_start--;
|
||||||
|
item.count_start = item.count_start == 0 ? 0 : item.count_start
|
||||||
|
item.relevance_id = false
|
||||||
|
} else {
|
||||||
|
item.count_start++;
|
||||||
|
item.relevance_id = true
|
||||||
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
dianji() {
|
dianji() {
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -467,6 +467,21 @@
|
|||||||
},
|
},
|
||||||
onReady() {},
|
onReady() {},
|
||||||
methods: {
|
methods: {
|
||||||
|
giveStart(item) {
|
||||||
|
let status = item.relevance_id ? 0 : 1
|
||||||
|
graphicStartApi(item.community_id, {
|
||||||
|
status: status
|
||||||
|
}).then(res => {
|
||||||
|
if (item.relevance_id) {
|
||||||
|
item.count_start--;
|
||||||
|
item.count_start = item.count_start == 0 ? 0 : item.count_start
|
||||||
|
item.relevance_id = false
|
||||||
|
} else {
|
||||||
|
item.count_start++;
|
||||||
|
item.relevance_id = true
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
gogogo(item) {
|
gogogo(item) {
|
||||||
this.videoID = item.community_id
|
this.videoID = item.community_id
|
||||||
this.navTap(1)
|
this.navTap(1)
|
||||||
|
@ -422,6 +422,21 @@
|
|||||||
},
|
},
|
||||||
onReady: function() {},
|
onReady: function() {},
|
||||||
methods: {
|
methods: {
|
||||||
|
giveStart(item) {
|
||||||
|
let status = item.relevance_id ? 0 : 1
|
||||||
|
graphicStartApi(item.community_id, {
|
||||||
|
status: status
|
||||||
|
}).then(res => {
|
||||||
|
if (item.relevance_id) {
|
||||||
|
item.count_start--;
|
||||||
|
item.count_start = item.count_start == 0 ? 0 : item.count_start
|
||||||
|
item.relevance_id = false
|
||||||
|
} else {
|
||||||
|
item.count_start++;
|
||||||
|
item.relevance_id = true
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
//#ifdef MP
|
//#ifdef MP
|
||||||
videoShare(item) {
|
videoShare(item) {
|
||||||
if (item && item.status == 1) {
|
if (item && item.status == 1) {
|
||||||
@ -693,7 +708,7 @@
|
|||||||
is_star: that.isSatrt,
|
is_star: that.isSatrt,
|
||||||
community_id: that.videoID
|
community_id: that.videoID
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
that.videoData(res.data.list)
|
that.videoData(res.data.list)
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
return uni.showToast({
|
return uni.showToast({
|
||||||
@ -723,17 +738,17 @@
|
|||||||
focusArticleLst({
|
focusArticleLst({
|
||||||
page: that.page,
|
page: that.page,
|
||||||
limit: that.limit,
|
limit: that.limit,
|
||||||
type: 2
|
type: 2
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
that.loadVideo = false
|
that.loadVideo = false
|
||||||
// const arr=[]
|
// const arr=[]
|
||||||
// res.data.list.forEach(item=>{
|
// res.data.list.forEach(item=>{
|
||||||
// if(item.is_type == '2'){
|
// if(item.is_type == '2'){
|
||||||
// return arr.push(item)
|
// return arr.push(item)
|
||||||
// }
|
// }
|
||||||
// })
|
// })
|
||||||
// this.limit=arr.length
|
// this.limit=arr.length
|
||||||
that.videoData(res.data.list)
|
that.videoData(res.data.list)
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
return uni.showToast({
|
return uni.showToast({
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="Circle_friends">
|
<view class="Circle_friends">
|
||||||
<view class="circle_friends_wrapper">
|
<view class="circle_friends_wrapper">
|
||||||
<zbpSwiper :isSelectPlace="true" @selectPlce="selectPlce" :location_Arr="locationArr"></zbpSwiper>
|
<zbpSwiper :isSelectPlace="true" @selectPlce="selectPlce" :location_Arr="locationArr"></zbpSwiper>
|
||||||
<view class="shop_wrapper">
|
<view class="shop_wrapper">
|
||||||
<!-- locationArr.address_reference.town.id -->
|
<!-- locationArr.address_reference.town.id -->
|
||||||
<navigator class="l_yun" hover-class="none"
|
<navigator class="l_yun" hover-class="none"
|
||||||
@ -53,10 +53,10 @@
|
|||||||
class="g_img"></image>
|
class="g_img"></image>
|
||||||
<view class="g_name">{{item.author}}</view>
|
<view class="g_name">{{item.author}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="nice_box" @click.stop="giveStart(item)">
|
<!-- <view class="nice_box" @click.stop="giveStart(item)">
|
||||||
<text class="iconfont" :class="item.relevance_id ? 'icon-shoucang1' : 'icon-dianzan'"></text>
|
<text class="iconfont" :class="item.relevance_id ? 'icon-shoucang1' : 'icon-dianzan'"></text>
|
||||||
<text class="collect">{{item.count_start}}</text>
|
<text class="collect">{{item.count_start}}</text>
|
||||||
</view>
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user