Commit 4b5d3692 by 赵雅纹

Merge branch 'feature-zyw' into 'dev'

Feature zyw

See merge request !15
parents ccebe01e 12100ce1
...@@ -103,5 +103,6 @@ App({ ...@@ -103,5 +103,6 @@ App({
loginFirst: false, loginFirst: false,
imageUrl:"", //图片地址 imageUrl:"", //图片地址
isFullSucreen: false, // 当前设备是否为 FullSucreen isFullSucreen: false, // 当前设备是否为 FullSucreen
brandId:2005
} }
}) })
...@@ -45,7 +45,7 @@ wxService.page({ ...@@ -45,7 +45,7 @@ wxService.page({
title: '加载中' title: '加载中'
}) })
// brandId dev_1002 711_2005 // brandId dev_1002 711_2005
wxService.get(`/sale/order/findByOrderNo?orderNo=${orderNo}&brandId=2005`).then(res => { wxService.get(`/sale/order/findByOrderNo?orderNo=${orderNo}&brandId=${app.globalData.brandId}`).then(res => {
const {result,data} = res.data const {result,data} = res.data
if(result == 0){ if(result == 0){
wx.hideLoading() wx.hideLoading()
......
...@@ -55,7 +55,7 @@ wxService.page({ ...@@ -55,7 +55,7 @@ wxService.page({
title: '加载中' title: '加载中'
}) })
// brandId 1001 2005 // brandId 1001 2005
wxService.post(`/merchant/modelPage/getDetailById?pageId=4&brandId=2005`).then(res => { wxService.post(`/merchant/modelPage/getDetailById?pageId=4&brandId=${app.globalData.brandId}`).then(res => {
const {result,data} = res.data const {result,data} = res.data
if(result == 0){ if(result == 0){
// 动态设置title // 动态设置title
......
...@@ -35,7 +35,7 @@ wxService.page({ ...@@ -35,7 +35,7 @@ wxService.page({
//获取规则 //获取规则
getRule(TYPE){ getRule(TYPE){
wxService.get(`/merchant/brandRuleDescSet/get?type=${TYPE}`).then(res => { wxService.get(`/merchant/brandRuleDescSet/get?type=${TYPE}&brandId=${app.globalData.brandId}`).then(res => {
console.log(res) console.log(res)
this.setData({ this.setData({
ruleImg: res.data.data.content ruleImg: res.data.data.content
......
...@@ -138,7 +138,7 @@ wxService.page({ ...@@ -138,7 +138,7 @@ wxService.page({
title: '加载中' title: '加载中'
}) })
// 1001 2005 // 1001 2005
wxService.post(`/merchant/modelPage/getDetailById?pageId=3&brandId=2005`).then(res => { wxService.post(`/merchant/modelPage/getDetailById?pageId=3&brandId=${app.globalData.brandId}`).then(res => {
const {result,data} = res.data const {result,data} = res.data
if(result == 0){ if(result == 0){
// 动态设置title // 动态设置title
......
...@@ -2,6 +2,7 @@ const wxService = require('./wxService') ...@@ -2,6 +2,7 @@ const wxService = require('./wxService')
const moment = require('../lib/moment.min') const moment = require('../lib/moment.min')
const Promise = require('../lib/bluebird') const Promise = require('../lib/bluebird')
const _ = require('../lib/underscore.min') const _ = require('../lib/underscore.min')
const app = getApp()
const formatTime = date => { const formatTime = date => {
const year = date.getFullYear() const year = date.getFullYear()
const month = date.getMonth() + 1 const month = date.getMonth() + 1
...@@ -263,8 +264,7 @@ function getUserInfoByBtn(userInfo) { ...@@ -263,8 +264,7 @@ function getUserInfoByBtn(userInfo) {
return wxService.post(`/member/minaLogin`, { return wxService.post(`/member/minaLogin`, {
code: res[1].code, code: res[1].code,
wechatInfo: res[0], wechatInfo: res[0],
brandId: 2005, brandId: app.globalData.brandId,
// brandId: 1001,
}) })
}, (err) => { }, (err) => {
return Promise.reject(err) return Promise.reject(err)
......
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