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>

点击前往

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

相关推荐
2501_916008896 分钟前
ChatGPT前端开发学习指南:Visual Studio Code与谷歌浏览器安装配置详解
ide·vscode·ios·小程序·uni-app·编辑器·iphone
2501_915909063 小时前
完整指南:如何将iOS应用上架到App Store
android·ios·小程序·https·uni-app·iphone·webview
xiangxiongfly9151 天前
uni-app 组件总结
前端·javascript·uni-app
2501_915918411 天前
iOS性能数据监控:从概念到工具实践,让应用运行更流畅
android·macos·ios·小程序·uni-app·cocoa·iphone
2501_915909062 天前
全面解析前端开发中常用的浏览器调试工具及其使用场景
android·ios·小程序·https·uni-app·iphone·webview
wuxianda10302 天前
uniapp项目上架苹果商店4.3a被拒,3天极速解决方案2026.5.8
前端·人工智能·flutter·uni-app·ios上架·苹果上架·苹果4.3a
小盼江2 天前
Uniapp小程序鲜花商城推荐系统 买家卖家双端(web+uniapp)
前端·小程序·uni-app
fakaifa2 天前
【最新版】CRMEB Pro版v4.0系统源码 全开源+uniapp/PC前端+搭建教程
uni-app·开源·商城小程序·crmeb·crmebpro
小徐_23333 天前
Wot UI v1 升级 v2?这份迁移指南帮你少踩坑!
前端·微信小程序·uni-app
游戏开发爱好者83 天前
使用Fiddler设置HTTPS抓包诊断Power Query网络问题
android·ios·小程序·https·uni-app·iphone·webview