Browse Source

提交暂存

zyh
Loki 2 years ago
parent
commit
126800f50c
  1. 4
      components/PromotionGood.vue
  2. 5
      config/index.js
  3. 6
      manifest.json
  4. 6
      pages.json
  5. 1
      pages/Loading/index.vue
  6. 4
      pages/home/components/Banner.vue
  7. 6
      pages/home/index.vue
  8. 5
      pages/order/OrderSubmission/index.vue
  9. 2
      pages/shop/GoodsCon/index.vue
  10. 3
      utils/request.js

4
components/PromotionGood.vue

@ -3,7 +3,7 @@
<view class="sh-title-card mb10"> <view class="sh-title-card mb10">
<view class="title-box"> <view class="title-box">
<image class="title-bg" :src="`${$VUE_APP_RESOURCES_URL}/images/title1.png`" mode="aspectFill" /> <image class="title-bg" :src="`${$VUE_APP_RESOURCES_URL}/images/title1.png`" mode="aspectFill" />
<view class="title-text">精选食品</view> <view class="title-text">精选</view>
<!-- <view class="title-text" :style="{ color: detail.color }">为你推荐</view> --> <!-- <view class="title-text" :style="{ color: detail.color }">为你推荐</view> -->
</view> </view>
</view> </view>
@ -19,7 +19,7 @@
<view class="title more-t">{{ item.storeName }}</view> <view class="title more-t">{{ item.storeName }}</view>
<view class="price-box"> <view class="price-box">
<view class="flex x-bc align-end"> <view class="flex x-bc align-end">
<view class="current"> 优品特价:{{ item.price }} <text>/市场价:{{item.otPrice}}</text> </view> <view class="current"> 活动特价:{{ item.price }} <text>/市场价:{{item.otPrice}}</text> </view>
<view class="sales miso-font">仅剩{{ item.stock }}{{ item.unitName }}</view> <view class="sales miso-font">仅剩{{ item.stock }}{{ item.unitName }}</view>
</view> </view>
<view class="x-f tag-box"> <view class="x-f tag-box">

5
config/index.js

@ -1,4 +1,5 @@
export const VUE_APP_API_URL = 'https://bxg.api.cyjyyjy.com/bxgApp' // export const VUE_APP_API_URL = 'http://192.168.10.129:48080/bxgApp'
// export const VUE_APP_API_URL = 'http://192.168.10.254:48080/bxgApp' export const VUE_APP_API_URL = 'https://farm.lotus-wallet.com/bxgApp'
// export const VUE_APP_API_URL = 'https://xiaohui.shop.cyjyyjy.com/xiaohuiapp' // export const VUE_APP_API_URL = 'https://xiaohui.shop.cyjyyjy.com/xiaohuiapp'
export const VUE_APP_RESOURCES_URL = 'https://h5.yixiang.co/static' export const VUE_APP_RESOURCES_URL = 'https://h5.yixiang.co/static'
export const BXG_TENANT_ID = 128

6
manifest.json

@ -1,6 +1,6 @@
{ {
"name" : "yshopmall", "name" : "zsw",
"appid" : "__UNI__C7A519E", "appid" : "__UNI__74F040A",
"description" : "", "description" : "",
"versionName" : "1.0.1", "versionName" : "1.0.1",
"versionCode" : 1, "versionCode" : 1,
@ -249,7 +249,7 @@
}, },
"quickapp" : {}, "quickapp" : {},
"mp-weixin" : { "mp-weixin" : {
"appid" : "wxcd49c83634afd731", "appid" : "wx144be2afc1798f59",
"setting" : { "setting" : {
"urlCheck" : false "urlCheck" : false
}, },

6
pages.json

@ -3,7 +3,7 @@
{ {
"path": "pages/Loading/index", "path": "pages/Loading/index",
"style": { "style": {
"navigationBarTitleText": "优品电商" "navigationBarTitleText": "纽康度生物科技"
} }
}, },
{ {
@ -40,7 +40,7 @@
{ {
"path": "pages/home/index", "path": "pages/home/index",
"style": { "style": {
"navigationBarTitleText": "优品电商", "navigationBarTitleText": "纽康度生物科技",
"navigationBarTextStyle": "white", "navigationBarTextStyle": "white",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
@ -444,7 +444,7 @@
}, },
"globalStyle": { "globalStyle": {
"navigationBarTextStyle": "black", "navigationBarTextStyle": "black",
"navigationBarTitleText": "优品电商", "navigationBarTitleText": "纽康度生物科技",
"navigationBarBackgroundColor": "#F8F8F8", "navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8", "backgroundColor": "#F8F8F8",
"navigationStyle": "default" "navigationStyle": "default"

1
pages/Loading/index.vue

@ -1,7 +1,6 @@
<template> <template>
<view class="lottie-bg"> <view class="lottie-bg">
<view id="lottie"> <view id="lottie">
<!-- <text>武设优品电商</text> -->
</view> </view>
</view> </view>
</template> </template>

4
pages/home/components/Banner.vue

@ -43,8 +43,8 @@
let bgcolor = item.color; let bgcolor = item.color;
// //
if (!bgcolor) { if (!bgcolor) {
that.$set(item, 'bgcolor', '#c40414'); that.$set(item, 'bgcolor', '#0e2be6');
that.$emit('getbgcolor', '#c40414'); that.$emit('getbgcolor', '#0e2be6');
} else { } else {
that.$set(item, 'bgcolor', bgcolor); that.$set(item, 'bgcolor', bgcolor);
that.$emit('getbgcolor', bgcolor); that.$emit('getbgcolor', bgcolor);

6
pages/home/index.vue

@ -54,7 +54,7 @@
:detail="benefit" /> :detail="benefit" />
<!-- 直播 --> <!-- 直播 -->
<!-- #ifdef MP-WEIXIN --> <!-- #ifdef MP-WEIXIN -->
<Live v-if="item.type == 'live'" :detail="live" /> <!-- <Live v-if="item.type == 'live'" :detail="live" /> -->
<!-- #endif --> <!-- #endif -->
<!-- 为您推荐 --> <!-- 为您推荐 -->
<PromotionGood v-if="item.type == 'promotionGood'" :benefit="benefit" /> <PromotionGood v-if="item.type == 'promotionGood'" :benefit="benefit" />
@ -82,7 +82,7 @@ import Banner from './components/Banner'
import HotCommodity from './components/HotCommodity' import HotCommodity from './components/HotCommodity'
import FirstNewProduct from './components/FirstNewProduct' import FirstNewProduct from './components/FirstNewProduct'
import ProductsRecommended from './components/ProductsRecommended' import ProductsRecommended from './components/ProductsRecommended'
import Live from './components/Live' // import Live from './components/Live'
import { getHomeData, getShare, getCanvas } from '@/api/public' import { getHomeData, getShare, getCanvas } from '@/api/public'
import cookie from '@/utils/store/cookie' import cookie from '@/utils/store/cookie'
@ -108,7 +108,7 @@ export default {
HotCommodity, HotCommodity,
FirstNewProduct, FirstNewProduct,
ProductsRecommended, ProductsRecommended,
Live, // Live,
}, },
props: {}, props: {},
data: function() { data: function() {

5
pages/order/OrderSubmission/index.vue

@ -72,9 +72,8 @@
</view> </view>
<view class="item acea-row row-between-wrapper" v-if="shipping_type === 0"> <view class="item acea-row row-between-wrapper" v-if="shipping_type === 0">
<view>配送费用</view> <view>配送费用</view>
<view class="discount"> <view class="discount">
19元起送,配送免费,请保持手机畅通~ {{ orderGroupInfo.priceGroup.storePostage > 0 ? orderGroupInfo.priceGroup.storePostage : '免运费' }}
<!-- {{ orderGroupInfo.priceGroup.storePostage > 0 ? orderGroupInfo.priceGroup.storePostage : '免运费' }} -->
</view> </view>
</view> </view>
<view v-if="shipping_type === 1"> <view v-if="shipping_type === 1">

2
pages/shop/GoodsCon/index.vue

@ -95,7 +95,7 @@
<!-- <view class="superior"> <!-- <view class="superior">
<view class="title acea-row row-center-wrapper"> <view class="title acea-row row-center-wrapper">
<image :src="`${$VUE_APP_RESOURCES_URL}/images/ling.png`" /> <image :src="`${$VUE_APP_RESOURCES_URL}/images/ling.png`" />
<text class="titleTxt">优品推荐</text> <text class="titleTxt">推荐</text>
<image :src="`${$VUE_APP_RESOURCES_URL}/images/ling.png`" /> <image :src="`${$VUE_APP_RESOURCES_URL}/images/ling.png`" />
</view> </view>
<template> <template>

3
utils/request.js

@ -15,6 +15,7 @@ import Fly from 'flyio/dist/npm/wx'
import store from '../store' import store from '../store'
import { handleLoginFailure } from '@/utils' import { handleLoginFailure } from '@/utils'
import { VUE_APP_API_URL } from '@/config' import { VUE_APP_API_URL } from '@/config'
import { BXG_TENANT_ID } from '@/config'
import cookie from '@/utils/store/cookie' import cookie from '@/utils/store/cookie'
const fly = new Fly() const fly = new Fly()
@ -74,7 +75,7 @@ function baseRequest(options) {
console.log(options) console.log(options)
options.headers = { options.headers = {
"tenant-id": 125, "tenant-id": BXG_TENANT_ID,
...options.headers, ...options.headers,
// hahah: 'Bearer2 ', // hahah: 'Bearer2 ',
} }

Loading…
Cancel
Save