|
@@ -16,10 +16,10 @@ Page({
|
|
|
}, {
|
|
|
name: '待开始',
|
|
|
value: '02'
|
|
|
- },{
|
|
|
+ }, {
|
|
|
name: '进行中',
|
|
|
value: '03'
|
|
|
- },{
|
|
|
+ }, {
|
|
|
name: '已完成',
|
|
|
value: '04'
|
|
|
}],
|
|
@@ -51,7 +51,7 @@ Page({
|
|
|
workFreezeTime: 0
|
|
|
},
|
|
|
|
|
|
- switchType(e) {
|
|
|
+ switchType (e) {
|
|
|
if (e) {
|
|
|
let typeListIndex = e.currentTarget.dataset.index;
|
|
|
this.setData({
|
|
@@ -73,7 +73,7 @@ Page({
|
|
|
this.getFreezesHour();
|
|
|
},
|
|
|
|
|
|
- seeDetails(e) {
|
|
|
+ seeDetails (e) {
|
|
|
if (e.currentTarget.dataset) {
|
|
|
wx.navigateTo({
|
|
|
url: '/pages/home/index/partDetail/partDetail?id=' + e.currentTarget.dataset.id,
|
|
@@ -81,7 +81,7 @@ Page({
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- loadList(isRefresh) {
|
|
|
+ loadList (isRefresh) {
|
|
|
let that = this;
|
|
|
if (!isRefresh && this.data.noMore) {
|
|
|
wx.showToast({
|
|
@@ -96,7 +96,7 @@ Page({
|
|
|
params: {
|
|
|
...this.data.params,
|
|
|
page: isRefresh ? 1 : this.data.params.page + 1,
|
|
|
- newType: `0${this.data.typeListIndex+1}`,
|
|
|
+ newType: `0${this.data.typeListIndex + 1}`,
|
|
|
}
|
|
|
})
|
|
|
wx.showLoading({
|
|
@@ -105,6 +105,9 @@ Page({
|
|
|
app._post_form('work/mylistNew', '', this.data.params,
|
|
|
function (res) {
|
|
|
if (res.code == 0) {
|
|
|
+ res.data.list.map(v => {
|
|
|
+ v.work.tags = [{ tag: '11' }, { tag: '11' }, { tag: '11' }]
|
|
|
+ })
|
|
|
if (res.data.list.length > 0 && that.data.listData.length > 0 && res.data.list[0].id == that.data.listData[0].id) {
|
|
|
return;
|
|
|
}
|
|
@@ -119,7 +122,7 @@ Page({
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- calltech(e) {
|
|
|
+ calltech (e) {
|
|
|
if (e.currentTarget.dataset.tel == null || e.currentTarget.dataset.tel == "") {
|
|
|
wx.showModal({
|
|
|
title: '温馨提示',
|
|
@@ -130,7 +133,7 @@ Page({
|
|
|
wx.showModal({
|
|
|
title: '温馨提示',
|
|
|
content: '是否联系该兼职的老师?',
|
|
|
- success(res) {
|
|
|
+ success (res) {
|
|
|
if (res.confirm) {
|
|
|
wx.makePhoneCall({
|
|
|
phoneNumber: e.currentTarget.dataset.tel
|
|
@@ -143,12 +146,12 @@ Page({
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- cancel(e) {
|
|
|
+ cancel (e) {
|
|
|
let _this = this
|
|
|
wx.showModal({
|
|
|
title: '温馨提示',
|
|
|
content: `十分钟内可取消兼职;超过十分钟取消兼职账号将冻结${_this.data.workFreezeTime}小时,是否取消?`,
|
|
|
- success(res) {
|
|
|
+ success (res) {
|
|
|
if (res.confirm) {
|
|
|
if (e.currentTarget.dataset) {
|
|
|
let parm = {
|
|
@@ -169,7 +172,7 @@ Page({
|
|
|
}
|
|
|
)
|
|
|
}
|
|
|
- } else if (res.cancel) {}
|
|
|
+ } else if (res.cancel) { }
|
|
|
}
|
|
|
})
|
|
|
|
|
@@ -181,7 +184,7 @@ Page({
|
|
|
onReady: function () {
|
|
|
|
|
|
},
|
|
|
- comment(e) {
|
|
|
+ comment (e) {
|
|
|
if (e.currentTarget.dataset.isappraise) {
|
|
|
wx.showToast({
|
|
|
title: '您已经评价过了~',
|
|
@@ -235,7 +238,7 @@ Page({
|
|
|
onShareAppMessage: function () {
|
|
|
|
|
|
},
|
|
|
- getFreezesHour() {
|
|
|
+ getFreezesHour () {
|
|
|
let that = this;
|
|
|
app._post_form('wgfillinfo/apiSelectwgfillinfo', '', this.data.params,
|
|
|
function (res) {
|