体验官修改

This commit is contained in:
2023-08-01 16:36:48 +08:00
parent c41b852aaf
commit f14cbac816
15 changed files with 59 additions and 36 deletions

View File

@@ -100,8 +100,6 @@ Page({
this.setData({
exchangesHide: false
})
wx.redirectTo({
url: '/pages/user/index'
})
wx.navigateBack()
}
})

View File

@@ -69,7 +69,7 @@
<view class="refertoEject {{exchangesHide ? 'active' : ''}}" catchtouchmove='true'></view>
<view class="refertoCont {{exchangesHide ? 'active' : ''}}" catchtouchmove='true'>
<image class="refertoCont-img" src="https://cdn.shuiganying.com/images/2023/07/21/9c9f4fa4b00d825bf3eeb83df7a4b76e.png" mode="widthFix"></image>
<view class="refertoCont-name" hover-class="none" url="/pages/index/assess/assess?type=1" open-type="redirectTo" bindtap="refertoTap">
<view class="refertoCont-name" bindtap="refertoTap">
<text>收下啦 ~</text>
</view>
<image class="refertoCont-close" bindtap="refertoTap" src="https://cdn.shuiganying.com/images/2023/07/07/f9975891c1efa9b5fcd59fe33a75ed60.png" mode="widthFix"></image>

View File

@@ -254,7 +254,7 @@ button[disabled]{
height: 100vh;
left: 0;
top: 0;
background-color: rgba(0, 0, 0, .6);
background-color: rgba(0, 0, 0, .8);
z-index: 1000;
display: none;
}

View File

@@ -444,5 +444,11 @@ Page({
wx.navigateTo({
url: '/pages/index/assess/assess?type=2'
})
},
onHide(){
this.setData({
followState: false
})
}
})

View File

@@ -439,7 +439,7 @@
<view class="followText" wx:else>
<view class="weChat-title">关注公众号</view>
<image class="weChat-close" src="/static/icons/uricacidClose.png" bindtap="tapGo"></image>
<image class="weChat-img" src="{{recruitData.official_code}}" mode="widthFix" show-menu-by-longpress="true"></image>
<image class="weChat-img" src="{{recruitData.official_code}}" mode="widthFix" show-menu-by-longpress="true" bindtap="previewImage"></image>
<view class="weChat-text"><text>请关注”水感应“公众号</text><text>以便收到活动通知</text></view>
<view class="weChat-tips"><text>请长按识别二维码关注公众号</text></view>
</view>

View File

@@ -25,11 +25,7 @@ Page({
/**
* 生命周期函数--监听页面加载
*/
onLoad() {
wx.showLoading({
title: '请求中...',
})
},
onLoad() {},
// 切换城市
changeCity(){
this.setData({

View File

@@ -1,5 +1,5 @@
<view class="changeBgFixed" bindtap="changeStyle">
{{codeType == 'city' && !styleShow ?'切换城市':styleShow ?'关闭切换':'切换背景'}}
{{codeType == 'city' && !styleShow ?'切换海报':styleShow ?'关闭切换':'切换海报'}}
</view>
<view class="changeBg" wx:if="{{styleShow}}">
@@ -55,5 +55,5 @@
<view class="pack-center pages-hint pages-load" wx:if="{{loading}}">
<image src="/static/icons/loadingGif.gif"></image>
<view>数据加载中...</view>
<view>数据加载中,请耐心等待...</view>
</view>

View File

@@ -31,25 +31,19 @@
<view class="site-input">
<!-- <label>收货地址 <text wx:if="{{areaData.surplus > 0}}">({{'此地区剩余名额' + areaData.surplus + '人'}})</text></label> -->
<view class="site-input">
<label>所在省份</label>
<picker bindchange="areasChange" value="{{areaIndex}}" range="{{areasArr}}" range-key="name">
<label>收货地址</label>
<picker bindchange="areasChange" value="{{areaIndex}}" range="{{areasArr}}" range-key="name" class="conneColor">
<view class="picker">
{{ areasArr[areaIndex].name }}
</view>
<image src="/static/icons/orderArrow.png"></image>
</picker>
</view>
<view class="site-input">
<label>所在城市 <text wx:if="{{areaData.surplus > 0}}">({{'此地区剩余名额' + areaData.surplus + '人'}})</text></label>
<picker bindchange="cityDrop" value="{{cityIndex}}" range="{{cityArr}}" range-key="name" class="conneColor">
<view class="picker">
{{ cityArr[cityIndex].name }}
</view>
<image src="/static/icons/orderArrow.png"></image>
</picker>
</view>
<view class="site-input">
<label>所在区域</label>
<picker bindchange="regiDrop" value="{{regiIndex}}" range="{{regiArr}}" range-key="name" class="conneColor">
<view class="picker">
{{ regiArr[regiIndex].name }}
@@ -61,6 +55,9 @@
<view class="site-input">
<input placeholder="请输入详细的收货地址" name="address" type="text"></input>
</view>
<view class="surplus" wx:if="{{areaData.surplus > 0}}">
({{'此地区剩余名额' + areaData.surplus + '人'}})
</view>
<view class="site-btn" wx:if="{{areaData.surplus != 0}}">
<button form-type="submit" size="mini" disabled="{{disabled}}">提交申请</button>
</view>

View File

@@ -124,6 +124,16 @@ page {
margin-bottom: 30rpx;
}
.site-input picker {
margin-bottom: 30rpx;
position: relative;
}
.surplus {
text-align: center;
color: #db0000;
}
.site-input label text {
color: #ee291b;
}
@@ -166,7 +176,7 @@ page {
height: 44rpx;
position: absolute;
right: 20rpx;
top: calc(50% + 22rpx);
top: calc(50% - 22rpx);
}
.site-btn {

View File

@@ -50,11 +50,10 @@ Page({
*/
eitInfo(id) {
wx.$api.recruit.Edit(id).then(res => {
console.log(res)
let typeValue = res.data.types.findIndex(val=> val.experience_type_id == res.data.enroll.experience_type.experience_type_id)
let areasValue = res.data.provinces.findIndex(val=> val.name == res.data.province.name),
cityValue = res.data.cities.findIndex(val=> val.name == res.data.city.name),
regiValue = res.data.districts.findIndex(val=> val.name == res.data.district.name)
let areasValue = res.data.provinces.findIndex(val=> val.name == res.data.express.province.name),
cityValue = res.data.cities.findIndex(val=> val.name == res.data.express.city.name),
regiValue = res.data.districts.findIndex(val=> val.name == res.data.express.district.name)
this.setData({
enrollData : res.data.enroll,
typesIndex : typeValue,
@@ -65,9 +64,9 @@ Page({
areaIndex : areasValue,
cityIndex : cityValue,
regiIndex : regiValue,
areaId : res.data.province.region_id,
cityId : res.data.city.region_id,
regiId : res.data.district.region_id,
areaId : res.data.express.province.region_id,
cityId : res.data.express.city.region_id,
regiId : res.data.express.district.region_id
})
}).catch(err => {})
},
@@ -188,7 +187,10 @@ Page({
let data = {
name : value.name,
address : value.address,
experience_type_id : this.data.typesArr[this.data.typesIndex].experience_type_id
experience_type_id : this.data.typesArr[this.data.typesIndex].experience_type_id,
province_id : this.data.areaId,
city_id : this.data.cityId,
district_id : this.data.regiId,
}
this.setData({
disabled: true

View File

@@ -45,7 +45,7 @@
</view>
<view class="reserve-label">
<view class="reserve-name">使用水滴</view>
<view class="reserve-text reserve-price">{{goodsData.water_number}}</view>
<view class="reserve-text reserve-price">{{goodsData.water_number}}</view>
</view>
</view>