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) }, 1)
// if (item.goods_jump_type == "changshu" || item.goods_jump_type == "yjks") { if (item.goods_jump_type == "changshu" || item.goods_jump_type == "yjks") {
// util.goProdInOtherPlatform(item) util.goProdInOtherPlatform(item)
// return return
// } }

1
pages/info/roadInfo/index.js

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

8
pages/order/payresult/index.js

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

7
project.private.config.json

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

4
utils/https.js

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

Loading…
Cancel
Save