|
|
@@ -2,7 +2,7 @@
|
|
|
<view class="container">
|
|
|
<up-navbar
|
|
|
class="inde-nav-bar"
|
|
|
- bgColor="rgba(255,255,255,0)"
|
|
|
+ :bgColor="navBgColor"
|
|
|
>
|
|
|
<template #left>
|
|
|
<view></view>
|
|
|
@@ -24,7 +24,7 @@
|
|
|
<view class="user-detail">
|
|
|
<view class="name-vip" v-if="appStore.isLogin">
|
|
|
<text class="name">{{ appStore.$userInfo?.nickname }}</text>
|
|
|
- <image class="vip-tag" v-if="appStore.$userInfo?.svip" mode="widthFix" src="@/static/images/setting/vip.png">VIP</image>
|
|
|
+ <image class="vip-tag" v-if="appStore.$userInfo?.svip" mode="widthFix" :src="HTTP_REQUEST_URL_IMG+'setting/vip.png'">VIP</image>
|
|
|
</view>
|
|
|
<view class="name-vip" v-else @click="navigateTo('/pages/users/login/index')">
|
|
|
<text class="name">未登录</text>
|
|
|
@@ -44,10 +44,10 @@
|
|
|
<image class="vipBG" :src="HTTP_REQUEST_URL_IMG+'vipBG.png'" mode="scaleToFill"></image>
|
|
|
<view class="vip-text">
|
|
|
<view class="title">
|
|
|
- <image class="vipIcon" src="@/static/images/setting/vipIcon.png" mode="widthFix"></image>
|
|
|
+ <image class="vipIcon" :src="HTTP_REQUEST_URL_IMG+'setting/vipIcon.png'" mode="widthFix"></image>
|
|
|
<text>开通<text class="bigText">会员</text>享受更多<text class="bigText">权益</text></text>
|
|
|
</view>
|
|
|
- <button class="open-vip" @click="goVIP">去开通<image class="bofang" src="@/static/images/setting/bofang.png" mode="widthFix"></image></button>
|
|
|
+ <button class="open-vip" @click="goVIP">去开通<image class="bofang" :src="HTTP_REQUEST_URL_IMG+'setting/bofang.png'" mode="widthFix"></image></button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -153,7 +153,7 @@
|
|
|
|
|
|
<script setup>
|
|
|
import { ref, reactive, watch } from 'vue'
|
|
|
-import { onLoad, onShow, onReachBottom } from "@dcloudio/uni-app";
|
|
|
+import { onLoad, onShow, onPageScroll } from "@dcloudio/uni-app";
|
|
|
import UniIcons from "../../uni_modules/uni-icons/components/uni-icons/uni-icons.vue";
|
|
|
import { HTTP_REQUEST_URL_IMG } from "@/config/app";
|
|
|
import { isHttpsImage } from "@/utils/util";
|
|
|
@@ -167,6 +167,7 @@ const appStore = useAppStore();
|
|
|
const { Toast } = useToast();
|
|
|
const isLogin = appStore.isLogin;
|
|
|
|
|
|
+const navBgColor = ref('rgba(255,255,255,0)');
|
|
|
// 钱包信息
|
|
|
const wallet = ref({
|
|
|
balance: appStore.userInfo?.nowMoney || '0.00',
|
|
|
@@ -179,10 +180,10 @@ const wallet = ref({
|
|
|
|
|
|
// 主要功能列表
|
|
|
const mainFunctions = ref([
|
|
|
- { src: '/static/images/setting/mailiao.png', name: '买料',pageUrl:'/pages/users/vault/rechargeGold' },
|
|
|
- { src: '/static/images/setting/mailiao2.png', name: '卖料',pageUrl:'/pages/users/vault/storeMetal/index' },
|
|
|
- { src: '/static/images/setting/cunliao.png', name: '存料',pageUrl:'/pages/users/vault/storeMetal/goldBullionStock' },
|
|
|
- { src: '/static/images/setting/tiliao.png', name: '提料',pageUrl:'/pages/users/vault/storeMetal/metalExchange' }
|
|
|
+ { src: `${HTTP_REQUEST_URL_IMG}setting/mailiao.png`, name: '买料',pageUrl:'/pages/users/vault/rechargeGold' },
|
|
|
+ { src: `${HTTP_REQUEST_URL_IMG}setting/mailiao2.png`, name: '卖料',pageUrl:'/pages/users/vault/storeMetal/index' },
|
|
|
+ { src: `${HTTP_REQUEST_URL_IMG}setting/cunliao.png`, name: '存料',pageUrl:'/pages/users/vault/storeMetal/goldBullionStock' },
|
|
|
+ { src: `${HTTP_REQUEST_URL_IMG}setting/tiliao.png`, name: '提料',pageUrl:'/pages/users/vault/storeMetal/metalExchange' }
|
|
|
])
|
|
|
|
|
|
// 最近访问的商家
|
|
|
@@ -190,24 +191,24 @@ const recentStores = ref([])
|
|
|
|
|
|
// 订单状态
|
|
|
const orderStatus = ref([
|
|
|
- { src: '/static/images/setting/daifukuan.png', name: '待付款',id:0 },
|
|
|
- { src: '/static/images/setting/daifahuo.png', name: '待发货',id:1 },
|
|
|
- { src: '/static/images/setting/daishouhuo.png', name: '待收货',id:2 },
|
|
|
- { src: '/static/images/setting/tuikuan.png', name: '退款/换货' ,id:5},
|
|
|
- { src: '/static/images/setting/yiwancheng.png', name: '已完成',id:4 },
|
|
|
+ { src: `${HTTP_REQUEST_URL_IMG}setting/daifukuan.png`, name: '待付款',id:0 },
|
|
|
+ { src: `${HTTP_REQUEST_URL_IMG}setting/daifahuo.png`, name: '待发货',id:1 },
|
|
|
+ { src: `${HTTP_REQUEST_URL_IMG}setting/daishouhuo.png`, name: '待收货',id:2 },
|
|
|
+ { src: `${HTTP_REQUEST_URL_IMG}setting/tuikuan.png`, name: '退款/换货' ,id:5},
|
|
|
+ { src: `${HTTP_REQUEST_URL_IMG}setting/yiwancheng.png`, name: '已完成',id:4 },
|
|
|
])
|
|
|
|
|
|
// 常用功能
|
|
|
const commonFunctions = ref([
|
|
|
- { src: '/static/images/setting/zuji.png', name: '浏览足迹',pageUrl:'/pages/users/browsing_history/index',show:true },
|
|
|
- { src: '/static/images/setting/shoucang.png', name: '我的收藏',pageUrl:'/pages/users/user_goods_collection/index' ,show:true},
|
|
|
- { src: '/static/images/setting/dingwei.png', name: '收货地址',pageUrl:'/pages/users/user_address_list/index' ,show:true},
|
|
|
- { src: '/static/images/setting/dianpu.png', name: '联系商家',pageUrl: '/pages/users/my_merchant/index' ,show:appStore.merchantId?true:false},
|
|
|
- { src: '/static/images/setting/dianpu.png', name: '门店主页',pageUrl: '/pages/merchantCenter/index' ,show:appStore.userInfo?.merchant?.id?true:false},
|
|
|
- { src: '/static/images/setting/yijianjianyi.png', name: '意见建议' ,show:true},
|
|
|
- { src: '/static/images/setting/xiazaiapp.png', name: '下载APP',show:true },
|
|
|
- { src: '/static/images/setting/lianxikefu.png', name: '平台客服' ,show:true},
|
|
|
- // { src: '/static/images/setting/lianxikefu.png', name: '资产明细' ,pageUrl:'/pages/users/user_asset/asset_info/asset_info',show:true}
|
|
|
+ { src: `${HTTP_REQUEST_URL_IMG}setting/zuji.png`, name: '浏览足迹',pageUrl:'/pages/users/browsing_history/index',show:true },
|
|
|
+ { src: `${HTTP_REQUEST_URL_IMG}setting/shoucang.png`, name: '我的收藏',pageUrl:'/pages/users/user_goods_collection/index' ,show:true},
|
|
|
+ { src: `${HTTP_REQUEST_URL_IMG}setting/dingwei.png`, name: '收货地址',pageUrl:'/pages/users/user_address_list/index' ,show:true},
|
|
|
+ { src: `${HTTP_REQUEST_URL_IMG}setting/dianpu.png`, name: '联系商家',pageUrl: '/pages/users/my_merchant/index' ,show:appStore.merchantId?true:false},
|
|
|
+ { src: `${HTTP_REQUEST_URL_IMG}setting/dianpu.png`, name: '门店主页',pageUrl: '/pages/merchantCenter/index' ,show:appStore.userInfo.merchant.id?true:false},
|
|
|
+ // { src: `${HTTP_REQUEST_URL_IMG}setting/yijianjianyi.png`, name: '意见建议' ,show:true},
|
|
|
+ { src: `${HTTP_REQUEST_URL_IMG}setting/xiazaiapp.png`, name: '下载APP',show:true },
|
|
|
+ { src: `${HTTP_REQUEST_URL_IMG}setting/lianxikefu.png`, name: '平台客服' ,show:true},
|
|
|
+ // { src: \`${HTTP_REQUEST_URL_IMG}setting/lianxikefu.png', name: '资产明细' ,pageUrl:'/pages/users/user_asset/asset_info/asset_info',show:true}
|
|
|
])
|
|
|
const params = ref({
|
|
|
page: 1,
|
|
|
@@ -220,6 +221,13 @@ onShow(() => {
|
|
|
fetchMetalBalance()
|
|
|
getHistoryList()
|
|
|
})
|
|
|
+onPageScroll((e) => {
|
|
|
+ if(e.scrollTop > 0){
|
|
|
+ navBgColor.value ='#ffe079';
|
|
|
+ }else{
|
|
|
+ navBgColor.value ='rgba(252,255,255,0)';
|
|
|
+ }
|
|
|
+})
|
|
|
|
|
|
const wxConfig = ref({});
|
|
|
const tradeList = ref([]);
|
|
|
@@ -233,17 +241,17 @@ watch(
|
|
|
tradeList.value = [list[0],list[1]];
|
|
|
useList.value = [{
|
|
|
...list[2],
|
|
|
- src: '/static/images/setting/mailiao.png'
|
|
|
+ src: `${HTTP_REQUEST_URL_IMG}setting/mailiao.png`
|
|
|
},{
|
|
|
...list[3],
|
|
|
- src: '/static/images/setting/mailiao2.png'
|
|
|
+ src: `${HTTP_REQUEST_URL_IMG}setting/mailiao2.png`
|
|
|
},{
|
|
|
...list[4],
|
|
|
- src: '/static/images/setting/cunliao.png',
|
|
|
+ src: `${HTTP_REQUEST_URL_IMG}setting/cunliao.png`,
|
|
|
iconName: '存料'
|
|
|
},{
|
|
|
...list[5],
|
|
|
- src: '/static/images/setting/tiliao.png'
|
|
|
+ src: `${HTTP_REQUEST_URL_IMG}setting/tiliao.png`
|
|
|
}]
|
|
|
console.log(tradeList.value)
|
|
|
},
|