作者 乔蒙蒙

更改图片地址

... ... @@ -25,13 +25,13 @@ App({
},
/**
* 自定义post函数,返回Promise
* +-------------------
* @param {String} url 接口网址
* @param {arrayObject} data 要传的数组对象 like: {name: 'name', age: 32}
* +-------------------
* @return {Promise} promise 返回promise供后续操作
*/
* 自定义post函数,返回Promise
* +-------------------
* @param {String} url 接口网址
* @param {arrayObject} data 要传的数组对象 like: {name: 'name', age: 32}
* +-------------------
* @return {Promise} promise 返回promise供后续操作
*/
post: function (url, data, headerParams) {
wx.showNavigationBarLoading()
wx.showLoading({
... ... @@ -106,7 +106,7 @@ App({
},
// 动画
// 动画
//渐入,渐出实现
show: function (that, param, opacity) {
var animation = wx.createAnimation({
... ... @@ -153,4 +153,8 @@ App({
//设置动画
that.setData(json)
},
globalData: {
userInfo: null,
baseImgUrl: 'http://pjq0ww1cj.bkt.clouddn.com/'
}
})
\ No newline at end of file
... ...
... ... @@ -9,6 +9,7 @@ Page({
connectButton: [
{ className: "", text: "在线客服", bindtap: "" }
],
baseImgUrl: app.globalData.baseImgUrl,
minscreenHeight: 0,
scrollTop: 0,
name: '',
... ... @@ -140,11 +141,11 @@ Page({
companyStatus: false,
})
}
let AuglyTest_phone = /^1(3|4|5|6|7|8)\d{9}$/;
let AuglyTest_phone = /^1[0-9]{10}$/;
if(!AuglyTest_phone.test(that.data.phone)) {
that.setData({
contactStatus: true,
contactContent: "手机号格式不正确",
contactContent: "联系方式请输入不超过11位数字",
})
// wx.showToast({
// title: '手机号格式不正确',
... ...
<!--pages/about/about.wxml-->
<view class='about_wrap'>
<view class='about_top'>
<image src='http://pjq0ww1cj.bkt.clouddn.com/about.png'></image>
<image src='{{baseImgUrl}}/about.png'></image>
</view>
<view class='about_content'>
<import src="../../wxParse/wxParse.wxml"/>
<template is="wxParse" data="{{wxParseData:content_img.nodes}}"/>
<!-- <image src='http://pjq0ww1cj.bkt.clouddn.com/about_content.png' mode="widthFix"></image> -->
<!-- <image src='{{baseImgUrl}}/about_content.png' mode="widthFix"></image> -->
</view>
<view class='about_contact_way'>
<view class='about_title'>
<image src='http://pjq0ww1cj.bkt.clouddn.com/phone.png'></image>
<image src='{{baseImgUrl}}/phone.png'></image>
<view>联系我们</view>
</view>
<view class='about_contact_box'>
... ... @@ -37,13 +37,13 @@
<!-- 申请 -->
<view class='sub_apply_box'>
<view class='sub_apply_title'>
<image src='http://pjq0ww1cj.bkt.clouddn.com/apply.png'></image>
<image src='{{baseImgUrl}}/apply.png'></image>
</view>
<view class='sub_apply_list'>
<view class='sub_apply_must'>*</view>
<view class='sub_apply_input'>
<view class='sub_input_left'>
<image src='http://pjq0ww1cj.bkt.clouddn.com/user.png' mode="widthFix"></image>
<image src='{{baseImgUrl}}/user.png' mode="widthFix"></image>
</view>
<input type='text' bindchange="nameFun" placeholder="请输入您的姓名" />
<text wx:if="{{nameStatus == true}}">{{nameContent}}</text>
... ... @@ -53,9 +53,9 @@
<view class='sub_apply_must'>*</view>
<view class='sub_apply_input'>
<view class='sub_input_left'>
<image src='http://pjq0ww1cj.bkt.clouddn.com/input_phone.png' mode="widthFix"></image>
<image src='{{baseImgUrl}}/input_phone.png' mode="widthFix"></image>
</view>
<input type='number' maxlength='11' bindchange="phoneFun" placeholder="请输入您的联系方式" />
<input type='number' bindchange="phoneFun" placeholder="请输入您的联系方式" />
<text wx:if="{{contactStatus == true}}">{{contactContent}}</text>
</view>
</view>
... ... @@ -63,24 +63,24 @@
<!-- <view class='sub_apply_must'>*</view> -->
<view class='sub_apply_input' style='margin-left:30rpx;'>
<view class='sub_input_left'>
<image src='http://pjq0ww1cj.bkt.clouddn.com/company.png' mode="widthFix"></image>
<image src='{{baseImgUrl}}/company.png' mode="widthFix"></image>
</view>
<input type='text' bindchange="companyFun" placeholder="请输入您的所在行业" />
<text wx:if="{{companyStatus == true}}">{{companyContent}}</text>
</view>
</view>
<view class='sub_btn' bindtap='subFun'>
<image src='http://pjq0ww1cj.bkt.clouddn.com/sub_btn.png'></image>
<image src='{{baseImgUrl}}/sub_btn.png'></image>
</view>
</view>
<!-- 客服 -->
<view class='chat_peo'>
<button open-type="contact" class='contacButton'>
<image src='http://pjq0ww1cj.bkt.clouddn.com/chat_peo.png'></image>
<image src='{{baseImgUrl}}/chat_peo.png'></image>
</button>
</view>
<!-- 返回顶部 -->
<view class='chat_peo return_top' wx:if="{{scrollTop>minscreenHeight}}" bindtap="goTop" >
<image src='http://pjq0ww1cj.bkt.clouddn.com/dingbu.png'></image>
<image src='{{baseImgUrl}}/dingbu.png'></image>
</view>
</view>
... ...
... ... @@ -10,6 +10,7 @@ Page({
*/
data: {
imgUrls: [],
baseImgUrl: app.globalData.baseImgUrl,
connectButton: [
{ className: "", text: "在线客服", bindtap: "" }
],
... ...
... ... @@ -19,7 +19,7 @@
<!-- 客服 -->
<view class='chat_peo'>
<button open-type="contact" class='contacButton'>
<image src='http://pjq0ww1cj.bkt.clouddn.com/chat_peo.png'></image>
<image src='{{baseImgUrl}}/chat_peo.png'></image>
</button>
</view>
... ...
... ... @@ -17,6 +17,7 @@ Page({
connectButton: [
{ className: "", text: "在线客服", bindtap: "" }
],
baseImgUrl: app.globalData.baseImgUrl,
currentSwiper: 0,
autoplay: true,
interval: 5000,
... ...
... ... @@ -31,40 +31,40 @@
</view>
<view class='case_content'>
<view class='case_list' data-html="政府案例" data-id='1' bindtap='goFun'>
<image src='http://pjq0ww1cj.bkt.clouddn.com/zhengfu.png'></image>
<image src='{{baseImgUrl}}/zhengfu.png'></image>
<view class='case_list_text'>政府</view>
</view>
<view class='case_list' data-html="地产案例" data-id='3' bindtap='goFun'>
<image src='http://pjq0ww1cj.bkt.clouddn.com/dichan.png'></image>
<image src='{{baseImgUrl}}/dichan.png'></image>
<view class='case_list_text'>地产</view>
</view>
<view class='case_list' data-html="制造案例" data-id='2' bindtap='goFun'>
<image src='http://pjq0ww1cj.bkt.clouddn.com/zhizao.png'></image>
<image src='{{baseImgUrl}}/zhizao.png'></image>
<view class='case_list_text'>制造</view>
</view>
<view class='case_list' data-html="教育案例" data-id='5' bindtap='goFun'>
<image src='http://pjq0ww1cj.bkt.clouddn.com/jiaoyu.png'></image>
<image src='{{baseImgUrl}}/jiaoyu.png'></image>
<view class='case_list_text'>教育</view>
</view>
<view class='case_list' data-html="物流案例" data-id='4' bindtap='goFun'>
<image src='http://pjq0ww1cj.bkt.clouddn.com/jinrong.png'></image>
<image src='{{baseImgUrl}}/jinrong.png'></image>
<view class='case_list_text'>物流</view>
</view>
<view class='case_list' data-html="零售案例" data-id='6' bindtap='goFun'>
<image src='http://pjq0ww1cj.bkt.clouddn.com/lingshou.png'></image>
<image src='{{baseImgUrl}}/lingshou.png'></image>
<view class='case_list_text'>零售</view>
</view>
</view>
<view class='drop_img'>
<image src='http://pjq0ww1cj.bkt.clouddn.com/left.png' style='margin-right:200rpx;' bindtap='backFun'></image>
<image src='http://pjq0ww1cj.bkt.clouddn.com/right.png' bindtap="jumpFun"></image>
<image src='{{baseImgUrl}}/left.png' style='margin-right:200rpx;' bindtap='backFun'></image>
<image src='{{baseImgUrl}}/right.png' bindtap="jumpFun"></image>
</view>
</view>
<!-- 客服 -->
<view class='chat_peo' >
<button open-type="contact" class='contacButton'>
<!-- <button open-type="contact" class='contacButton'> -->
<image src='http://pjq0ww1cj.bkt.clouddn.com/chat_peo.png'></image>
<image src='{{baseImgUrl}}/chat_peo.png'></image>
<!-- </button> -->
</button>
</view>
... ...
... ... @@ -11,6 +11,7 @@ Page({
connectButton: [
{ className: "", text: "在线客服", bindtap: "" }
],
baseImgUrl: app.globalData.baseImgUrl,
currentSwiper: 0,
listStatus: 0,
data: {},
... ...
... ... @@ -17,7 +17,7 @@
<image src="{{item.video_img}}"
class="slide-image fmImg" mode="aspectFill">
</image>
<image src='http://pjq0ww1cj.bkt.clouddn.com/video_btn.png' class="video_btn {{item.video_img!==''?'position-ab':''}}"></image>
<image src='{{baseImgUrl}}/video_btn.png' class="video_btn {{item.video_img!==''?'position-ab':''}}"></image>
</block>
<block wx:else>
... ... @@ -63,23 +63,23 @@
<view class='info_list' wx:if="{{listStatus==0}}">
<import src="../../wxParse/wxParse.wxml"/>
<template is="wxParse" data="{{wxParseData:content_1.nodes}}"/>
<!-- <image src="http://pjq0ww1cj.bkt.clouddn.com/jianjie.png" mode='widthFix'></image> -->
<!-- <image src="{{baseImgUrl}}/jianjie.png" mode='widthFix'></image> -->
</view>
<view class='info_list' wx:else>
<import src="../../wxParse/wxParse.wxml"/>
<template is="wxParse" data="{{wxParseData:content_2.nodes}}"/>
<!-- <image src="http://pjq0ww1cj.bkt.clouddn.com/shishi.png" mode='widthFix'></image> -->
<!-- <image src="{{baseImgUrl}}/shishi.png" mode='widthFix'></image> -->
</view>
</view>
</view>
<!-- 客服 -->
<view class='chat_peo'>
<button open-type="contact" class='contacButton'>
<image src='http://pjq0ww1cj.bkt.clouddn.com/chat_peo.png'></image>
<image src='{{baseImgUrl}}/chat_peo.png'></image>
</button>
</view>
<!-- 返回顶部 -->
<view class='chat_peo return_top' wx:if="{{scrollTop>minscreenHeight}}" bindtap="goTop" >
<image src='http://pjq0ww1cj.bkt.clouddn.com/dingbu.png'></image>
<image src='{{baseImgUrl}}/dingbu.png'></image>
</view>
</view>
... ...
// pages/caseList/caseList.js
const app=getApp();
const app = getApp();
Page({
/**
... ... @@ -10,6 +10,7 @@ Page({
{ className: "", text: "在线客服", bindtap: "" }
],
caseList: [],
baseImgUrl: app.globalData.baseImgUrl,
page: 1,
typeId: null,
minscreenHeight: 0,
... ... @@ -49,20 +50,20 @@ Page({
page: that.data.page,
};
app.post(url, data).then((res) => {
console.log('res',res);
console.log('res', res);
let data = [];
if(res.page == 1 && res.list.length == 0) {
if (res.page == 1 && res.list.length == 0) {
that.setData({
jzSuccess: true,
jzSuccessContent: "暂无相关数据",
})
}else if(res.list.length < 10) {
} else if (res.list.length < 10) {
that.setData({
caseList: that.data.caseList.concat(res.list),
jzSuccess: true,
jzSuccessContent: "已加载全部内容",
})
}else {
} else {
that.setData({
caseList: that.data.caseList.concat(res.list),
jzSuccess: false,
... ...
... ... @@ -24,11 +24,11 @@
<!-- 客服 -->
<cover-view class='chat_peo'>
<button open-type="contact" class='contacButton'>
<cover-image src='http://pjq0ww1cj.bkt.clouddn.com/chat_peo.png'></cover-image>
<cover-image src='{{baseImgUrl}}/chat_peo.png'></cover-image>
</button>
</cover-view>
<!-- 返回顶部 -->
<cover-view class='chat_peo return_top' wx:if="{{scrollTop>minscreenHeight}}" bindtap='goTop'>
<cover-image src='http://pjq0ww1cj.bkt.clouddn.com/dingbu.png'></cover-image>
<cover-image src='{{baseImgUrl}}/dingbu.png'></cover-image>
</cover-view>
</view>
... ...
... ... @@ -17,6 +17,7 @@ Page({
connectButton: [
{ className: "", text: "在线客服", bindtap: "" }
],
baseImgUrl: app.globalData.baseImgUrl,
},
changeIndicatorDots(e) {
this.setData({
... ...
... ... @@ -4,28 +4,28 @@
<swiper-item>
<view class='imgPolytope'>
<image src='http://pjq0ww1cj.bkt.clouddn.com/ruiwang_zhutu1.png' class='index_zhutu'></image>
<image src='http://pjq0ww1cj.bkt.clouddn.com/ruiwangfangkuai_1.png' class='image0 image01 heart01'></image>
<image src='http://pjq0ww1cj.bkt.clouddn.com/ruiwangfangkuai_2.png' class='image0 image02 heart01'></image>
<image src='http://pjq0ww1cj.bkt.clouddn.com/ruiwangfangkuai_3.png' class='image0 image03 heart01'></image>
<image src='http://pjq0ww1cj.bkt.clouddn.com/ruiwangfangkuai_4.png' class='image0 image04 heart'></image>
<image src='http://pjq0ww1cj.bkt.clouddn.com/ruiwangfangkuai_5.png' class='image0 image05 heart01'></image>
<image src='http://pjq0ww1cj.bkt.clouddn.com/ruiwangfangkuai_6.png' class='image0 image06 heart02'></image>
<image src='http://pjq0ww1cj.bkt.clouddn.com/ruiwangfangkuai_7.png' class='image0 image07 heart02'></image>
<image src='http://pjq0ww1cj.bkt.clouddn.com/ruiwangfangkuai_8.png' class='image0 image08 heart02'></image>
<image src='http://pjq0ww1cj.bkt.clouddn.com/ruiwangfangkuai_9.png' class='image0 image09 heart01'></image>
<image src='http://pjq0ww1cj.bkt.clouddn.com/ruiwangfangkuai_10.png' class='image0 image10 heart02'></image>
<image src='http://pjq0ww1cj.bkt.clouddn.com/fenxi.png' class='fenxi image0 heart'></image>
<image src='http://pjq0ww1cj.bkt.clouddn.com/guankong.png' class='guankong image0 heart'></image>
<image src='http://pjq0ww1cj.bkt.clouddn.com/jiaohu.png' class='jiaohu image0 heart'></image>
<image src='http://pjq0ww1cj.bkt.clouddn.com/xiezuo.png' class='xiezuo image0 heart'></image>
<image src='{{baseImgUrl}}/ruiwang_zhutu1.png' class='index_zhutu'></image>
<image src='{{baseImgUrl}}/ruiwangfangkuai_1.png' class='image0 image01 heart01'></image>
<image src='{{baseImgUrl}}/ruiwangfangkuai_2.png' class='image0 image02 heart01'></image>
<image src='{{baseImgUrl}}/ruiwangfangkuai_3.png' class='image0 image03 heart01'></image>
<image src='{{baseImgUrl}}/ruiwangfangkuai_4.png' class='image0 image04 heart'></image>
<image src='{{baseImgUrl}}/ruiwangfangkuai_5.png' class='image0 image05 heart01'></image>
<image src='{{baseImgUrl}}/ruiwangfangkuai_6.png' class='image0 image06 heart02'></image>
<image src='{{baseImgUrl}}/ruiwangfangkuai_7.png' class='image0 image07 heart02'></image>
<image src='{{baseImgUrl}}/ruiwangfangkuai_8.png' class='image0 image08 heart02'></image>
<image src='{{baseImgUrl}}/ruiwangfangkuai_9.png' class='image0 image09 heart01'></image>
<image src='{{baseImgUrl}}/ruiwangfangkuai_10.png' class='image0 image10 heart02'></image>
<image src='{{baseImgUrl}}/fenxi.png' class='fenxi image0 heart'></image>
<image src='{{baseImgUrl}}/guankong.png' class='guankong image0 heart'></image>
<image src='{{baseImgUrl}}/jiaohu.png' class='jiaohu image0 heart'></image>
<image src='{{baseImgUrl}}/xiezuo.png' class='xiezuo image0 heart'></image>
</view>
<view class='index_title'>
<view class='title init' animation="{{slide_up1}}">数据分析及可视化</view>
<view class='content contentInit' animation="{{slide_up2}}">大数据探索商业价值的无限可能</view>
</view>
<view class='drop_img heart'>
<image src='http://pjq0ww1cj.bkt.clouddn.com/drop.png'></image>
<image src='{{baseImgUrl}}/drop.png'></image>
</view>
</swiper-item>
<!-- 第二屏 -->
... ... @@ -60,27 +60,27 @@
</view>
<view class='case_content'>
<view class='case_list' data-html="政府案例" data-id='1' bindtap='goFun'>
<image src='http://pjq0ww1cj.bkt.clouddn.com/zhengfu.png'></image>
<image src='{{baseImgUrl}}/zhengfu.png'></image>
<view class='case_list_text'>政府</view>
</view>
<view class='case_list' data-html="地产案例" data-id='3' bindtap='goFun'>
<image src='http://pjq0ww1cj.bkt.clouddn.com/dichan.png'></image>
<image src='{{baseImgUrl}}/dichan.png'></image>
<view class='case_list_text'>地产</view>
</view>
<view class='case_list' data-html="制造案例" data-id='2' bindtap='goFun'>
<image src='http://pjq0ww1cj.bkt.clouddn.com/zhizao.png'></image>
<image src='{{baseImgUrl}}/zhizao.png'></image>
<view class='case_list_text'>制造</view>
</view>
<view class='case_list' data-html="教育案例" data-id='5' bindtap='goFun'>
<image src='http://pjq0ww1cj.bkt.clouddn.com/jiaoyu.png'></image>
<image src='{{baseImgUrl}}/jiaoyu.png'></image>
<view class='case_list_text'>教育</view>
</view>
<view class='case_list' data-html="物流案例" data-id='4' bindtap='goFun'>
<image src='http://pjq0ww1cj.bkt.clouddn.com/jinrong.png'></image>
<image src='{{baseImgUrl}}/jinrong.png'></image>
<view class='case_list_text'>物流</view>
</view>
<view class='case_list' data-html="零售案例" data-id='6' bindtap='goFun'>
<image src='http://pjq0ww1cj.bkt.clouddn.com/lingshou.png'></image>
<image src='{{baseImgUrl}}/lingshou.png'></image>
<view class='case_list_text'>零售</view>
</view>
</view>
... ... @@ -92,7 +92,7 @@
<!-- 客服 -->
<view class='chat_peo'>
<button open-type="contact" class='contacButton'>
<image src='http://pjq0ww1cj.bkt.clouddn.com/chat_peo.png'></image>
<image src='{{baseImgUrl}}/chat_peo.png'></image>
</button>
</view>
... ...