|
@@ -53,15 +53,8 @@ Page({
|
|
|
}
|
|
|
|
|
|
const _this = this;
|
|
|
- let url = `/Applets/shengshizhongguo/json/${options.url || 'shengshi'}`;
|
|
|
- if (globalData.miniProgram.envVersion === 'develop') {
|
|
|
- url += '-dev'
|
|
|
- } else if (globalData.miniProgram.envVersion === 'trial') {
|
|
|
- url += '-tri'
|
|
|
- }
|
|
|
- url += `.json?${Date.now()}`
|
|
|
httpOrther({
|
|
|
- url,
|
|
|
+ url: `/Applets/shengshizhongguo/json/${(options.url || 'shengshi') + globalData.miniProgram.envVersion}.json?${Date.now()}`,
|
|
|
call(res) {
|
|
|
_this.setData({
|
|
|
iconList: res.list || [],
|
|
@@ -118,7 +111,10 @@ Page({
|
|
|
* 用户点击右上角分享
|
|
|
*/
|
|
|
onShareAppMessage: function () {
|
|
|
-
|
|
|
+ return {
|
|
|
+ title: "", // 分享名称
|
|
|
+ path: 'pages/home/index', // 点击分享后的链接要来到的页面的路径已经对应需要的参数
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
})
|