This commit is contained in:
2020-06-18 14:57:26 +08:00
parent df47e0d357
commit f0244f8077
106 changed files with 186 additions and 122 deletions

View File

@@ -1,6 +1,6 @@
<template>
<template>
<view>
<image v-if="type" class="welcome_images" src="../../static/pageA/welcome_img.jpg" mode="aspectFill"></image>
<image v-if="type" class="welcome_images" src="../../static/pageA/welcome_img.jpg" mode="aspectFill"></image>
<view v-if="type" class="welcome_jumpes" @click="leap_over" >跳过{{remaining}}</view>
<view v-if="banner" class="welcome_jumpes" @click="leap_overto" >跳过</view>
<!-- 轮播图 -->
@@ -20,20 +20,21 @@
<!-- 用户协议弹窗 -->
<view class="welcome_backes" v-if="protocol">
<view class="content">
<view class="title">用户协议</view>
<text class="protocol_content">
感谢您对德铭阳光在线的信任!
请注意在您使用本软件过程中我们会按照德铭阳光在线隐私保护声明权限声明 收集使用和共享您的个人信息请认真阅读并充分理解特别提示:
<view class="title">{{ agreement.document_title }}</view>
<!-- <text class="protocol_content"></text> -->
<scroll-view scroll-y class="scroll">
<rich-text class="protocol_content" :nodes="agreement.document_content"></rich-text>
</scroll-view>
<view class="to_agree" @click="to_agree">我同意</view>
</view>
3我们会采取业界先进的安全措施保护您的信息安全;
4未经您同意我们不会从第三方处获取共享或向其提供您的信息;
5您可以查询更正删除您的个人信息我们也提供账户注销的渠道
</text>
<view class="to_agree" @click="to_agree">我同意</view>
</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
remaining : 3,
type:true,
banner : false,
@@ -43,25 +44,35 @@
indicatorDots: true,
autoplay: true,
interval: 3000,
protocol : false,
heightes:'',
duration: 500,
agreement: { // 用户协议内容
document_title: "",
document_content: ""
}
};
},
onLoad() {
interval: 3000,
},
methods: {
unescapeHTML (temp){
temp = "" + temp;
return temp.replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&amp;/g, "&").replace(/&quot;/g, '"').replace(/&apos;/g, "'");
},
apiwelcome(){
this.$u.api.documentInfo({
document_code:'agreement'
}).then((res)=>{
},
methods: {
if (res.errCode == 0) {
let agreement = res.data;
agreement.document_content = this.unescapeHTML(agreement.document_content);
// console.log(agreement);
this.agreement = agreement;
}
})
// 启动页
this.$u.api.pageList({}).then((res)=>{
console.log('协议',res)
console.log('协议',res)
})
},
// 3秒倒计时
@@ -105,12 +116,11 @@
// 获取屏幕高度
this.getSystemInfo()
this.apiwelcome()
mounted(){
// 3秒倒计时调用
this.remaining_time()
// 获取屏幕高度
this.getSystemInfo()
}
}
</script>
<style lang="scss" scoped>
.welcome_jumpes{
width: 90rpx;
height: 35rpx;
@@ -133,7 +143,7 @@
}
uni-swiper,uni-view,uni-image{
width: 100%;
width: 100%;
// position: fixed;
height: 100%
}
uni-image{
@@ -168,18 +178,22 @@
line-height:29rpx;
margin: 30rpx 0 24rpx 0;
}
font-size:30rpx;
font-weight:bold;
color:rgba(51,51,51,1);
line-height:29rpx;
margin: 30rpx 0 24rpx 0;
}
.protocol_content{
width:494rpx;
height:528rpx;
font-size:24rpx;
font-weight:400;
color:rgba(51,51,51,1);
.scroll {
height: 560rpx;
.protocol_content{
width:494rpx;
height:528rpx;
font-size:24rpx;
font-weight:400;
color:rgba(51,51,51,1);
display: block;
text-align: left;
margin: 80rpx auto 33rpx;
letter-spacing: 1rpx;
text-align: justify;
line-height: 36rpx;
}
}
.to_agree{
width:558rpx;
@@ -191,5 +205,5 @@
border-top: #D8D8D8 solid 1px;
}
}
color:rgba(255,121,16,1);
text-align: center;
}
</style>

View File

@@ -4,16 +4,11 @@
商品推荐
</view>
<view class="label">
<text>asd</text>
<text>sda</text>
<text>w3eq</text>
<text>分类名称</text>
<text v-for="item in classifyList" :key="item.gc_id">{{ item.gc_name }}</text>
</view>
<view class="item">
<item></item>
<item></item>
<item></item>
<item></item>
<item></item>
<item v-for="item in goodsList" :key="item.goods_id" :info="item"></item>
</view>
</view>
</template>
@@ -23,7 +18,11 @@ export default {
name:"list",
components:{
item
}
},
props: {
classifyList: Array,
goodsList: Array,
}
}
</script>
<style lang="scss" scoped>
@@ -38,9 +37,10 @@ export default {
.label{
display: flex;
color: #999;
flex-wrap: wrap;
>text{
margin-right: 34rpx;
margin-bottom: 10rpx;
}
}
.item{

View File

@@ -1,16 +1,19 @@
<template>
<view class="item">
<image class="img"></image>
<image :src="$u.http.config.baseUrl + info.goods_image" class="img"></image>
<view class="info">
<text class="title"></text>
<text class="jianjie"></text>
<text class="price"></text>
<text class="title u-line-1">{{ info.goods_name }}</text>
<text class="jianjie u-line-2">{{ info.goods_advword }}</text>
<text class="price">{{ info.goods_price }}</text>
</view>
</view>
</template>
<script>
export default {
name:"item"
name:"item",
props: {
info: Object
}
}
</script>
<style lang="scss" scoped>
@@ -28,6 +31,7 @@ export default {
}
.info{
width: 320rpx;
padding: 0 12rpx;
display: flex;
flex-direction: column;

View File

@@ -1,12 +1,15 @@
<template>
<view class="shop-item">
<image></image>
<text>名字哦</text>
<text>{{ info.gc_name }}</text>
</view>
</template>
<script>
export default {
name:"shopItem"
name:"shopItem",
props: {
info: Object
}
}
</script>
<style lang="scss" scoped>