正在显示
20 个修改的文件
包含
444 行增加
和
30 行删除
@@ -36,6 +36,8 @@ | @@ -36,6 +36,8 @@ | ||
36 | "pages/myfeedback/myfeedback", | 36 | "pages/myfeedback/myfeedback", |
37 | "pages/myfeedback/myfeedback_active/myfeedback_active", | 37 | "pages/myfeedback/myfeedback_active/myfeedback_active", |
38 | "pages/myfeedback/myfeedback_duihuan/myfeedback_duihuan", | 38 | "pages/myfeedback/myfeedback_duihuan/myfeedback_duihuan", |
39 | + "pages/myfeedback/myfeedback_list/myfeedback_list", | ||
40 | + "pages/myfeedback_lists/myfeedback_lists", | ||
39 | "pages/mycertificate/mycertificate", | 41 | "pages/mycertificate/mycertificate", |
40 | "pages/myaddress/myaddress", | 42 | "pages/myaddress/myaddress", |
41 | "pages/myaddcompile/myaddcompile" | 43 | "pages/myaddcompile/myaddcompile" |
zhiyuanzhe/imgs/dingdan.png
0 → 100644
1.5 KB
zhiyuanzhe/imgs/dingdan1.png
0 → 100644
1.4 KB
zhiyuanzhe/imgs/dingdanliebaio.png
0 → 100644
33.2 KB
zhiyuanzhe/imgs/wancheng1.png
0 → 100644
687 字节
1 | - | ||
2 | -page{ | 1 | +page { |
3 | 2 | ||
4 | background-color: rgb(240, 240, 240); | 3 | background-color: rgb(240, 240, 240); |
5 | } | 4 | } |
5 | + | ||
6 | .goods_index { | 6 | .goods_index { |
7 | padding: 20rpx 0; | 7 | padding: 20rpx 0; |
8 | } | 8 | } |
9 | 9 | ||
10 | /* 导航条开始 */ | 10 | /* 导航条开始 */ |
11 | .navbar { | 11 | .navbar { |
12 | - padding : 0 62rpx; | 12 | + padding: 0 62rpx; |
13 | display: flex; | 13 | display: flex; |
14 | justify-content: space-around; | 14 | justify-content: space-around; |
15 | /* background : linear-gradient(136deg,#4e8fff 2%, #55c2fa); */ | 15 | /* background : linear-gradient(136deg,#4e8fff 2%, #55c2fa); */ |
@@ -51,16 +51,16 @@ page{ | @@ -51,16 +51,16 @@ page{ | ||
51 | } | 51 | } |
52 | 52 | ||
53 | /* 导航条结束 */ | 53 | /* 导航条结束 */ |
54 | -.goods_groups{ | 54 | +.goods_groups { |
55 | padding: 0 72rpx; | 55 | padding: 0 72rpx; |
56 | -height: 88rpx; | ||
57 | -line-height: 88rpx; | ||
58 | -display:flex; | ||
59 | -justify-content: space-between; | ||
60 | -color: #323233; | ||
61 | -font-size: 28rpx; | 56 | + height: 88rpx; |
57 | + line-height: 88rpx; | ||
58 | + display: flex; | ||
59 | + justify-content: space-between; | ||
60 | + color: #323233; | ||
61 | + font-size: 28rpx; | ||
62 | } | 62 | } |
63 | -.goods_groups view{ | ||
64 | 63 | ||
65 | - | ||
66 | -} | 64 | +.goods_groups view { |
65 | + width: 25%; | ||
66 | +} |
@@ -88,7 +88,12 @@ Page({ | @@ -88,7 +88,12 @@ Page({ | ||
88 | }) | 88 | }) |
89 | 89 | ||
90 | }, | 90 | }, |
91 | - | 91 | + // 我的志愿回馈 |
92 | + getmyfeedback() { | ||
93 | + wx.navigateTo({ | ||
94 | + url: '/pages/myfeedback_lists/myfeedback_lists', | ||
95 | + }) | ||
96 | + }, | ||
92 | // 管理条例 | 97 | // 管理条例 |
93 | getRule(e) { | 98 | getRule(e) { |
94 | wx.navigateTo({ | 99 | wx.navigateTo({ |
@@ -120,7 +120,7 @@ | @@ -120,7 +120,7 @@ | ||
120 | <view class='iconfont icon-xiangyou'></view> | 120 | <view class='iconfont icon-xiangyou'></view> |
121 | 121 | ||
122 | </view> | 122 | </view> |
123 | - <view class='my_item' bindtap="getfeedback"> | 123 | + <view class='my_item' bindtap="getmyfeedback"> |
124 | <view class='my_itemletf'> | 124 | <view class='my_itemletf'> |
125 | <view class='iconfont '> | 125 | <view class='iconfont '> |
126 | <image src="/imgs/ac11.png"></image> | 126 | <image src="/imgs/ac11.png"></image> |
@@ -66,7 +66,7 @@ Page({ | @@ -66,7 +66,7 @@ Page({ | ||
66 | }) | 66 | }) |
67 | }, | 67 | }, |
68 | 68 | ||
69 | - // 打卡 | 69 | + // 上岗打卡 |
70 | getpunch() { | 70 | getpunch() { |
71 | 71 | ||
72 | let that = this; | 72 | let that = this; |
@@ -83,9 +83,35 @@ Page({ | @@ -83,9 +83,35 @@ Page({ | ||
83 | console.log(d) | 83 | console.log(d) |
84 | app.post(url, d, head).then((res) => { | 84 | app.post(url, d, head).then((res) => { |
85 | console.log(res) | 85 | console.log(res) |
86 | - // that.setData({ | ||
87 | - // list: res | ||
88 | - // }) | 86 | + wx.showToast({ |
87 | + title: '打卡成功', | ||
88 | + }) | ||
89 | + | ||
90 | + }).catch((err) => { | ||
91 | + | ||
92 | + }) | ||
93 | + | ||
94 | + }, | ||
95 | + | ||
96 | + // 下岗打卡 | ||
97 | + getEnd() { | ||
98 | + | ||
99 | + let that = this; | ||
100 | + let url = '/index/second/endClock'; | ||
101 | + let head = { | ||
102 | + 'XX-Token': wx.getStorageSync('token') | ||
103 | + } | ||
104 | + let d = { | ||
105 | + id: that.data.id, | ||
106 | + | ||
107 | + | ||
108 | + } | ||
109 | + console.log(d) | ||
110 | + app.post(url, d, head).then((res) => { | ||
111 | + console.log(res) | ||
112 | + wx.showToast({ | ||
113 | + title: '打卡成功', | ||
114 | + }) | ||
89 | 115 | ||
90 | }).catch((err) => { | 116 | }).catch((err) => { |
91 | 117 |
@@ -10,29 +10,26 @@ | @@ -10,29 +10,26 @@ | ||
10 | <view class="myactivity_wrap"> | 10 | <view class="myactivity_wrap"> |
11 | <view class="myactivity_starttime"> | 11 | <view class="myactivity_starttime"> |
12 | <view>上岗打卡{{list.start_clock_time}}</view> | 12 | <view>上岗打卡{{list.start_clock_time}}</view> |
13 | - <view class="state" wx:if="{{list.status==0}}">未打卡</view> | ||
14 | - <view class="state" wx:if="{{list.status==1}}">已开始</view> | ||
15 | - <view class="state" wx:if="{{list.status==2}}">完成打开</view> | ||
16 | - <view class="state" wx:if="{{list.status==3}}">未完成</view> | 13 | + <view class="state">{{list.user_start_text}} {{list.start_status}}</view> |
14 | + <!-- <view class="state" wx:if="{{list.status==1}}">已开始</view> | ||
15 | + <view class="state" wx:if="{{list.status==2}}">完成打卡</view> | ||
16 | + <view class="state" wx:if="{{list.status==3}}">未完成</view> --> | ||
17 | </view> | 17 | </view> |
18 | <view class="myactivity_starttime"> | 18 | <view class="myactivity_starttime"> |
19 | <view>下岗打卡{{list.end_clock_time}}</view> | 19 | <view>下岗打卡{{list.end_clock_time}}</view> |
20 | - <view class="state" wx:if="{{list.status==0}}">未打卡</view> | ||
21 | - <view class="state" wx:if="{{list.status==1}}">已开始</view> | ||
22 | - <view class="state" wx:if="{{list.status==2}}">完成打卡</view> | ||
23 | - <view class="state" wx:if="{{list.status==3}}">未完成</view> | 20 | + <view class="state">{{list.user_end_text}} {{list.end_status}}</view> |
24 | </view> | 21 | </view> |
25 | </view> | 22 | </view> |
26 | - <view class="myactivity_start" bindtap="getpunch"> | 23 | + <view class="myactivity_start" bindtap="getpunch" wx:if="{{list.status==0}}"> |
27 | <view>上岗打卡</view> | 24 | <view>上岗打卡</view> |
28 | <view>12:00</view> | 25 | <view>12:00</view> |
29 | </view> | 26 | </view> |
30 | - <view class="myactivity_start" bindtap="getpunch"> | 27 | + <view class="myactivity_start" bindtap="getEnd" wx:if="{{list.status==1}}"> |
31 | <view>下岗打卡</view> | 28 | <view>下岗打卡</view> |
32 | <view>12:00</view> | 29 | <view>12:00</view> |
33 | </view> | 30 | </view> |
34 | 31 | ||
35 | - <view class="myactivity_end" > | 32 | + <view class="myactivity_end" wx:if="{{list.status==2}}"> |
36 | <image src="/imgs/wancheng.png"></image> | 33 | <image src="/imgs/wancheng.png"></image> |
37 | <view>已完成打卡</view> | 34 | <view>已完成打卡</view> |
38 | <view>感谢您参加本次公益活动 爱上一盏灯,照亮你我他</view> | 35 | <view>感谢您参加本次公益活动 爱上一盏灯,照亮你我他</view> |
@@ -74,9 +74,17 @@ | @@ -74,9 +74,17 @@ | ||
74 | address_id: that.data.datalist.id, | 74 | address_id: that.data.datalist.id, |
75 | remark:that.data.remark | 75 | remark:that.data.remark |
76 | }, head).then((res) => { | 76 | }, head).then((res) => { |
77 | + console.log(res) | ||
77 | wx.showToast({ | 78 | wx.showToast({ |
78 | title: '兑换成功', | 79 | title: '兑换成功', |
79 | }) | 80 | }) |
81 | + setTimeout(function () { | ||
82 | + wx.navigateTo({ | ||
83 | + url: '/pages/myfeedback/myfeedback_list/myfeedback_list' | ||
84 | + }) | ||
85 | + }, 1000) | ||
86 | + | ||
87 | + | ||
80 | 88 | ||
81 | }).catch((err) => { | 89 | }).catch((err) => { |
82 | 90 |
1 | +// pages/myfeedback/myfeedback_list/myfeedback_list.js | ||
2 | +Page({ | ||
3 | + | ||
4 | + /** | ||
5 | + * 页面的初始数据 | ||
6 | + */ | ||
7 | + data: { | ||
8 | + | ||
9 | + }, | ||
10 | + getanswer() { | ||
11 | + wx.navigateTo({ | ||
12 | + url: '/pages/myfeedback_lists/myfeedback_lists', | ||
13 | + }) | ||
14 | + | ||
15 | + }, | ||
16 | + | ||
17 | + /** | ||
18 | + * 生命周期函数--监听页面加载 | ||
19 | + */ | ||
20 | + onLoad: function (options) { | ||
21 | + | ||
22 | + }, | ||
23 | + | ||
24 | + /** | ||
25 | + * 生命周期函数--监听页面初次渲染完成 | ||
26 | + */ | ||
27 | + onReady: function () { | ||
28 | + | ||
29 | + }, | ||
30 | + | ||
31 | + /** | ||
32 | + * 生命周期函数--监听页面显示 | ||
33 | + */ | ||
34 | + onShow: function () { | ||
35 | + | ||
36 | + }, | ||
37 | + | ||
38 | + /** | ||
39 | + * 生命周期函数--监听页面隐藏 | ||
40 | + */ | ||
41 | + onHide: function () { | ||
42 | + | ||
43 | + }, | ||
44 | + | ||
45 | + /** | ||
46 | + * 生命周期函数--监听页面卸载 | ||
47 | + */ | ||
48 | + onUnload: function () { | ||
49 | + | ||
50 | + }, | ||
51 | + | ||
52 | + /** | ||
53 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
54 | + */ | ||
55 | + onPullDownRefresh: function () { | ||
56 | + | ||
57 | + }, | ||
58 | + | ||
59 | + /** | ||
60 | + * 页面上拉触底事件的处理函数 | ||
61 | + */ | ||
62 | + onReachBottom: function () { | ||
63 | + | ||
64 | + }, | ||
65 | + | ||
66 | + /** | ||
67 | + * 用户点击右上角分享 | ||
68 | + */ | ||
69 | + onShareAppMessage: function () { | ||
70 | + | ||
71 | + } | ||
72 | +}) |
1 | +<view class="list"> | ||
2 | + <image src="/imgs/dingdanliebaio.png"></image> | ||
3 | + <view class="list_post"> | ||
4 | + <view class="list_status">兑换申请提交成功 待审核</view> | ||
5 | + <view class="list_num"> | ||
6 | + <image src="/imgs/dingdan.png"></image> 订单编号:12345678910 | ||
7 | + </view> | ||
8 | + <view class="list_num"> | ||
9 | + <image src="/imgs/dingdan1.png"></image> 兑换时间:2020-02-21 13:0 | ||
10 | + </view> | ||
11 | + </view> | ||
12 | +</view> | ||
13 | + | ||
14 | + | ||
15 | +<view class="answer" bindtap="getanswer"> | ||
16 | + <button hover-class="none">我的兑换记录</button> | ||
17 | +</view> |
1 | +.list { | ||
2 | + margin: 24rpx 32rpx; | ||
3 | + | ||
4 | + | ||
5 | +} | ||
6 | + | ||
7 | +.list image { | ||
8 | + width: 100%; | ||
9 | + height: 446rpx; | ||
10 | + | ||
11 | +} | ||
12 | + | ||
13 | +.list_post { | ||
14 | + margin-top: -402rpx; | ||
15 | + | ||
16 | + | ||
17 | +} | ||
18 | + | ||
19 | +.list_status { | ||
20 | + margin-bottom: 114rpx; | ||
21 | + font-size: 48rpx; | ||
22 | + font-family: PingFangSC, PingFangSC-Semibold; | ||
23 | + font-weight: 600; | ||
24 | + text-align: center; | ||
25 | + line-height: 98rpx; | ||
26 | + color: #ffffff; | ||
27 | +} | ||
28 | +.list_num{ | ||
29 | + margin-left: 40rpx; | ||
30 | + margin-bottom: 48rpx; | ||
31 | + color: #969799; | ||
32 | + display: flex; | ||
33 | + align-items: center; | ||
34 | +} | ||
35 | +.list_num image{ | ||
36 | + width: 44rpx; | ||
37 | + height: 44rpx; | ||
38 | + margin-right: 16rpx; | ||
39 | + | ||
40 | +} | ||
41 | +.answer { | ||
42 | + width: 100%; | ||
43 | + height: 122rpx; | ||
44 | + position: fixed; | ||
45 | + bottom: 0; | ||
46 | + box-shadow: 0px -6px 15px 0px rgba(0, 67, 26, 0.06); | ||
47 | + display: flex; | ||
48 | + align-items: center; | ||
49 | + | ||
50 | +} | ||
51 | + | ||
52 | +button { | ||
53 | + width: 622rpx; | ||
54 | + height: 88rpx; | ||
55 | + color: #ffffff; | ||
56 | + font-size: 32rpx; | ||
57 | + background: linear-gradient(130deg, #2ed26e 13%, #05983e 98%); | ||
58 | + border-radius: 22px; | ||
59 | + box-shadow: 0px 9px 19px 0px rgba(0, 116, 45, 0.42); | ||
60 | +} |
1 | +const app = getApp() | ||
2 | +Page({ | ||
3 | + | ||
4 | + /** | ||
5 | + * 页面的初始数据 | ||
6 | + */ | ||
7 | + data: { | ||
8 | + nav: 0, | ||
9 | + list: '' | ||
10 | + }, | ||
11 | + | ||
12 | + bindNav(e) { | ||
13 | + var nav = e.currentTarget.dataset.nav | ||
14 | + console.log(nav) | ||
15 | + this.setData({ | ||
16 | + nav | ||
17 | + }) | ||
18 | + this.getList(); | ||
19 | + }, | ||
20 | + | ||
21 | + // 列表 | ||
22 | + getList() { | ||
23 | + | ||
24 | + let that = this; | ||
25 | + let url = '/index/second/orderList'; | ||
26 | + let head = { | ||
27 | + 'XX-Token': wx.getStorageSync('token') | ||
28 | + } | ||
29 | + let d = { | ||
30 | + type: that.data.nav | ||
31 | + } | ||
32 | + app.post(url, d, head).then((res) => { | ||
33 | + console.log(res) | ||
34 | + that.setData({ | ||
35 | + list: res | ||
36 | + }) | ||
37 | + | ||
38 | + }).catch((err) => { | ||
39 | + | ||
40 | + }) | ||
41 | + }, | ||
42 | + | ||
43 | + | ||
44 | + | ||
45 | + | ||
46 | + onLoad: function (options) { | ||
47 | + | ||
48 | + }, | ||
49 | + | ||
50 | + | ||
51 | + onReady: function () { | ||
52 | + | ||
53 | + }, | ||
54 | + | ||
55 | + onShow: function () { | ||
56 | + let that = this; | ||
57 | + that.getList(); | ||
58 | + | ||
59 | + | ||
60 | + }, | ||
61 | + | ||
62 | + | ||
63 | + onHide: function () { | ||
64 | + | ||
65 | + }, | ||
66 | + | ||
67 | + | ||
68 | + onUnload: function () { | ||
69 | + | ||
70 | + }, | ||
71 | + | ||
72 | + /** | ||
73 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
74 | + */ | ||
75 | + onPullDownRefresh: function () { | ||
76 | + | ||
77 | + }, | ||
78 | + | ||
79 | + /** | ||
80 | + * 页面上拉触底事件的处理函数 | ||
81 | + */ | ||
82 | + onReachBottom: function () { | ||
83 | + | ||
84 | + }, | ||
85 | + | ||
86 | + /** | ||
87 | + * 用户点击右上角分享 | ||
88 | + */ | ||
89 | + onShareAppMessage: function () { | ||
90 | + | ||
91 | + } | ||
92 | +}) |
1 | +<view class="navbar"> | ||
2 | + <view class="item {{nav==0?'choose':''}}" bindtap="bindNav" data-nav="{{0}}">待审核</view> | ||
3 | + <view class="item {{nav==1?'choose':''}}" bindtap="bindNav" data-nav="{{1}}">已发放志愿礼品</view> | ||
4 | +</view> | ||
5 | + | ||
6 | +<view wx:if="{{nav==0}}"> | ||
7 | + <view class="list" wx:for="{{list.data}}"> | ||
8 | + <view> | ||
9 | + <image src="{{item.pic}}"></image> | ||
10 | + </view> | ||
11 | + <view class="list_right"> | ||
12 | + <view>{{item.good_name}}</view> | ||
13 | + | ||
14 | + <view wx:if="{{item.status==0}}">待审核</view> | ||
15 | + <!-- <view wx:if="{{item.status==1}}">在审核</view> --> | ||
16 | + </view> | ||
17 | + </view> | ||
18 | +</view> | ||
19 | +<view wx:else> | ||
20 | + <view class="list" wx:for="{{list.data}}"> | ||
21 | + <view> | ||
22 | + <image src="{{item.pic}}"></image> | ||
23 | + </view> | ||
24 | + <view class="list_right"> | ||
25 | + <view>{{item.good_name}}</view> | ||
26 | + | ||
27 | + <!-- <view wx:if="{{item.status==0}}">待审核</view> --> | ||
28 | + <view wx:if="{{item.status==1}}">已发放</view> | ||
29 | + </view> | ||
30 | + </view> | ||
31 | + | ||
32 | +</view> |
1 | +page { | ||
2 | + background-color: rgb(240, 240, 240); | ||
3 | +} | ||
4 | + | ||
5 | +/* 导航条开始 */ | ||
6 | +.navbar { | ||
7 | + height: 88rpx; | ||
8 | + padding: 0 62rpx; | ||
9 | + display: flex; | ||
10 | + justify-content: space-around; | ||
11 | + /* background : linear-gradient(136deg,#4e8fff 2%, #55c2fa); */ | ||
12 | + background-color: #ffffff; | ||
13 | + font-size: 30rpx; | ||
14 | + color: #969799; | ||
15 | + border-radius: 2px 0px 0px 2px; | ||
16 | + | ||
17 | +} | ||
18 | + | ||
19 | +.navbar .item { | ||
20 | + width: 346rpx; | ||
21 | + height: 64rpx; | ||
22 | + line-height: 66rpx; | ||
23 | + font-size: 24rpx; | ||
24 | + position: relative; | ||
25 | + text-align: center; | ||
26 | + /* background-color: #FFC909; */ | ||
27 | + /* border-radius : 19px; */ | ||
28 | + | ||
29 | +} | ||
30 | + | ||
31 | +.navbar .item.choose { | ||
32 | + color: black; | ||
33 | + /* background: linear-gradient(136deg, #4e8fff 2%, #55c2fa); */ | ||
34 | + | ||
35 | +} | ||
36 | + | ||
37 | +.navbar .item.choose:after { | ||
38 | + content: ""; | ||
39 | + display: block; | ||
40 | + position: absolute; | ||
41 | + bottom: 0; | ||
42 | + left: 0; | ||
43 | + right: 0; | ||
44 | + width: 80rpx; | ||
45 | + height: 6rpx; | ||
46 | + background: #21AE58; | ||
47 | + margin: 0 auto; | ||
48 | +} | ||
49 | + | ||
50 | +.list { | ||
51 | + margin: 24rpx 34rpx; | ||
52 | + padding: 24rpx; | ||
53 | + display: flex; | ||
54 | + justify-content: space-between; | ||
55 | + background-color: #ffffff; | ||
56 | + border-radius: 24rpx; | ||
57 | + | ||
58 | +} | ||
59 | + | ||
60 | +.list image { | ||
61 | + width: 240rpx; | ||
62 | + height: 240rpx; | ||
63 | + | ||
64 | +} | ||
65 | + | ||
66 | +.list_right { | ||
67 | + padding: 24rpx; | ||
68 | + width: 374rpx; | ||
69 | + display: flex; | ||
70 | + flex-direction: column; | ||
71 | + justify-content: space-between; | ||
72 | +} | ||
73 | + | ||
74 | +.list_right :nth-child(1) { | ||
75 | + height: 80rpx; | ||
76 | + font-size: 28rpx; | ||
77 | + font-family: PingFangSC, PingFangSC-Regular; | ||
78 | + font-weight: 400; | ||
79 | + text-align: left; | ||
80 | + color: #323233; | ||
81 | + line-height: 40rpx; | ||
82 | +} | ||
83 | + | ||
84 | +.list_right :nth-child(2) { | ||
85 | + text-align: right; | ||
86 | + color: #21AE58; | ||
87 | + font-size: 32rpx; | ||
88 | + | ||
89 | +} |
@@ -261,6 +261,13 @@ | @@ -261,6 +261,13 @@ | ||
261 | "id": -1, | 261 | "id": -1, |
262 | "name": "编辑资料", | 262 | "name": "编辑资料", |
263 | "pathName": "pages/mydetail/mydetail", | 263 | "pathName": "pages/mydetail/mydetail", |
264 | + "query": "", | ||
265 | + "scene": null | ||
266 | + }, | ||
267 | + { | ||
268 | + "id": -1, | ||
269 | + "name": "工时兑换", | ||
270 | + "pathName": "pages/myfeedback/myfeedback_list/myfeedback_list", | ||
264 | "scene": null | 271 | "scene": null |
265 | } | 272 | } |
266 | ] | 273 | ] |
-
请 注册 或 登录 后发表评论