6
0
Fork 0

修改客服信息

hui.zhou
h30830569 2022-05-31 14:39:00 +08:00
parent 47e65241cb
commit 4383d268ac
4 changed files with 251 additions and 244 deletions

View File

@ -24,7 +24,7 @@
<view class=" text-txGray ml-15rpx">{{user.phone}}</view> <view class=" text-txGray ml-15rpx">{{user.phone}}</view>
</view> </view>
<view class="flex items-center flex-1 justify-end font-extrabold" @tap="$u.routeAuth('/pageB/comm_rec/index')" > <view class="flex items-center flex-1 justify-end font-extrabold" @tap="$u.routeAuth('/pageB/comm_rec/index')" >
<view class="mr-5rpx">记录</view> <view class="mr-5rpx">记录</view>
<u-icon name="arrow-right" size="26"></u-icon> <u-icon name="arrow-right" size="26"></u-icon>
</view> </view>
</view> </view>

View File

@ -2,7 +2,7 @@
<view class="px-30rpx pt-20rpx"> <view class="px-30rpx pt-20rpx">
<view class="sticky top-0 z-1500 bg-hex-F5F5F5 rounded-full grid grid-cols-3 text-28rpx text-hex-333 leading-40rpx py-10rpx"> <view class="sticky top-0 z-1500 bg-hex-F5F5F5 rounded-full grid grid-cols-3 text-28rpx text-hex-333 leading-40rpx py-10rpx">
<view class="text-center">时间</view> <view class="text-center">时间</view>
<view class="text-center">佣金</view> <view class="text-center">返利</view>
<view class="text-center">状态</view> <view class="text-center">状态</view>
</view> </view>
<mescroll-body :height="height" ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback" :down="downOption" <mescroll-body :height="height" ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback" :down="downOption"

View File

@ -589,7 +589,7 @@
{ {
"path": "comm_rec/index", "path": "comm_rec/index",
"style": { "style": {
"navigationBarTitleText": "佣金记录", "navigationBarTitleText": "推荐返利",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationStyle": "default" "navigationStyle": "default"
} }

View File

@ -36,9 +36,7 @@
</view> </view>
</view> </view>
<view class="flex items-center justify-between mt-20rpx text-txBase text-lg"> <view class="flex items-center justify-between mt-20rpx text-txBase text-lg">
<view class="flex-1" v-if="walletShow" <view class="flex-1" v-if="walletShow">: <text class="font-medium">{{ balance.balance }}</text></view>
>余额: <text class="font-medium">{{ balance.balance }}</text></view
>
<!-- <view class="w-200rpx flex-none"> <!-- <view class="w-200rpx flex-none">
<view class="" v-if="!isVerify" <view class="" v-if="!isVerify"
>积分:<text class="font-medium">{{ user.points }}</text></view >积分:<text class="font-medium">{{ user.points }}</text></view
@ -65,20 +63,14 @@
<!-- 已是会员广告位 --> <!-- 已是会员广告位 -->
<block v-if="!isVerify"> <block v-if="!isVerify">
<block v-if="show_vip_banner && user.is_vip == true"> <block v-if="show_vip_banner && user.is_vip == true">
<view <view @tap="$u.routeAuth('/pageB/svip/index')" :style="[{ backgroundImage: 'url(' + show_vip_banner + ')' }]"
@tap="$u.routeAuth('/pageB/svip/index')" class="bg_advertisement mt flex items-center justify-end px-30rpx">
:style="[{ backgroundImage: 'url(' + show_vip_banner + ')' }]"
class="bg_advertisement mt flex items-center justify-end px-30rpx"
>
</view> </view>
</block> </block>
<!-- 还未成为会员 --> <!-- 还未成为会员 -->
<block v-if="become_vip_banner && user.is_vip == false"> <block v-if="become_vip_banner && user.is_vip == false">
<view <view @tap="$u.routeAuth('/pageB/svip/index')" :style="[{ backgroundImage: 'url(' + become_vip_banner + ')' }]"
@tap="$u.routeAuth('/pageB/svip/index')" class="bg_advertisements mt px-30rpx">
:style="[{ backgroundImage: 'url(' + become_vip_banner + ')' }]"
class="bg_advertisements mt px-30rpx"
>
</view> </view>
</block> </block>
</block> </block>
@ -89,29 +81,34 @@
<view class="text-md text-txBase" @tap="$u.routeAuth('/pageA/user_order/index', { type: 0 })">查看全部</view> <view class="text-md text-txBase" @tap="$u.routeAuth('/pageA/user_order/index', { type: 0 })">查看全部</view>
</view> </view>
<view class="flex items-center px-base justify-around py-26rpx"> <view class="flex items-center px-base justify-around py-26rpx">
<view class="flex items-center justify-center flex-col text-txBase text-md" @tap="$u.routeAuth('/pageA/user_order/index', { type: 1 })"> <view class="flex items-center justify-center flex-col text-txBase text-md"
@tap="$u.routeAuth('/pageA/user_order/index', { type: 1 })">
<view class="flex items-start relative"> <view class="flex items-start relative">
<image class="w-48rpx h-48rpx" src="/static/images/user/pending_payment.png" mode="scaleToFill"></image> <image class="w-48rpx h-48rpx" src="/static/images/user/pending_payment.png" mode="scaleToFill"></image>
<block v-if="isLogin && order_count.pending_orders_count > 0"> <block v-if="isLogin && order_count.pending_orders_count > 0">
<view class="absolute left-30rpx -top-18rpx w-32rpx h-32rpx rounded-full bg-bgSubtitle text-white text-sm text-center leading-32rpx"> <view
class="absolute left-30rpx -top-18rpx w-32rpx h-32rpx rounded-full bg-bgSubtitle text-white text-sm text-center leading-32rpx">
{{ order_count.pending_orders_count }} {{ order_count.pending_orders_count }}
</view> </view>
</block> </block>
</view> </view>
<view>待付款</view> <view>待付款</view>
</view> </view>
<view class="flex items-center justify-center flex-col text-txBase text-md" @tap="$u.routeAuth('/pageA/user_order/index', { type: 2 })"> <view class="flex items-center justify-center flex-col text-txBase text-md"
@tap="$u.routeAuth('/pageA/user_order/index', { type: 2 })">
<view class="flex items-start relative"> <view class="flex items-start relative">
<image class="w-48rpx h-48rpx" src="@/static/images/user/received.png" mode=""></image> <image class="w-48rpx h-48rpx" src="@/static/images/user/received.png" mode=""></image>
<block v-if="isLogin && order_count.unreceived_orders_count > 0"> <block v-if="isLogin && order_count.unreceived_orders_count > 0">
<view class="absolute left-30rpx -top-18rpx w-32rpx h-32rpx rounded-full bg-bgSubtitle text-white text-sm text-center leading-32rpx"> <view
class="absolute left-30rpx -top-18rpx w-32rpx h-32rpx rounded-full bg-bgSubtitle text-white text-sm text-center leading-32rpx">
{{ order_count.unreceived_orders_count }} {{ order_count.unreceived_orders_count }}
</view> </view>
</block> </block>
</view> </view>
<view>待收货</view> <view>待收货</view>
</view> </view>
<view class="flex items-center justify-center flex-col text-txBase text-md" @tap="$u.routeAuth('/pageA/user_order/index', { type: 3 })"> <view class="flex items-center justify-center flex-col text-txBase text-md"
@tap="$u.routeAuth('/pageA/user_order/index', { type: 3 })">
<view class="flex items-start relative"> <view class="flex items-start relative">
<image class="w-48rpx h-48rpx" src="@/static/images/user/evaluated.png" mode=""></image> <image class="w-48rpx h-48rpx" src="@/static/images/user/evaluated.png" mode=""></image>
<!-- <block v-if="isLogin"> <!-- <block v-if="isLogin">
@ -122,7 +119,8 @@
</view> </view>
<view>已完成</view> <view>已完成</view>
</view> </view>
<view @tap="$u.routeAuth('/pageA/after_sale/index')" class="flex items-center justify-center flex-col text-txBase text-md"> <view @tap="$u.routeAuth('/pageA/after_sale/index')"
class="flex items-center justify-center flex-col text-txBase text-md">
<view class="flex items-start relative"> <view class="flex items-start relative">
<image class="w-48rpx h-48rpx" src="@/static/images/user/sfter_sale.png" mode=""></image> <image class="w-48rpx h-48rpx" src="@/static/images/user/sfter_sale.png" mode=""></image>
<!-- <view class="absolute left-30rpx -top-18rpx w-32rpx h-32rpx rounded-full bg-bgSubtitle text-white text-sm text-center leading-32rpx">3</view> --> <!-- <view class="absolute left-30rpx -top-18rpx w-32rpx h-32rpx rounded-full bg-bgSubtitle text-white text-sm text-center leading-32rpx">3</view> -->
@ -146,42 +144,43 @@
<image class="w-58rpx h-58rpx" src="@/static/images/user/sign_in.png" mode=""></image> <image class="w-58rpx h-58rpx" src="@/static/images/user/sign_in.png" mode=""></image>
<view class="mt-5rpx">签到积分</view> <view class="mt-5rpx">签到积分</view>
</view> --> </view> -->
<view <view @tap="$u.route('/pages/web_view/index', { url: config.article_profit })"
@tap="$u.route('/pages/web_view/index', { url: config.article_profit })" class="my-base flex items-center justify-center flex-col text-md text-txBase">
class="my-base flex items-center justify-center flex-col text-md text-txBase"
>
<image class="w-58rpx h-58rpx" src="@/static/images/user/commission.png" mode=""></image> <image class="w-58rpx h-58rpx" src="@/static/images/user/commission.png" mode=""></image>
<view class="mt-5rpx">佣金说明</view> <view class="mt-5rpx">返利说明</view>
</view> </view>
<view @tap="$u.routeAuth('/pageA/collection/index')" class="my-base flex items-center justify-center flex-col text-md text-txBase"> <view @tap="$u.routeAuth('/pageA/collection/index')"
class="my-base flex items-center justify-center flex-col text-md text-txBase">
<image class="w-58rpx h-58rpx" src="@/static/images/user/my_collection.png" mode=""></image> <image class="w-58rpx h-58rpx" src="@/static/images/user/my_collection.png" mode=""></image>
<view class="mt-5rpx">我的收藏</view> <view class="mt-5rpx">我的收藏</view>
</view> </view>
<view @tap="$u.routeAuth('/pageA/address/index', { type: 1 })" class="my-base flex items-center justify-center flex-col text-md text-txBase"> <view @tap="$u.routeAuth('/pageA/address/index', { type: 1 })"
class="my-base flex items-center justify-center flex-col text-md text-txBase">
<image class="w-58rpx h-58rpx" src="@/static/images/user/address_management.png" mode=""></image> <image class="w-58rpx h-58rpx" src="@/static/images/user/address_management.png" mode=""></image>
<view class="mt-5rpx">地址管理</view> <view class="mt-5rpx">地址管理</view>
</view> </view>
<view @tap="$u.routeAuth('/pageA/reset_password/index')" class="my-base flex items-center justify-center flex-col text-md text-txBase"> <view @tap="$u.routeAuth('/pageA/reset_password/index')"
class="my-base flex items-center justify-center flex-col text-md text-txBase">
<image class="w-58rpx h-58rpx" src="@/static/images/user/password_modification.png" mode=""></image> <image class="w-58rpx h-58rpx" src="@/static/images/user/password_modification.png" mode=""></image>
<view class="mt-5rpx">密码修改</view> <view class="mt-5rpx">密码修改</view>
</view> </view>
<view @tap="$u.routeAuth('/pageA/coupon/coupon')" class="my-base flex items-center justify-center flex-col text-md text-txBase"> <view @tap="$u.routeAuth('/pageA/coupon/coupon')"
class="my-base flex items-center justify-center flex-col text-md text-txBase">
<image class="w-58rpx h-58rpx" src="@/static/images/user/my_coupon.png" mode=""></image> <image class="w-58rpx h-58rpx" src="@/static/images/user/my_coupon.png" mode=""></image>
<view class="mt-5rpx">优惠券</view> <view class="mt-5rpx">优惠券</view>
</view> </view>
<view @tap="$u.routeAuth('/pageA/history/index')" class="my-base flex items-center justify-center flex-col text-md text-txBase"> <view @tap="$u.routeAuth('/pageA/history/index')"
class="my-base flex items-center justify-center flex-col text-md text-txBase">
<image class="w-58rpx h-58rpx" src="@/static/images/user/browse_records.png" mode=""></image> <image class="w-58rpx h-58rpx" src="@/static/images/user/browse_records.png" mode=""></image>
<view class="mt-5rpx">浏览记录</view> <view class="mt-5rpx">浏览记录</view>
</view> </view>
<view @tap="$u.routeAuth('/pageA/fan_list/index')" class="my-base flex items-center justify-center flex-col text-md text-txBase"> <view @tap="$u.routeAuth('/pageA/fan_list/index')"
class="my-base flex items-center justify-center flex-col text-md text-txBase">
<image class="w-58rpx h-58rpx" src="@/static/images/user/fan_list.png" mode=""></image> <image class="w-58rpx h-58rpx" src="@/static/images/user/fan_list.png" mode=""></image>
<view class="mt-5rpx">粉丝列表</view> <view class="mt-5rpx">粉丝列表</view>
</view> </view>
<view <view @tap="$u.routeAuth('/pageA/invite_friends/index')" v-if="!isVerify"
@tap="$u.routeAuth('/pageA/invite_friends/index')" class="my-base flex items-center justify-center flex-col text-md text-txBase">
v-if="!isVerify"
class="my-base flex items-center justify-center flex-col text-md text-txBase"
>
<image class="w-58rpx h-58rpx" src="@/static/images/user/share_friends.png" mode=""></image> <image class="w-58rpx h-58rpx" src="@/static/images/user/share_friends.png" mode=""></image>
<view class="mt-5rpx">分享好友</view> <view class="mt-5rpx">分享好友</view>
</view> </view>
@ -190,11 +189,8 @@
<!-- --> <!-- -->
<view class="w-710rpx bg-white px-base m-auto rounded-xs mt-base"> <view class="w-710rpx bg-white px-base m-auto rounded-xs mt-base">
<!-- 销售端 --> <!-- 销售端 -->
<view <view @tap="$u.routeAuth('/pageB/index/index')"
@tap="$u.routeAuth('/pageB/index/index')" class="flex justify-between items-center py-base border-b border-txBorder" v-if="is_company">
class="flex justify-between items-center py-base border-b border-txBorder"
v-if="is_company"
>
<view class="flex items-center"> <view class="flex items-center">
<image class="w-32rpx h-32rpx" src="/static/images/user/my_account.png" mode=""></image> <image class="w-32rpx h-32rpx" src="/static/images/user/my_account.png" mode=""></image>
<view class="text-txBase text-lg ml-base">员工中心</view> <view class="text-txBase text-lg ml-base">员工中心</view>
@ -227,11 +223,9 @@
</button> </button>
</view> </view>
<!-- #endif --> <!-- #endif -->
<view <view @tap="$u.route('/pages/web_view/index', { url: config.about_us })"
@tap="$u.route('/pages/web_view/index', { url: config.about_us })"
class="flex justify-between items-center py-base border-t border-txBorder" class="flex justify-between items-center py-base border-t border-txBorder"
:class="isLogin ? 'border-b border-txBorder' : ''" :class="isLogin ? 'border-b border-txBorder' : ''">
>
<view class="flex items-center"> <view class="flex items-center">
<image class="w-32rpx h-32rpx" src="/static/images/user/about_us.png" mode=""></image> <image class="w-32rpx h-32rpx" src="/static/images/user/about_us.png" mode=""></image>
<view class="text-txBase text-lg ml-base">关于我们</view> <view class="text-txBase text-lg ml-base">关于我们</view>
@ -262,7 +256,8 @@
<u-icon color="#383838" name="arrow-right" size="32"></u-icon> <u-icon color="#383838" name="arrow-right" size="32"></u-icon>
</view> </view>
</view> --> </view> -->
<view v-if="isLogin" @tap="$u.routeAuth('/pages/feedback/index')" class="flex justify-between items-center py-base "> <view v-if="isLogin" @tap="$u.routeAuth('/pages/feedback/index')"
class="flex justify-between items-center py-base ">
<view class="flex items-center"> <view class="flex items-center">
<image class="w-32rpx h-32rpx" src="/static/images/user/yjfk-icon.png" mode=""></image> <image class="w-32rpx h-32rpx" src="/static/images/user/yjfk-icon.png" mode=""></image>
<view class="text-txBase text-lg ml-base">意见反馈</view> <view class="text-txBase text-lg ml-base">意见反馈</view>
@ -292,28 +287,23 @@
<view @tap="$u.route('/pages/web_view/index', { url: config.user_hide_agreement })">隐私协议</view> <view @tap="$u.route('/pages/web_view/index', { url: config.user_hide_agreement })">隐私协议</view>
</view> </view>
<!-- 客服电话 --> <!-- 客服电话 -->
<view @tap="getCall('4006006631')" class="text-center text-txBase text-txBase my-10rpx">客服电话:4006006631</view> <view @tap="getCall(tipsValue.service_phone)" v-if="tipsValue.service_phone" class="text-center text-txBase text-txBase my-10rpx">: {{tipsValue.service_phone}}</view>
<view v-if="tipsValue.wechat" class="text-center text-txBase text-txBase my-10rpx">: {{tipsValue.wechat}}</view>
<!-- #ifdef APP-PLUS --> <!-- #ifdef APP-PLUS -->
<view class="text-center text-md text-txBase">版本号:{{ version }}</view> <view class="text-center text-md text-txBase">版本号:{{ version }}</view>
<!-- #endif --> <!-- #endif -->
</view> </view>
<!-- 提示框 --> <!-- 提示框 -->
<cu-modal <cu-modal :title="modelData.title" v-model="showModel" :content="modelData.content" show-cancel-button async-close
:title="modelData.title" @confirm="onConfirm"></cu-modal>
v-model="showModel"
:content="modelData.content"
show-cancel-button
async-close
@confirm="onConfirm"
></cu-modal>
</view> </view>
</template> </template>
<script> <script>
import uniCopy from '@/utils/uni-copy'; import uniCopy from '@/utils/uni-copy';
import CartMixin from '@/pages/shop_cart/mixin'; import CartMixin from '@/pages/shop_cart/mixin';
export default { export default {
mixins: [CartMixin], mixins: [CartMixin],
data() { data() {
return { return {
@ -326,6 +316,7 @@ export default {
}, },
showModel: false, showModel: false,
scrollNumber: 0, scrollNumber: 0,
tipsValue: {},
// service: process.env.VUE_APP_SERVICE, // service: process.env.VUE_APP_SERVICE,
version: process.env.VUE_APP_VERSION, version: process.env.VUE_APP_VERSION,
}; };
@ -334,7 +325,7 @@ export default {
this.scrollNumber = e.scrollTop; this.scrollNumber = e.scrollTop;
}, },
computed: { computed: {
service(){ service() {
const clien = process.env.VUE_APP_SERVICE const clien = process.env.VUE_APP_SERVICE
const user = this.$store.getters.user ?? {} const user = this.$store.getters.user ?? {}
const phone = user?.phone const phone = user?.phone
@ -365,8 +356,8 @@ export default {
return this.$store.getters.order_count ?? {}; return this.$store.getters.order_count ?? {};
}, },
// //
is_company(){ is_company() {
return this.user?.is_company??false return this.user?.is_company ?? false
} }
}, },
onShow() { onShow() {
@ -376,8 +367,19 @@ export default {
onLoad() { onLoad() {
this.getNotmunber(); this.getNotmunber();
this.getMunber(); this.getMunber();
this.getTips()
}, },
methods: { methods: {
async getTips() {
let {
values
} = await this.$api.get('/v1/configs-custom', {
params: {
keys: ['service_phone', 'wechat']
}
})
this.tipsValue=values
},
// //
getCall(val) { getCall(val) {
uni.makePhoneCall({ uni.makePhoneCall({
@ -445,14 +447,15 @@ export default {
}); });
}, },
}, },
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.border-t{ .border-t {
border-top: 1rpx solid #E5E5E5; border-top: 1rpx solid #E5E5E5;
} }
.content-btn{
.content-btn {
padding: 0 !important; padding: 0 !important;
margin: 0; margin: 0;
box-sizing: border-box; box-sizing: border-box;
@ -463,48 +466,52 @@ export default {
margin-right: initial; margin-right: initial;
appearance: none; appearance: none;
} }
.mt {
.mt {
margin-top: 20rpx !important; margin-top: 20rpx !important;
} }
.status_bar {
.status_bar {
height: var(--status-bar-height); height: var(--status-bar-height);
width: 100%; width: 100%;
} }
.my_bg { .my_bg {
/* #ifdef MP-WEIXIN */ /* #ifdef MP-WEIXIN */
padding-top: 90rpx; padding-top: 90rpx;
/* #endif */ /* #endif */
background: linear-gradient(0deg, rgba(241, 239, 242, 1) 0%, rgba(188, 230, 213, 1) 100%, rgba(121, 179, 156, 1) 100%, rgba(211, 237, 228, 1) 100%); background: linear-gradient(0deg, rgba(241, 239, 242, 1) 0%, rgba(188, 230, 213, 1) 100%, rgba(121, 179, 156, 1) 100%, rgba(211, 237, 228, 1) 100%);
} }
.my_bg_cont { .my_bg_cont {
width: 710rpx; width: 710rpx;
height: 273rpx; height: 273rpx;
margin: 0 auto; margin: 0 auto;
background-image: url('/static/images/user/my_bg.png'); background-image: url('/static/images/user/my_bg.png');
background-size: 100%; background-size: 100%;
} }
.badge { .badge {
@apply bg-badge; @apply bg-badge;
} }
.bg_advertisement { .bg_advertisement {
width: 710rpx; width: 710rpx;
height: 158rpx; height: 158rpx;
margin: 0 auto; margin: 0 auto;
// background-image: url('../../static/images/user/user_advertisement.png'); // background-image: url('../../static/images/user/user_advertisement.png');
background-size: 100% 100%; background-size: 100% 100%;
} }
.bg_advertisements {
.bg_advertisements {
width: 710rpx; width: 710rpx;
height: 158rpx; height: 158rpx;
margin: 0 auto; margin: 0 auto;
// background-image: url('../../static/images/user/become_munber.png'); // background-image: url('../../static/images/user/become_munber.png');
background-size: 100% 100%; background-size: 100% 100%;
} }
.user_btn {
.user_btn {
width: 145rpx; width: 145rpx;
height: 53rpx; height: 53rpx;
text-align: center; text-align: center;
@ -513,5 +520,5 @@ export default {
box-shadow: 0px 2rpx 4rpx rgba(0, 0, 0, 0.5); box-shadow: 0px 2rpx 4rpx rgba(0, 0, 0, 0.5);
border-radius: 90rpx; border-radius: 90rpx;
@apply text-md text-txBase; @apply text-md text-txBase;
} }
</style> </style>