This commit is contained in:
lanzhihui 2024-09-26 16:59:18 +08:00
parent 85b9464b18
commit b0775fc8bd
27 changed files with 102 additions and 2220 deletions

View File

@ -191,7 +191,6 @@ subPackages: [
'root': 'pages/users', 'root': 'pages/users',
'pages': [ 'pages': [
'unmarriV2', 'unmarriV2',
'unmarriV3',
'unmarri', 'unmarri',
'myCertification', 'myCertification',
'artificial', 'artificial',

View File

@ -4,12 +4,7 @@
style="height:{{CustomBar}}px;padding-top:{{StatusBar}}px;{{bgImage?'background-image:url(' + bgImage+')':''}};{{bgColor}}"> style="height:{{CustomBar}}px;padding-top:{{StatusBar}}px;{{bgImage?'background-image:url(' + bgImage+')':''}};{{bgColor}}">
<view class="~action" bindtap="BackPage" v-if="isBack"> <view class="~action" bindtap="BackPage" v-if="isBack">
<text class="~cuIcon-back"></text> <text class="~cuIcon-back"></text>
<!--<block v-if="prevPage">-->
<slot name="backText"></slot> <slot name="backText"></slot>
<!--</block>-->
<!--<block wx:else>-->
<!--<view>主页</view>-->
<!--</block>-->
</view> </view>
<view class="~action ~border-custom" v-if="isCustom" <view class="~action ~border-custom" v-if="isCustom"
style="width:{{Custom.width}}px;height:{{Custom.height}}px;margin-left:calc(750rpx - {{Custom.right}}px)"> style="width:{{Custom.width}}px;height:{{Custom.height}}px;margin-left:calc(750rpx - {{Custom.right}}px)">
@ -48,13 +43,9 @@
import wepy from '@wepy/core' import wepy from '@wepy/core'
import https from '../mixins/https' import https from '../mixins/https'
import base from '../mixins/base' import base from '../mixins/base'
// import loginDialog from './loginDialog'
// import ShareMessage from '../mixins/ShareMessage'
wepy.component({ wepy.component({
mixins: [base, https], mixins: [base, https],
// components = {
// loginDialog
// }
options: { options: {
multipleSlots: true // 在组件定义时的选项中启用多slot支持 multipleSlots: true // 在组件定义时的选项中启用多slot支持
}, },
@ -187,8 +178,6 @@
wx.reLaunch({ wx.reLaunch({
url: '/pages/tabBar/welcome' url: '/pages/tabBar/welcome'
}) })
// this.modalName = 'Modal'
// this.$apply()
} }
} }
}, },
@ -225,24 +214,6 @@
this.searchValue = '' this.searchValue = ''
this.$emit('customInput', e) this.$emit('customInput', e)
} }
},
events: {
'loginDialogCut': (e) => {
console.log(e)
// this.$parent.$parent.getEvent(this.config.navigationBarTitleText, `点击暂不登录`)
this.loginShow = e.loginShow
},
'mobileSuccess': (e) => {
console.log(e)
// this.$parent.$parent.getEvent(this.config.navigationBarTitleText, `微信私密(登录)`)
},
'loginDialogShow': (e) => {
let vm = this
wepy.$instance.pageLogin().then((data) => {
vm.token = data.token
vm.onShow()
})
}
} }
}) })
</script> </script>

View File

@ -241,7 +241,7 @@ wepy.component({
}, },
onLoad() { onLoad() {
console.log(this.shareImage) console.log(this.shareImage, '123-')
} }
}) })

View File

@ -1,13 +1,11 @@
<template> <template>
<view> <view>
<!--<message :time.sync="deadline"></message>-->
<view class=""> <view class="">
<view class="user_back"> <view class="user_back">
<view class="userinfo clearfix"> <view class="userinfo clearfix">
<view @tap.stop="goto('mask')" class="text-center" @longpress="longPress"> <view @tap.stop="goto('mask')" class="text-center" @longpress="longPress">
<view class="m_userAva" style="position: relative;display: inline-block;margin-right:20rpx;"> <view class="m_userAva" style="position: relative;display: inline-block;margin-right:20rpx;">
<image class="userinfo-avatar ff" src="{{Image}}" mode="aspectFill" /> <image class="userinfo-avatar ff" src="{{Image}}" mode="aspectFill" />
<!-- <image class="bc-avatar" src="https://images.ufutx.com/202012/23/63216ba5bd0c56cf20c3a7380f1d5891.png" mode="aspectFill" />-->
<block v-if="user.photo"> <block v-if="user.photo">
<view class="mask font_22 f-fcc" v-if="user.is_photo_audited==0">审核中</view> <view class="mask font_22 f-fcc" v-if="user.is_photo_audited==0">审核中</view>
<view class="mask font_22 f-fcc" v-if="user.is_photo_audited==-1">未通过</view> <view class="mask font_22 f-fcc" v-if="user.is_photo_audited==-1">未通过</view>
@ -27,7 +25,6 @@
<view class="text-center vipBox"> <view class="text-center vipBox">
<image src="https://images.ufutx.com/202101/30/e3a22a60849c3910e680d932772432b4.png" mode="aspectFill" class="icon"></image> <image src="https://images.ufutx.com/202101/30/e3a22a60849c3910e680d932772432b4.png" mode="aspectFill" class="icon"></image>
<view v-if="user.nickname" class="_edit font_22 color-666">编辑</view> <view v-if="user.nickname" class="_edit font_22 color-666">编辑</view>
<!-- <span class="font_20">超级会员</span> -->
</view> </view>
</block> </block>
<block v-else> <block v-else>
@ -50,16 +47,9 @@
<block v-else> <block v-else>
<view class="font_26 white flo_l text-shadow text-white siz">登录后即可体验完整功能</view> <view class="font_26 white flo_l text-shadow text-white siz">登录后即可体验完整功能</view>
</block> </block>
<!-- <image src="https://images.ufutx.com/202004/20/358000854fe0ad24249b85f64640f9a4.png" mode="aspectFill" class="icon flo_r"></image> -->
<image v-if="token" src="https://images.ufutx.com/202101/30/32e488269070923ca4b7e363a1afeffb.png" mode="aspectFill" class="icon flo_r"></image> <image v-if="token" src="https://images.ufutx.com/202101/30/32e488269070923ca4b7e363a1afeffb.png" mode="aspectFill" class="icon flo_r"></image>
</view> </view>
</view> </view>
<!-- <image src="../images/gif/wave.gif" mode="scaleToFill" class="gif-wave"></image> -->
<!-- <view class="sign" @tap="moreTask">-->
<!-- <image class="img" src="https://image.fulllinkai.com/202201/13/a4755232558177a0ea0237bd3b69a223.png"></image>-->
<!-- <view class="sign_tt f-fcc white font_24">签到有礼</view>-->
<!-- </view>-->
</view> </view>
</view> </view>
</view> </view>
@ -68,13 +58,11 @@
<script> <script>
import wepy from '@wepy/core' import wepy from '@wepy/core'
// import message from './message'
import base from '../mixins/base' import base from '../mixins/base'
import { import {
service service
} from '../config.js' } from '../config.js'
import https from '../mixins/https' import https from '../mixins/https'
// import uploadImage from '../components/uploadImage'
wepy.component({ wepy.component({
mixins: [base, https], mixins: [base, https],
props: { props: {
@ -408,10 +396,6 @@
this.modalName = '' this.modalName = ''
}, },
goto(url) { goto(url) {
// if (!this.token) {
// this.$emit('modalValue', 'ModalLogin')
// return
// }
console.log(this.token, '----0000') console.log(this.token, '----0000')
if (!this.token) { if (!this.token) {
this.$emit('modalValue', '') this.$emit('modalValue', '')
@ -445,14 +429,8 @@
url: url url: url
}) })
} }
},
events: {
'UpLoadImage': (value) => {
let vm = this
vm.Image = value
vm.upDataAvatar()
}
} }
}) })
</script> </script>
@ -460,11 +438,6 @@
.user_back { .user_back {
width: 100vw; width: 100vw;
height: 310rpx; height: 310rpx;
/*height: 76vw;*/
/*background-image: url("https://images.ufutx.com/202012/19/203697324cc80baa63941bece9d54fc3.gif");*/
// background-image: url("https://images.ufutx.com/202101/26/07f61fa05cf032ed7e11c8e3b50e2b9e.png"); // background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 45%, #EAEAEA 100%);
// background-repeat: no-repeat;
// background-size: cover;
padding-top: 20vw; padding-top: 20vw;
position: relative; position: relative;
} }

View File

@ -1,5 +1,4 @@
<style lang="less" scoped> <style lang="less" scoped>
@import url(../../styles/theme.less);
page { page {
background-color: #ffffff; background-color: #ffffff;
} }
@ -33,7 +32,7 @@ page {
height: 176rpx; height: 176rpx;
background-color: #D8D8D8; background-color: #D8D8D8;
border-radius: 50%; border-radius: 50%;
.icon-bianzu { .cuIcon-camera {
font-size: 64rpx; font-size: 64rpx;
} }
} }
@ -129,12 +128,12 @@ button::after{
<view class="ui-registration"> <view class="ui-registration">
<view class="m_hp f-fcc"> <view class="m_hp f-fcc">
<view class="u_hp f-fcc animation-slide-bottom" v-if="!photo" style="animation-delay: 0.2s;" @tap="chooseShow = true"> <view class="u_hp f-fcc animation-slide-bottom" v-if="!photo" style="animation-delay: 0.2s;" @tap="chooseShow = true">
<view class="font_family icon-bianzu white"></view> <view class="font_family cuIcon-camera white"></view>
</view> </view>
<view class="m_hp_img" v-else @tap="chooseShow = true"> <view class="m_hp_img" v-else @tap="chooseShow = true">
<image class="u_hp_img" :src="photo" mode="aspectFill"></image> <image class="u_hp_img" :src="photo" mode="aspectFill"></image>
<view class="m_bianzu f-fcc"> <view class="m_bianzu f-fcc">
<view class="font_family icon-bianzu white font_24 ui-ml-4"></view> <view class="font_family cuIcon-camera white font_24 ui-ml-4"></view>
</view> </view>
</view> </view>
</view> </view>
@ -201,7 +200,8 @@ button::after{
</view> </view>
</view> </view>
<residenceDialog :residenceShow.sync="residenceShow" @residenceCity="residenceCity" @closeResidenceShow="closeResidenceShow"></residenceDialog> <residenceDialog :residenceShow.sync="residenceShow" @residenceCity="residenceCity" @closeResidenceShow="closeResidenceShow"></residenceDialog>
<uploadPic ref="uploadPic" :chooseShow.sync="chooseShow" @changeVal="changeVal" @closeUploadPic="closeUploadPic"></uploadPic> <!-- <uploadPic ref="uploadPic" :chooseShow.sync="chooseShow" @changeVal="changeVal" @closeUploadPic="closeUploadPic"></uploadPic>-->
<chooseImageTips :chooseShow.sync="chooseShow" :jumpString.sync="jumpString" @hideCut.user="hideCut"></chooseImageTips>
</template> </template>
<script> <script>
@ -239,14 +239,21 @@ wepy.page({
belief: '', belief: '',
beliefList: ['基督教', '佛教', '伊斯兰教', '其他'], beliefList: ['基督教', '佛教', '伊斯兰教', '其他'],
beliefIndex: 3, beliefIndex: 3,
jumpString: 'basicData',
throttle: true, throttle: true,
unionid: '', unionid: '',
enterprise: '' enterprise: ''
}, },
methods: { methods: {
hideCut(e) {
wx.showTabBar({
animation: true
})
this.chooseShow = e.chooseShow
},
complete() { complete() {
let vm = this let vm = this
console.log(vm.photo, 'vm.photo==')
if (!vm.name) { if (!vm.name) {
return vm.$showToast('请输入昵称') return vm.$showToast('请输入昵称')
} else if (vm.name.length < 2 || vm.name.length > 10) { } else if (vm.name.length < 2 || vm.name.length > 10) {
@ -255,38 +262,38 @@ wepy.page({
if (vm.name.includes('福恋')) { if (vm.name.includes('福恋')) {
return vm.$showToast('请勿输入带“福恋”关键字的昵称!') return vm.$showToast('请勿输入带“福恋”关键字的昵称!')
} }
// if (vm.photo == '') { if (vm.photo == '') {
// return vm.$showToast('请上传你的头像') return vm.$showToast('请上传你的头像')
// } }
// if (!vm.sex) { if (!vm.sex) {
// return vm.$showToast('请选择你的性别') return vm.$showToast('请选择你的性别')
// } }
// if (!vm.phoneNumber) { if (!vm.mobile) {
// return vm.$showToast('请选择绑定手机号') return vm.$showToast('请选择绑定手机号')
// } }
// if (!vm.birthday) { if (!vm.birthday) {
// return vm.$showToast('请选择你的生日') return vm.$showToast('请选择你的生日')
// } }
// if (!vm.address.city) { if (!vm.address.city) {
// return vm.$showToast('请选择所在城市') return vm.$showToast('请选择所在城市')
// } }
// if (!vm.emotion) { if (!vm.emotion) {
// return vm.$showToast('请选择你的情感状况') return vm.$showToast('请选择你的情感状况')
// } }
// if (!vm.belief) { if (!vm.belief) {
// return vm.$showToast('请选择你的信仰') return vm.$showToast('请选择你的信仰')
// } }
vm.$showLoading('') vm.$showLoading('')
let data = { let data = {
photo: vm.photo || 'https://image.fulllinkai.com/202409/10/14e52ebc01aeb0eaaba753f278685d63.png', photo: vm.photo,
nickname: vm.name, nickname: vm.name,
mobile: vm.mobile || '15813393343', mobile: vm.mobile,
sex: vm.sex === '男' ? 1 : 2, sex: vm.sex === '男' ? 1 : 2,
belief: vm.belief, belief: vm.belief,
state: vm.emotion, state: vm.emotion,
country: vm.address.country || '深圳市', country: vm.address.country,
province: vm.address.province || '广东省', province: vm.address.province,
city: vm.address.city || '宝安区', city: vm.address.city,
birthday: vm.birthday birthday: vm.birthday
// userInfo: vm.userInfo, // userInfo: vm.userInfo,
// openid: vm.openid, // openid: vm.openid,
@ -340,9 +347,10 @@ wepy.page({
}, },
// 选择的图片和取消功能 // 选择的图片和取消功能
changeVal(data) { changeVal(data) {
console.log(data, 'data=2222')
let vm = this let vm = this
if (data) { if (data) {
vm.photo = data.filePath vm.photo = data[0].filePath
} }
vm.chooseShow = false vm.chooseShow = false
}, },
@ -362,7 +370,10 @@ wepy.page({
vm.address = {country: e.country, province: e.province, city: e.city} vm.address = {country: e.country, province: e.province, city: e.city}
} }
}, },
onShow() { onShow(e) {
if (e && e.photo) {
this.photo = e.photo
}
}, },
onLoad() { onLoad() {
let vm = this let vm = this
@ -383,6 +394,7 @@ backgroundColorBottom: '#ffffff',
usingComponents: { usingComponents: {
residenceDialog: '~@/components/residenceDialog', residenceDialog: '~@/components/residenceDialog',
uploadPic: '~@/components/uploadPic', uploadPic: '~@/components/uploadPic',
chooseImageTips: '~@/components/chooseImageTips',
} }
} }
</config> </config>

View File

@ -48,62 +48,6 @@
</view> </view>
</view> </view>
</view> </view>
<!-- <view class="spellGroup" v-if="spellGroupList && spellGroupList.length > 0">-->
<!-- <view class="spellGroup_spr">-->
<!-- <swiper class="u_swiper" autoplay="true" circular="true" indicator-active-color="#ffffff">-->
<!-- <block v-for="(item,index) in spellGroupList" :key="index">-->
<!-- <swiper-item>-->
<!-- <view class="u_item">-->
<!-- <image :src="item.pic" class="image_" mode="aspectFill"/>-->
<!-- <view>-->
<!-- <view class="font_26 color-333 bold" style="padding-bottom: 4rpx">拼团中</view>-->
<!-- <view class="font_24 color-666">还差<span class="color-theme"-->
<!-- style="margin: 0 4rpx">{{ item.need_count }}人</span>成团-->
<!-- </view>-->
<!-- </view>-->
<!-- <view class="spellGroupBtn font_24 color-theme f-fcc" @tap.stop="goToSpellGroup(item.id)">邀请好友-->
<!-- </view>-->
<!-- </view>-->
<!-- </swiper-item>-->
<!-- </block>-->
<!-- </swiper>-->
<!-- </view>-->
<!-- </view>-->
<!-- <block v-if="user&&user.id">-->
<!-- <view class="" v-if="is_base_info == 2">-->
<!-- <view class="task_box">-->
<!-- <view class="task_title_box">-->
<!-- <view class="flo_l">-->
<!-- <view class="task_vertical_line text-black"></view>-->
<!-- <view class="task_title font_30 color-333 bold text-black">做任务得福币</view>-->
<!-- </view>-->
<!-- <view class="flo_r" @tap="moreTask">-->
<!-- <span class="font_26 color-666">更多</span>-->
<!-- <image src="https://images.ufutx.com/202012/23/d491373f21f5a0c5810f2167f7c961f0.png" mode="widthFix"-->
<!-- class="triangle_icon"></image>-->
<!-- </view>-->
<!-- </view>-->
<!-- <view class="task_list_box">-->
<!-- <view class="task_li task_lis" v-for="(item,index) in taskListV2" :key="index"-->
<!-- v-if="index<=1 && item.state == 0">-->
<!-- <view class="task_li_title flo_l">-->
<!-- <view class="font_30">-->
<!-- <span class="color-333">{{ item.title }}</span>-->
<!-- <span class="bold" style="color: #FFBB00;margin-left: 12rpx">{{ item.coin }}</span>-->
<!-- <image class="coin_icon" src="https://images.ufutx.com/202106/07/3f64bcbd68b94e5435afc16237b6a40d.png"-->
<!-- mode="widthFix"></image>-->
<!-- </view>-->
<!-- </view>-->
<!-- <view class="jump_buttom flo_r font_26" data-item="{{item}}" @tap="goto_v2">-->
<!-- {{ item.state == 2 ? '审核中' : item.buttonName }}-->
<!-- </view>-->
<!-- </view>-->
<!-- </view>-->
<!-- </view>-->
<!-- </view>-->
<!-- </block>-->
<view class="list_box"> <view class="list_box">
<block v-for="(item,index) in list" :key="index"> <block v-for="(item,index) in list" :key="index">
<block v-if="item.title == '会员中心'"> <block v-if="item.title == '会员中心'">
@ -633,44 +577,45 @@
// self.UID = recordTime.substring(recordTime.length - 5) + String(data.id) // self.UID = recordTime.substring(recordTime.length - 5) + String(data.id)
wx.setStorageSync('UID', self.UID) wx.setStorageSync('UID', self.UID)
self.shareConfig.images[1].url = data.user_share_qrcode || 'https://local-pictures.oss-cn-shenzhen.aliyuncs.com/202409/12/1726111703932.img' self.shareConfig.images[1].url = data.user_share_qrcode || 'https://local-pictures.oss-cn-shenzhen.aliyuncs.com/202409/12/1726111703932.img'
self.posterConfig = self.shareConfig // self.posterConfig = self.shareConfig
console.log('333===0999') // console.log(self.posterConfig, '333===0999')
self.$nextTick(() => { // // self.$nextTick(() => {
setTimeout(() => { // setTimeout(() => {
console.log(self.$wx.selectComponent('#poster'), self.$refs.poster, '---99') // console.log(self.$wx.selectComponent('#poster'), self.$refs.poster, '---99')
self.$wx.selectComponent('#poster').onCreate(true, self.$wx) // self.$wx.selectComponent('#poster').onCreate(true)
}, 100) // console.log('9878733')
}) // }, 500)
// 小程序分享 // // })
self.title = `我是"${data.user.nickname}",这是我的小程序卡片` // // 小程序分享
if (data.photo || data.avatar) { // self.title = `我是"${data.user.nickname}",这是我的小程序卡片`
let year = '', city = '', degree = '', industry_sub = '' // if (data.user.photo || data.user.avatar) {
if (data.profile_courtship.birthday) { // let year = '', city = '', degree = '', industry_sub = ''
year = data.profile_courtship.birthday.slice(2, 4) + '年' // if (data.profile_courtship.birthday) {
} // year = data.profile_courtship.birthday.slice(2, 4) + '年'
if (data.profile_courtship.city) { // }
city = data.profile_courtship.city // if (data.profile_courtship.city) {
} // city = data.profile_courtship.city
if (data.profile_courtship.degree) { // }
degree = data.profile_courtship.degree // if (data.profile_courtship.degree) {
} // degree = data.profile_courtship.degree
if (data.industry_sub) { // }
industry_sub = data.industry_sub // if (data.industry_sub) {
} // industry_sub = data.industry_sub
console.log(year, city, degree, industry_sub) // }
self.shareConfig1.texts[0].text = `${year} | ${city}` // console.log(year, city, degree, industry_sub)
self.shareConfig1.texts[1].text = `${degree} | ${industry_sub}` // self.shareConfig1.texts[0].text = `${year} | ${city}`
self.shareConfig1.images[0].url = data.photo || data.avatar // self.shareConfig1.texts[1].text = `${degree} | ${industry_sub}`
self.posterConfig1 = self.shareConfig1 // self.shareConfig1.images[0].url = data.photo || data.avatar
self.$nextTick(() => { // self.posterConfig1 = self.shareConfig1
setTimeout(() => { // self.$nextTick(() => {
self.$wx.selectComponent('#posterV1').onCreate(true, self.$wx) // setTimeout(() => {
}, 100) // self.$wx.selectComponent('#posterV1').onCreate(true, self.$wx)
}) // }, 100)
} else { // })
// 重新获取分享码 // } else {
self.$showToast('分享图片获取失败') // // 重新获取分享码
} // self.$showToast('分享图片获取失败')
// }
console.log(self.posterConfig1, '7777') console.log(self.posterConfig1, '7777')
this.init = true this.init = true
this.user = data.user this.user = data.user
@ -732,6 +677,7 @@
}, },
onPosterSuccess(e) { // 分享海报 onPosterSuccess(e) { // 分享海报
let vm = this let vm = this
console.log(e, 'e=3333')
vm.invite_pic = e.$wx.detail vm.invite_pic = e.$wx.detail
console.log(e.$wx.detail, '海报') console.log(e.$wx.detail, '海报')
wx.hideLoading() wx.hideLoading()

View File

@ -96,7 +96,8 @@
prevPage = pages[pages.length - 2] prevPage = pages[pages.length - 2]
} }
if (prevPage) { if (prevPage) {
prevPage.photoCity(photo) prevPage.setData({photo: photo})
prevPage.onShow({photo: photo})
} }
wx.navigateBack({ wx.navigateBack({
delta: 1 delta: 1
@ -146,19 +147,8 @@
vm.uploadData = data.data vm.uploadData = data.data
vm.$app.$options.globalData.uploadData = data.data vm.$app.$options.globalData.uploadData = data.data
vm.uploadFile() vm.uploadFile()
// vm.date = new Date()
// vm.date.setHours( vm.date.getHours() + 1)
// vm.olicyText = {
// expiration: vm.toISOString(), // 设置policy过期时间。
// conditions: [
// // 限制上传大小。
// ["content-length-range", 0, 1024 * 1024 * 1024],
// ],
// }
// vm.uploadData.policy = Base64.encode(JSON.stringify(policyText)) // policy必须为base64的string。
} }
}) })
console.log('1111111111')
} }
}, },
@ -192,31 +182,11 @@
loadimage(e) { loadimage(e) {
console.log('图片加载完成', e) console.log('图片加载完成', e)
}, },
// chooseimage() {
// let vm = this
// wx.chooseImage({
// count: 1,
// // sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有
// sizeType: ['compressed'], // 可以指定是原图还是压缩图,默认二者都有
// sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
// success: (res) => {
// vm.filePaths = res.tempFilePaths[0]
// vm.$apply()
// vm.uploadFile()
// }
// })
// },
clickcut(e) { clickcut(e) {
console.log(e) // 点击裁剪框阅览图片
// wx.previewImage({
// current: e.url, // 当前显示图片的http链接
// urls: [e.url] // 需要预览的图片http链接列表
// })
}, },
saveCut(e) { saveCut(e) {
console.log(e.url, '1212') // 点击上传图片
console.log(e) // 点击上传图片
console.log('src------------------------------------', this.src) // 点击上传图片
if (this.src == e.url && this.jumpString) { if (this.src == e.url && this.jumpString) {
this.$gotoBack(1) this.$gotoBack(1)
this.upDataAvatarV2(e.url) this.upDataAvatarV2(e.url)

View File

@ -36,8 +36,6 @@ wepy.page({
</script> </script>
<style lang="less"> <style lang="less">
//@import "../../styles/custom/fn.less";
//@import "../../styles/custom/reset.less";
page{ page{
background: #ffffff; background: #ffffff;
.title{ .title{

View File

@ -120,7 +120,6 @@
uploadData: null uploadData: null
}, },
onShow() { onShow() {
// this.$parent.getTracker(this.$root.$name, this.config.navigationBarTitleText)
}, },
onLoad(e) { onLoad(e) {
if (e.chat_user_id) { if (e.chat_user_id) {
@ -157,11 +156,9 @@
policy: vm.uploadData.policy, policy: vm.uploadData.policy,
OSSAccessKeyId: vm.uploadData.access_id, OSSAccessKeyId: vm.uploadData.access_id,
signature: vm.uploadData.signature signature: vm.uploadData.signature
// 'x-oss-security-token': securityToken // 使用STS签名时必传。
}, },
header: { header: {
'Authorization': 'Bearer ' + wx.getStorageSync('token'), 'Authorization': 'Bearer ' + wx.getStorageSync('token'),
// 'content-type': 'multipart/form-data',
'X-Requested-With': 'XMLHttpRequest' 'X-Requested-With': 'XMLHttpRequest'
}, },
success: (res) => { success: (res) => {
@ -239,89 +236,12 @@
vm.uploadData = data.data vm.uploadData = data.data
vm.$app.$options.globalData.uploadData = data.data vm.$app.$options.globalData.uploadData = data.data
vm.uploadFile(filePaths) vm.uploadFile(filePaths)
// vm.date = new Date()
// vm.date.setHours( vm.date.getHours() + 1)
// vm.olicyText = {
// expiration: vm.toISOString(), // 设置policy过期时间。
// conditions: [
// // 限制上传大小。
// ["content-length-range", 0, 1024 * 1024 * 1024],
// ],
// }
// vm.uploadData.policy = Base64.encode(JSON.stringify(policyText)) // policy必须为base64的string。
} }
}) })
console.log('1111111111') console.log('1111111111')
} }
}, },
// uploadFile(filePaths, text) {
// let vm = this
// vm.setImgArr = wx.getStorageSync('authenticationImg')
// wx.uploadFile({
// url: service.image_upload,
// filePath: filePaths,
// method: 'POST',
// name: 'fileData',
// header: {
// 'Authorization': 'Bearer ' + wx.getStorageSync('token'),
// 'content-type': 'multipart/form-data',
// 'X-Requested-With': 'XMLHttpRequest'
// },
// success: (res) => {
// let value = JSON.parse(res.data).data
// if (value && !vm.audit) {
// vm.nodata = true
// if (text) {
// if (text == 'back') {
// vm.photo.splice(2, 1, value)
// } else if (text == 'just') {
// vm.photo.splice(1, 1, value)
// }
// } else {
// vm.photo.splice(0, 1, value)
// }
// setTimeout(() => {
// vm.loading = false
// }, 500)
// } else if (value && vm.audit) {
// // vm.showSubmit = true
// vm.nodata = true
// if (text) {
// if (text == 'back') {
// vm.photo.splice(2, 1, value)
// vm.backShow = true
// } else if (text == 'just') {
// vm.photo.splice(1, 1, value)
// vm.justShow = true
// }
// } else {
// vm.photo.splice(0, 1, value)
// vm.holdShow = true
// }
// setTimeout(() => {
// vm.loading = false
// }, 500)
// }
//
// console.log(vm.photo)
// console.log(vm.setImgArr)
// if (vm.photo[0] != vm.setImgArr[0] && vm.photo[1] != vm.setImgArr[1] && vm.photo[2] != vm.setImgArr[2]) {
// vm.showSubmit = true
// }
// if (vm.audit) {
// vm.againShow = true
// }
// },
// fail: (res) => {
// vm.loading = false
// vm.$showToast('上传失败,请重新上传')
// },
// complete: () => {
// }
// })
// },
chooseimage(type) { chooseimage(type) {
let vm = this let vm = this
wx.chooseMedia({ wx.chooseMedia({
@ -339,7 +259,6 @@
} }
}) })
}, },
request() { request() {
let that = this, let that = this,
data = { data = {
@ -354,10 +273,7 @@
that.$showLoading('提交中...') that.$showLoading('提交中...')
that.$post({url: `${service.host}/user/manual/approve`, data}).then(({code, res}) => { that.$post({url: `${service.host}/user/manual/approve`, data}).then(({code, res}) => {
that.loading = false that.loading = false
// if (!that.audit) {
that.modalName = 'showAudit' that.modalName = 'showAudit'
// } else {
// that.$showToast('重新上传成功,等待审核')
that.againShow = false that.againShow = false
that.backShow = false that.backShow = false
that.justShow = false that.justShow = false

View File

@ -1,6 +1,4 @@
<template> <template>
<!-- <NavBar rgba="#ffffff" bag="#ffffff" :title.sync="title"></NavBar>-->
<!-- <Loading :init.sync="init"></Loading>-->
<view class="navbar borrow"> <view class="navbar borrow">
<view class="page__bd"> <view class="page__bd">
<view class="weui-tab"> <view class="weui-tab">
@ -23,20 +21,9 @@
<image src="https://images.ufutx.com/202002/20/40b26d71cf2af9b1be0f874605c6ef2f.png" mode="aspectFit" v-else style="width: 38rpx;height: 38rpx;" class="flo_l"></image> <image src="https://images.ufutx.com/202002/20/40b26d71cf2af9b1be0f874605c6ef2f.png" mode="aspectFit" v-else style="width: 38rpx;height: 38rpx;" class="flo_l"></image>
</view> </view>
</view> </view>
<!--<view class="font_26 flo_l black_6 ellipsis_1" style="margin-left: 14rpx">{{item.linking_user.message}}</view>-->
<!--<view class="weui-cell__ft weui-cell__ft_in-access"></view>-->
</view> </view>
</view> </view>
<view class="clearfloat"></view> <view class="clearfloat"></view>
<!-- <view class="weui-tab__content" >-->
<!--&lt;!&ndash; <view class="text-left">&ndash;&gt;-->
<!--&lt;!&ndash; <tabSearchV2 title="搜索黑名单" BColor="#fff"></tabSearchV2>&ndash;&gt;-->
<!--&lt;!&ndash; </view>&ndash;&gt;-->
<!-- </view>-->
</view>
</view> </view>
<pageScroll></pageScroll> <pageScroll></pageScroll>
<block v-if="loading"> <block v-if="loading">
@ -82,10 +69,7 @@ wepy.page({
type: '' type: ''
}, },
computed: {},
onShareAppMessage(res) { onShareAppMessage(res) {
// return this.$parent.onShareAppMessage(this.config.navigationBarTitleText)
}, },
async onLoad(e) { async onLoad(e) {
@ -97,7 +81,6 @@ wepy.page({
}, },
onShow() { onShow() {
// this.$parent.getTracker(this.$root.$name, this.config.navigationBarTitleText)
}, },
onPullDownRefresh() { onPullDownRefresh() {
@ -106,9 +89,6 @@ wepy.page({
}, },
onPageScroll(res) { onPageScroll(res) {
let top = res.scrollTop,
show = top > 380 ? true : false
// this.$broadcast('showBackTopBtn', show)
}, },
onReachBottom() { onReachBottom() {
setTimeout(() => { setTimeout(() => {
@ -221,8 +201,6 @@ wepy.page({
</script> </script>
<style lang="less"> <style lang="less">
//@import "../../styles/weui/base/fn.wxss";
//@import "../../styles/custom/fn.less";
page{ page{
background: white; background: white;
} }

View File

@ -1,12 +1,6 @@
<template> <template>
<!-- <cuCustom bgColor="bg-white" isBack="{{true}}">-->
<!-- <view slot="backText">返回</view>-->
<!-- <view slot="content" class="bold color-333">学历认证</view>-->
<!-- </cuCustom>-->
<view v-if="accomplish == 1 && !up"> <view v-if="accomplish == 1 && !up">
<view class="certificate_title"> <view class="certificate_title">
<!-- <image class="certificate_title" src="https://images.ufutx.com/202012/28/55c967dd943da8bda5321f380c6c269e.png" mode="widthFix"></image> -->
<view class="font_30 color-333 bold title"> <view class="font_30 color-333 bold title">
<view class="img" style="background-image:url(https://images.ufutx.com/202104/29/5cefaa65f4103540201b7f9ec8bb4faf.png);"></view> <view class="img" style="background-image:url(https://images.ufutx.com/202104/29/5cefaa65f4103540201b7f9ec8bb4faf.png);"></view>
学历已认证 学历已认证
@ -15,11 +9,8 @@
<view class="way pass animation-slide-bottom"> <view class="way pass animation-slide-bottom">
<view class="font_28 color-000 textStyle bold">认证方式</view> <view class="font_28 color-000 textStyle bold">认证方式</view>
<view class="certificate"> <view class="certificate">
<!-- <input type="text" value="{{manner[mannerIndex]}}" disabled class="font_28 color-333"/> -->
<view class="font_28 color-333" style="margin-right:10rpx;">{{manner[mannerIndex]}}</view> <view class="font_28 color-333" style="margin-right:10rpx;">{{manner[mannerIndex]}}</view>
<!-- <view class="triangle"></view> -->
</view> </view>
<!-- <view wx:if="{{hint}}" class="hintImg" style="background-image:url(https://images.ufutx.com/202104/27/e536a423a145ae12ab4f6dc57f58588d.png);">点此更换认证方式</view> -->
</view> </view>
<block v-if="mannerIndex == 0"> <block v-if="mannerIndex == 0">
<view class="way pass animation-slide-bottom" v-if="user.graduate_school"> <view class="way pass animation-slide-bottom" v-if="user.graduate_school">
@ -54,13 +45,10 @@
<view v-else class=""> <view v-else class="">
<view class="certificate_title"> <view class="certificate_title">
<!-- <image class="certificate_title" src="https://images.ufutx.com/202012/28/55c967dd943da8bda5321f380c6c269e.png" mode="widthFix"></image> -->
<!-- <view class="font_30 color-333 bold">学历认证</view> -->
<view class="font_28 color-666">用于验证《中国高等教育学历认证》的真实性,支持【学信网】【毕业证书】【留学服务中心证书】等方式认证,承诺保障信息安全。</view> <view class="font_28 color-666">用于验证《中国高等教育学历认证》的真实性,支持【学信网】【毕业证书】【留学服务中心证书】等方式认证,承诺保障信息安全。</view>
<view class="way animation-slide-bottom"> <view class="way animation-slide-bottom">
<view class="font_28 color-000 textStyle bold">认证方式</view> <view class="font_28 color-000 textStyle bold">认证方式</view>
<view class="certificate" bindtap="mannerChange"> <view class="certificate" bindtap="mannerChange">
<!-- <input type="text" value="{{manner[mannerIndex]}}" disabled class="font_28 color-333"/> -->
<view class="font_28 color-333" style="margin-right:10rpx;">{{manner[mannerIndex]}}</view> <view class="font_28 color-333" style="margin-right:10rpx;">{{manner[mannerIndex]}}</view>
<view class="triangle"></view> <view class="triangle"></view>
</view> </view>
@ -82,10 +70,6 @@
<input type="text" v-model="degree[degreeIndex]" disabled class="inputStyle font_30" readonly placeholder="请选择你的最高学历" /> <input type="text" v-model="degree[degreeIndex]" disabled class="inputStyle font_30" readonly placeholder="请选择你的最高学历" />
</view> </view>
</picker> </picker>
<!-- <view class="font_28 textStyle bold">学历</view>-->
<!-- <view catchtap="degreeChange" >-->
<!-- <input type="text" v-model="degree[degreeIndex]" disabled class="inputStyle font_30" readonly placeholder="请选择你的最高学历" />-->
<!-- </view>-->
</view> </view>
<view class="animation-slide-bottom"> <view class="animation-slide-bottom">
<view class="font_30 color-333 bold">请上传你的毕业证书、学位证书或学信网截图</view> <view class="font_30 color-333 bold">请上传你的毕业证书、学位证书或学信网截图</view>
@ -123,11 +107,9 @@
<view class="rit"></view> <view class="rit"></view>
</view> </view>
</view> </view>
<!-- <view style="height: 22vh"></view>-->
<view class="submit_box text-center"> <view class="submit_box text-center">
<view class="Can_submit_button font_32" @tap="save" v-if="anew == 1">立即认证</view> <view class="Can_submit_button font_32" @tap="save" v-if="anew == 1">立即认证</view>
<view class="Can_submit_button font_32" @tap="save" v-else>重新认证</view> <view class="Can_submit_button font_32" @tap="save" v-else>重新认证</view>
<!-- <view class="font_24 color-999">请确保提交的信息真实有效,盗用他人资料认证将会被封号</view> -->
</view> </view>
<view class="main-logo text-center animation-slide-bottom"> <view class="main-logo text-center animation-slide-bottom">
<view style="margin-bottom: 22rpx;"> <view style="margin-bottom: 22rpx;">
@ -165,24 +147,6 @@
</view> </view>
</view> </view>
<uploadPic :chooseShow.sync="choosePicsShow" @changeVal="changeVal" @closeUploadPic="closeUploadPic"></uploadPic> <uploadPic :chooseShow.sync="choosePicsShow" @changeVal="changeVal" @closeUploadPic="closeUploadPic"></uploadPic>
<!-- <view class="popUp">-->
<!-- <view :class="{'show':modalName=='bottomModals'}" class="cu-modal bottom-modal" catchtap="hideModal"></view>-->
<!-- <view class="bouncedV2 ff" v-if="modalName=='bottomModals'">-->
<!-- <view class="cu-dialog bounced">-->
<!-- <view class="_title text-center ff animation-slide-top">-->
<!-- <view class="color-666 font_32" catchtap="hideModal">取消</view>-->
<!-- <view class="color-333 bold text-black ff font_32">请选择最高学历</view>-->
<!-- <view class="font_32" style="color: #F33B6C;" catchtap="confirm">确定</view>-->
<!-- </view>-->
<!-- <picker-view class="picker-content-item animation-slide-right" value="{{degreeIndex}}" indicator-style="height: 100rpx;" bindchange="statureChange">-->
<!-- <picker-view-column>-->
<!-- <view v-for="(item,index) in degree" :key="index" :class="{'tex':degreeIndex == index}" class="picker_column_item ">{{item}}</view>-->
<!-- </picker-view-column>-->
<!-- </picker-view>-->
<!-- &lt;!&ndash; <view class="font_28 cu-modal_nextStep text-center radius bg-blue" catchtap="confirm">确定</view> &ndash;&gt;-->
<!-- </view>-->
<!-- </view>-->
<!-- </view>-->
</template> </template>
<script> <script>
@ -190,13 +154,6 @@
import https from '../../mixins/https' import https from '../../mixins/https'
import base from '../../mixins/base' import base from '../../mixins/base'
import {service} from '../../config.js' import {service} from '../../config.js'
// import NavBar from '../../components/NavBar'
//
// import modal from '../../components/modal'
// import {getsubscription} from '../../utils/fn'
// import cuCustom from '../../components/cu-custom'
// import uploadImage from '../../components/uploadImage'
wepy.page({ wepy.page({
mixins: [base, https], mixins: [base, https],
data: { data: {
@ -205,7 +162,6 @@
modalName: '', modalName: '',
educate_photo: '', educate_photo: '',
degree: ['博士', '硕士', '本科', '大专', '其他'], degree: ['博士', '硕士', '本科', '大专', '其他'],
// manner:['毕业证/学位证书照片','毕业证/学位证书编号','国内学信网在线认证'],
manner: ['毕业证/学位证书照片', '国内学信网在线认证'], manner: ['毕业证/学位证书照片', '国内学信网在线认证'],
degreeIndex: '', degreeIndex: '',
mannerIndex: 0, mannerIndex: 0,
@ -233,46 +189,7 @@
if (e && e.school) { if (e && e.school) {
this.school = e.school this.school = e.school
} }
// console.log(this, 'this.school')
// this.getTempId()
// this.initPageData()
// this.$parent.getTracker(this.$root.$name, this.config.navigationBarTitleText)
}, },
// observers: {
// 'school': function (school) {
// console.log(school, '9999')
// }
// },
// onShareAppMessage(res) {
// return this.$parent.onShareAppMessage(this.config.navigationBarTitleText)
// }
// onShareAppMessage (res) {
// let vm = this
// vm.$invoke('modal', 'hideModal')
// let fromUserID = wx.getStorageSync('user_id')
// let url = 'pages/tabBar/welcome?from_openid=' + wx.getStorageSync('openid') + '&from_user_id=' + fromUserID
// console.log(url)
// return {
// title: '推荐福恋,婚恋家庭幸福平台',
// path: url,
// imageUrl: vm.invite_pic,
// success: function (res) {
// wx.showToast({
// title: '转发成功',
// icon: 'success',
// duration: 1500
// })
// // let shareTickets = res.shareTickets
// // if (shareTickets.length == 0) {
// // return false
// // }
// },
// fail: function (res) {
// // 转发失败
// }
// }
// }
async onLoad(e) { async onLoad(e) {
this.accomplish = e.typ ? e.typ : '' this.accomplish = e.typ ? e.typ : ''
@ -282,21 +199,11 @@
setTimeout(() => { setTimeout(() => {
this.hint = false this.hint = false
}, 3000) }, 3000)
// if (e.state != '') {
// this.state = e.state
// }
// if (this.state == 2) {
// this.modalName = 'successfulModal'
// }
}, },
onPullDownRefresh() { onPullDownRefresh() {
// this.initPageData()
}, },
// show(e) {
// console.log(e, '999')
// this.school = e
// },
methods: { methods: {
onInput(e) { onInput(e) {
console.log(e, 'eeee==2333=') console.log(e, 'eeee==2333=')
@ -368,9 +275,7 @@
educate_photo: vm.educate_photo, educate_photo: vm.educate_photo,
graduate_school: vm.school, graduate_school: vm.school,
degree: vm.degree[vm.degreeIndex] degree: vm.degree[vm.degreeIndex]
// eca_type: vm.mannerIndex
} }
// console.log(vm, 'vn===')
// 在线认证 // 在线认证
if (vm.mannerIndex == 1) { if (vm.mannerIndex == 1) {
data = { data = {
@ -378,7 +283,6 @@
graduate_school: '', graduate_school: '',
degree: '', degree: '',
chsi_code: vm.attestation chsi_code: vm.attestation
// eca_type: vm.mannerIndex
} }
if (!vm.attestation) { if (!vm.attestation) {
return vm.$showToast('请填写在线验证码') return vm.$showToast('请填写在线验证码')
@ -389,7 +293,6 @@
return false return false
} }
vm.$post({url: `${service.host}/user/approve/education`, data}).then(({code, data}) => { vm.$post({url: `${service.host}/user/approve/education`, data}).then(({code, data}) => {
// vm.$showToast('提交成功')
vm.modalName = 'successfulModal' vm.modalName = 'successfulModal'
}) })
console.log(vm.attestation) console.log(vm.attestation)
@ -407,7 +310,6 @@
} }
vm.$post({url: `${service.host}/user/approve/education`, data}).then(({code, data}) => { vm.$post({url: `${service.host}/user/approve/education`, data}).then(({code, data}) => {
// vm.$showToast('提交成功')
vm.modalName = 'successfulModal' vm.modalName = 'successfulModal'
}) })
} }
@ -417,19 +319,14 @@
}, },
toUploadPic() { // 上传组件 toUploadPic() { // 上传组件
let vm = this let vm = this
console.log('----999')
vm.choosePicsShow = true vm.choosePicsShow = true
// this.$invoke('uploadImage', 'chooseimage')
}, },
changeVal(e) { changeVal(e) {
let vm = this let vm = this
console.log(e, 'e===')
vm.educate_photo = e[0].filePath vm.educate_photo = e[0].filePath
// let photos = e
}, },
// 关闭弹窗 // 关闭弹窗
closeUploadPic() { closeUploadPic() {
console.log('*****close**********')
this.choosePicsShow = false this.choosePicsShow = false
}, },
degreeChange(e) { degreeChange(e) {
@ -440,7 +337,6 @@
this.modalName = 'bottomModals' this.modalName = 'bottomModals'
}, },
mannerChange(e) { mannerChange(e) {
// this.ShowDegree = true
this.modalName = 'bottomModal' this.modalName = 'bottomModal'
}, },
select(e) { select(e) {
@ -452,10 +348,6 @@
hideModal(e) { hideModal(e) {
this.modalName = '' this.modalName = ''
} }
// UpLoadImage(value) {
// this.educate_photo = value
// wx.hideLoading()
// }
} }
}) })
</script> </script>
@ -488,19 +380,11 @@
background-size: cover; background-size: cover;
background-position: center; background-position: center;
} }
// .inputStyle{
// padding-right: 26rpx;
// }
.certificate{ .certificate{
position:relative; position:relative;
display:flex; display:flex;
align-items: center; align-items: center;
.triangle{ .triangle{
// position: absolute;
// top: 0;
// bottom: 0;
// right: 0;
// margin: auto;
width: 0; width: 0;
height: 0; height: 0;
border-right: 5px solid transparent; border-right: 5px solid transparent;
@ -651,10 +535,6 @@
} }
} }
.submit_box{ .submit_box{
//position: fixed;
//left: 0;
//right: 0;
//bottom: 80rpx;
margin-top: 30rpx; margin-top: 30rpx;
.submit_button, .Can_submit_button{ .submit_button, .Can_submit_button{
width: 650rpx; width: 650rpx;
@ -795,12 +675,8 @@
position: absolute; position: absolute;
bottom: 60rpx; bottom: 60rpx;
left: 33%; left: 33%;
//margin-left: -120rpx;
//margin: 0 auto 32rpx auto;
//margin: auto;
border-radius: 60rpx; border-radius: 60rpx;
z-index: 99999; z-index: 99999;
//margin-top: 58rpx;
background-image: linear-gradient(to right, #FF5380 0%, #FF85A5 100%); background-image: linear-gradient(to right, #FF5380 0%, #FF85A5 100%);
color: #ffffff; color: #ffffff;
} }

View File

@ -1,15 +1,4 @@
<template> <template>
<!-- <NavBar rgba="#ffffff" bag="#ffffff" :title.sync="title"></NavBar>-->
<!-- <Loading :init.sync="init"></Loading>-->
<!-- <view class="navbar borrow">-->
<!-- <view class="ui-top-image">-->
<!-- <image src="https://image.fulllinkai.com/202305/18/b7f2b5ff6700a907685372fbf36a2048.png" mode="aspectFill" class="ui-top-image flo_l"></image>-->
<!-- </view>-->
<!-- <view class="f-fc ui-list-tip">-->
<!-- <image src="https://image.fulllinkai.com/202305/18/83c911dd369ca02d6a8377d13093f9db.png" mode="aspectFill" class="ui-top-icon flo_l"></image>-->
<!-- <view class="bold color-333">专属客服</view>-->
<!-- </view>-->
<!-- </view>-->
<view class="ui-service-list"> <view class="ui-service-list">
<block v-for="(item,index) in list" :key="index"> <block v-for="(item,index) in list" :key="index">
<view class="ui-list-card f-fbc"> <view class="ui-list-card f-fbc">
@ -23,7 +12,6 @@
</view> </view>
</block> </block>
</view> </view>
<!-- <pageScroll></pageScroll>-->
<block v-if="loading"> <block v-if="loading">
<view class="weui-loadmore"> <view class="weui-loadmore">
<view class="weui-loading"></view> <view class="weui-loading"></view>
@ -45,12 +33,7 @@
</view> </view>
</view> </view>
</view> </view>
<!-- <block wx:if="{{noMore}}">-->
<!-- <view class="weui-loadmore weui-loadmore_line weui-loadmore_dot">-->
<!-- <view class="weui-loadmore__tips weui-loadmore__tips_in-line weui-loadmore__tips_in-dot ff"></view>-->
<!-- </view>-->
<!-- </block>-->
<!-- </view>-->
</template> </template>
<script> <script>
@ -58,10 +41,7 @@
import { service } from '../../config.js' import { service } from '../../config.js'
import https from '../../mixins/https' import https from '../../mixins/https'
import base from '../../mixins/base' import base from '../../mixins/base'
// import NavBar from '../../components/NavBar'
// import tabSearchV2 from '../../components/tabSearchV2'
// import pageScroll from '../../components/pageScroll'
wepy.page({ wepy.page({
mixins: [base, https], mixins: [base, https],
data: { data: {
@ -92,7 +72,6 @@ import base from '../../mixins/base'
}, },
onShow() { onShow() {
// this.$parent.getTracker(this.$root.$name, this.config.navigationBarTitleText)
}, },
onPullDownRefresh() { onPullDownRefresh() {
@ -130,8 +109,6 @@ import base from '../../mixins/base'
showCode(row) { showCode(row) {
let vm = this let vm = this
// vm.exclusiveService = row.exclusiveService
// vm.modalName = 'isExclusiveService'
let url = `${service.host}/crm/alone/cs/add` let url = `${service.host}/crm/alone/cs/add`
let data = { let data = {
role_user_id: row.user_id role_user_id: row.user_id
@ -145,7 +122,6 @@ import base from '../../mixins/base'
let vm = this let vm = this
console.log('1--') console.log('1--')
vm.modalName = '' vm.modalName = ''
// vm.$gotoTab({url: '/pages/tabBar/user'})
wx.switchTab({url: '/pages/tabBar/user'}) wx.switchTab({url: '/pages/tabBar/user'})
} }
} }

View File

@ -114,9 +114,6 @@ wepy.page({
}, },
onShow() { onShow() {
let vm = this
// vm.$parent.getTracker(vm.$root.$name, vm.config.navigationBarTitleText)
// vm.$apply()
}, },
onPullDownRefresh() { onPullDownRefresh() {
@ -124,9 +121,7 @@ wepy.page({
this.getLibraries() this.getLibraries()
}, },
onPageScroll(res) { onPageScroll(res) {
let top = res.scrollTop,
show = top > 380 ? true : false
// this.$broadcast('showBackTopBtn', show)
}, },
onReachBottom() { onReachBottom() {
let vm = this let vm = this
@ -140,8 +135,6 @@ wepy.page({
let fromUserID = wx.getStorageSync('user_id') let fromUserID = wx.getStorageSync('user_id')
console.log(that.is_share_id, 'is_share_id-') console.log(that.is_share_id, 'is_share_id-')
if (!that.is_share_id) { if (!that.is_share_id) {
// let openid = wx.getStorageSync('openid')
// let fromUserID = wx.getStorageSync('user_id')
let url = `/pages/tabBar/welcome?from_openid=${openid}&share_user_id=${that.id}&from_user_id=${fromUserID}` let url = `/pages/tabBar/welcome?from_openid=${openid}&share_user_id=${that.id}&from_user_id=${fromUserID}`
console.log(url) console.log(url)
@ -166,15 +159,12 @@ wepy.page({
} }
} else { } else {
that.is_share_id = '' that.is_share_id = ''
// let {id} = wx.getStorageSync('userInfo')
// let fromUserID = wx.getStorageSync('user_id')
let url = `/pages/home/information?id=${that.share_id}&from_openid=${openid}&share_user_id=${that.share_id}&from_user_id=${fromUserID}` let url = `/pages/home/information?id=${that.share_id}&from_openid=${openid}&share_user_id=${that.share_id}&from_user_id=${fromUserID}`
return { return {
title: '觉得Ta很不错可以认识一下', title: '觉得Ta很不错可以认识一下',
path: url, path: url,
imageUrl: that.share_image, imageUrl: that.share_image,
success: function(res) { success: function(res) {
// that.$parent.getEvent(this.config.navigationBarTitleText, '分享成功', `userID=${id}`)
wx.showToast({ wx.showToast({
title: '转发成功', title: '转发成功',
icon: 'success', icon: 'success',
@ -231,7 +221,7 @@ wepy.page({
} }
} }
if (this.$isArray(data) && data.length === 0) { if (this.data && data.length === 0) {
_this.noMore = true _this.noMore = true
_this.list = [] _this.list = []
return return
@ -392,9 +382,6 @@ wepy.page({
<style lang="less"> <style lang="less">
page{ page{
background: #f8f8f8; background: #f8f8f8;
//padding-bottom: constant(safe-area-inset-bottom);
//padding-bottom: env(safe-area-inset-bottom);
// height: 100%;
} }
.initStyle{ .initStyle{
background: #999999; background: #999999;

View File

@ -97,7 +97,6 @@
}, },
onShow() { onShow() {
// this.$parent.getTracker(this.$root.$name, this.config.navigationBarTitleText)
}, },
onPullDownRefresh() { onPullDownRefresh() {
@ -197,10 +196,6 @@
type: 'ALLSEX', type: 'ALLSEX',
reason: vm.value reason: vm.value
} }
console.log(vm.value)
// if (vm.showSecondType) {
// return vm.modalName = 'secondType'
// }
if (vm.throttling) { if (vm.throttling) {
vm.throttling = false vm.throttling = false
vm.$post({url: `${service.host}/setting/hidden/profile`, data}).then(({code, res}) => { vm.$post({url: `${service.host}/setting/hidden/profile`, data}).then(({code, res}) => {

View File

@ -1,13 +1,8 @@
<template> <template>
<!-- <view class="cu-custom">-->
<!-- <view class="cu-bar fixed" style="height:{{CustomBar}}px;padding-top:{{StatusBar}}px;z-index: 999">-->
<!-- <view class="font_30 color-333" style="position: fixed;left: 50%;transform: translateX(-50%)">关闭资料</view>-->
<!-- </view>-->
<!-- </view>-->
<view style="height: {{navHeight}}px"></view> <view style="height: {{navHeight}}px"></view>
<view class="wrapper font_28"> <view class="wrapper font_28">
<image class="defaultIcon" src="https://images.ufutx.com/202105/31/39b80c3ff8563b9dcf5e20c07473f52a.png" mode="widthFix"></image> <image class="defaultIcon" src="https://images.ufutx.com/202105/31/39b80c3ff8563b9dcf5e20c07473f52a.png" mode="widthFix"></image>
<!-- <view class="color-999 font_32 text-center" style="margin: 0 50rpx 0rpx 50rpx"></view>-->
<view class="color-999 font_32 text-center" style="margin: 0 50rpx 48rpx 50rpx">你的资料处于关闭状态无法查看其他内容可重新开启资料账号id{{id}}</view> <view class="color-999 font_32 text-center" style="margin: 0 50rpx 48rpx 50rpx">你的资料处于关闭状态无法查看其他内容可重新开启资料账号id{{id}}</view>
<view class="openButton font_32" @tap="openData">打开资料</view> <view class="openButton font_32" @tap="openData">打开资料</view>
</view> </view>
@ -23,9 +18,6 @@
mixins: [base, https], mixins: [base, https],
data: { data: {
// StatusBar: wepy.$instance.globalData.StatusBar,
// CustomBar: wepy.$instance.globalData.CustomBar,
// Custom: wepy.$instance.globalData.Custom,
navHeight: '', navHeight: '',
windowHeight: '', windowHeight: '',
id: '' id: ''
@ -34,7 +26,6 @@
async onLoad(e) { async onLoad(e) {
if (wx.getStorageSync('UID')) { if (wx.getStorageSync('UID')) {
this.id = wx.getStorageSync('UID') this.id = wx.getStorageSync('UID')
this.$apply()
return return
} }
this.id = wx.getStorageSync('user_id') this.id = wx.getStorageSync('user_id')
@ -57,7 +48,6 @@
let num = 1 let num = 1
num++ num++
wx.setStorageSync('logoutCode', num) wx.setStorageSync('logoutCode', num)
// this.$parent.getTracker(this.$root.$name, this.config.navigationBarTitleText)
}, },
onPullDownRefresh() { onPullDownRefresh() {
@ -83,8 +73,7 @@
</script> </script>
<style lang="less"> <style lang="less">
//@import "../../styles/weui/base/fn.wxss";
//@import "../../styles/custom/fn.less";
page{ page{
background: white; background: white;
} }

View File

@ -125,11 +125,9 @@
onShow() { onShow() {
this.$showLoading('加载中') this.$showLoading('加载中')
this.GetInit() this.GetInit()
// this.routerNum = getCurrentPages()
if (wx.getStorageSync('certificationState')) { if (wx.getStorageSync('certificationState')) {
this.stateV2 = wx.getStorageSync('certificationState') this.stateV2 = wx.getStorageSync('certificationState')
} }
// this.$parent.getTracker(this.$root.$name, '我的认证')
}, },
onShareAppMessage (res) { onShareAppMessage (res) {
@ -155,17 +153,13 @@
}, },
onLoad(e) { onLoad(e) {
// this.getTempId()
let menuButtonObject = wx.getMenuButtonBoundingClientRect() let menuButtonObject = wx.getMenuButtonBoundingClientRect()
let info = wx.getSystemInfoSync()
wx.getSystemInfo({ wx.getSystemInfo({
success: res => { success: res => {
let statusBarHeight = res.statusBarHeight, let statusBarHeight = res.statusBarHeight,
navHeight = statusBarHeight + menuButtonObject.height + (menuButtonObject.top - statusBarHeight) * 2 // 导航高度 navHeight = statusBarHeight + menuButtonObject.height + (menuButtonObject.top - statusBarHeight) * 2 // 导航高度
this.navHeight = navHeight this.navHeight = navHeight
} }
// fail(err) {
// }
}) })
}, },
onPullDownRefresh() { onPullDownRefresh() {
@ -272,8 +266,6 @@
</script> </script>
<style lang="less"> <style lang="less">
//@import "../../styles/custom/fn.less";
//@import "../../styles/custom/reset.less";
page { page {
background: #ffffff; background: #ffffff;
} }

View File

@ -27,8 +27,6 @@
import https from '../../mixins/https' import https from '../../mixins/https'
import base from '../../mixins/base' import base from '../../mixins/base'
import utils from '../../utils/util' import utils from '../../utils/util'
// import ShareMessage from '../../mixins/ShareMessage'
// import dynamicList from '../../components/dynamicList'
wepy.page({ wepy.page({
mixins: [base, https], mixins: [base, https],
@ -131,7 +129,7 @@
} }
}) })
_this.list = [..._this.list, ...data.data] _this.list = [..._this.list, ...data.data]
this.$refs.dynamicList.textAll // this.$refs.dynamicList.textAll
}) })
}, },
deleteV2() { deleteV2() {

View File

@ -75,33 +75,13 @@ wepy.page({
bgVip: 'background: #333333;\ncolor: white' bgVip: 'background: #333333;\ncolor: white'
}, },
// computed: {
// nickName () {
// // return (user && user.wechat && user.wechat.nickname) ? user.wechat.nickname : '未授权用户'
// }
// },
onShow () { onShow () {
// 初始化页面数据
// this.$parent.getTracker(this.$root.$name, this.config.navigationBarTitleText)
}, },
onLoad () { onLoad () {
let that = this
this.$showLoading('加载中') this.$showLoading('加载中')
this.vipData() this.vipData()
// let menuButtonObject = wx.getMenuButtonBoundingClientRect()
// wx.getSystemInfo({
// success: res => {
// let statusBarHeight = res.statusBarHeight,
// navTop = menuButtonObject.top, // 胶囊按钮与顶部的距离
// navHeight = statusBarHeight + menuButtonObject.height + (menuButtonObject.top - statusBarHeight) * 2 // 导航高度
// that.windowHeight = res.windowHeight - (navHeight + 54)
// console.log(res, 'd===')
// that.system = res.system.split(' ')[0]
// }
// })
}, },
onPullDownRefresh () { onPullDownRefresh () {
@ -156,7 +136,6 @@ wepy.page({
_this.loading = true _this.loading = true
this.$get({url: `${service.host}/order/rank/list`, data}).then(({code, data}) => { this.$get({url: `${service.host}/order/rank/list`, data}).then(({code, data}) => {
_this.triggeredsService = false _this.triggeredsService = false
console.log(data, 'data===')
if (!data.data || (data.data.length == 0 && _this.vipPage == 1)) { if (!data.data || (data.data.length == 0 && _this.vipPage == 1)) {
_this.hideMessage = true _this.hideMessage = true
return return
@ -300,24 +279,6 @@ page{
border-radius: 26rpx; border-radius: 26rpx;
background: linear-gradient(270deg, #FF85A5 0%, #FF5380 100%); background: linear-gradient(270deg, #FF85A5 0%, #FF5380 100%);
} }
//.viewOrderBox{
// display: flex;
// justify-content: right;
// align-items: center;
// .OnceAgainBtn, .viewOrderBtn{
// width: 144rpx;
// height: 52rpx;
// border-radius: 26rpx;
// }
// .OnceAgainBtn{
// margin-right: 20rpx;
// border: 2rpx solid #D8D8D8;
// }
// .viewOrderBtn{
// color: #619eff;
// border: 2rpx solid #BCD6FF;
// }
//}
} }
} }
} }

View File

@ -60,7 +60,6 @@
}, },
onShow() { onShow() {
// this.$parent.getTracker(this.$root.$name, this.config.navigationBarTitleText)
}, },
methods: { methods: {

View File

@ -100,7 +100,6 @@ import {getPhoneNumber} from '../../utils/util'
} }
}, },
onShow() { onShow() {
// this.$parent.getTracker(this.$root.$name, this.config.navigationBarTitleText)
}, },
methods: { methods: {
@ -150,12 +149,6 @@ import {getPhoneNumber} from '../../utils/util'
photos: this.imgList photos: this.imgList
}, },
vm = this vm = this
// for (let item in data) {
// if (!data[item]) {
// return vm.$showToast('请填写相关举报信息!')
// }
// }
console.log(data)
if (!vm.throttling) { if (!vm.throttling) {
return return
} }
@ -180,7 +173,6 @@ import {getPhoneNumber} from '../../utils/util'
photos: this.imgList photos: this.imgList
}, },
vm = this vm = this
console.log(data)
if (!vm.throttling) { if (!vm.throttling) {
} }
@ -239,10 +231,6 @@ import {getPhoneNumber} from '../../utils/util'
}, },
ViewImage(e) { ViewImage(e) {
this.$previewImages(e, this.imgList) this.$previewImages(e, this.imgList)
// wepy.previewImage({
// urls: this.imgList,
// current: e
// })
}, },
DelImg(index) { DelImg(index) {
this.imgList.splice(index, 1) this.imgList.splice(index, 1)
@ -256,36 +244,6 @@ import {getPhoneNumber} from '../../utils/util'
title: '' title: ''
}) })
}, },
location() {
var qqmapsdk = new qqmap({
key: ''
})
let vm = this
if (wx.getFuzzyLocation) {
wx.getFuzzyLocation({
type: 'gcj02',
success(res) {
console.log(res)
vm.latitude = res.latitude
vm.longitude = res.longitude
qqmapsdk.reverseGeocoder({
location: {
latitude: res.latitude,
longitude: res.longitude
},
success: function (addressRes) {
console.log(addressRes)
}
})
}
})
} else {
wx.showModal({
title: '提示',
content: '当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。'
})
}
},
report() { report() {
if (this.title.length == 0) { if (this.title.length == 0) {
wx.showToast({ wx.showToast({
@ -326,11 +284,6 @@ import {getPhoneNumber} from '../../utils/util'
this.title = e this.title = e
this.colorindex = index this.colorindex = index
} }
},
events: {
'UpLoadImage': (value) => {
this.imgList.push(value)
}
} }
}) })
</script> </script>

View File

@ -12,7 +12,6 @@
<block v-for="(item,index) in hottopic" :key="index"> <block v-for="(item,index) in hottopic" :key="index">
<view class="list" bindtap="handleHottopic" data-title="{{item.name}}"> <view class="list" bindtap="handleHottopic" data-title="{{item.name}}">
{{item.name}} {{item.name}}
<!-- <image wx:if="{{item.is_hot == 1}}" class="img" src="https://images.ufutx.com/202103/02/0dffc4de154e82b1a75ae4c0a2a62ecf.png" /> -->
</view> </view>
</block> </block>
<image class="zanwu" v-if="show" src="https://images.ufutx.com/202101/28/91c53fec5c317fc68138cb4dd42e9d8f.png"></image> <image class="zanwu" v-if="show" src="https://images.ufutx.com/202101/28/91c53fec5c317fc68138cb4dd42e9d8f.png"></image>
@ -41,20 +40,14 @@
show: false show: false
}, },
async onLoad() { async onLoad() {
// this.hottopics()
}, },
onShow() { onShow() {
// this.$parent.getTracker(this.$root.$name, this.config.navigationBarTitleText)
}, },
methods: { methods: {
handleHottopic(e) { handleHottopic(e) {
console.log(e, 'e===') console.log(e, 'e===')
var pages = getCurrentPages() var pages = getCurrentPages()
var prevPage = pages[pages.length - 2] var prevPage = pages[pages.length - 2]
// prevPage.setData({
// school: e.currentTarget.dataset.title,
// })
// prevPage.data.school = e.currentTarget.dataset.title
let data = prevPage.data.school let data = prevPage.data.school
console.log(prevPage, 'prevPage---') console.log(prevPage, 'prevPage---')
@ -97,9 +90,6 @@
</script> </script>
<style lang="less"> <style lang="less">
// .search{
// margin-bottom: 60rpx;
// }
.main { .main {
position: absolute; position: absolute;
overflow: hidden; overflow: hidden;
@ -142,15 +132,6 @@
color: #333333; color: #333333;
line-height: 44rpx; line-height: 44rpx;
} }
// .mains {
// height: 34rpx;
// font-size: 24rpx;
// font-family: PingFangSC-Regular, PingFang SC;
// font-weight: 400;
// color: #999999;
// line-height: 34rpx;
// margin-top: 12rpx;
// }
.num { .num {
height: 36rpx; height: 36rpx;
font-size: 26rpx; font-size: 26rpx;
@ -167,13 +148,6 @@
margin-bottom: 30rpx; margin-bottom: 30rpx;
} }
.hot { .hot {
// .topic {
// height: 44rpx;
// font-size: 32rpx;
// font-weight: 600;
// color: #333333;
// line-height: 44rpx;
// }
.mains { .mains {
height: auto; height: auto;
display: flex; display: flex;
@ -190,23 +164,14 @@
} }
.list { .list {
width: 100%; width: 100%;
// display: flex;
// justify-content: center;
// align-items: center;
height: 60rpx; height: 60rpx;
line-height: 60rpx; line-height: 60rpx;
// background: #F5F5F5;
border-radius: 8rpx; border-radius: 8rpx;
font-size: 30rpx; font-size: 30rpx;
font-weight: 400; font-weight: 400;
color: #333333; color: #333333;
margin-top: 10rpx; margin-top: 10rpx;
padding: 0 20rpx; padding: 0 20rpx;
// .img {
// width: 28rpx;
// height: 28rpx;
// margin-left: 6rpx;
// }
} }
} }
} }

View File

@ -101,10 +101,6 @@
<view class="currentWordNumber font_24">{{value.length}}/800</view> <view class="currentWordNumber font_24">{{value.length}}/800</view>
</view> </view>
</view> </view>
<!-- <view v-else >-->
<!-- <texTarea :placeholderText.sync="placeholderText" max="800" :value.sync="value"-->
<!-- @textareaValue.user="textareaValue"></texTarea>-->
<!-- </view>-->
<view class="m_con" v-else-if="text=='兴趣爱好'"> <view class="m_con" v-else-if="text=='兴趣爱好'">
<view class="u_con_tt font_28 color-999 bold">兴趣爱好的标签</view> <view class="u_con_tt font_28 color-999 bold">兴趣爱好的标签</view>
<view class="f-fc ui-wrap ui-hobbies-big-box"> <view class="f-fc ui-wrap ui-hobbies-big-box">
@ -162,7 +158,6 @@
import {service} from '../../config.js' import {service} from '../../config.js'
import https from '../../mixins/https' import https from '../../mixins/https'
import base from '../../mixins/base' import base from '../../mixins/base'
// import utils from '../../utils/util'
wepy.page({ wepy.page({
mixins: [base, https], mixins: [base, https],
data: { data: {
@ -712,17 +707,10 @@ import base from '../../mixins/base'
}, },
delCustomHob(item, index) { delCustomHob(item, index) {
let that = this let that = this
let data = {
customName: item
}
that.customHobbiesList.splice(index, 1) that.customHobbiesList.splice(index, 1)
let list = that.customHobbiesList.map(item => item.title) let list = that.customHobbiesList.map(item => item.title)
wx.setStorageSync('customHobList', list) wx.setStorageSync('customHobList', list)
console.log(that.customHobbiesList, 'that.customHobbiesList==') console.log(that.customHobbiesList, 'that.customHobbiesList==')
// that.$delete({url: `${service.host}/addresses/v2`}).then(({code, data}) => {
// that.getuser()
// that.modalName = ''
// })
}, },
changeSelectHob(item) { changeSelectHob(item) {
console.log('22') console.log('22')

View File

@ -1,14 +1,6 @@
<template> <template>
<view class="setTing"> <view class="setTing">
<view class="m_lst" > <view class="m_lst" >
<!-- <view class="u_lst f-fbc" >-->
<!-- <view class="u_lst f-fbc">-->
<!-- <view class="f-fc">-->
<!-- <view class="font_30 " >账号与安全</view>-->
<!-- </view>-->
<!-- </view>-->
<!-- <view class="color-999 font_28">29991201</view>-->
<!-- </view>-->
<block v-if="phoneNumber"> <block v-if="phoneNumber">
<view class="u_lst f-fbc" > <view class="u_lst f-fbc" >
<view class="u_lst f-fbc"> <view class="u_lst f-fbc">
@ -47,10 +39,8 @@
<view class="font_30 color-333" v-else>{{item.title}}</view> <view class="font_30 color-333" v-else>{{item.title}}</view>
<image v-if="item.title == '隐身访问' || item.title == '访客通知'" class="u_lst_vipImg" src="https://images.ufutx.com/202107/06/1ea086f5a6001752fa6efd55eabbe8d6.png" mode="scaleToFill" lazy-load="false"></image> <image v-if="item.title == '隐身访问' || item.title == '访客通知'" class="u_lst_vipImg" src="https://images.ufutx.com/202107/06/1ea086f5a6001752fa6efd55eabbe8d6.png" mode="scaleToFill" lazy-load="false"></image>
</view> </view>
<!-- <switch v-if="item.title == '每日推荐提醒'" checked="{{user.label_notice}}" disabled="{{switchDisabled}}" color="#d92553" class="flo_r" style="margin-right: -2rpx;margin-top: -6rpx;"/>-->
<switch v-if="item.title == '聊天消息提醒'" checked="{{user.notice_chat}}" disabled="{{switchDisabled}}" color="#d92553" class="flo_r" style="margin-right: -2rpx;margin-top: -6rpx;"/> <switch v-if="item.title == '聊天消息提醒'" checked="{{user.notice_chat}}" disabled="{{switchDisabled}}" color="#d92553" class="flo_r" style="margin-right: -2rpx;margin-top: -6rpx;"/>
<switch v-if="item.title == '营销消息'" checked="{{user.notice_market}}" disabled="{{switchDisabled}}" color="#d92553" class="flo_r" style="margin-right: -2rpx;margin-top: -6rpx;"/> <switch v-if="item.title == '营销消息'" checked="{{user.notice_market}}" disabled="{{switchDisabled}}" color="#d92553" class="flo_r" style="margin-right: -2rpx;margin-top: -6rpx;"/>
<!-- <switch v-if="item.title == '夸夸我'" checked="{{user.message_notice}}" disabled="{{switchDisabled}}" color="#d92553" class="flo_r" style="margin-right: -2rpx;margin-top: -6rpx;"/>-->
<switch v-if="item.title == '隐身访问'" checked="{{user.hidden_preview}}" disabled="{{switchDisabled}}" color="#d92553" class="flo_r" style="margin-right: -2rpx;margin-top: -6rpx;"/> <switch v-if="item.title == '隐身访问'" checked="{{user.hidden_preview}}" disabled="{{switchDisabled}}" color="#d92553" class="flo_r" style="margin-right: -2rpx;margin-top: -6rpx;"/>
<switch v-if="item.title == '访客通知'" checked="{{user.notice_preview}}" disabled="{{switchDisabled}}" color="#d92553" class="flo_r" style="margin-right: -2rpx;margin-top: -6rpx;"/> <switch v-if="item.title == '访客通知'" checked="{{user.notice_preview}}" disabled="{{switchDisabled}}" color="#d92553" class="flo_r" style="margin-right: -2rpx;margin-top: -6rpx;"/>
<image v-if="item.title !== '隐身访问' && item.title !== '访客通知' && item.title !== '每日推荐提醒' && item.title !== '夸夸我' && item.title !== '聊天消息提醒'&& item.title !== '营销消息' && item.title !== '关于福恋'" class="u_lst_you" mode="widthFix" src="https://images.ufutx.com/202012/23/f9713dc39b5d236067834ea0f1a6edaf.png"></image> <image v-if="item.title !== '隐身访问' && item.title !== '访客通知' && item.title !== '每日推荐提醒' && item.title !== '夸夸我' && item.title !== '聊天消息提醒'&& item.title !== '营销消息' && item.title !== '关于福恋'" class="u_lst_you" mode="widthFix" src="https://images.ufutx.com/202012/23/f9713dc39b5d236067834ea0f1a6edaf.png"></image>
@ -342,21 +332,11 @@
onShow() { onShow() {
this.versions = app.globalData.versions this.versions = app.globalData.versions
this.initPageData() this.initPageData()
// this.$parent.getTracker(this.$root.$name, this.config.navigationBarTitleText)
}, },
onLoad() { onLoad() {
// this.$invoke('modal', 'showModal')
this.system = app.globalData.systemInfo.system.split(' ')[0] this.system = app.globalData.systemInfo.system.split(' ')[0]
console.log(this.user)
}, },
// onHide() {
// this.$invoke('modal', 'hideModal')
// this.$invoke('modalUp', 'hideModal')
// this.stopMusic = !this.stopMusic
// this.onPauseMusic()
// }
methods: { methods: {
vipData() { vipData() {
this.$get({url: service.host + '/user/center'}).then(({code, data}) => { this.$get({url: service.host + '/user/center'}).then(({code, data}) => {
@ -368,9 +348,6 @@
this.$get({url: service.host + '/setting/list'}).then(({code, data}) => { this.$get({url: service.host + '/setting/list'}).then(({code, data}) => {
this.init = true this.init = true
this.user = data this.user = data
// if (this.user.profile_courtship.message_config == 2) {
// this.user.profile_courtship.message_config = 0
// }
this.phoneNumber = wx.getStorageSync('mobile') this.phoneNumber = wx.getStorageSync('mobile')
let vm = this, let vm = this,
my_qrcode = wx.getStorageSync('my_qrcode') my_qrcode = wx.getStorageSync('my_qrcode')
@ -428,51 +405,6 @@
wx.setStorageSync('type', data.type) wx.setStorageSync('type', data.type)
}) })
}, },
onPlayMusic() {
this.innerAudioContext = wx.createInnerAudioContext()
this.innerAudioContext.autoplay = true
this.innerAudioContext.src = 'http://fs.w.kugou.com/201903131827/e1a8ec0760cadfae374d8134e34586e6/G005/M0A/0D/11/pYYBAFUAR6OIO27aAA_94zuQwNEAABIIALm1Z8AD_37501.mp3'
this.innerAudioContext.loop = true
this.innerAudioContext.onPlay(() => {
console.log('开始播放')
})
this.innerAudioContext.onError((res) => {
console.log(res.errMsg)
console.log(res.errCode)
})
},
onPauseMusic() {
this.$invoke('modal', 'hideModal')
this.$invoke('modalUp', 'hideModal')
this.showUpLoad = !this.showUpLoad
this.stopMusic = !this.stopMusic
if (this.innerAudioContext) {
this.innerAudioContext.pause(() => {
console.log('停止播放')
})
this.innerAudioContext.onError((res) => {
console.log(res.errMsg)
console.log(res.errCode)
})
}
},
upDataAvatar() {
let data = {
photo: this.Image
}
this.$put({url: `${service.user}/photo`, data}, {
success: ({code, data}) => {
this.$Toast_success('更换成功')
},
fail: ({code, data}) => {
},
complete: () => {
wx.hideLoading()
}
})
},
hiddenChange() { // 隐身处理 hiddenChange() { // 隐身处理
console.log(this.user, this.user.hidden_preview, '000330') console.log(this.user, this.user.hidden_preview, '000330')
if (this.rankData.rank_id <= 0 && this.user.hidden_preview == 0) { if (this.rankData.rank_id <= 0 && this.user.hidden_preview == 0) {
@ -564,97 +496,10 @@
vm.$gotoBack(1) vm.$gotoBack(1)
} }
} }
// if (phoneNumber) {
// vm.phoneNumber = phoneNumber
// vm.$showToast('绑定成功')
// let pages = getCurrentPages()
// let prevPage = pages[pages.length - 2] // 上一个页面
// if (prevPage && prevPage.route == 'pages/users/myCertification') {
// vm.$gotoBack(1)
// }
// }
}) })
} else { } else {
// vm.$showToast('绑定成功')
} }
}, },
previewImage(item, list) {
this.$previewImage(item, list)
},
hide() {
this.stopMusic = !this.stopMusic
this.onPauseMusic()
},
chooseimage() {
this.onPauseMusic()
console.log(this.$getCurrentPageUrl(), 'asda')
this.$goto(`/pages/users/ImageCropper?src=${this.Image}`)
// this.$invoke('uploadImage', 'chooseimage')
},
// 注销账号
logout() {
let that = this
wx.showModal({ // 使用模态框提示用户进行操作
title: '警告',
content: '本操作将会注销您的账户,可能会导致您错过精心为您配对的另一半,是否继续?',
cancelText: '确定',
confirmText: '取消',
success: function (res) {
if (res.confirm) {
console.log('用户点击取消')
} else if (res.cancel) {
that.$delete({url: `${service.host}/admin/users/${that.user.id}`}).then(({code, data}) => {
wx.clearStorageSync()
wx.showModal({ // 使用模态框提示用户进行操作
title: 'Sorry!',
content: '很抱歉!我们的产品没有留住你,希望我们能够再次见面!!!',
showCancel: false,
confirmText: '确定',
success: function (res) {
if (res.confirm) {
that.$goto('/pages/tabBar/welcome')
}
}
})
})
}
}
})
},
// 显示对话框
showModal() {
// 显示遮罩层
var animation = wx.createAnimation({
duration: 200,
timingFunction: 'linear',
delay: 0
})
this.animation = animation
animation.translateY(300).step()
this.animationData = animation.export()
this.showModalStatus = true
setTimeout(function () {
animation.translateY(0).step()
this.animationData = animation.export()
}.bind(this), 200)
},
// 隐藏对话框
hideModal() {
// 隐藏遮罩层
var animation = wx.createAnimation({
duration: 200,
timingFunction: 'linear',
delay: 0
})
this.animation = animation
animation.translateY(300).step()
this.animationData = animation.export()
setTimeout(function () {
animation.translateY(0).step()
this.animationData = animation.export()
this.showModalStatus = false
}.bind(this), 200)
},
goto(url, title) { goto(url, title) {
console.log(this.hide, 'url====') console.log(this.hide, 'url====')
@ -699,28 +544,6 @@
} }
wx.navigateTo({url: url}) wx.navigateTo({url: url})
}, },
gotoUser(type) {
this.onPauseMusic()
let url = ''
if (type == 'single') {
url = '/pages/users/unmarriV2'
} else {
url = '/pages/users/intro'
}
wx.navigateTo({url: url})
},
hideShare(val) {
this.hide = true
},
UpLoadImage(value) {
let vm = this
vm.Image = value
vm.upDataAvatar()
},
toUpdateCut() {
this.switchDisabled = false
this.initPageData()
},
unlockingCut(e) { unlockingCut(e) {
console.log(e, '---') console.log(e, '---')
this.unlockIngModalName = e this.unlockIngModalName = e

View File

@ -15,7 +15,6 @@
<view class="m_basLst f-fbc" @tap="bindTips('性别无法更改哦,如有需要请联系客服')"> <view class="m_basLst f-fbc" @tap="bindTips('性别无法更改哦,如有需要请联系客服')">
<view> <view>
<span class="font_28 color-333 bold">性别</span> <span class="font_28 color-333 bold">性别</span>
<!-- <span class="color-theme font_22 bold">(不可修改)</span> -->
</view> </view>
<view class="f-fc"> <view class="f-fc">
<text class="font_28 color-333">{{sex[sexIndex]}}</text> <text class="font_28 color-333">{{sex[sexIndex]}}</text>
@ -27,7 +26,6 @@
<picker value="{{sexIndex}}" range="{{sex}}" bindchange="sexChange" > <picker value="{{sexIndex}}" range="{{sex}}" bindchange="sexChange" >
<view class="m_basLst f-fbc"> <view class="m_basLst f-fbc">
<span class="font_28 color-333 bold">性别</span> <span class="font_28 color-333 bold">性别</span>
<!-- <span class="color-theme"> *</span> -->
<view class="text"> <view class="text">
<span v-if="sexIndex>-1">{{sex[sexIndex]}}</span> <span v-if="sexIndex>-1">{{sex[sexIndex]}}</span>
<span v-else class="color-999">请选择</span> <span v-else class="color-999">请选择</span>
@ -41,7 +39,6 @@
<picker value="{{statureIndex}}" range="{{statureList}}" bindchange="statureChange" > <picker value="{{statureIndex}}" range="{{statureList}}" bindchange="statureChange" >
<view class="m_basLst f-fbc"> <view class="m_basLst f-fbc">
<span class="font_28 color-333 bold">身高</span> <span class="font_28 color-333 bold">身高</span>
<!-- <span class="color-theme"> *</span> -->
<view class="font_28 f-fc"> <view class="font_28 f-fc">
<span class="color333" v-if="statureIndex>-1">{{statureList[statureIndex]}}</span> <span class="color333" v-if="statureIndex>-1">{{statureList[statureIndex]}}</span>
<span v-else class="color-999">请选择</span> <span v-else class="color-999">请选择</span>
@ -54,7 +51,6 @@
<picker value="{{weightIndex}}" range="{{weightList}}" bindchange="weightChange" > <picker value="{{weightIndex}}" range="{{weightList}}" bindchange="weightChange" >
<view class="m_basLst f-fbc"> <view class="m_basLst f-fbc">
<span class="font_28 color-333 bold">体重</span> <span class="font_28 color-333 bold">体重</span>
<!-- <span class="color-theme"> *</span> -->
<view class="font_28 f-fc"> <view class="font_28 f-fc">
<span class="color333" v-if="weightIndex>-1">{{weightList[weightIndex]}}</span> <span class="color333" v-if="weightIndex>-1">{{weightList[weightIndex]}}</span>
<span v-else class="color-999">请选择</span> <span v-else class="color-999">请选择</span>
@ -66,7 +62,6 @@
<view class="u_bas"> <view class="u_bas">
<view class="m_basLst f-fbc"> <view class="m_basLst f-fbc">
<span class="font_28 color-333 bold">常居地</span> <span class="font_28 color-333 bold">常居地</span>
<!-- <span class="color-theme"> *</span> -->
<selectCity ref="selectCity" :itemIndex.sync="CITY_INDEX" :multiIndex.sync="multiIndex" class="flo_r" @selectCity="selectCity" @provinces="getProvinces"> <selectCity ref="selectCity" :itemIndex.sync="CITY_INDEX" :multiIndex.sync="multiIndex" class="flo_r" @selectCity="selectCity" @provinces="getProvinces">
<view class="font_28 f-fc"> <view class="font_28 f-fc">
<span class="color333" v-if="region[2]">{{region[1]}} / {{region[2]}}</span> <span class="color333" v-if="region[2]">{{region[1]}} / {{region[2]}}</span>
@ -83,7 +78,6 @@
<picker mode="date" value="1990-01-01" end="{{endDate}}" @change="typing('birthday',$event)"> <picker mode="date" value="1990-01-01" end="{{endDate}}" @change="typing('birthday',$event)">
<view class="m_secLst f-fbc"> <view class="m_secLst f-fbc">
<span class="font_28 color-333 bold">出生日期</span> <span class="font_28 color-333 bold">出生日期</span>
<!-- <span class="color-theme"> *</span> -->
<view class="font_28 f-fc"> <view class="font_28 f-fc">
<span class="color333" v-if="birthday">{{birthday}}</span> <span class="color333" v-if="birthday">{{birthday}}</span>
<span v-else class="color-999">请选择</span> <span v-else class="color-999">请选择</span>
@ -120,7 +114,6 @@
<picker mode="multiSelector" @change="bindMultiPickerChange2" @columnchange="bindMultiPickerColumnChange2" value="{{multiIndex2}}" range="{{objectMultiArray}}" > <picker mode="multiSelector" @change="bindMultiPickerChange2" @columnchange="bindMultiPickerColumnChange2" value="{{multiIndex2}}" range="{{objectMultiArray}}" >
<view class="m_secLst f-fbc"> <view class="m_secLst f-fbc">
<span class="font_28 color-333 bold">职业</span> <span class="font_28 color-333 bold">职业</span>
<!-- <span class="color-theme"> *</span> -->
<block v-if="show"> <block v-if="show">
<view class="font_28 f-fc"> <view class="font_28 f-fc">
<span class="color333" v-if="industry">{{industry}} / {{industry_sub}}</span> <span class="color333" v-if="industry">{{industry}} / {{industry_sub}}</span>
@ -142,7 +135,6 @@
<picker value="{{incomeIndex}}" range="{{incomeList}}" bindchange="incomeChange"> <picker value="{{incomeIndex}}" range="{{incomeList}}" bindchange="incomeChange">
<view class="m_secLst f-fbc"> <view class="m_secLst f-fbc">
<span class="font_28 color-333 bold">年收入</span> <span class="font_28 color-333 bold">年收入</span>
<!-- <span class="color-theme"> *</span> -->
<view class="font_28 f-fc"> <view class="font_28 f-fc">
<span class="color333" v-if="incomeIndex>-1">{{incomeList[incomeIndex]}}</span> <span class="color333" v-if="incomeIndex>-1">{{incomeList[incomeIndex]}}</span>
<span v-else class="color-999">请选择</span> <span v-else class="color-999">请选择</span>
@ -155,7 +147,6 @@
<picker value="{{beliefIndex}}" range="{{belief}}" bindchange="beliefChange"> <picker value="{{beliefIndex}}" range="{{belief}}" bindchange="beliefChange">
<view class="m_secLst f-fbc"> <view class="m_secLst f-fbc">
<span class="font_28 color-333 bold">信仰</span> <span class="font_28 color-333 bold">信仰</span>
<!-- <span class="color-theme"> *</span> -->
<view class="font_28 f-fc"> <view class="font_28 f-fc">
<span class="color333" v-if="beliefIndex>-1">{{belief[beliefIndex]}}</span> <span class="color333" v-if="beliefIndex>-1">{{belief[beliefIndex]}}</span>
<span v-else class="color-999">请选择</span> <span v-else class="color-999">请选择</span>
@ -168,7 +159,6 @@
<picker value="{{marriageIndex}}" range="{{marriage}}" bindchange="marriageChange"> <picker value="{{marriageIndex}}" range="{{marriage}}" bindchange="marriageChange">
<view class="m_secLst f-fbc"> <view class="m_secLst f-fbc">
<span class="font_28 color-333 bold">期望结婚</span> <span class="font_28 color-333 bold">期望结婚</span>
<!-- <span class="color-theme"> *</span> -->
<view class="font_28 f-fc"> <view class="font_28 f-fc">
<span class="color333" v-if="marriageIndex>-1">{{marriage[marriageIndex]}}</span> <span class="color333" v-if="marriageIndex>-1">{{marriage[marriageIndex]}}</span>
<span v-else class="color-999">请选择</span> <span v-else class="color-999">请选择</span>
@ -293,7 +283,6 @@
methods: { methods: {
show(e) { show(e) {
this.graduate_school = e this.graduate_school = e
console.log('------')
}, },
getStatureList() { // 身高 getStatureList() { // 身高
let list = [] let list = []
@ -328,7 +317,6 @@
this.loading = true this.loading = true
this.$get({url: `${service.host}/industry/json`}) this.$get({url: `${service.host}/industry/json`})
.then(({code, data}) => { .then(({code, data}) => {
console.log(data, 'data----')
that.getuser() that.getuser()
let result = data let result = data
that.Business = result that.Business = result
@ -338,8 +326,6 @@
}) })
that.objectMultiArray.push(IndustryArr) that.objectMultiArray.push(IndustryArr)
that.objectMultiArray.push(result[0].items) that.objectMultiArray.push(result[0].items)
console.log(that.objectMultiArray)
}) })
}, },
getuser() { getuser() {
@ -362,7 +348,6 @@
that.work_text = result.work_sort that.work_text = result.work_sort
that.DegreeText = result.degree that.DegreeText = result.degree
that.state = result.state that.state = result.state
// that.birthday = result.profile_courtship ? result.profile_courtship.birthday || '1990-01-01' : '1990-01-01'
setTimeout(function () { setTimeout(function () {
that.multiCity1(result.country, result.resident_province, result.resident_city) that.multiCity1(result.country, result.resident_province, result.resident_city)
that.multiCity(result.country, result.province, result.city) that.multiCity(result.country, result.province, result.city)

File diff suppressed because it is too large Load Diff

View File

@ -219,15 +219,6 @@
} }
}, },
// onShareTimeline() {
// let openid = wx.getStorageSync('openid')
// return {
// title: '会员中心',
// imageUrl: 'https://images.ufutx.com/202004/10/9d3829a6ad06cf95b32806fbc4f7dd94.png', // 图片 URL
// query: `from_openid=${openid}&share_user_id=${this.id}&share_type=share`
// }
// }
watch: { watch: {
cardCur() { cardCur() {
@ -239,24 +230,6 @@
}, },
methods: { methods: {
// getUserData() { // 用户基本信息
// let vm = this
// vm.$get({url: `${service.host}/user/simple/info`}).then(({code, data}) => {
// vm.user = data
// vm.payData.remain_amount = data.remain_amount
// vm.payData.coin = data.coin
// let {type, is_subscribe} = wx.getStorageSync('userInfo')
// let userInfo = {
// nickName: data.nickname,
// avatarUrl: data.avatar,
// type,
// id: data.id,
// is_subscribe,
// rank_id: data.rank_id
// }
// wx.setStorageSync('userInfo', userInfo)
// })
// },
gotoApp(item) { gotoApp(item) {
let URL = `https://love.ufutx.com/h5/#/serviceAgreementV3?title=${item}` let URL = `https://love.ufutx.com/h5/#/serviceAgreementV3?title=${item}`
wx.navigateTo({url: '/pages/books/bookDetail?url=' + encodeURIComponent(URL)}) wx.navigateTo({url: '/pages/books/bookDetail?url=' + encodeURIComponent(URL)})
@ -266,8 +239,6 @@
vm.$showLoading('加载中') vm.$showLoading('加载中')
vm.$get({url: `${service.host}/rank/list`}).then(({code, data}) => { vm.$get({url: `${service.host}/rank/list`}).then(({code, data}) => {
vm.user = data.rank_info vm.user = data.rank_info
// vm.payData.remain_amount = data.remain_amount
// vm.payData.coin = data.coin
let {type, is_subscribe} = wx.getStorageSync('userInfo') let {type, is_subscribe} = wx.getStorageSync('userInfo')
let userInfo = { let userInfo = {
nickName: vm.user.nickname, nickName: vm.user.nickname,
@ -280,7 +251,6 @@
wx.setStorageSync('userInfo', userInfo) wx.setStorageSync('userInfo', userInfo)
vm.specialVIP = data.ranks vm.specialVIP = data.ranks
console.log(data, 'aaaaaaaa') console.log(data, 'aaaaaaaa')
// vm.rankList = data.sub_ranks
vm.rankList = [] vm.rankList = []
data.ranks.sub_ranks.forEach((item, index) => { data.ranks.sub_ranks.forEach((item, index) => {
if (index <= 2) { if (index <= 2) {
@ -311,21 +281,6 @@
this.init = true this.init = true
}) })
}, },
// // 套餐会员数据
// initPageData() {
// let that = this
// that.$showLoading('加载中')
// this.$get({url: `${service.host}/single/services/v2`}).then(({code, data}) => {
// that.rankList = data
// that.specialVIP = data[0]
// that.payData.title = `${that.rankList[0].title}`
// that.payData.price = `${that.rankList[0].price}`
// that.payData.discount_price = `${that.rankList[0].discount_price}`
// wx.hideLoading()
// console.log(that.rankList, 'rankList')
// console.log(that.payData, 'payData')
// })
// },
worthShare() { worthShare() {
let vm = this, let vm = this,
data = { data = {

View File

@ -4,10 +4,6 @@
<view slot="content">服务套餐</view> <view slot="content">服务套餐</view>
</cuCustom> </cuCustom>
<view class="_bc-user animation-slide-top"> <view class="_bc-user animation-slide-top">
<!-- <view class="mainTab text-center font_30">-->
<!-- <view class="white itemText inline-block {{active == 0?'active':''}}" @tap="activeFn('0')">超级会员</view>-->
<!-- <view class="white itemText inline-block {{active == 1?'active':''}}" @tap="activeFn('1')">会员套餐</view>-->
<!-- </view>-->
<image class="userinfo-avatar flo_l" src="{{user.photo}}" mode="aspectFill"/> <image class="userinfo-avatar flo_l" src="{{user.photo}}" mode="aspectFill"/>
<view class="white flo_l font_32 userinfo-name"> <view class="white flo_l font_32 userinfo-name">
<span class="bold">{{user.nickname}} </span> <span class="bold">{{user.nickname}} </span>
@ -36,13 +32,6 @@
<view class="font_30 bold color-333 title">服务套餐权益:</view> <view class="font_30 bold color-333 title">服务套餐权益:</view>
</view> </view>
<view class="scroll-wrapper"> <view class="scroll-wrapper">
<!-- <scroll-view scroll-x="{{true}}" scroll-with-animation style="height: 264rpx;">
<view class="inline-block text-center scroll-item" wx:for="{{specialVIP.feature}}" wx:key="index">
<image src="{{item.icon}}" mode="aspectFit" class="featureIcon"></image>
<view class="font_22">{{item.text}}</view>
<view class="font_22" style="color: #B15E00">{{item.sub_text}}</view>
</view>
</scroll-view> -->
<scroll-view class="scrollX" scroll-x="{{true}}" scroll-with-animation style="height: 264rpx;"> <scroll-view class="scrollX" scroll-x="{{true}}" scroll-with-animation style="height: 264rpx;">
<view class="inline-block text-center scroll-items" v-for="(item,index) in specialVIP.feature" :key="index"> <view class="inline-block text-center scroll-items" v-for="(item,index) in specialVIP.feature" :key="index">
<image src="{{item.icon}}" mode="aspectFit" class="featureIcon"></image> <image src="{{item.icon}}" mode="aspectFit" class="featureIcon"></image>
@ -114,7 +103,6 @@
</view> </view>
<view class="item-xl text-left f-fcc"> <view class="item-xl text-left f-fcc">
<span class="value bold color333" style="font-size: 52rpx;line-height: 52rpx;">¥{{payData.discount_price}}</span> <span class="value bold color333" style="font-size: 52rpx;line-height: 52rpx;">¥{{payData.discount_price}}</span>
<!-- <span class="value bold color333" style="font-size: 52rpx;line-height: 52rpx;" v-else>¥{{deductionPrice>0?deductionPrice:'0.00'}}</span>-->
</view> </view>
<view class="item-xl text-left f-fcc"> <view class="item-xl text-left f-fcc">
<span class="value color-999 font_24">{{payData.title}}</span> <span class="value color-999 font_24">{{payData.title}}</span>
@ -125,20 +113,7 @@
<view class="font_28 color333">微信支付</view> <view class="font_28 color333">微信支付</view>
</view> </view>
<image src="https://images.ufutx.com/202106/23/9dd9dc41e3689d92a280740bc99f3c32.png" mode="aspectFit" class="iconV2"></image> <image src="https://images.ufutx.com/202106/23/9dd9dc41e3689d92a280740bc99f3c32.png" mode="aspectFit" class="iconV2"></image>
<!-- <view class="u_pay_unc" wx:else></view> -->
</view> </view>
<!-- <view v-if="specialVIP.pay_type == 'coin' && specialVIP.can_coin_amount > 0 && specialVIP.can_cash_amount > 0 && payData.coin > 0" class="m_payData" @tap="payChoice('coin')">-->
<!-- <view class="f-fbc">-->
<!-- <view class="f-fc">-->
<!-- <image class="m_payData_coinImg" src="https://images.ufutx.com/202106/07/3f64bcbd68b94e5435afc16237b6a40d.png" mode="aspectFit"></image>-->
<!-- <view class="font_28 color333" v-if="deductionPrice<=0">可用{{payData.discount_price*10}}福币抵扣{{payData.discount_price}}元</view>-->
<!-- <view class="font_28 color333" v-else>可用{{(payData.coin >= specialVIP.can_coin_amount)?specialVIP.can_coin_amount:payData.coin}}福币抵扣{{payData.coin >= specialVIP.can_coin_amount?specialVIP.can_cash_amount:coinMoney}}元</view>-->
<!-- </view>-->
<!-- <image src="https://images.ufutx.com/202106/23/9dd9dc41e3689d92a280740bc99f3c32.png" mode="aspectFit" class="iconV2" v-if="wxPayShow == 'coin'"></image>-->
<!-- <view class="u_pay_unc" v-else></view>-->
<!-- </view>-->
<!-- <view class="font_24 color999" style="padding-left: 60rpx;text-align: left;">当前拥有{{payData.coin}}福币</view>-->
<!-- </view>-->
</view> </view>
<view class="m_pay_bu f-fcc"> <view class="m_pay_bu f-fcc">
<view class="u_pay_bu f-fcc font_32 white bold" bindtap="conversion">立即支付</view> <view class="u_pay_bu f-fcc font_32 white bold" bindtap="conversion">立即支付</view>
@ -153,9 +128,6 @@
import https from '../../mixins/https' import https from '../../mixins/https'
import base from '../../mixins/base' import base from '../../mixins/base'
// import modalUp from '../../components/modal-up'
// import cuCustom from '../../components/cu-custom'
// import ShareMessage from '../../mixins/ShareMessage'
import { service } from '../../config.js' import { service } from '../../config.js'
wepy.page({ wepy.page({
@ -209,7 +181,6 @@
if (wx.getStorageSync('userInfo').type) { if (wx.getStorageSync('userInfo').type) {
this.type = wx.getStorageSync('userInfo').type this.type = wx.getStorageSync('userInfo').type
} }
// this.$parent.getTracker(this.$root.$name, this.config.navigationBarTitleText)
}, },
onLoad(e) { onLoad(e) {
@ -231,7 +202,6 @@
this.system = wx.getStorageSync('system') this.system = wx.getStorageSync('system')
console.log(this.system) console.log(this.system)
this.initPageData() this.initPageData()
// this.getUserData()
}, },
onPullDownRefresh() {}, onPullDownRefresh() {},
@ -280,22 +250,6 @@
}, },
methods: { methods: {
// getPageData() {
// let vm = this
// vm.$showLoading('加载中')
// vm.$get({url: `${service.host}/super/rank`}).then(({code, data}) => {
// vm.specialVIP = data
// vm.rankList = data.sub_ranks
// vm.payData.title = `超级会员(${vm.rankList[0].name}`
// vm.payData.price = `${vm.rankList[0].price}`
// vm.payData.discount_price = `${vm.rankList[0].discount_price}`
// console.log(vm.rankList, 'rankList===')
// wx.hideLoading()
// }).finally(() => {
// this.loaded = false
// this.init = true
// })
// },
getUserData() { // 用户基本信息 getUserData() { // 用户基本信息
let vm = this let vm = this
vm.$get({url: `${service.host}/user/center`}).then(({code, data}) => { vm.$get({url: `${service.host}/user/center`}).then(({code, data}) => {
@ -331,17 +285,6 @@
that.$showLoading('加载中') that.$showLoading('加载中')
this.$get({url: `${service.host}/rank/service/list`}).then(({code, data}) => { this.$get({url: `${service.host}/rank/service/list`}).then(({code, data}) => {
that.user = data.rank_info that.user = data.rank_info
// vm.payData.remain_amount = data.remain_amount
// vm.payData.coin = data.coin
let {type, is_subscribe} = wx.getStorageSync('userInfo')
let userInfo = {
nickName: that.user.nickname,
avatarUrl: that.user.avatar,
type,
id: that.user.id,
is_subscribe,
rank_id: that.user.rank_id
}
try { try {
data.services.forEach(item => { data.services.forEach(item => {
if (item.discount_desc_type == 'text') { if (item.discount_desc_type == 'text') {
@ -385,9 +328,6 @@
let URL = `https://love.ufutx.com/h5/#/serviceAgreementV3?title=${item}` let URL = `https://love.ufutx.com/h5/#/serviceAgreementV3?title=${item}`
wx.navigateTo({url: '/pages/books/bookDetail?url=' + encodeURIComponent(URL)}) wx.navigateTo({url: '/pages/books/bookDetail?url=' + encodeURIComponent(URL)})
}, },
// activeFnV2() {
// this.activeV2 = !this.activeV2
// },
cardSwiper(e) { cardSwiper(e) {
console.log(e, 'e===') console.log(e, 'e===')
this.cardCur = e.$wx.detail.current this.cardCur = e.$wx.detail.current
@ -430,14 +370,7 @@
hideModal () { hideModal () {
this.modalName = '' this.modalName = ''
}, },
// activeFn(code) {
// this.active = code
// if (code == 1) {
// this.initPageData()
// } else {
// this.getPageData()
// }
// },
copyWechat(data) { copyWechat(data) {
let vm = this let vm = this
wx.setClipboardData({ wx.setClipboardData({