|
@@ -65,16 +65,16 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
- <view class="account">
|
|
|
|
- <view class="account_txt" @click="editAccount(item)">
|
|
|
|
|
|
+ <view class="account" @click="editAccount()">
|
|
|
|
+ <view class="account_txt">
|
|
<image :src="project.PlatformInfo.platform_icon" mode=""></image>
|
|
<image :src="project.PlatformInfo.platform_icon" mode=""></image>
|
|
<span>{{account.platform_nickname}}</span>
|
|
<span>{{account.platform_nickname}}</span>
|
|
</view>
|
|
</view>
|
|
<view class="account_fans">
|
|
<view class="account_fans">
|
|
- <p style="padding-right: 20rpx;color:#A8A8A8;">粉丝数</p>
|
|
|
|
|
|
+ <p style="padding-right: 20rpx;color:#000;">粉丝数</p>
|
|
<p>{{account.show_fans_count}}</p>
|
|
<p>{{account.show_fans_count}}</p>
|
|
</view>
|
|
</view>
|
|
- <view class="account_btn" @click="editAccount(item)">
|
|
|
|
|
|
+ <view class="account_btn">
|
|
<image :src="picture.togoimg" mode="" style="width: 16rpx;height: 30rpx;"></image>
|
|
<image :src="picture.togoimg" mode="" style="width: 16rpx;height: 30rpx;"></image>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -208,12 +208,12 @@
|
|
},
|
|
},
|
|
editAddress() {
|
|
editAddress() {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
- url: '/pages/mycenter/addlocation?address_id=' + this.address.address_id + '&ismodify=1'
|
|
|
|
|
|
+ url: '/pages/mycenter/myinformation/addlocation?address_id=' + this.address.address_id + '&ismodify=1'
|
|
});
|
|
});
|
|
},
|
|
},
|
|
editAccount() {
|
|
editAccount() {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
- url: '/pages/mycenter/bindaccount?platform_id=' + this.account.platform_id + '&account_id=' +
|
|
|
|
|
|
+ url: '/pages/mycenter/myinformation/bindaccount?platform_id=' + this.account.platform_id + '&account_id=' +
|
|
this.account.account_id
|
|
this.account.account_id
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -225,7 +225,7 @@
|
|
// 提交确认报名
|
|
// 提交确认报名
|
|
submit() {
|
|
submit() {
|
|
console.log(this.project)
|
|
console.log(this.project)
|
|
- // 1. 判断任务是否截止
|
|
|
|
|
|
+ // 1. 判断任务是否截止
|
|
this.$https.get('/youngee/c/t/g/get-project-detail' +
|
|
this.$https.get('/youngee/c/t/g/get-project-detail' +
|
|
"?" +
|
|
"?" +
|
|
"projectid" +
|
|
"projectid" +
|
|
@@ -249,24 +249,32 @@
|
|
});
|
|
});
|
|
}
|
|
}
|
|
})
|
|
})
|
|
-
|
|
|
|
- // 2. 插入一条任务
|
|
|
|
- this.$https.post('/youngee/c/t/p/sign-up-task', {
|
|
|
|
- address_id: this.address.address_id,
|
|
|
|
- project_id: this.project.project_id,
|
|
|
|
- strategy_id: this.strategy.strategy_id,
|
|
|
|
- offer: this.strategy.offer,
|
|
|
|
- }).then(res => {
|
|
|
|
- if (res.data.code == 0) {
|
|
|
|
- var data = {
|
|
|
|
- task_id: res.data.data
|
|
|
|
- };
|
|
|
|
- data = JSON.stringify(data)
|
|
|
|
- uni.navigateTo({
|
|
|
|
- url: '/pages/tasksquare/success?textObj=' + encodeURIComponent(data)
|
|
|
|
|
|
+ // 2. 判断粉丝量是否符合条件
|
|
|
|
+ if (this.account.fans_count < this.strategy.followers_low) {
|
|
|
|
+ // 招募截止
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: "粉丝量不达标",
|
|
|
|
+ duration: 1000,
|
|
});
|
|
});
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ }else{
|
|
|
|
+ // 3. 插入一条任务
|
|
|
|
+ this.$https.post('/youngee/c/t/p/sign-up-task', {
|
|
|
|
+ address_id: this.address.address_id,
|
|
|
|
+ project_id: this.project.project_id,
|
|
|
|
+ strategy_id: this.strategy.strategy_id,
|
|
|
|
+ offer: this.strategy.offer,
|
|
|
|
+ }).then(res => {
|
|
|
|
+ if (res.data.code == 0) {
|
|
|
|
+ var data = {
|
|
|
|
+ task_id: res.data.data
|
|
|
|
+ };
|
|
|
|
+ data = JSON.stringify(data)
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: '/pages/tasksquare/success?textObj=' + encodeURIComponent(data)
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
},
|
|
},
|
|
// 信息表
|
|
// 信息表
|
|
getInfoList() {
|
|
getInfoList() {
|
|
@@ -342,7 +350,7 @@
|
|
margin: 30rpx 40rpx 0;
|
|
margin: 30rpx 40rpx 0;
|
|
|
|
|
|
.keyInfo_task {
|
|
.keyInfo_task {
|
|
- color: #999999;
|
|
|
|
|
|
+ color: #000;
|
|
|
|
|
|
.keyInfo_task_txt {
|
|
.keyInfo_task_txt {
|
|
// border: 1rpx solid #CCCCCC;
|
|
// border: 1rpx solid #CCCCCC;
|