feat: ✨ config新增默认用户头像以及默认背景配置,修复查看订单报错无权限bug
parent
2c494ac0d1
commit
c919b1463c
|
@ -22,4 +22,6 @@ export default {
|
||||||
mainColor: "#ff3c2a", // 主题色
|
mainColor: "#ff3c2a", // 主题色
|
||||||
lightColor: "#ff6b35", // 高亮主题色
|
lightColor: "#ff6b35", // 高亮主题色
|
||||||
aiderLightColor: "#ff9f28", // 辅助高亮颜色
|
aiderLightColor: "#ff9f28", // 辅助高亮颜色
|
||||||
|
defaultUserTopBackground:"/static/img/main-bg.png", // 我的页面用户背景 渲染的大小: 750 × 443 px 渲染时的宽高比: 750∶443
|
||||||
|
defaultUserPhoto:"/static/missing-face.png" // 默认用户头像
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="container">
|
<view class="container">
|
||||||
<view class="person" @click="checkUserInfo()">
|
<view class="person" @click="checkUserInfo()">
|
||||||
<u-image width=140 height="140" shape="circle" :src="userInfo.face || '/static/missing-face.png'" mode="">
|
<u-image width=140 height="140" shape="circle" :src="userInfo.face || userImage" mode="">
|
||||||
</u-image>
|
</u-image>
|
||||||
<view class="user-name">
|
<view class="user-name">
|
||||||
|
|
||||||
|
@ -36,6 +36,7 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
config,
|
config,
|
||||||
|
userImage:config.defaultUserPhoto,
|
||||||
lightColor: this.$lightColor,
|
lightColor: this.$lightColor,
|
||||||
quitShow: false,
|
quitShow: false,
|
||||||
isCertificate: false,
|
isCertificate: false,
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<view class="exaluate-member-view">
|
<view class="exaluate-member-view">
|
||||||
<view class="member-view">
|
<view class="member-view">
|
||||||
<view class="member-img">
|
<view class="member-img">
|
||||||
<u-image width="82rpx" style="border: 1px solid #ededed" height="82rpx" shape="circle" :src="comment.memberProfile || '/static/missing-face.png'"></u-image>
|
<u-image width="82rpx" style="border: 1px solid #ededed" height="82rpx" shape="circle" :src="comment.memberProfile || userImage"></u-image>
|
||||||
</view>
|
</view>
|
||||||
<view class="member-info">
|
<view class="member-info">
|
||||||
<view class="memName">{{ comment.memberName }}</view>
|
<view class="memName">{{ comment.memberName }}</view>
|
||||||
|
@ -41,9 +41,13 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import configs from '@/config/config'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
configs,
|
||||||
|
userImage:configs.defaultUserPhoto,
|
||||||
|
|
||||||
comment: {}, //评论信息
|
comment: {}, //评论信息
|
||||||
gradeList: {
|
gradeList: {
|
||||||
//评价grade
|
//评价grade
|
||||||
|
|
|
@ -69,7 +69,7 @@
|
||||||
<view class="group">
|
<view class="group">
|
||||||
<view>
|
<view>
|
||||||
<u-image borderRadius="50%" shape="square" class="head-img" width="81rpx" height="81rpx"
|
<u-image borderRadius="50%" shape="square" class="head-img" width="81rpx" height="81rpx"
|
||||||
:src="masterWay.face || '/static/missing-face.png'"></u-image>
|
:src="masterWay.face || userImage"></u-image>
|
||||||
<view class="btn-one">团长</view>
|
<view class="btn-one">团长</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="line"> </view>
|
<view class="line"> </view>
|
||||||
|
@ -80,7 +80,7 @@
|
||||||
<view slot="loading"></view>
|
<view slot="loading"></view>
|
||||||
</u-image>
|
</u-image>
|
||||||
<u-image class="head-img" borderRadius="50%" shape="square" v-else width="81rpx" height="81rpx"
|
<u-image class="head-img" borderRadius="50%" shape="square" v-else width="81rpx" height="81rpx"
|
||||||
:src="endWay.face || '/static/missing-face.png'"></u-image>
|
:src="endWay.face || userImage"></u-image>
|
||||||
|
|
||||||
<view class="wait">{{ endWay.nickname || "等待参团" }}</view>
|
<view class="wait">{{ endWay.nickname || "等待参团" }}</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -265,7 +265,7 @@ import * as API_Order from "@/api/order";
|
||||||
import invoices from "@/pages/order/invoice/setInvoice";
|
import invoices from "@/pages/order/invoice/setInvoice";
|
||||||
|
|
||||||
import LiLiWXPay from "@/js_sdk/lili-pay/wx-pay.js";
|
import LiLiWXPay from "@/js_sdk/lili-pay/wx-pay.js";
|
||||||
|
import configs from '@/config/config'
|
||||||
export default {
|
export default {
|
||||||
onLoad: function (val) {
|
onLoad: function (val) {
|
||||||
this.routerVal = val;
|
this.routerVal = val;
|
||||||
|
@ -277,6 +277,8 @@ export default {
|
||||||
watch: {},
|
watch: {},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
configs,
|
||||||
|
userImage:configs.defaultUserPhoto,
|
||||||
invoiceFlag: false, //开票开关
|
invoiceFlag: false, //开票开关
|
||||||
shippingText: "LOGISTICS",
|
shippingText: "LOGISTICS",
|
||||||
shippingFlag: false,
|
shippingFlag: false,
|
||||||
|
|
|
@ -343,7 +343,7 @@ export default {
|
||||||
this.orderGoodsList = order.orderItems;
|
this.orderGoodsList = order.orderItems;
|
||||||
this.orderDetail = res.data.result;
|
this.orderDetail = res.data.result;
|
||||||
if (this.order.deliveryMethod === 'LOGISTICS') {
|
if (this.order.deliveryMethod === 'LOGISTICS') {
|
||||||
this.loadLogistics()
|
this.loadLogistics(sn)
|
||||||
}
|
}
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
});
|
});
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
</div>
|
</div>
|
||||||
<view class="eva-box" v-for="(item, index) in commDetail" :key="index">
|
<view class="eva-box" v-for="(item, index) in commDetail" :key="index">
|
||||||
<view class="section-info">
|
<view class="section-info">
|
||||||
<image class="portrait" :src="item.memberProfile || '/static/missing-face.png'" mode="aspectFill"></image>
|
<image class="portrait" :src="item.memberProfile || userImage" mode="aspectFill"></image>
|
||||||
<view class="star-content">
|
<view class="star-content">
|
||||||
<text class="name">{{ item.memberName | noPassByName }}</text>
|
<text class="name">{{ item.memberName | noPassByName }}</text>
|
||||||
<text class="time">{{ item.createTime }}</text>
|
<text class="time">{{ item.createTime }}</text>
|
||||||
|
@ -65,11 +65,13 @@
|
||||||
<script>
|
<script>
|
||||||
// import { getGoodsDetail } from '@/api/goods.js';
|
// import { getGoodsDetail } from '@/api/goods.js';
|
||||||
import * as membersApi from "@/api/members.js";
|
import * as membersApi from "@/api/members.js";
|
||||||
|
import configs from '@/config/config'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
configs,
|
||||||
status: "loadmore", //底部刷新状态
|
status: "loadmore", //底部刷新状态
|
||||||
|
userImage:configs.defaultUserPhoto,
|
||||||
commentDetail: "", //评价详情
|
commentDetail: "", //评价详情
|
||||||
selectIndex: "0", //检索条件
|
selectIndex: "0", //检索条件
|
||||||
params: { // 评论分页提交数据
|
params: { // 评论分页提交数据
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<view v-if="assembleOrder.length != 0">
|
<view v-if="assembleOrder.length != 0">
|
||||||
<view class="group-item" v-for="(order, index) in assembleOrder" :key="index">
|
<view class="group-item" v-for="(order, index) in assembleOrder" :key="index">
|
||||||
<view class="group-item-user">
|
<view class="group-item-user">
|
||||||
<u-image shape="circle" width="40px" height="40px" :src="order.face"></u-image>
|
<u-image shape="circle" width="40px" height="40px" :src="order.face || userImage"></u-image>
|
||||||
<span class="group-item-name">{{ order.nickName | noPassByName }}</span>
|
<span class="group-item-name">{{ order.nickName | noPassByName }}</span>
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
|
@ -25,9 +25,13 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import * as API_Promotions from "@/api/promotions";
|
import * as API_Promotions from "@/api/promotions";
|
||||||
|
import configs from '@/config/config'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
configs,
|
||||||
|
userImage:configs.defaultUserPhoto,
|
||||||
|
|
||||||
customStyle: {
|
customStyle: {
|
||||||
background: this.$lightColor,
|
background: this.$lightColor,
|
||||||
color: "#fff",
|
color: "#fff",
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
<view class="status_bar">
|
<view class="status_bar">
|
||||||
<!-- 这里是状态栏 -->
|
<!-- 这里是状态栏 -->
|
||||||
</view>
|
</view>
|
||||||
<view class="header" @click="userDetail">
|
<view class="header" :style="{'background-image':`url(${backGroundImage})`}" @click="userDetail">
|
||||||
<view class="head-1">
|
<view class="head-1">
|
||||||
<image :src="userInfo.face || '/static/missing-face.png'"></image>
|
<image :src="userInfo.face || userImage"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="head-2" v-if="userInfo.id">
|
<view class="head-2" v-if="userInfo.id">
|
||||||
<view class="user-name">{{ userInfo.nickName }}</view>
|
<view class="user-name">{{ userInfo.nickName }}</view>
|
||||||
|
@ -78,12 +78,16 @@
|
||||||
import tool from "@/pages/tabbar/user/utils/tool.vue";
|
import tool from "@/pages/tabbar/user/utils/tool.vue";
|
||||||
import { getCouponsNum, getFootprintNum } from "@/api/members.js";
|
import { getCouponsNum, getFootprintNum } from "@/api/members.js";
|
||||||
import { getUserWallet } from "@/api/members";
|
import { getUserWallet } from "@/api/members";
|
||||||
|
import configs from '@/config/config'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
tool,
|
tool,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
configs,
|
||||||
|
backGroundImage:configs.defaultUserTopBackground,
|
||||||
|
userImage:configs.defaultUserPhoto,
|
||||||
coverTransform: "translateY(0px)",
|
coverTransform: "translateY(0px)",
|
||||||
coverTransition: "0s",
|
coverTransition: "0s",
|
||||||
moving: false,
|
moving: false,
|
||||||
|
@ -169,7 +173,7 @@ body {
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
border-bottom-left-radius: 30rpx;
|
border-bottom-left-radius: 30rpx;
|
||||||
border-bottom-right-radius: 30rpx;
|
border-bottom-right-radius: 30rpx;
|
||||||
background-image: url("/static/img/main-bg.png");
|
// background-image: url("/static/img/main-bg.png");
|
||||||
background-position: bottom;
|
background-position: bottom;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
|
|
Loading…
Reference in New Issue