|
@@ -10,7 +10,7 @@
|
|
|
<view class="level" v-if="userInfo.cNickName">一星用户</view>
|
|
<view class="level" v-if="userInfo.cNickName">一星用户</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="r flex flex-col">
|
|
|
|
|
|
|
+ <view class="r flex flex-col" v-if="userInfo.cNickName" @click="goSettPage()">
|
|
|
<u-icon name="setting" color="#000" size="36rpx"></u-icon>
|
|
<u-icon name="setting" color="#000" size="36rpx"></u-icon>
|
|
|
<text>设置</text>
|
|
<text>设置</text>
|
|
|
</view>
|
|
</view>
|
|
@@ -30,7 +30,7 @@
|
|
|
fontSize: '22rpx',
|
|
fontSize: '22rpx',
|
|
|
color: '#fff',
|
|
color: '#fff',
|
|
|
background: 'linear-gradient(90deg, #FB8948 0%, #FE5B31 100%)'
|
|
background: 'linear-gradient(90deg, #FB8948 0%, #FE5B31 100%)'
|
|
|
- }"
|
|
|
|
|
|
|
+ }"
|
|
|
@click="goPay"
|
|
@click="goPay"
|
|
|
>去使用</u-button>
|
|
>去使用</u-button>
|
|
|
</view>
|
|
</view>
|
|
@@ -50,7 +50,7 @@
|
|
|
fontSize: '22rpx',
|
|
fontSize: '22rpx',
|
|
|
color: '#fff',
|
|
color: '#fff',
|
|
|
background: 'var(--theme-color-gradient)'
|
|
background: 'var(--theme-color-gradient)'
|
|
|
- }"
|
|
|
|
|
|
|
+ }"
|
|
|
@click="goPay"
|
|
@click="goPay"
|
|
|
>去充值</u-button>
|
|
>去充值</u-button>
|
|
|
</view>
|
|
</view>
|
|
@@ -68,7 +68,7 @@
|
|
|
<view class="order-card">
|
|
<view class="order-card">
|
|
|
<view class="item" v-for="(item, index) in orderIcons" :key="index" @click="goToPage(item, 'tab')">
|
|
<view class="item" v-for="(item, index) in orderIcons" :key="index" @click="goToPage(item, 'tab')">
|
|
|
<u-badge v-if="item.badge > 0" absolute
|
|
<u-badge v-if="item.badge > 0" absolute
|
|
|
- :value="item.badge"
|
|
|
|
|
|
|
+ :value="item.badge"
|
|
|
:offset="[-4, -10]"
|
|
:offset="[-4, -10]"
|
|
|
:customStyle="{ zIndex: 1 }"
|
|
:customStyle="{ zIndex: 1 }"
|
|
|
></u-badge>
|
|
></u-badge>
|
|
@@ -107,7 +107,7 @@
|
|
|
<swiper class="swiper" :indicator-dots="true" indicator-color="#D9D9D9" indicator-active-color="#0879FF">
|
|
<swiper class="swiper" :indicator-dots="true" indicator-color="#D9D9D9" indicator-active-color="#0879FF">
|
|
|
<swiper-item v-for="(sitem, i) in splitData" :key="i">
|
|
<swiper-item v-for="(sitem, i) in splitData" :key="i">
|
|
|
<u-grid :col="4" :border="false">
|
|
<u-grid :col="4" :border="false">
|
|
|
- <u-grid-item v-for="(item, k) in sitem" :key="k"
|
|
|
|
|
|
|
+ <u-grid-item v-for="(item, k) in sitem" :key="k"
|
|
|
customStyle="padding-top: 10rpx; padding-bottom: 20rpx;"
|
|
customStyle="padding-top: 10rpx; padding-bottom: 20rpx;"
|
|
|
@click="goToPage(item)">
|
|
@click="goToPage(item)">
|
|
|
<image class="icon" :src="item.icon" mode="aspectFit"></image>
|
|
<image class="icon" :src="item.icon" mode="aspectFit"></image>
|
|
@@ -118,11 +118,11 @@
|
|
|
</swiper>
|
|
</swiper>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
- <u-modal :show="show"
|
|
|
|
|
- title="退回提示"
|
|
|
|
|
|
|
+ <u-modal :show="show"
|
|
|
|
|
+ title="退回提示"
|
|
|
:content="modalText.content"
|
|
:content="modalText.content"
|
|
|
- showCancelButton
|
|
|
|
|
- confirmText="去修改"
|
|
|
|
|
|
|
+ showCancelButton
|
|
|
|
|
+ confirmText="去修改"
|
|
|
confirmColor="#27aea7"
|
|
confirmColor="#27aea7"
|
|
|
@cancel="show = false"
|
|
@cancel="show = false"
|
|
|
@confirm="onConfirm"
|
|
@confirm="onConfirm"
|
|
@@ -146,7 +146,7 @@ export default {
|
|
|
show: false,
|
|
show: false,
|
|
|
userInfo: {},
|
|
userInfo: {},
|
|
|
// 优惠券数量
|
|
// 优惠券数量
|
|
|
- couponNum: 0,
|
|
|
|
|
|
|
+ couponNum: 0,
|
|
|
// 收藏数量
|
|
// 收藏数量
|
|
|
collectNum: 0,
|
|
collectNum: 0,
|
|
|
// 审核
|
|
// 审核
|
|
@@ -194,7 +194,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
onLoad() {
|
|
onLoad() {
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
onShow() {
|
|
onShow() {
|
|
|
this.getData();
|
|
this.getData();
|
|
@@ -241,7 +241,7 @@ export default {
|
|
|
this.modalText.content = res.data.data.reasonRefusal;
|
|
this.modalText.content = res.data.data.reasonRefusal;
|
|
|
// 审核已通过
|
|
// 审核已通过
|
|
|
if (this.auditStatus == 1) {
|
|
if (this.auditStatus == 1) {
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
this.auditStatus = -1;
|
|
this.auditStatus = -1;
|
|
@@ -323,6 +323,13 @@ export default {
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
|
url: '/points/home/index'
|
|
url: '/points/home/index'
|
|
|
});
|
|
});
|
|
|
|
|
+ },
|
|
|
|
|
+ //跳转至设置界面
|
|
|
|
|
+ goSettPage(){
|
|
|
|
|
+ if (!this.$utils.checkLogin({ type: 'modal' })) return;
|
|
|
|
|
+ uni.navigateTo({
|
|
|
|
|
+ url: '/setting/myNew/index'
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
onLogin() {
|
|
onLogin() {
|
|
|
if (this.$utils.checkLogin()) return;
|
|
if (this.$utils.checkLogin()) return;
|
|
@@ -424,7 +431,7 @@ export default {
|
|
|
border: 1rpx solid #FFFFFF;
|
|
border: 1rpx solid #FFFFFF;
|
|
|
border-radius: 20rpx;
|
|
border-radius: 20rpx;
|
|
|
background: linear-gradient(180deg, #FFFDFB 0%, #FFFFFF 100%);
|
|
background: linear-gradient(180deg, #FFFDFB 0%, #FFFFFF 100%);
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
.num {
|
|
.num {
|
|
|
font-weight: 400;
|
|
font-weight: 400;
|
|
|
font-size: 22rpx;
|
|
font-size: 22rpx;
|
|
@@ -578,7 +585,7 @@ export default {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
justify-content: space-around;
|
|
justify-content: space-around;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
.item {
|
|
.item {
|
|
|
position: relative;
|
|
position: relative;
|
|
|
display: flex;
|
|
display: flex;
|
|
@@ -599,4 +606,4 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-</style>
|
|
|
|
|
|
|
+</style>
|