diff --git a/App.vue b/App.vue index ab1f660..8a71a42 100644 --- a/App.vue +++ b/App.vue @@ -51,8 +51,8 @@ export default { onLaunch: function () { // #ifdef APP-PLUS this.checkArguments(); // 检测启动参数 - APPUpdate(); - + APPUpdate(); + // 重点是以下: 一定要监听后台恢复 !一定要 plus.globalEvent.addEventListener("newintent", (e) => { this.checkArguments(); // 检测启动参数 @@ -65,7 +65,6 @@ export default { this.getClipboard(); // #endif }, - methods: { // TODO 开屏广告 后续优化添加 launch() { diff --git a/config/api.js b/config/api.js index d5568e5..2bf60da 100644 --- a/config/api.js +++ b/config/api.js @@ -4,10 +4,10 @@ */ // 开发环境 const dev = { - common: "http://192.168.0.100:8890", - buyer: "http://192.168.0.100:8888", - // common: "https://common-api.pickmall.cn", - // buyer: "https://buyer-api.pickmall.cn", + // common: "http://192.168.0.100:8890", + // buyer: "http://192.168.0.100:8888", + common: "https://common-api.pickmall.cn", + buyer: "https://buyer-api.pickmall.cn", }; // 生产环境 const prod = { diff --git a/pages.json b/pages.json index 96517d0..676b6da 100644 --- a/pages.json +++ b/pages.json @@ -408,7 +408,9 @@ { "path": "wechatMPLogin", "style": { - "navigationBarTitleText": "小程序登录" + "navigationBarTitleText": "小程序登录", + "navigationStyle": "custom", + "navigationBarTextStyle": "black" } } ] diff --git a/pages/navigation/search/searchPage.vue b/pages/navigation/search/searchPage.vue index 35d4133..ff405d2 100644 --- a/pages/navigation/search/searchPage.vue +++ b/pages/navigation/search/searchPage.vue @@ -179,7 +179,7 @@
- + {{ item.storeName || "暂无" }}
@@ -314,7 +314,7 @@ export default { isSWitch: false, params: { - pageNumber: 0, + pageNumber: 1, pageSize: 10, // sort: 'grade_asc', sort: "releaseTime", @@ -324,7 +324,7 @@ export default { minPrice: "", maxPrice: "", sortParams: { - pageNumber: 0, + pageNumber: 1, pageSize: 10, // price: "", //价格,示例值(10_30) @@ -474,7 +474,7 @@ export default { this.minPrice = ""; this.maxPrice = ""; this.params = { - pageNumber: 0, + pageNumber: 1, pageSize: 10, }; this.loadData(); @@ -545,7 +545,7 @@ export default { }, tabClick(index, type) { - this.params.pageNumber = 0; + this.params.pageNumber = 1; this.params.pageSize = 10; // this.params.order = "desc"; if (this.params.sort == type) { @@ -687,7 +687,7 @@ export default { this.isShowSeachGoods = true; this.$refs.mSearch.isShowSeachGoods = true; this.params.keyword = keyword; - this.params.pageNumber = 0; + this.params.pageNumber = 1; this.$set(this.sortParams, "keyword", keyword); this.loadData("refresh", 1); diff --git a/pages/passport/onClickLogin.vue b/pages/passport/onClickLogin.vue index 0190b8c..761fbc7 100644 --- a/pages/passport/onClickLogin.vue +++ b/pages/passport/onClickLogin.vue @@ -13,10 +13,10 @@ - +.btns { + margin-top: 100rpx; + display: flex; + width: 100%; + justify-content: center; +} + diff --git a/pages/product/goods.vue b/pages/product/goods.vue index 7d51752..ec6ec8d 100644 --- a/pages/product/goods.vue +++ b/pages/product/goods.vue @@ -442,6 +442,11 @@ export default { }, async onLoad(options) { this.routerVal = options; + + // #ifdef MP-WEIXIN + // 小程序默认分享 + uni.showShareMenu({ withShareTicket: true }); + // #endif }, async onShow() { this.goodsDetail = {}; diff --git a/pages/product/product/shop/-shop.vue b/pages/product/product/shop/-shop.vue index dcaeed9..de42716 100644 --- a/pages/product/product/shop/-shop.vue +++ b/pages/product/product/shop/-shop.vue @@ -1,26 +1,26 @@