Browse Source

上传修改

master
前端-胡立永 2 months ago
parent
commit
867ee16cf7
16 changed files with 152 additions and 85 deletions
  1. +17
    -17
      components/config/customerServicePopup.vue
  2. +2
    -0
      main.js
  3. +2
    -2
      mixins/configList.js
  4. +3
    -1
      pages/index/center.vue
  5. +5
    -2
      pages/index/index.vue
  6. +6
    -6
      pages/index/keepAccounts.vue
  7. +4
    -1
      pages_order/kepp/MechanicProblem.vue
  8. +44
    -5
      pages_order/mine/GainPoints.vue
  9. +1
    -0
      pages_order/mine/IntegralRecord.vue
  10. +9
    -1
      pages_order/mine/InvitationCredit.vue
  11. +52
    -43
      pages_order/mine/MemberRecharge.vue
  12. +2
    -2
      pages_order/mine/contactRecord.vue
  13. +1
    -1
      pages_order/mine/promotion.vue
  14. +2
    -2
      pages_order/mine/setting.vue
  15. +1
    -1
      pages_order/work/addResume.vue
  16. +1
    -1
      store/store.js

+ 17
- 17
components/config/customerServicePopup.vue View File

@ -1,10 +1,12 @@
<template> <template>
<!-- 联系客服弹框 --> <!-- 联系客服弹框 -->
<uv-overlay :show="show" @click="close">
<uv-popup ref="popup"
:safeAreaInsetBottom="false"
:round="30">
<view class="warp"> <view class="warp">
<view class="rect" @tap.stop> <view class="rect" @tap.stop>
<view class="title">联系客服</view>
<view class="center">确定拨打客服电话?</view>
<view class="title">联系{{ bTitle || title }}</view>
<view class="center">确定拨打{{ bTitle || title }}电话?</view>
<view class="bottom"> <view class="bottom">
<view class="btn1" <view class="btn1"
@click="close"> @click="close">
@ -17,37 +19,35 @@
</view> </view>
</view> </view>
</view> </view>
</uv-overlay>
</uv-popup>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
show: false,
phone:'', phone:'',
title : '客服',
bPhone : '',
bTitle : '',
} }
}, },
onLoad() {
this.getCustomPhone()
mounted() {
}, },
methods: { methods: {
getCustomPhone(){
this.$api('customUser', {}, res => {
this.phone = res.result.phone
})
},
open() {
this.show = true
open(phone, title) {
this.bPhone = phone || this.phone || this.configList.config_service_phone
this.bTitle = title || this.title
this.$refs.popup.open()
}, },
close() { close() {
this.show = false
this.$refs.popup.close()
}, },
// //
confirm() { confirm() {
this.show = false
this.$refs.popup.close()
uni.makePhoneCall({ uni.makePhoneCall({
phoneNumber: this.phone,
phoneNumber: this.bPhone || this.phone,
success() { success() {
console.log('安卓拨打成功'); console.log('安卓拨打成功');
}, },


+ 2
- 0
main.js View File

@ -22,9 +22,11 @@ Vue.mixin(mixinConfigList)
//组件注册 //组件注册
import configPopup from '@/components/config/configPopup.vue' import configPopup from '@/components/config/configPopup.vue'
import navbar from '@/components/base/navbar.vue' import navbar from '@/components/base/navbar.vue'
import customerServicePopup from '@/components/config/customerServicePopup.vue'
Vue.component('configPopup',configPopup) Vue.component('configPopup',configPopup)
Vue.component('navbar',navbar) Vue.component('navbar',navbar)
Vue.component('customerServicePopup',customerServicePopup)
const app = new Vue({ const app = new Vue({
...App, ...App,


+ 2
- 2
mixins/configList.js View File

@ -20,7 +20,7 @@ export default {
onShareAppMessage(res) { onShareAppMessage(res) {
let o = { let o = {
...this.Gshare, ...this.Gshare,
// title : this.configList.logo_name,
title : this.configList.config_app_name,
} }
if(this.userInfo.id){ if(this.userInfo.id){
o.path = this.Gshare.path + '?shareId=' + this.userInfo.id o.path = this.Gshare.path + '?shareId=' + this.userInfo.id
@ -31,7 +31,7 @@ export default {
onShareTimeline(res) { onShareTimeline(res) {
let o = { let o = {
...this.Gshare, ...this.Gshare,
// title : this.configList.logo_name,
title : this.configList.config_app_name,
} }
if(this.userInfo.id){ if(this.userInfo.id){
o.path = this.Gshare.path + '?shareId=' + this.userInfo.id o.path = this.Gshare.path + '?shareId=' + this.userInfo.id


+ 3
- 1
pages/index/center.vue View File

@ -115,7 +115,9 @@
<text class="grid-text">在线简历</text> <text class="grid-text">在线简历</text>
</uv-grid-item> </uv-grid-item>
<uv-grid-item @click="$utils.navigateTo('/pages_order/mine/releaseWork')">
<uv-grid-item
v-if="role"
@click="$utils.navigateTo('/pages_order/mine/releaseWork')">
<image class="image" src="/static/image/center/a1.png" mode=""></image> <image class="image" src="/static/image/center/a1.png" mode=""></image>
<text class="grid-text">{{ role ? '我的招工' : '我的找活'}}</text> <text class="grid-text">{{ role ? '我的招工' : '我的找活'}}</text>
</uv-grid-item> </uv-grid-item>


+ 5
- 2
pages/index/index.vue View File

@ -141,17 +141,20 @@
}, },
toAdd(){ toAdd(){
if(this.role){ if(this.role){
this.$utils.navigateTo('/pages_order/work/jobPosting')
//
this.$store.commit('isAuthCertificationEnterprise', state => {
this.$utils.navigateTo('/pages_order/work/jobPosting')
})
}else{ }else{
this.$utils.navigateTo('/pages_order/work/addResume') this.$utils.navigateTo('/pages_order/work/addResume')
} }
}, },
search(){ search(){
this.$utils.navigateTo(`/pages_order/work/workList?keyword=${this.keyword}`) this.$utils.navigateTo(`/pages_order/work/workList?keyword=${this.keyword}`)
this.keyword = ''
}, },
// //
async switchIdentity(){ async switchIdentity(){
this.$store.commit('getUserExtensionInfo')
// //
this.$store.commit('isAuthCertification', () => { this.$store.commit('isAuthCertification', () => {


+ 6
- 6
pages/index/keepAccounts.vue View File

@ -164,11 +164,11 @@
statusList : [ statusList : [
{ {
name : '在建', name : '在建',
value : 0,
value : '0',
}, },
{ {
name : '结束', name : '结束',
value : 1,
value : '1',
}, },
], ],
show: false, show: false,
@ -176,7 +176,7 @@
addOrUpdate : false, addOrUpdate : false,
form : { form : {
title : '', title : '',
status : 0,
status : '0',
}, },
} }
}, },
@ -207,14 +207,14 @@
this.form.type = this.queryParams.type this.form.type = this.queryParams.type
this.$api('addNoteBook', this.form, res => { this.$api('addNoteBook', this.form, res => {
this.show = false
if(res.code == 200){ if(res.code == 200){
this.show = false
this.form = { this.form = {
title : '', title : '',
status : 0,
status : '0',
} }
this.getData()
} }
this.getData()
}) })
}, },
openUpdate(item){ openUpdate(item){


+ 4
- 1
pages_order/kepp/MechanicProblem.vue View File

@ -11,7 +11,8 @@
<view class="relation"> <view class="relation">
<view>如有疑问请联系客服</view> <view>如有疑问请联系客服</view>
<view style="color: #4280FD;">4008-678-918</view>
<view style="color: #4280FD;"
@click="$refs.customerServicePopup.open()">{{ configList.config_service_phone }}</view>
</view> </view>
<view class="bottom"> <view class="bottom">
@ -20,6 +21,8 @@
</view> </view>
</view> </view>
</view> </view>
<customerServicePopup ref="customerServicePopup"/>
</view> </view>
</template> </template>


+ 44
- 5
pages_order/mine/GainPoints.vue View File

@ -10,7 +10,13 @@
<view>签到得积分</view> <view>签到得积分</view>
</view> </view>
<view class="txt">签到得积分可立即领取</view> <view class="txt">签到得积分可立即领取</view>
<view class="button">领取</view>
<view class="uni-uncolor-btn"
v-if="UserExtensionInfo.signFlag">已领取</view>
<view class="button"
@click="checkin"
v-else>领取</view>
<view style="height: 40rpx;" /> <view style="height: 40rpx;" />
</view> </view>
<view class="card"> <view class="card">
@ -23,23 +29,55 @@
个正式积分 个正式积分
<view style="color: red;">多邀多得可叠加</view> <view style="color: red;">多邀多得可叠加</view>
</view> </view>
<view class="button" @click="$utils.navigateTo('/pages_order/mine/InvitationCredit')">邀请</view>
<button
open-type="share"
class="share button">
邀请
</button>
<!-- <view class="button"
@click="$utils.navigateTo('/pages_order/mine/InvitationCredit')"
>邀请</view> -->
<view style="height: 40rpx;" /> <view style="height: 40rpx;" />
</view> </view>
</view> </view>
<view class="service">如有疑问请联系客服<text>4008-678-918</text></view>
<view class="service">如有疑问请联系客服<text
style="color: #4280FD;"
@click="$refs.customerServicePopup.open()"
>{{ configList.config_service_phone }}</text></view>
<customerServicePopup ref="customerServicePopup"/>
</view> </view>
</template> </template>
<script> <script>
import { mapState } from 'vuex'
export default { export default {
data() { data() {
return { return {
} }
}, },
computed : {
...mapState(['UserExtensionInfo']),
},
onLoad() {
this.$store.commit('getUserExtensionInfo')
},
methods: { methods: {
checkin(){
this.$api('addScoreBySign', res => {
if(res.code == 200){
uni.showToast({
title: '签到成功'
})
this.$store.commit('getUserExtensionInfo')
}
})
},
} }
} }
</script> </script>
@ -80,6 +118,7 @@
} }
.button { .button {
all: unset;
text-align: center; text-align: center;
background-color: #3796F8; background-color: #3796F8;
color: #fff; color: #fff;


+ 1
- 0
pages_order/mine/IntegralRecord.vue View File

@ -32,6 +32,7 @@
<view class="tab-box1" v-if="total"> <view class="tab-box1" v-if="total">
<uv-cell center border :title="item.title" <uv-cell center border :title="item.title"
v-for="(item, index) in list" v-for="(item, index) in list"
:key="index"
:value="x[item.type] + item.score" :label="item.createTime" /> :value="x[item.type] + item.score" :label="item.createTime" />
</view> </view>
<view <view


+ 9
- 1
pages_order/mine/InvitationCredit.vue View File

@ -10,7 +10,8 @@
<view>您当前的正式积分</view> <view>您当前的正式积分</view>
</view> </view>
<view class="TopBlock-balance">100</view> <view class="TopBlock-balance">100</view>
<view class="TopBlock-button">
<view class="TopBlock-button"
@click="$utils.navigateTo('/pages_order/mine/IntegralRecord')">
<view>积分明细</view> <view>积分明细</view>
</view> </view>
</view> </view>
@ -94,12 +95,19 @@
</template> </template>
<script> <script>
import { mapState } from 'vuex'
export default { export default {
data() { data() {
return { return {
} }
}, },
onLoad() {
this.$store.commit('getUserExtensionInfo')
},
computed : {
...mapState(['UserExtensionInfo']),
},
methods: { methods: {
} }


+ 52
- 43
pages_order/mine/MemberRecharge.vue View File

@ -18,12 +18,12 @@
手机号{{userInfo.phone}} 手机号{{userInfo.phone}}
</view> </view>
<!-- <view> <!-- <view>
{{numInfo.vipType}}
{{UserExtensionInfo.vipType}}
</view> --> </view> -->
</view> </view>
</view> </view>
<view class="openvip">{{numInfo.vipType}}</view>
<view class="openvip">{{UserExtensionInfo.vipType}}</view>
<view class="options"> <view class="options">
<view @click="vipId = item.id" <view @click="vipId = item.id"
@ -61,12 +61,21 @@
</view> </view>
<view class="tail"> <view class="tail">
<view> <view>
<uv-radio-group v-model="radiovalue">
<uv-radio size="30rpx">
</uv-radio>
</uv-radio-group>
<uv-checkbox-group v-model="checkboxValue">
<uv-checkbox
size="40rpx"
icon-size="30rpx"
activeColor="#3796F8"
:name="1"
></uv-checkbox>
</uv-checkbox-group>
</view> </view>
<view>开通前请阅读会员服务协议</view>
<!-- 缺失会员服务协议 -->
<view>开通前请阅读<text
style="color: #3796F8;"
@click="$refs.configPopup.open('')"
>会员服务协议</text></view>
</view> </view>
</view> </view>
@ -75,14 +84,14 @@
<view> <view>
总计金额{{ vip.price }} 总计金额{{ vip.price }}
</view> </view>
<view @click="submit(vip.id)">
<view @click="submit(vipId)">
确认协议并支付 确认协议并支付
</view> </view>
</view> </view>
</view> </view>
<configPopup ref="configPopup"/>
</view> </view>
</template> </template>
<script> <script>
@ -94,29 +103,21 @@
mixins: [mixinList], mixins: [mixinList],
data() { data() {
return { return {
radiovalue: false,
checkboxValue : [],
mixinsListApi: 'commonQueryVipType', mixinsListApi: 'commonQueryVipType',
vipId: '', vipId: '',
numInfo: {}
} }
}, },
onShow() { onShow() {
this.$store.commit('getUserInfo') this.$store.commit('getUserInfo')
// //
this.getUserCenterData();
this.$store.commit('getUserExtensionInfo')
}, },
computed: { computed: {
...mapState(['UserExtensionInfo']),
headImage() { headImage() {
return '/static/image/center/headImage.png' return '/static/image/center/headImage.png'
}, },
//
getUserCenterData() {
this.$api('getUserCenterData', {}, res => {
if (res.code == 200) {
this.numInfo = res.result
}
})
},
vip() { vip() {
let vip = {} let vip = {}
this.list.forEach(n => { this.list.forEach(n => {
@ -138,31 +139,39 @@
}, },
methods: { methods: {
submit(id) { submit(id) {
if(!this.checkboxValue.length){
return uni.showToast({
title: '请先同意会员服务协议',
icon:'none'
})
}
console.log("当前标识:" + id) console.log("当前标识:" + id)
this.$api('addVIP', { this.$api('addVIP', {
id: id id: id
}, res => { }, res => {
uni.requestPayment({
provider: 'wxpay', //
timeStamp: res.result.timeStamp, //
nonceStr: res.result.nonceStr, //
package: res.result.packageValue,
signType: res.result.signType, //
paySign: res.result.paySign, //
success: function(res) {
console.log('支付成功', res);
self.$refs.confirmationPopupUpload.open()
// self.$refs.confirmationPopup.close()
},
fail: function(err) {
console.log('支付失败', err);
self.$refs.confirmationPopup.close()
uni.showToast({
icon: 'none',
title: "支付失败"
})
}
});
if(res.code == 200){
uni.requestPayment({
provider: 'wxpay', //
timeStamp: res.result.timeStamp, //
nonceStr: res.result.nonceStr, //
package: res.result.packageValue,
signType: res.result.signType, //
paySign: res.result.paySign, //
success: function(res) {
console.log('支付成功', res);
self.$refs.confirmationPopupUpload.open()
// self.$refs.confirmationPopup.close()
},
fail: function(err) {
console.log('支付失败', err);
self.$refs.confirmationPopup.close()
uni.showToast({
icon: 'none',
title: "支付失败"
})
}
});
}
}) })
}, },
getDataThen(list) { getDataThen(list) {
@ -254,7 +263,7 @@
} }
.act { .act {
border: 4rpx solid $uni-color;
border: 2rpx solid $uni-color;
box-shadow: 0 0 10rpx 10rpx rgba($uni-color, 0.2); box-shadow: 0 0 10rpx 10rpx rgba($uni-color, 0.2);
} }
} }


+ 2
- 2
pages_order/mine/contactRecord.vue View File

@ -8,7 +8,7 @@
@leftClick="$utils.navigateBack"/> @leftClick="$utils.navigateBack"/>
<view class=""> <view class="">
<uv-tabs :list="tabs"
<uv-tabs :list="tabsList"
lineColor="#3796F8" lineColor="#3796F8"
lineHeight="8rpx" lineHeight="8rpx"
lineWidth="50rpx" lineWidth="50rpx"
@ -53,7 +53,7 @@
}, },
data() { data() {
return { return {
tabs: [
tabsList: [
{ {
name: '我看过谁' name: '我看过谁'
}, },


+ 1
- 1
pages_order/mine/promotion.vue View File

@ -183,7 +183,7 @@
border-radius: 15rpx; border-radius: 15rpx;
padding: 40rpx 30rpx; padding: 40rpx 30rpx;
box-sizing: border-box; box-sizing: border-box;
background-color: #fff;
.user-info { .user-info {
display: flex; display: flex;
align-items: center; align-items: center;


+ 2
- 2
pages_order/mine/setting.vue View File

@ -33,7 +33,7 @@
</template> </template>
</uv-cell> </uv-cell>
<uv-cell
<!-- <uv-cell
icon="coupon" icon="coupon"
title="修改密码" title="修改密码"
isLink isLink
@ -43,7 +43,7 @@
<image src="../static/setting/1.png" mode="" <image src="../static/setting/1.png" mode=""
style="width: 30rpx;height: 30rpx;"></image> style="width: 30rpx;height: 30rpx;"></image>
</template> </template>
</uv-cell>
</uv-cell> -->
</view> </view>


+ 1
- 1
pages_order/work/addResume.vue View File

@ -278,7 +278,7 @@
}, },
queryResumeByUserId(){ queryResumeByUserId(){
this.$api('queryResumeByUserId', res => { this.$api('queryResumeByUserId', res => {
if(res.code == 200 && res.result){
if(res.code == 200 && res.result && res.result.records[0]){
this.form = res.result.records[0] this.form = res.result.records[0]
if(res.result.records[0]!=null){ if(res.result.records[0]!=null){


+ 1
- 1
store/store.js View File

@ -10,7 +10,7 @@ const store = new Vuex.Store({
state: { state: {
configList: {}, //配置列表 configList: {}, //配置列表
// 角色 true为老板 false为工人 // 角色 true为老板 false为工人
role : true,
role : false,
userInfo : {}, //用户信息 userInfo : {}, //用户信息
banner : [],//轮播图 banner : [],//轮播图
jobTypeList : [],//工种 jobTypeList : [],//工种


Loading…
Cancel
Save