commit d41d4d6cd0d382eee18272a59fc097f829b99fbd Author: iuu <2167162990@qq.com> Date: Thu Aug 22 12:35:26 2024 +0800 init diff --git a/@babel/runtime/helpers/asyncToGenerator.js b/@babel/runtime/helpers/asyncToGenerator.js new file mode 100644 index 0000000..eef7f51 --- /dev/null +++ b/@babel/runtime/helpers/asyncToGenerator.js @@ -0,0 +1 @@ +function asyncGeneratorStep(n,e,r,t,o,a,c){try{var i=n[a](c),u=i.value}catch(n){return void r(n)}i.done?e(u):Promise.resolve(u).then(t,o)}function _asyncToGenerator(n){return function(){var e=this,r=arguments;return new Promise((function(t,o){var a=n.apply(e,r);function c(n){asyncGeneratorStep(a,t,o,c,i,"next",n)}function i(n){asyncGeneratorStep(a,t,o,c,i,"throw",n)}c(void 0)}))}}module.exports=_asyncToGenerator; \ No newline at end of file diff --git a/@babel/runtime/helpers/regeneratorRuntime.js b/@babel/runtime/helpers/regeneratorRuntime.js new file mode 100644 index 0000000..0c7dacc --- /dev/null +++ b/@babel/runtime/helpers/regeneratorRuntime.js @@ -0,0 +1 @@ +var t=require("./typeof");function r(){module.exports=r=function(){return e},module.exports.__esModule=!0,module.exports.default=module.exports;var e={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,r,e){t[r]=e.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function h(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{h({},"")}catch(t){h=function(t,r,e){return t[r]=e}}function f(t,r,e,n){var o=r&&r.prototype instanceof d?r:d,a=Object.create(o.prototype),c=new k(n||[]);return i(a,"_invoke",{value:E(t,e,c)}),a}function s(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p={};function d(){}function v(){}function y(){}var g={};h(g,c,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(G([])));w&&w!==n&&o.call(w,c)&&(g=w);var x=y.prototype=d.prototype=Object.create(g);function L(t){["next","throw","return"].forEach((function(r){h(t,r,(function(t){return this._invoke(r,t)}))}))}function b(r,e){function n(i,a,c,u){var l=s(r[i],r,a);if("throw"!==l.type){var h=l.arg,f=h.value;return f&&"object"==t(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):e.resolve(f).then((function(t){h.value=t,c(h)}),(function(t){return n("throw",t,c,u)}))}u(l.arg)}var a;i(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return a=a?a.then(o,o):o()}})}function E(t,r,e){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return N()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=_(a,e);if(c){if(c===p)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var u=s(t,r,e);if("normal"===u.type){if(n=e.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n="completed",e.method="throw",e.arg=u.arg)}}}function _(t,r){var e=r.method,n=t.iterator[e];if(void 0===n)return r.delegate=null,"throw"===e&&t.iterator.return&&(r.method="return",r.arg=void 0,_(t,r),"throw"===r.method)||"return"!==e&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+e+"' method")),p;var o=s(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,p;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,p):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function O(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function j(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function G(t){if(t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,n=function r(){for(;++e=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--e){var n=this.tryEntries[e];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),j(e),p}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;j(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:G(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),p}},e}module.exports=r,module.exports.__esModule=!0,module.exports.default=module.exports; \ No newline at end of file diff --git a/@babel/runtime/helpers/typeof.js b/@babel/runtime/helpers/typeof.js new file mode 100644 index 0000000..b677947 --- /dev/null +++ b/@babel/runtime/helpers/typeof.js @@ -0,0 +1 @@ +function _typeof(o){return module.exports=_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}module.exports=_typeof; \ No newline at end of file diff --git a/app.js b/app.js new file mode 100644 index 0000000..dd5d122 --- /dev/null +++ b/app.js @@ -0,0 +1 @@ +App({onLaunch:function(){var t=wx.getStorageSync("logs")||[];t.unshift(Date.now()),wx.setStorageSync("logs",t)},getUserInfo:function(t){var n=this;this.globalData.userInfo?"function"==typeof t&&t(this.globalData.userInfo):wx.getUserInfo({withCredentials:!1,success:function(o){n.globalData.userInfo=o.userInfo,"function"==typeof t&&t(n.globalData.userInfo)}})},globalData:{userInfo:null}}); \ No newline at end of file diff --git a/app.json b/app.json new file mode 100644 index 0000000..991961b --- /dev/null +++ b/app.json @@ -0,0 +1,21 @@ +{ + "window": { + "backgroundTextStyle": "light", + "navigationBarBackgroundColor": "#fff", + "navigationBarTitleText": "鑫跃达新型材料实时价格表", + "navigationBarTextStyle": "black" + }, + "pages": [ + "pages/main/main", + "pages/main/detail", + "pages/index/index", + "pages/case/index", + "pages/product/index", + "pages/news/index", + "pages/contact/index", + "pages/news/detail", + "pages/case/detail", + "pages/contact/liuyan", + "pages/product/detail" + ] +} \ No newline at end of file diff --git a/app.wxss b/app.wxss new file mode 100644 index 0000000..909e09a --- /dev/null +++ b/app.wxss @@ -0,0 +1 @@ +page{background:#f2f2f2;font-size:24rpx}.menu_bg_01{background:#f57d5b}.menu_bg_02{background:#4ac6ea}.menu_bg_03{background:#b2de27}.menu_bg_04{background:#f97ba0}.menu_bg_05{background:#6495ed}.more,.nomore{background:#fff;border-top:1rpx solid #f2f2f2;font-size:26rpx;height:60rpx;line-height:60rpx;margin:10rpx auto 0;text-align:center;width:96%}.nomore{color:#ccc}.jszc{color:#ccc;line-height:80rpx;overflow:hidden;text-align:center}.footer,.jszc{height:80rpx;width:100%}.footer{background:#fff;border-top:1rpx solid #e2e2e2;bottom:0;left:0;position:fixed;z-index:10000}.footer .lt,.footer .rt{float:left;font-size:26rpx;height:80rpx;line-height:80rpx;text-align:center;width:50%}.footer .rt{color:#fff}.footer image{float:left;height:40rpx;margin-left:100rpx;margin-top:20rpx;width:40rpx}.footer text{float:left;margin-left:10rpx}.menu{background:#fff;display:-webkit-flex;display:flex;justify-content:space-between;margin:20rpx;padding:20rpx}.menu .item{flex:1;padding:10px;text-align:center}.menu .item image{display:block;float:left;height:40rpx;margin-left:20rpx;margin-top:20rpx;width:40rpx}.menu .item .icon{border-radius:40rpx;height:80rpx;margin:0 auto;width:80rpx}.menu .item text{display:block;font-size:26rpx;height:40rpx;line-height:40rpx;margin-top:10rpx}.block{background:#fff;height:auto;margin-left:2%;margin-top:20rpx;overflow:hidden;padding-bottom:20rpx;padding-top:10rpx;width:96%}.block .title{border-bottom:1rpx solid #f2f2f2;font-size:28rpx;height:70rpx;line-height:70rpx;margin-left:3%;text-align:center;width:96%}.slide-image{height:360rpx;width:100%}.about{font-size:24rpx;line-height:36rpx;margin-left:2%;margin-top:20rpx;width:96%}.block .title .more1{color:#8a8a8a;float:right;font-size:22rpx;margin-right:10rpx}.case{font-size:24rpx;margin-left:2%;margin-top:20rpx;width:96%}.bdbt{border-bottom:1rpx solid #f2f2f2}.case .item{height:200rpx;margin-top:20rpx;width:100%}.case .item .lt{float:left;width:200rpx}.case .item .lt image{height:160rpx;padding:20rpx 0;width:200rpx}.case .item .rt{float:left;margin-left:10rpx;width:480rpx}.case .item .rt .tit{font-size:26rpx;height:60rpx;line-height:60rpx;padding:15rpx 0}.case .item .rt .info{-webkit-box-orient:vertical;-webkit-line-clamp:3;color:#666;display:-webkit-box;height:auto;line-height:30rpx;overflow:hidden;text-overflow:ellipsis;width:100%;word-break:break-all}.news{margin-left:2%;width:96%}.news .item{height:60rpx;line-height:60rpx;margin-top:10rpx}.news .item .tit{-webkit-box-orient:vertical;-webkit-line-clamp:1;display:-webkit-box;float:left;font-size:24rpx;overflow:hidden;text-overflow:ellipsis;word-break:break-all}.page{margin-left:2%;width:96%}.page,.table_form{background:#fff;height:auto;margin-top:20rpx}.table_form{overflow:hidden;padding-bottom:10rpx;padding-top:10rpx}.table_form .input{font-size:26rpx;height:80rpx;line-height:80rpx}.table_form .input text{float:left;margin-left:2%;width:20%}.table_form .input input{float:left;font-size:24rpx;height:80rpx;margin-left:5rpx;width:70%}.table_form .input radio-group{color:#666;float:left;font-size:24rpx;margin-left:5rpx}.table_form .input radio{transform:scale(.8)}.table_form .photolist{height:auto;margin-left:2%;overflow:hidden;width:96%}.table_form .photolist .title{float:left;font-size:26rpx;height:100rpx;line-height:100rpx;width:20%}.table_form .photolist .action{float:left;height:100rpx;margin-left:10rpx;width:70%}.table_form .photolist .action image{height:100rpx;width:100rpx}.table_form .photolist .photos{float:left;height:auto;margin-top:20rpx;overflow:hidden;width:100%}.table_form .photolist .photos .item{float:left;height:150rpx;margin-left:20rpx;margin-top:20rpx;width:150rpx}.table_form .photolist image{float:left;height:120rpx;margin-right:10rpx;width:120rpx}.table_form .picker{font-size:26rpx;height:80rpx;line-height:80rpx}.table_form .map{height:80rpx;line-height:80rpx;overflow:hidden}.table_form .map .lt{float:left;font-size:26rpx;margin-left:2%;width:20%}.table_form .map .ct{float:left;height:80rpx;margin-left:5rpx;overflow:hidden;width:60%}.table_form .map image{float:right;height:40rpx;margin-right:10rpx;margin-top:20rpx;width:40rpx}.table_form .picker .lt{float:left;margin-left:2%;width:20%}.table_form .picker .ct{color:#666;float:left;font-size:24rpx;margin-left:5rpx;text-align:right;width:60%}.table_form .picker .rt{float:right;height:40rpx;margin-right:10rpx;margin-top:20rpx;width:40rpx}.table_form .textarea{font-size:26rpx;height:200rpx;margin-left:2%;width:96%}.table_form .textarea text{float:left;line-height:200rpx;width:20%}.table_form .textarea textarea{border:1rpx dotted #f2f2f2;float:left;font-size:24rpx;height:150rpx;margin-left:5rpx;margin-top:25rpx;padding:10rpx;width:70%}.table_form .logo{font-size:26rpx;height:100rpx}.table_form .logo .lt{float:left;height:100rpx;line-height:100rpx;margin-left:2%;width:20%}.table_form .logo image{float:left;height:100rpx;margin-left:5rpx;margin-right:25rpx;width:100rpx}.table_btn{color:#fff;font-size:26rpx;height:80rpx;line-height:80rpx;margin-top:20rpx;text-align:center;width:500rpx}::-webkit-scrollbar{color:transparent;height:0;width:0} \ No newline at end of file diff --git a/img/banner.jpg b/img/banner.jpg new file mode 100644 index 0000000..020690d Binary files /dev/null and b/img/banner.jpg differ diff --git a/img/case.png b/img/case.png new file mode 100644 index 0000000..a5ab446 Binary files /dev/null and b/img/case.png differ diff --git a/img/contact.png b/img/contact.png new file mode 100644 index 0000000..595ff3e Binary files /dev/null and b/img/contact.png differ diff --git a/img/del.png b/img/del.png new file mode 100644 index 0000000..39f89e5 Binary files /dev/null and b/img/del.png differ diff --git a/img/home.png b/img/home.png new file mode 100644 index 0000000..7b261cf Binary files /dev/null and b/img/home.png differ diff --git a/img/news.png b/img/news.png new file mode 100644 index 0000000..68d7ca6 Binary files /dev/null and b/img/news.png differ diff --git a/img/p1.jpg b/img/p1.jpg new file mode 100644 index 0000000..92170fd Binary files /dev/null and b/img/p1.jpg differ diff --git a/img/p1.png b/img/p1.png new file mode 100644 index 0000000..7617242 Binary files /dev/null and b/img/p1.png differ diff --git a/img/p2.jpg b/img/p2.jpg new file mode 100644 index 0000000..e8137d4 Binary files /dev/null and b/img/p2.jpg differ diff --git a/img/p2.png b/img/p2.png new file mode 100644 index 0000000..e5596d0 Binary files /dev/null and b/img/p2.png differ diff --git a/img/p3.jpg b/img/p3.jpg new file mode 100644 index 0000000..d50b8ec Binary files /dev/null and b/img/p3.jpg differ diff --git a/img/p3.png b/img/p3.png new file mode 100644 index 0000000..e0ff82d Binary files /dev/null and b/img/p3.png differ diff --git a/img/p4.jpg b/img/p4.jpg new file mode 100644 index 0000000..d59c37f Binary files /dev/null and b/img/p4.jpg differ diff --git a/img/pk_jt.png b/img/pk_jt.png new file mode 100644 index 0000000..fe90a49 Binary files /dev/null and b/img/pk_jt.png differ diff --git a/img/product.png b/img/product.png new file mode 100644 index 0000000..c49201b Binary files /dev/null and b/img/product.png differ diff --git a/img/tel.png b/img/tel.png new file mode 100644 index 0000000..9a9c6ba Binary files /dev/null and b/img/tel.png differ diff --git a/img/yj.png b/img/yj.png new file mode 100644 index 0000000..c2fa0ef Binary files /dev/null and b/img/yj.png differ diff --git a/pages/case/detail.js b/pages/case/detail.js new file mode 100644 index 0000000..85a555a --- /dev/null +++ b/pages/case/detail.js @@ -0,0 +1 @@ +var t=getApp(),a=require("../../utils/wxb.js");Page({data:{color:"",datas:[],id:0,setting:[]},onLoad:function(t){console.log(t),a.that=this,a.style(),a.that.setData({id:t.id}),this.getDetail()},getDetail:function(i){a.that=this,a.globalData=t.globalData,wx.showLoading({title:"加载中..."}),a.Post("/api/companygw.index/detail",{id:a.that.data.id},(function(t){wx.hideLoading(),a.that.setData({datas:t})}))},calling:function(){wx.makePhoneCall({phoneNumber:a.that.data.setting.service_tel,success:function(){console.log("拨打电话成功!")},fail:function(){console.log("拨打电话失败!")}})},onShareAppMessage:function(i){return a.that=this,a.globalData=t.globalData,{title:"企业官网",path:"/pages/case/detail?id="+a.that.data.id,success:function(t){wx.showToast({title:"已转发"})},fail:function(t){wx.showToast({title:"转发失败"})}}}}); \ No newline at end of file diff --git a/pages/case/detail.json b/pages/case/detail.json new file mode 100644 index 0000000..025da7a --- /dev/null +++ b/pages/case/detail.json @@ -0,0 +1 @@ +{"usingComponents":{}} \ No newline at end of file diff --git a/pages/case/detail.wxml b/pages/case/detail.wxml new file mode 100644 index 0000000..3056f9f --- /dev/null +++ b/pages/case/detail.wxml @@ -0,0 +1,22 @@ + + 怎么才能做一个小程序呢 + + + 怎么才能做一个小程序呢怎么才能做一个小程序呢怎么才能做一个小程序呢怎么才能做一个小程序呢怎么才能做一个小程序呢怎么才能做一个小程序呢 + + 2019-11-11 + +技术支持:某某科技公司 + + + + + + 在线咨询 + + + + + 拨打电话 + + diff --git a/pages/case/detail.wxss b/pages/case/detail.wxss new file mode 100644 index 0000000..54a7c7e --- /dev/null +++ b/pages/case/detail.wxss @@ -0,0 +1 @@ +.page{min-height:1000rpx;padding-bottom:20rpx;padding-top:20rpx}.title{font-size:28rpx;font-weight:700;line-height:60rpx;padding-bottom:20rpx;text-align:center}.riqi,.title{margin-left:2%;width:96%}.riqi{margin-top:20rpx;text-align:right}.duanluo{height:auto;margin-left:2%;width:96%}.duanluo image{margin-top:10rpx;max-width:100%;width:100%}.duanluo .content{color:#000;font-size:26rpx;height:auto;line-height:40rpx;width:100%} \ No newline at end of file diff --git a/pages/case/index.js b/pages/case/index.js new file mode 100644 index 0000000..ea14d5e --- /dev/null +++ b/pages/case/index.js @@ -0,0 +1 @@ +var t=getApp(),a=require("../../utils/wxb.js");Page({data:{color:"",datas:[],page:1,more:0,type:0},onShow:function(){a.that=this,a.globalData=t.globalData,this.setData({datas:[],page:1,more:0}),this.getHome()},onLoad:function(){a.that=this,a.style()},more:function(t){this.getHomeList()},getHome:function(o){a.that=this,a.globalData=t.globalData,wx.showLoading({title:"加载中..."}),a.Post("/api/companygw.index/plan",{page:a.that.data.page},(function(t){var o=a.that.data.datas;for(var e in t.list)o.push(t.list[e]);console.log(t),wx.hideLoading(),a.that.setData({datas:o,page:a.that.data.page+1,more:t.more})}))},onShareAppMessage:function(o){return a.that=this,a.globalData=t.globalData,{title:"企业官网",path:"/pages/case/index",success:function(t){wx.showToast({title:"已转发"})},fail:function(t){wx.showToast({title:"转发失败"})}}}}); \ No newline at end of file diff --git a/pages/case/index.json b/pages/case/index.json new file mode 100644 index 0000000..0cf12e4 --- /dev/null +++ b/pages/case/index.json @@ -0,0 +1 @@ +{"navigationBarTitleText":"解决方案","usingComponents":{}} \ No newline at end of file diff --git a/pages/case/index.wxml b/pages/case/index.wxml new file mode 100644 index 0000000..9e54072 --- /dev/null +++ b/pages/case/index.wxml @@ -0,0 +1,118 @@ + + + + + + + + + 怎么才能做一个小程序呢 + 怎么才能做一个小程序呢怎么才能做一个小程序呢怎么才能做一个小程序呢怎么才能做一个小程序呢 + + + + + + + + + + + + 怎么才能做一个小程序呢 + 怎么才能做一个小程序呢怎么才能做一个小程序呢怎么才能做一个小程序呢怎么才能做一个小程序呢 + + + + + + + + + + + + 怎么才能做一个小程序呢 + 怎么才能做一个小程序呢怎么才能做一个小程序呢怎么才能做一个小程序呢怎么才能做一个小程序呢 + + + + + + + + + + + + 怎么才能做一个小程序呢 + 怎么才能做一个小程序呢怎么才能做一个小程序呢怎么才能做一个小程序呢怎么才能做一个小程序呢 + + + + + + + + + + + + 怎么才能做一个小程序呢 + 怎么才能做一个小程序呢怎么才能做一个小程序呢怎么才能做一个小程序呢怎么才能做一个小程序呢 + + + + + + + + + + + + 怎么才能做一个小程序呢 + 怎么才能做一个小程序呢怎么才能做一个小程序呢怎么才能做一个小程序呢怎么才能做一个小程序呢 + + + + + + + + + + + + 怎么才能做一个小程序呢 + 怎么才能做一个小程序呢怎么才能做一个小程序呢怎么才能做一个小程序呢怎么才能做一个小程序呢 + + + + + + + + + + + + 怎么才能做一个小程序呢 + 怎么才能做一个小程序呢怎么才能做一个小程序呢怎么才能做一个小程序呢怎么才能做一个小程序呢 + + + + + +技术支持:某某科技公司 + + + + + 在线咨询 + + + + 拨打电话 + + diff --git a/pages/case/index.wxss b/pages/case/index.wxss new file mode 100644 index 0000000..e69de29 diff --git a/pages/contact/index.js b/pages/contact/index.js new file mode 100644 index 0000000..bc15ebd --- /dev/null +++ b/pages/contact/index.js @@ -0,0 +1 @@ +var a=require("../../utils/request");Page({data:{addr:"",content:"",gs:"",name:"",phone:""},onShow:function(){},onLoad:function(t){var n=this,e=t.openid;a.request({url:"/index.php?s=/api/api/phone",method:"GET",showLoading:!1,data:{openid:e}}).then((function(a){console.log(a),n.setData({addr:a.data.data.addr,content:a.data.data.content,gs:a.data.data.gs,name:a.data.data.name,phone:a.data.data.phone})})).catch((function(a){console.log("ERROR")}))}}); \ No newline at end of file diff --git a/pages/contact/index.json b/pages/contact/index.json new file mode 100644 index 0000000..ad107d9 --- /dev/null +++ b/pages/contact/index.json @@ -0,0 +1 @@ +{"navigationBarTitleText":"联系我们","usingComponents":{}} \ No newline at end of file diff --git a/pages/contact/index.wxml b/pages/contact/index.wxml new file mode 100644 index 0000000..2c05c51 --- /dev/null +++ b/pages/contact/index.wxml @@ -0,0 +1,29 @@ + + + {{gs}} + + {{content}} + + + + + + 联系我们 + + 公司: + {{gs}} + + + 地址: + {{addr}} + + + 联系人: + {{name}} + + + 电话: + {{phone}} + + + diff --git a/pages/contact/index.wxss b/pages/contact/index.wxss new file mode 100644 index 0000000..c79737c --- /dev/null +++ b/pages/contact/index.wxss @@ -0,0 +1 @@ +.about-content{font-size:26rpx;height:auto;line-height:50rpx;padding:20rpx}.footer{background:#fff;border-top:1rpx solid #e2e2e2;bottom:0;height:140rpx;left:0;position:fixed;width:100%;z-index:10000}.guanyu{background:#fff;border-radius:10rpx;margin-left:2%;margin-top:20rpx;width:96%}.guanyu .title{border-bottom:1rpx solid #f2f2f2;font-size:30rpx;height:80rpx;line-height:80rpx;margin-left:20rpx}.guanyu .col{font-size:26rpx;height:auto;line-height:50rpx;margin-left:20rpx}.guanyu .content{font-size:26rpx;line-height:40rpx;padding:20rpx}.ditu{height:400rpx;margin:0 auto;width:98%} \ No newline at end of file diff --git a/pages/contact/liuyan.js b/pages/contact/liuyan.js new file mode 100644 index 0000000..033f369 --- /dev/null +++ b/pages/contact/liuyan.js @@ -0,0 +1 @@ +var t=getApp(),a=require("../../utils/wxb.js");Page({data:{color:""},onLoad:function(){a.that=this,a.style()},fromSubmit:function(e){console.log("fromSubmit");var o=e.detail.value;console.log(e),a.that=this,a.globalData=t.globalData,wx.showLoading({title:"正在加载中.."}),a.Post("/api/companygw.index/consult",{openid:a.getOpenId(),product_name:o.product_name,name:o.name,tel:o.tel,remarks:o.remarks},(function(t){console.log(t),wx.hideLoading(),wx.showToast({title:"提交成功"});var a=getCurrentPages().length;wx.navigateBack({delta:a-1})}))}}); \ No newline at end of file diff --git a/pages/contact/liuyan.json b/pages/contact/liuyan.json new file mode 100644 index 0000000..d180709 --- /dev/null +++ b/pages/contact/liuyan.json @@ -0,0 +1 @@ +{"navigationBarTitleText":"在线咨询","usingComponents":{}} \ No newline at end of file diff --git a/pages/contact/liuyan.wxml b/pages/contact/liuyan.wxml new file mode 100644 index 0000000..9cd77d0 --- /dev/null +++ b/pages/contact/liuyan.wxml @@ -0,0 +1,26 @@ + +
+ + + 咨询产品 + + + + 您的称呼 + + + + 联系电话 + + + + + 备注 + + + + + +
+ 技术支持:某某科技公司 +
diff --git a/pages/contact/liuyan.wxss b/pages/contact/liuyan.wxss new file mode 100644 index 0000000..e69de29 diff --git a/pages/index/index.js b/pages/index/index.js new file mode 100644 index 0000000..fba3641 --- /dev/null +++ b/pages/index/index.js @@ -0,0 +1 @@ +var t=getApp(),a=require("../../utils/wxb.js"),o=require("../../utils/request");require("../../utils/wxb.js").that;Page({data:{color:"",datas:[],setting:[]},onShow:function(){a.that=this,a.globalData=t.globalData,console.log(a.that.data.setting)},onLoad:function(){a.that=this,this.getList(),a.style(),this.getHome()},getList:function(){var t=this;o.request({method:"GET",showLoading:!1,url:"/api.php"}).then((function(a){console.log(a),t.setData({a1000:a.data.data.a_1000,a1200:a.data.data.a_1200})})).catch((function(t){console.log("ERROR")}))},getHome:function(o){a.that=this,a.globalData=t.globalData,wx.showLoading({title:"加载中..."}),a.Post("/api/companygw.index/index",{},(function(t){wx.hideLoading(),console.log(t.banner),a.that.setData({datas:t})}))},calling:function(){wx.makePhoneCall({phoneNumber:"18063442990",success:function(){console.log("拨打电话成功!")},fail:function(){console.log("拨打电话失败!")}})},jjfa:function(){wx.navigateTo({url:"/pages/case/index"})},cpzx:function(){wx.navigateTo({url:"/pages/product/index"})},qydt:function(){wx.navigateTo({url:"/pages/news/index"})},onShareAppMessage:function(o){return a.that=this,a.globalData=t.globalData,{title:"企业官网",path:"/pages/index/index",success:function(t){wx.showToast({title:"已转发"})},fail:function(t){wx.showToast({title:"转发失败"})}}}}); \ No newline at end of file diff --git a/pages/index/index.json b/pages/index/index.json new file mode 100644 index 0000000..025da7a --- /dev/null +++ b/pages/index/index.json @@ -0,0 +1 @@ +{"usingComponents":{}} \ No newline at end of file diff --git a/pages/index/index.wxml b/pages/index/index.wxml new file mode 100644 index 0000000..61c6eb8 --- /dev/null +++ b/pages/index/index.wxml @@ -0,0 +1,187 @@ + + + + + + + + + 方案 + + + + + + + + 动态 + + + + + + + + 联系 + + + + + + 2023年12月31日最新报价 + + + + 1.0米 + + + 1.2米 + + + 下载报价 + + + + + + + {{item.material}}{{item.thickness}} + {{item.priceMax}} + + + + + + + + 产品中心 + + + + + + + 电商小程序 + + + + + + 企业小程序 + + + + + + 酒店小程序 + + + + + + 教育小程序 + + + + + + + + 解决方案 + + + + + + + + + 怎么才能做一个小程序呢? + 怎么才能做一个小程序呢?怎么才能做一个小程序呢?怎么才能做一个小程序呢?怎么才能做一个小程序呢?怎么才能做一个小程序呢? + + + + + + + + + + + + 怎么才能做一个小程序呢? + 怎么才能做一个小程序呢?怎么才能做一个小程序呢?怎么才能做一个小程序呢?怎么才能做一个小程序呢?怎么才能做一个小程序呢? + + + + + + + + + + + + 怎么才能做一个小程序呢? + 怎么才能做一个小程序呢?怎么才能做一个小程序呢?怎么才能做一个小程序呢?怎么才能做一个小程序呢?怎么才能做一个小程序呢? + + + + + + + + 企业动态 + + + + + 热烈庆祝上线电商小程序 + 2019-11-11 + + + + + + + 热烈庆祝上线电商小程序 + 2019-11-11 + + + + + + + 热烈庆祝上线电商小程序 + 2019-11-11 + + + + + + + 热烈庆祝上线电商小程序 + 2019-11-11 + + + + + + + + + + + 留言咨询 + + + + + 拨打电话 + + + diff --git a/pages/index/index.wxss b/pages/index/index.wxss new file mode 100644 index 0000000..0f04f62 --- /dev/null +++ b/pages/index/index.wxss @@ -0,0 +1 @@ +.banner{height:500rpx}.banner-image{height:500rpx;width:100%} \ No newline at end of file diff --git a/pages/main/detail.js b/pages/main/detail.js new file mode 100644 index 0000000..385ae07 --- /dev/null +++ b/pages/main/detail.js @@ -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)}}); \ No newline at end of file diff --git a/pages/main/detail.json b/pages/main/detail.json new file mode 100644 index 0000000..025da7a --- /dev/null +++ b/pages/main/detail.json @@ -0,0 +1 @@ +{"usingComponents":{}} \ No newline at end of file diff --git a/pages/main/detail.wxml b/pages/main/detail.wxml new file mode 100644 index 0000000..af49175 --- /dev/null +++ b/pages/main/detail.wxml @@ -0,0 +1,10 @@ + + + {{art.title}} + + + + {{art.create_time}} + + + diff --git a/pages/main/detail.wxss b/pages/main/detail.wxss new file mode 100644 index 0000000..ed6ca6a --- /dev/null +++ b/pages/main/detail.wxss @@ -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} \ No newline at end of file diff --git a/pages/main/main.js b/pages/main/main.js new file mode 100644 index 0000000..09e1f1d --- /dev/null +++ b/pages/main/main.js @@ -0,0 +1 @@ +var t=require("../../@babel/runtime/helpers/regeneratorRuntime"),a=require("../../@babel/runtime/helpers/asyncToGenerator"),e=require("../../utils/request"),o=require("../../utils/loading.js");Page({data:{sh:!0,imgList:[],maxCount:3,isUp:!0,openid:"",status:null,indexData:null,timeStr:""},indexData:function(){var t=this;e.request({url:"/index.php?s=/api/api/indexData",method:"GET",showLoading:!1}).then((function(a){console.log(a),t.setData({indexData:a.data.data.res}),t.setData({sh:a.data.data.res.shenhe})})).catch((function(t){console.log("ERROR")}))},wxLogin:function(){var t=this;wx.login({success:function(a){a.code?e.request({url:"/index.php?s=/api/api/login",method:"GET",showLoading:!1,data:{code:a.code}}).then((function(a){console.log(a),t.setData({openid:a.data.data.openid}),t.getInfo(),t.getList()})).catch((function(t){console.log("ERROR")})):console.log("登录失败!"+a.errMsg)}})},getList:function(){var t=this,a=this.data.openid;a||(a=""),e.request({method:"GET",showLoading:!1,url:"/index.php?s=/api/api/userbj",data:{openid:a}}).then((function(a){console.log(a),t.setData({a1000:a.data.data.res.a_1000,a1200:a.data.data.res.a_1200,timeStr:a.data.data.res.timeStr})})).catch((function(t){console.log("ERROR")}))},dowimg:function(){var t=this.data.openid;t||(t=""),o.showLoading("下载中"),e.request({method:"GET",showLoading:!1,url:"/index.php?s=/api/api/userbjimg",data:{openid:t}}).then((function(t){console.log(t);t.data.data.img_base64;var a=t.data.data.img_url;wx.downloadFile({url:a,success:function(t){200===t.statusCode&&wx.saveImageToPhotosAlbum({filePath:t.tempFilePath,success:function(t){o.hideLoading(),wx.showToast({title:"保存图片成功!"})},fail:function(t){o.hideLoading(),wx.showToast({title:"保存图片失败!"})}})}})})).catch((function(t){console.log("ERROR")}))},getInfo:function(){var t=this;e.request({url:"/index.php?s=/api/api/userInfo",method:"GET",showLoading:!1,data:{openid:t.data.openid}}).then((function(a){console.log(a),t.setData({status:a.data.data.status})})).catch((function(t){console.log("ERROR")}))},fromSubmit:function(t){var a=this,o=t.detail.value;""!=o.username?""!=o.phone?""!=o.number?""!=o.tjr_phone?(o.images=a.data.imgList,o.openid=a.data.openid,e.request({url:"/index.php?s=/api/api/register",method:"POST",showLoading:!1,data:o}).then((function(t){return 1==t.data.code?(a.setData({status:t.data.data.status}),void wx.showToast({title:"注册成功",icon:"none",duration:3e3})):void wx.showToast({title:"注册失败",icon:"none",duration:3e3})})).catch((function(t){console.log("ERROR")}))):wx.showToast({title:"业务员手机号还没输入呢",icon:"none",duration:3e3}):wx.showToast({title:"您的身份证号还没输入呢",icon:"none",duration:3e3}):wx.showToast({title:"您的手机号还没输入呢",icon:"none",duration:3e3}):wx.showToast({title:"您的称呼还没输入呢",icon:"none",duration:3e3})},uploadImage:function(){var e=this;return a(t().mark((function a(){var o,n,i,s,d,r;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=(o=e).data.imgList,i=o.data.maxCount,t.prev=3,t.next=6,wx.chooseMedia({count:i-n.length,mediaType:["image"],sourceType:["album","camera"],maxDuration:30,sizeType:["compressed"],camera:"back"});case 6:if("chooseMedia:ok"==(s=t.sent).errMsg){t.next=10;break}return wx.showToast({title:"上传失败",icon:"none",duration:3e3}),t.abrupt("return");case 10:if("image"==s.type){t.next=13;break}return wx.showToast({title:"只能上传图片类型",icon:"none",duration:3e3}),t.abrupt("return");case 13:for(wx.showLoading({title:"图片上传中"}),d=s.tempFiles,r=0;r=o.data.maxCount&&o.setData({isUp:!1})):(wx.hideLoading(),wx.showModal({title:"提示",content:"上传失败",showCancel:!1}))}});t.next=21;break;case 18:t.prev=18,t.t0=t.catch(3),console.log(t.t0);case 21:case"end":return t.stop()}}),a,null,[[3,18]])})))()},reBackImg:function(t){var a=t.currentTarget.dataset.index;console.log(a);var e=this.data.imgList;e.splice(a,1),e.length