Compare commits

...

7 Commits

Author SHA1 Message Date
de1c110bab chore:合并了文章列表改为新闻 2026-01-22 18:24:36 +08:00
bfad975822 chore:还原站点地址 2026-01-22 18:09:15 +08:00
23e3086074 chore:删除了文章列表返回按钮 2026-01-22 17:50:59 +08:00
8f43633c13 chore:删除了客服按钮 2026-01-22 16:49:52 +08:00
baf9e56c82 chore:底部加了标签栏 2026-01-22 16:46:48 +08:00
Zhukj
13029c39db choer:修改文章列表为新闻 2026-01-22 15:31:15 +08:00
814931de80 chore:加了2812的站点id 2026-01-22 11:32:27 +08:00
8 changed files with 1375 additions and 1366 deletions

View File

@@ -30,6 +30,10 @@ const localDevConfig = ({
uniacid: 2777, uniacid: 2777,
domain: 'https://xcx.aigc-quickapp.com/', domain: 'https://xcx.aigc-quickapp.com/',
}, },
'2812': { // IVD数商模式
uniacid: 2812,
domain: 'https://xcx6.aigc-quickapp.com/',
},
'1': { // 开发平台 '1': { // 开发平台
uniacid: 1, uniacid: 1,
domain: 'https://dev.aigc-quickapp.com', domain: 'https://dev.aigc-quickapp.com',
@@ -38,6 +42,6 @@ const localDevConfig = ({
uniacid: 1, uniacid: 1,
domain: 'https://test.aigc-quickapp.com', domain: 'https://test.aigc-quickapp.com',
}, },
})['2811']; // 选择要使用的环境配置 })['2812']; // 选择要使用的环境配置
export default localDevConfig; export default localDevConfig;

View File

@@ -130,7 +130,9 @@ export default {
*/ */
redirectTo(to, param = {}, mode = 'navigateTo') { redirectTo(to, param = {}, mode = 'navigateTo') {
let url = to; let url = to;
if (to.indexOf('/article/list') !== -1) {
mode = 'reLaunch';
}
// 替换url中的前缀 // 替换url中的前缀
console.log('页面跳转 redirectTo', to, param, mode); console.log('页面跳转 redirectTo', to, param, mode);
url = adaptSubpackageUrl(url); url = adaptSubpackageUrl(url);

View File

@@ -17,24 +17,6 @@
<text class="ai-icon" v-if="!aiAgentimg">🤖</text> <text class="ai-icon" v-if="!aiAgentimg">🤖</text>
</view> </view>
<!-- 微信小程序客服按钮 -->
<!-- #ifdef MP-WEIXIN -->
<button class="btn-item common-bg" hoverClass="none" openType="contact" sessionFrom="weapp" showMessageCard="true"
:style="[{ backgroundImage: kefuimg ? `url(${kefuimg})` : '', backgroundSize: '100% 100%' }, customButtonStyle]">
<text class="icox icox-kefu" v-if="!kefuimg"></text>
</button>
<!-- #endif -->
<!-- 普通客服仅当未启用 AI 时显示 -->
<!-- #ifdef H5 -->
<template v-if="fixBtnShow">
<button class="btn-item common-bg" hoverClass="none" @click="openCustomerSelectPopup"
:style="[{ backgroundImage: kefuimg ? `url(${kefuimg})` : '', backgroundSize: '100% 100%' }, customButtonStyle]">
<text class="icox icox-kefu" v-if="!kefuimg"></text>
</button>
</template>
<!-- #endif -->
<!-- 电话按钮始终显示 --> <!-- 电话按钮始终显示 -->
<view v-if="fixBtnShow" class="btn-item common-bg" @click="call()" <view v-if="fixBtnShow" class="btn-item common-bg" @click="call()"
:style="[{ backgroundImage: phoneimg ? `url(${phoneimg})` : '', backgroundSize: '100% 100%' }, customButtonStyle]"> :style="[{ backgroundImage: phoneimg ? `url(${phoneimg})` : '', backgroundSize: '100% 100%' }, customButtonStyle]">

View File

@@ -1,4 +1,4 @@
export const lang = { export const lang = {
//title为每个页面的标题 //title为每个页面的标题
title: '文章详情' title: '新闻'
} }

View File

@@ -1,5 +1,5 @@
export const lang = { export const lang = {
//title为每个页面的标题 //title为每个页面的标题
title: '文章列表', title: '新闻',
emptyText:"当前暂无文章信息" emptyText:"当前暂无文章信息"
} }

View File

@@ -3,8 +3,7 @@
{ {
"path": "pages/index/index", "path": "pages/index/index",
"style": { "style": {
// "navigationStyle": "custom", "navigationStyle": "custom"
"enablePullDownRefresh": true
} }
}, },
{ {
@@ -20,7 +19,6 @@
"pages": [] "pages": []
}, },
{ {
//******************商品模块分包******************
"root": "pages_goods", "root": "pages_goods",
"pages": [ "pages": [
{ {
@@ -58,7 +56,6 @@
] ]
}, },
{ {
//******************订单模块分包******************
"root": "pages_order", "root": "pages_order",
"pages": [ "pages": [
{ {
@@ -99,7 +96,6 @@
// #endif // #endif
} }
}, },
//积分订单详情
{ {
"path": "detail_point", "path": "detail_point",
"style": { "style": {
@@ -111,10 +107,8 @@
] ]
}, },
{ {
//******************营销活动模块26******************
"root": "pages_promotion", "root": "pages_promotion",
"pages": [ "pages": [
//----------积分模块2----------
{ {
"path": "point/list", "path": "point/list",
"style": { "style": {
@@ -159,7 +153,6 @@
// #endif // #endif
} }
}, },
//****************** 商户 ******************
{ {
"path": "merch/merchcategory", "path": "merch/merchcategory",
"style": { "style": {
@@ -178,7 +171,6 @@
"navigationBarTitleText": "商户首页" "navigationBarTitleText": "商户首页"
} }
}, },
//****************** 分销 ******************
{ {
"path": "fenxiao/index", "path": "fenxiao/index",
"style": { "style": {
@@ -312,7 +304,6 @@
] ]
}, },
{ {
//*****************其他模块26******************
"root": "pages_tool", "root": "pages_tool",
"pages": [ "pages": [
{ {
@@ -356,7 +347,6 @@
"enablePullDownRefresh": true "enablePullDownRefresh": true
} }
}, },
//******************会员模块20******************
{ {
"path": "member/index", "path": "member/index",
"style": { "style": {
@@ -594,7 +584,6 @@
// #endif // #endif
} }
}, },
//******************登录模块******************
{ {
"path": "login/find", "path": "login/find",
"style": { "style": {
@@ -603,7 +592,6 @@
// #endif // #endif
} }
}, },
//******************商品模块******************
{ {
"path": "goods/coupon", "path": "goods/coupon",
"style": { "style": {
@@ -652,7 +640,6 @@
// #endif // #endif
} }
}, },
//******************CMS模块6******************
{ {
"path": "help/list", "path": "help/list",
"style": { "style": {
@@ -701,14 +688,13 @@
// #endif // #endif
} }
}, },
//******************会员充值4******************
{ {
"path": "recharge/list", "path": "recharge/list",
"style": { "style": {
// #ifdef APP-PLUS // #ifdef APP-PLUS
"navigationStyle": "custom", "navigationStyle": "custom",
// #endif // #endif
"scrollEnabled": true // 禁止页面滚动 "scrollEnabled": true
} }
}, },
{ {
@@ -719,7 +705,6 @@
// #endif // #endif
} }
}, },
//******************邀请******************
{ {
"path": "member/invite_friends", "path": "member/invite_friends",
"style": { "style": {
@@ -728,7 +713,6 @@
// #endif // #endif
} }
}, },
//******************支付模块2******************
{ {
"path": "pay/index", "path": "pay/index",
"style": { "style": {
@@ -769,7 +753,6 @@
// #endif // #endif
} }
}, },
//******************订单模块2******************
{ {
"path": "order/logistics", "path": "order/logistics",
"style": { "style": {
@@ -843,7 +826,6 @@
// #endif // #endif
} }
}, },
//******************登录模块3******************
{ {
"path": "login/login", "path": "login/login",
"style": { "style": {
@@ -878,7 +860,6 @@
"navigationBarTitleText": "小程序发货" "navigationBarTitleText": "小程序发货"
} }
}, },
//******************介质材料模块******************
{ {
"path": "seal/structure", "path": "seal/structure",
"style": { "style": {
@@ -906,7 +887,6 @@
"navigationBarTitleText": "搜索结果" "navigationBarTitleText": "搜索结果"
} }
}, },
//******************案例展示******************
{ {
"path": "cases/index", "path": "cases/index",
"style": { "style": {
@@ -916,7 +896,6 @@
"navigationBarTitleText": "案例展示" "navigationBarTitleText": "案例展示"
} }
}, },
//******************文件模块******************
{ {
"path": "files/list", "path": "files/list",
"style": { "style": {
@@ -968,10 +947,8 @@
"x-skeleton": "@/uni_modules/x-skeleton/components/x-skeleton/x-skeleton.vue", "x-skeleton": "@/uni_modules/x-skeleton/components/x-skeleton/x-skeleton.vue",
"mp-html": "@/uni_modules/mp-html/components/mp-html/mp-html.vue", "mp-html": "@/uni_modules/mp-html/components/mp-html/mp-html.vue",
"uni-*(\\W.*)": "@/uni_modules/uni$1/components/uni$1/uni$1.vue", "uni-*(\\W.*)": "@/uni_modules/uni$1/components/uni$1/uni$1.vue",
"mescroll-uni": "@/components/mescroll/my-list-mescroll.vue", "mescroll-uni": "@/components/mescroll/my-list-mescroll.vue",
"ns-goods-sku-*(\\W.*)": "@/components/ns-goods-sku/ns-goods-sku$1.vue", "ns-goods-sku-*(\\W.*)": "@/components/ns-goods-sku/ns-goods-sku$1.vue",
"diy-*(\\W.*)": "@/components-diy/diy$1.vue" "diy-*(\\W.*)": "@/components-diy/diy$1.vue"
} }
}, },

View File

@@ -19,6 +19,11 @@
<!-- 隐私弹窗 --> <!-- 隐私弹窗 -->
<privacy-popup ref="privacyPopup"></privacy-popup> <privacy-popup ref="privacyPopup"></privacy-popup>
<view class="page-bottom" v-if="openBottomNav">
<diy-bottom-nav @callback="callback" :name="name" />
</view>
</view> </view>
</template> </template>
@@ -29,7 +34,9 @@
return { return {
articleId: 0, articleId: 0,
detail: {}, detail: {},
content: '' content: '',
openBottomNav: true,
name: 'article'
}; };
}, },
onLoad(options) { onLoad(options) {
@@ -83,6 +90,8 @@
link: shareUrl, link: shareUrl,
imgUrl: this.siteInfo ? this.$util.img(this.siteInfo.logo_square) : '' imgUrl: this.siteInfo ? this.$util.img(this.siteInfo.logo_square) : ''
}); });
},
callback(data) {
} }
}, },
onShareAppMessage(res) { onShareAppMessage(res) {
@@ -153,4 +162,11 @@
font-size: 24rpx; font-size: 24rpx;
} }
} }
.page-bottom {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
z-index: 999;
}
</style> </style>

View File

@@ -1,13 +1,25 @@
<template> <template>
<view :style="themeColor"> <view :style="themeColor">
<!-- 主内容区域 -->
<view
class="page-img"
:style="{
backgroundColor: bgColor,
minHeight: openBottomNav ? 'calc(100vh - 55px)' : '100vh'
}"
>
<mescroll-uni @getData="getData" ref="mescroll"> <mescroll-uni @getData="getData" ref="mescroll">
<block slot="list"> <block slot="list">
<view class="article-wrap" v-if="list.length"> <view class="article-wrap" v-if="list.length">
<ns-adv keyword="NS_ARTICLE" class-name="adv-wrap"></ns-adv> <ns-adv keyword="NS_ARTICLE" class-name="adv-wrap"></ns-adv>
<view class="item" v-for="(item, index) in list" :key="index" @click="toDetail(item)"> <view class="item" v-for="(item, index) in list" :key="index" @click="toDetail(item)">
<view class="article-img"> <view class="article-img">
<image class="cover-img" :src="$util.img(item.cover_img)" mode="widthFix" <image
@error="imgError(index)" /> class="cover-img"
:src="$util.img(item.cover_img)"
mode="widthFix"
@error="imgError(index)"
/>
</view> </view>
<view class="info-wrap"> <view class="info-wrap">
<text class="title">{{ item.article_title }}</text> <text class="title">{{ item.article_title }}</text>
@@ -21,7 +33,9 @@
</view> </view>
</view> </view>
</view> </view>
<view v-else class="empty-wrap"><ns-empty text="暂无文章" :isIndex="false"></ns-empty></view> <view v-else class="empty-wrap">
<ns-empty text="暂无文章" :isIndex="false"></ns-empty>
</view>
<loading-cover ref="loadingCover"></loading-cover> <loading-cover ref="loadingCover"></loading-cover>
</block> </block>
</mescroll-uni> </mescroll-uni>
@@ -29,13 +43,21 @@
<!-- 隐私弹窗 --> <!-- 隐私弹窗 -->
<privacy-popup ref="privacyPopup"></privacy-popup> <privacy-popup ref="privacyPopup"></privacy-popup>
</view> </view>
<view class="page-bottom" v-if="openBottomNav">
<diy-bottom-nav @callback="callback" :name="name" />
</view>
</view>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
list: [] list: [],
openBottomNav: true,
name: 'article',
bgColor: '#ffffff'
}; };
}, },
onShow() { onShow() {
@@ -60,9 +82,8 @@ export default {
}); });
} }
mescroll.endSuccess(newArr.length); mescroll.endSuccess(newArr.length);
//设置列表数据 if (mescroll.num == 1) this.list = [];
if (mescroll.num == 1) this.list = []; //如果是第一页需手动制空列表 this.list = this.list.concat(newArr);
this.list = this.list.concat(newArr); //追加新数据
if (this.$refs.loadingCover) this.$refs.loadingCover.hide(); if (this.$refs.loadingCover) this.$refs.loadingCover.hide();
}, },
fail: res => { fail: res => {
@@ -79,19 +100,20 @@ export default {
imgError(index) { imgError(index) {
if (this.list[index]) this.list[index].cover_img = this.$util.getDefaultImage().article; if (this.list[index]) this.list[index].cover_img = this.$util.getDefaultImage().article;
}, },
// 设置公众号分享
setPublicShare() { setPublicShare() {
let shareUrl = this.$config.h5Domain + '/pages_tool/article/list'; let shareUrl = this.$config.h5Domain + '/pages_tool/article/list';
this.$util.setPublicShare({ this.$util.setPublicShare({
title: '文章列表', title: '新闻',
desc: '', desc: '',
link: shareUrl, link: shareUrl,
imgUrl: this.siteInfo ? this.$util.img(this.siteInfo.logo_square) : '' imgUrl: this.siteInfo ? this.$util.img(this.siteInfo.logo_square) : ''
}); });
},
callback(data) {
} }
}, },
onShareAppMessage(res) { onShareAppMessage(res) {
var title = '文章列表'; var title = '新闻';
var path = '/pages_tool/article/list'; var path = '/pages_tool/article/list';
return { return {
title: title, title: title,
@@ -100,9 +122,8 @@ export default {
fail: res => {} fail: res => {}
}; };
}, },
//分享到朋友圈
onShareTimeline() { onShareTimeline() {
var title = '文章列表'; var title = '新闻';
var query = '/pages_tool/article/list'; var query = '/pages_tool/article/list';
return { return {
title: title, title: title,
@@ -212,4 +233,11 @@ export default {
} }
} }
} }
.page-bottom {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
z-index: 999;
}
</style> </style>