From 8187dd5426b48e8b10403e1ddaa00e9f350bb52e Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期三, 11 二月 2026 16:00:23 +0800
Subject: [PATCH] 小程序
---
mini-program/pages/distributor/distributor.vue | 155 +++++++++++++++++++++++++--------------------------
1 files changed, 76 insertions(+), 79 deletions(-)
diff --git a/mini-program/pages/distributor/distributor.vue b/mini-program/pages/distributor/distributor.vue
index d23a85f..5739ed3 100644
--- a/mini-program/pages/distributor/distributor.vue
+++ b/mini-program/pages/distributor/distributor.vue
@@ -23,7 +23,7 @@
</view>
</view>
</view>
- <view class="user-qrcode">
+ <view class="user-qrcode" @click="openQrcode()">
<image src="/static/icon/ic_QRcode@2x.png" mode="widthFix"></image>
</view>
</view>
@@ -34,7 +34,7 @@
<view :class="'data-a-left-item '+(active ==1?'active':'')" @click="changeActive(1)">鏈湀</view>
<view :class="'data-a-left-item '+(active ==2?'active':'')" @click="changeActive(2)">涓婃湀</view>
</view>
- <view class="data-a-to">
+ <view class="data-a-to" @click="jumpShopIntegral">
<text>閿�鍞槑缁�</text>
<image src="/static/icon/ic_ar2@2x.png" mode="widthFix"></image>
</view>
@@ -74,15 +74,15 @@
</view>
</view>
<view class="func">
- <view class="func-item" style="margin-bottom: 30rpx;">
+ <view class="func-item" style="margin-bottom: 30rpx;" @click="jumpGoodsList">
<image src="/static/icon/ic_shangpingl@2x.png" mode="widthFix"></image>
<text>鍟嗗搧绠$悊</text>
</view>
- <view class="func-item" style="margin-bottom: 30rpx;">
+ <view class="func-item" style="margin-bottom: 30rpx;" @click="jumpOrderList">
<image src="/static/icon/ic_dingdanguanli@2x.png" mode="widthFix"></image>
<text>璁㈠崟绠$悊</text>
</view>
- <view class="func-item" style="margin-bottom: 30rpx;">
+ <view class="func-item" style="margin-bottom: 30rpx;" @click="jumpAccount">
<image src="/static/icon/ic_xunizhanghu@2x.png" mode="widthFix"></image>
<text>铏氭嫙璐﹀彿</text>
</view>
@@ -90,15 +90,15 @@
<image src="/static/icon/ic_zitihexiao@2x.png" mode="widthFix"></image>
<text>鑷彁鏍搁攢</text>
</view>
- <view class="func-item">
+ <view class="func-item" @click="jumpZizhi">
<image src="/static/icon/ic_wodezizhi@2x.png" mode="widthFix"></image>
<text>鎴戠殑璧勮川</text>
</view>
- <view class="func-item">
+ <view class="func-item" @click="jumpMemberList">
<image src="/static/icon/ic_wodehuiyuan@2x.png" mode="widthFix"></image>
<text>鎴戠殑浼氬憳</text>
</view>
- <view class="func-item">
+ <view class="func-item" @click="openHaibao">
<image src="/static/icon/ic_zhuanshuhaibao@2x.png" mode="widthFix"></image>
<text>涓撳睘娴锋姤</text>
</view>
@@ -107,7 +107,7 @@
</view>
<view class="title" v-if="!show">寰呭鐞嗚鍗� ({{total}})</view>
<view class="list" v-if="!show">
- <view class="list-item" v-for="(item, index) in dataList" :key="index">
+ <view class="list-item" v-for="(item, index) in dataList" :key="index" @click="jumpOrderDetail(item.id)">
<view class="a">
<view class="a-left">
<view class="a-left-tips">{{item.receiveType==1?'鑷彁':'蹇�掗厤閫�'}}</view>
@@ -192,13 +192,23 @@
</view> -->
<view class="phone-item" >
<view>
- <image src="/static/icon/ic_call@2x.png" mode="widthFix" @click="contactPhoneDo()"></image>
+ <image src="/static/icon/ic_call@2x.png" mode="widthFix" @click="contactPhoneDo()" ></image>
<text>{{linkItem.linkname}} </text>
<text style="margin-left: 10px;"> {{linkItem.linkphone}}</text>
</view>
</view>
<view style="width: 100%; height: 30rpx;"></view>
<!-- <view class="phone-botton" @click="contactPhone()" >鍏抽棴</view> -->
+ </view>
+ </u-popup>
+ <u-popup :show="showQrcode" round="15" :safeAreaInsetBottom="false" mode="center" @close="openQrcode()" >
+ <view class="qrcode" >
+ <image :src="shop.programCode||''" mode="widthFix"></image>
+ </view>
+ </u-popup>
+ <u-popup :show="showHaibao" round="15" :safeAreaInsetBottom="false" mode="bottom" @close="openHaibao()" >
+ <view class="qrcode" >
+ <image :src="shop.programCode||''" mode="widthFix"></image>
</view>
</u-popup>
</view>
@@ -213,6 +223,8 @@
data() {
return {
show:false,
+ showHaibao:false,
+ showQrcode:false,
active:0,
loading:false,
showMoney:false,
@@ -240,6 +252,16 @@
this.getOrderList( );
},
methods:{
+ openQrcode(){
+ if(this.shop.programCode){
+ this.showQrcode = !this.showQrcode
+ }
+ },
+ openHaibao(){
+ if(this.shop.programCode){
+ this.showHaibao = !this.showHaibao
+ }
+ },
contactPhone(item){
this.showPhone = !this.showPhone
this.linkItem = item ||{}
@@ -328,11 +350,46 @@
that.jumpShopLogin()
}
},
+ jumpOrderDetail(id){
+ uni.navigateTo({
+ url: '/pagesA/pages/order-details/order-details?userType=1&id='+id
+ })
+ },
jumpShopLogin() {
uni.navigateTo({
url: '/pages/login/login'
})
- }
+ },
+ jumpZizhi() {
+ uni.navigateTo({
+ url: '/pagesA/pages/my-qualifications/my-qualifications'
+ })
+ },
+ jumpGoodsList() {
+ uni.navigateTo({
+ url: '/pagesA/pages/product-management/product-management'
+ })
+ },
+ jumpOrderList() {
+ uni.navigateTo({
+ url: '/pagesA/pages/order/order'
+ })
+ },
+ jumpAccount() {
+ uni.navigateTo({
+ url: '/pagesA/pages/virtual-account/virtual-account'
+ })
+ },
+ jumpMemberList() {
+ uni.navigateTo({
+ url: '/pagesA/pages/my-membership/my-membership'
+ })
+ },
+ jumpShopIntegral() {
+ uni.navigateTo({
+ url: '/pagesA/pages/shop_points/shop_points'
+ })
+ }
}
}
</script>
@@ -393,12 +450,6 @@
width: 100%;
margin-top: 30rpx;
padding-bottom: 60rpx;
- .nomore{
- width: 100%;
- text-align: center;
- font-size: 24rpx;
- color: #666666;
- }
.list-item {
width: 100%;
padding: 30rpx;
@@ -763,68 +814,14 @@
}
}
}
- .phone {
- width: 100%;
- padding-top: 40rpx;
- box-sizing: border-box;
- .phone-botton {
- width: 100%;
- height: 88rpx;
- line-height: 88rpx;
- text-align: center;
- font-weight: 500;
- font-size: 32rpx;
- color: #FFFFFF;
- background: #00BC12;
- border-radius: 44rpx;
- margin-top: 60rpx;
- }
- .phone-head {
- width: 100%;
- text-align: center;
- justify-content: space-between;
- margin-bottom: 40rpx;
- text {
- font-weight: 800;
- font-size: 32rpx;
- color: #222222;
- }
- }
-
- .phone-item {
- width: 100%;
- text-align: center;
- display: flex;
- justify-content: center;
- flex-direction: column;
- // border-bottom: 1rpx solid #eeeeee;
- line-height: 78rpx;
- button{
- border: 1rpx white solid;
- display: inline;
- width: 300rpx;
- font-weight: 500;
- font-size: 32rpx;
- line-height: 32rpx;
- color: #222222;
- }
- image{
- width: 28rpx;
- height: 28rpx;
- margin-right: 30rpx;
- }
- .line{
- width: 100%;
- height: 1rpx;
- background-color: #f2f2f2
- }
- text {
- font-weight: 500;
- font-size: 28rpx;
- line-height: 28rpx;
- color: #222222;
- }
- }
+ }
+ .qrcode{
+ width: calc(100vw - 148rpx);
+ height: calc(100vw - 148rpx);
+ padding: 20px;
+ image{
+ width: calc(100vw - 188rpx);
+ height: calc(100vw - 188rpx);
}
}
</style>
\ No newline at end of file
--
Gitblit v1.9.3