作者 乔蒙蒙

更改客户提出的问题

@@ -15,7 +15,12 @@ Page({ @@ -15,7 +15,12 @@ Page({
15 phone: "", 15 phone: "",
16 company:'', 16 company:'',
17 content_img: "", 17 content_img: "",
18 - hiddenStatus: false, 18 + contactStatus: false,
  19 + contactContent: "",
  20 + nameStatus: false,
  21 + nameContent: "",
  22 + companyStatus: false,
  23 + companyContent: "",
19 }, 24 },
20 onPageScroll: function (e) { // 获取滚动条当前位置 25 onPageScroll: function (e) { // 获取滚动条当前位置
21 // console.log(e) 26 // console.log(e)
@@ -55,7 +60,7 @@ Page({ @@ -55,7 +60,7 @@ Page({
55 let that = this; 60 let that = this;
56 // console.log(e.detail.value) 61 // console.log(e.detail.value)
57 that.setData({ 62 that.setData({
58 - name: e.detail.value, 63 + name: e.detail.value.replace(/\s+/g, ''),
59 }) 64 })
60 }, 65 },
61 // 手机号 66 // 手机号
@@ -63,7 +68,7 @@ Page({ @@ -63,7 +68,7 @@ Page({
63 let that = this; 68 let that = this;
64 // console.log(e.detail.value) 69 // console.log(e.detail.value)
65 that.setData({ 70 that.setData({
66 - phone: e.detail.value, 71 + phone: e.detail.value.replace(/\s+/g, ''),
67 }) 72 })
68 }, 73 },
69 // 行业 74 // 行业
@@ -71,7 +76,7 @@ Page({ @@ -71,7 +76,7 @@ Page({
71 let that = this; 76 let that = this;
72 // console.log(e.detail.value) 77 // console.log(e.detail.value)
73 that.setData({ 78 that.setData({
74 - company: e.detail.value, 79 + company: e.detail.value.replace(/\s+/g, ''),
75 }) 80 })
76 }, 81 },
77 82
@@ -79,38 +84,72 @@ Page({ @@ -79,38 +84,72 @@ Page({
79 subFun: function() { 84 subFun: function() {
80 let url = '/portal/Api/form'; 85 let url = '/portal/Api/form';
81 var that = this; 86 var that = this;
82 - if(that.data.phone == "") {  
83 - wx.showToast({  
84 - title: '请输入手机号!',  
85 - icon: "none",  
86 - }); 87 + if(that.data.name == "") {
  88 + that.setData({
  89 + nameStatus: true,
  90 + nameContent: "请输入姓名",
  91 + })
87 return false; 92 return false;
  93 + }else{
  94 + that.setData({
  95 + nameStatus: false,
  96 + })
88 } 97 }
89 - if(that.data.name == "") {  
90 - wx.showToast({  
91 - title: '请输入姓名!',  
92 - icon: "none", 98 + if (that.data.phone == "") {
  99 + that.setData({
  100 + contactStatus: true,
  101 + contactContent: "请输入联系方式",
93 }) 102 })
94 return false; 103 return false;
  104 + } else {
  105 + that.setData({
  106 + contactStatus: false,
  107 + })
95 } 108 }
96 // console.log(that.data.name.length); 109 // console.log(that.data.name.length);
97 if (that.data.name.length > 10) { 110 if (that.data.name.length > 10) {
98 - wx.setData({  
99 - hiddenStatus: true, 111 + that.setData({
  112 + nameStatus: true,
  113 + nameContent: "姓名请输入不超过10个字",
100 }) 114 })
101 return false; 115 return false;
  116 + } else {
  117 + that.setData({
  118 + nameStatus: false,
  119 + })
  120 + }
  121 + if (that.data.phone.length > 11) {
  122 + that.setData({
  123 + contactStatus: true,
  124 + contactContent: "联系方式请输入不超过11位数字",
  125 + })
  126 + return false;
  127 + } else {
  128 + that.setData({
  129 + contactStatus: false,
  130 + })
  131 + }
  132 + if (that.data.company.length > 10) {
  133 + that.setData({
  134 + companyStatus: true,
  135 + companyContent: "所在行业请输入不超过10个字",
  136 + })
  137 + return false;
  138 + } else {
  139 + that.setData({
  140 + companyStatus: false,
  141 + })
102 } 142 }
103 let AuglyTest_phone = /^1(3|4|5|6|7|8)\d{9}$/; 143 let AuglyTest_phone = /^1(3|4|5|6|7|8)\d{9}$/;
104 if(!AuglyTest_phone.test(that.data.phone)) { 144 if(!AuglyTest_phone.test(that.data.phone)) {
  145 + that.setData({
  146 + contactStatus: true,
  147 + contactContent: "手机号格式不正确",
  148 + })
105 // wx.showToast({ 149 // wx.showToast({
106 - // title: '手机号有误!',  
107 - // icon: "none",  
108 - // duration: 1500 150 + // title: '手机号格式不正确',
  151 + // icon: 'none'
109 // }) 152 // })
110 - wx.showToast({  
111 - title: '手机号有误!',  
112 - icon: 'none'  
113 - })  
114 return false; 153 return false;
115 } 154 }
116 let data = { 155 let data = {
@@ -144,7 +183,9 @@ Page({ @@ -144,7 +183,9 @@ Page({
144 * 生命周期函数--监听页面显示 183 * 生命周期函数--监听页面显示
145 */ 184 */
146 onShow: function () { 185 onShow: function () {
147 - 186 + wx.setNavigationBarTitle({
  187 + title: '关于我们',
  188 + })
148 }, 189 },
149 190
150 /** 191 /**
1 { 1 {
2 - "navigationBarTitleText": "关于我们" 2 + "navigationBarTitleText": ""
3 } 3 }
@@ -45,8 +45,8 @@ @@ -45,8 +45,8 @@
45 <view class='sub_input_left'> 45 <view class='sub_input_left'>
46 <image src='http://pjq0ww1cj.bkt.clouddn.com/user.png' mode="widthFix"></image> 46 <image src='http://pjq0ww1cj.bkt.clouddn.com/user.png' mode="widthFix"></image>
47 </view> 47 </view>
48 - <input type='text' maxlength='10' bindchange="nameFun" placeholder="请输入您的姓名" />  
49 - <text wx:if="{{hiddenStatus == true}}">姓名请输入不超过10个字</text> 48 + <input type='text' bindchange="nameFun" placeholder="请输入您的姓名" />
  49 + <text wx:if="{{nameStatus == true}}">{{nameContent}}</text>
50 </view> 50 </view>
51 </view> 51 </view>
52 <view class='sub_apply_list'> 52 <view class='sub_apply_list'>
@@ -56,6 +56,7 @@ @@ -56,6 +56,7 @@
56 <image src='http://pjq0ww1cj.bkt.clouddn.com/input_phone.png' mode="widthFix"></image> 56 <image src='http://pjq0ww1cj.bkt.clouddn.com/input_phone.png' mode="widthFix"></image>
57 </view> 57 </view>
58 <input type='number' maxlength='11' bindchange="phoneFun" placeholder="请输入您的联系方式" /> 58 <input type='number' maxlength='11' bindchange="phoneFun" placeholder="请输入您的联系方式" />
  59 + <text wx:if="{{contactStatus == true}}">{{contactContent}}</text>
59 </view> 60 </view>
60 </view> 61 </view>
61 <view class='sub_apply_list'> 62 <view class='sub_apply_list'>
@@ -65,6 +66,7 @@ @@ -65,6 +66,7 @@
65 <image src='http://pjq0ww1cj.bkt.clouddn.com/company.png' mode="widthFix"></image> 66 <image src='http://pjq0ww1cj.bkt.clouddn.com/company.png' mode="widthFix"></image>
66 </view> 67 </view>
67 <input type='text' bindchange="companyFun" placeholder="请输入您的所在行业" /> 68 <input type='text' bindchange="companyFun" placeholder="请输入您的所在行业" />
  69 + <text wx:if="{{companyStatus == true}}">{{companyContent}}</text>
68 </view> 70 </view>
69 </view> 71 </view>
70 <view class='sub_btn' bindtap='subFun'> 72 <view class='sub_btn' bindtap='subFun'>
@@ -13,8 +13,7 @@ Page({ @@ -13,8 +13,7 @@ Page({
13 connectButton: [ 13 connectButton: [
14 { className: "", text: "在线客服", bindtap: "" } 14 { className: "", text: "在线客服", bindtap: "" }
15 ], 15 ],
16 - autoplay: true,  
17 - interval: 2000, 16 + autoplay: false,
18 duration: 1000, 17 duration: 1000,
19 circular: true, 18 circular: true,
20 currentSwiper: 0, 19 currentSwiper: 0,
@@ -120,7 +119,9 @@ Page({ @@ -120,7 +119,9 @@ Page({
120 * 生命周期函数--监听页面显示 119 * 生命周期函数--监听页面显示
121 */ 120 */
122 onShow: function () { 121 onShow: function () {
123 - 122 + wx.setNavigationBarTitle({
  123 + title: '应用场景',
  124 + })
124 }, 125 },
125 126
126 /** 127 /**
1 { 1 {
2 - "navigationBarTitleText": "应用场景" 2 + "navigationBarTitleText": ""
3 } 3 }
1 <!--pages/application/application.wxml--> 1 <!--pages/application/application.wxml-->
2 <view class='app_lication_banner'> 2 <view class='app_lication_banner'>
3 - <swiper bindchange='swiperChange' autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" circular="{{circular}}"> 3 + <swiper bindchange='swiperChange' autoplay="{{autoplay}}" duration="{{duration}}" circular="{{circular}}">
4 <block wx:for="{{imgUrls}}" wx:key="index"> 4 <block wx:for="{{imgUrls}}" wx:key="index">
5 <swiper-item> 5 <swiper-item>
6 <!-- catchtouchmove="stopTouchMove" --> 6 <!-- catchtouchmove="stopTouchMove" -->
@@ -19,6 +19,7 @@ Page({ @@ -19,6 +19,7 @@ Page({
19 isPlay: false, 19 isPlay: false,
20 content_1: "", 20 content_1: "",
21 content_2: "", 21 content_2: "",
  22 + srcList: [],
22 }, 23 },
23 changeIndicatorDots(e) { 24 changeIndicatorDots(e) {
24 this.setData({ 25 this.setData({
@@ -65,29 +66,45 @@ Page({ @@ -65,29 +66,45 @@ Page({
65 this.setData({ isPlay: !this.data.isPlay }); 66 this.setData({ isPlay: !this.data.isPlay });
66 }, 67 },
67 //视频暂停 68 //视频暂停
68 - clickStop() {  
69 - this.setData({ isPlay: false });  
70 - }, 69 + // clickStop() {
  70 + // this.setData({ isPlay: false });
  71 + // },
71 swiperChange: function (e) { //切换轮播图 72 swiperChange: function (e) { //切换轮播图
72 this.setData({ 73 this.setData({
73 currentSwiper: e.detail.current 74 currentSwiper: e.detail.current
74 }) 75 })
75 }, 76 },
  77 + /**
  78 + * 预览图片
  79 + */
  80 + previewImage: function (e) {
  81 + console.log(111);
  82 + // var current = e.target.dataset.src;
  83 + wx.previewImage({
  84 + //current: current, // 当前显示图片的http链接
  85 + urls: this.data.srcList // 需要预览的图片http链接列表
  86 + })
  87 + },
76 88
77 /** 89 /**
78 * 生命周期函数--监听页面加载 90 * 生命周期函数--监听页面加载
79 */ 91 */
80 onLoad: function (options) { 92 onLoad: function (options) {
  93 +
81 // console.log(options); 94 // console.log(options);
82 let url = '/portal/Api/category'; 95 let url = '/portal/Api/category';
83 let data = { 96 let data = {
84 categoryId: options.id, 97 categoryId: options.id,
85 }; 98 };
  99 + let srcListArr = [];
86 app.post(url, data).then((res) => { 100 app.post(url, data).then((res) => {
87 // console.log('res', res); 101 // console.log('res', res);
88 for (var index in res.image) { 102 for (var index in res.image) {
89 res.image[index].type = "image"; 103 res.image[index].type = "image";
90 } 104 }
  105 + for (var x = 0; x < res.image.length; x++) {
  106 + srcListArr.push(res.image[x].url);
  107 + }
91 if (res.video_type == true) { 108 if (res.video_type == true) {
92 res.image.splice(0, 0, { 109 res.image.splice(0, 0, {
93 url: res.video, 110 url: res.video,
@@ -95,12 +112,16 @@ Page({ @@ -95,12 +112,16 @@ Page({
95 video_img: res.video_img, 112 video_img: res.video_img,
96 }); 113 });
97 } 114 }
  115 +
  116 +
98 this.setData({ 117 this.setData({
99 imgUrls: res.image, 118 imgUrls: res.image,
100 data: res, 119 data: res,
  120 + srcList: srcListArr,
101 content_1: res.content_1, 121 content_1: res.content_1,
102 content_2: res.content_2, 122 content_2: res.content_2,
103 }); 123 });
  124 + // console.log(srcListArr);
104 WxParse.wxParse('content_1', 'html', this.data.content_1, this, 5); 125 WxParse.wxParse('content_1', 'html', this.data.content_1, this, 5);
105 WxParse.wxParse('content_2', 'html', this.data.content_2, this, 5); 126 WxParse.wxParse('content_2', 'html', this.data.content_2, this, 5);
106 }).catch((err) => { 127 }).catch((err) => {
@@ -120,7 +141,9 @@ Page({ @@ -120,7 +141,9 @@ Page({
120 * 生命周期函数--监听页面显示 141 * 生命周期函数--监听页面显示
121 */ 142 */
122 onShow: function () { 143 onShow: function () {
123 - 144 + wx.setNavigationBarTitle({
  145 + title: '案例详情',
  146 + })
124 }, 147 },
125 148
126 /** 149 /**
1 { 1 {
2 - "navigationBarTitleText": "案例详情" 2 + "navigationBarTitleText": ""
3 } 3 }
@@ -5,29 +5,29 @@ @@ -5,29 +5,29 @@
5 <swiper autoplay="{{false}}" interval="2000" duration="500" circular="{{true}}" bindchange="swiperChange"> 5 <swiper autoplay="{{false}}" interval="2000" duration="500" circular="{{true}}" bindchange="swiperChange">
6 <block wx:for="{{imgUrls}}" wx:key="index"> 6 <block wx:for="{{imgUrls}}" wx:key="index">
7 <swiper-item> 7 <swiper-item>
8 - <!-- <navigator url="{{item.url}}" hover-class="navigator-hover"> --> 8 + <!-- <navigator url="{{item.url}}" hover-class="navigator-hover"> bindpause="clickStop"-->
9 <view class="index_top"> 9 <view class="index_top">
10 - <block wx:if="{{item.type == 'video'}}" >  
11 - <view wx:if="{{isPlay}}" class="video-box" catchtap="play">  
12 - <video src="{{item.url}}" wx:if="{{item.type == 'video'}}" class="slide-image" autoplay="{{true}}"  
13 - controls="{{true}}" bindpause="clickStop"></video>  
14 - </view>  
15 - <view wx:else class="video-box {{item.video_img!==''?'position-re':''}}" catchtap="play">  
16 - <block wx:if="{{item.video_img !== ''}}">  
17 - <image src="{{item.video_img}}"  
18 - class="slide-image fmImg" mode="aspectFill">  
19 - </image>  
20 - <image src='http://pjq0ww1cj.bkt.clouddn.com/video_btn.png' class="video_btn {{item.video_img!==''?'position-ab':''}}"></image>  
21 - <!-- <view class="iconfont icon-ziyuan "></view> -->  
22 - </block>  
23 - <block wx:else>  
24 - <view class="iconfont icon-ziyuan"></view>  
25 - </block>  
26 - </view>  
27 - </block>  
28 - <block wx:else>  
29 - <image src="{{item.url}}" wx:if="{{item.type == 'image'}}" class="slide-image banner" mode="aspectFill"/>  
30 - </block> 10 + <block wx:if="{{item.type == 'video'}}" >
  11 + <!-- <view wx:if="{{isPlay}}" class="video-box" catchtap="play"> -->
  12 + <video src="{{item.url}}" wx:if="{{item.type == 'video'}}" class="slide-image" autoplay="{{false}}"
  13 + controls="{{true}}"></video>
  14 + <!-- </view> -->
  15 + <!-- <view wx:else class="video-box {{item.video_img!==''?'position-re':''}}" catchtap="play"> -->
  16 + <!-- <block wx:if="{{item.video_img !== ''}}">
  17 + <image src="{{item.video_img}}"
  18 + class="slide-image fmImg" mode="aspectFill">
  19 + </image>
  20 + <image src='http://pjq0ww1cj.bkt.clouddn.com/video_btn.png' class="video_btn {{item.video_img!==''?'position-ab':''}}"></image>
  21 +
  22 + </block>
  23 + <block wx:else>
  24 + <view class="iconfont icon-ziyuan"></view>
  25 + </block> -->
  26 + <!-- </view> -->
  27 + </block>
  28 + <block wx:else>
  29 + <image src="{{item.url}}" wx:if="{{item.type == 'image'}}" bindtap='previewImage' class="slide-image banner" mode="aspectFill"/>
  30 + </block>
31 </view> 31 </view>
32 <!-- </navigator> --> 32 <!-- </navigator> -->
33 </swiper-item> 33 </swiper-item>
@@ -12,8 +12,9 @@ Page({ @@ -12,8 +12,9 @@ Page({
12 caseList: [], 12 caseList: [],
13 page: 1, 13 page: 1,
14 typeId: null, 14 typeId: null,
15 - minscreenHeight: 0,  
16 - scrollTop: 0, 15 + minscreenHeight: 0,
  16 + scrollTop: 0,
  17 + jzSuccess: false,
17 }, 18 },
18 19
19 /** 20 /**
@@ -50,10 +51,25 @@ Page({ @@ -50,10 +51,25 @@ Page({
50 app.post(url, data).then((res) => { 51 app.post(url, data).then((res) => {
51 console.log('res',res); 52 console.log('res',res);
52 let data = []; 53 let data = [];
  54 + if(res.page == 1 && res.list.length == 0) {
  55 + that.setData({
  56 + jzSuccess: true,
  57 + jzSuccessContent: "暂无相关数据",
  58 + })
  59 + }else if(res.list.length < 10) {
  60 + that.setData({
  61 + caseList: that.data.caseList.concat(res.list),
  62 + jzSuccess: true,
  63 + jzSuccessContent: "已加载全部内容",
  64 + })
  65 + }else {
  66 + that.setData({
  67 + caseList: that.data.caseList.concat(res.list),
  68 + jzSuccess: false,
  69 + })
  70 + }
53 // data. 71 // data.
54 - that.setData({  
55 - caseList: that.data.caseList.concat(res.list)  
56 - }) 72 +
57 73
58 74
59 }).catch((err) => { 75 }).catch((err) => {
1 { 1 {
2 - "navigationBarTitleText": "政府案例" 2 + "navigationBarTitleText": ""
3 } 3 }
1 <!--pages/caseList/caseList.wxml--> 1 <!--pages/caseList/caseList.wxml-->
2 <view class='case_list_wrap'> 2 <view class='case_list_wrap'>
3 <view class='case_list_box'> 3 <view class='case_list_box'>
4 - <view class='case_list' wx:for="{{caseList}}" wx:key='index'> 4 + <view class='case_list' wx:for="{{caseList}}" wx:key='index' style='padding-bottom: 20rpx;'>
5 <view class='case_top'> 5 <view class='case_top'>
6 <view class='case_title' bindtap='jumpFun' data-id="{{item.id}}">{{item.title}}</view> 6 <view class='case_title' bindtap='jumpFun' data-id="{{item.id}}">{{item.title}}</view>
7 <view class='case_lable_box'> 7 <view class='case_lable_box'>
@@ -13,12 +13,13 @@ @@ -13,12 +13,13 @@
13 <video wx:if="{{item.video_type}}" src='{{item.video}}'></video> 13 <video wx:if="{{item.video_type}}" src='{{item.video}}'></video>
14 <image wx:else src='{{item.first}}'></image> 14 <image wx:else src='{{item.first}}'></image>
15 </view> 15 </view>
16 - <view class='case_bottom_list'> 16 + <view class='case_bottom_list' bindtap='jumpFun' data-id="{{item.id}}" wx:if="{{item.image.length != 0}}">
17 <view class='case_bottom_banner' wx:for="{{item.image}}" wx:key='index'> 17 <view class='case_bottom_banner' wx:for="{{item.image}}" wx:key='index'>
18 - <image mode='widthFix' src='{{item.url}}'></image> 18 + <image src='{{item.url}}'></image>
19 </view> 19 </view>
20 </view> 20 </view>
21 </view> 21 </view>
  22 + <view class='jzSuccess' wx:if="{{jzSuccess == true}}">{{jzSuccessContent}}</view>
22 </view> 23 </view>
23 <!-- 客服 --> 24 <!-- 客服 -->
24 <cover-view class='chat_peo'> 25 <cover-view class='chat_peo'>
@@ -27,6 +27,9 @@ @@ -27,6 +27,9 @@
27 color: #000000; 27 color: #000000;
28 font-weight: bold; 28 font-weight: bold;
29 margin-bottom: 19rpx; 29 margin-bottom: 19rpx;
  30 + overflow: hidden;
  31 + white-space: nowrap;
  32 + text-overflow:ellipsis;
30 } 33 }
31 .case_lable_box { 34 .case_lable_box {
32 display: flex; 35 display: flex;
@@ -59,7 +62,7 @@ @@ -59,7 +62,7 @@
59 } 62 }
60 .case_bottom_list { 63 .case_bottom_list {
61 height: 206rpx; 64 height: 206rpx;
62 - padding: 10rpx 0 50rpx 20rpx; 65 + padding: 10rpx 15rpx 30rpx;
63 display: flex; 66 display: flex;
64 overflow-x: scroll; 67 overflow-x: scroll;
65 overflow-y:hidden; 68 overflow-y:hidden;
@@ -71,13 +74,20 @@ @@ -71,13 +74,20 @@
71 display: flex; 74 display: flex;
72 justify-content: center; 75 justify-content: center;
73 align-items: center; 76 align-items: center;
74 - margin-right: 20rpx; 77 + padding-right:15rpx;
75 } 78 }
76 .case_bottom_banner image { 79 .case_bottom_banner image {
77 width: 212rpx; 80 width: 212rpx;
  81 + height:132rpx;
78 border-radius: 10rpx; 82 border-radius: 10rpx;
79 } 83 }
80 - 84 +.jzSuccess {
  85 + width: 100%;
  86 + margin: 20rpx 0;
  87 + text-align: center;
  88 + font-size: 30rpx;
  89 + color: #4D4D4D;
  90 +}
81 91
82 92
83 93
@@ -13,6 +13,7 @@ Page({ @@ -13,6 +13,7 @@ Page({
13 contact: false, 13 contact: false,
14 current: 0, 14 current: 0,
15 imgUrls: [], 15 imgUrls: [],
  16 + caseStatus: true,
16 connectButton: [ 17 connectButton: [
17 { className: "", text: "在线客服", bindtap: "" } 18 { className: "", text: "在线客服", bindtap: "" }
18 ], 19 ],
@@ -83,10 +84,14 @@ Page({ @@ -83,10 +84,14 @@ Page({
83 let url = 'portal/Api/index'; 84 let url = 'portal/Api/index';
84 app.post(url, {}).then((res) => { 85 app.post(url, {}).then((res) => {
85 // console.log('res',res); 86 // console.log('res',res);
86 - if (res.type) { 87 + if (res.type == true) {
87 this.setData({ 88 this.setData({
88 imgUrls: res.banner 89 imgUrls: res.banner
89 }) 90 })
  91 + }else {
  92 + this.setData({
  93 + caseStatus: false,
  94 + })
90 } 95 }
91 96
92 97
@@ -134,91 +139,4 @@ Page({ @@ -134,91 +139,4 @@ Page({
134 onReachBottom: function() { 139 onReachBottom: function() {
135 140
136 }, 141 },
137 -  
138 -// 第四屏  
139 - // onPageScroll: function (e) { // 获取滚动条当前位置  
140 - // // console.log(e)  
141 - // this.setData({  
142 - // scrollTop: e.scrollTop  
143 - // })  
144 - // },  
145 - // goTop: function () {  
146 - // app.goTop()  
147 - // },  
148 - // // 姓名  
149 - // nameFun: function (e) {  
150 - // let that = this;  
151 - // // console.log(e.detail.value)  
152 - // that.setData({  
153 - // name: e.detail.value,  
154 - // })  
155 - // },  
156 - // // 手机号  
157 - // phoneFun: function (e) {  
158 - // let that = this;  
159 - // // console.log(e.detail.value)  
160 - // that.setData({  
161 - // phone: e.detail.value,  
162 - // })  
163 - // },  
164 - // // 行业  
165 - // companyFun: function (e) {  
166 - // let that = this;  
167 - // // console.log(e.detail.value)  
168 - // that.setData({  
169 - // company: e.detail.value,  
170 - // })  
171 - // },  
172 -  
173 - // // 提交  
174 - // subFun: function () {  
175 - // let url = '/portal/Api/form';  
176 - // var that = this;  
177 - // if (that.data.phone == "") {  
178 - // wx.showToast({  
179 - // title: '请输入手机号!',  
180 - // icon: "none",  
181 - // });  
182 - // return false;  
183 - // }  
184 - // if (that.data.name == "") {  
185 - // wx.showToast({  
186 - // title: '请输入姓名!',  
187 - // icon: "none",  
188 - // })  
189 - // return false;  
190 - // }  
191 - // let AuglyTest_phone = /^1(3|4|5|6|7|8)\d{9}$/;  
192 - // if (!AuglyTest_phone.test(that.data.phone)) {  
193 - // // wx.showToast({  
194 - // // title: '手机号有误!',  
195 - // // icon: "none",  
196 - // // duration: 1500  
197 - // // })  
198 - // wx.showToast({  
199 - // title: '手机号有误!',  
200 - // icon: 'none'  
201 - // })  
202 - // return false;  
203 - // }  
204 - // let data = {  
205 - // name: that.data.name,  
206 - // mobile: that.data.phone,  
207 - // firm: that.data.company,  
208 - // };  
209 - // app.post(url, data).then((res) => {  
210 - // // console.log('res', res);  
211 - // if (res.type == 1) {  
212 - // wx.showToast({  
213 - // title: '成功',  
214 - // icon: 'succes',  
215 - // duration: 1000,  
216 - // mask: true  
217 - // })  
218 - // }  
219 - // }).catch((err) => {  
220 - // console.log(err);  
221 - // })  
222 - // },  
223 -  
224 }) 142 })
@@ -32,7 +32,7 @@ @@ -32,7 +32,7 @@
32 <swiper-item> 32 <swiper-item>
33 <view class='case_wrap'> 33 <view class='case_wrap'>
34 <!--banner --> 34 <!--banner -->
35 - <view class='case_banner_box'> 35 + <view class='case_banner_box' wx:if="{{caseStatus}}">
36 <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" bindchange="swiperChange" duration="{{duration}}" circular="true"> 36 <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" bindchange="swiperChange" duration="{{duration}}" circular="true">
37 <block wx:for="{{imgUrls}}" wx:key> 37 <block wx:for="{{imgUrls}}" wx:key>
38 <swiper-item> 38 <swiper-item>