Browse Source

修改app图标和启动页,修改首页轮播不自动轮播的问题,修改首页新闻无法点击的问题,修改跳转商品详情丢失分销信息的问题

master
gaoxs 5 years ago
parent
commit
8d036b9012
  1. 47
      manifest.json
  2. BIN
      my-release-key.keystore
  3. 2
      pages/authorization/index.vue
  4. 9
      pages/home/index.vue
  5. 3
      store/index.js

47
manifest.json

@ -11,7 +11,7 @@
"nvueCompiler" : "uni-app", "nvueCompiler" : "uni-app",
"compilerVersion" : 3, "compilerVersion" : 3,
"splashscreen" : { "splashscreen" : {
"alwaysShowBeforeRender" : true, "alwaysShowBeforeRender" : false,
"waiting" : false, "waiting" : false,
"autoclose" : true, "autoclose" : true,
"delay" : 0 "delay" : 0
@ -79,7 +79,50 @@
"splashscreen" : { "splashscreen" : {
"ios" : { "ios" : {
"iphone" : { "iphone" : {
"portrait-896h@3x" : "/Users/piao/Downloads/意(1)/1242+2688.png" "portrait-896h@3x" : "unpackage/res/splash/1242+2688.png",
"portrait-896h@2x" : "unpackage/res/splash/828+1792.png",
"iphonex" : "unpackage/res/splash/1125+2436.png",
"retina55" : "unpackage/res/splash/1142+2208.png",
"retina47" : "unpackage/res/splash/750+1334.png",
"retina40" : "unpackage/res/splash/640+1136.png",
"retina35" : "unpackage/res/splash/640+960.png"
}
},
"android" : {
"hdpi" : "unpackage/res/splash/480+762.png",
"xhdpi" : "unpackage/res/splash/720+1242.png",
"xxhdpi" : "unpackage/res/splash/1080+1882.png"
}
},
"icons" : {
"android" : {
"hdpi" : "unpackage/res/icons/72x72.png",
"xhdpi" : "unpackage/res/icons/96x96.png",
"xxhdpi" : "unpackage/res/icons/144x144.png",
"xxxhdpi" : "unpackage/res/icons/192x192.png"
},
"ios" : {
"appstore" : "unpackage/res/icons/1024x1024.png",
"ipad" : {
"app" : "unpackage/res/icons/76x76.png",
"app@2x" : "unpackage/res/icons/152x152.png",
"notification" : "unpackage/res/icons/20x20.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"proapp@2x" : "unpackage/res/icons/167x167.png",
"settings" : "unpackage/res/icons/29x29.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"spotlight" : "unpackage/res/icons/40x40.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png"
},
"iphone" : {
"app@2x" : "unpackage/res/icons/120x120.png",
"app@3x" : "unpackage/res/icons/180x180.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"notification@3x" : "unpackage/res/icons/60x60.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"settings@3x" : "unpackage/res/icons/87x87.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png",
"spotlight@3x" : "unpackage/res/icons/120x120.png"
} }
} }
} }

BIN
my-release-key.keystore

Binary file not shown.

2
pages/authorization/index.vue

@ -1,6 +1,7 @@
<template> <template>
<view class="container"> <view class="container">
<view v-if="!token"> <view v-if="!token">
<!-- 小程序 -->
<view v-if="$deviceType == 'routine'"> <view v-if="$deviceType == 'routine'">
<view class="getUserInfo"> <view class="getUserInfo">
<text>您还未允许微信登录授权请点击下方按钮允许微信授权登录</text> <text>您还未允许微信登录授权请点击下方按钮允许微信授权登录</text>
@ -9,6 +10,7 @@
<button @click="back">取消微信登录授权</button> <button @click="back">取消微信登录授权</button>
</view> </view>
</view> </view>
<!-- app -->
<view v-if="$deviceType == 'app'"> <view v-if="$deviceType == 'app'">
<view class="getUserInfo"> <view class="getUserInfo">
<text>请先登录</text> <text>请先登录</text>

9
pages/home/index.vue

@ -10,7 +10,7 @@
</view> </view>
</view> </view>
<view class="slider-banner banner"> <view class="slider-banner banner">
<swiper indicatorDots="true" v-if="banner.length > 0"> <swiper indicatorDots="true" v-if="banner.length > 0" autoplay circular >
<block v-for="(item, bannerIndex) in banner" :key="bannerIndex"> <block v-for="(item, bannerIndex) in banner" :key="bannerIndex">
<swiper-item> <swiper-item>
<view @click="item.url ? $yrouter.push('/' + item.url) : ''" class="swiper-item"> <view @click="item.url ? $yrouter.push('/' + item.url) : ''" class="swiper-item">
@ -28,7 +28,7 @@
<swiper class="swiper-wrapper" v-if="roll.length > 0" :indicator-dots="false" autoplay circular vertical> <swiper class="swiper-wrapper" v-if="roll.length > 0" :indicator-dots="false" autoplay circular vertical>
<block v-for="(item, rollIndex) in roll" :key="rollIndex"> <block v-for="(item, rollIndex) in roll" :key="rollIndex">
<swiper-item class="swiper-slide"> <swiper-item class="swiper-slide">
<view @click="item.uniapp_url ? $yrouter.push(item.uniapp_url) : ''" class="swiper-item acea-row row-between-wrapper"> <view @click="goRoll(item)" class="swiper-item acea-row row-between-wrapper">
<view class="text acea-row row-between-wrapper"> <view class="text acea-row row-between-wrapper">
<view class="label" v-if="item.show === '是'">最新</view> <view class="label" v-if="item.show === '是'">最新</view>
<view class="newsTitle line1">{{ item.info }}</view> <view class="newsTitle line1">{{ item.info }}</view>
@ -257,6 +257,11 @@
}); });
}, },
methods: { methods: {
goRoll(item){
if(item.uniapp_url){
this.$yrouter.push(item.uniapp_url)
}
},
goGoodSearch() { goGoodSearch() {
this.$yrouter.push('/pages/shop/GoodSearch/index'); this.$yrouter.push('/pages/shop/GoodSearch/index');
}, },

3
store/index.js

@ -53,7 +53,10 @@ const vuexStore = new Vuex.Store({
LOGOUT(state) { LOGOUT(state) {
state.token = null; state.token = null;
state.userInfo = null state.userInfo = null
let spread = cookie.get('spread')
console.log(spread, 'spread')
cookie.clearAll() cookie.clearAll()
cookie.set('spread', spread)
}, },
BACKGROUND_COLOR(state, color) { BACKGROUND_COLOR(state, color) {
state.color = color; state.color = color;

Loading…
Cancel
Save