添加配置文件

This commit is contained in:
Kiyan 2017-05-04 16:58:32 +08:00
parent 050b9403ec
commit 323555e509
11 changed files with 23 additions and 7 deletions

View File

@ -1,14 +1,14 @@
{
"pages": [
"pages/mine/mine",
"pages/shop/show",
"pages/index/index",
"pages/order/show",
"pages/order/quasi",
"pages/order/list",
"pages/index/index",
"pages/address/list",
"pages/address/add",
"pages/address/select",
"pages/mine/mine",
"pages/index/address",
"pages/shop/category",
"pages/shop/search"

16
app/config.js Normal file
View File

@ -0,0 +1,16 @@
/**
* 小程序配置文件
*/
var host = "apitest.ipaotui.com"
// var host = "api.ipaotui.com"
const debug = wx.getStorageSync('debug')
if (debug) {
host = "apitest.ipaotui.com"
}
module.exports = {
host,
qqmapKey: 'FPOBZ-UT2K2-ZFYUC-CX67E-IOOYS-7XFQ6'
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 695 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 541 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 768 B

View File

@ -2,7 +2,7 @@
<!--pages/mine/mine.wxml-->
<view class="header">
<view>
<image class="avatar" src="/images/default.jpg"></image>
<image class="avatar" src="/images/default-image.png"></image>
</view>
<view>
未登录

View File

@ -14,7 +14,7 @@ var initOrder = {
Page({
data: {
tabs: ["商品", "评价", "商家"],
activeIndex: 2,
activeIndex: 1,
activeMenuIndex: 0,
showCart: false,

View File

@ -115,7 +115,7 @@
<view class="review-list">
<view wx:for="{{review.list}}" wx:key="order_id" class="review-item">
<view class="">
<image class="review-item__head-img" src="{{item.head_pic || '/images/default.jpg'}}"></image>
<image class="review-item__head-img" src="{{item.head_pic || '/images/default-image.png'}}"></image>
</view>
<view class="review-item__content">
<view class="review-item__hd">

View File

@ -2,10 +2,10 @@
import timeago from './timeago.min'
import QQMapWX from './qqmap-wx-jssdk.min'
import { gcj02tobd09 } from './coordtransform'
// import { host } from '../config'
import { host, qqmapKey } from '../config'
const qqmap = new QQMapWX({
key: 'FPOBZ-UT2K2-ZFYUC-CX67E-IOOYS-7XFQ6'
key: qqmapKey
});
function resolveAdInfo(adInfo) {