123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- <template>
- <view class="pages">
- <view class="top">
- <view class="image">
- <image src="../static/logo2.png" ></image>
- </view>
- <view class="">
- 欢迎拨打日月峡森林康养旅行客服电话
- </view>
- <view class="" style="font-size: 28rpx;margin: 20rpx 0 0;box-sizing: border-box;">
- 服务时间 9:00~18:00
- </view>
- </view>
- <view class="footer">
- <view class="number" v-for="item,index in list" :key="index" @click="toPhone(item)" >
- <view class="num" v-if="item.length>0">
- <image src="../static/mobile@2x.png" ></image>
- <text class="" style="margin-left: 20rpx;">
- {{item.length>0?item:''}}
- </text>
- </view>
- <view class="btn" v-if="item.length>0">
- 联系
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default{
- data(){
- return{
- list:[]
- }
- },
- onLoad() {
- this.init()
- },
- onShow() {
- this.initvist()
- },
- methods:{
- initvist(){
- let curPage = getCurrentPages();
- let route = curPage[curPage.length - 1].route; //获取当前页面的路由
- let code=uni.getStorageSync("code")
- let obj={
- page:route,
- code:code
- }
- if(code){
- uni.$u.http.post('/api/visit/add',obj,{
- custom: {
- auth: true
- }
- }).then((res) => {
- }).catch((err) => {
- })
- }
- },
- init(){
- let list=uni.getStorageSync("data")
- // console.log(list[5])
- this.list=list[5].value.phone
- },
- toPhone(item){
- uni.makePhoneCall({
- phoneNumber: item //仅为示例
- });
- }
- }
- }
- </script>
- <style lang="less">
- page{
- background-color: #F4F4F4 ;
- font-size: 32rpx;
- box-sizing: border-box;
- }
- .pages{
- width: 100%;
- height: 100%;
- box-sizing: border-box;
- }
- .top{
- height: 500rpx;
- box-sizing: border-box;
- padding: 108rpx 0 40rpx;
- text-align: center;
- .image{
- box-sizing: border-box;
- margin: 0 auto 60rpx;
-
- }
- image{
- width: 210rpx;
- height: 200rpx;
- }
- }
- .footer{
- box-sizing: border-box;
- height: calc(100vh - 500rpx);
- background: #FFFFFF;
- border-radius: 16rpx 56rpx 0px 0px;
- padding: 76rpx 30rpx 0;
- .number{
- box-sizing: border-box;
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 30rpx;
- image{
- width: 26rpx;
- height: 34rpx;
- margin-bottom: -8rpx;
- }
- // .num{
- // display: flex;
- // align-items: center;
- // }
- }
- .btn{
- box-sizing: border-box;
- color: #1E9F6A;
- width: 154rpx;
- height: 60rpx;
- line-height: 60rpx;
- background: #FFFFFF;
- border-radius: 8rpx 24rpx 8rpx 24rpx;
- border: 1px solid #1E9F6A;
- text-align: center;
- }
- }
- </style>
|