Commit 7645b4cf by 前端

Merge branch 'zhangxw_dev_3.0' into 'v3.0'

Zhangxw dev 3.0

See merge request !34
2 parents c6e2f5d0 35329746
...@@ -83,6 +83,22 @@ ...@@ -83,6 +83,22 @@
color: #C1C2C3; color: #C1C2C3;
} }
.list-nothing.to-bottom::after{
content: '- 到 底 了 -'
}
.list-loading{
width: 100%;
padding: 8rpx 0 30rpx;
text-align: center;
font-size: 28rpx;
color: #C1C2C3;
}
.list-loading::after{
content: '正在加载中'
}
.list-nothing .icon { .list-nothing .icon {
width: 320rpx; width: 320rpx;
height: 320rpx; height: 320rpx;
......
...@@ -90,6 +90,7 @@ ...@@ -90,6 +90,7 @@
padding: 24rpx 32rpx; padding: 24rpx 32rpx;
margin: 20rpx; margin: 20rpx;
height: 128rpx; height: 128rpx;
margin-bottom: 30rpx;
image{ image{
width: 128rpx; width: 128rpx;
height: 128rpx; height: 128rpx;
......
// packageActivity/pages/taskDetail/taskDetail.js // packageActivity/pages/taskDetail/taskDetail.js
import index_const from "~/pages/tab/index/index_const" import index_const from "~/pages/tab/index/index_const"
import ActivityApi from '~/api/activityApi/index' import ActivityApi from '~/api/activityApi/index'
import { IMG_URL } from "~/utils/constantData"
Page({ Page({
/** /**
...@@ -27,13 +26,15 @@ Page({ ...@@ -27,13 +26,15 @@ Page({
userStorage userStorage
}) })
if (Object.keys(options).length && options.missionId) { if (Object.keys(options).length && options.missionId) {
console.log(options)
id = options.missionId id = options.missionId
this.getActiveTaskDetail(id) this.getActiveTaskDetail(id)
} else {
wx.$router.getData(e => {
id = e.missionId
this.getActiveTaskDetail(id)
})
} }
wx.$router.getData(missionId => {
id = missionId
this.getActiveTaskDetail(id)
})
this.sharePath = `packageActivity/pages/shareTaskDetail/shareTaskDetail?missionId=${id}` this.sharePath = `packageActivity/pages/shareTaskDetail/shareTaskDetail?missionId=${id}`
}, },
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
border-radius: 12px; border-radius: 12px;
padding: 24rpx 32rpx; padding: 24rpx 32rpx;
height: 128rpx; height: 128rpx;
margin-bottom: 30rpx;
image{ image{
width: 128rpx; width: 128rpx;
height: 128rpx; height: 128rpx;
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
display: flex; display: flex;
flex-flow: column; flex-flow: column;
background: #fff; background: #fff;
justify-content: center;
align-items: center; align-items: center;
.time-box{ .time-box{
width: 100%; width: 100%;
......
...@@ -8,12 +8,18 @@ Component({ ...@@ -8,12 +8,18 @@ Component({
/** /**
* 组件的属性列表 * 组件的属性列表
*/ */
options: {
addGlobalClass: true
},
behaviors: [imgUrlMixin], behaviors: [imgUrlMixin],
properties: { properties: {
activeList: { activeList: {
type: Array, type: Array,
observer(newVal) { observer(newVal) {
} }
},
nothing: {
type: Boolean
} }
}, },
...@@ -106,7 +112,7 @@ Component({ ...@@ -106,7 +112,7 @@ Component({
filterJumpUrl(id) { filterJumpUrl(id) {
const userStorage = wx.$storage.get('userInfo') const userStorage = wx.$storage.get('userInfo')
return `${domain}/scrm-wx-merchant-activity/#/?id=${id}&merchantId=${userStorage.merchantId}&shareStaffUuid=${userStorage.uuid}&shareStaffName=${this.toUnicode(userStorage.name)}&shareStaffType=2&sharedTime=${Date.now()}` return `http://scrm.dev.glsx.com.cn/dj-scrm-wx-work-main-lwk/#/crowdfunding?id=${id}&merchantId=${userStorage.merchantId}&shareStaffUuid=${userStorage.uuid}&shareStaffName=${this.toUnicode(userStorage.name)}&shareStaffType=2&sharedTime=${Date.now()}`
}, },
// 分享活动(复制链接) // 分享活动(复制链接)
......
...@@ -33,4 +33,7 @@ ...@@ -33,4 +33,7 @@
</view> </view>
</view> </view>
</block> </block>
<block wx:if="{{nothing}}">
<view class="list-nothing to-bottom"></view>
</block>
</view> </view>
...@@ -8,11 +8,17 @@ Component({ ...@@ -8,11 +8,17 @@ Component({
/** /**
* 组件的属性列表 * 组件的属性列表
*/ */
options: {
addGlobalClass: true
},
behaviors: [imgUrlMixin], behaviors: [imgUrlMixin],
properties: { properties: {
activityList: { activityList: {
type: Array, type: Array,
value: [] value: []
},
nothing: {
type: Boolean
} }
}, },
......
...@@ -43,4 +43,7 @@ ...@@ -43,4 +43,7 @@
</view> </view>
</view> </view>
</block> </block>
<block wx:if="{{nothing}}">
<view class="list-nothing to-bottom"></view>
</block>
</view> </view>
...@@ -161,6 +161,10 @@ Page({ ...@@ -161,6 +161,10 @@ Page({
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh: function () { onPullDownRefresh: function () {
this.setData({
activePageNum: 1,
pageNum: 1
})
this.getData(true) this.getData(true)
}, },
......
...@@ -4,6 +4,6 @@ ...@@ -4,6 +4,6 @@
"activity-diagnosis": "./components/activityDiagnosis/activityDiagnosis" "activity-diagnosis": "./components/activityDiagnosis/activityDiagnosis"
}, },
"navigationStyle": "custom", "navigationStyle": "custom",
"onReachBottomDistance": 10, "onReachBottomDistance": 100,
"enablePullDownRefresh": true "enablePullDownRefresh": true
} }
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
} }
.layout { .layout {
position: relative; position: relative;
.bg-box { .bg-box {
width: 100%; width: 100%;
overflow: hidden; overflow: hidden;
...@@ -26,7 +26,8 @@ ...@@ -26,7 +26,8 @@
} }
} }
.content { .content {
position: relative; position: relative;
overflow: hidden;
.tab-box { .tab-box {
display: flex; display: flex;
height: 112rpx; height: 112rpx;
......
...@@ -24,13 +24,13 @@ ...@@ -24,13 +24,13 @@
<!-- 活动中 --> <!-- 活动中 -->
<view class="active-content" hidden="{{tabIndex != 0}}"> <view class="active-content" hidden="{{tabIndex != 0}}">
<block> <block>
<active-box activeList="{{activeList}}"></active-box> <active-box activeList="{{activeList}}" nothing="{{nothing}}"></active-box>
</block> </block>
</view> </view>
<!-- 活动诊断 --> <!-- 活动诊断 -->
<view class="activity-diag-content" hidden="{{tabIndex != 1}}"> <view class="activity-diag-content" hidden="{{tabIndex != 1}}">
<block> <block>
<activity-diagnosis activityList="{{activityEndList}}"></activity-diagnosis> <activity-diagnosis activityList="{{activityEndList}}" nothing="{{nothing}}"></activity-diagnosis>
</block> </block>
</view> </view>
</view> </view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!