|
@@ -5,9 +5,9 @@
|
|
<view class="image" v-if="false">
|
|
<view class="image" v-if="false">
|
|
<u-image width="100%" height="200rpx" :src="src" border-radius="16"></u-image>
|
|
<u-image width="100%" height="200rpx" :src="src" border-radius="16"></u-image>
|
|
</view>
|
|
</view>
|
|
- <view class="tabs" v-if="false">
|
|
|
|
|
|
+ <view class="tabs" >
|
|
<u-tabs bar-width="60" :bold="false" inactive-color="#B3B3B3" active-color="#333333" height="88"
|
|
<u-tabs bar-width="60" :bold="false" inactive-color="#B3B3B3" active-color="#333333" height="88"
|
|
- :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs>
|
|
|
|
|
|
+ :list="tabList" :is-scroll="false" :current="current" @change="change"></u-tabs>
|
|
</view>
|
|
</view>
|
|
<!-- 分享内容 -->
|
|
<!-- 分享内容 -->
|
|
<view class="share-content">
|
|
<view class="share-content">
|
|
@@ -27,7 +27,10 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="share-text">
|
|
<view class="share-text">
|
|
- {{item.synopsis}}
|
|
|
|
|
|
+ <textarea placeholder="记录点滴生活..." :auto-height="true"
|
|
|
|
+ v-model="item.synopsis" readonly maxlength="200"
|
|
|
|
+ name="" id="" ></textarea>
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
<view class="pictures" >
|
|
<view class="pictures" >
|
|
<template v-for="(pic,i2) in item.listShareFiles" v-if="pic.url">
|
|
<template v-for="(pic,i2) in item.listShareFiles" v-if="pic.url">
|
|
@@ -42,10 +45,10 @@
|
|
|
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
- <view class="tag" :class="item.activityId" >
|
|
|
|
|
|
+ <view class="tag" :class="item.activityId" @click="issueMethod(item.activityId)" >
|
|
<text class="symbol">#</text>
|
|
<text class="symbol">#</text>
|
|
<text class="text">{{item.activityName}}</text>
|
|
<text class="text">{{item.activityName}}</text>
|
|
- <text class="icon" @click="gotoUrl('pages/mine/issue?id='+item.activityId)" >
|
|
|
|
|
|
+ <text class="icon" >
|
|
<u-icon size="28" color="#cccccc" name="arrow-right"></u-icon>
|
|
<u-icon size="28" color="#cccccc" name="arrow-right"></u-icon>
|
|
</text>
|
|
</text>
|
|
</view>
|
|
</view>
|
|
@@ -56,7 +59,7 @@
|
|
</view>
|
|
</view>
|
|
<u-divider :isnone="list.length==0" nonetext="没有找到相关内容" border-color="#CFD2D5">已经到底了</u-divider>
|
|
<u-divider :isnone="list.length==0" nonetext="没有找到相关内容" border-color="#CFD2D5">已经到底了</u-divider>
|
|
|
|
|
|
- <view class="bottom" @click="gotoUrl('pages/mine/issue?nic=1')" >
|
|
|
|
|
|
+ <view class="bottom" @click="issueMethod()" >
|
|
<img src="../../assets/img/riFill-camera-fill@2x.png">
|
|
<img src="../../assets/img/riFill-camera-fill@2x.png">
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -64,7 +67,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import * as API from '@/apis/pagejs/share.js'
|
|
import * as API from '@/apis/pagejs/share.js'
|
|
-
|
|
|
|
|
|
+
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -75,23 +78,14 @@
|
|
},
|
|
},
|
|
list:[],
|
|
list:[],
|
|
recordsTotal:0,
|
|
recordsTotal:0,
|
|
- tabList: [{
|
|
|
|
- name: '全部'
|
|
|
|
- }, {
|
|
|
|
- name: '体育健身'
|
|
|
|
- }, {
|
|
|
|
- name: '摄影摄像',
|
|
|
|
- }, {
|
|
|
|
- name: '书法绘画',
|
|
|
|
- }, {
|
|
|
|
- name: '其他',
|
|
|
|
- }],
|
|
|
|
|
|
+ tabList: [],
|
|
current: 0
|
|
current: 0
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad(op){
|
|
onLoad(op){
|
|
this.carhelp.set("addShare",0);
|
|
this.carhelp.set("addShare",0);
|
|
this.getList()
|
|
this.getList()
|
|
|
|
+ this.dataList()
|
|
},
|
|
},
|
|
onReachBottom() {
|
|
onReachBottom() {
|
|
if (this.list.length < this.recordsTotal) {
|
|
if (this.list.length < this.recordsTotal) {
|
|
@@ -107,6 +101,35 @@
|
|
|
|
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ issueMethod(id){
|
|
|
|
+
|
|
|
|
+ var userInfo=this.carhelp.getPersonInfo()
|
|
|
|
+
|
|
|
|
+ if(!userInfo){
|
|
|
|
+ uni.showModal({
|
|
|
|
+ title:"提示",
|
|
|
|
+ content:"未登录,登录后参与分享活动",
|
|
|
|
+ confirmText:"前往登录",
|
|
|
|
+ showCancel:true,
|
|
|
|
+ success: function (res) {
|
|
|
|
+ if(res.confirm){
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url:'/pages/login/index'
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }else{
|
|
|
|
+ if(id){
|
|
|
|
+ this.gotoUrl('pages/mine/issue?id='+id)
|
|
|
|
+ }else{
|
|
|
|
+ this.gotoUrl('pages/mine/issue?nic=1')
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ },
|
|
previewImage(img,i) {
|
|
previewImage(img,i) {
|
|
let imgs = [];
|
|
let imgs = [];
|
|
img.forEach(it=>{
|
|
img.forEach(it=>{
|
|
@@ -123,6 +146,23 @@
|
|
},
|
|
},
|
|
ckItem(item){
|
|
ckItem(item){
|
|
|
|
|
|
|
|
+ },
|
|
|
|
+ dataList(){
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ API.dataList("活动类型").then((res) => {
|
|
|
|
+
|
|
|
|
+ this.tabList=[
|
|
|
|
+ {
|
|
|
|
+ id:'',
|
|
|
|
+ name:'全部'
|
|
|
|
+ },
|
|
|
|
+ ...res.data
|
|
|
|
+ ]
|
|
|
|
+ console.log()
|
|
|
|
+ }).catch(error => {
|
|
|
|
+
|
|
|
|
+ })
|
|
},
|
|
},
|
|
getList(){
|
|
getList(){
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
@@ -157,6 +197,10 @@
|
|
},
|
|
},
|
|
change(index) {
|
|
change(index) {
|
|
this.current = index;
|
|
this.current = index;
|
|
|
|
+
|
|
|
|
+ this.listForm.pageIndex = 1;
|
|
|
|
+ this.listForm.type=this.tabList[index].id
|
|
|
|
+ this.getList()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|