Authored by 肖亚东

品牌相关更换接口

import { ACTIVITY_HOST, API_HOST } from '../../libs/config';
import { ACTIVITY_HOST, YOHOOD_HOST, API_HOST } from '../../libs/config';
import { GET, POST } from '../../libs/request';
import { parseBrandListData } from '../../utils/productList';
import jumpToMiniapp from '../../router/jump-to-miniapp';
... ... @@ -36,7 +36,7 @@ Page({
let param = {
id: brandId
}
GET(ACTIVITY_HOST + '/api/yohood/getBrandById', param)
GET(YOHOOD_HOST + '/brand/getBrandById', param)
.then(data => {
let brandInfo = data.data;
... ...
... ... @@ -4,7 +4,7 @@
<image class="brand-icon" src="{{item.logo}}" mode="aspectFill"></image>
<view class='rowContent'>
<text class='title'>{{item.name}}</text>
<text class='location'>展位号:A578</text>
<text class='location'>展位号:{{item.booth_id}}</text>
</view>
</view>
<view class='spaceLine'/>
... ...
import { ACTIVITY_HOST, API_HOST } from '../../libs/config';
import { ACTIVITY_HOST,YOHOOD_HOST, API_HOST } from '../../libs/config';
import { GET, POST } from '../../libs/request';
import { jumpByUrl } from '../../libs/urlRoute';
... ... @@ -63,7 +63,7 @@ Page({
*/
fetchBrandList: function () {
let that = this;
GET(ACTIVITY_HOST + '/api/yohood/getBrandList', {})
GET(YOHOOD_HOST + '/brand/getbrand', {})
.then(data => {
let brandsList = data_letter_sort(data.data);
... ...
... ... @@ -124,7 +124,11 @@ Page({
//点击我的二维码
tapMyQRCode() {
let qrcodeUrl= this.data.qrcodeUrl;
let url = encodeURI('../webview/webview?url=' + qrcodeUrl);
wx.navigateTo({
url,
})
},
//跳全部订单
... ... @@ -344,5 +348,6 @@ Page({
wx.stopPullDownRefresh();
this.fetchTicketInfo();
this.fetchQrCode();
}
})
\ No newline at end of file
... ...