Browse Source

跳转agent

dev_des
1054425342@qq.com 2 months ago
parent
commit
12dc7404cd
  1. 6
      components/ActivateAgentPopup.vue
  2. 15
      components/DynamicIsland.vue
  3. 7
      components/ProductSection.vue
  4. 10
      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

6
components/ActivateAgentPopup.vue

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

15
components/DynamicIsland.vue

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

7
components/ProductSection.vue

@ -25,7 +25,7 @@
<!-- 图片蒙层 -->
<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
class="avatar"
@ -179,6 +179,11 @@ export default {
},
toAgent(e){
uni.navigateTo({
url: "/pages/agent/index?id="+e.agent.agentId
});
},
//
showImg(img) {

10
pages.json

@ -66,7 +66,15 @@
"navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black"
}
}
},
{
"path": "pages/agent/index",
"style": {
"navigationBarTitleText": "DES智能体",
"navigationBarBackgroundColor": "#ffffff",
"navigationBarTextStyle": "black"
}
}
],
"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") &&
JSON.parse(uni.getStorageSync("userInfo"))) ||
this.$store.state.user.userInfo || {};
if (this.userInfo && this.userInfo.token) {
if (this.userInfo && this.userInfo.id) {
this.getListIp();
this.getOrderChildList();
this.getUserInfo();

5
pages/index/timeShopBank.vue

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

6
pages/stratIndex.vue

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

11
subPackages/afterSale/add.vue

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

8
subPackages/equityGoods/detail.vue

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

13
subPackages/memorialAlbum/detail.vue

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

6
subPackages/orderQy/detail.vue

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

3
subPackages/other/evita.vue

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

Loading…
Cancel
Save