123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342 |
- <template>
- <view class="myBox">
- <view class="myhead">
- <view @click="goinfor" class="myheadImg">
- <uni-icon color="#fff" size="22" type="chat"></uni-icon>
- </view>
- <view class="myNmae">
- <view class="myNmaeLeft">
- <view class="myNmaeImg">
- <image src=""></image>
- </view>
- <view>
- <view style="font-size: 34upx;margin-bottom: 32upx;">用户名</view>
- <view style="font-size: 24upx" @click="goAdress(3)" >圈币{{userinfo.member_points}}></view>
- </view>
- </view>
- <view class="myNmaeRight" v-if="userinfo.has_sign == 0">每日签到></view>
- <view class="myNmaeRight" v-if="userinfo.has_sign == 1">已签到></view>
- </view>
- </view>
- <van-cell title="我的订单" is-link />
- <view class="myorder">
- <view class="orderList">
- <view class="orderOne">
- <image class="imagewidth" src=""></image>
- <view>待付款</view>
- </view>
- <view class="orderOne">
- <image class="imagewidth" src=""></image>
- <view>处理中</view>
- </view>
- <view class="orderOne">
- <image class="imagewidth" src=""></image>
- <view>带评价</view>
- </view>
- <view class="orderOne">
- <image class="imagewidth" src=""></image>
- <view>已取消</view>
- </view>
- <view class="orderOne">
- <image class="imagewidth" src=""></image>
- <view>退款/售后</view>
- </view>
- </view>
- </view>
- <view style="border-bottom: 20upx solid #F5F5F5;"></view>
- <van-cell title="我的服务"/>
- <van-cell @click="goAdress(0)" title="圈在网代理" is-link>
- <template slot="icon">
- <image style="width: 29upx;height: 29upx;
- background-color: #007AFF;
- margin-right: 8upx;
- vertical-align:middle"
- src="" />
- </template>
- </van-cell>
-
- <van-cell @click="goAdress(2)" title="圈在网入驻" is-link>
- <template slot="icon">
- <image style="width: 29upx;height: 29upx;
- background-color: #007AFF;
- margin-right: 8upx;
- vertical-align:middle"
- src="" />
- </template>
- </van-cell>
-
- <van-cell @click="goAdress(3)" title="圈币明细" is-link>
- <template slot="icon">
- <image style="width: 29upx;height: 29upx;
- background-color: #007AFF;
- margin-right: 8upx;
- vertical-align:middle"
- src="" />
- </template>
- </van-cell>
-
- <van-cell @click="goAdress(1)" title="我的地址" is-link>
- <template slot="icon">
- <image style="width: 29upx;height: 29upx;
- background-color: #007AFF;
- margin-right: 8upx;
- vertical-align:middle"
- src="" />
- </template>
- </van-cell>
-
- <van-cell @click="goAdress(9)" title="我的收藏" is-link>
- <template slot="icon">
- <image style="width: 29upx;height: 29upx;
- background-color: #007AFF;
- margin-right: 8upx;
- vertical-align:middle"
- src="" />
- </template>
- </van-cell>
-
- <van-cell @click="goAdress(8)" title="意见反馈" is-link>
- <template slot="icon">
- <image style="width: 29upx;height: 29upx;
- background-color: #007AFF;
- margin-right: 8upx;
- vertical-align:middle"
- src="" />
- </template>
- </van-cell>
-
- <van-cell @click="goAdress(7)" title="商务合作" is-link>
- <template slot="icon">
- <image style="width: 29upx;height: 29upx;
- background-color: #007AFF;
- margin-right: 8upx;
- vertical-align:middle"
- src="" />
- </template>
- </van-cell>
-
- <!-- <logionDialog @confirmDiaolog="confirmDiaolog"
- :ishow="false" @cancelDiaolog="cancelDiaolog" @keepdialog="keepdialog"
- @changeDiaolog="changeDiaolog" :showdialog="showdialog"/> -->
- <!-- @keepdialog="keepdialog"
- @changeDiaolog="changeDiaolog" -->
- </view>
- </template>
- <script>
- import uniIcon from '@/component/uni-icon/uni-icon.vue'
- import logionDialog from '@/component/loginDialog.vue'
- import {
- mapMutations,mapState
- } from 'vuex'
- export default {
- components: {
- uniIcon,
- logionDialog
- },
- data() {
- return {
- showdialog: false,
- ishow: false,
- userinfo: {}
- }
- },
- computed:{
- ...mapState([
- 'hasLogin',
- 'userInfo'
- ]),
- },
- onLoad() {
- if(this.hasLogin) {
- this.getuserinfo();
- }else {
- uni.navigateTo({
- url: './logion'
- })
- //this.showdialog = true;
- }
-
- },
- watch:{
- 'hasLogin':function(val) {
- console.log("监听")
- if(val) {
- this.getuserinfo();
-
- }else {
- uni.navigateTo({
- url: './logion'
- })
- }
- },
-
- },
- methods: {
- getuserinfo() {
- this.request({
- url:'/v2/member/info',
- method:'GET',
- success: (res)=>{
- let { data } = res.data;
- console.log(data);
-
- this.userinfo = data;
- }
- })
- },
- // // 关闭弹窗
- // cancelDiaolog() {
- // this.showdialog = false;
- // },
- // // 确定
- // confirmDiaolog() {
- // this.showdialog = false;
- // },
- // changeDiaolog() {
- // this.showdialog = false;
- // },
- // keepdialog() {
- // this.showdialog = true;
- // },
- goAdress(e) {
- console.log(this.hasLogin)
- console.log(e);
- if(this.hasLogin) {
- if(e == 1) {
- uni.navigateTo({
- url: '../myOrder/adress' // 我的地址
- })
- }else if(e == 0) {
- uni.navigateTo({
- url: './applyfor' // 我的申请
- })
-
- }else if(e == 2) {
- uni.navigateTo({
- url: './Settled' // 酒店入驻
- })
-
- }else if(e == 3) {
-
- uni.navigateTo({
- url: './definite' // 圈币明细
- })
-
- }else if(e == 7) {
-
- uni.navigateTo({
- url: './business' // 商务合作
- })
-
- }else if(e == 8) {
-
- uni.navigateTo({
- url: './commentback' // 意见反馈
- })
-
-
- }else if(e == 9) {
- uni.navigateTo({
- url: './myCollect' // 我的收藏
- })
- }
- }else {
- uni.navigateTo({
- url: './logion'
- })
- //this.showdialog = true;
- }
- },
-
- goinfor() {
- if(this.hasLogin) {
- uni.navigateTo({
- url: './information' // 我的xiaoxi
- })
- }else {
- uni.navigateTo({
- url: './logion'
- })
- // this.showdialog = true;
- }
-
- }
- }
- }
- </script>
- <style lang="scss">
- .myBox {
- height: 100vh;
- width: 100%;
- background-color: #fff;
- .myhead {
- height: 290upx;
- background-color: #D9332E;
- .myheadImg {
- padding: 10upx 32upx 0 0;
- height: 85upx;
- text-align: right;
- line-height: 85upx;
- }
- .myNmae {
- display: flex;
- justify-content: space-between;
- flex-direction: row;
- align-items: center;
- padding: 20upx 32upx 0 32upx;
- .myNmaeLeft {
- display: flex;
- flex-direction: row;
- align-items: center;
- color: #fff;
- .myNmaeImg {
- width: 128upx;
- height: 128upx;
- border-radius: 50%;
- padding-right: 32upx;
- image {
- width: 100%;
- height: 100%;
- border-radius: 50%;
- background-color: #fff;
- }
- }
- }
- .myNmaeRight {
- width:144upx;
- height: 52upx;
- background:rgba(255,255,255,0.27);
- border-radius: 44upx;
- border:2upx solid rgb(255,255,255);
- color: #fff;
- line-height: 52upx;
- text-align: center;
- font-size: 24upx;;
- }
- }
-
- }
- .myorder {
- padding: 0 32upx;
- .orderList {
- padding: 28upx 0;
- display: flex;
-
- }
- .orderOne {
- flex: 1;
- flex-direction: column;
- text-align: center;
-
- .imagewidth {
- width: 44upx;
- height: 44upx;
- background-color: red;
- }
- }
- }
-
- }
- </style>
|