gdpao #233
@ -133,8 +133,8 @@
 | 
			
		||||
                            title: res.message,
 | 
			
		||||
                            type: 'success',
 | 
			
		||||
                        })
 | 
			
		||||
                        uni.switchTab({
 | 
			
		||||
                             url: '/pages/index/index'
 | 
			
		||||
                        uni.navigateTo({
 | 
			
		||||
                             url: '/pageA/topick/topick'
 | 
			
		||||
                        });
 | 
			
		||||
                    } else {
 | 
			
		||||
                        this.$refs.uToast.show({
 | 
			
		||||
 | 
			
		||||
@ -24,7 +24,7 @@
 | 
			
		||||
            <text class="operat-span">{{ comment_num }}</text>
 | 
			
		||||
        </view>
 | 
			
		||||
        <!-- 购物车 -->
 | 
			
		||||
        <view class="operat gouwu">
 | 
			
		||||
        <view class="operat gouwu" v-if="cart_num">
 | 
			
		||||
            <image class="operat-img" :src=" is_cart ? '../../static/image/userinfo/gouwuche1.png' : '../../static/image/userinfo/gouwuche.png' "
 | 
			
		||||
                mode="" @click="carting()"></image>
 | 
			
		||||
        </view>
 | 
			
		||||
@ -100,18 +100,20 @@
 | 
			
		||||
                is_collect: this.list.is_collect || false,
 | 
			
		||||
                is_content: false,
 | 
			
		||||
                is_cart: false,
 | 
			
		||||
                cart_num: 0,
 | 
			
		||||
                comment_num: this.list.comment_num || 0,
 | 
			
		||||
                item: this.list || {}
 | 
			
		||||
                item: this.list || {},
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        watch: {
 | 
			
		||||
            list(newValue, old) {
 | 
			
		||||
                // console.log(newValue);
 | 
			
		||||
                // console.log(newValue.goods.length);
 | 
			
		||||
                this.item = newValue || {};
 | 
			
		||||
                this.is_follow = this.list.is_attention || false;
 | 
			
		||||
                this.is_like = this.list.is_like || false;
 | 
			
		||||
                this.is_collect = this.list.is_collect || false;
 | 
			
		||||
                this.comment_num = this.list.comment_num || 0;
 | 
			
		||||
                this.cart_num = newValue.goods.length;
 | 
			
		||||
            },
 | 
			
		||||
            cart(newValue, old) {
 | 
			
		||||
                // console.log(newValue);
 | 
			
		||||
 | 
			
		||||
@ -1,6 +1,24 @@
 | 
			
		||||
<template>
 | 
			
		||||
	<view class="article-details">
 | 
			
		||||
		<rich-text :nodes="nodes"></rich-text>
 | 
			
		||||
	<view>
 | 
			
		||||
		<view class="header" v-if="type == 2">
 | 
			
		||||
				<image src="../../pageD/images/file.png" class="tit-img" mode=""></image>
 | 
			
		||||
				<view class="title">德铭阳光</view>
 | 
			
		||||
				<view class="tit-info">版本:{{ version }} for {{ phone_type }}</view>
 | 
			
		||||
		</view>
 | 
			
		||||
		<rich-text :nodes="nodes" v-if="type != 2"></rich-text>
 | 
			
		||||
		<view class="main" v-if="type == 2">
 | 
			
		||||
			<view @click="show = true">
 | 
			
		||||
				<text>产品介绍</text>
 | 
			
		||||
				<u-icon name="arrow-right" color="#999"></u-icon>
 | 
			
		||||
			</view>
 | 
			
		||||
			<view>
 | 
			
		||||
				<text>版本更新</text>
 | 
			
		||||
				<text class="tips">已是最新版本</text>
 | 
			
		||||
			</view>
 | 
			
		||||
		</view>
 | 
			
		||||
        <u-popup v-model="show" v-if="type == 2">
 | 
			
		||||
            <view>出淤泥而不染,濯清涟而不妖</view>
 | 
			
		||||
        </u-popup>
 | 
			
		||||
	</view>
 | 
			
		||||
</template>
 | 
			
		||||
<script>
 | 
			
		||||
@ -8,7 +26,11 @@ import common from '@/static/js/common.js'
 | 
			
		||||
export default {
 | 
			
		||||
	data() {
 | 
			
		||||
		return {
 | 
			
		||||
			nodes: '',
 | 
			
		||||
			version: "",
 | 
			
		||||
			phone_type: "",
 | 
			
		||||
			type: 1,
 | 
			
		||||
			nodes: "",
 | 
			
		||||
            show: false,
 | 
			
		||||
		}
 | 
			
		||||
	},
 | 
			
		||||
	onLoad(option) {
 | 
			
		||||
@ -17,6 +39,9 @@ export default {
 | 
			
		||||
		if(option.id) this.getUseHelpInfo(option.id);
 | 
			
		||||
		if(option.type == 1) this.certificateInfo();
 | 
			
		||||
		if(option.type == 2) this.getAboutUsInfo();
 | 
			
		||||
		this.type = option.type;
 | 
			
		||||
		this.getVersion();
 | 
			
		||||
		this.phone_type = this.$u.os();
 | 
			
		||||
	},
 | 
			
		||||
	methods: {
 | 
			
		||||
		setTitle(title){
 | 
			
		||||
@ -50,14 +75,58 @@ export default {
 | 
			
		||||
				}
 | 
			
		||||
			})
 | 
			
		||||
		},
 | 
			
		||||
		// 检查版本号
 | 
			
		||||
		getVersion() {
 | 
			
		||||
			this.$u.post("Specialci/checkVersion",{app_version: 1}).then(res => {
 | 
			
		||||
				console.log(res);
 | 
			
		||||
				this.version = res.data.app_version;
 | 
			
		||||
			})
 | 
			
		||||
		}
 | 
			
		||||
	},
 | 
			
		||||
}
 | 
			
		||||
</script>
 | 
			
		||||
<style lang="scss" scoped>
 | 
			
		||||
.article-details {
 | 
			
		||||
	min-height: calc(100vh - var(--window-top));
 | 
			
		||||
	background: #ECECEC;
 | 
			
		||||
	padding: 20rpx 35rpx 0;
 | 
			
		||||
	line-height: 45rpx;
 | 
			
		||||
page {
 | 
			
		||||
	background-color: #f2f2f2;
 | 
			
		||||
}
 | 
			
		||||
.header {
 | 
			
		||||
	width: 500rpx;
 | 
			
		||||
	margin: 0 auto;
 | 
			
		||||
	padding: 30rpx;
 | 
			
		||||
	text-align: center;
 | 
			
		||||
    .tit-img {
 | 
			
		||||
			width: 200rpx;
 | 
			
		||||
			height: 200rpx;
 | 
			
		||||
		}
 | 
			
		||||
		.title {
 | 
			
		||||
			margin: 18rpx 0;
 | 
			
		||||
			font-weight: bold;
 | 
			
		||||
			font-size: 26rpx;
 | 
			
		||||
			letter-spacing: 2rpx;
 | 
			
		||||
		}
 | 
			
		||||
		.tit-info {
 | 
			
		||||
			font-size: 22rpx;
 | 
			
		||||
			color: #666;
 | 
			
		||||
		}
 | 
			
		||||
}
 | 
			
		||||
.main {
 | 
			
		||||
	margin: 20rpx 0;
 | 
			
		||||
	& > view {
 | 
			
		||||
		display: flex;
 | 
			
		||||
		align-items: center;
 | 
			
		||||
		justify-content: space-between;
 | 
			
		||||
		width: 100%;
 | 
			
		||||
		height: 100rpx;
 | 
			
		||||
		padding: 0 20rpx;
 | 
			
		||||
		line-height: 100rpx;
 | 
			
		||||
		color: #333;
 | 
			
		||||
		font-size: 30rpx;
 | 
			
		||||
		background-color: #fff;
 | 
			
		||||
		border-bottom: 1px solid #f2f2f2;
 | 
			
		||||
	}
 | 
			
		||||
	.tips {
 | 
			
		||||
		color: #999;
 | 
			
		||||
		font-size: 22rpx;
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
</style>
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user