微调
This commit is contained in:
@@ -233,6 +233,13 @@
|
|||||||
"navigationBarTitleText" : "news",
|
"navigationBarTitleText" : "news",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path" : "pages/course/index",
|
||||||
|
"style" :
|
||||||
|
{
|
||||||
|
"navigationBarTitleText" : "课程列表"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
|
|||||||
82
pages/course/index.vue
Normal file
82
pages/course/index.vue
Normal file
@@ -0,0 +1,82 @@
|
|||||||
|
<template>
|
||||||
|
<view>
|
||||||
|
<!-- 公共组件-每个页面必须引入 -->
|
||||||
|
<public-module></public-module>
|
||||||
|
<z-nav-bar title="消息详情"></z-nav-bar>
|
||||||
|
<view class="box">
|
||||||
|
<view class="title">
|
||||||
|
{{news.title}}
|
||||||
|
</view>
|
||||||
|
<view class="content" v-html="news.content"></view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<music-play :playData="playData"></music-play>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import musicPlay from '@/components/music.vue'
|
||||||
|
import $http from '@/config/requestConfig.js';
|
||||||
|
var clear;
|
||||||
|
import {
|
||||||
|
mapState
|
||||||
|
} from 'vuex';
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
playData: {},
|
||||||
|
newsId: null,
|
||||||
|
news: {
|
||||||
|
content: '',
|
||||||
|
title: ''
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
//第一次加载
|
||||||
|
onLoad(e) {
|
||||||
|
// 隐藏原生的tabbar
|
||||||
|
uni.hideTabBar();
|
||||||
|
this.newsId = e.newsid
|
||||||
|
console.log(e, '------')
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
...mapState(['userInfo'])
|
||||||
|
},
|
||||||
|
//页面显示
|
||||||
|
onShow() {
|
||||||
|
// 隐藏原生的tabbar
|
||||||
|
uni.hideTabBar();
|
||||||
|
this.getData();
|
||||||
|
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
musicPlay
|
||||||
|
},
|
||||||
|
//方法
|
||||||
|
methods: {
|
||||||
|
getData() {
|
||||||
|
this.$http
|
||||||
|
.post('common/message/getMessageById?id=' + this.newsId)
|
||||||
|
.then(res => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.news.content = res.result.content
|
||||||
|
this.news.title = res.result.title
|
||||||
|
}
|
||||||
|
}).catch(e => {
|
||||||
|
console.log(e, '获取新闻详情报错')
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
@import '@/style/mixin.scss';
|
||||||
|
|
||||||
|
.box {
|
||||||
|
background-color: #fff;
|
||||||
|
@include pleft_right(10px);
|
||||||
|
min-height: calc(100vh - 70rpx);
|
||||||
|
}
|
||||||
|
.title{font-size: 32rpx; font-weight: bold; display: block; text-align: center;}
|
||||||
|
.content { font-size: 26rpx; line-height: 48rpx; margin-top: 10rpx;}
|
||||||
|
</style>
|
||||||
@@ -20,15 +20,7 @@
|
|||||||
var clear;
|
var clear;
|
||||||
import {
|
import {
|
||||||
mapState
|
mapState
|
||||||
} from 'vuex';
|
} from 'vuex';
|
||||||
// 密码验证的正则
|
|
||||||
//1、密码为八位及以上并且字母数字特殊字符三项都包括
|
|
||||||
var strongRegex = new RegExp("^(?=.{8,})(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*\\W).*$", "g");
|
|
||||||
//2、密码为八位及以上并且字母、数字、特殊字符三项中有两项,强度是中等
|
|
||||||
var mediumRegex = new RegExp(
|
|
||||||
"^(?=.{8,})(((?=.*[A-Z])(?=.*[a-z]))|((?=.*[A-Z])(?=.*[0-9]))|((?=.*[a-z])(?=.*[0-9]))|((?=.*[a-z])(?=.*\\W))|((?=.*[0-9])(?=.*\\W))|((?=.*[A-Z])(?=.*\\W))).*$",
|
|
||||||
"g");
|
|
||||||
var enoughRegex = new RegExp("(?=.{8,}).*", "g");
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -101,7 +101,7 @@
|
|||||||
<view class="borderbb">
|
<view class="borderbb">
|
||||||
<view class=" main">
|
<view class=" main">
|
||||||
<view class="flexbox">
|
<view class="flexbox">
|
||||||
<view class="item" v-for="(item, index) in tjProList" :key="index">
|
<view class="item" v-for="(item, index) in tjProList" :key="index" @click="onPageJump('/pages/bookShop/commodityDetail',item.productId)">
|
||||||
<view class="imgcontainer">
|
<view class="imgcontainer">
|
||||||
<image :src="item.productImages" mode="aspectFit"></image>
|
<image :src="item.productImages" mode="aspectFit"></image>
|
||||||
</view>
|
</view>
|
||||||
@@ -139,7 +139,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<scroll-view class="scroll-view_H" scroll-x="true">
|
<scroll-view class="scroll-view_H" scroll-x="true">
|
||||||
<!-- <view class=""> -->
|
<!-- <view class=""> -->
|
||||||
<view class="item" v-for="(item, index) in seckillList" :key="index">
|
<view class="item" v-for="(item, index) in seckillList" :key="index" @click="onPageJump('/pages/bookShop/commodityDetail',item.productId)">
|
||||||
<view class="imgcontainer">
|
<view class="imgcontainer">
|
||||||
<image :src="item.productImages" mode="aspectFit"></image>
|
<image :src="item.productImages" mode="aspectFit"></image>
|
||||||
</view>
|
</view>
|
||||||
@@ -332,11 +332,11 @@
|
|||||||
id ? ftag = id : ftag = 0
|
id ? ftag = id : ftag = 0
|
||||||
|
|
||||||
$http.request({
|
$http.request({
|
||||||
url: "medical/home/getMedicalLabels",
|
url: "curseTagList",
|
||||||
method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
|
method: "POST", // POST、GET、PUT、DELETE,具体说明查看官方文档
|
||||||
data: {
|
// data: {
|
||||||
'id': ftag
|
// 'id': ftag
|
||||||
},
|
// },
|
||||||
header: { //默认 无 说明:请求头
|
header: { //默认 无 说明:请求头
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
},
|
},
|
||||||
@@ -519,9 +519,9 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
// 跳转
|
// 跳转
|
||||||
onPageJump(url) {
|
onPageJump(url,thatId) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: url
|
url: `${url}?id=${thatId}`
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user