Browse Source

Merge branch 'landong' of https://git.lotus-wallet.com/Loki/zsw-farm-bxg into sxx

home_hotList
whyneedname 2 years ago
parent
commit
05877e2ad7
  1. 2
      components/CountDown.vue
  2. 22
      pages.json
  3. 65
      pages/user/AboutUs/index.vue
  4. 2
      pages/user/PersonalData/index.vue
  5. 177
      pages/user/Problem/index.vue
  6. 10
      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', this.datatime, 'this.time', this.time)
console.log('this.datatime', this.datatime, 'this.time', this.time)
if (this.time.toString().length == 13) {
//
// console.log('')

22
pages.json

@ -528,7 +528,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": {

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>

2
pages/user/PersonalData/index.vue

@ -13,7 +13,7 @@
</view>
<!-- </div> -->
<!-- <image :src="`${$VUE_APP_RESOURCES_URL}/images/alter.png`" class="alter" /> -->
<button class="avatar-wrapper" open-type="chooseAvatar" :chooseavatar="onChooseAvatar"></button>
<button class="avatar-wrapper" open-type="chooseAvatar" @chooseavatar="onChooseAvatar"></button>
</view>
<view class="text">
<view class="name line1">{{ userInfo.nickname || '微信用户' }}</view>

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: 75%;
font-size: 30rpx;
}
padding-bottom: 30rpx;
.img {
width: 30rpx;
height: 20rpx;
}
}
.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>

10
pages/user/User/index.vue

@ -264,22 +264,16 @@ 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: "关于我们",
enName: "ABOUT US",
pic: "../../../static/images/about-us.png",
uniapp_url: "/pages/user/address/AddressManagement/index"
uniapp_url: "/pages/user/AboutUs/index"
}
],
MyMenus2: [
// {
// name: "",
// enName: "Q&A",
// pic: "../../../static/images/Q&A.png",
// uniapp_url: "/pages/user/address/AddressManagement/index"
// },
{
name: "联系客服",
enName: "SERVICE",

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