Commit 13fca3da by LJM

「爱智小程序」—业务验收问题合集fix

parent 3613d455
.classNavPage{ .classNavPage {
.bugc-ceng{ .bugc-ceng {
position: relative; position: relative;
z-index: 1; z-index: 1;
background: #fff; background: #fff;
} }
.cons{ .cons {
padding-top:23rpx; padding-top: 23rpx;
.one-c-box{ .one-c-box {
padding-left:18rpx; padding-left: 18rpx;
position: relative; position: relative;
padding-right:90rpx; padding-right: 90rpx;
height:63rpx; height: 63rpx;
.lb{
height:100%;
width:100%;
overflow-x: auto;
.itemo{
height: 45rpx;
line-height: 45rpx;
padding:0 17rpx;
border-radius: 5rpx;
border: 1rpx solid #fff;
margin-right:25rpx;
font-size: 24rpx;
color: #000000;
flex-shrink: 0;
&.act{
border: 1rpx solid #D0121B;
background: #FFF5F5;
color: #D0121B;
}
}
}
.rb{
width:90rpx;
height:45rpx;
position: absolute;
top:0rpx;
right:0rpx;
text-align: center;
.icon{
font-size: 16rpx;
color:#000;
}
}
.one-c-hide-cons{
position: absolute;
z-index: 1;
width: 100%;
background: #FFFFFF;
border-radius: 0rpx 0rpx 20rpx 20rpx;
top:-24rpx;
left:0rpx;
transition: max-height 0.5s;
max-height: 0;
overflow: hidden;
.tit{
padding: 11rpx 30rpx;
font-size: 24rpx;
color: #000000;
margin-bottom: 35rpx;
}
.hide-sec{
flex-wrap: wrap;
padding-left:60rpx;
padding-bottom:40rpx;
.itemh{
margin-bottom: 40rpx;
margin-right: 33rpx;
&:nth-child(4n){
margin-right: 0rpx;
}
image{
display: block;
width:106rpx;
height:106rpx;
margin:0 auto;
}
text{
margin-top:8rpx;
display: block;
width:135rpx;
text-align: center;
font-size: 24rpx;
color: #666666;
height:30rpx;
line-height: 30rpx;
}
&.act{
text{color:#D0121B;}
}
}
}
.foot{
height:87rpx;
font-size: 24rpx;
color: #000000;
border-top:1rpx solid #D1D1D1;
border-radius: 0rpx 0rpx 20rpx 20rpx;
.icon{
font-size: 16rpx;
margin-left: 20rpx;
}
}
}
&.show{
.one-c-hide-cons{max-height: 700rpx;}
&::after{
content:"";
position: fixed;
left:0;
top:0;
right:0;
bottom:0;
background: rgba(0,0,0,0.3);
}
}
}
.two-c-box{
margin-top:20rpx;
height:calc(100vh - 175rpx - 130rpx);
.lc{
width:225rpx;
height:100%;
padding-top:40rpx;
font-size: 24rpx;
color: #666666;
overflow-y: auto;
background: #f8f8f8;
.item{
padding:15rpx 0;
padding-left:35rpx;
padding-right:50rpx;
margin-bottom: 10rpx;
height:92rpx;
&.act{
color: #000000;
background: #fff;
border-radius: 100rpx 0 0 100rpx;
}
}
}
.rc{
width:525rpx;
height:100%;
overflow-y: auto;
padding-left:35rpx;
.item{
margin-right: 35rpx;
width: 130rpx;
padding-bottom:20rpx;
//margin-bottom:10rpx;
display: inline-block;
height:227rpx;
&:nth-child(3n){
margin-right: 0rpx;
}
image{
width: 130rpx;
height: 130rpx;
margin-bottom: 12rpx;
display: block;
}
text{
color: #000000;
width: 130rpx;
display: block;
line-height: 30rpx;
height:30rpx;
text-align: center;
font-size: 24rpx;
color: #000000;
}
}
}
}
}
.lb {
height: 100%;
width: 100%;
overflow-x: auto;
.itemo {
height: 45rpx;
line-height: 45rpx;
padding: 0 17rpx;
border-radius: 5rpx;
border: 1rpx solid #fff;
margin-right: 25rpx;
font-size: 24rpx;
color: #000000;
flex-shrink: 0;
&.act {
border: 1rpx solid #d0121b;
background: #fff5f5;
color: #d0121b;
}
}
}
.rb {
width: 90rpx;
height: 45rpx;
position: absolute;
top: 0rpx;
right: 0rpx;
text-align: center;
.icon {
font-size: 16rpx;
color: #000;
}
}
.one-c-hide-cons {
position: absolute;
z-index: 1;
width: 100%;
background: #ffffff;
border-radius: 0rpx 0rpx 20rpx 20rpx;
top: -24rpx;
left: 0rpx;
transition: max-height 0.5s;
max-height: 0;
overflow: hidden;
.tit {
padding: 11rpx 30rpx;
font-size: 24rpx;
color: #000000;
margin-bottom: 35rpx;
}
.hide-sec {
flex-wrap: wrap;
padding-left: 60rpx;
padding-bottom: 40rpx;
.itemh {
margin-bottom: 40rpx;
margin-right: 33rpx;
&:nth-child(4n) {
margin-right: 0rpx;
}
image {
display: block;
width: 106rpx;
height: 106rpx;
margin: 0 auto;
}
text {
margin-top: 8rpx;
display: block;
width: 135rpx;
text-align: center;
font-size: 24rpx;
color: #666666;
height: 30rpx;
line-height: 30rpx;
}
&.act {
text {
color: #d0121b;
}
}
}
}
.foot {
height: 87rpx;
font-size: 24rpx;
color: #000000;
border-top: 1rpx solid #d1d1d1;
border-radius: 0rpx 0rpx 20rpx 20rpx;
.icon {
font-size: 16rpx;
margin-left: 20rpx;
}
}
}
&.show {
.one-c-hide-cons {
max-height: 800rpx;
overflow-y: auto;
}
&::after {
content: '';
position: fixed;
left: 0;
top: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.3);
}
}
}
.two-c-box {
margin-top: 20rpx;
height: calc(100vh - 175rpx - 130rpx);
.lc {
width: 225rpx;
height: 100%;
padding-top: 40rpx;
font-size: 24rpx;
color: #666666;
overflow-y: auto;
background: #f8f8f8;
.item {
padding: 15rpx 0;
padding-left: 35rpx;
padding-right: 50rpx;
margin-bottom: 10rpx;
height: 92rpx;
&.act {
color: #000000;
background: #fff;
border-radius: 100rpx 0 0 100rpx;
}
}
}
.rc {
width: 525rpx;
height: 100%;
overflow-y: auto;
padding-left: 35rpx;
.item {
margin-right: 35rpx;
width: 130rpx;
padding-bottom: 20rpx;
//margin-bottom:10rpx;
display: inline-block;
height: 227rpx;
&:nth-child(3n) {
margin-right: 0rpx;
}
image {
width: 130rpx;
height: 130rpx;
margin-bottom: 12rpx;
display: block;
}
text {
color: #000000;
width: 130rpx;
display: block;
line-height: 30rpx;
height: 30rpx;
text-align: center;
font-size: 24rpx;
color: #000000;
}
}
}
}
}
} }
/* #ifdef H5 */ /* #ifdef H5 */
.classNavPage{ .classNavPage {
.two-c-box{ .two-c-box {
height:calc(100vh - 90rpx - 130rpx); height: calc(100vh - 90rpx - 130rpx);
} }
} }
/* #endif */ /* #endif */
\ No newline at end of file
<template> <template>
<view class="rulePage"> <view class="rulePage">
<barX /> <barX />
<view class="header row verCenter"> <view class="header row verCenter">
<text class="icon iconfont icon-arrowleft" @click="$goBack"></text> <text class="icon iconfont icon-arrowleft" @click="$goBack"></text>
<view>{{id==1?'爱智网站服务协议':'爱智网隐私政策'}}</view> <view>{{id==1?'爱智网站服务协议':'爱智隐私政策'}}</view>
</view> </view>
<view class="content" v-html="content"></view> <view class="content" v-html="content"></view>
</view> </view>
</template> </template>
<script> <script>
import { import {
Api_Url Api_Url
} from '@/util/api.js' } from '@/util/api.js'
import barX from '@/components/barx.vue'; import barX from '@/components/barx.vue';
export default { export default {
data() { data() {
return { return {
id:1, id: 1,
content:"" content: ""
} }
}, },
onLoad: function(option) { onLoad: function(option) {
this.id=option.id this.id = option.id
this.getData() this.getData()
}, },
methods: { methods: {
getData(){ getData() {
this.request(Api_Url + '/api/xcx/newsPage', 'GET', {type:this.id}, true).then(res => { this.request(Api_Url + '/api/xcx/newsPage', 'GET', { type: this.id }, true).then(res => {
if(res.code==0){ if (res.code == 0) {
this.content=res.data.content this.content = res.data.content
}else{ } else {
uni.showToast({ uni.showToast({
title: res.msg, title: res.msg,
icon: 'error' icon: 'error'
}); });
} }
}); });
} }
}, },
components: { components: {
barX, barX,
} }
} }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.rulePage{ .rulePage {
.header{ .header {
height:110rpx; height: 110rpx;
padding-left:33rpx; padding-left: 33rpx;
.icon{
font-size: 35rpx; .icon {
color: #898989; font-size: 35rpx;
margin-right:160rpx; color: #898989;
} margin-right: 160rpx;
view{ }
font-weight: 600;
font-size: 32rpx; view {
color: #000000; font-weight: 600;
} font-size: 32rpx;
} color: #000000;
.content{ }
padding:33rpx; }
padding-top:0rpx;
font-size: 26rpx; .content {
color: #000000; padding: 33rpx;
line-height: 50rpx; padding-top: 0rpx;
letter-spacing: 1px; font-size: 26rpx;
overflow-y: auto; color: #000000;
height:calc(100vh - 285rpx); line-height: 50rpx;
/* #ifdef H5 */ letter-spacing: 1px;
height:calc(100vh - 200rpx); overflow-y: auto;
/* #endif */ height: calc(100vh - 285rpx);
} /* #ifdef H5 */
} height: calc(100vh - 200rpx);
/* #endif */
}
}
</style> </style>
\ No newline at end of file
let _env = "" let _env = ""
let api_url="" let api_url = ""
if (process.env.UNI_PLATFORM === 'h5') { // 判断是否为 H5 平台 if (process.env.UNI_PLATFORM === 'h5') { // 判断是否为 H5 平台
if (process.env.NODE_ENV === 'production') { // H5 生产环境 if (process.env.NODE_ENV === 'production') { // H5 生产环境
_env = 'release' _env = 'release'
} else { } else {
_env = 'develop' _env = 'develop'
} }
api_url = _env == 'release' ? 'https://www.iedge.net' : '' api_url = _env == 'release' ? 'https://www.iedge.net' : ''
console.log(api_url,_env) console.log(api_url, _env)
} else if (process.env.UNI_PLATFORM === 'mp-weixin') { // 判断是否为微信小程序平台 } else if (process.env.UNI_PLATFORM === 'mp-weixin') { // 判断是否为微信小程序平台
_env = uni.getAccountInfoSync().miniProgram.envVersion //develop: trial: release: _env = uni.getAccountInfoSync().miniProgram.envVersion //develop: trial: release:
// if (_env != 'develop') { // if (_env != 'develop') {
// _env = 'release' // _env = 'release'
// } // }
api_url = _env == 'release' ? 'https://www.iedge.net' : 'http://iedge.liexindev.net' api_url = _env == 'release' ? 'https://www.iedge.net' : 'http://iedge.liexindev.net'
//api_url ='https://www.iedge.net' //api_url = 'https://www.iedge.net'
console.log(api_url,_env) console.log(api_url, _env)
} else { // 其他平台(如 App 等) } else { // 其他平台(如 App 等)
} }
export const Api_Url=api_url export const Api_Url = api_url
\ No newline at end of file
export default { export default {
data() { data() {
return { return {
miniShareOptions: { miniShareOptions: {
title: '爱智工业平台', title: '爱智工业平台',
path: '/pages/index/index', path: '/pages/index/index',
imageUrl: 'https://img.ichunt.com/images/ichunt/202503/11/8bd43dcc1b28a3fd8c417ac0c6410406.png', imageUrl: 'https://img.ichunt.com/images/ichunt/202503/19/cdaebc710d636541b8d9916210b46a49.png',
desc: '' desc: ''
} }
}; };
}, },
onShareAppMessage() { onShareAppMessage() {
return { return {
...this.miniShareOptions, ...this.miniShareOptions,
success: () => { success: () => {
uni.showToast({ title: '分享成功', icon: 'success' }); uni.showToast({ title: '分享成功', icon: 'success' });
}, },
fail: () => { fail: () => {
uni.showToast({ title: '分享失败', icon: 'none' }); uni.showToast({ title: '分享失败', icon: 'none' });
} }
}; };
}, },
onShareTimeline() { onShareTimeline() {
return { return {
title: '爱智工业平台', title: '爱智工业平台',
path: '/pages/index/index', path: '/pages/index/index',
imageUrl: 'https://img.ichunt.com/images/ichunt/202503/11/8bd43dcc1b28a3fd8c417ac0c6410406.png', imageUrl: 'https://img.ichunt.com/images/ichunt/202503/19/cdaebc710d636541b8d9916210b46a49.png',
success: () => { success: () => {
uni.showToast({ title: '分享成功', icon: 'success' }); uni.showToast({ title: '分享成功', icon: 'success' });
}, },
fail: () => { fail: () => {
uni.showToast({ title: '分享失败', icon: 'none' }); uni.showToast({ title: '分享失败', icon: 'none' });
} }
}; };
} }
}; };
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment