新建分支前最后一次提交
This commit is contained in:
@@ -3,13 +3,13 @@
|
||||
<!-- <z-nav-bar backState="2000" title="首页"></z-nav-bar> -->
|
||||
<view class="home_bg">
|
||||
<image src="../../static/icon/home_icon_1.png" mode="aspectFit" class="icon_hua_1"></image>
|
||||
<view class="search_box" @click="onPageJump('./searchFor')">
|
||||
<view v-if="showEbook" class="search_box" @click="onPageJump('./searchFor')">
|
||||
<text class="icon_search"></text>
|
||||
<text class="prompt">搜索...</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="home_nar">
|
||||
<view class="hn_cl_tit dianzishu" @click="onPageJump('../eBook/bookList')">
|
||||
<view class="home_nar" v-if="showEbook">
|
||||
<view class="hn_cl_tit dianzishu" @click="onPageJump('../eBook/bookList')">
|
||||
<image src="../../static/icon/home_bar_1.png" mode="aspectFit"></image>
|
||||
<text>电子书</text>
|
||||
</view>
|
||||
@@ -32,7 +32,7 @@
|
||||
<u-swiper :list="list3" indicator indicatorMode="line" circular style="height: 180rpx;"></u-swiper>
|
||||
</view>
|
||||
|
||||
<view class="home_shujia">
|
||||
<view class="home_shujia" v-if="showEbook">
|
||||
<view class="hn_sj" @click="onTabJump('./bookshelf')">
|
||||
<image src="../../static/icon/midBtn_01.png" mode="aspectFit"></image>
|
||||
我的书架
|
||||
@@ -82,13 +82,13 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="head_line">
|
||||
<view class="head_line" v-if="showEbook">
|
||||
<b></b>
|
||||
<text>新书上架</text>
|
||||
<i @click="onBookMore('New')">查看更多 ></i>
|
||||
</view>
|
||||
|
||||
<view class="home_xinshu">
|
||||
<view class="home_xinshu" v-if="showEbook">
|
||||
<view v-for="(item, index) in xinsList" @click="onBookJump(item)" v-if="index<3" class="hx_list">
|
||||
<image :src="item.image"></image>
|
||||
<view class="hx_title">{{item.bookName}}</view>
|
||||
@@ -107,12 +107,12 @@
|
||||
<br clear='both'>
|
||||
</view>
|
||||
|
||||
<view class="head_line">
|
||||
<view class="head_line" v-if="showEbook">
|
||||
<b></b>
|
||||
<text>限时特价</text>
|
||||
<i @click="onBookMore('Sale')">查看更多 ></i>
|
||||
</view>
|
||||
<view class="home_limit">
|
||||
<view class="home_limit" v-if="showEbook">
|
||||
<u-scroll-list indicatorActiveColor="#27b386">
|
||||
<view v-for="(item, index) in limiTist" :key="index" @click="onBookJump(item)" class="lt_list">
|
||||
<image :src="item.image"></image>
|
||||
@@ -128,12 +128,12 @@
|
||||
|
||||
|
||||
|
||||
<view class="head_line">
|
||||
<view class="head_line" v-if="showEbook">
|
||||
<b></b>
|
||||
<text>精选书单</text>
|
||||
<i @click="onBookMore('Best')">查看更多 ></i>
|
||||
</view>
|
||||
<view class="home_jingxu">
|
||||
<view class="home_jingxu" v-if="showEbook">
|
||||
<view class="hj_hot" v-for="(item,index) in jingList" @click="onBookJump(item)">
|
||||
<view>
|
||||
<text class="bok_name">{{item.bookName}}</text>
|
||||
@@ -157,7 +157,8 @@
|
||||
<view class="head_line">
|
||||
<b></b>
|
||||
<text>精选商品</text>
|
||||
<i @click="onShopMore('Hot')">查看更多 ></i>
|
||||
<!-- <i @click="onShopMore('Hot')">查看更多 ></i> -->
|
||||
<i @click="onPageJump('../bookShop/classify')">查看更多 ></i>
|
||||
</view>
|
||||
|
||||
<!-- 商品展示 -->
|
||||
@@ -197,6 +198,7 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
showEbook:false, // 显示电子书相关
|
||||
transaction: { // 成功回调
|
||||
|
||||
},
|
||||
@@ -457,7 +459,7 @@
|
||||
|
||||
// 获取精选商品
|
||||
this.$http
|
||||
.post('book/shopproduct/appGetList?limit=4&page=1&istop=1')
|
||||
.post('book/shopproduct/appGetList?limit=30&page=1&istop=1')
|
||||
.then(res => {
|
||||
this.goodsList = res.page.list
|
||||
})
|
||||
|
||||
@@ -58,12 +58,12 @@
|
||||
<view class="nav_list" @click="onPageJump('../bookShop/orderList')">
|
||||
<text>我的订单</text>
|
||||
</view>
|
||||
<view class="nav_list" @click="onPageJump('../eBook/bookBuy')">
|
||||
<!-- <view v-if="showEbook" class="nav_list" @click="onPageJump('../eBook/bookBuy')">
|
||||
<text>电子书购买记录</text>
|
||||
</view>
|
||||
<view class="nav_list" @click="onPageJump('../eBook/bookRecord')">
|
||||
</view> -->
|
||||
<!-- <view v-if="showEbook" class="nav_list" @click="onPageJump('../eBook/bookRecord')">
|
||||
<text>阅读记录</text>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="nav_list" @click="onPageJump('../user/persData')">
|
||||
<text>修改个人资料</text>
|
||||
</view>
|
||||
@@ -73,6 +73,9 @@
|
||||
<!-- <view class="nav_list" @click="onGoing()">
|
||||
<text>帮助与反馈</text>
|
||||
</view> -->
|
||||
<view class="nav_list" @click="onShare">
|
||||
<text>分享App</text>
|
||||
</view>
|
||||
<view class="nav_list" @click="onPageJump('../peanut/aboutUs')">
|
||||
<text>关于我们</text>
|
||||
</view>
|
||||
@@ -95,12 +98,14 @@
|
||||
|
||||
<script>
|
||||
import $http from '@/config/requestConfig.js';
|
||||
import appShare, { closeShare } from '@/uni_modules/zhouWei-APPshare/js_sdk/appShare';
|
||||
import {
|
||||
mapState
|
||||
} from 'vuex';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
showEbook:false, // 显示电子书相关
|
||||
userMes: {},
|
||||
signShow: false,
|
||||
signContent: '是否要退出登录?'
|
||||
@@ -139,6 +144,32 @@
|
||||
|
||||
},
|
||||
|
||||
|
||||
//分享app
|
||||
onShare(){
|
||||
let shareData = {
|
||||
shareUrl:"https://sj.qq.com/appdetail/com.cn.nuttyreading?source=gdaq",
|
||||
shareTitle:"疯子读书",
|
||||
type:'0',
|
||||
shareContent:"疯子读书",
|
||||
shareImg:"static/fengziIcon.jpg",
|
||||
appId : "wx47134a8f15083734", // 默认不传type的时候,必须传appId和appPath才会显示小程序图标
|
||||
appPath : "https://sj.qq.com/appdetail/com.cn.nuttyreading?source=gdaq",
|
||||
appWebUrl : "https://sj.qq.com/appdetail/com.cn.nuttyreading?source=gdaq",
|
||||
};
|
||||
// 调用
|
||||
let shareObj = appShare(shareData,res => {
|
||||
console.log("疯子读书",res);
|
||||
// 分享成功后关闭弹窗
|
||||
// 第一种关闭弹窗的方式
|
||||
closeShare();
|
||||
});
|
||||
setTimeout(() => {
|
||||
// 第二种关闭弹窗的方式
|
||||
shareObj.close();
|
||||
},5000);
|
||||
},
|
||||
|
||||
// 注销账户
|
||||
logout(){
|
||||
let that = this
|
||||
|
||||
Reference in New Issue
Block a user