Browse Source

区县跳转

master
jiazhipeng 7 months ago
parent
commit
ee929f7d77
  1. 8
      pages/component/proRec/proRec.js
  2. 1
      pages/info/roadInfo/index.js
  3. 8
      pages/order/payresult/index.js
  4. 7
      project.private.config.json
  5. 4
      utils/https.js

8
pages/component/proRec/proRec.js

@ -103,10 +103,10 @@ Component({
}
}, 1)
// if (item.goods_jump_type == "changshu" || item.goods_jump_type == "yjks") {
// util.goProdInOtherPlatform(item)
// return
// }
if (item.goods_jump_type == "changshu" || item.goods_jump_type == "yjks") {
util.goProdInOtherPlatform(item)
return
}

1
pages/info/roadInfo/index.js

@ -165,7 +165,6 @@ Page({
order: function () {
// todo 判断组合产品
// if (this.data.info.is_compose == 1) {
// if (true) {
// // 打开规格弹窗
// this.setData({skuFlag: true})
// return

8
pages/order/payresult/index.js

@ -48,10 +48,10 @@ Page({
gotoDetail:function(e){
let item = e.currentTarget.dataset.item;
// todo 区县跳转
// if (item.goods_jump_type == "changshu" || item.goods_jump_type == "yjks") {
// util.goProdInOtherPlatform(item)
// return
// }
if (item.goods_jump_type == "changshu" || item.goods_jump_type == "yjks") {
util.goProdInOtherPlatform(item)
return
}
util.gotoDetail(item)

7
project.private.config.json

@ -6,6 +6,13 @@
"condition": {
"miniprogram": {
"list": [
{
"name": "pages/info/roadInfo/index",
"pathName": "pages/info/roadInfo/index",
"query": "id=457643",
"scene": null,
"launchMode": "default"
},
{
"name": "pages/order/pay/index",
"pathName": "pages/order/pay/index",

4
utils/https.js

@ -1,8 +1,8 @@
var app = getApp();
import util from "../utils/util"
// import userApi from "../utils/https/user.js";
// const baseUrl = "https://test.api.cloud.sz-trip.com/api/";
let baseUrl = "https://api.cloud.sz-trip.com/api/";
const baseUrl = "https://test.api.cloud.sz-trip.com/api/";
// let baseUrl = "https://api.cloud.sz-trip.com/api/";
const env = wx.getAccountInfoSync().miniProgram.envVersion
if (env == 'develop1') {
baseUrl = "https://test.api.cloud.sz-trip.com/api/"

Loading…
Cancel
Save