微信发送模板消息 pagepath写法,能举个例子吗 5C

"miniprogram":{ "appid":"xiaochengxuappid12345", "pagepath":"pages/my/my" }, 现在我的pagepath是这样写的,但是总是从公众号消息模板跳到小程序时,只能跳到首页,不能跳到我指定的页面,无论我怎么改路径都是跳到首页,请问这个怎么解决,写公众号用的是java
图片说明

1个回答

public String getTemplate_id() {
return template_id;
}
public void setTemplate_id(String template_id) {
this.template_id = template_id;
}
public String getTouser() {
return touser;
}
public void setTouser(String touser) {
this.touser = touser;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getTopcolor() {
return topcolor;
}
public void setTopcolor(String topcolor) {
this.topcolor = topcolor;
}
public Map getData() {
return data;
}
public void setData(Map data) {
this.data = data;
}
}

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
求助:html只能在微信浏览器打开,调用微信接口问题?

大家好 ,新手请教两个个问题 1.网页上输入域名的时候 直接访问了public目录下面的index.html 没有访问index.php 这个是tp模块默认的设置么? 2.这个怎么设置的index.html只能在微信端打开,我应该怎么解除,让他在普通浏览器也能正常打开呢? 个人觉得原因:1.它直接通过index.html里的js调用了微信授权,需要把js里的微信授权取消。但是我没能找到js里微信授权在哪里。 下么是图片: ![图片说明](https://img-ask.csdn.net/upload/202003/22/1584857161_740465.jpg) ![图片说明](https://img-ask.csdn.net/upload/202003/22/1584856909_155952.png) 下么是其中一个js代码: 1.index.5d79cff.js ``` (function(e){function n(n){for(var a,i,s=n[0],u=n[1],c=n[2],l=0,d=[];l<s.length;l++)i=s[l],o[i]&&d.push(o[i][0]),o[i]=0;for(a in u)Object.prototype.hasOwnProperty.call(u,a)&&(e[a]=u[a]);g&&g(n);while(d.length)d.shift()();return r.push.apply(r,c||[]),t()}function t(){for(var e,n=0;n<r.length;n++){for(var t=r[n],a=!0,i=1;i<t.length;i++){var u=t[i];0!==o[u]&&(a=!1)}a&&(r.splice(n--,1),e=s(s.s=t[0]))}return e}var a={},o={index:0},r=[];function i(e){return s.p+"static/js/"+({"pages-aboutUs-aboutUs":"pages-aboutUs-aboutUs","pages-buyLesson-buyLesson":"pages-buyLesson-buyLesson","pages-cargoDetail-cargoDetail~pages-questionDetail-questionDetail":"pages-cargoDetail-cargoDetail~pages-questionDetail-questionDetail","pages-cargoDetail-cargoDetail":"pages-cargoDetail-cargoDetail","pages-questionDetail-questionDetail":"pages-questionDetail-questionDetail","pages-feedback-feedback":"pages-feedback-feedback","pages-login-login":"pages-login-login","pages-partiPost-partiPost":"pages-partiPost-partiPost","pages-payOrder-payOrder":"pages-payOrder-payOrder","pages-searchDetails-searchDetails":"pages-searchDetails-searchDetails","pages-tabbar-drycargo-drycargo":"pages-tabbar-drycargo-drycargo","pages-tabbar-mine-mine":"pages-tabbar-mine-mine","pages-tabbar-question-question":"pages-tabbar-question-question","pages-tabbar-release-release":"pages-tabbar-release-release","pages-tabbar-search-search":"pages-tabbar-search-search","pages-teacherDetail-teacherDetail":"pages-teacherDetail-teacherDetail","pages-userinfo-userinfo":"pages-userinfo-userinfo"}[e]||e)+"."+{"pages-aboutUs-aboutUs":"f00552b3","pages-buyLesson-buyLesson":"6bf6a2ae","pages-cargoDetail-cargoDetail~pages-questionDetail-questionDetail":"35e61b5d","pages-cargoDetail-cargoDetail":"9f2898d6","pages-questionDetail-questionDetail":"9c645e70","pages-feedback-feedback":"e2280327","pages-login-login":"d7b4ab6c","pages-partiPost-partiPost":"78de4437","pages-payOrder-payOrder":"8718e180","pages-searchDetails-searchDetails":"7710a11b","pages-tabbar-drycargo-drycargo":"1312f8dd","pages-tabbar-mine-mine":"f44636f9","pages-tabbar-question-question":"8d8629a7","pages-tabbar-release-release":"fdfe539f","pages-tabbar-search-search":"2c50eba0","pages-teacherDetail-teacherDetail":"65279f5c","pages-userinfo-userinfo":"38dd4057"}[e]+".js"}function s(n){if(a[n])return a[n].exports;var t=a[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,s),t.l=!0,t.exports}s.e=function(e){var n=[],t=o[e];if(0!==t)if(t)n.push(t[2]);else{var a=new Promise(function(n,a){t=o[e]=[n,a]});n.push(t[2]=a);var r,u=document.createElement("script");u.charset="utf-8",u.timeout=120,s.nc&&u.setAttribute("nonce",s.nc),u.src=i(e),r=function(n){u.onerror=u.onload=null,clearTimeout(c);var t=o[e];if(0!==t){if(t){var a=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src,i=new Error("Loading chunk "+e+" failed.\n("+a+": "+r+")");i.type=a,i.request=r,t[1](i)}o[e]=void 0}};var c=setTimeout(function(){r({type:"timeout",target:u})},12e4);u.onerror=u.onload=r,document.head.appendChild(u)}return Promise.all(n)},s.m=e,s.c=a,s.d=function(e,n,t){s.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},s.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,n){if(1&n&&(e=s(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(s.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var a in e)s.d(t,a,function(n){return e[n]}.bind(null,a));return t},s.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return s.d(n,"a",n),n},s.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},s.p="/",s.oe=function(e){throw console.error(e),e};var u=window["webpackJsonp"]=window["webpackJsonp"]||[],c=u.push.bind(u);u.push=n,u=u.slice();for(var l=0;l<u.length;l++)n(u[l]);var g=c;r.push([0,"chunk-vendors"]),t()})({0:function(e,n,t){e.exports=t("1e48")},"0538":function(e,n,t){"use strict";var a=t("288e");Object.defineProperty(n,"__esModule",{value:!0}),n.mock=n.http=void 0;var o=a(t("795b")),r=a(t("cebc")),i=a(t("42e7")),s=new i.default;n.mock=s,s.setConfig(function(e){return e.baseUrl="https://www.fastmock.site/mock/09d86ed8a861337ae7da96bbb47bc39e/shoppage",e.header=(0,r.default)({},e.header),e}),s.interceptor.request(function(e,n){return e}),s.validateStatus=function(e){return 200===e},s.interceptor.response(function(e){if(1===e.data.error_code)return e.data},function(e){return e});var u=new i.default;n.http=u,u.setConfig(function(e){return e.baseUrl="http://xinghuo.com/index.php/index/",e.header=(0,r.default)({},e.header),e}),u.validateStatus=function(e){return 200===e},u.interceptor.response(function(e){return 200!==e.statusCode?o.default.reject(e):(1===e.data.code||(102===e.data.code?uni.reLaunch({url:"/pages/common/login/login"}):uni.showToast({title:e.data.msg||"加载中",icon:"none"})),o.default.resolve(e.data))},function(e){return e})},"0831":function(e,n,t){"use strict";t.r(n);var a=t("ac83"),o=t("1333");for(var r in o)"default"!==r&&function(e){t.d(n,e,function(){return o[e]})}(r);t("9578");var i,s=t("f0c5"),u=Object(s["a"])(o["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],i);n["default"]=u.exports},1333:function(e,n,t){"use strict";t.r(n);var a=t("bc27"),o=t.n(a);for(var r in a)"default"!==r&&function(e){t.d(n,e,function(){return a[e]})}(r);n["default"]=o.a},"1e48":function(e,n,t){"use strict";var a=t("e54b"),o=t("288e"),r=o(t("cebc"));t("cadf"),t("551c"),t("097d"),t("356c"),t("1c31"),t("921b");var i=o(t("e143")),s=o(t("0831")),u=o(t("48a2")),c=a(t("3322")),l=o(t("b90f"));i.default.config.productionTip=!1,i.default.prototype.$api=c,i.default.prototype.websiteUrl="http://xinghuo.tanfangzi.cn",i.default.prototype.getImgUrl=function(e){return this.websiteUrl+e},i.default.prototype.isLogin=function(e){var n=uni.getStorageSync("userInfo");return!!n&&n.token},i.default.prototype.$store=u.default,i.default.prototype.$api=c,i.default.prototype.$utils=l.default,s.default.mpType="app";var g=new i.default((0,r.default)({},s.default));g.$mount()},"279b":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a={pages:{"pages/tabbar/search/search":{navigationBarTitleText:"搜索",navigationStyle:"custom"},"pages/login/login":{navigationBarTitleText:"登录",navigationBarBackgroundColor:"#389CFB",navigationBarTextStyle:"white",navigationStyle:"custom"},"pages/tabbar/question/question":{navigationBarTitleText:"问答",navigationStyle:"custom"},"pages/tabbar/drycargo/drycargo":{navigationBarTitleText:"干货",navigationStyle:"custom"},"pages/tabbar/release/release":{navigationBarTitleText:"发布帖子",navigationStyle:"custom"},"pages/tabbar/mine/mine":{navigationBarTitleText:"我的",navigationBarBackgroundColor:"#389CFB",navigationBarTextStyle:"white",navigationStyle:"custom"},"pages/searchDetails/searchDetails":{navigationBarTitleText:"搜索",navigationStyle:"custom"},"pages/cargoDetail/cargoDetail":{navigationBarTitleText:"干货详情",navigationStyle:"custom"},"pages/teacherDetail/teacherDetail":{navigationBarTitleText:"讲师详情",navigationStyle:"custom"},"pages/userinfo/userinfo":{navigationBarTitleText:"个人资料",navigationStyle:"custom"},"pages/aboutUs/aboutUs":{navigationBarTitleText:"关于我们",navigationStyle:"custom"},"pages/feedback/feedback":{navigationBarTitleText:"意见反馈",navigationStyle:"custom"},"pages/buyLesson/buyLesson":{navigationBarTitleText:"购买课程",navigationStyle:"custom"},"pages/partiPost/partiPost":{navigationBarTitleText:"参与帖子",navigationStyle:"custom"},"pages/questionDetail/questionDetail":{navigationBarTitleText:"帖子详情",navigationStyle:"custom"},"pages/payOrder/payOrder":{navigationBarTitleText:"支付",navigationStyle:"custom"}},globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"}};n.default=a},3322:function(e,n,t){"use strict";var a=t("288e");Object.defineProperty(n,"__esModule",{value:!0}),n.go=i,n.usersave=n.topay=n.order=n.buy=n.purchase=n.openid=n.userinfo=n.suggestion=n.mydata=n.bannerpost=n.about=n.phone=n.comment=n.videodeta=n.video=n.issue=n.postdeta=n.searchvideo=n.post=n.banner=void 0;var o=a(t("f499")),r=t("0538");function i(e,n){n?(n=(0,o.default)(n),uni.navigateTo({url:"/pages/"+e+"/"+e+"?data="+n})):uni.navigateTo({url:"/pages/"+e+"/"+e})}var s=function(e){return r.http.post("banner/index",e||{})};n.banner=s;var u=function(e){return r.http.post("video/post",e||{})};n.post=u;var c=function(e){return r.http.post("video/search_video",e||{})};n.searchvideo=c;var l=function(e){return r.http.post("video/postdeta",e||{})};n.postdeta=l;var g=function(e){return r.http.post("video/issue",e||{})};n.issue=g;var d=function(e){return r.http.post("video/video",e||{})};n.video=d;var p=function(e){return r.http.post("video/videodeta",e||{})};n.videodeta=p;var f=function(e){return r.http.post("video/comment",e||{})};n.comment=f;var y=function(e){return r.http.post("banner/phone",e||{})};n.phone=y;var b=function(e){return r.http.post("banner/about",e||{})};n.about=b;var m=function(e){return r.http.post("banner/post",e||{})};n.bannerpost=m;var h=function(e){return r.http.post("banner/mydata",e||{})};n.mydata=h;var _=function(e){return r.http.post("banner/suggestion",e||{})};n.suggestion=_;var v=function(e){return r.http.post("banner/user_info",e||{})};n.userinfo=v;var C=function(e){return r.http.post("banner/openid",e||{})};n.openid=C;var T=function(e){return r.http.post("banner/purchase",e||{})};n.purchase=T;var S=function(e){return r.http.post("video/buy",e||{})};n.buy=S;var D=function(e){return r.http.post("video/order",e||{})};n.order=D;var x=function(e){return r.http.post("video/to_pay",e||{})};n.topay=x;var w=function(e){return r.http.post("banner/user_save",e||{})};n.usersave=w},"356c":function(e,n,t){"use strict";(function(e){var n=t("288e"),a=n(t("5176")),o=n(t("e143"));e["____14021FC____"]=!0,delete e["____14021FC____"],e.__uniConfig={globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},tabBar:{borderStyle:"black",backgroundColor:"#FFFFFF",color:"#333333",selectedColor:"#333333",list:[{pagePath:"pages/tabbar/search/search",iconPath:"static/tabbar/taba1.png",selectedIconPath:"static/tabbar/taba2.png",text:"搜索",redDot:!1,badge:""},{pagePath:"pages/tabbar/question/question",iconPath:"static/tabbar/tabb1.png",selectedIconPath:"static/tabbar/tabb2.png",text:"问答",redDot:!1,badge:""},{pagePath:"pages/tabbar/drycargo/drycargo",iconPath:"static/tabbar/tabc1.png",selectedIconPath:"static/tabbar/tabc2.png",text:"干货",redDot:!1,badge:""},{pagePath:"pages/tabbar/mine/mine",iconPath:"static/tabbar/tabd1.png",selectedIconPath:"static/tabbar/tabd2.png",text:"我的",redDot:!1,badge:""}]}},e.__uniConfig.router={mode:"hash",base:"/"},e.__uniConfig["async"]={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:3e3},e.__uniConfig.debug=!1,e.__uniConfig.networkTimeout={request:6e3,connectSocket:6e3,uploadFile:6e3,downloadFile:6e3},e.__uniConfig.sdkConfigs={},e.__uniConfig.qqMapKey="XVXBZ-NDMC4-JOGUS-XGIEE-QVHDZ-AMFV2",e.__uniConfig.nvue={"flex-direction":"column"},o.default.component("pages-tabbar-search-search",function(e){var n={component:t.e("pages-tabbar-search-search").then(function(){return e(t("ef27"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n}),o.default.component("pages-login-login",function(e){var n={component:t.e("pages-login-login").then(function(){return e(t("31d9"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n}),o.default.component("pages-tabbar-question-question",function(e){var n={component:t.e("pages-tabbar-question-question").then(function(){return e(t("3c6e"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n}),o.default.component("pages-tabbar-drycargo-drycargo",function(e){var n={component:t.e("pages-tabbar-drycargo-drycargo").then(function(){return e(t("3b16"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n}),o.default.component("pages-tabbar-release-release",function(e){var n={component:t.e("pages-tabbar-release-release").then(function(){return e(t("9932"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n}),o.default.component("pages-tabbar-mine-mine",function(e){var n={component:t.e("pages-tabbar-mine-mine").then(function(){return e(t("6d8f"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n}),o.default.component("pages-searchDetails-searchDetails",function(e){var n={component:t.e("pages-searchDetails-searchDetails").then(function(){return e(t("4d92"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n}),o.default.component("pages-cargoDetail-cargoDetail",function(e){var n={component:Promise.all([t.e("pages-cargoDetail-cargoDetail~pages-questionDetail-questionDetail"),t.e("pages-cargoDetail-cargoDetail")]).then(function(){return e(t("0c29"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n}),o.default.component("pages-teacherDetail-teacherDetail",function(e){var n={component:t.e("pages-teacherDetail-teacherDetail").then(function(){return e(t("b00e"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n}),o.default.component("pages-userinfo-userinfo",function(e){var n={component:t.e("pages-userinfo-userinfo").then(function(){return e(t("d13d"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n}),o.default.component("pages-aboutUs-aboutUs",function(e){var n={component:t.e("pages-aboutUs-aboutUs").then(function(){return e(t("e582"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n}),o.default.component("pages-feedback-feedback",function(e){var n={component:t.e("pages-feedback-feedback").then(function(){return e(t("b75c"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n}),o.default.component("pages-buyLesson-buyLesson",function(e){var n={component:t.e("pages-buyLesson-buyLesson").then(function(){return e(t("c589"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n}),o.default.component("pages-partiPost-partiPost",function(e){var n={component:t.e("pages-partiPost-partiPost").then(function(){return e(t("93e6"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n}),o.default.component("pages-questionDetail-questionDetail",function(e){var n={component:Promise.all([t.e("pages-cargoDetail-cargoDetail~pages-questionDetail-questionDetail"),t.e("pages-questionDetail-questionDetail")]).then(function(){return e(t("0553"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n}),o.default.component("pages-payOrder-payOrder",function(e){var n={component:t.e("pages-payOrder-payOrder").then(function(){return e(t("5404"))}.bind(null,t)).catch(t.oe),delay:__uniConfig["async"].delay,timeout:__uniConfig["async"].timeout};return __uniConfig["async"]["loading"]&&(n.loading={name:"SystemAsyncLoading",render:function(e){return e(__uniConfig["async"]["loading"])}}),__uniConfig["async"]["error"]&&(n.error={name:"SystemAsyncError",render:function(e){return e(__uniConfig["async"]["error"])}}),n}),e.__uniRoutes=[{path:"/",alias:"/pages/tabbar/search/search",component:{render:function(e){return e("Page",{props:(0,a.default)({isQuit:!0,isEntry:!0,isTabBar:!0,tabBarIndex:0},__uniConfig.globalStyle,{navigationBarTitleText:"搜索",navigationStyle:"custom"})},[e("pages-tabbar-search-search",{slot:"page"})])}},meta:{id:1,name:"pages-tabbar-search-search",isNVue:!1,pagePath:"pages/tabbar/search/search",isQuit:!0,isEntry:!0,isTabBar:!0,tabBarIndex:0,windowTop:0}},{path:"/pages/login/login",component:{render:function(e){return e("Page",{props:(0,a.default)({},__uniConfig.globalStyle,{navigationBarTitleText:"登录",navigationBarBackgroundColor:"#389CFB",navigationBarTextStyle:"white",navigationStyle:"custom"})},[e("pages-login-login",{slot:"page"})])}},meta:{name:"pages-login-login",isNVue:!1,pagePath:"pages/login/login",windowTop:0}},{path:"/pages/tabbar/question/question",component:{render:function(e){return e("Page",{props:(0,a.default)({isQuit:!0,isTabBar:!0,tabBarIndex:1},__uniConfig.globalStyle,{navigationBarTitleText:"问答",navigationStyle:"custom"})},[e("pages-tabbar-question-question",{slot:"page"})])}},meta:{id:2,name:"pages-tabbar-question-question",isNVue:!1,pagePath:"pages/tabbar/question/question",isQuit:!0,isTabBar:!0,tabBarIndex:1,windowTop:0}},{path:"/pages/tabbar/drycargo/drycargo",component:{render:function(e){return e("Page",{props:(0,a.default)({isQuit:!0,isTabBar:!0,tabBarIndex:2},__uniConfig.globalStyle,{navigationBarTitleText:"干货",navigationStyle:"custom"})},[e("pages-tabbar-drycargo-drycargo",{slot:"page"})])}},meta:{id:3,name:"pages-tabbar-drycargo-drycargo",isNVue:!1,pagePath:"pages/tabbar/drycargo/drycargo",isQuit:!0,isTabBar:!0,tabBarIndex:2,windowTop:0}},{path:"/pages/tabbar/release/release",component:{render:function(e){return e("Page",{props:(0,a.default)({},__uniConfig.globalStyle,{navigationBarTitleText:"发布帖子",navigationStyle:"custom"})},[e("pages-tabbar-release-release",{slot:"page"})])}},meta:{name:"pages-tabbar-release-release",isNVue:!1,pagePath:"pages/tabbar/release/release",windowTop:0}},{path:"/pages/tabbar/mine/mine",component:{render:function(e){return e("Page",{props:(0,a.default)({isQuit:!0,isTabBar:!0,tabBarIndex:3},__uniConfig.globalStyle,{navigationBarTitleText:"我的",navigationBarBackgroundColor:"#389CFB",navigationBarTextStyle:"white",navigationStyle:"custom"})},[e("pages-tabbar-mine-mine",{slot:"page"})])}},meta:{id:4,name:"pages-tabbar-mine-mine",isNVue:!1,pagePath:"pages/tabbar/mine/mine",isQuit:!0,isTabBar:!0,tabBarIndex:3,windowTop:0}},{path:"/pages/searchDetails/searchDetails",component:{render:function(e){return e("Page",{props:(0,a.default)({},__uniConfig.globalStyle,{navigationBarTitleText:"搜索",navigationStyle:"custom"})},[e("pages-searchDetails-searchDetails",{slot:"page"})])}},meta:{name:"pages-searchDetails-searchDetails",isNVue:!1,pagePath:"pages/searchDetails/searchDetails",windowTop:0}},{path:"/pages/cargoDetail/cargoDetail",component:{render:function(e){return e("Page",{props:(0,a.default)({},__uniConfig.globalStyle,{navigationBarTitleText:"干货详情",navigationStyle:"custom"})},[e("pages-cargoDetail-cargoDetail",{slot:"page"})])}},meta:{name:"pages-cargoDetail-cargoDetail",isNVue:!1,pagePath:"pages/cargoDetail/cargoDetail",windowTop:0}},{path:"/pages/teacherDetail/teacherDetail",component:{render:function(e){return e("Page",{props:(0,a.default)({},__uniConfig.globalStyle,{navigationBarTitleText:"讲师详情",navigationStyle:"custom"})},[e("pages-teacherDetail-teacherDetail",{slot:"page"})])}},meta:{name:"pages-teacherDetail-teacherDetail",isNVue:!1,pagePath:"pages/teacherDetail/teacherDetail",windowTop:0}},{path:"/pages/userinfo/userinfo",component:{render:function(e){return e("Page",{props:(0,a.default)({},__uniConfig.globalStyle,{navigationBarTitleText:"个人资料",navigationStyle:"custom"})},[e("pages-userinfo-userinfo",{slot:"page"})])}},meta:{name:"pages-userinfo-userinfo",isNVue:!1,pagePath:"pages/userinfo/userinfo",windowTop:0}},{path:"/pages/aboutUs/aboutUs",component:{render:function(e){return e("Page",{props:(0,a.default)({},__uniConfig.globalStyle,{navigationBarTitleText:"关于我们",navigationStyle:"custom"})},[e("pages-aboutUs-aboutUs",{slot:"page"})])}},meta:{name:"pages-aboutUs-aboutUs",isNVue:!1,pagePath:"pages/aboutUs/aboutUs",windowTop:0}},{path:"/pages/feedback/feedback",component:{render:function(e){return e("Page",{props:(0,a.default)({},__uniConfig.globalStyle,{navigationBarTitleText:"意见反馈",navigationStyle:"custom"})},[e("pages-feedback-feedback",{slot:"page"})])}},meta:{name:"pages-feedback-feedback",isNVue:!1,pagePath:"pages/feedback/feedback",windowTop:0}},{path:"/pages/buyLesson/buyLesson",component:{render:function(e){return e("Page",{props:(0,a.default)({},__uniConfig.globalStyle,{navigationBarTitleText:"购买课程",navigationStyle:"custom"})},[e("pages-buyLesson-buyLesson",{slot:"page"})])}},meta:{name:"pages-buyLesson-buyLesson",isNVue:!1,pagePath:"pages/buyLesson/buyLesson",windowTop:0}},{path:"/pages/partiPost/partiPost",component:{render:function(e){return e("Page",{props:(0,a.default)({},__uniConfig.globalStyle,{navigationBarTitleText:"参与帖子",navigationStyle:"custom"})},[e("pages-partiPost-partiPost",{slot:"page"})])}},meta:{name:"pages-partiPost-partiPost",isNVue:!1,pagePath:"pages/partiPost/partiPost",windowTop:0}},{path:"/pages/questionDetail/questionDetail",component:{render:function(e){return e("Page",{props:(0,a.default)({},__uniConfig.globalStyle,{navigationBarTitleText:"帖子详情",navigationStyle:"custom"})},[e("pages-questionDetail-questionDetail",{slot:"page"})])}},meta:{name:"pages-questionDetail-questionDetail",isNVue:!1,pagePath:"pages/questionDetail/questionDetail",windowTop:0}},{path:"/pages/payOrder/payOrder",component:{render:function(e){return e("Page",{props:(0,a.default)({},__uniConfig.globalStyle,{navigationBarTitleText:"支付",navigationStyle:"custom"})},[e("pages-payOrder-payOrder",{slot:"page"})])}},meta:{name:"pages-payOrder-payOrder",isNVue:!1,pagePath:"pages/payOrder/payOrder",windowTop:0}},{path:"/preview-image",component:{render:function(e){return e("Page",{props:{navigationStyle:"custom"}},[e("system-preview-image",{slot:"page"})])}},meta:{name:"preview-image",pagePath:"/preview-image"}},{path:"/choose-location",component:{render:function(e){return e("Page",{props:{navigationStyle:"custom"}},[e("system-choose-location",{slot:"page"})])}},meta:{name:"choose-location",pagePath:"/choose-location"}},{path:"/open-location",component:{render:function(e){return e("Page",{props:{navigationStyle:"custom"}},[e("system-open-location",{slot:"page"})])}},meta:{name:"open-location",pagePath:"/open-location"}}]}).call(this,t("c8ba"))},"42e7":function(e,n,t){"use strict";var a=t("288e");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(t("a4bb"));t("ac6a");var r=a(t("f499")),i=a(t("cebc")),s=a(t("795b"));t("96cf");var u=a(t("3b8d")),c=a(t("d225")),l=a(t("b0b4")),g=a(t("bd86")),d=function(){function e(){var n=this;(0,c.default)(this,e),(0,g.default)(this,"config",{baseUrl:"",header:{"content-type":"application/json;charset=UTF-8"},method:"GET",dataType:"json",responseType:"text"}),(0,g.default)(this,"interceptor",{request:function(e){e&&(n.requestBeforeFun=e)},response:function(e,t){e&&t&&(n.requestComFun=e,n.requestComFail=t)}})}return(0,l.default)(e,[{key:"requestBeforeFun",value:function(e){return e}},{key:"requestComFun",value:function(e){return e}},{key:"requestComFail",value:function(e){return e}},{key:"validateStatus",value:function(e){return 200===e}},{key:"setConfig",value:function(e){this.config=e(this.config)}},{key:"request",value:function(){var n=(0,u.default)(regeneratorRuntime.mark(function n(){var t,a=this,o=arguments;return regeneratorRuntime.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:{},t.baseUrl=this.config.baseUrl,t.dataType=t.dataType||this.config.dataType,t.responseType=t.responseType||this.config.responseType,t.url=t.url||"",t.data=t.data||{},t.params=t.params||{},t.header=t.header||this.config.header,t.method=t.method||this.config.method,n.abrupt("return",new s.default(function(n,o){var s=!0,u={};t.complete=function(e){e.config=u,a.validateStatus(e.statusCode)?(e=a.requestComFun(e),n(e)):(e=a.requestComFail(e),o(e))};var c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"handle cancel",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,a={errMsg:e,config:n};o(a),s=!1};u=(0,i.default)({},a.requestBeforeFun(t,c));var l=(0,i.default)({},u);if(s){var g=e.posUrl(t.url)?t.url:t.baseUrl+t.url;if("{}"!==(0,r.default)(t.params)){var d=e.addQueryString(t.params);g+=-1===g.indexOf("?")?"?".concat(d):"&".concat(d)}l.url=g,uni.request(l)}}));case 10:case"end":return n.stop()}},n,this)}));function t(){return n.apply(this,arguments)}return t}()},{key:"get",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request((0,i.default)({url:e,method:"GET"},n))}},{key:"post",value:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request((0,i.default)({url:e,data:n,method:"POST"},t))}},{key:"put",value:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request((0,i.default)({url:e,data:n,method:"PUT"},t))}},{key:"delete",value:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request((0,i.default)({url:e,data:n,method:"DELETE"},t))}},{key:"connect",value:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request((0,i.default)({url:e,data:n,method:"CONNECT"},t))}},{key:"head",value:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request((0,i.default)({url:e,data:n,method:"HEAD"},t))}},{key:"options",value:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request((0,i.default)({url:e,data:n,method:"OPTIONS"},t))}},{key:"trace",value:function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request((0,i.default)({url:e,data:n,method:"TRACE"},t))}},{key:"upload",value:function(n,t){var a=this,o=t.filePath,r=t.name,u=t.header,c=t.formData;return new s.default(function(t,s){var l=!0,g={},d={baseUrl:a.config.baseUrl,url:n,filePath:o,method:"UPLOAD",name:r,header:u||a.config.header,formData:c,complete:function(e){e.config=g,200===e.statusCode?(e=a.requestComFun(e),t(e)):(e=a.requestComFail(e),s(e))}},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"handle cancel",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d,t={errMsg:e,config:n};s(t),l=!1};g=(0,i.default)({},a.requestBeforeFun(d,p));var f=(0,i.default)({},g);l&&(f.url=e.posUrl(n)?n:a.config.baseUrl+n,uni.uploadFile(f))})}}],[{key:"posUrl",value:function(e){return/(http|https):\/\/([\w.]+\/?)\S*/.test(e)}},{key:"addQueryString",value:function(e){var n="";return(0,o.default)(e).forEach(function(t){n+=t+"="+e[t]+"&"}),n.substring(0,n.length-1)}}]),e}();n.default=d},"48a2":function(e,n,t){"use strict";var a=t("288e");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(t("e143")),r=a(t("2f62"));o.default.use(r.default);var i=new r.default.Store({state:{hasLogin:!1,userInfo:{},address:{},coords:{},isWeixin:"",openid:""},mutations:{login:function(e,n){e.hasLogin=!0,e.userInfo=n,uni.setStorage({key:"userInfo",data:n})},logout:function(e){e.hasLogin=!1,e.userInfo={},uni.removeStorage({key:"userInfo"})},addressinfo:function(e,n){e.address=n,uni.setStorage({key:"address",data:n})},coordsinfo:function(e,n){e.coords=n,uni.setStorage({key:"coords",data:n})},isweixin:function(e,n){console.log(n),e.isWeixin=n},setopenid:function(e,n){e.openid=n,uni.setStorage({key:"openid",data:n})}},actions:{}}),s=i;n.default=s},"56c3":function(e,n,t){var a=t("ef9f");"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var o=t("4f06").default;o("0afb4e03",a,!0,{sourceMap:!1,shadowMode:!1})},"6e05":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a={appid:"__UNI__14021FC"};n.default=a},9578:function(e,n,t){"use strict";var a=t("56c3"),o=t.n(a);o.a},ac83:function(e,n,t){"use strict";var a,o=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("App",{attrs:{keepAliveInclude:e.keepAliveInclude}})},r=[];t.d(n,"b",function(){return o}),t.d(n,"c",function(){return r}),t.d(n,"a",function(){return a})},b90f:function(e,n,t){"use strict";var a=t("288e");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(t("795b"));t("6762");var r=["133","149","153","173","177","180","181","189","199","130","131","132","145","155","156","166","171","175","176","185","186","166","134","135","136","137","138","139","147","150","151","152","157","158","159","172","178","182","183","184","187","188","198"],i=function(e){return 11===e.length&&r.includes(e.slice(0,3))},s=function(e){return new o.default(function(n,t){var a=newTestPhone(e+"");a?n(a):(uni.toast({title:"手机号格式不正确",icon:"none"}),t(a))})},u=function(e){var n=e.title,t=e.icon,a=void 0===t?"success":t,r=e.duration,i=void 0===r?1500:r;return new o.default(function(e,t){uni.showToast({title:n,icon:a,duration:i,success:function(){setTimeout(function(){e()},i)},fail:function(){t()}})})},c={test_phone:i,verifyPhone:s,toast:u};n.default=c},bc27:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a={onLaunch:function(){console.log("App Launch")},onShow:function(){console.log("App Show")},onHide:function(){console.log("App Hide")}};n.default=a},ef9f:function(e,n,t){n=e.exports=t("2350")(!1),n.push([e.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\n/*每个页面公共css */.container{font-size:%?30?%}.flex{display:-webkit-box;display:-webkit-flex;display:flex}.flex1{-webkit-box-flex:1;-webkit-flex:1;flex:1}.fdc{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.jcsb{-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.jcc{-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center}.jcfe{-webkit-box-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end}.aic{-webkit-box-align:center;-webkit-align-items:center;align-items:center}.por{position:relative}.pof{position:fixed}.poa{position:absolute}.tac{text-align:center}.line{width:100%;height:%?16?%;background-color:#f7f7f7}.bxsbb{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ellipsiss{\r\n\t/* width: 300upx; */overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.nodata{padding:%?100?%;text-align:center}.ylf-button{margin:%?200?% auto;width:%?611?%;height:%?98?%;line-height:%?98?%;border-radius:%?98?%;font-size:$y-fs40;text-align:center;color:#fff;background-color:#60abfc}",""])}}); ```

微信小程序TabBar点击后失去显示

这是现在的代码,运行后一开始能正常显示TabBar,但是点击别的TabBar中的按钮时整个TabBar都不显示了,在安卓上测试没有这个问题,ios上有这个问题.... { "pages": [ "pages/index/index", "pages/logs/logs", "pages/post/post", "pages/school/school", "pages/sale/sale", "pages/match/match", "pages/personal/personal", "pages/post_sale/post_sale", "pages/comment_sale/comment_sale", "pages/post_match/post_match", "pages/letter/letter", "pages/message/message", "pages/suggestion/suggestion", "pages/friends/friends", "pages/post_list/post_list", "pages/sale_list/sale_list", "pages/match_list/match_list", "pages/post_detail/post_detail", "pages/match_detail/match_detail", "pages/match_result/match_result", "pages/compare_face/face", "pages/topic_comment/topic_comment", "pages/topic_detail/topic_detail", "pages/help/help", "pages/post_help/post_help", "pages/help_detail/help_detail", "pages/set_profile/set_profile", "pages/comment_mission/comment_mission", "pages/help_single/help_single" ], "window": { "backgroundTextStyle": "light", "navigationBarBackgroundColor": "#66CDAA", "navigationBarTitleText": "天大仁爱表白墙", "navigationBarTextStyle": "white" }, "tabBar": { "color": "#515151", "selectedColor": "#66CDAA", "borderStyle": "black", "backgroundColor": "#ffffff", "list": [ { "pagePath": "pages/index/index", "iconPath": "image/saylove.png", "selectedIconPath": "image/select-saylove.png", "text": "表白墙" }, { "pagePath": "pages/sale/sale", "iconPath": "image/sale.png", "selectedIconPath": "image/select-sale.png", "text": "卖舍友" }, { "pagePath": "pages/help/help", "iconPath": "image/help.png", "selectedIconPath": "image/select-help.png", "text": "悬赏令" }, { "pagePath": "pages/compare_face/face", "iconPath": "image/fall-in-love.png", "selectedIconPath": "image/select-fall-in-love.png", "text": "情侣脸" }, { "pagePath": "pages/personal/personal", "iconPath": "image/iam.png", "selectedIconPath": "image/select-iam.png", "text": "我的" } ] } }

微信开发appidde 错误

<?php $appid="wx1"; $appsecret=""; $url="https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid={$appid}&secret={$appsecret}"; $ch=curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); $arr=curl_exec($ch); $arrs=json_decode($arr,TRUE); $access_token=$arrs['access_token']; curl_close($ch); $url=" https://api.weixin.qq.com/cgi-bin/menu/create?access_token={$access_token}"; //echo $url; $data=' { "button":[ { "type":"click", "name":"今日歌曲", "key":"V1001_TODAY_MUSIC" }, { "name":"菜单", "sub_button":[ { "type":"view", "name":"搜索", "url":"http://www.soso.com/" }, { "type":"miniprogram", "name":"wxa", "url":"http://mp.weixin.qq.com", "appid":"wx286b93c14bbf93aa", "pagepath":"pages/lunar/index.html", }, { "type":"click", "name":"赞一下我们", "key":"V1001_GOOD" }] }] }'; //开启curl $ch=curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); //以post方式请求 curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); //发送CURL $arr1=curl_exec($ch); //将文件转化为数组 $arrs1=json_decode($arr1,TRUE); //$postJson = urldecode( json_encode($postArr) var_dump($arrs1); //echo $arr; //关闭资源 curl_close($ch); ?> 代码这样写的 但SAE总是报 array(2) { ["errcode"]=> int(85005) ["errmsg"]=> string(43) "appid not bind weapp hint: [8B7MCA0377vr23]" }

微信小程序导入代码时候报错了,想问一下怎么解决

网上找了个代码 导入小程序 结果显示appJSON["tabBar"][1]["pagePath"] "pages/detail/index" 需在 pages 数组中 ![图片说明](https://img-ask.csdn.net/upload/201912/02/1575266906_377220.png)!![图片说明](https://img-ask.csdn.net/upload/201912/02/1575266931_316437.png) ![图片说明](https://img-ask.csdn.net/upload/201912/02/1575266956_175178.png) ![图片说明](https://img-ask.csdn.net/upload/201912/02/1575266978_265085.png) 请问一下 怎么解决,才能编译成功

微信小程序tarBar配置正常无法显示

{"pages"=>["pages/index/index", "pages/logs/logs", "pages/demo/demo"], "window"=>{"backgroundTextStyle"=>"light", "navigationBarBackgroundColor"=>"#0097ff", "navigationBarTitleText"=>"test", "navigationBarTextStyle"=>"light"}, "tarBar"=>{"list"=>[{"pagePath"=>"pages/index/index", "text"=>"首页"}, {"pagePath"=>"pages/logs/logs", "text"=>"日志"}, {"pagePath"=>"pages/demo/demo", "text"=>"demo"}]}, "networkTimeout"=>{"request"=>20000, "connectSocket"=>20000, "uploadFile"=>20000, "downloadFile"=>20000}, "debug"=>true}

微信小程序tabbar的图标选中了却不显示,不选却正常

{"pages"=>["pages/index/index", "pages/logs/logs", "pages/users/users"], "window"=>{"backgroundTextStyle"=>"dark", "navigationBarBackgroundColor"=>"#336666", "navigationBarTitleText"=>"WeChat", "navigationBarTextStyle"=>"black", "enablePullDownRefresh"=>true, "backgroundColor"=>"#3366CC"}, "tabBar"=>{"color"=>"#3366CC", "selectedColor"=>"#FF0033", "backgroundColor"=>"#FFCC00", "borderStyle"=>"white", "position"=>"bottom", "list"=>[{"pagePath"=>"pages/index/index", "text"=>"首页", "iconPath"=>"resources/sousuo2.png", "selectedPath"=>"resources/sousuo2.png"}, {"pagePath"=>"pages/logs/logs", "text"=>"日志", "iconPath"=>"resources/zhuye2.png", "selectedPath"=>"resources/zhuye1.png"}, {"pagePath"=>"pages/users/users", "text"=>"我的", "iconPath"=>"resources/my2.png", "selectedPath"=>"resources/my1.png"}]}, "sitemapLocation"=>"sitemap.json"}

将html id(存储在js变量中)发送到另一个php文件

<div class="post-text" itemprop="text"> <p>I am trying to send data from a my index file to save.php Here is my code for sending data</p> <pre><code>function ClickToSave() { var tobesent = CKEDITOR.instances.textToBeSaved.getData(); var pagename = document.getElementById("pagename").innerHTML; var pagepath = document.getElementById("pagepath").innerHTML; $.ajax({ url :"save.php", type :"POST", data :{ content : tobesent, pagepath : pagepath, pagename : pagename } }).done(function(){ window.alert("changes saved"); }); } &lt;/script&gt; </code></pre> <p>I have also tried</p> <pre><code>function ClickToSave() { var pagename = document.getElementById("pagename").innerHTML; var pagepath = document.getElementById("pagepath").innerHTML; //var tobesent = CKEDITOR.instances.textToBeSaved.getData(); var tobesent = document.getElementById("textToBeSaved").innerHTML; window.alert(tobesent); $.ajax({ url : "save.php", type : "POST", data :{ content : tobesent, pagepath : pagepath, pagename : pagename } }).done(function(){ window.alert("changes saved"); check(); }); } </code></pre> <p>Here is my save file</p> <pre><code>&lt;?php if (empty($_POST) === false){ $pagename = $_POST["pagename"]; $pagepath = $_POST["pagepath"]; $data = $_POST["content"]; $connect = new mysqli("localhost","root","","bakliwal"); $sql = "UPDATE `bakliwal`.`pages` SET `pagecontent` = '$data' WHERE `pages`.`pagepath` = '$pagepath' AND `pages`.`pagename` = '$pagename'"; $result = $connect-&gt;query($sql); if($result){ $sql = "UPDATE `bakliwal`.`pages` SET `editable`='0' WHERE `pages`.`pagepath` = '$pagepath' AND `pages`.`pagename` = '$pagename'"; $result = $connect-&gt;query($sql); } $sql = "insert into `bakliwal`.`dummy` VALUES (NULL,'$data','$pagename','$pagepath')"; $result = $connect-&gt;query($sql); </code></pre> <p>}<br> ?&gt;</p> <p>In the first case I received an error saying "Uncaught TypeError: Cannot read property 'getData' of undefined" in the second case i received a window alert changes saved but nothing was saved in the database</p> <p>Also I have used the same code(the one in first case) to send data to save.php from another file page.php and its working perfectly fine there </p> </div>

小程序tabBar.list[1].iconPath 文件不存在

已经根据网上的方案修改过很多次了 但还是没办法解决问题 希望大佬帮忙看看,毕设项目!!!十分感谢 BUG描述: ![图片说明](https://img-ask.csdn.net/upload/202004/08/1586316932_693702.png) 这个是项目的文件路径图 ![图片说明](https://img-ask.csdn.net/upload/202004/08/1586316860_561722.png) 下面是相关的代码段: ``` { "pages": [ "pages/index/index", "pages/change/change", "pages/confirmOrder/confirmOrder", "pages/mycomment/mycomment", "pages/myOrder/myOrder", "pages/me/me", "pages/buy/buy" ], "window": { "backgroundTextStyle": "light", "navigationBarBackgroundColor": "#f4c903", "navigationBarTitleText": "点餐", "navigationBarTextStyle": "white" }, "tabBar": { "color": "#Fc0", "selectedColor": "#f4c903", "borderStyle": "white", "list": [ { "pagePath": "pages/index/index", "text": "首页", "iconPath": "/image/shouye.png", "selectedIconPath": "/image/shouyefill.png" }, { "pagePath": "pages/me/me", "iconPath": "/image/微笑.png", "selectedIconPath": "/image/我的.png", "text": "我的" } ] }, "sitemapLocation": "sitemap.json" } ```

为什么我的wx.switchTab失效了

success: function (res) { app.globalData.number = res.data.phoneNumber; console.log(app.globalData.number); wx.switchTab({ url: 'pages/index/index', success(res) { let page = getCurrentPages().pop(); if (page == undefined || page == null) { return } page.onLoad(); } }) } 这是tabbard的list "list": [ { "pagePath": "pages/index/index", "text": "项目介绍", "iconPath": "/images/pro1.png", "selectedIconPath": "/images/pro.png" }, { "pagePath": "pages/index2/analysis", "text": "累计处理量", "iconPath": "/images/addup1.png", "selectedIconPath": "/images/addup.png" }, { "pagePath": "pages/index3/index3", "text": "我的反馈", "iconPath": "/images/my1.png", "selectedIconPath": "/images/my.png" } ]

无法检索pagePathLevel1维度

<div class="post-text" itemprop="text"> <p>I am trying to retrieve <code>ga:pagePathLevel1</code> here but getting error </p> <blockquote> <p>Warning: array_merge(): Argument #2 is not an array in ...\google-api-php-client\src\Google\Service\Analytics.php on line 1925</p> </blockquote> <pre><code>function getResults(&amp;$analytics, $profileId) { // Calls the Core Reporting API and queries for the number of sessions // for the last seven days. $analytica_report['data_ga_get'] = $analytics-&gt;data_ga-&gt;get( 'ga:' . $profileId, '7daysAgo', 'today', 'ga:sessions,ga:pageviews,ga:uniquePageviews,ga:bounces,ga:timeOnPage,ga:sessionDuration,ga:entrances,ga:exits,ga:searchUniques,ga:transactions', 'ga:pagePathLevel1,ga:pagePathLevel2' ); </code></pre> <p>Can anybody suggest how I can make it correct ?</p> </div>

如何向Google Analytics api请求添加维度

<div class="post-text" itemprop="text"> <p>The examples given by Google are a very simple query request. however, when I try to add more parameters, it will throw errors and I don't exactly know how to structure the syntax. </p> <p>This simple query request works:</p> <pre><code> return $analytics-&gt;data_ga-&gt;get( 'ga:' . $viewID, $startDate, $endDate, 'ga:sessions' ); </code></pre> <p>I need more information and I've already used <a href="https://ga-dev-tools.appspot.com/query-explorer/" rel="nofollow noreferrer">Google's Query Explorer</a> to get the Information but I just don't know how to structure my PHP query. The Information I want to request is also ga:pageviews as another metric, ga:pagePath and ga:pageTitle as dimensions and also a filter. I already fail at adding a second metric.</p> <p>I have tried this:</p> <pre><code>return $analytics-&gt;data_ga-&gt;get( 'ga:' . $viewID, $startDate, $endDate, 'ga:sessions', 'ga:pageviews' ); </code></pre> <p>simply adding it doesn't work. Can anyone point me in the correct direction?</p> </div>

Google AnalyticsAPI:使用php获取特定数据

<div class="post-text" itemprop="text"> <p>I've managed to get some data using:</p> <p><code>$ga-&gt;requestReportData(44030755,array('pagePath'),array('pageviews','uniquePageviews'));</code> and iterating over it using foreach.</p> <p>Here's what's returned:</p> <pre><code> object(gapiReportEntry)[7] private 'metrics' =&gt; array 'pageviews' =&gt; int 1 'uniquePageviews' =&gt; int 1 private 'dimensions' =&gt; array 'pagePath' =&gt; string '//?@faktanyaadalah=' (length=19) object(gapiReportEntry)[12] private 'metrics' =&gt; array 'pageviews' =&gt; int 1 'uniquePageviews' =&gt; int 1 private 'dimensions' =&gt; array 'pagePath' =&gt; string '//?facebookwww-static/assets/images/highlight.png=' (length=50) object(gapiReportEntry)[8] private 'metrics' =&gt; array 'pageviews' =&gt; int 1 'uniquePageviews' =&gt; int 1 private 'dimensions' =&gt; array 'pagePath' =&gt; string '//?faktanyaadalah=&amp;fb_xd_fragment=' (length=34) object(gapiReportEntry)[13] private 'metrics' =&gt; array 'pageviews' =&gt; int 1 'uniquePageviews' =&gt; int 1 private 'dimensions' =&gt; array 'pagePath' =&gt; string '//?faktanyadalah=' (length=17) object(gapiReportEntry)[15] private 'metrics' =&gt; array 'pageviews' =&gt; int 1 'uniquePageviews' =&gt; int 1 private 'dimensions' =&gt; array 'pagePath' =&gt; string '//?uniqpost=&amp;fb_xd_fragment=' (length=28) object(gapiReportEntry)[14] private 'metrics' =&gt; array 'pageviews' =&gt; int 1 'uniquePageviews' =&gt; int 1 private 'dimensions' =&gt; array 'pagePath' =&gt; string '/adamramadhan?offset=0' (length=22) object(gapiReportEntry)[16] private 'metrics' =&gt; array 'pageviews' =&gt; int 1 'uniquePageviews' =&gt; int 1 private 'dimensions' =&gt; array 'pagePath' =&gt; string '/adamramadhan?offset=2' (length=22) object(gapiReportEntry)[18] private 'metrics' =&gt; array 'pageviews' =&gt; int 1 'uniquePageviews' =&gt; int 1 private 'dimensions' =&gt; array 'pagePath' =&gt; string '/adamramadhan?offset=3' (length=22) object(gapiReportEntry)[19] private 'metrics' =&gt; array 'pageviews' =&gt; int 1 'uniquePageviews' =&gt; int 1 private 'dimensions' =&gt; array 'pagePath' =&gt; string '/adamramadhan?offset=4' (length=22) object(gapiReportEntry)[20] private 'metrics' =&gt; array 'pageviews' =&gt; int 1 'uniquePageviews' =&gt; int 1 private 'dimensions' =&gt; array 'pagePath' =&gt; string '/admin/blog?e=2' (length=15) object(gapiReportEntry)[21] private 'metrics' =&gt; array 'pageviews' =&gt; int 1 'uniquePageviews' =&gt; int 1 private 'dimensions' =&gt; array 'pagePath' =&gt; string '/admin/blog?e=4' (length=15) object(gapiReportEntry)[22] private 'metrics' =&gt; array 'pageviews' =&gt; int 1 'uniquePageviews' =&gt; int 1 private 'dimensions' =&gt; array 'pagePath' =&gt; string '/admin/blog?e=5' (length=15) object(gapiReportEntry)[23] private 'metrics' =&gt; array 'pageviews' =&gt; int 1 'uniquePageviews' =&gt; int 1 private 'dimensions' =&gt; array 'pagePath' =&gt; string '/blog?id=23' (length=11) object(gapiReportEntry)[24] private 'metrics' =&gt; array 'pageviews' =&gt; int 1 'uniquePageviews' =&gt; int 1 private 'dimensions' =&gt; array 'pagePath' =&gt; string '/gembelabis' (length=11) object(gapiReportEntry)[25] private 'metrics' =&gt; array 'pageviews' =&gt; int 1 'uniquePageviews' =&gt; int 1 private 'dimensions' =&gt; array 'pagePath' =&gt; string '/messages?id=7' (length=14) object(gapiReportEntry)[26] private 'metrics' =&gt; array 'pageviews' =&gt; int 1 'uniquePageviews' =&gt; int 1 private 'dimensions' =&gt; array 'pagePath' =&gt; string '/messages?id=9' (length=14) object(gapiReportEntry)[27] private 'metrics' =&gt; array 'pageviews' =&gt; int 1 'uniquePageviews' =&gt; int 1 private 'dimensions' =&gt; array 'pagePath' =&gt; string '/messages?mid=15' (length=16) object(gapiReportEntry)[28] private 'metrics' =&gt; array 'pageviews' =&gt; int 1 'uniquePageviews' =&gt; int 1 private 'dimensions' =&gt; array 'pagePath' =&gt; string '/messages?mid=17' (length=16) object(gapiReportEntry)[29] private 'metrics' =&gt; array 'pageviews' =&gt; int 1 'uniquePageviews' =&gt; int 1 private 'dimensions' =&gt; array 'pagePath' =&gt; string '/messages?mid=18' (length=16) object(gapiReportEntry)[30] private 'metrics' =&gt; array 'pageviews' =&gt; int 1 'uniquePageviews' =&gt; int 1 private 'dimensions' =&gt; array 'pagePath' =&gt; string '/product?id=16' (length=14) object(gapiReportEntry)[31] private 'metrics' =&gt; array 'pageviews' =&gt; int 1 'uniquePageviews' =&gt; int 1 private 'dimensions' =&gt; array 'pagePath' =&gt; string '/product?id=18' (length=14) object(gapiReportEntry)[32] private 'metrics' =&gt; array 'pageviews' =&gt; int 1 'uniquePageviews' =&gt; int 1 private 'dimensions' =&gt; array 'pagePath' =&gt; string '/product?id=2' (length=13) object(gapiReportEntry)[33] private 'metrics' =&gt; array 'pageviews' =&gt; int 1 'uniquePageviews' =&gt; int 1 private 'dimensions' =&gt; array 'pagePath' =&gt; string '/product?id=44' (length=14) object(gapiReportEntry)[34] private 'metrics' =&gt; array 'pageviews' =&gt; int 1 'uniquePageviews' =&gt; int 1 private 'dimensions' =&gt; array 'pagePath' =&gt; string '/products?tag=hosting' (length=21) object(gapiReportEntry)[35] private 'metrics' =&gt; array 'pageviews' =&gt; int 1 'uniquePageviews' =&gt; int 1 private 'dimensions' =&gt; array 'pagePath' =&gt; string '/verify/adamramadhan' (length=20) object(gapiReportEntry)[36] private 'metrics' =&gt; array 'pageviews' =&gt; int 1 'uniquePageviews' =&gt; int 1 private 'dimensions' =&gt; array 'pagePath' =&gt; string '/verify/uniqpost' (length=16) object(gapiReportEntry)[37] private 'metrics' =&gt; array 'pageviews' =&gt; int 2 'uniquePageviews' =&gt; int 1 private 'dimensions' =&gt; array 'pagePath' =&gt; string '//?facebookwww-static/assets/images/highlight-1.png=' (length=52) object(gapiReportEntry)[38] private 'metrics' =&gt; array 'pageviews' =&gt; int 2 'uniquePageviews' =&gt; int 1 private 'dimensions' =&gt; array 'pagePath' =&gt; string '/LVUStore' (length=9) object(gapiReportEntry)[39] private 'metrics' =&gt; array 'pageviews' =&gt; int 2 'uniquePageviews' =&gt; int 1 private 'dimensions' =&gt; array 'pagePath' =&gt; string '/adamramadhan?offset=1' (length=22) object(gapiReportEntry)[40] private 'metrics' =&gt; array 'pageviews' =&gt; int 2 'uniquePageviews' =&gt; int 1 private 'dimensions' =&gt; array 'pagePath' =&gt; string '/product?id=22' (length=14) </code></pre> <ol> <li><p><strong>How can i get page views, and uniqpageviews from just using a custom page path</strong>? something like <code>$eachdata-&gt;path('/LVUstore')</code>; returns an array pageview 2, uniqpageview 1, etc</p></li> <li><p>Are there any best practices? e.g. caching the object etc</p></li> </ol> <p>Thanks,</p> </div>

CKEDITOR模态窗口提交表单时能不弹出新窗口吗?

按照http://www.iteye.com/topic/749437 该文章内容实现ckeditor在jsp下增加图片上传功能中遇到上传图片的模态窗口在表单提交时,总是弹出新窗口,我在<head></head>中间添加了<base target="_self">。还是不管用,那位大侠能帮助解决一下? 以下是代码 修改控件代码: ` function addUploadButton(editor){ CKEDITOR.on('dialogDefinition', function( ev ){ var dialogName = ev.data.name; var dialogDefinition = ev.data.definition; if ( dialogName == 'image' ){ var infoTab = dialogDefinition.getContents( 'info' ); infoTab.add({ type : 'button', id : 'upload_image', align : 'left', label : '上传', onClick : function( evt ){ var thisDialog = this.getDialog(); var txtUrlObj = thisDialog.getContentElement('info', 'txtUrl'); var txtUrlId = txtUrlObj.getInputElement().$.id; addUploadImage(txtUrlId); } }, 'browse'); //place front of the browser button } }); } function addUploadImage(theURLElementId){ var uploadUrl = "uploadimage.jsp"; //这是我自己的处理文件/图片上传的页面URL var imgUrl = window.showModalDialog(uploadUrl,new Object(),'dialogHeight=70px;dialogWidth=400px;resizable:no;status:no;scroll:auto;'); //在upload结束后通过js代码window.returnValue=...可以将图片url返回给imgUrl变量。 var urlObj = document.getElementById(theURLElementId); urlObj.value = imgUrl; urlObj.fireEvent("onchange"); //触发url文本框的onchange事件,以便预览图片 } ` 上传页面: <%@ page contentType="text/html; charset=UTF-8"%> <%@ include file="/jsp/include/global.jsp"%> <head base target= "_self "> <base target="_self"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" > <title>上传文件</title> <% String path = (String)request.getAttribute("path"); %> <script language="javascript"> window.name = "_self"; function update_onClick(){ var ownerFile=document.getElementById('uploadFile').value; document.getElementById("_pagePath").value=ownerFile; if(ownerFile==null || ownerFile==""){ alert("请选择上传的文件!"); return false; } form.action="<venus:base/>/UpLoadFileAction.do?cmd=upLoadImage"; form.target="_self"; form.submit(); } </script> </head> <body> <div class="Pageheader"><span>上传文件</span></div> <form name="form" method="post" enctype="multipart/form-data" target="_self"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="centtab"> <tr> <td class="bt"> <table class="table_noFrame" width="100%"> <tr> <td align="right" nowrap="nowrap">请选择上传的文件:</td> <td align="left" nowrap="nowrap" > <input tabindex="2" type="file" class="text_field" id="uploadFile" name="uploadFile" inputName="文件名称" /> <input tabindex="3" name="button_ok" class="button_ellipse" type="button" value="上传" onClick="javascript:update_onClick()"> <input type="hidden" value="<%=null!=path ?path:""%>" name="pagePath" id="_pagePath" /> </td> </tr> </table> </td> </tr> </table> </form> <script type="text/javascript"> var _pagePath = document.getElementById("_pagePath").value; if(null!=_pagePath && ""!=_pagePath){ window.returnValue=_pagePath; window.close(); } </script> </body> </html>

为什么我得到这个PHP注意事项:未定义的偏移量? Mac与Windows上的不同结果[重复]

<div class="post-text" itemprop="text"> <div class="question-status question-originals-of-duplicate"> <p>This question already has an answer here:</p> <ul> <li> <a href="/questions/6686733/php-undefined-offset-in-explode" dir="ltr">PHP: undefined offset in explode()</a> <span class="question-originals-answer-count"> 5 answers </span> </li> </ul> </div> <p>I keep getting " Notice: Undefined offset" for this code </p> <pre><code>&lt;?php // Detect the subdirectory of the page $pagePath = getcwd(); $pageDirs = explode("/", $pagePath); $currentDir = $pageDirs[sizeof($pageDirs)-1]; $isHome = false; $subDir = null; if ($currentDir != "public" &amp;&amp; $currentDir != "components" &amp;&amp; $currentDir != "prototypes" &amp;&amp; $currentDir != "styleguide"){ // 2 levels deep in a Pages directory // Save the last 2 levels into vars $subDir = $currentDir; $currentDir = $pageDirs[sizeof($pageDirs)-2]; } $hostname = getenv('HTTP_HOST'); if ($currentDir == "legacy" || $_SERVER["PHP_SELF"] == "/coronita/index.php"){ // This is the home index page // No subnav will be needed $isHome = true; $currentDir = "overview"; } ?&gt; </code></pre> <p>the error occur at this line</p> <pre><code>$currentDir = $pageDirs[sizeof($pageDirs)-2]; </code></pre> <p>Any ideas? This code shows no errors on a mac but on my windows machine I get the error.</p> </div>

使用Google AnalyticsAPI v4过滤大多数阅读页面

<div class="post-text" itemprop="text"> <p>I'm currently trying to obtain a list of the three most read articles on my site, using the Google Analytics Reporting API v4.</p> <p>Currently, I have been able to request a list of all pages with the number of pageviews each one got in the past 30 days, and filter them by pageview. </p> <p>But now I'm stuck (after browsing for answers for multiple hours) to filter so only pagepaths that include /artikels/ are shown, and limit the list to 3 results.</p> <p>My current code:</p> <pre><code>function getReport($analytics) { // Replace with your view ID, for example XXXX. $VIEW_ID = "XXXXXXX"; // Create the DateRange object. $dateRange = new Google_Service_AnalyticsReporting_DateRange(); $dateRange-&gt;setStartDate("30daysAgo"); $dateRange-&gt;setEndDate("today"); // Create the Metrics object. $sessions = new Google_Service_AnalyticsReporting_Metric(); $sessions-&gt;setExpression("ga:pageviews"); $sessions-&gt;setAlias("sessions"); //Create the Dimensions object. $pagepath = new Google_Service_AnalyticsReporting_Dimension(); $pagepath-&gt;setName("ga:pagePath"); $ordering = new Google_Service_AnalyticsReporting_OrderBy(); $ordering-&gt;setOrderType("VALUE"); $ordering-&gt;setFieldName("ga:pageviews"); $ordering-&gt;setSortOrder("DESCENDING"); // Create the ReportRequest object. $request = new Google_Service_AnalyticsReporting_ReportRequest(); $request-&gt;setViewId($VIEW_ID); $request-&gt;setDateRanges($dateRange); $request-&gt;setDimensions(array($pagepath)); $request-&gt;setOrderBys($ordering); $request-&gt;setMetrics(array($sessions)); $body = new Google_Service_AnalyticsReporting_GetReportsRequest(); $body-&gt;setReportRequests( array( $request) ); return $analytics-&gt;reports-&gt;batchGet( $body ); } </code></pre> <p>Could anyone please help? There is a ton of information about v3, but can't seem to find enough information about v4. Thank you! </p> </div>

PHP - Google Analytics(分析) - 获取上一个小时的综合浏览量

<div class="post-text" itemprop="text"> <p>I'm using Google Analytics Client Api(<a href="https://github.com/google/google-api-php-client.git" rel="nofollow">https://github.com/google/google-api-php-client.git</a>) to get the pageviews. It worked when I tried to get data from 7daysAgo to today, my code is:</p> <pre><code>function getResults(&amp;$analytics, $profileId) { return $analytics-&gt;data_ga-&gt;get( 'ga:' . $profileId, '7daysAgo', 'today', 'ga:visits', array( 'filters' =&gt; 'ga:pagePath==/project_z2o/', 'dimensions' =&gt; 'ga:pagePath', 'metrics' =&gt; 'ga:pageviews', 'sort' =&gt; '-ga:pageviews', 'max-results' =&gt; '25' )); } </code></pre> <p>but now, I want to get the data of the last previous hour. ex: current time is: <em>01-15-2016 11:49:50</em> and I run my code. I want to get the pageviews between <em>01-15-2016 <strong>10:49:50</strong></em> and <em>01-15-2016 <strong>11:49:50</strong></em>. How can I get it. Please help. Thanks.</p> </div>

PHP - Google AnalyticsAPI - 单页面视图/会话

<div class="post-text" itemprop="text"> <p>I want to get the page views for a specific URL, lets say <code>123456.html</code>. If I create a segment on analytics I can see that between <code>2018-03-01</code> and <code>2018-03-29</code> there were 17 sessions and 79 page views.</p> <p>I've tried the following, but it's not returning any session data as far as I can tell:</p> <pre><code>function getReport($analytics) { // Replace with your view ID, for example XXXX. $VIEW_ID = "XXX"; $_date = "2018-03-01"; $_end = "2018-03-29"; // Create the DateRange object. $dateRange = new Google_Service_AnalyticsReporting_DateRange(); $dateRange-&gt;setStartDate($_date); $dateRange-&gt;setEndDate($_end); // Create the Metrics object. $sessions = new Google_Service_AnalyticsReporting_Metric(); $sessions-&gt;setExpression("ga:sessions"); $sessions-&gt;setAlias("sessions"); //Create the Dimensions object. $pagePath = new Google_Service_AnalyticsReporting_Dimension(); $pagePath-&gt;setName("ga:browser"); //Create the DimensionFilter. $dimensionFilter = new Google_Service_AnalyticsReporting_DimensionFilter(); $dimensionFilter-&gt;setDimensionName('ga:pagePath'); $dimensionFilter-&gt;setOperator('ENDS_WITH'); $dimensionFilter-&gt;setExpressions(array('123456.html')); //Create the DimensionFilterClauses $dimensionFilterClause = new Google_Service_AnalyticsReporting_DimensionFilterClause(); $dimensionFilterClause-&gt;setFilters(array($dimensionFilter)); //Create the ReportRequest object. $request = new Google_Service_AnalyticsReporting_ReportRequest(); $request-&gt;setViewId($VIEW_ID); $request-&gt;setDateRanges($dateRange); //$request-&gt;setDimensions(array($pagePath)); $request-&gt;setDimensionFilterClauses(array($dimensionFilterClause)); $request-&gt;setMetrics(array($sessions)); $body = new Google_Service_AnalyticsReporting_GetReportsRequest(); $body-&gt;setReportRequests( array( $request) ); $response = $analytics-&gt;reports-&gt;batchGet( $body ); print_r($response); } </code></pre> </div>

Google AnalyticsAPI PHP - 获得前5个页面

<div class="post-text" itemprop="text"> <p>I'm trying to work out how to get the top 5 pages from my Google Analytics Project API in PHP. So far I've made the following code, but it doesn't appear to work - any ideas?</p> <pre><code> private function getTopPages($profileId) { $optParams = array( 'sort' =&gt; 'ga:pageviews', 'max-results' =&gt; '5'); return $this-&gt;analytics-&gt;data_ga-&gt;get( 'ga:' . $profileId, '2012-09-01', '2012-09-30', 'ga:pagePath', $optParams); } </code></pre> </div>

Google PHP客户端库 - 为foreach()提供的参数无效

<div class="post-text" itemprop="text"> <p>Whenever the pageviews I am retrieving has 0 pageviews, I receive the error <code>invalid argument supplied for foreach()</code>.</p> <p>How am I supposed to prevent this error from occurring?</p> <p>Here's my code:</p> <pre><code> $parameters = array( 'filters' =&gt; 'ga:pagePath==/about' 'dimensions' =&gt; 'ga:pagePath', 'metrics' =&gt; 'ga:pageviews,ga:uniquePageviews', 'sort' =&gt; '-ga:pageviews' ); $data = self::$analytics-&gt;data_ga-&gt;get( 'ga:100174927', date("Y-m-d", $start), date("Y-m-d", $finish), 'ga:visits', $parameters ); $analytics = array( 'pageviews' =&gt; 0, 'uniquePageviews' =&gt; 0 ); // This is the foreach loop that is creating the error: foreach ($data-&gt;getRows() as $key =&gt; $row) { $analytics['pageviews'] += $row[1]; $analytics['uniquePageviews'] += $row[2]; } return $analytics; </code></pre> </div>

2019 AI开发者大会

2019 AI开发者大会(AI ProCon 2019)是由中国IT社区CSDN主办的AI技术与产业年度盛会。多年经验淬炼,如今蓄势待发:2019年9月6-7日,大会将有近百位中美顶尖AI专家、知名企业代表以及千余名AI开发者齐聚北京,进行技术解读和产业论证。我们不空谈口号,只谈技术,诚挚邀请AI业内人士一起共铸人工智能新篇章!

实现简单的文件系统

实验内容: 通过对具体的文件存储空间的管理、文件的物理结构、目录结构和文件操作的实现,加深对文件系统内部功能和实现过程的理解。 要求: 1.在内存中开辟一个虚拟磁盘空间作为文件存储器,在其上实现一个简

MIPS单周期CPU-组成原理实验-华中科技大学

使用logisim布线完成的MIPS单周期CPU,可支持28条指令。跑马灯的代码已经装入了寄存器,可以直接开启时钟运行。

2019数学建模A题高压油管的压力控制 省一论文即代码

2019数学建模A题高压油管的压力控制省一完整论文即详细C++和Matlab代码,希望对同学们有所帮助

基于QT和OpenCV的五子棋实现源码

一个简单的五子棋应用,基于QT和OpenCV的实现源码,通过相邻棋子判断是否获胜,不包含人工智能算法,适合新手入门

Git 实用技巧

这几年越来越多的开发团队使用了Git,掌握Git的使用已经越来越重要,已经是一个开发者必备的一项技能;但很多人在刚开始学习Git的时候会遇到很多疑问,比如之前使用过SVN的开发者想不通Git提交代码为什么需要先commit然后再去push,而不是一条命令一次性搞定; 更多的开发者对Git已经入门,不过在遇到一些代码冲突、需要恢复Git代码时候就不知所措,这个时候哪些对 Git掌握得比较好的少数人,就像团队中的神一样,在队友遇到 Git 相关的问题的时候用各种流利的操作来帮助队友于水火。 我去年刚加入新团队,发现一些同事对Git的常规操作没太大问题,但对Git的理解还是比较生疏,比如说分支和分支之间的关联关系、合并代码时候的冲突解决、提交代码前未拉取新代码导致冲突问题的处理等,我在协助处理这些问题的时候也记录各种问题的解决办法,希望整理后通过教程帮助到更多对Git操作进阶的开发者。 本期教程学习方法分为“掌握基础——稳步进阶——熟悉协作”三个层次。从掌握基础的 Git的推送和拉取开始,以案例进行演示,分析每一个步骤的操作方式和原理,从理解Git 工具的操作到学会代码存储结构、演示不同场景下Git遇到问题的不同处理方案。循序渐进让同学们掌握Git工具在团队协作中的整体协作流程。 在教程中会通过大量案例进行分析,案例会模拟在工作中遇到的问题,从最基础的代码提交和拉取、代码冲突解决、代码仓库的数据维护、Git服务端搭建等。为了让同学们容易理解,对Git简单易懂,文章中详细记录了详细的操作步骤,提供大量演示截图和解析。在教程的最后部分,会从提升团队整体效率的角度对Git工具进行讲解,包括规范操作、Gitlab的搭建、钩子事件的应用等。 为了让同学们可以利用碎片化时间来灵活学习,在教程文章中大程度降低了上下文的依赖,让大家可以在工作之余进行学习与实战,并同时掌握里面涉及的Git不常见操作的相关知识,理解Git工具在工作遇到的问题解决思路和方法,相信一定会对大家的前端技能进阶大有帮助。

实用主义学Python(小白也容易上手的Python实用案例)

原价169,限时立减100元! 系统掌握Python核心语法16点,轻松应对工作中80%以上的Python使用场景! 69元=72讲+源码+社群答疑+讲师社群分享会&nbsp; 【哪些人适合学习这门课程?】 1)大学生,平时只学习了Python理论,并未接触Python实战问题; 2)对Python实用技能掌握薄弱的人,自动化、爬虫、数据分析能让你快速提高工作效率; 3)想学习新技术,如:人工智能、机器学习、深度学习等,这门课程是你的必修课程; 4)想修炼更好的编程内功,优秀的工程师肯定不能只会一门语言,Python语言功能强大、使用高效、简单易学。 【超实用技能】 从零开始 自动生成工作周报 职场升级 豆瓣电影数据爬取 实用案例 奥运冠军数据分析 自动化办公:通过Python自动化分析Excel数据并自动操作Word文档,最终获得一份基于Excel表格的数据分析报告。 豆瓣电影爬虫:通过Python自动爬取豆瓣电影信息并将电影图片保存到本地。 奥运会数据分析实战 简介:通过Python分析120年间奥运会的数据,从不同角度入手分析,从而得出一些有趣的结论。 【超人气老师】 二两 中国人工智能协会高级会员 生成对抗神经网络研究者 《深入浅出生成对抗网络:原理剖析与TensorFlow实现》一书作者 阿里云大学云学院导师 前大型游戏公司后端工程师 【超丰富实用案例】 0)图片背景去除案例 1)自动生成工作周报案例 2)豆瓣电影数据爬取案例 3)奥运会数据分析案例 4)自动处理邮件案例 5)github信息爬取/更新提醒案例 6)B站百大UP信息爬取与分析案例 7)构建自己的论文网站案例

深度学习原理+项目实战+算法详解+主流框架(套餐)

深度学习系列课程从深度学习基础知识点开始讲解一步步进入神经网络的世界再到卷积和递归神经网络,详解各大经典网络架构。实战部分选择当下最火爆深度学习框架PyTorch与Tensorflow/Keras,全程实战演示框架核心使用与建模方法。项目实战部分选择计算机视觉与自然语言处理领域经典项目,从零开始详解算法原理,debug模式逐行代码解读。适合准备就业和转行的同学们加入学习! 建议按照下列课程顺序来进行学习 (1)掌握深度学习必备经典网络架构 (2)深度框架实战方法 (3)计算机视觉与自然语言处理项目实战。(按照课程排列顺序即可)

C/C++跨平台研发从基础到高阶实战系列套餐

一 专题从基础的C语言核心到c++ 和stl完成基础强化; 二 再到数据结构,设计模式完成专业计算机技能强化; 三 通过跨平台网络编程,linux编程,qt界面编程,mfc编程,windows编程,c++与lua联合编程来完成应用强化 四 最后通过基于ffmpeg的音视频播放器,直播推流,屏幕录像,

三个项目玩转深度学习(附1G源码)

从事大数据与人工智能开发与实践约十年,钱老师亲自见证了大数据行业的发展与人工智能的从冷到热。事实证明,计算机技术的发展,算力突破,海量数据,机器人技术等,开启了第四次工业革命的序章。深度学习图像分类一直是人工智能的经典任务,是智慧零售、安防、无人驾驶等机器视觉应用领域的核心技术之一,掌握图像分类技术是机器视觉学习的重中之重。针对现有线上学习的特点与实际需求,我们开发了人工智能案例实战系列课程。打造:以项目案例实践为驱动的课程学习方式,覆盖了智能零售,智慧交通等常见领域,通过基础学习、项目案例实践、社群答疑,三维立体的方式,打造最好的学习效果。

Java基础知识面试题(2020最新版)

文章目录Java概述何为编程什么是Javajdk1.5之后的三大版本JVM、JRE和JDK的关系什么是跨平台性?原理是什么Java语言有哪些特点什么是字节码?采用字节码的最大好处是什么什么是Java程序的主类?应用程序和小程序的主类有何不同?Java应用程序与小程序之间有那些差别?Java和C++的区别Oracle JDK 和 OpenJDK 的对比基础语法数据类型Java有哪些数据类型switc...

Python界面版学生管理系统

前不久上传了一个控制台版本的学生管理系统,这个是Python界面版学生管理系统,这个是使用pycharm开发的一个有界面的学生管理系统,基本的增删改查,里面又演示视频和完整代码,有需要的伙伴可以自行下

Vue.js 2.0之全家桶系列视频课程

基于新的Vue.js 2.3版本, 目前新全的Vue.js教学视频,让你少走弯路,直达技术前沿! 1. 包含Vue.js全家桶(vue.js、vue-router、axios、vuex、vue-cli、webpack、ElementUI等) 2. 采用笔记+代码案例的形式讲解,通俗易懂

linux“开发工具三剑客”速成攻略

工欲善其事,必先利其器。Vim+Git+Makefile是Linux环境下嵌入式开发常用的工具。本专题主要面向初次接触Linux的新手,熟练掌握工作中常用的工具,在以后的学习和工作中提高效率。

JAVA初级工程师面试36问(完结)

第三十一问: 说一下线程中sleep()和wait()区别? 1 . sleep()是让正在执行的线程主动让出CPU,当时间到了,在回到自己的线程让程序运行。但是它并没有释放同步资源锁只是让出。 2.wait()是让当前线程暂时退让出同步资源锁,让其他线程来获取到这个同步资源在调用notify()方法,才会让其解除wait状态,再次参与抢资源。 3. sleep()方法可以在任何地方使用,而wait()只能在同步方法或同步块使用。 ...

java jdk 8 帮助文档 中文 文档 chm 谷歌翻译

JDK1.8 API 中文谷歌翻译版 java帮助文档 JDK API java 帮助文档 谷歌翻译 JDK1.8 API 中文 谷歌翻译版 java帮助文档 Java最新帮助文档 本帮助文档是使用谷

我以为我对Mysql事务很熟,直到我遇到了阿里面试官

太惨了,面试又被吊打

智鼎(附答案).zip

并不是完整题库,但是有智鼎在线2019年9、10、11三个月的试题,有十七套以上题目,普通的网申行测题足以对付,可以在做题时自己总结一些规律,都不是很难

Visual Assist X 破解补丁

vs a's'sixt插件 支持vs2008-vs2019 亲测可以破解,希望可以帮助到大家

150讲轻松搞定Python网络爬虫

【为什么学爬虫?】 &nbsp; &nbsp; &nbsp; &nbsp;1、爬虫入手容易,但是深入较难,如何写出高效率的爬虫,如何写出灵活性高可扩展的爬虫都是一项技术活。另外在爬虫过程中,经常容易遇到被反爬虫,比如字体反爬、IP识别、验证码等,如何层层攻克难点拿到想要的数据,这门课程,你都能学到! &nbsp; &nbsp; &nbsp; &nbsp;2、如果是作为一个其他行业的开发者,比如app开发,web开发,学习爬虫能让你加强对技术的认知,能够开发出更加安全的软件和网站 【课程设计】 一个完整的爬虫程序,无论大小,总体来说可以分成三个步骤,分别是: 网络请求:模拟浏览器的行为从网上抓取数据。 数据解析:将请求下来的数据进行过滤,提取我们想要的数据。 数据存储:将提取到的数据存储到硬盘或者内存中。比如用mysql数据库或者redis等。 那么本课程也是按照这几个步骤循序渐进的进行讲解,带领学生完整的掌握每个步骤的技术。另外,因为爬虫的多样性,在爬取的过程中可能会发生被反爬、效率低下等。因此我们又增加了两个章节用来提高爬虫程序的灵活性,分别是: 爬虫进阶:包括IP代理,多线程爬虫,图形验证码识别、JS加密解密、动态网页爬虫、字体反爬识别等。 Scrapy和分布式爬虫:Scrapy框架、Scrapy-redis组件、分布式爬虫等。 通过爬虫进阶的知识点我们能应付大量的反爬网站,而Scrapy框架作为一个专业的爬虫框架,使用他可以快速提高我们编写爬虫程序的效率和速度。另外如果一台机器不能满足你的需求,我们可以用分布式爬虫让多台机器帮助你快速爬取数据。 &nbsp; 从基础爬虫到商业化应用爬虫,本套课程满足您的所有需求! 【课程服务】 专属付费社群+每周三讨论会+1v1答疑

JavaWEB商城项目(包括数据库)

功能描述:包括用户的登录注册,以及个人资料的修改.商品的分类展示,详情,加入购物车,生成订单,到银行支付等!另外还有收货地址的和我的收藏等常用操作.环境(JDK 1.7 ,mysql 5.5,Ecli

Python数据挖掘简易入门

&nbsp; &nbsp; &nbsp; &nbsp; 本课程为Python数据挖掘方向的入门课程,课程主要以真实数据为基础,详细介绍数据挖掘入门的流程和使用Python实现pandas与numpy在数据挖掘方向的运用,并深入学习如何运用scikit-learn调用常用的数据挖掘算法解决数据挖掘问题,为进一步深入学习数据挖掘打下扎实的基础。

一学即懂的计算机视觉(第一季)

图像处理和计算机视觉的课程大家已经看过很多,但总有“听不透”,“用不了”的感觉。课程致力于创建人人都能听的懂的计算机视觉,通过生动、细腻的讲解配合实战演练,让学生真正学懂、用会。 【超实用课程内容】 课程内容分为三篇,包括视觉系统构成,图像处理基础,特征提取与描述,运动跟踪,位姿估计,三维重构等内容。课程理论与实战结合,注重教学内容的可视化和工程实践,为人工智能视觉研发及算法工程师等相关高薪职位就业打下坚实基础。 【课程如何观看?】 PC端:https://edu.csdn.net/course/detail/26281 移动端:CSDN 学院APP(注意不是CSDN APP哦) 本课程为录播课,课程2年有效观看时长,但是大家可以抓紧时间学习后一起讨论哦~ 【学员专享增值服务】 源码开放 课件、课程案例代码完全开放给你,你可以根据所学知识,自行修改、优化 下载方式:电脑登录https://edu.csdn.net/course/detail/26281,点击右下方课程资料、代码、课件等打包下载

软件测试2小时入门

本课程内容系统、全面、简洁、通俗易懂,通过2个多小时的介绍,让大家对软件测试有个系统的理解和认识,具备基本的软件测试理论基础。 主要内容分为5个部分: 1 软件测试概述,了解测试是什么、测试的对象、原则、流程、方法、模型;&nbsp; 2.常用的黑盒测试用例设计方法及示例演示;&nbsp; 3 常用白盒测试用例设计方法及示例演示;&nbsp; 4.自动化测试优缺点、使用范围及示例‘;&nbsp; 5.测试经验谈。

初级玩转Linux+Ubuntu(嵌入式开发基础课程)

课程主要面向嵌入式Linux初学者、工程师、学生 主要从一下几方面进行讲解: 1.linux学习路线、基本命令、高级命令 2.shell、vi及vim入门讲解 3.软件安装下载、NFS、Samba、FTP等服务器配置及使用

2019 Python开发者日-培训

本次活动将秉承“只讲技术,拒绝空谈”的理念,邀请十余位身处一线的Python技术专家,重点围绕Web开发、自动化运维、数据分析、人工智能等技术模块,分享真实生产环境中使用Python应对IT挑战的真知灼见。此外,针对不同层次的开发者,大会还安排了深度培训实操环节,为开发者们带来更多深度实战的机会。

快速入门Android开发 视频 教程 android studio

这是一门快速入门Android开发课程,顾名思义是让大家能快速入门Android开发。 学完能让你学会如下知识点: Android的发展历程 搭建Java开发环境 搭建Android开发环境 Android Studio基础使用方法 Android Studio创建项目 项目运行到模拟器 项目运行到真实手机 Android中常用控件 排查开发中的错误 Android中请求网络 常用Android开发命令 快速入门Gradle构建系统 项目实战:看美图 常用Android Studio使用技巧 项目签名打包 如何上架市场

机器学习初学者必会的案例精讲

通过六个实际的编码项目,带领同学入门人工智能。这些项目涉及机器学习(回归,分类,聚类),深度学习(神经网络),底层数学算法,Weka数据挖掘,利用Git开源项目实战等。

4小时玩转微信小程序——基础入门与微信支付实战

这是一个门针对零基础学员学习微信小程序开发的视频教学课程。课程采用腾讯官方文档作为教程的唯一技术资料来源。杜绝网络上质量良莠不齐的资料给学员学习带来的障碍。 视频课程按照开发工具的下载、安装、使用、程序结构、视图层、逻辑层、微信小程序等几个部分组织课程,详细讲解整个小程序的开发过程

相关热词 c#分级显示数据 c# 不区分大小写替换 c#中调用就java c#正则表达式 验证小数 c# vscode 配置 c#三维数组能存多少数据 c# 新建excel c#多个文本框 c#怎么创建tcp通讯 c# mvc 电子病例
立即提问
相关内容推荐