追格圈子社区小程序商城的“推荐商品”模块链接打不开的解决办法

追格官方小助手/ 2022年05月13日/ 小程序/ 浏览 1726

追格圈子社区小程序,商城的“推荐商品”模块链接打不开的解决办法供参考,等追格新版本更新,各位可忽略本文,仅供官方文档记录。


1、修改前端代码:/pages/mall/index/index.vue


		<!-- 自定义3图 -->
		<view v-if="shop_rec" class="zhuige-newgoods">
			<view class="jiangqie-choiceness-head">
				<view class="jiangqie-header-m">
					{{shop_rec.title}}
					<text>{{shop_rec.desc}}</text>
				</view>
			</view>
			<view class="jiangqie-choiceness">
				<view class="jiangqie-choiceness-side">
					<text v-if="shop_rec.list[0].badge">{{shop_rec.list[0].badge}}</text>
					<view class="jiangqie-choiceness-title">{{shop_rec.list[0].title}}</view>
					<image mode="aspectFill" :src="shop_rec.list[0].image"></image>
				</view>
				<view class="jiangqie-choiceness-side">
					<view class="">
						<text v-if="shop_rec.list[1].badge">{{shop_rec.list[1].badge}}</text>
						<view class="jiangqie-choiceness-title">{{shop_rec.list[1].title}}</view>
						<image mode="aspectFill" :src="shop_rec.list[1].image"></image>
					</view>
					<view class="">
						<text v-if="shop_rec.list[2].badge">{{shop_rec.list[2].badge}}</text>
						<view class="jiangqie-choiceness-title">{{shop_rec.list[2].title}}</view>
						<image mode="aspectFill" :src="shop_rec.list[2].image"></image>
					</view>
				</view>
			</view>
		</view>


改成如下代码即可:


		<!-- 自定义3图 -->
		<view v-if="shop_rec" class="zhuige-newgoods">
			<view class="jiangqie-choiceness-head">
				<view class="jiangqie-header-m">
					{{shop_rec.title}}
					<text>{{shop_rec.desc}}</text>
				</view>
			</view>
			<view class="jiangqie-choiceness">
				<view @click="clickLink(shop_rec.list[0].link)" class="jiangqie-choiceness-side">
					<text v-if="shop_rec.list[0].badge">{{shop_rec.list[0].badge}}</text>
					<view class="jiangqie-choiceness-title">{{shop_rec.list[0].title}}</view>
					<image mode="aspectFill" :src="shop_rec.list[0].image"></image>
				</view>
				<view class="jiangqie-choiceness-side">
					<view @click="clickLink(shop_rec.list[1].link)" class="">
						<text v-if="shop_rec.list[1].badge">{{shop_rec.list[1].badge}}</text>
						<view class="jiangqie-choiceness-title">{{shop_rec.list[1].title}}</view>
						<image mode="aspectFill" :src="shop_rec.list[1].image"></image>
					</view>
					<view @click="clickLink(shop_rec.list[2].link)" class="">
						<text v-if="shop_rec.list[2].badge">{{shop_rec.list[2].badge}}</text>
						<view class="jiangqie-choiceness-title">{{shop_rec.list[2].title}}</view>
						<image mode="aspectFill" :src="shop_rec.list[2].image"></image>
					</view>
				</view>
			</view>
		</view>


2、/pages/mall/list/list.vue 删除以下代码:


		computed: {

		},


发表评论

暂无评论,抢个沙发...

客服 工单