<template>
	<view class="intro-page common">
		<view class="top-class"></view>
		<view class="title">
			产品溯源
		</view>
    <view class="head">
      <u-row class="row-class"  justify="flex-end">
        <u-col span="4">
          <image class="logo-rules" @click="openDetail" src="https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/qilang/common/rules.png"  />
        </u-col>
      </u-row>
    </view>

		<!-- 公司简介内容卡片 -->
		<view class="content">

			<view class="content_text">
				<view class="content_imgView">
					<image class="img_2" src="https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/qilang/commodity_1.png"
						mode="heightFix" />
				</view>

				<u-row class="row-class" customStyle="margin-bottom: 5px">
					<u-col span="4">
						<view class="item-left item-text">产品名称</view>
					</u-col>
					<u-col span="8">
						<view class="item-text-value">{{info.productName}}</view>
					</u-col>
				</u-row>
				<u-row class="row-class" customStyle="margin-bottom: 5px">
					<u-col span="4">
						<view class="item-left item-text">商标名称</view>
					</u-col>
					<u-col span="8">
						<view class="item-text-value">七榔槟榔</view>
					</u-col>
				</u-row>
				<u-row class="row-class" customStyle="margin-bottom: 5px">
					<u-col span="4">
						<view class="item-left item-text">产品类型</view>
					</u-col>
					<u-col span="8">
						<view class="item-text-value">低纤槟榔胶果（槟榔制品）</view>
					</u-col>
				</u-row>
				<u-row class="row-class" customStyle="margin-bottom: 5px">
					<u-col span="4">
						<view class="item-left item-text">生产日期</view>
					</u-col>
					<u-col span="8">
						<view class="item-text-value">见包装喷码区</view>
					</u-col>
				</u-row>
				<u-row class="row-class" customStyle="margin-bottom: 5px">
					<u-col span="4">
						<view class="item-left item-text">批&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号</view>
					</u-col>
					<u-col span="8">
						<view class="item-text-value">{{info.pici}}</view>
					</u-col>
				</u-row>
				<u-row class="row-class" customStyle="margin-bottom: 5px">
					<u-col span="4">
						<view class="item-left item-text">保&nbsp;&nbsp;质&nbsp;&nbsp;期</view>
					</u-col>
					<u-col span="8">
						<view class="item-text-value">18个月</view>
					</u-col>
				</u-row>
				<u-row class="row-class" customStyle="margin-bottom: 5px">
					<u-col span="4">
						<view class="item-left item-text">出&nbsp;&nbsp;品&nbsp;&nbsp;商</view>
					</u-col>
					<u-col span="8">
						<view class="item-text-value">武汉市胜昌经贸有限公司</view>
					</u-col>
				</u-row>
<!-- 				<u-row class="row-class" customStyle="margin-bottom: 5px">
					<u-col span="4">
						<view class="item-left item-text">销售市场</view>
					</u-col>
					<u-col span="8">
						<view class="item-text">湖南长沙</view>
					</u-col>
				</u-row> -->
<!-- 				<u-row class="row-class" customStyle="margin-bottom: 5px">
					<u-col span="4">
						<view class="item-left item-text">生产厂址</view>
					</u-col>
					<u-col span="8">
						<view class="item-text">湖南湘潭市湘潭县</view>
					</u-col>
				</u-row> -->
			</view>
			<view class="return_view">
				<view class="return-button" @click="goBack">返回</view>
			</view>

		</view>

	</view>
</template>

<script>
import {
  suyuanData
} from '@/api/scan'
import traceabilityMixin from '@/mixins/traceabilityMixin.js'

export default {
  mixins: [traceabilityMixin],
  onLoad() {
    this.scanCode = uni.getStorageSync('scanCode');
    // 调用 mixin 中的方法
    this.initData(suyuanData);
  },
  methods: {
    // 不再需要定义 initData 方法，使用 mixin 中的方法
    openDetail(){
      uni.navigateTo({
        url: '/pages/qilang/index/rules'
      });
    }
  }
}
</script>

<style lang="scss" scoped>
	@import url('../../../static/scss/common_qilang.css');

	.row-class {
		height: 60rpx;
	}

	.theme-text {
		height: 10vh;
		text-align: center;
		line-height: 11vh;

		.textImage {
			height: 80rpx;
			width: 400rpx;
		}
	}


	::v-deep .item-left {
		border-radius: 6rpx !important;
		text-align: center;
		width: 160rpx !important;
	}

	.item-text {
		font-weight: 600;
		font-size: 30rpx;
		color: #333333;
	}
  .item-text-value{
    font-weight: 600;
    font-size: 30rpx;
    color: #EC6B25;
  }

	.content {
		height: 69vh;
		padding: 10rpx 24rpx;
		overflow: auto;
		align-items: center;
		justify-content: center;
    border-radius: 48px;
    background: #FDE2B1;
    border: 6px solid #FB911b;
    margin: 10vh 40rpx 0rpx;

	}
	.img_2{
		height: 240rpx;
	}
	.content_imgView{
    margin-bottom: 40rpx;
		display: flex;
		justify-content: center;
	}
</style>
