123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- <template>
- <view class="page">
- <view class="mainBody">
- <view class="menu">
- <view class="item" :class="{'active':tab===1}" @click="checkTab(1)">
- <text class="left">全部</text>
- <view class="line"></view>
- </view>
- <view class="item" :class="{'active':tab===2}" @click="checkTab(2)">
- <text class="left">待处理</text>
- <view class="line"></view>
- </view>
- <view class="item" :class="{'active':tab===3}" @click="checkTab(3)">
- <text class="left">已通过</text>
- <view class="line"></view>
- </view>
- <view class="item" :class="{'active':tab===4}" @click="checkTab(4)">
- <text class="left">已拒绝</text>
- <view class="line"></view>
- </view>
- </view>
- </view>
- <view class="list_info">
- <block v-for="(item,index) in 10" :key="index">
- <view class="item">
- <view class="avator">
- <image class="icon" src="../../static/me/sex_2.png" mode="widthFix">
- </image>
- </view>
- <view class="tit">
- <view class="name">原淑功</view>
- <view class="desc">您请求与王莹莹交换联系方式</view>
- </view>
- <view class="state">
- <view class="status_1">待处理</view>
- <view class="status_9">已同意</view>
- <view class="status_2">已拒绝</view>
- </view>
- </view>
- <view class="huifu">
- <view class="left">TA的微信号:lidahai</view>
- <view class="right">复制</view>
- </view>
- <view class="doit">
- <view class="btn1">拒绝</view>
- <view class="btn2">同意</view>
- </view>
- <view class="line"></view>
- </block>
- <view class="blankHeight"></view>
- </view>
- </view>
- </template>
- <script>
- export default {
- components: {},
- data() {
- return {
- tab: 1,
- list: [{
- name: '实名认证',
- 'desc': '',
- 'path': ''
- },
- {
- name: '修改密码',
- 'desc': '',
- 'path': ''
- },
- {
- name: '修改手机号',
- 'desc': '',
- 'path': ''
- },
- {
- name: '注销账号',
- 'desc': '',
- 'path': ''
- },
- {
- name: '青少年模式',
- 'switch': 1,
- 'desc': '',
- 'path': ''
- },
- {
- name: '客服热线',
- 'desc': '400-888-1688',
- 'path': ''
- }
- ]
- }
- },
- onLoad() {
- setTimeout(function() {
- uni.setNavigationBarColor({
- frontColor: '#ffffff',
- backgroundColor: '#00000000',
- animation: {
- duration: 400,
- timingFunc: 'easeIn'
- }
- })
- }, 200);
- },
- onShow() {
- this.loadData();
- },
- methods: {
- onBack() {},
- checkTab(tab) {
- this.tab = tab;
- // this.loadData();
- },
- loadData() {
- console.log("this.globalData", getApp().globalData);
- let obj2 = {
- is_first: 0
- }
- const postData = Object.assign({}, getApp().globalData.postHeader, obj2);
- console.log(postData);
- uni.request({
- url: this.$apiHost + '/Gushi/getmyinfo', //仅为示例,并非真实接口地址。
- data: postData,
- method: 'POST',
- header: {
- 'content-type': 'application/json', //自定义请求头信息
- 'Access-Control-Allow-Origin': '*'
- },
- success: (res) => {
- console.log('data:', res.data);
- this.myinfo = res.data;
- }
- });
- },
- EditNickname() {
- let that = this;
- this.$refs['DialogBox'].confirm({
- title: '更改昵称',
- placeholder: '请输入修改的昵称',
- value: that.myinfo.nickname,
- DialogType: 'input',
- animation: 0
- }).then((res) => {
- if (res.value.length < 1) {
- uni.showToast({
- title: "请输入有效的昵称",
- icon: 'none'
- });
- return;
- }
- that.myinfo.nickname = res.value;
- let obj2 = {
- nickname: res.value
- }
- const postData = Object.assign({}, getApp().globalData.postHeader, obj2);
- uni.request({
- url: that.$apiHost + '/Gushi/editinfo', //检测是否已绑定
- data: postData,
- method: 'POST',
- header: {
- 'content-type': 'application/json', //自定义请求头信息
- 'Access-Control-Allow-Origin': '*'
- },
- success: (res) => {
- uni.showToast({
- title: res.data.str,
- icon: 'none'
- });
- }
- });
- })
- },
- }
- }
- </script>
- <style scoped lang="scss">
- @import 'tranWechat.scss';
- </style>
|