详情页优化以及我的页面优化

version/0412
shuxiaoquan 9 months ago
parent 1ac03dbd38
commit b810a98b1e
  1. 605
      pages/goods/detail.vue
  2. 4
      pages/goods/list.vue
  3. 11
      pages/index/index.vue
  4. 9
      pages/login/components/mp-weixin-mobile.vue
  5. 8
      pages/login/index.vue
  6. 2
      pages/search/index.vue
  7. 21
      pages/user/index.vue
  8. BIN
      static/detail/buy.png
  9. BIN
      static/detail/copy.png
  10. BIN
      static/detail/home.png
  11. BIN
      static/detail/jiangjia.png
  12. BIN
      static/detail/miaosha.png
  13. BIN
      static/detail/rightIcon.png
  14. BIN
      static/detail/tip.png
  15. BIN
      static/detail/ys.png

File diff suppressed because it is too large Load Diff

@ -187,6 +187,7 @@
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { onLoad(options) {
console.log(options)
// options // options
this.options = options this.options = options
this.searchText = options.search this.searchText = options.search
@ -545,9 +546,8 @@
.shipping { .shipping {
width: 44rpx; width: 44rpx;
height: 24rpx;
background: #FFFFFF; background: #FFFFFF;
border-radius: 4rpx 4rpx 4rpx 4rpx; border-radius: 4rpx;
opacity: 1; opacity: 1;
border: 1rpx solid #F21A1C; border: 1rpx solid #F21A1C;
font-size: 16rpx; font-size: 16rpx;

@ -20,7 +20,7 @@
<template v-if="current == 0"> <template v-if="current == 0">
<view class="chat" v-if="isLogin == false" @click="toChat()"> <view class="chat" v-if="isLogin == false" @click="toChat()">
<u-icon name="chat" color="#000000" size="70"></u-icon> <u-icon name="chat" color="#000000" size="70"></u-icon>
<view class="badge"></view> <!-- <view class="badge"></view> -->
</view> </view>
<view class="chat" v-else> <view class="chat" v-else>
<u-icon name="chat" color="#000000" size="70"></u-icon> <u-icon name="chat" color="#000000" size="70"></u-icon>
@ -902,6 +902,15 @@
} }
.chat{ .chat{
position: relative; position: relative;
button{
position: absolute;
width: 100%;
height: 100%;
left: 0;
top: 0;
z-index: 2;
opacity: 0;
}
.badge{ .badge{
position: absolute; position: absolute;
width:40rpx; width:40rpx;

@ -18,8 +18,12 @@
} from '@/utils/util' } from '@/utils/util'
import * as UserApi from '@/api/user' import * as UserApi from '@/api/user'
export default { export default {
props: {
// id
share_user_id: {
type: String
},
},
data() { data() {
return { return {
// (code) // (code)
@ -61,6 +65,7 @@
code: app.code, code: app.code,
encryptedData: detail.encryptedData, encryptedData: detail.encryptedData,
iv: detail.iv, iv: detail.iv,
share_user_id: this.share_user_id,
isParty: app.isParty, isParty: app.isParty,
partyData: app.userInfo, partyData: app.userInfo,
refereeId: store.getters.refereeId refereeId: store.getters.refereeId

@ -20,7 +20,7 @@
</view> </view>
<view class="login-fd login-fd-on" @click="login">登录</view> <view class="login-fd login-fd-on" @click="login">登录</view>
<view class=""> <view class="">
<mpWeiXinMobile></mpWeiXinMobile> <mpWeiXinMobile :share_user_id="share_user_id"></mpWeiXinMobile>
</view> </view>
</view> </view>
</template> </template>
@ -50,10 +50,11 @@
countdown: 60, countdown: 60,
countDownFun: null, countDownFun: null,
code: '', code: '',
share_user_id: ""
} }
}, },
onShow() { onLoad(o) {
this.share_user_id = o.share_user_id
}, },
methods: { methods: {
@ -117,6 +118,7 @@
store.dispatch('Login', { store.dispatch('Login', {
smsCode: that.semCode, smsCode: that.semCode,
mobile: that.phoneNum, mobile: that.phoneNum,
share_user_id: this.share_user_id,
isParty: false, isParty: false,
partyData: {}, partyData: {},
refereeId: false refereeId: false

@ -118,7 +118,7 @@
// this.searchList = Array.from(new Set(this.searchList)); // this.searchList = Array.from(new Set(this.searchList));
// uni.setStorageSync('searchList', this.searchList) // uni.setStorageSync('searchList', this.searchList)
uni.navigateTo({ uni.navigateTo({
url: '/pages/goods/list?search=' + item url: '/pages/goods/list?search=' + item.word
}) })
}, },
getSearchInfo() { getSearchInfo() {

@ -127,12 +127,12 @@
</view> </view>
<view class="coupon" v-if="isLogin == false || userInfo.user_type != 40"> <view class="coupon" v-if="isLogin == false || userInfo.user_type != 40">
<view class="walletList"> <view class="walletList">
<view class="listItem" @click="goPage('pages/cart/index')"> <view class="listItem" @click="goJump('pages/news/park/recordHistory')">
<view class="num"> <view class="num">
{{actionCountsInfo.cart_number?actionCountsInfo.cart_number:0}} {{actionCountsInfo.reservation_number?actionCountsInfo.reservation_number:0}}
</view> </view>
<view class="info"> <view class="info">
购物车 预约记录
</view> </view>
</view> </view>
<view class="listItem" @click="goJump('pages/news/park/browsingHistory')"> <view class="listItem" @click="goJump('pages/news/park/browsingHistory')">
@ -143,12 +143,12 @@
浏览记录 浏览记录
</view> </view>
</view> </view>
<view class="listItem" @click="goJump('pages/news/park/recordHistory')"> <view class="listItem" @click="goJump('/pages/news3/setOutRecords')">
<view class="num"> <view class="num">
{{actionCountsInfo.reservation_number?actionCountsInfo.reservation_number:0}} {{actionCountsInfo.take_goods_number?actionCountsInfo.take_goods_number:0}}
</view> </view>
<view class="info"> <view class="info">
预约记录 {{isLogin==false || userInfo.user_type <= 20?'发货记录':'提货记录'}}
</view> </view>
</view> </view>
<view class="listItem" @click="goJump('pages/news/coupon/list')"> <view class="listItem" @click="goJump('pages/news/coupon/list')">
@ -235,7 +235,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="goodsManage" v-if="isLogin == false || userInfo.user_type == 30"> <view class="goodsManage" v-if="userInfo.user_type == 30">
<view class="manageTitle"> <view class="manageTitle">
<text lines="1" class="text_5 titleLeft">分销订单</text> <text lines="1" class="text_5 titleLeft">分销订单</text>
<text lines="1" class="text_6 titleRight" @click="goJump('/pages/news3/fenxiao')">查看全部</text> <text lines="1" class="text_6 titleRight" @click="goJump('/pages/news3/fenxiao')">查看全部</text>
@ -441,10 +441,10 @@
</view> </view>
</view> </view>
<!-- 商品推荐 --> <!-- 商品推荐 -->
<view class="goodsRecommend-title"> <view class="goodsRecommend-title" v-if="isLogin == false || userInfo.user_type != 40">
<image :src="$picUrl+'/static/user/left.png'"></image>为您推荐<image :src="$picUrl+'/static/user/right.png'"></image> <image :src="$picUrl+'/static/user/left.png'"></image>专属推荐<image :src="$picUrl+'/static/user/right.png'"></image>
</view> </view>
<view class="goodsRecommend"> <view class="goodsRecommend" v-if="isLogin == false || userInfo.user_type != 40">
<view class="goodsItem" v-for="(item,index) in suggestGoodsList" @click="goodsDetail(item)" :key="index"> <view class="goodsItem" v-for="(item,index) in suggestGoodsList" @click="goodsDetail(item)" :key="index">
<view class="pic"> <view class="pic">
<image :src="item.goods_image" mode=""></image> <image :src="item.goods_image" mode=""></image>
@ -726,6 +726,7 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: flex-end; justify-content: flex-end;
padding-bottom: 30rpx;
.toTop{ .toTop{
position: fixed; position: fixed;
bottom:30rpx; bottom:30rpx;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 329 B

After

Width:  |  Height:  |  Size: 520 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 160 B

After

Width:  |  Height:  |  Size: 223 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 786 B

After

Width:  |  Height:  |  Size: 1.6 KiB

Loading…
Cancel
Save