Browse Source

常见问题、关于我们页面

home_hotList
ld0104 2 years ago
parent
commit
20b2bf5be7
  1. 2
      components/CountDown.vue
  2. 22
      pages.json
  3. 1
      pages/shop/GoodsCon/index.vue
  4. 65
      pages/user/AboutUs/index.vue
  5. 177
      pages/user/Problem/index.vue
  6. 4
      pages/user/User/index.vue
  7. BIN
      static/images/guanyu.jpg
  8. BIN
      static/images/picker-down.png
  9. BIN
      static/images/picker-up.png

2
components/CountDown.vue

@ -78,7 +78,7 @@ export default {
},
methods: {
show_time() {
console.log(this.datatime)
console.log(this.datatime,'==========================')
console.log('sdfasdgasdgad', this.time)
if (this.time.toString().length == 13) {
//

22
pages.json

@ -517,7 +517,27 @@
"navigationStyle": "custom"
}
}
],
,{
"path" : "pages/user/Problem/index",
"style" :
{
"navigationBarTitleText": "常见问题",
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
},
{
"path" : "pages/user/AboutUs/index",
"style" :
{
"navigationBarTitleText": "关于我们",
"enablePullDownRefresh": false,
"navigationStyle": "custom"
}
}
],
"easycom": {
"autoscan": true,
"custom": {

1
pages/shop/GoodsCon/index.vue

@ -381,6 +381,7 @@ export default {
let url = handleQrCode()
if (!url) {
url = handleUrlParam(getCurrentPageUrlWithArgs())
console.log(url,'================-');
}
const token = cookie.get('login_status')

65
pages/user/AboutUs/index.vue

@ -0,0 +1,65 @@
<template>
<view>
<view class="header">
<cu-custom :isBack="true" :isCenter="true">
<block slot="backText">
<view class="backImg">
<image src="@/static/images/back-btn.png" mode="" ></image>
</view>
</block>
<block slot="content">
<view class="tab-title">关于我们</view>
</block>
</cu-custom>
</view>
<view class="">
<image class="img" src="../../../static/images/guanyu.jpg" mode="widthFix"></image>
</view>
</view>
</template>
<script>
import Tabbar from '@/components/Tabbar';
export default {
data() {
return {
};
},
methods: {
}
}
</script>
<style lang="less" scoped>
.header {
.tab-title {
font-size: 32rpx;
font-family: PingFang SC;
font-weight: 600;
color: #2DB5AE;
line-height: 42rpx;
}
.backImg {
width: 88rpx;
height: 62rpx;
padding-left: 26rpx;
image {
width: 100%;
height: 100%;
}
}
}
.img{
width: 100%;
// height: 100%;
}
</style>

177
pages/user/Problem/index.vue

@ -0,0 +1,177 @@
<template>
<view>
<view class="header">
<cu-custom :isBack="true" :isCenter="true">
<block slot="backText">
<view class="backImg">
<image src="@/static/images/back-btn.png" mode=""></image>
</view>
</block>
<block slot="content">
<view class="tab-title">常见问题</view>
</block>
</cu-custom>
</view>
<view class="problem-box" v-for="(item,index) in problemList" :key="index">
<view class="problem-item acea-row row-between row-middle" @click="tapSwitch(index)">
<view class="text-box line2">
Q{{index+1}}{{item.title}}
</view>
<image class="img" :src="`../../../static/images/picker-${number==index?'up':'down'}.png`" mode="">
</image>
</view>
<view class="problem-list" v-if="index==number">
<view class="item" v-for="(c,i) in item.chlidren" :key="i">
{{c}}
</view>
</view>
</view>
<!-- <Tabbar :pagePath="pagePath"></Tabbar> -->
</view>
</template>
<script>
import Tabbar from '@/components/Tabbar';
export default {
components: {
Tabbar,
},
data() {
return {
number: 0,
// problemList:[
// {
// title:"",
// chlidren:[
// ': ',
// '',
// ''
// ]
// },
// {
// title:"",
// chlidren:[
// '',
// '',
// ''
// ]
// },
// {
// title:"",
// chlidren:[
// '',
// '',
// ''
// ]
// }
// ],
problemList: [{
title: "可以在哪里买门票可以在哪里买门可以在哪里买门票可以在哪里买门可以在哪里买门票可以在哪里买门可以在哪里买门票可以在哪里买门",
chlidren: '问题一: 可以在哪里买门票可以在哪里买门可;问题二: 以在哪里买门票可以在哪里买门可以在哪里买门;问题二: 票可以在哪里买门可以在哪里买门票可以在哪里买门',
},
{
title: "可以在哪里买门票可以在哪里买门",
chlidren: '问题一: 可以在哪里买门票可以在哪里买门可;问题二: 以在哪里买门票可以在哪里买门可以在哪里买门;问题二: 票可以在哪里买门可以在哪里买门票可以在哪里买门',
},
{
title: "可以在哪里买门票可以在哪里买门",
chlidren: '问题一: 可以在哪里买门票可以在哪里买门可;问题二: 以在哪里买门票可以在哪里买门可以在哪里买门;问题二: 票可以在哪里买门可以在哪里买门票可以在哪里买门',
}
]
};
},
onLoad() {
// uni.hideTabBar();
// let pages = getCurrentPages();
// this.pagePath = '/' + pages[pages.length - 1].route;
this.problemList.forEach(item => {
item.chlidren = item.chlidren.split(';')
console.log(item, '---------------');
})
console.log(this.problemList, '=============');
},
methods: {
tapSwitch(index) {
if (this.number === index) {
this.number = -1
return
}
this.number = index
}
}
}
</script>
<style lang="less" scoped>
.header {
.tab-title {
font-size: 32rpx;
font-family: PingFang SC;
font-weight: 600;
color: #2DB5AE;
line-height: 42rpx;
}
.backImg {
width: 88rpx;
height: 62rpx;
padding-left: 26rpx;
image {
width: 100%;
height: 100%;
}
}
}
.problem-box {
margin: 30rpx;
padding: 30rpx 30rpx 0 30rpx;
background-color: white;
border-radius: 16rpx;
.problem-item {
flex-wrap: nowrap;
.text-box {
width: 550rpx;
font-size: 30rpx;
}
padding-bottom: 30rpx;
.img {
width: 40rpx;
height: 30rpx;
}
}
.problem-list {
border-top: 1rpx solid rgb(240, 240, 240);
.item {
margin-top: 20rpx;
font-size: 24rpx;
color: #999;
}
}
.problem-list:last-child {
padding-bottom: 30rpx;
}
}
</style>

4
pages/user/User/index.vue

@ -264,7 +264,7 @@ export default {
name: "关于我们",
enName: "ABOUT US",
pic: "../../../static/images/about-us.png",
uniapp_url: "/pages/user/address/AddressManagement/index"
uniapp_url: "/pages/user/AboutUs/index"
}
],
MyMenus2: [
@ -272,7 +272,7 @@ export default {
name: "常见问题",
enName: "Q&A",
pic: "../../../static/images/Q&A.png",
uniapp_url: "/pages/user/address/AddressManagement/index"
uniapp_url: "/pages/user/Problem/index"
},
{
name: "联系客服",

BIN
static/images/guanyu.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 374 KiB

BIN
static/images/picker-down.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 420 B

BIN
static/images/picker-up.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 391 B

Loading…
Cancel
Save