uniapp开发号卡系统

我们先来看一下效果图

商品分享、店铺分享等功能

部分代码

html 复制代码
<template>
	<view class="">
		<view class="uy-bg-ffffff uy-p-20 uy-m-t-20 uy-b-r-20 uy-rel" v-for="(item,index) in list" :key="index">
			<view class="uy-flex uy-flex-between uy-flex-initial">
				<view class="uy-w-200 uy-h-200">
					<uy-image width="200" height="200" :src="item.goods_cover" radius="5"></uy-image>
				</view>
				<view class="uy-w-p-66 uy-rel">
					<view class="uy-font-40 uy-font-w-600">{{item.goods_name || ''}}</view>
					<view class="uy-font-28 uy-color-545454 uy-m-t-10">{{item.goods_intro || ''}}</view>
					<view class="uy-font-30 uy-flex uy-flex-e uy-abs uy-w-p-100 uy-b-0">
						<view class="uy-w-100 uy-text-c uy-l-h-44 uy-b-r-15 uy-color-ffffff uy-m-r-10" style="background: linear-gradient(210.18deg, rgba(52, 98, 210, 1) 0%, rgba(87, 157, 255, 1) 100%);" @tap="tapTo('share', item)">鍒嗕韩</view>
						<view class="uy-w-100 uy-text-c uy-l-h-44 uy-b-r-15 uy-color-ffffff" style="background: linear-gradient(210.18deg, rgba(52, 98, 210, 1) 0%, rgba(87, 157, 255, 1) 100%);" @click="$openPage({name: 'webView', query: {name: item.goods_name, url: item.link_url}})">鍔炵悊</view>
					</view>
				</view>
			</view>
			<view class="uy-flex uy-flex-wrap">
				<view class="uy-font-24 uy-p-10 uy-b-r-10 uy-m-r-20 uy-m-t-20" :style="{background: item2.bgColor}" v-for="(item2,index2) in item.goods_label" :key="index2">{{item2.name || ''}}</view>
			</view>
			<view class="uy-abs uy-t-10 uy-r-10" v-if="item.is_hot">
				<uy-image width="50" height="50" :src="$mAssetsPath.index1"></uy-image>
			</view>
		</view>
		
		<uy-poster-popup :data="shareData" :show.sync="showShare"></uy-poster-popup>
	</view>
</template>

<script>
	export default {
		name:"uy-list-goods",
		props: {
			list: {
				type: Array,
				default: () => {
					return []
				}
			}
		},
		data() {
			return {
				showShare: false,
				shareData: {},
			};
		},
		methods: {
			tapTo(state, e) {
				switch(state) {
					case 'share':
						this.shareData = e;
						this.showShare = true;
						break
					default:
						break
				}
			}
		}
	}
</script>

<style>

</style>

点击前往

需要的可扫码小程序客服联系

相关推荐
万物得其道者成1 小时前
UniApp 多端滑块验证码插件 zxj-slide-verify 实用指南
uni-app
蓝帆傲亦3 小时前
支付宝小程序性能暴增秘籍:UniApp项目极限优化全攻略
小程序·uni-app
2501_9160088912 小时前
深入解析iOS机审4.3原理与混淆实战方法
android·java·开发语言·ios·小程序·uni-app·iphone
QT.qtqtqtqtqt13 小时前
uni-app小程序前端开发笔记(更新中)
前端·笔记·小程序·uni-app
喵喵虫1 天前
uniapp修改封装组件失败 styleIsolation
uni-app
游戏开发爱好者81 天前
日常开发与测试的 App 测试方法、查看设备状态、实时日志、应用数据
android·ios·小程序·https·uni-app·iphone·webview
2501_915106322 天前
app 上架过程,安装包准备、证书与描述文件管理、安装测试、上传
android·ios·小程序·https·uni-app·iphone·webview
2501_915106322 天前
使用 Sniffmaster TCP 抓包和 Wireshark 网络分析
网络协议·tcp/ip·ios·小程序·uni-app·wireshark·iphone
宠友信息2 天前
2025社交+IM及时通讯社区APP仿小红书小程序
java·spring boot·小程序·uni-app·web app
“负拾捌”2 天前
python + uniapp 结合腾讯云实现实时语音识别功能(WebSocket)
python·websocket·微信小程序·uni-app·大模型·腾讯云·语音识别