Browse Source

跳转agent

dev_des
1054425342@qq.com 2 months ago
parent
commit
12dc7404cd
  1. 4
      components/ActivateAgentPopup.vue
  2. 15
      components/DynamicIsland.vue
  3. 7
      components/ProductSection.vue
  4. 8
      pages.json
  5. 8
      pages/agent/index.vue
  6. 2
      pages/index/iSoul.vue
  7. 5
      pages/index/timeShopBank.vue
  8. 6
      pages/stratIndex.vue
  9. 11
      subPackages/afterSale/add.vue
  10. 8
      subPackages/equityGoods/detail.vue
  11. 13
      subPackages/memorialAlbum/detail.vue
  12. 6
      subPackages/orderQy/detail.vue
  13. 3
      subPackages/other/evita.vue

4
components/ActivateAgentPopup.vue

@ -78,8 +78,8 @@ export default {
if (agent.status ==1) { if (agent.status ==1) {
// //
uni.navigateTo({ uni.navigateTo({
url:"/subPackages/equityGoods/detail?id="+agent.vos[0].benefitPackageId url: "/pages/agent/index?id="+agent.agentId
}) });
} else { } else {
uni.navigateTo({ uni.navigateTo({
url:"/subPackages/equityGoods/detail?id="+agent.vos[0].benefitPackageId url:"/subPackages/equityGoods/detail?id="+agent.vos[0].benefitPackageId

15
components/DynamicIsland.vue

@ -16,7 +16,7 @@
<view class="right-section"> <view class="right-section">
<view class="avatar-container" @click="toWebView"> <view class="avatar-container" @click="toWebView">
<image class="avatar" <image class="avatar"
src="https://epic.js-dyyj.com/uploads/20250728/7d9ba1fe109643681396cb03f60f3218.png" src="https://epic.js-dyyj.com/uploads/20250826/92b0a21e9125fc21ca294a408bf3508f.png"
mode="aspectFill"></image> mode="aspectFill"></image>
</view> </view>
<view class="" style="display: flex;flex-direction: column;justify-content: space-between;height: 100%;"> <view class="" style="display: flex;flex-direction: column;justify-content: space-between;height: 100%;">
@ -36,7 +36,7 @@
<!-- 左侧欢迎信息 --> <!-- 左侧欢迎信息 -->
<view class="left-section"> <view class="left-section">
<view class="welcome-message"> <view class="welcome-message">
<view class="welcome-text">Hi!{{ <view class="welcome-text">Hi! {{
userInfo && userInfo.token ? userInfo.nickname : "用户" userInfo && userInfo.token ? userInfo.nickname : "用户"
}}欢迎回来~</view> }}欢迎回来~</view>
</view> </view>
@ -46,14 +46,14 @@
<view class="" style="display: flex;align-items: flex-end;justify-content: space-between;"> <view class="" style="display: flex;align-items: flex-end;justify-content: space-between;">
<view class="" @click="toOrder"> <view class="" @click="toOrder">
<view class="stats-info"> <view class="stats-info">
<text class="stats-number">2</text> <text class="stats-number">{{userInfo&&userInfo.unUseOrderQuantity||0}}</text>
<text class="stats-unit"></text> <text class="stats-unit"></text>
</view> </view>
<view class="stats-label">数字权益行</view> <view class="stats-label">数字权益行</view>
</view> </view>
<div @click="toTime"> <div @click="toTime">
<view class="stats-info" > <view class="stats-info" >
<text class="stats-number">2</text> <text class="stats-number">{{userInfo&&userInfo.ipQuantity||0}}</text>
<text class="stats-unit"></text> <text class="stats-unit"></text>
</view> </view>
<view class="stats-label">数字资产行</view> <view class="stats-label">数字资产行</view>
@ -98,7 +98,7 @@
</view> </view>
<view class="time-reward-label" <view class="time-reward-label"
style="margin-top: 15rpx;font-weight: bold;font-size: 26rpx;"> style="margin-top: 15rpx;font-weight: bold;font-size: 26rpx;">
积分:999<text 积分:0<text
style="color: #999999;font-size: 22rpx;margin-left: 10rpx;">积分获取规则</text> style="color: #999999;font-size: 22rpx;margin-left: 10rpx;">积分获取规则</text>
</view> </view>
</view> </view>
@ -125,7 +125,8 @@
</view> </view>
</view> </view>
<image class="avatar" <image class="avatar"
src="https://epic.js-dyyj.com/uploads/20250728/7d9ba1fe109643681396cb03f60f3218.png" @click="toWebView"
src="https://epic.js-dyyj.com/uploads/20250826/92b0a21e9125fc21ca294a408bf3508f.png"
mode="aspectFill"></image> mode="aspectFill"></image>
</view> </view>
</template> </template>
@ -136,7 +137,7 @@
<view v-else class="compact-content"> <view v-else class="compact-content">
<text class="compact-name">{{ getCompactName() }}</text> <text class="compact-name">{{ getCompactName() }}</text>
<image class="compact-avatar" <image class="compact-avatar"
src="https://epic.js-dyyj.com/uploads/20250728/7d9ba1fe109643681396cb03f60f3218.png" src="https://epic.js-dyyj.com/uploads/20250826/92b0a21e9125fc21ca294a408bf3508f.png"
mode="aspectFill"></image> mode="aspectFill"></image>
</view> </view>
</view> </view>

7
components/ProductSection.vue

@ -25,7 +25,7 @@
<!-- 图片蒙层 --> <!-- 图片蒙层 -->
<view class="image-overlay" v-if="!isFeel"></view> <view class="image-overlay" v-if="!isFeel"></view>
<!-- 智能体标签 --> <!-- 智能体标签 -->
<view class="content-box-info" v-if="!isFeel&&item.agent"> <view class="content-box-info" v-if="!isFeel&&item.agent" @click.stop="toAgent(item)">
<!-- 头像 --> <!-- 头像 -->
<image <image
class="avatar" class="avatar"
@ -178,6 +178,11 @@ export default {
}); });
},
toAgent(e){
uni.navigateTo({
url: "/pages/agent/index?id="+e.agent.agentId
});
}, },
// //

8
pages.json

@ -66,6 +66,14 @@
"navigationBarBackgroundColor": "#ffffff", "navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black" "navigationBarTextStyle": "black"
} }
},
{
"path": "pages/agent/index",
"style": {
"navigationBarTitleText": "DES智能体",
"navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black"
}
} }
], ],
"subPackages": [ "subPackages": [

8
pages/agent/index.vue

@ -0,0 +1,8 @@
<template>
</template>
<script>
</script>
<style>
</style>

2
pages/index/iSoul.vue

@ -323,7 +323,7 @@
(uni.getStorageSync("userInfo") && (uni.getStorageSync("userInfo") &&
JSON.parse(uni.getStorageSync("userInfo"))) || JSON.parse(uni.getStorageSync("userInfo"))) ||
this.$store.state.user.userInfo || {}; this.$store.state.user.userInfo || {};
if (this.userInfo && this.userInfo.token) { if (this.userInfo && this.userInfo.id) {
this.getListIp(); this.getListIp();
this.getOrderChildList(); this.getOrderChildList();
this.getUserInfo(); this.getUserInfo();

5
pages/index/timeShopBank.vue

@ -52,8 +52,9 @@
</view> </view>
<!-- 关注tab内容 --> <!-- 关注tab内容 -->
<view v-if="currentTab === 1" class="follow-content"> <view v-if="currentTab === 1" class="follow-content recommend-content">
<FollowTab /> <!-- <FollowTab /> -->
<text class="coming-soon">关注功能开发中...</text>
</view> </view>
<!-- 推荐tab内容 --> <!-- 推荐tab内容 -->

6
pages/stratIndex.vue

@ -1,8 +1,8 @@
<template> <template>
<view class="bg" @click="goIndex()"> <view class="bg" @click="goIndex()">
<image <image
style="height: 36rpx;position: absolute;top: 250rpx;z-index: 999;width: 408rpx;right: 171rpx;" style="height: 60rpx;position: absolute;top: 250rpx;z-index: 999;width: 408rpx;right: 171rpx;"
:src="showImg('/uploads/20250825/7ad541ebe1b7e1f82f78362978f627ff.png')" :src="showImg('/uploads/20250826/bef737e7da8fc72d1e275f832fe33339.png')"
></image> ></image>
<image :src="showImg(screenPng)" class="img"></image> <image :src="showImg(screenPng)" class="img"></image>
<image src="https://static.ticket.sz-trip.com/epicSoul/startBtn.png" mode="widthFix" class="btn"></image> <image src="https://static.ticket.sz-trip.com/epicSoul/startBtn.png" mode="widthFix" class="btn"></image>
@ -32,7 +32,7 @@
position: 5, position: 5,
}, '/api/adv/getAdv').then(res => { }, '/api/adv/getAdv').then(res => {
if(res.data && res.data.length>0) { if(res.data && res.data.length>0) {
this.screenPng = '/uploads/20250825/4209fcea23eb239e1105cc127ef5f383.gif' this.screenPng = '/uploads/20250827/7e760074b1081141e6ffac1351308ae8.gif'
// setTimeout(() => { // setTimeout(() => {
// this.goIndex() // this.goIndex()

11
subPackages/afterSale/add.vue

@ -114,7 +114,7 @@
v-if="afterSaleForm.type === type.text" v-if="afterSaleForm.type === type.text"
type="checkmarkempty" type="checkmarkempty"
size="16" size="16"
color="#ff4757" color="#00FFFF"
/> />
</view> </view>
</view> </view>
@ -145,7 +145,7 @@
v-if="afterSaleForm.reason === reason.text" v-if="afterSaleForm.reason === reason.text"
type="checkmarkempty" type="checkmarkempty"
size="16" size="16"
color="#ff4757" color="#00FFFF"
/> />
</view> </view>
</view> </view>
@ -437,7 +437,7 @@ export default {
} }
.required { .required {
color: #ff4757; color: #00FFFF;
font-weight: bold; font-weight: bold;
} }
@ -499,12 +499,13 @@ export default {
padding-bottom: calc(20rpx + env(safe-area-inset-bottom)); padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
border-top: 1rpx solid #eee; border-top: 1rpx solid #eee;
box-shadow: 0 -2rpx 12rpx rgba(0, 0, 0, 0.08); box-shadow: 0 -2rpx 12rpx rgba(0, 0, 0, 0.08);
z-index: 999;
} }
.submit-btn { .submit-btn {
width: 100%; width: 100%;
height: 80rpx; height: 80rpx;
background-color: #ff4757; background-color: #00FFFF;
color: #fff; color: #fff;
border: none; border: none;
border-radius: 12rpx; border-radius: 12rpx;
@ -575,7 +576,7 @@ export default {
.confirm-btn { .confirm-btn {
width: 100%; width: 100%;
height: 80rpx; height: 80rpx;
background-color: #ff4757; background-color: #00FFFF;
color: #fff; color: #fff;
border: none; border: none;
border-radius: 12rpx; border-radius: 12rpx;

8
subPackages/equityGoods/detail.vue

@ -29,7 +29,7 @@
</view> </view>
<!-- 页码指示器 --> <!-- 页码指示器 -->
<view class="page-indicator" v-if="goodsInfo.agent"> <view class="page-indicator" v-if="goodsInfo.agent" @click.stop="toAgent(goodsInfo)">
<image <image
class="avatar" class="avatar"
:src="showImg(goodsInfo.agent.headImage)" :src="showImg(goodsInfo.agent.headImage)"
@ -312,7 +312,11 @@ export default {
} }
}); });
}, },
toAgent(e){
uni.navigateTo({
url: "/pages/agent/index?id="+e.agent.agentId
});
},
// Tab // Tab
generateTabList() { generateTabList() {
this.tabList = []; this.tabList = [];

13
subPackages/memorialAlbum/detail.vue

@ -122,6 +122,7 @@ export default {
detailInfo: {}, detailInfo: {},
topBanner: [], topBanner: [],
userInfo: null, userInfo: null,
orderChildId:''
}; };
}, },
onLoad(options) { onLoad(options) {
@ -131,6 +132,7 @@ export default {
} }
// //
if (options.id) { if (options.id) {
this.orderChildId = options.id
this.loadDetailInfo(options.id); this.loadDetailInfo(options.id);
} }
}, },
@ -182,12 +184,18 @@ export default {
handleDownload() { handleDownload() {
// URL // URL
const imageUrl = this.topBanner[0]; const imageUrl = this.topBanner[0];
console.log(imageUrl);
// //
this.Post(
{
orderChildId: this.orderChildId,
},
`/framework/order/download`,
"DES"
).then((res) => {
});
uni.downloadFile({ uni.downloadFile({
url: imageUrl, url: imageUrl,
success: (res) => { success: (res) => {
console.log(res);
if (res.statusCode === 200) { if (res.statusCode === 200) {
// //
uni.saveImageToPhotosAlbum({ uni.saveImageToPhotosAlbum({
@ -213,7 +221,6 @@ export default {
} }
}, },
fail: (err) => { fail: (err) => {
console.log(err);
uni.showToast({ uni.showToast({
title: "下载失败", title: "下载失败",
icon: "none", icon: "none",

6
subPackages/orderQy/detail.vue

@ -176,18 +176,18 @@
<view class="bottom-placeholder"></view> <view class="bottom-placeholder"></view>
<!-- 底部操作 --> <!-- 底部操作 -->
<view class="bottom-actions"> <view class="bottom-actions" v-if="false">
<!-- <button class="action-btn-bottom primary" @click="handleMainAction"> <!-- <button class="action-btn-bottom primary" @click="handleMainAction">
{{ getMainActionText() }} {{ getMainActionText() }}
</button> --> </button> -->
<!-- 售后按钮 --> <!-- 售后按钮 -->
<button <!-- <button
class="action-btn-bottom after-sale-btn" class="action-btn-bottom after-sale-btn"
@click="handleShowAfterSalePopup" @click="handleShowAfterSalePopup"
v-if="orderDetail.status !== 0" v-if="orderDetail.status !== 0"
> >
售后 售后
</button> </button> -->
</view> </view>
<!-- 权益码弹窗 --> <!-- 权益码弹窗 -->

3
subPackages/other/evita.vue

@ -24,8 +24,7 @@
methods:{ methods:{
toWebView() { toWebView() {
uni.navigateTo({ uni.navigateTo({
url: "/subPackages/webPage/webPage?url=" + url: "/pages/agent/index"
"https://des.js-dyyj.com/dist/#/",
}); });
}, },

Loading…
Cancel
Save