This commit is contained in:
2024-08-22 12:35:26 +08:00
commit d41d4d6cd0
78 changed files with 1179 additions and 0 deletions

1
pages/main/detail.js Normal file
View File

@@ -0,0 +1 @@
var a=require("../../utils/request"),t=require("../../wxParse/wxParse.js");Page({data:{art:null},detail:function(e){var i=this;a.request({url:"/index.php?s=/api/api/detail",method:"GET",showLoading:!1,data:{id:e}}).then((function(a){console.log(a),i.setData({art:a.data.data.res}),t.wxParse("article","html",i.data.art.content,i,5)})).catch((function(a){console.log(a),console.log("ERROR")}))},onLoad:function(a){var t=a.id;this.detail(t)}});

1
pages/main/detail.json Normal file
View File

@@ -0,0 +1 @@
{"usingComponents":{}}

10
pages/main/detail.wxml Normal file
View File

@@ -0,0 +1,10 @@
<import src="../../wxParse/wxParse.wxml"></import>
<view class="page">
<view class="title bdbt">{{art.title}}</view>
<view class="duanluo" style="padding: 10rpx;">
<template is="wxParse" data="{{wxParseData:article.nodes}}"></template>
</view>
<view class="riqi">{{art.create_time}}</view>
</view>
<view class="jszc"></view>
<view style="height:100rpx;"></view>

1
pages/main/detail.wxss Normal file
View File

@@ -0,0 +1 @@
.page{min-height:1000rpx;padding-bottom:20rpx;padding-top:20rpx}.title{font-size:28rpx;line-height:60rpx;padding-bottom:20rpx;text-align:center}.riqi,.title{margin-left:2%;width:96%}.riqi{margin-top:20rpx;text-align:right}.duanluo{line-height:30rpx;margin-left:2%;width:96%}.duanluo image{max-width:100%}.footer{background:#fff;border-top:1rpx solid #e2e2e2;bottom:0;height:140rpx;left:0;position:fixed;width:100%;z-index:10000}

1
pages/main/main.js Normal file

File diff suppressed because one or more lines are too long

1
pages/main/main.json Normal file
View File

@@ -0,0 +1 @@
{"usingComponents":{},"disableScroll":false}

140
pages/main/main.wxml Normal file
View File

@@ -0,0 +1,140 @@
<swiper class="banner">
<swiper-item data-index="{{index}}" wx:for="{{indexData.banner}}" wx:key="index">
<image class="banner-image" src="{{item}}"></image>
</swiper-item>
</swiper>
<view wx:if="{{!sh}}">
<form bindsubmit="fromSubmit" wx:if="{{status=='0'}}">
<view class="table_form">
<view class="input bdbt">
<text>您的称呼</text>
<input name="username" placeholder="请输入您的称呼" type="text"></input>
</view>
<view class="input bdbt">
<text>联系电话</text>
<input name="phone" placeholder="请输入联系电话" type="number"></input>
</view>
<view class="input bdbt">
<text>身份证号码</text>
<input name="number" placeholder="请输入身份证号码" type="idcard"></input>
</view>
<view class="input bdbt">
<text>业务员手机号</text>
<input name="tjr_phone" placeholder="请输入业务员手机号" type="number"></input>
</view>
<text style=" display: block; margin-left: 30rpx;padding-top: 20rpx;">身份证与营业执照图片(选填)</text>
<view class="img-view">
<view class="show" wx:for="{{imgList}}" wx:key="_id">
<image bindtap="previewImg" data-index="{{index}}" mode="aspectFill" src="{{item}}"></image>
<image bindtap="reBackImg" class="del-img" data-index="{{index}}" src="/img/del.png"></image>
</view>
<view bindtap="uploadImage" class="up" wx:if="{{isUp}}">+</view>
</view>
<button class="table_btn" formType="submit" style="background:red">注册并登陆</button>
</view>
</form>
<view wx:if="{{status=='1'}}">
<button class="table_btn" style="background:red">信息正在审核中</button>
</view>
<view wx:if="{{status=='3'}}">
<button class="table_btn" style="background:red">信息审核未通过</button>
</view>
</view>
<view wx:if="{{status=='2'||sh}}">
<view class="block">
<view class="title">
<text>{{timeStr}}最新报价</text>
</view>
<view class="tab-title">
<view bindtap="dowimg" class="item">
<text>下载报价</text>
</view>
</view>
<scroll-view scrollWithAnimation scrollY style="height:calc(45vh)">
<view style="padding: 10rpx; display: flex;">
<view style="width: 50%;">
<view class="news" data-index="{{index}}" wx:for="{{a1000}}" wx:key="index">
<view class="item bdbt">
<view class="tit">1米-普通彩涂-{{item.thickness}}</view>
<view class="riqi" style="color: red;">{{item.priceMax_new}}</view>
</view>
</view>
</view>
<view style="width: 50%;">
<view class="news">
<view class="item bdbt">
<view class="tit">1.2米-普通彩涂-0.09</view>
<view class="riqi" style="color: red;">电议</view>
</view>
</view>
<view class="news">
<view class="item bdbt">
<view class="tit">1.2米-普通彩涂-0.10</view>
<view class="riqi" style="color: red;">电议</view>
</view>
</view>
<view class="news">
<view class="item bdbt">
<view class="tit">1.2米-普通彩涂-0.11</view>
<view class="riqi" style="color: red;">电议</view>
</view>
</view>
<view class="news">
<view class="item bdbt">
<view class="tit">1.2米-普通彩涂-0.12</view>
<view class="riqi" style="color: red;">电议</view>
</view>
</view>
<view class="news" data-index="{{index}}" wx:for="{{a1200}}" wx:key="index">
<view class="item bdbt">
<view class="tit">1.2米-普通彩涂-{{item.thickness}}</view>
<view class="riqi" style="color: red;">{{item.priceMax_new}}</view>
</view>
</view>
</view>
</view>
</scroll-view>
</view>
<view class="block">
<view class="title">
<text>产品中心</text>
</view>
<view class="product">
<scroll-view class="pro" scrollX="true">
<view class="item" data-index="{{index}}" wx:for="{{indexData.a}}" wx:key="index">
<navigator url="/pages/main/detail?id={{item.help_id}}">
<image mode="aspectFit" src="{{item.file.file_path}}"></image>
<view class="name">{{item.title}}</view>
</navigator>
</view>
</scroll-view>
</view>
</view>
<view class="block">
<view class="title">
<text>企业动态</text>
</view>
<view class="news" data-index="{{index}}" wx:for="{{indexData.b}}" wx:key="index">
<navigator url="/pages/main/detail?id={{item.help_id}}">
<view class="item bdbt">
<view class="tit">{{item.title}}</view>
<view class="riqi">{{item.create_time}}</view>
</view>
</navigator>
</view>
</view>
<view class="jszc"></view>
<view style="height:100rpx;"></view>
<view class="footer">
<navigator url="/pages/contact/index?openid={{openid}}">
<view class="lt" style="background:#669dd7">
<image src="/img/home.png"></image>
<text>关于我们</text>
</view>
</navigator>
<view bindtap="calling" class="rt" style="background:red">
<image src="/img/tel.png"></image>
<text>拨打电话</text>
</view>
</view>
</view>

1
pages/main/main.wxss Normal file
View File

@@ -0,0 +1 @@
page{background:#fff}.banner{height:400rpx}.banner-image{height:400rpx;width:100%}.main-menu{background:#fff;display:-webkit-flex;display:flex;justify-content:space-between;margin:0 20rpx;padding:20rpx}.main-menu .item{flex:1;padding:10px;text-align:center}.main-menu .item image{display:block;float:left;height:40rpx;margin-left:20rpx;margin-top:20rpx;width:40rpx}.main-menu .item .icon{border-radius:40rpx;height:80rpx;margin:0 auto;width:80rpx}.main-menu .item text{display:block;font-size:26rpx;height:40rpx;line-height:40rpx;margin-top:10rpx}.tab-title{background:#fff;display:-webkit-flex;display:flex;justify-content:space-between;margin:10rpx 10rpx 0;padding:10rpx}.tab-title .item{border:1rpx solid #666;border-radius:10rpx;flex:1;margin:0 50rpx;padding:10rpx;text-align:center}.img-view{display:-webkit-flex;display:flex;flex-direction:row;flex-wrap:wrap;margin:20rpx;width:710rpx}.img-view .show,.img-view .up{margin:6rpx}.img-view .up{background-color:#ededed;color:#bfbfbf;font-size:100rpx;height:220rpx;line-height:200rpx;text-align:center;width:220rpx}.img-view .show{height:220rpx;position:relative;width:220rpx}.del-img{background-color:#fff;border-bottom-left-radius:10rpx;box-sizing:border-box;height:50rpx!important;padding:8rpx;position:absolute;right:0rpx;top:0rpx;width:50rpx!important;z-index:9998}.img-view .show image{height:100%;width:100%}.onSavebut{background-color:#07c160;color:#fff;width:300rpx}.table_btn{color:#fff;font-size:26rpx;height:80rpx;line-height:80rpx;margin-bottom:20rpx;margin-top:50rpx;text-align:center;width:500rpx}.table_form{background:#fff;height:auto;overflow:hidden}.table_form .input{display:-webkit-flex;display:flex;font-size:26rpx;height:80rpx;line-height:80rpx}.table_form .input text{margin-left:30rpx;width:30%}.table_form .input input{font-size:24rpx;height:80rpx;margin-right:30rpx;width:70%}.footer{background:#fff;border-top:1rpx solid #e2e2e2;bottom:0;height:140rpx;left:0;position:fixed;width:100%;z-index:10000}.product{height:auto;margin-left:2%;padding-top:10rpx;width:96%}.product .pro{float:left;height:200rpx;overflow:hidden;white-space:nowrap;width:100%}.product .item{display:inline-block;height:200rpx;margin-left:10rpx;width:200rpx}.product .item image{display:block;height:160rpx;width:200rpx}.product .item .name{display:inline-block;height:40rpx;line-height:40rpx;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap;width:200rpx}.news .item .riqi{color:#666;float:right;margin-right:45rpx}