Merge branch 'master' of repo.ufutx.net:ufutx.love.mp.v2
This commit is contained in:
commit
fa9846c2cf
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view class="chooseImageTips">
|
||||
<view :class="{'~show':chooseShow}" class="~cu-modal ~bottom-modal" catchtap="hideModal">
|
||||
<view :class="{'~show':chooseShow}" class="cu-modal ~cu-modal ~bottom-modal" catchtap="hideModal">
|
||||
<view class="~cu-dialog cu-dialog ">
|
||||
<view class="g_ct">
|
||||
<view class="u_tt ~font_26 ~color999">
|
||||
|
||||
@ -97,7 +97,7 @@ wepy.component({
|
||||
for (let item of res.tempFiles) {
|
||||
console.log(item, '====')
|
||||
let type = item.fileType == 'video' ? 'video' : 'img'
|
||||
vm.uploadFile(item.tempFilePath, type, item.tempFilePath, index++)
|
||||
vm.uploadFile(item.tempFilePath, type, res.tempFiles, index++)
|
||||
}
|
||||
},
|
||||
fail: () => {
|
||||
|
||||
@ -7,11 +7,12 @@
|
||||
<view class="m_userAva" style="position: relative;display: inline-block;margin-right:20rpx;">
|
||||
<image class="userinfo-avatar ff" src="{{Image}}" mode="aspectFill" />
|
||||
<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==-1">未通过</view>
|
||||
{{user.is_photo_audited}}
|
||||
<view class="mask ~font_22 ~f-fcc" v-if="user.is_photo_audited==2">审核中</view>
|
||||
<view class="mask ~font_22 ~f-fcc" v-if="user.is_photo_audited==0">未通过</view>
|
||||
</block>
|
||||
<block v-else>
|
||||
<view class="mask font_22">上传头像</view>
|
||||
<view class="mask ~font_22">上传头像</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@ -333,7 +333,7 @@
|
||||
methods: {
|
||||
_draw(callback) {
|
||||
console.log(this.imgSrc)
|
||||
if (!this.imgSrc) return
|
||||
if (!this.imgSrc || !this.ctx) return
|
||||
let draw = () => {
|
||||
// 图片实际大小
|
||||
let img_width = this.img_width * this.scale * this.export_scale
|
||||
@ -350,7 +350,7 @@
|
||||
})
|
||||
}
|
||||
console.log(this.ctx, 'this.ctx=333')
|
||||
if (this.ctx.width != this.width || this.ctx.height != this.height) {
|
||||
if (this.ctx && (this.ctx.width != this.width || this.ctx.height != this.height)) {
|
||||
// 优化拖动裁剪框,所以必须把宽高设置放在离用户触发渲染最近的地方
|
||||
this._canvas_height = this.height
|
||||
this._canvas_width = this.width
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -95,7 +95,7 @@ export default {
|
||||
wx.removeStorageSync('formId')
|
||||
resolve({statusCode, ...data})
|
||||
} else if (data.code === 1) {
|
||||
resolve({statusCode, ...data})
|
||||
// resolve({statusCode, ...data})
|
||||
console.error(data.message)
|
||||
// console.log(this.$app.$options.globalData)
|
||||
if (this.$is == 'pages/service/GroupChatPage' && data.message.includes('已断开连接')) {
|
||||
|
||||
@ -244,6 +244,21 @@ wepy.page({
|
||||
unionid: '',
|
||||
enterprise: ''
|
||||
},
|
||||
onShow(e) {
|
||||
console.log(e, 'e===')
|
||||
if (e && e.photo) {
|
||||
this.photo = e.photo
|
||||
}
|
||||
console.log(this.photo, '===')
|
||||
},
|
||||
onLoad() {
|
||||
let vm = this
|
||||
let timestamp = Date.parse(new Date())
|
||||
let date = new Date(timestamp)
|
||||
let Y = date.getFullYear()
|
||||
vm.endDate = `${Y - 12}-01-01`
|
||||
vm.beginData = `${Y - 120}-01-01`
|
||||
},
|
||||
methods: {
|
||||
hideCut(e) {
|
||||
wx.showTabBar({
|
||||
@ -253,7 +268,15 @@ wepy.page({
|
||||
},
|
||||
complete() {
|
||||
let vm = this
|
||||
console.log(vm.photo, 'vm.photo==')
|
||||
console.log(this.photo, vm.photo, 'vm.photo==')
|
||||
if (!vm.photo && wx.getStorageSync('baseImage')) {
|
||||
vm.photo = wx.getStorageSync('baseImage')
|
||||
wx.removeStorageSync('baseImage')
|
||||
}
|
||||
if (!vm.photo) {
|
||||
return vm.$showToast('请上传你的头像')
|
||||
}
|
||||
console.log(vm.photo, 'vm.photo=')
|
||||
if (!vm.name) {
|
||||
return vm.$showToast('请输入昵称')
|
||||
} else if (vm.name.length < 2 || vm.name.length > 10) {
|
||||
@ -262,15 +285,13 @@ wepy.page({
|
||||
if (vm.name.includes('福恋')) {
|
||||
return vm.$showToast('请勿输入带“福恋”关键字的昵称!')
|
||||
}
|
||||
if (vm.photo == '') {
|
||||
return vm.$showToast('请上传你的头像')
|
||||
}
|
||||
|
||||
if (!vm.sex) {
|
||||
return vm.$showToast('请选择你的性别')
|
||||
}
|
||||
if (!vm.mobile) {
|
||||
return vm.$showToast('请选择绑定手机号')
|
||||
}
|
||||
// if (!vm.mobile) {
|
||||
// return vm.$showToast('请选择绑定手机号')
|
||||
// }
|
||||
if (!vm.birthday) {
|
||||
return vm.$showToast('请选择你的生日')
|
||||
}
|
||||
@ -287,7 +308,7 @@ wepy.page({
|
||||
let data = {
|
||||
photo: vm.photo,
|
||||
nickname: vm.name,
|
||||
mobile: vm.mobile,
|
||||
mobile: vm.mobile || '15813393343',
|
||||
sex: vm.sex === '男' ? 1 : 2,
|
||||
belief: vm.belief,
|
||||
state: vm.emotion,
|
||||
@ -345,15 +366,7 @@ wepy.page({
|
||||
})
|
||||
}
|
||||
},
|
||||
// 选择的图片和取消功能
|
||||
changeVal(data) {
|
||||
console.log(data, 'data=2222')
|
||||
let vm = this
|
||||
if (data) {
|
||||
vm.photo = data[0].filePath
|
||||
}
|
||||
vm.chooseShow = false
|
||||
},
|
||||
|
||||
// 关闭上传头像弹窗
|
||||
closeUploadPic() {
|
||||
let vm = this
|
||||
@ -369,20 +382,8 @@ wepy.page({
|
||||
vm.displayCity = e.city.replace(/市/g, '')
|
||||
vm.address = {country: e.country, province: e.province, city: e.city}
|
||||
}
|
||||
},
|
||||
onShow(e) {
|
||||
if (e && e.photo) {
|
||||
this.photo = e.photo
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
let vm = this
|
||||
let timestamp = Date.parse(new Date())
|
||||
let date = new Date(timestamp)
|
||||
let Y = date.getFullYear()
|
||||
vm.endDate = `${Y - 12}-01-01`
|
||||
vm.beginData = `${Y - 120}-01-01`
|
||||
}
|
||||
|
||||
})
|
||||
</script>
|
||||
<config>
|
||||
|
||||
@ -114,7 +114,7 @@
|
||||
<view :class="{'show':modalName=='auditModal'}" class="cu-modal">
|
||||
<view class="audit_photo_box">
|
||||
<view class="cancel_icon_box" @tap="hideModal">
|
||||
<view class="font_family icon-off white font_48"></view>
|
||||
<view style="font-size: 24px" class="font_family cuIcon-roundclose white "></view>
|
||||
</view>
|
||||
<view class="m_photo">
|
||||
<view class="audit_avatar_box">
|
||||
@ -138,7 +138,7 @@
|
||||
src="https://image.fulllinkai.com/202204/14/2c8b0665f901bd2e3b1b7afafd0629c3.png"
|
||||
mode="widthFix"></image>
|
||||
<view class="cancel_icon_box" @tap="hideModal">
|
||||
<view class="font_family icon-off white font_48"></view>
|
||||
<view style="font-size: 24px" class="font_family cuIcon-roundclose white "></view>
|
||||
</view>
|
||||
<view class="m_photo f-fcc">
|
||||
<view class="reason_prompt font_32 color333" style="width: 90%;font-weight: 400;">更换头像将重新审核,确定仍要更换成为未认证状态吗?
|
||||
@ -151,13 +151,13 @@
|
||||
</view>
|
||||
</view>
|
||||
<view :class="{'show':modalName=='isExclusiveService'}" class="cu-modal">
|
||||
<view class="audit_photo_box colorfff" style="border-radius: 32rpx;padding: 22rpx;">
|
||||
<view class="audit_photo_box bg_f" style="border-radius: 32rpx;padding: 22rpx;">
|
||||
<view class="font_32 bold color-333" style="padding-top:38rpx;">联系专属客服</view>
|
||||
<image style="width: 240rpx;height: 240rpx;margin: 40rpx;"
|
||||
src="{{exclusiveService}}" show-menu-by-longpress="true"
|
||||
mode="widthFix"></image>
|
||||
<view class="cancel_icon_box" @tap="hideModal">
|
||||
<view class="font_family icon-off white font_48"></view>
|
||||
<view style="font-size: 24px" class="font_family cuIcon-roundclose white "></view>
|
||||
</view>
|
||||
<view class="m_photo f-fcc">
|
||||
<view class="reason_prompt font_32 color333" style="width: 90%;font-weight: 400;">长按识别二维码,联系客服
|
||||
@ -166,13 +166,12 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<block v-show="posterConfig">
|
||||
<block v-if="posterConfig">
|
||||
<!-- 生成海报-->
|
||||
<poster type="2d" id="poster" ref="poster" hide-loading="{{false}}" preload="{{false}}" config="{{posterConfig}}"
|
||||
bind:success="onPosterSuccess">
|
||||
</poster>
|
||||
<poster type="2d" id="poster" hide-loading="{{false}}" preload="{{false}}" config="{{posterConfig}}" bind:success="onPosterSuccess" bind:fail="onPosterFail">
|
||||
</poster>
|
||||
<!-- 分享微信卡片-->
|
||||
<poster type="2d" id="posterV1" ref="posterV1" hide-loading="{{false}}" preload="{{false}}" config="{{posterConfig1}}"
|
||||
<poster type="2d" id="posterV1" hide-loading="{{false}}" preload="{{false}}" config="{{posterConfig1}}"
|
||||
bind:success="onPosterSuccessWx" >
|
||||
</poster>
|
||||
</block>
|
||||
@ -186,6 +185,7 @@
|
||||
<loginTips :tokenShow.sync="tokenShow" @loginCut.user="loginCut"></loginTips>
|
||||
|
||||
<chooseImageTips :chooseShow.sync="chooseShow" :jumpString.sync="jumpString" :photo.sync="user.photo" @hideCut.user="hideCut"></chooseImageTips>
|
||||
<loginDialog :loginShow="loginShow" @hiddenLogin="hiddenLogin"></loginDialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@ -195,7 +195,6 @@
|
||||
import {service} from '../../config.js'
|
||||
|
||||
const app = getApp().$wepy.$options
|
||||
// import shareComponent from '../../components/shareComponent'
|
||||
import {getPhoneNumber} from '../../utils/util'
|
||||
|
||||
wepy.page({
|
||||
@ -418,26 +417,27 @@
|
||||
let url = `/pages/home/information?id=${fromUserID}&from_openid=${openid}&share_user_id=${fromUserID}&from_user_id=${fromUserID}`
|
||||
// let url = 'pages/tabBar/welcome?from_openid=' + openid + '&from_user_id=' + fromUserID
|
||||
console.log(url)
|
||||
// console.log(that.shareCanvasImg, '分享海报')
|
||||
// return {
|
||||
// title: that.title,
|
||||
// path: url,
|
||||
// imageUrl: that.shareCanvasImg,
|
||||
// success: function (res) {
|
||||
// wx.showToast({
|
||||
// title: '转发成功',
|
||||
// icon: 'success',
|
||||
// duration: 1500
|
||||
// })
|
||||
// var shareTickets = res.shareTickets
|
||||
// if (shareTickets.length == 0) {
|
||||
// return false
|
||||
// }
|
||||
// },
|
||||
// fail: function (res) {
|
||||
// // 转发失败
|
||||
// }
|
||||
// }
|
||||
console.log(that.shareCanvasImg, '分享海报')
|
||||
console.log(that.title, 'title')
|
||||
return {
|
||||
title: `我是"${that.user.nickname}",这是我的小程序卡片`,
|
||||
path: url,
|
||||
imageUrl: that.shareCanvasImg,
|
||||
success: function (res) {
|
||||
wx.showToast({
|
||||
title: '转发成功',
|
||||
icon: 'success',
|
||||
duration: 1500
|
||||
})
|
||||
var shareTickets = res.shareTickets
|
||||
if (shareTickets.length == 0) {
|
||||
return false
|
||||
}
|
||||
},
|
||||
fail: function (res) {
|
||||
// 转发失败
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
onLoad(e) {
|
||||
@ -456,27 +456,6 @@
|
||||
}
|
||||
},
|
||||
|
||||
// getUid() {
|
||||
// let that = this
|
||||
// that.$get({
|
||||
// url: service.account,
|
||||
// data: {
|
||||
// openid: wx.getStorageSync('openid')
|
||||
// }
|
||||
// }, {
|
||||
// success: ({
|
||||
// code,
|
||||
// data
|
||||
// }) => {
|
||||
// // console.log(data)
|
||||
// that.extraData = {
|
||||
// 'uid': data.uid
|
||||
// }
|
||||
// that.$apply()
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
|
||||
methods: {
|
||||
// getorderDetail() {
|
||||
// let that = this
|
||||
@ -545,7 +524,7 @@
|
||||
if (!wx.getStorageSync('mobile')) {
|
||||
vm.isShowIphoneBtn = true
|
||||
}
|
||||
if (data.is_complete_profile != 1) {
|
||||
if (!data.is_complete_profile) {
|
||||
this.modalName = 'ModalEdit'
|
||||
return
|
||||
}
|
||||
@ -576,54 +555,55 @@
|
||||
// var recordTime = String(parseFloat(new Date(repTime).getTime()) / 1000)
|
||||
// self.UID = recordTime.substring(recordTime.length - 5) + String(data.id)
|
||||
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.posterConfig = self.shareConfig
|
||||
// console.log(self.posterConfig, '333===0999')
|
||||
// // self.$nextTick(() => {
|
||||
// setTimeout(() => {
|
||||
// console.log(self.$wx.selectComponent('#poster'), self.$refs.poster, '---99')
|
||||
// self.$wx.selectComponent('#poster').onCreate(true)
|
||||
// console.log('9878733')
|
||||
// }, 500)
|
||||
// // })
|
||||
// // 小程序分享
|
||||
// self.title = `我是"${data.user.nickname}",这是我的小程序卡片`
|
||||
// if (data.user.photo || data.user.avatar) {
|
||||
// let year = '', city = '', degree = '', industry_sub = ''
|
||||
// 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.degree) {
|
||||
// degree = data.profile_courtship.degree
|
||||
// }
|
||||
// if (data.industry_sub) {
|
||||
// industry_sub = data.industry_sub
|
||||
// }
|
||||
// console.log(year, city, degree, industry_sub)
|
||||
// self.shareConfig1.texts[0].text = `${year} | ${city}`
|
||||
// self.shareConfig1.texts[1].text = `${degree} | ${industry_sub}`
|
||||
// self.shareConfig1.images[0].url = data.photo || data.avatar
|
||||
// self.posterConfig1 = self.shareConfig1
|
||||
// self.$nextTick(() => {
|
||||
// setTimeout(() => {
|
||||
// self.$wx.selectComponent('#posterV1').onCreate(true, self.$wx)
|
||||
// }, 100)
|
||||
// })
|
||||
// } else {
|
||||
// // 重新获取分享码
|
||||
// self.$showToast('分享图片获取失败')
|
||||
// }
|
||||
self.shareConfig.images[1].url = data.share_qrcode
|
||||
self.posterConfig = self.shareConfig
|
||||
console.log(self.posterConfig, '333===0999')
|
||||
self.$nextTick(() => {
|
||||
setTimeout(() => {
|
||||
self.$wx.selectComponent('#poster').onCreate(true, self)
|
||||
}, 100)
|
||||
})
|
||||
// 小程序分享
|
||||
self.title = `我是"${data.user.nickname}",这是我的小程序卡片`
|
||||
console.log(self.title, 'title===')
|
||||
if (data.user.photo || data.user.avatar) {
|
||||
let year = '', city = '', degree = '', industry_sub = ''
|
||||
if (data.birthday) {
|
||||
year = data.birthday.slice(2, 4) + '年'
|
||||
}
|
||||
if (data.city) {
|
||||
city = data.city
|
||||
}
|
||||
if (data.degree) {
|
||||
degree = data.degree
|
||||
}
|
||||
if (data.industry_sub) {
|
||||
industry_sub = data.industry_sub
|
||||
}
|
||||
console.log(year, city, degree, industry_sub)
|
||||
self.shareConfig1.texts[0].text = `${year} | ${city}`
|
||||
self.shareConfig1.texts[1].text = `${degree} | ${industry_sub}`
|
||||
self.shareConfig1.images[0].url = data.user.photo || data.user.avatar
|
||||
self.posterConfig1 = self.shareConfig1
|
||||
self.$nextTick(() => {
|
||||
setTimeout(() => {
|
||||
console.log(self.posterConfig1, 'posterConfig1=')
|
||||
self.$wx.selectComponent('#posterV1').onCreate(true, self)
|
||||
}, 100)
|
||||
})
|
||||
} else {
|
||||
// 重新获取分享码
|
||||
self.$showToast('分享图片获取失败')
|
||||
}
|
||||
console.log(self.posterConfig1, '7777')
|
||||
this.init = true
|
||||
this.user = data.user
|
||||
this.user.rank_id = data.rank_profile.rank_id
|
||||
this.user.deadline = data.rank_profile.deadline
|
||||
// this.user.card_num = data.approve_profile.card_num
|
||||
this.user.is_approved = data.approve_profile.is_approved
|
||||
this.user.is_real_approved = data.approve_profile.is_real_approved
|
||||
this.user.is_photo_audited = data.approve_profile.is_photo_audited
|
||||
this.user.is_photo_audited = data.is_photo_audited
|
||||
// this.user.name = data.approve_profile.name
|
||||
this.listCount = {
|
||||
friend_count: data.friend_count,
|
||||
@ -631,6 +611,7 @@
|
||||
follow_count: data.follow_count,
|
||||
preview_count: data.preview_count
|
||||
}
|
||||
console.log(this.user, 'user===')
|
||||
// this.is_profile = data.is_other_profile
|
||||
this.is_photo_audited = data.approve_profile.is_photo_audited
|
||||
this.title = `我是"${data.nickname}",这是我的小程序卡片`
|
||||
@ -638,7 +619,7 @@
|
||||
wx.setStorageSync('my_qrcode', data.my_qrcode)
|
||||
}
|
||||
wx.setStorageSync('type', data.type)
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
getServiceCode(urlV2) {
|
||||
@ -735,6 +716,11 @@
|
||||
console.log(url, text)
|
||||
let titles = ['好友', '关注', '粉丝', '访客'], {is_base_info} = app.globalData,
|
||||
vm = this, {id} = wx.getStorageSync('userInfo')
|
||||
// 校验是否完成注册资料
|
||||
// if (!vm.$signInVerify()) {
|
||||
// vm.loginShow = true
|
||||
// return
|
||||
// }
|
||||
if (titles.includes(text) && !is_base_info) {
|
||||
vm.showVisitorModel = true
|
||||
return
|
||||
@ -786,21 +772,25 @@
|
||||
url: `/pages/party/SpellGroupOrder?order_id=${id}`
|
||||
})
|
||||
},
|
||||
loginDialogShow() {
|
||||
let vm = this
|
||||
wepy.$instance.pageLogin().then((data) => {
|
||||
vm.token = data.token
|
||||
vm.loginShow = false
|
||||
vm.page = 1
|
||||
vm.onShow()
|
||||
})
|
||||
}
|
||||
},
|
||||
events: {
|
||||
'modalValue': (value) => { // 搜索返回值
|
||||
this.loginShow = true
|
||||
}
|
||||
hiddenLogin() {
|
||||
let vm = this
|
||||
vm.loginShow = false
|
||||
}
|
||||
// loginDialogShow() {
|
||||
// let vm = this
|
||||
// wepy.$instance.pageLogin().then((data) => {
|
||||
// vm.token = data.token
|
||||
// vm.loginShow = false
|
||||
// vm.page = 1
|
||||
// vm.onShow()
|
||||
// })
|
||||
// }
|
||||
}
|
||||
// events: {
|
||||
// 'modalValue': (value) => { // 搜索返回值
|
||||
// this.loginShow = true
|
||||
// }
|
||||
// }
|
||||
})
|
||||
</script>
|
||||
|
||||
@ -1499,7 +1489,8 @@
|
||||
loginTips: '~@/components/loginTips',
|
||||
chooseImageTips: '~@/components/chooseImageTips',
|
||||
shareComponent: '~@/components/shareComponent',
|
||||
poster: "plugin://FL-plugin/poster"
|
||||
poster: "plugin://FL-plugin/poster",
|
||||
loginDialog: '~@/components/loginDialog',
|
||||
}
|
||||
}
|
||||
</config>
|
||||
|
||||
@ -96,8 +96,12 @@
|
||||
prevPage = pages[pages.length - 2]
|
||||
}
|
||||
if (prevPage) {
|
||||
prevPage.setData({photo: photo})
|
||||
prevPage.onShow({photo: photo})
|
||||
let dataV1 = prevPage.data.photo
|
||||
console.log(dataV1, '34===')
|
||||
dataV1 = photo
|
||||
prevPage.setData({photo: dataV1})
|
||||
prevPage.onShow({photo: dataV1})
|
||||
wx.setStorageSync('baseImage', dataV1)
|
||||
}
|
||||
wx.navigateBack({
|
||||
delta: 1
|
||||
@ -156,7 +160,7 @@
|
||||
let data = {
|
||||
photo: path
|
||||
}
|
||||
this.$put({url: `${service.user}/photo`, data}).then(({code, data}) => {
|
||||
this.$put({url: `${service.host}/user/register/profile`, data}).then(({code, data}) => {
|
||||
this.$Toast_success('上传成功')
|
||||
this.$gotoBack(1)
|
||||
}).finally(() => {
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view style="height: {{navHeight}}px"></view>
|
||||
<view v-if="is_real_approved == -1" style="height: 112rpx"></view>
|
||||
<view v-if="is_real_approved == 0" style="height: 112rpx"></view>
|
||||
<view class="artificialBox">
|
||||
<view class="shootingText font_30 bold">请拍摄上传手持身份证照</view>
|
||||
<view>
|
||||
@ -24,7 +24,7 @@
|
||||
<view class="auditIconBox">
|
||||
<image class="auditIcon" src="https://images.ufutx.com/202104/12/c8a405728facde60462c5530fc9813a9.png" mode="widthFix"></image>
|
||||
<view class="font_30" v-if="is_real_approved == 2">正在审核中</view>
|
||||
<view class="font_30" v-if="is_real_approved == -1">审核失败,请重新上传</view>
|
||||
<view class="font_30" v-if="is_real_approved == 0">审核失败,请重新上传</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
@ -38,7 +38,7 @@
|
||||
<view class="auditIconBox">
|
||||
<image class="auditIcon" src="https://images.ufutx.com/202104/12/c8a405728facde60462c5530fc9813a9.png" mode="widthFix"></image>
|
||||
<view class="font_24" v-if="is_real_approved == 2">正在审核中</view>
|
||||
<view class="font_24" v-if="is_real_approved == -1">审核失败,请重新上传</view>
|
||||
<view class="font_24" v-if="is_real_approved == 0">审核失败,请重新上传</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -50,7 +50,7 @@
|
||||
<view class="auditIconBox">
|
||||
<image class="auditIcon" src="https://images.ufutx.com/202104/12/c8a405728facde60462c5530fc9813a9.png" mode="widthFix"></image>
|
||||
<view class="font_24" v-if="is_real_approved == 2">正在审核中</view>
|
||||
<view class="font_24" v-if="is_real_approved == -1">审核失败,请重新上传</view>
|
||||
<view class="font_24" v-if="is_real_approved == 0">审核失败,请重新上传</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -68,7 +68,7 @@
|
||||
</view>
|
||||
<view class="submitButton font_30 {{showSubmit?'actionSubmit':''}}" @tap="request" v-if="!audit">提交认证</view>
|
||||
<view class="submitButton font_30 {{againShow?'actionSubmit':''}}" @tap="request" v-if="audit && is_real_approved != 1">重新提交</view>
|
||||
<view class="font_30 text-center" style="color: #f33b6c;padding-top: 30rpx;padding-bottom: 40rpx;" @tap="redirectTo('/pages/users/realName')" v-if="audit && is_real_approved == -1">人脸识别</view>
|
||||
<view class="font_30 text-center" style="color: #f33b6c;padding-top: 30rpx;padding-bottom: 40rpx;" @tap="redirectTo('/pages/users/realName')" v-if="audit && is_real_approved == 0">人脸识别</view>
|
||||
<view :class="{'show':modalName=='showAudit' }" class="cu-modal ">
|
||||
<view class="audit_box">
|
||||
<image class="audit_icon" src="https://images.ufutx.com/202101/21/be17739e07f9bb0de1c629dc0b84a505.png" mode="widthFix"></image>
|
||||
@ -79,7 +79,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="is_real_approved == -1" class="m_top_tips" style="margin-top: {{navHeight}}px;">{{approve_history_body_reason}}</view>
|
||||
<view v-if="is_real_approved == 0" class="m_top_tips" style="margin-top: {{navHeight}}px;">{{approve_history_body_reason}}</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@ -262,9 +262,13 @@
|
||||
request() {
|
||||
let that = this,
|
||||
data = {
|
||||
chat_user_id: that.chat_user_id,
|
||||
photos: JSON.stringify(that.photo),
|
||||
from_user_id: wx.getStorageSync('from_user_id') ? wx.getStorageSync('from_user_id') : ''
|
||||
photos: that.photo
|
||||
}
|
||||
if (wx.getStorageSync('from_user_id')) {
|
||||
data.from_user_id = wx.getStorageSync('from_user_id')
|
||||
}
|
||||
if (that.chat_user_id) {
|
||||
data.chat_user_id = that.chat_user_id
|
||||
}
|
||||
if (that.showSubmit || that.againShow) {
|
||||
if (!that.nodata) {
|
||||
|
||||
@ -24,6 +24,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="clearfloat"></view>
|
||||
</view>
|
||||
</view>
|
||||
<pageScroll></pageScroll>
|
||||
<block v-if="loading">
|
||||
|
||||
@ -25,7 +25,7 @@
|
||||
src="{{exclusiveService}}" show-menu-by-longpress="true"
|
||||
mode="widthFix"></image>
|
||||
<view class="cancel_icon_box" @tap="hideModal">
|
||||
<view class="font_family icon-off white font_48"></view>
|
||||
<view style="font-size: 24px" class="font_family cuIcon-roundclose white"></view>
|
||||
</view>
|
||||
<view class="m_photo f-fcc">
|
||||
<view class="reason_prompt font_32 color333" style="width: 90%;font-weight: 400;">长按识别二维码,联系客服
|
||||
|
||||
@ -249,7 +249,7 @@ wepy.page({
|
||||
content: '是否确认删除该好友',
|
||||
success: function (res) {
|
||||
if (res.confirm) {
|
||||
than.$delete({url: service.addFriend + '/' + id}).then(({code, data}) => {
|
||||
than.$delete({url: service.host + '/friend/user/' + id}).then(({code, data}) => {
|
||||
than.$showToast('删除成功')
|
||||
than.list.splice(index, 1)
|
||||
if (than.list.length == 0) {
|
||||
|
||||
@ -26,7 +26,7 @@
|
||||
<view class="audit_photo_box">
|
||||
<view class="cancel_icon_box" @tap="hideModal1">
|
||||
<!-- <image src="https://images.ufutx.com/202012/21/7bc531d74f41cce95ede5582232fd2f3.png" mode="widthFix" class="cancel_icon"></image> -->
|
||||
<view class="font_family icon-off white font_48"></view>
|
||||
<view style="font-size: 24px" class="font_family cuIcon-roundclose white"></view>
|
||||
</view>
|
||||
<view style="text-align: center">
|
||||
<view class="_bgModal">
|
||||
|
||||
@ -24,8 +24,8 @@
|
||||
</block>
|
||||
<block v-if="!state">
|
||||
<view class="certification_button flo_r">
|
||||
<view class="jump_button text-center font_28" v-if="is_real_approved==0">去认证</view>
|
||||
<block v-if="is_real_approved==-1">
|
||||
<view class="jump_button text-center font_28" v-if="is_real_approved==3">去认证</view>
|
||||
<block v-if="is_real_approved==0">
|
||||
<view class="jump_button text-center font_28" style="width: 152rpx">重新认证</view>
|
||||
<image class="failure_icon" src="https://images.ufutx.com/202101/20/a42a33b3d6c901685adc8c2b8bedf7b4.png" mode="widthFix"></image>
|
||||
</block>
|
||||
@ -43,8 +43,8 @@
|
||||
</block>
|
||||
<block v-else>
|
||||
<view class="certification_button flo_r">
|
||||
<view class="jump_button text-center font_28" v-if="stateV2 == 0">去认证</view>
|
||||
<view class="audit_state_box" v-if="stateV2 != 0">
|
||||
<view class="jump_button text-center font_28" v-if="stateV2 == 3">去认证</view>
|
||||
<view class="audit_state_box" v-if="stateV2 != 3">
|
||||
<image class="audit_icon" src="https://images.ufutx.com/202101/20/3be02213104c9adba8ae30feb779d873.png" mode="widthFix"></image>
|
||||
<span class="font_28 color-999">审核中</span>
|
||||
</view>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="myDynamic" style="height: 100vh;">
|
||||
<scroll-view scroll-y refresher-enabled="{{true}}" style="height: 100vh;" refresher-triggered="{{triggered}}" bindrefresherpulling="onPulling" bindrefresherrefresh="onRefresh" bindscrolltolower="handleScroll" lower-threshold="50">
|
||||
<!-- <dynamicList ref="dynamicList" :dataList.sync="list" :gifurl.sync="gifurl" :_index.sync="_index" :modalName.sync="modalName" :del.sync="del"></dynamicList>-->
|
||||
<dynamicList :dynamicList="dynamicList" @changeSelect="changeSelect" :from="'dynamic'"></dynamicList>
|
||||
<view v-if="hideMessage" class="text-center">
|
||||
<view class="font_28 m_empty">
|
||||
<image src="https://images.ufutx.com/202106/18/c0a2445b889165f29c14ff13a5eaa752.png" mode="aspectFit"></image>
|
||||
@ -13,8 +13,8 @@
|
||||
<view class="cu-modal bottom-modal {{modalName=='delete'?'show':''}}" @tap="hideModal">
|
||||
<view class="cu-dialog dialog" style="border-radius: 30rpx 30rpx 0rpx 0rpx;padding-bottom: 50rpx;">
|
||||
<view @tap="deleteV2">删除</view>
|
||||
<view @tap="conceal" v-if="admin == 1">隐藏动态</view>
|
||||
<view @tap="hotdt" v-if="admin == 1">设置为热门动态</view>
|
||||
<!-- <view @tap="conceal" v-if="admin == 1">隐藏动态</view>-->
|
||||
<!-- <view @tap="hotdt" v-if="admin == 1">设置为热门动态</view>-->
|
||||
<view @tap="hideModal">取消</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -27,11 +27,11 @@
|
||||
import https from '../../mixins/https'
|
||||
import base from '../../mixins/base'
|
||||
import utils from '../../utils/util'
|
||||
|
||||
import {commentTimeHandle} from '../../mixins/plugins'
|
||||
wepy.page({
|
||||
mixins: [base, https],
|
||||
data: {
|
||||
list: [],
|
||||
dynamicList: [],
|
||||
user_id: '',
|
||||
token: '',
|
||||
gifurl: 'https://images.ufutx.com/202106/11/54f9a1a03d1575597c94de63caebde8c.gif',
|
||||
@ -42,8 +42,7 @@
|
||||
collectionMessage: false,
|
||||
page: 1,
|
||||
modalName: '',
|
||||
del: '',
|
||||
dynamicList: null
|
||||
del: ''
|
||||
},
|
||||
|
||||
computed: {},
|
||||
@ -64,25 +63,6 @@
|
||||
|
||||
},
|
||||
|
||||
onPulling() {
|
||||
this.triggered = true
|
||||
},
|
||||
|
||||
onRefresh() {
|
||||
this.collectionMessage = false
|
||||
this.noMoreShow = false
|
||||
this.hideMessage = false
|
||||
this.list = []
|
||||
this.page = 1
|
||||
this.getPageData()
|
||||
},
|
||||
|
||||
handleScroll() {
|
||||
if (this.collectionMessage) return
|
||||
this.page += 1
|
||||
this.getPageData()
|
||||
},
|
||||
|
||||
onPullDownRefresh() {
|
||||
this.getPageData()
|
||||
},
|
||||
@ -91,50 +71,74 @@
|
||||
|
||||
},
|
||||
methods: {
|
||||
onPulling() {
|
||||
this.triggered = true
|
||||
},
|
||||
onRefresh() {
|
||||
this.collectionMessage = false
|
||||
this.noMoreShow = false
|
||||
this.hideMessage = false
|
||||
this.page = 1
|
||||
this.getPageData()
|
||||
},
|
||||
|
||||
handleScroll() {
|
||||
if (this.collectionMessage) return
|
||||
this.page += 1
|
||||
this.getPageData()
|
||||
},
|
||||
// 初始化页面数据
|
||||
getPageData() {
|
||||
let _this = this
|
||||
_this.$get({
|
||||
url: `${service.moments}`,
|
||||
let vm = this
|
||||
vm.$get({
|
||||
url: `${service.host}/moment/list/user`,
|
||||
data: {
|
||||
page: _this.page,
|
||||
user_id: _this.user_id
|
||||
page: vm.page
|
||||
}
|
||||
}).then(({code, data}) => {
|
||||
_this.triggered = false
|
||||
if (data.data.length == 0 && _this.page == 1) {
|
||||
_this.hideMessage = true
|
||||
return
|
||||
if (code === 0) {
|
||||
console.log(data, 'data===')
|
||||
if (data.data && data.data.length > 0) {
|
||||
data.data.forEach((item, index) => {
|
||||
item.create_time = commentTimeHandle(item.create_time)
|
||||
let sty = typeof (item.photos)
|
||||
if (sty == 'string') {
|
||||
item.photos = JSON.parse(item.photos)
|
||||
}
|
||||
// if ((item.is_audited == 0 || item.is_audited == -1) && item.is_self == 0) {
|
||||
// data.data.splice(index--, 1)
|
||||
// }
|
||||
})
|
||||
}
|
||||
if (vm.dynamicList.length === 0 || vm.page === 1) {
|
||||
vm.dynamicList = data.data
|
||||
} else {
|
||||
data.data.map(function (item) {
|
||||
vm.dynamicList.push(item)
|
||||
})
|
||||
}
|
||||
if (vm.dynamicList.length == 0) {
|
||||
vm.hideMessage = true
|
||||
}
|
||||
if (vm.dynamicList.length < 15 || data.data.length < 15) {
|
||||
vm.noMoreShow = true
|
||||
}
|
||||
console.log(vm.dynamicList, 'dynamicList=')
|
||||
setTimeout(() => {
|
||||
vm.loading = true
|
||||
vm.triggered = false
|
||||
}, 500)
|
||||
}
|
||||
if (data.data.length == 0 && _this.page != 1) {
|
||||
_this.noMoreShow = true
|
||||
_this.collectionMessage = true
|
||||
return
|
||||
}
|
||||
if (_this.list.length != 0 && _this.page == 1) return
|
||||
data.data.forEach((ele, index) => {
|
||||
let phs = ele.photos
|
||||
ele.created_at = utils.commentTimeHandle(ele.created_at)
|
||||
let sty = typeof (ele.photos)
|
||||
if (sty == 'string') {
|
||||
ele.photos = JSON.parse(ele.photos)
|
||||
}
|
||||
if (ele.is_audited == 0 && ele.is_self == 0) {
|
||||
data.data.splice(index--, 1)
|
||||
} else if (ele.is_audited == -1 && ele.is_self == 0) {
|
||||
data.data.splice(index--, 1)
|
||||
}
|
||||
for (var i = 0; i < ele.photos.length; i++) {
|
||||
ele.photos[i] = ele.photos[i].replace(/\(/g, '%28').replace(/\)/g, '%29').replace(' ', '%20')
|
||||
}
|
||||
})
|
||||
_this.list = [..._this.list, ...data.data]
|
||||
// this.$refs.dynamicList.textAll
|
||||
})
|
||||
},
|
||||
changeSelect(e, index) {
|
||||
console.log(e, index, '333===')
|
||||
this.del = e.id
|
||||
this.modalName = 'delete'
|
||||
},
|
||||
deleteV2() {
|
||||
let vm = this
|
||||
let url = `${service.moments}` + '/' + this.del
|
||||
let url = `${service.host}` + '/moment/' + this.del + '/delete'
|
||||
vm.$showLoading('加载中')
|
||||
vm.$delete({
|
||||
url: url,
|
||||
@ -211,7 +215,7 @@ page {
|
||||
backgroundColorTop: '#f2f2f2',
|
||||
backgroundColorBottom: '#f2f2f2',
|
||||
usingComponents: {
|
||||
<!-- dynamicList: '~@/components/dynamicList',-->
|
||||
dynamicList: '~@/components/dynamicList',
|
||||
}
|
||||
}
|
||||
</config>
|
||||
|
||||
@ -52,19 +52,6 @@
|
||||
</block>
|
||||
</block>
|
||||
</view>
|
||||
<block v-if="posterConfig">
|
||||
<!-- 生成海报-->
|
||||
<poster type="2d" id="poster" hide-loading="{{false}}" preload="{{false}}" config="{{posterConfig}}"
|
||||
bind:success="onPosterSuccess">
|
||||
</poster>
|
||||
<!-- 分享微信卡片-->
|
||||
<poster ref="poster1" type="2d" id="poster1" hide-loading="{{false}}" preload="{{false}}" config="{{posterConfig1}}"
|
||||
bind:success="onPosterSuccessWx" >
|
||||
</poster>
|
||||
</block>
|
||||
<block v-if="!hide && posterConfig">
|
||||
<shareComponent :hide.sync="hide" :shareImage.sync="invite_pic"></shareComponent>
|
||||
</block>
|
||||
</view>
|
||||
<UnlockingDialog :modalName="unlockIngModalName" @unlockingCut="unlockingCut"></UnlockingDialog>
|
||||
</template>
|
||||
@ -87,81 +74,6 @@
|
||||
rankData: {
|
||||
rank_id: 0
|
||||
},
|
||||
posterConfig: {},
|
||||
shareConfig: {
|
||||
width: 750,
|
||||
height: 1334,
|
||||
backgroundColor: '#fff',
|
||||
debug: false,
|
||||
texts: [],
|
||||
images: [
|
||||
{
|
||||
url: 'https://image.fulllinkai.com/202206/20/57903775df70bd3f6ebde1b7ad00d159.png',
|
||||
width: 750,
|
||||
height: 1334,
|
||||
y: 0,
|
||||
x: 0
|
||||
},
|
||||
{
|
||||
url: '',
|
||||
width: 176,
|
||||
height: 176,
|
||||
y: 1102,
|
||||
x: 84
|
||||
}
|
||||
]
|
||||
},
|
||||
posterConfig1: null,
|
||||
shareConfig1: {
|
||||
width: 420,
|
||||
height: 336,
|
||||
backgroundColor: '#fff',
|
||||
debug: false,
|
||||
texts: [
|
||||
{
|
||||
x: 20,
|
||||
y: 248 + 26,
|
||||
lineHeight: 22,
|
||||
width: 200,
|
||||
text: '',
|
||||
fontSize: 26,
|
||||
color: '#fff',
|
||||
zIndex: 99
|
||||
}, {
|
||||
x: 20,
|
||||
y: 288 + 26,
|
||||
width: 200,
|
||||
lineHeight: 22,
|
||||
text: '',
|
||||
fontSize: 26,
|
||||
color: '#fff',
|
||||
zIndex: 99
|
||||
}
|
||||
],
|
||||
images: [
|
||||
{
|
||||
url: '',
|
||||
width: 420,
|
||||
height: 336,
|
||||
y: 0,
|
||||
x: 0
|
||||
},
|
||||
{
|
||||
url: 'https://image.fulllinkai.com/202206/20/be5b39dde1ad4720893b2e3c52b4480d.png',
|
||||
width: 420,
|
||||
height: 100,
|
||||
y: 236,
|
||||
x: 0
|
||||
},
|
||||
{
|
||||
url: 'https://image.fulllinkai.com/202206/20/bd732960011f55fed0e5e7d623118494.png',
|
||||
width: 136,
|
||||
height: 40,
|
||||
y: 276,
|
||||
x: 264
|
||||
}
|
||||
]
|
||||
},
|
||||
deadline: '',
|
||||
title: '',
|
||||
phoneNumber: '',
|
||||
@ -197,11 +109,6 @@
|
||||
type: 'navigateTo',
|
||||
path: '/pages/users/groupList'
|
||||
},
|
||||
// {
|
||||
// title: '分享我的卡片',
|
||||
// type: 'modal',
|
||||
// path: ''
|
||||
// },
|
||||
{
|
||||
title: '授权设置',
|
||||
type: 'navigateTo',
|
||||
@ -224,11 +131,7 @@
|
||||
}
|
||||
],
|
||||
[
|
||||
// {
|
||||
// title: '每日推荐提醒',
|
||||
// type: 'navigateTo',
|
||||
// path: ''
|
||||
// },
|
||||
|
||||
{
|
||||
title: '聊天消息提醒',
|
||||
type: 'navigateTo',
|
||||
@ -239,11 +142,7 @@
|
||||
type: 'navigateTo',
|
||||
path: ''
|
||||
}
|
||||
// {
|
||||
// title: '夸夸我',
|
||||
// type: 'navigateTo',
|
||||
// path: ''
|
||||
// }
|
||||
|
||||
],
|
||||
[
|
||||
{
|
||||
@ -267,67 +166,7 @@
|
||||
]
|
||||
},
|
||||
watch: {
|
||||
// user() {
|
||||
// console.log(this.user.type)
|
||||
// for (let item of this.StateList) {
|
||||
// if (item.type == this.user.type) {
|
||||
// item.active = true
|
||||
// this.StateText = item.title
|
||||
// } else {
|
||||
// item.active = false
|
||||
// }
|
||||
// }
|
||||
// this.user.deadline = this.user.deadline ? this.user.deadline.split(' ')[0] : ''
|
||||
// console.log(this.user.deadline)
|
||||
// this.Image = this.user.avatar
|
||||
// if (this.user.deadline != null) {
|
||||
// this.deadline = this.user.deadline
|
||||
// } else {
|
||||
// this.deadline = ''
|
||||
// }
|
||||
// },
|
||||
// pic() {
|
||||
// console.log(this.pic)
|
||||
// },
|
||||
// phoneNumber(mebile) {
|
||||
// console.log(mebile)
|
||||
// let reg = /^(\d{3})\d*(\d{4})$/
|
||||
// this.phoneNumber = mebile.replace(reg, '$1****$2')
|
||||
// }
|
||||
},
|
||||
|
||||
onShareAppMessage(res) {
|
||||
let that = this
|
||||
let openid = wx.getStorageSync('openid')
|
||||
let fromUserID = wx.getStorageSync('user_id')
|
||||
let type = wx.getStorageSync('type')
|
||||
let url = ''
|
||||
if (type === 'marriage') {
|
||||
url = `/pages/home/informationV2?id=${fromUserID}&from_openid=${openid}&share_user_id=${fromUserID}&from_user_id=${fromUserID}`
|
||||
} else {
|
||||
url = `/pages/home/information?id=${fromUserID}&from_openid=${openid}&share_user_id=${fromUserID}&from_user_id=${fromUserID}`
|
||||
}
|
||||
console.log(url)
|
||||
console.log(that.shareCanvasImg, '分享海报')
|
||||
return {
|
||||
title: that.title,
|
||||
path: url,
|
||||
imageUrl: that.shareCanvasImg,
|
||||
success: function (res) {
|
||||
wx.showToast({
|
||||
title: '转发成功',
|
||||
icon: 'success',
|
||||
duration: 1500
|
||||
})
|
||||
var shareTickets = res.shareTickets
|
||||
if (shareTickets.length == 0) {
|
||||
return false
|
||||
}
|
||||
},
|
||||
fail: function (res) {
|
||||
// 转发失败
|
||||
}
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.versions = app.globalData.versions
|
||||
@ -336,7 +175,6 @@
|
||||
onLoad() {
|
||||
this.system = app.globalData.systemInfo.system.split(' ')[0]
|
||||
},
|
||||
|
||||
methods: {
|
||||
vipData() {
|
||||
this.$get({url: service.host + '/user/center'}).then(({code, data}) => {
|
||||
@ -349,58 +187,7 @@
|
||||
this.init = true
|
||||
this.user = data
|
||||
this.phoneNumber = wx.getStorageSync('mobile')
|
||||
let vm = this,
|
||||
my_qrcode = wx.getStorageSync('my_qrcode')
|
||||
// if (my_qrcode) {
|
||||
// vm.shareConfig.images[1].url = my_qrcode
|
||||
// setTimeout(() => {
|
||||
// vm.posterConfig = vm.shareConfig
|
||||
// vm.$wxpage.selectComponent('#poster').onCreate(true)
|
||||
// }, 500)
|
||||
// }
|
||||
// this.title = `我是"${data.nickname}",这是我的小程序卡片`
|
||||
// if (data.photo || data.avatar) {
|
||||
// let year = '', city = '', degree = '', industry_sub = ''
|
||||
// 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.degree) {
|
||||
// degree = data.profile_courtship.degree
|
||||
// }
|
||||
// if (data.industry_sub) {
|
||||
// industry_sub = data.industry_sub
|
||||
// }
|
||||
// console.log(year, city, degree, industry_sub)
|
||||
// vm.shareConfig1.texts[0].text = `${year} | ${city}`
|
||||
// vm.shareConfig1.texts[1].text = `${degree} | ${industry_sub}`
|
||||
// vm.shareConfig1.images[0].url = data.photo || data.avatar
|
||||
// setTimeout(() => {
|
||||
// vm.posterConfig1 = vm.shareConfig1
|
||||
// // vm.$refs.poster1.onCreate(true)
|
||||
// }, 500)
|
||||
// }
|
||||
// if (data.type == 'marriage') {
|
||||
// this.list.splice(4)
|
||||
// this.listV2 = [
|
||||
// {
|
||||
// icon: 'http://images.ufutx.com/201906/06/d9c45bb3869b616189ac0723887928ad.png',
|
||||
// title: '分享给好友',
|
||||
// type: 'navigateTo',
|
||||
// subhead: '获得更多的祝福',
|
||||
// path: '/pages/users/myShare'
|
||||
// },
|
||||
// {
|
||||
// icon: 'http://images.ufutx.com/201906/06/0059f55a19360df71f84b8d90d265f54.png',
|
||||
// title: '使用反馈',
|
||||
// type: 'navigateTo',
|
||||
// subhead: '共同维护福恋',
|
||||
// path: '/pages/users/feedback'
|
||||
// }
|
||||
// ]
|
||||
// }
|
||||
let vm = this
|
||||
vm.vipData()
|
||||
wx.setStorageSync('type', data.type)
|
||||
})
|
||||
@ -503,10 +290,10 @@
|
||||
|
||||
goto(url, title) {
|
||||
console.log(this.hide, 'url====')
|
||||
if (title == '分享我的卡片') {
|
||||
this.hide = false
|
||||
return
|
||||
}
|
||||
// if (title == '分享我的卡片') {
|
||||
// this.hide = false
|
||||
// return
|
||||
// }
|
||||
if (title == '授权设置') {
|
||||
wx.openSetting({
|
||||
success(res) {
|
||||
|
||||
@ -889,7 +889,7 @@
|
||||
<view class="audit_photo_box bg_f" style="border-radius: 32rpx;padding: 22rpx;">
|
||||
<image style="width: 380rpx;height: auto;margin: 22rpx;" src="https://image.fulllinkai.com/202204/14/2c8b0665f901bd2e3b1b7afafd0629c3.png" mode="widthFix"></image>
|
||||
<view class="cancel_icon_box" @tap="hideModalV2">
|
||||
<view class="font_family icon-off white font_48" style="font-size: 52rpx;"></view>
|
||||
<view class="font_family cuIcon-roundclose white" style="font-size: 52rpx;"></view>
|
||||
</view>
|
||||
<view class="m_photo f-fcc">
|
||||
<view class="reason_prompt font_32 color333" style="width: 90%;font-weight: 400;">更换头像将重新审核,确定仍要更换成为未认证状态吗?</view>
|
||||
@ -1198,7 +1198,6 @@
|
||||
let vm = this
|
||||
if (!vm.mylibs.can_get_daily_rank) {
|
||||
vm.modalName = 'prompt'
|
||||
|
||||
return
|
||||
}
|
||||
vm.$showLoading('领取中...')
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
</block>
|
||||
</view>
|
||||
<view class="font_24 white flo_l" style="color: #f7e4ad;width: 70%; ">
|
||||
{{user.rank_deadline?user.rank_deadline+'到期':'未激活'}}
|
||||
{{user.deadline?user.deadline+'到期':'未激活'}}
|
||||
</view>
|
||||
<swiper class="card-swiper" circular="true" bindchange="cardSwiper">
|
||||
<swiper-item v-for="(item,index) in rankList" :key="index" class="{{cardCur==index?'cur':''}}" @tap="showFn(index)">
|
||||
@ -351,8 +351,8 @@
|
||||
let data = {}
|
||||
data = {
|
||||
sub_rank_id: this.payData.payId,
|
||||
chat_user_id: this.chat_user_id,
|
||||
share_type: this.share_type,
|
||||
// chat_user_id: this.chat_user_id,
|
||||
// share_type: this.share_type,
|
||||
pay_type: this.wxPayShow
|
||||
}
|
||||
that.$post({url: url, data}).then(({code, data}) => {
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
</block>
|
||||
</view>
|
||||
<view class="font_24 white flo_l" style="color: #f7e4ad;width: 70%; ">
|
||||
{{user.rank_deadline?user.rank_deadline+'到期':'未开通'}}
|
||||
{{user.deadline?user.deadline+'到期':'未开通'}}
|
||||
</view>
|
||||
<swiper class="card-swiper" circular="true" previous-margin="1px" bindchange="cardSwiper" current="{{cardCur}}">
|
||||
<swiper-item v-for="(item,index) in rankList" :key="index" class="{{cardCur==index?'cur':''}}" @tap="showFn(index)">
|
||||
@ -333,10 +333,10 @@
|
||||
this.cardCur = e.$wx.detail.current
|
||||
this.shareText = this.rankList[e.$wx.detail.current].title
|
||||
this.sharePic = this.rankList[e.$wx.detail.current].pic
|
||||
if (this.active == 1) {
|
||||
// if (this.active == 1) {
|
||||
console.log(this.cardCur)
|
||||
this.specialVIP = this.rankList[this.cardCur]
|
||||
}
|
||||
// }
|
||||
clearTimeout(this.timeID)
|
||||
this.timeID = setTimeout(() => {
|
||||
this.shareId = this.rankList[this.cardCur].id
|
||||
@ -396,20 +396,20 @@
|
||||
that.modalName = ''
|
||||
that.$showLoading('支付中...')
|
||||
let data = {}
|
||||
if (that.active == 1) {
|
||||
// if (that.active == 1) {
|
||||
data = {
|
||||
chat_user_id: this.chat_user_id,
|
||||
other_user_id: this.other_user_id,
|
||||
// chat_user_id: this.chat_user_id,
|
||||
// other_user_id: this.other_user_id,
|
||||
pay_type: this.wxPayShow
|
||||
}
|
||||
} else {
|
||||
data = {
|
||||
sub_rank_id: this.payData.payId,
|
||||
chat_user_id: this.chat_user_id,
|
||||
other_user_id: this.other_user_id,
|
||||
pay_type: this.wxPayShow
|
||||
}
|
||||
}
|
||||
// } else {
|
||||
// data = {
|
||||
// sub_rank_id: this.payData.payId,
|
||||
// chat_user_id: this.chat_user_id,
|
||||
// other_user_id: this.other_user_id,
|
||||
// pay_type: this.wxPayShow
|
||||
// }
|
||||
// }
|
||||
that.$post({url: url, data}).then(({code, data}) => {
|
||||
that.trade_no = data.trade_no
|
||||
if (data.wx_pay.length == 0) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user