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>

点击前往

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

相关推荐
AI_AGENT_DEV_AI32 分钟前
原生 APP(iOS / Android)的开发与上线
uni-app
小徐_233313 小时前
Wot UI 2.3.0 发布:二维码组件来了,Open Wot 与 wot-starter 同步更新
前端·微信小程序·uni-app
skiyee17 小时前
🔥 oiyo & unibest = 又新又好的 uniapp 模板
前端·uni-app
结网的兔子3 天前
【前端开发】Web端迁移至 uni-app 及鸿蒙扩展方案对比
前端·uni-app·harmonyos
2501_915909063 天前
iOS 应用反调试技详解术 检测调试器的原理与防护实践
android·ios·小程序·https·uni-app·iphone·webview
AI多Agent协作实战派3 天前
AI多Agent协作系统实战(二十八):顶栏统一战争——从1个页面异常到31个页面全量对齐
数据库·人工智能·uni-app
00后程序员张3 天前
iOS加固技术路线全面解析:Bitcode模式、源码模式与汇编模式对比及爱加密优势
android·汇编·ios·小程序·uni-app·cocoa·iphone
2501_916008894 天前
iOS IPA文件反编译与打包操作方法,拆包分析防护和加固打包
android·macos·ios·小程序·uni-app·cocoa·iphone
name好难取诶4 天前
通过对云基座和离线基座的对比,帮助开发者理解如何在不同场景下选择合适的打包方案。 什么是“基座” 在 UniApp 中,基座(也称“ ...
开发语言·uni-app·php
2501_915921434 天前
iOS手游安全反外挂解决方案:基于Xcode的加固混淆特色详解
android·安全·ios·小程序·uni-app·iphone·xcode