添加配置文件
This commit is contained in:
parent
050b9403ec
commit
323555e509
@ -1,14 +1,14 @@
|
|||||||
{
|
{
|
||||||
"pages": [
|
"pages": [
|
||||||
|
"pages/mine/mine",
|
||||||
"pages/shop/show",
|
"pages/shop/show",
|
||||||
|
"pages/index/index",
|
||||||
"pages/order/show",
|
"pages/order/show",
|
||||||
"pages/order/quasi",
|
"pages/order/quasi",
|
||||||
"pages/order/list",
|
"pages/order/list",
|
||||||
"pages/index/index",
|
|
||||||
"pages/address/list",
|
"pages/address/list",
|
||||||
"pages/address/add",
|
"pages/address/add",
|
||||||
"pages/address/select",
|
"pages/address/select",
|
||||||
"pages/mine/mine",
|
|
||||||
"pages/index/address",
|
"pages/index/address",
|
||||||
"pages/shop/category",
|
"pages/shop/category",
|
||||||
"pages/shop/search"
|
"pages/shop/search"
|
||||||
|
16
app/config.js
Normal file
16
app/config.js
Normal 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'
|
||||||
|
}
|
BIN
app/images/default-image.png
Normal file
BIN
app/images/default-image.png
Normal file
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 |
BIN
app/images/takeout_ic_account.png
Normal file
BIN
app/images/takeout_ic_account.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 541 B |
BIN
app/images/takeout_ic_address.png
Normal file
BIN
app/images/takeout_ic_address.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 768 B |
@ -2,7 +2,7 @@
|
|||||||
<!--pages/mine/mine.wxml-->
|
<!--pages/mine/mine.wxml-->
|
||||||
<view class="header">
|
<view class="header">
|
||||||
<view>
|
<view>
|
||||||
<image class="avatar" src="/images/default.jpg"></image>
|
<image class="avatar" src="/images/default-image.png"></image>
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
未登录
|
未登录
|
||||||
|
@ -14,7 +14,7 @@ var initOrder = {
|
|||||||
Page({
|
Page({
|
||||||
data: {
|
data: {
|
||||||
tabs: ["商品", "评价", "商家"],
|
tabs: ["商品", "评价", "商家"],
|
||||||
activeIndex: 2,
|
activeIndex: 1,
|
||||||
|
|
||||||
activeMenuIndex: 0,
|
activeMenuIndex: 0,
|
||||||
showCart: false,
|
showCart: false,
|
||||||
|
@ -115,7 +115,7 @@
|
|||||||
<view class="review-list">
|
<view class="review-list">
|
||||||
<view wx:for="{{review.list}}" wx:key="order_id" class="review-item">
|
<view wx:for="{{review.list}}" wx:key="order_id" class="review-item">
|
||||||
<view class="">
|
<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>
|
||||||
<view class="review-item__content">
|
<view class="review-item__content">
|
||||||
<view class="review-item__hd">
|
<view class="review-item__hd">
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
import timeago from './timeago.min'
|
import timeago from './timeago.min'
|
||||||
import QQMapWX from './qqmap-wx-jssdk.min'
|
import QQMapWX from './qqmap-wx-jssdk.min'
|
||||||
import { gcj02tobd09 } from './coordtransform'
|
import { gcj02tobd09 } from './coordtransform'
|
||||||
// import { host } from '../config'
|
import { host, qqmapKey } from '../config'
|
||||||
|
|
||||||
const qqmap = new QQMapWX({
|
const qqmap = new QQMapWX({
|
||||||
key: 'FPOBZ-UT2K2-ZFYUC-CX67E-IOOYS-7XFQ6'
|
key: qqmapKey
|
||||||
});
|
});
|
||||||
|
|
||||||
function resolveAdInfo(adInfo) {
|
function resolveAdInfo(adInfo) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user