Commit 5d4470da by liuquan

no message

parent 8ab7f425
...@@ -11,12 +11,16 @@ Page({ ...@@ -11,12 +11,16 @@ Page({
phone: '', phone: '',
take_over: ['请选择', '', ''], take_over: ['请选择', '', ''],
detail_address: '', detail_address: '',
type:0
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad: function (options) { onLoad: function (options) {
let that = this; let that = this;
if(options.type){
that.data.type=options.type;
}
if(options.ordernumber){ if(options.ordernumber){
that.data.ordernumber=options.ordernumber; that.data.ordernumber=options.ordernumber;
} }
...@@ -48,9 +52,9 @@ Page({ ...@@ -48,9 +52,9 @@ Page({
let item = wx.getStorageSync('data'); let item = wx.getStorageSync('data');
//id不为空属于修改 //id不为空属于修改
if (that.data.id != '') { if (that.data.id != '') {
console.log(2)
let data = {}; let data = {};
data.id = that.data.id data.id = that.data.id;
data.type=that.data.type;
data.name = e.detail.value.name; data.name = e.detail.value.name;
data.phone = e.detail.value.phone; data.phone = e.detail.value.phone;
if(data.take_over=='请选择'){ if(data.take_over=='请选择'){
......
...@@ -221,7 +221,7 @@ Page({ ...@@ -221,7 +221,7 @@ Page({
}).then((res) => { }).then((res) => {
if (res.code == 1) { if (res.code == 1) {
wx.navigateTo({ wx.navigateTo({
url: '/packageA/addsite/addsite?item=' + JSON.stringify(e.currentTarget.dataset.address) + '&ordernumber=' + e.currentTarget.dataset.ordernumber + '&type=1', url: '/packageA/addsite/addsite?item=' + JSON.stringify(e.currentTarget.dataset.address) + '&ordernumber=' + e.currentTarget.dataset.ordernumber,
}) })
} else { } else {
wx.showToast({ wx.showToast({
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
{ {
"name": "packageA/productOrderInfo/productOrderInfo", "name": "packageA/productOrderInfo/productOrderInfo",
"pathName": "packageA/productOrderInfo/productOrderInfo", "pathName": "packageA/productOrderInfo/productOrderInfo",
"query": "scene=15152", "query": "scene=15164",
"scene": 1011 "scene": 1011
}, },
{ {
......
...@@ -7,8 +7,8 @@ const HOST_P = "https://static.xiaodongai.com/xiaodongai/"; ...@@ -7,8 +7,8 @@ const HOST_P = "https://static.xiaodongai.com/xiaodongai/";
const HOST_P_K = "https://static.xiaodongai.com/xiaodongai/kongtian/"; const HOST_P_K = "https://static.xiaodongai.com/xiaodongai/kongtian/";
// const HOST = "https://test-wechat.xiaodongai.com/"; // const HOST = "https://test-wechat.xiaodongai.com/";
const HOST = 'https://www.xiaodongai.com/xiaodongai/kongtian/'; // const HOST = 'https://www.xiaodongai.com/xiaodongai/kongtian/';
// const HOST = 'https://www.xiaodongai.com/xiaodongai/ceshi/'; //测试库 const HOST = 'https://www.xiaodongai.com/xiaodongai/ceshi/'; //测试库
// var HOST = 'http://192.168.0.123:8081/xiaodongai/ceshi/'; //本地 // var HOST = 'http://192.168.0.123:8081/xiaodongai/ceshi/'; //本地
// var HOST = 'http://localhost/xiaodongai/kongtian/'; //本地 // var HOST = 'http://localhost/xiaodongai/kongtian/'; //本地
const patient = "http://test.patient.xiaodongai.com/" //测试新地址 const patient = "http://test.patient.xiaodongai.com/" //测试新地址
......
...@@ -3,13 +3,13 @@ import TIM from 'tim-wx-sdk'; ...@@ -3,13 +3,13 @@ import TIM from 'tim-wx-sdk';
import COS from "cos-wx-sdk-v5"; import COS from "cos-wx-sdk-v5";
const Util = require('./util.js'); const Util = require('./util.js');
/**正式IMSDKAppID */ /**正式IMSDKAppID */
let options = {
SDKAppID: 1400103358 // 接入时需要将0替换为您的即时通信 IM 应用的 SDKAppID
};
/**测试IMSDK */
// let options = { // let options = {
// SDKAppID: 1400407697 // 接入时需要将0替换为您的即时通信 IM 应用的 SDKAppID // SDKAppID: 1400103358 // 接入时需要将0替换为您的即时通信 IM 应用的 SDKAppID
// }; // };
/**测试IMSDK */
let options = {
SDKAppID: 1400407697 // 接入时需要将0替换为您的即时通信 IM 应用的 SDKAppID
};
// 创建 SDK 实例,`TIM.create()`方法对于同一个 `SDKAppID` 只会返回同一份实例 // 创建 SDK 实例,`TIM.create()`方法对于同一个 `SDKAppID` 只会返回同一份实例
const tim = TIM.create(options); // SDK 实例通常用 tim 表示 const tim = TIM.create(options); // SDK 实例通常用 tim 表示
const data = { const data = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment