Blame view

pages/projectManagement/projectManagement.vue 2.78 KB
4dfe89e4   monkeyhouyi   初始化
1
2
3
4
5
6
7
  <template>
  	<view class="page">
  		<!-- 搜索 -->
  		<view class="head-search">
  			<view class="search">
  					<input class="uni-input"  placeholder="请输入关键词" />
  				<view class="icon">
c62ab6f2   杨鑫   1
8
  					<image :src="$imgUrl('/search.png')"  ></image>
4dfe89e4   monkeyhouyi   初始化
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
  				</view>
  				
  			</view>
  		</view>
  		<!-- 创建按钮 -->
  		<!-- <view class="page-footer" @click="createWen">
  		  <view class="footer-buy">
  		    <view class="cart-add">
  		      <text>创建活动</text>
  		    </view>
  		  </view>
  		</view> -->
  		
  		<view class="screen-list">
  			<view :class="listIn == index ?'color':''" @click="sel(index)" v-for="(item,index) in shenlist">{{item}}</view>
  		</view>
  		<!-- 订单列表 -->
  		<view class="goods-data">
  			<view class="goods-list">
  				<view  class="goods-border" v-for="(item,index) in tableData" :key="index">
  					<view class="list ">
  						<view class="thumb">
c62ab6f2   杨鑫   1
31
  							<image :src="item.coverImage || $imgUrl('/img/2.jpg')" mode=""></image>
4dfe89e4   monkeyhouyi   初始化
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
  						</view>
  						<view class="item">
  							<view class="">
  								<text class="one-omit">方案编号:{{item.id}}</text>
  							</view>
  							<view class="title">
  								<text class="one-omit color">方案标题:{{item.schemeTitle}}</text>
  							</view>
  							<view class="title">
  								<text class="one-omit color">创建者:{{item.createUser}}</text>
  							</view>
  							<view class="title">
  								<text class="one-omit color">创建时间:{{item.createDate}}</text>
  							</view>
  							<view class="title">
  								<text class="one-omit color">投放渠道:{{item.promotionContent}}</text>
  							</view>
  						</view>
  					</view>
  				<view class="canyu">
  					<view class="bj" @click="edit(item)">编辑</view>
  					<view class="tij">提交审核</view>
  					<!-- <view class="xq">查看详情</view> -->
  					<view class="close" @click="del(item.id)">删除</view>
  				</view>
  				</view>
  			
  			</view>
  		</view>
  	</view>
  </template>
  
  <script>
  	export default {
  		data() {
  			return {
  				shenlist:['全部'],
  				listIn:0,
  				tableData:[],
  				pageindex: {
  					pageNumber: 1,
  					pageSize: 10
  				},
  			};
  		},
  		mounted(){
  			this.getALL()
  		},
  		methods: {
  			getALL(){
  				  this.pageindex.createUser =uni.getStorageSync('shopId')
  				this.$http.sendRequest('/cerePromotion/queryByPage', 'POST', this.pageindex,1).then(res => {
  					//成功回调
  					this.tableData = res.data.data.content
  				})
  			},
  			sel(val){
  				this.listIn = val
  			},
  			reconciliationdetail() {
  	
  			},
  			del(ids){
  				this.$http.sendRequest('/cerePromotion/deleteById', 'POST', {id:ids},1).then(res => {
  					//成功回调
  					this.getALL()
  				})
  			},
  			edit(item){
  				let val = JSON.stringify(item)
  				uni.navigateTo({
  					url:`/pages/application/application?item=${val}`
  				})
  			}
  		}
  	}
  </script>
  
  <style scoped lang="scss">
  	@import 'projectManagement.scss';
  </style>