This commit is contained in:
1154079537 2024-05-11 14:23:35 +08:00
parent 895ad285b1
commit e5b880933c
7 changed files with 516 additions and 539 deletions

View File

@ -2,23 +2,20 @@
<view class="contentgb"> <view class="contentgb">
<view class="return_top"> <view class="return_top">
<view class="z-bootm-img1" @click="returnbom()"> <view class="z-bootm-img1" @click="returnbom()">
<image src="@/static/images/fb1.png" mode="aspectFit"></image> <u-image width="40rpx" height="14rpx" src="@/static/images/fb1.png" mode="widthFit"></u-image>
</view> </view>
<view class="z-bootm-l"></view> <view class="z-bootm-l"></view>
<view class="z-bootm-img2" @click="returnbom()"> <view class="z-bootm-img2" @click="returnbom()">
<image src="@/static/images/fb2.png" mode="aspectFit"></image> <u-image width="38rpx" height="38rpx" src="@/static/images/fb2.png" mode="widthFit"></u-image>
</view> </view>
</view> </view>
</view> </view>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {}
}
}, },
methods: { methods: {
returnbom() { returnbom() {
@ -34,58 +31,25 @@
<style lang="scss" scoped> <style lang="scss" scoped>
.contentgb { .contentgb {
width: 166rpx; width: 166rpx;
height: 56rpx; height: 56rpx;
.return_top { .return_top {
display: flex;
justify-content: center;
align-items: center;
width: 166rpx; width: 166rpx;
height: 56rpx; height: 56rpx;
background: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.6);
border-radius: 44rpx 44rpx; border-radius: 44rpx 44rpx;
position: relative; position: relative;
.z-bootm-img1 {
width: 41rpx;
height: 13rpx;
position: absolute;
top: 5rpx;
left: 25rpx;
image {
width: 100%;
height: 100%;
}
}
.z-bootm-l { .z-bootm-l {
width: 1px; width: 1px;
height: 32rpx; height: 32rpx;
background: rgba(0, 0, 0, 0.2); background: rgba(0, 0, 0, 0.2);
margin: auto 0; margin: 0 16rpx;
position: absolute;
top: 10rpx;
left: 85rpx;
} }
.z-bootm-img2 {
width: 38rpx;
height: 38rpx;
margin-top: -15rpx;
margin-left: -15rpx;
position: absolute;
right: 25rpx;
top: 25rpx;
image {
width: 100%;
height: 100%;
}
}
} }
} }
</style> </style>

View File

@ -1,217 +1,218 @@
{ {
"name": "惠农商户平台", "name" : "惠农商户平台",
"appid": "__UNI__7626C0F", "appid" : "__UNI__7626C0F",
"description": "", "description" : "",
"versionName": "1.5.0", "versionName" : "1.5.0",
"versionCode": 1500, "versionCode" : 1500,
"transformPx": false, "transformPx" : false,
/* 5+App */ /* 5+App */
"app-plus": { "app-plus" : {
"titleNView": true, "titleNView" : true,
"usingComponents": true, "usingComponents" : true,
"nvueCompiler": "uni-app", "nvueCompiler" : "uni-app",
"nvueStyleCompiler": "uni-app", "nvueStyleCompiler" : "uni-app",
"compilerVersion": 3, "compilerVersion" : 3,
"compatible": { "compatible" : {
"ignoreVersion": true //trueHBuilderX1.9.0 "ignoreVersion" : true //trueHBuilderX1.9.0
}, },
"splashscreen": { "splashscreen" : {
"alwaysShowBeforeRender": true, "alwaysShowBeforeRender" : true,
"waiting": true, "waiting" : true,
"autoclose": true, "autoclose" : true,
"delay": 0 "delay" : 0
}, },
/* */ /* */
"modules": { "modules" : {
"VideoPlayer": {}, "VideoPlayer" : {},
"iBeacon": {}, "iBeacon" : {},
"Barcode": {}, "Barcode" : {},
"Camera": {}, "Camera" : {},
"Geolocation": {}, "Geolocation" : {},
"Payment": {}, "Payment" : {},
"Share": {}, "Share" : {},
"OAuth": {}, "OAuth" : {},
"UniMP": { "UniMP" : {
"description": "uni小程序" "description" : "uni小程序"
}, },
"Maps": {} "Maps" : {}
}, },
"safearea": { "safearea" : {
"bottom": { "bottom" : {
"offset": "none" "offset" : "none"
} }
}, },
/* */ /* */
"distribute": { "distribute" : {
/* android */ /* android */
"android": { "android" : {
"resizeableActivity": true, "resizeableActivity" : true,
"permissions": [ "permissions" : [
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>", "<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>", "<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_LOCATION_EXTRA_COMMANDS\"/>", "<uses-permission android:name=\"android.permission.ACCESS_LOCATION_EXTRA_COMMANDS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>", "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>", "<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.BATTERY_STATS\"/>", "<uses-permission android:name=\"android.permission.BATTERY_STATS\"/>",
"<uses-permission android:name=\"android.permission.BLUETOOTH\"/>", "<uses-permission android:name=\"android.permission.BLUETOOTH\"/>",
"<uses-permission android:name=\"android.permission.BLUETOOTH_ADMIN\"/>", "<uses-permission android:name=\"android.permission.BLUETOOTH_ADMIN\"/>",
"<uses-permission android:name=\"android.permission.CALL_PHONE\"/>", "<uses-permission android:name=\"android.permission.CALL_PHONE\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>", "<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_CONFIGURATION\"/>", "<uses-permission android:name=\"android.permission.CHANGE_CONFIGURATION\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>", "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>", "<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.INTERNET\"/>", "<uses-permission android:name=\"android.permission.INTERNET\"/>",
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>", "<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>", "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>", "<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>", "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>", "<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>", "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>", "<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>" "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
], ],
"abiFilters": ["armeabi-v7a", "arm64-v8a", "x86"], "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ],
"permissionExternalStorage": { "permissionExternalStorage" : {
"request": "none", "request" : "none",
"prompt": "应用保存运行状态等信息,需要获取读写手机存储(系统提示为访问设备上的照片、媒体内容和文件)权限,请允许。" "prompt" : "应用保存运行状态等信息,需要获取读写手机存储(系统提示为访问设备上的照片、媒体内容和文件)权限,请允许。"
}, },
"permissionPhoneState": { "permissionPhoneState" : {
"request": "none" // "request" : "none" //
} }
}, },
/* ios */ /* ios */
"ios": { "ios" : {
"privacyDescription": { "privacyDescription" : {
"NSPhotoLibraryUsageDescription": "上传用户头像保存分享海报", "NSPhotoLibraryUsageDescription" : "上传用户头像保存分享海报",
"NSPhotoLibraryAddUsageDescription": "上传用户头像保存分享海报", "NSPhotoLibraryAddUsageDescription" : "上传用户头像保存分享海报",
"NSCameraUsageDescription": "上传用户头像保存分享海报", "NSCameraUsageDescription" : "上传用户头像保存分享海报",
"NSLocationWhenInUseUsageDescription": "根据客户地理位置推荐最近门店", "NSLocationWhenInUseUsageDescription" : "根据客户地理位置推荐最近门店",
"NSLocationAlwaysUsageDescription": "根据客户地理位置推荐最近门店", "NSLocationAlwaysUsageDescription" : "根据客户地理位置推荐最近门店",
"NSLocationAlwaysAndWhenInUseUsageDescription": "根据客户地理位置推荐最近门店" "NSLocationAlwaysAndWhenInUseUsageDescription" : "根据客户地理位置推荐最近门店"
}, },
"idfa": false, "idfa" : false,
"dSYMs": false "dSYMs" : false
}, },
/* SDK */ /* SDK */
"sdkConfigs": { "sdkConfigs" : {
"maps": { "maps" : {
"amap": { "amap" : {
"appkey_ios": "0a3202688624938fd5d2f37b52c30d5d", "appkey_ios" : "0a3202688624938fd5d2f37b52c30d5d",
"appkey_android": "0354f5ddc11e2ea76c5aac647f44d945", "appkey_android" : "0354f5ddc11e2ea76c5aac647f44d945",
"name": "amapIvoVHpJR" "name" : "amapIvoVHpJR"
} }
}, },
"payment": { "payment" : {
"weixin": { "weixin" : {
"__platform__": ["ios", "android"], "__platform__" : [ "ios", "android" ],
"appid": "wx9d68c92b550ddd1e", "appid" : "wx9d68c92b550ddd1e",
"UniversalLinks": "https://mer.crmeb.net/" "UniversalLinks" : "https://mer.crmeb.net/"
} }
}, },
"share": { "share" : {
"weixin": { "weixin" : {
"appid": "wx9d68c92b550ddd1e", "appid" : "wx9d68c92b550ddd1e",
"UniversalLinks": "https://mer.crmeb.net/" "UniversalLinks" : "https://mer.crmeb.net/"
} }
}, },
"geolocation": { "geolocation" : {
"amap": { "amap" : {
"name": "amapIvoVHpJR", "name" : "amapIvoVHpJR",
"__platform__": ["ios", "android"], "__platform__" : [ "ios", "android" ],
"appkey_ios": "0a3202688624938fd5d2f37b52c30d5d", "appkey_ios" : "0a3202688624938fd5d2f37b52c30d5d",
"appkey_android": "0354f5ddc11e2ea76c5aac647f44d945" "appkey_android" : "0354f5ddc11e2ea76c5aac647f44d945"
}, },
"system": { "system" : {
"__platform__": ["ios", "android"] "__platform__" : [ "ios", "android" ]
} }
}, },
"oauth": {}, "oauth" : {},
"ad": {} "ad" : {}
}, },
"icons": { "icons" : {
"android": { "android" : {
"hdpi": "unpackage/res/icons/72x72.png", "hdpi" : "unpackage/res/icons/72x72.png",
"xhdpi": "unpackage/res/icons/96x96.png", "xhdpi" : "unpackage/res/icons/96x96.png",
"xxhdpi": "unpackage/res/icons/144x144.png", "xxhdpi" : "unpackage/res/icons/144x144.png",
"xxxhdpi": "unpackage/res/icons/192x192.png" "xxxhdpi" : "unpackage/res/icons/192x192.png"
}, },
"ios": { "ios" : {
"appstore": "unpackage/res/icons/1024x1024.png", "appstore" : "unpackage/res/icons/1024x1024.png",
"ipad": { "ipad" : {
"app": "unpackage/res/icons/76x76.png", "app" : "unpackage/res/icons/76x76.png",
"app@2x": "unpackage/res/icons/152x152.png", "app@2x" : "unpackage/res/icons/152x152.png",
"notification": "unpackage/res/icons/20x20.png", "notification" : "unpackage/res/icons/20x20.png",
"notification@2x": "unpackage/res/icons/40x40.png", "notification@2x" : "unpackage/res/icons/40x40.png",
"proapp@2x": "unpackage/res/icons/167x167.png", "proapp@2x" : "unpackage/res/icons/167x167.png",
"settings": "unpackage/res/icons/29x29.png", "settings" : "unpackage/res/icons/29x29.png",
"settings@2x": "unpackage/res/icons/58x58.png", "settings@2x" : "unpackage/res/icons/58x58.png",
"spotlight": "unpackage/res/icons/40x40.png", "spotlight" : "unpackage/res/icons/40x40.png",
"spotlight@2x": "unpackage/res/icons/80x80.png" "spotlight@2x" : "unpackage/res/icons/80x80.png"
}, },
"iphone": { "iphone" : {
"app@2x": "unpackage/res/icons/120x120.png", "app@2x" : "unpackage/res/icons/120x120.png",
"app@3x": "unpackage/res/icons/180x180.png", "app@3x" : "unpackage/res/icons/180x180.png",
"notification@2x": "unpackage/res/icons/40x40.png", "notification@2x" : "unpackage/res/icons/40x40.png",
"notification@3x": "unpackage/res/icons/60x60.png", "notification@3x" : "unpackage/res/icons/60x60.png",
"settings@2x": "unpackage/res/icons/58x58.png", "settings@2x" : "unpackage/res/icons/58x58.png",
"settings@3x": "unpackage/res/icons/87x87.png", "settings@3x" : "unpackage/res/icons/87x87.png",
"spotlight@2x": "unpackage/res/icons/80x80.png", "spotlight@2x" : "unpackage/res/icons/80x80.png",
"spotlight@3x": "unpackage/res/icons/120x120.png" "spotlight@3x" : "unpackage/res/icons/120x120.png"
} }
} }
}, },
"splashscreen": { "splashscreen" : {
"useOriginalMsgbox": true "useOriginalMsgbox" : true
} }
} }
}, },
/* */ /* */
"quickapp": {}, "quickapp" : {},
/* */ /* */
"mp-weixin": { "mp-weixin" : {
"appid": "wxfb4695444ab8d0d0", "appid" : "wxfb4695444ab8d0d0",
"setting": { "setting" : {
"urlCheck": false, "urlCheck" : false,
"minified": true, "minified" : true,
"postcss": true, "postcss" : true,
"es6": true "es6" : true
}, },
"permission": { "permission" : {
"scope.userLocation": { "scope.userLocation" : {
"desc": "获取您的位置" "desc" : "获取您的位置"
} }
}, },
"requiredPrivateInfos": ["getLocation", "chooseAddress"], "requiredPrivateInfos" : [ "getLocation", "chooseAddress" ],
"usingComponents": true "usingComponents" : true
}, },
"mp-alipay": { "mp-alipay" : {
"usingComponents": true "usingComponents" : true
}, },
"mp-baidu": { "mp-baidu" : {
"usingComponents": true "usingComponents" : true
}, },
"mp-toutiao": { "mp-toutiao" : {
"usingComponents": true "usingComponents" : true
}, },
"h5": { "h5" : {
"devServer": { "devServer" : {
"https": false "https" : false
}, },
"router": { "router" : {
"mode": "history", "mode" : "history",
"base": "" "base" : ""
}, },
"domain": "", "domain" : "",
"sdkConfigs": { "sdkConfigs" : {
"maps": { "maps" : {
"qqmap": { "qqmap" : {
"key": "SMJBZ-WCHK4-ZPZUA-DSIXI-XDDVQ-XWFX7" "key" : "SMJBZ-WCHK4-ZPZUA-DSIXI-XDDVQ-XWFX7"
} }
} }
}, },
"title": "加载中...", "title" : "加载中...",
"template": "template.h5.html" "template" : "template.h5.html"
} }
} }
// //
/* ios */ /* ios */

View File

@ -36,7 +36,7 @@
<navigator <navigator
v-if="item.msn_type === 6 && item.refundOrder && item.refundOrder.refund_order_id" v-if="item.msn_type === 6 && item.refundOrder && item.refundOrder.refund_order_id"
open-type="navigate" open-type="navigate"
:url="'/pages/order_details/index?order_id='+item.refundOrder.order_id"> :url="'/pages/admin/refundDetail/index?id='+item.refundOrder.refund_order_id + '&mer_id=' + item.mer_id">
<div class="broadcast-details_num"> <div class="broadcast-details_num">
<span>退款单号{{ item.refundOrder.refund_order_sn }}</span> <span>退款单号{{ item.refundOrder.refund_order_sn }}</span>
</div> </div>

View File

@ -16,7 +16,7 @@
v-if="item.last && (item.last.msn_type == 5 || item.last.msn_type == 6)">[订单]</view> v-if="item.last && (item.last.msn_type == 5 || item.last.msn_type == 6)">[订单]</view>
</view> </view>
<view class="right-box"> <view class="right-box">
<view class="time">{{item.last && item.last.create_time.split(' ')[1] || ''}}</view> <view class="time">{{item.display_time}}</view>
<view class="num" v-if="item.num>0">{{item.num}}</view> <view class="num" v-if="item.num>0">{{item.num}}</view>
</view> </view>
</div> </div>
@ -38,7 +38,7 @@
v-if="item.last && (item.last.msn_type == 5 || item.last.msn_type == 6)">[订单]</view> v-if="item.last && (item.last.msn_type == 5 || item.last.msn_type == 6)">[订单]</view>
</view> </view>
<view class="right-box"> <view class="right-box">
<view class="time">{{item.last && item.last.create_time.split(' ')[1]}}</view> <view class="time">{{item.display_time}}</view>
<view class="num" v-if="item.num>0">{{item.num}}</view> <view class="num" v-if="item.num>0">{{item.num}}</view>
</view> </view>
</div> </div>

View File

@ -1,14 +1,18 @@
<!-- 未开通商户 --> <!-- 未开通商户 -->
<template> <template>
<view class="unregist"> <view class="unregist">
<view class="unregist-wrap">
<!-- 适配不同机 -->
<view style="height: var(--status-bar-height);"></view>
<view style="display: flex;justify-content: space-between;height:100%;">
<view class="head">
<image src="@/static/images/f.png"></image>
<text>暂无信息</text>
</view>
<view class="icon" @click="handleBack"> <!-- 按钮 -->
<u-icon name="arrow-left" color="#fff" size="20"></u-icon> <retuntop style="margin-right: 50rpx;margin-top: 20rpx;" />
</view> </view>
<view class="head">
<image src="@/static/images/f.png"></image>
<text>暂无信息</text>
</view> </view>
<view class="con"> <view class="con">
@ -24,7 +28,11 @@
</template> </template>
<script> <script>
import retuntop from '@/components/content-top/index.vue';
export default { export default {
components: {
retuntop
},
methods: { methods: {
handleBack() { handleBack() {
console.log(1241) console.log(1241)
@ -52,16 +60,7 @@
.unregist { .unregist {
position: relative; position: relative;
.icon { .unregist-wrap {
position: absolute;
top: calc(30rpx + var(--status-bar-height));
left: 30rpx;
z-index: 10;
}
.head {
display: flex;
align-items: center;
width: 100%; width: 100%;
height: 360rpx; height: 360rpx;
background-image: url(https://lihai001.oss-cn-chengdu.aliyuncs.com/def/a2e04202404021019436262.webp); background-image: url(https://lihai001.oss-cn-chengdu.aliyuncs.com/def/a2e04202404021019436262.webp);
@ -69,6 +68,11 @@
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center; background-position: center;
margin-bottom: 200rpx; margin-bottom: 200rpx;
}
.head {
display: flex;
align-items: center;
image { image {
width: 112rpx; width: 112rpx;

View File

@ -7,7 +7,7 @@
<view class="tab-item" :class="{on:tabIndex==2}" @click="tabIndex = 2">商户</view> <view class="tab-item" :class="{on:tabIndex==2}" @click="tabIndex = 2">商户</view>
</view> </view>
<block v-if="tabIndex==1"> <block v-if="tabIndex==1">
<view class='nav acea-row row-middle' > <view class='nav acea-row row-middle'>
<view class='item' @click="downStatus = !downStatus" <view class='item' @click="downStatus = !downStatus"
:class="{'t-color':downKey>0 && firstKey == 0}"> :class="{'t-color':downKey>0 && firstKey == 0}">
{{downMenu[downKey].title}} {{downMenu[downKey].title}}
@ -72,33 +72,33 @@
</view> --> </view> -->
<!-- <view class="zhezhao"> <!-- <view class="zhezhao">
</view> --> </view> -->
<view class="zhezhao1" @click="goStore(item.mer_id)"> <view class="zhezhao1" @click="goStore(item.mer_id)">
<view class="title"> <view class="title">
<view class="left"> <view class="left">
<view>{{item.mer_name}} <view>{{item.mer_name}}
</view> </view>
<span> <span>
{{item.type_name}} {{item.type_name}}
</span> </span>
</view> </view>
<view class="right"> <view class="right">
进店 进店
</view> </view>
</view> </view>
<u-line></u-line> <u-line></u-line>
<view class="coent" style="margin-top: 20rpx;"> <view class="coent" style="margin-top: 20rpx;">
<view class="avater"> <view class="avater">
<image :src="item.mer_avatar" mode=""></image> <image :src="item.mer_avatar" mode=""></image>
</view> </view>
<view class="text"> <view class="text">
<view class="score"> <view class="score">
<view class="star"> <view class="star">
<view <view
:style="{width: `${(item.service_score / 5 * 100).toFixed(0)}%`, backgroundImage: `url(${domain}/static/diy/score1${keyColor}.png)`}"> :style="{width: `${(item.service_score / 5 * 100).toFixed(0)}%`, backgroundImage: `url(${domain}/static/diy/score1${keyColor}.png)`}">
</view> </view>
</view> </view>
<view class="score_text">{{ item.service_score }}</view> <view class="score_text">{{ item.service_score }}</view>
</view> </view>
<view class="text_three"> <view class="text_three">
<image src="@/static/images/phone_r.png" mode=""></image> <image src="@/static/images/phone_r.png" mode=""></image>
{{item.service_phone}} {{item.service_phone}}
@ -150,25 +150,24 @@
<!-- #ifndef H5 --> <!-- #ifndef H5 -->
<passwordPopup></passwordPopup> <passwordPopup></passwordPopup>
<!-- #endif --> <!-- #endif -->
<!-- 购物车 --> <!-- 购物车 -->
<view class="card" :style="`bottom:10px`" <view class="card" :style="`bottom:10px`" @click="navgo('/pages/order_addcart/order_addcart?product_type=98')">
@click="navgo('/pages/order_addcart/order_addcart?product_type=98')"> <view class="left">
<view class="left"> <view class="cart" :class="{ act_cart: false }" style="position: relative; z-index: 9999999">
<view class="cart" :class="{ act_cart: false }" style="position: relative; z-index: 9999999"> <u--image :showLoading="true" src="/static/images/LHYC/GWC.png" width="63.09rpx"
<u--image :showLoading="true" src="/static/images/LHYC/GWC.png" width="63.09rpx" height="63.09rpx"></u--image>
height="63.09rpx"></u--image>
<view class="badge">
<view class="badge"> {{goodsNum}}
{{goodsNum}} </view>
</view> </view>
</view> <view class="tot_price">
<view class="tot_price"> <view class=""> {{totalMoney}} </view>
<view class=""> {{totalMoney}} </view> <view class=""> 支持配送 售后无忧 </view>
<view class=""> 支持配送 售后无忧 </view> </view>
</view> </view>
</view> <view class="right"> 去结算 </view>
<view class="right"> 去结算 </view> </view>
</view>
</view> </view>
</template> </template>
@ -219,11 +218,11 @@
import { import {
getconfig, getconfig,
} from '@/api/public.js'; } from '@/api/public.js';
import { import {
getCartCounts, getCartCounts,
getCartList, getCartList,
} from '@/api/requesta.js'; } from '@/api/requesta.js';
const app = getApp(); const app = getApp();
export default { export default {
components: { components: {
@ -255,8 +254,8 @@
domain: HTTP_REQUEST_URL, domain: HTTP_REQUEST_URL,
productList: [], productList: [],
is_switch: true, is_switch: true,
goodsNum: 0, goodsNum: 0,
totalMoney: 0, totalMoney: 0,
where: { where: {
cate_id: '', cate_id: '',
order: '', order: '',
@ -360,11 +359,11 @@
this.get_host_product(); this.get_host_product();
this.getClassfication(); this.getClassfication();
this.getStoreType(); this.getStoreType();
// this.tabIndex = 2 // this.tabIndex = 2
},
onShow() {
this.cartFn()
}, },
onShow() {
this.cartFn()
},
onReady() {}, onReady() {},
mounted() { mounted() {
uni.getStorage({ uni.getStorage({
@ -543,7 +542,7 @@
this.storeList = this.storeList.concat(res.data.list) this.storeList = this.storeList.concat(res.data.list)
this.count = res.data.count this.count = res.data.count
this.loading = false this.loading = false
}) })
}, },
// //
@ -649,7 +648,7 @@
}, },
// //
confirm2(data) { confirm2(data) {
let arr1 = [], let arr1 = [],
arr2 = [] arr2 = []
if (data.storeTypeArr.length == 0) { if (data.storeTypeArr.length == 0) {
@ -741,11 +740,11 @@
that.hotScroll = res.data.list.length < that.hotLimit that.hotScroll = res.data.list.length < that.hotLimit
that.hostProduct = that.hostProduct.concat(res.data.list) that.hostProduct = that.hostProduct.concat(res.data.list)
if (that.hostProduct.length == res.data.count) { if (that.hostProduct.length == res.data.count) {
uni.showToast({ uni.showToast({
title: '推荐商品,加载完毕', title: '推荐商品,加载完毕',
duration: 2000, // duration: 2000, //
icon:'none' icon: 'none'
}) })
} }
}); });
@ -787,10 +786,10 @@
// //
get_product_list: function(isPage) { get_product_list: function(isPage) {
let that = this; let that = this;
if (that.loadend) return; if (that.loadend) return;
if (that.loading) return; if (that.loading) return;
if (isPage === true) that.$set(that, 'productList', []); if (isPage === true) that.$set(that, 'productList', []);
that.loading = true; that.loading = true;
that.loadTitle = ''; that.loadTitle = '';
@ -820,55 +819,55 @@
}) })
} }
}, },
skuaddcart() { skuaddcart() {
this.showcartpop = false this.showcartpop = false
// this.skuform = {} // this.skuform = {}
let res = postCartAdd({ let res = postCartAdd({
cart_num: this.skuNumber, cart_num: this.skuNumber,
is_new: 0, is_new: 0,
product_attr_unique: this.skuform.sku[this.skusize].unique, product_attr_unique: this.skuform.sku[this.skusize].unique,
product_id: this.skuform.product_id, product_id: this.skuform.product_id,
product_type: this.skuform.product_type, product_type: this.skuform.product_type,
spread_id: "", spread_id: "",
}).then((res, err) => { }).then((res, err) => {
this.cartFn() this.cartFn()
uni.showToast({ uni.showToast({
title: "加入成功", title: "加入成功",
duration: 1000, duration: 1000,
}) })
}).catch(err => { }).catch(err => {
// this.act_cart = false // this.act_cart = false
uni.showToast({ uni.showToast({
title: err, title: err,
icon: "none", icon: "none",
duration: 1000, duration: 1000,
}) })
}) })
}, },
cartFn() { cartFn() {
getCartList().then(res => { getCartList().then(res => {
// console.log(res) // console.log(res)
this.totalMoney = 0 this.totalMoney = 0
this.cartList = res.data.list this.cartList = res.data.list
this.cartList.forEach(e => { this.cartList.forEach(e => {
e.list.forEach(item => { e.list.forEach(item => {
this.totalMoney += item.cart_num * item.productAttr.price this.totalMoney += item.cart_num * item.productAttr.price
}) })
}) })
this.totalMoney = this.totalMoney.toFixed(2) this.totalMoney = this.totalMoney.toFixed(2)
}) })
getCartCounts().then(res => { getCartCounts().then(res => {
this.goodsNum = res.data[0].count this.goodsNum = res.data[0].count
}) })
}, },
navgo(url){ navgo(url) {
uni.navigateTo({ uni.navigateTo({
url: url url: url
}) })
} }
}, },
onPullDownRefresh() { onPullDownRefresh() {
@ -914,14 +913,14 @@
.productList .search { .productList .search {
width: 100%; width: 100%;
height: 170rpx; height: 170rpx;
padding: 0 20rpx; padding: 0 20rpx;
// box-sizing: border-box; // box-sizing: border-box;
position: fixed; position: fixed;
left: 0; left: 0;
top: 0rpx; top: 0rpx;
padding-top: 60rpx; padding-top: 60rpx;
z-index: 9; z-index: 9;
background-color: var(--view-theme); background-color: var(--view-theme);
.icon-dingwei { .icon-dingwei {
@ -977,13 +976,13 @@
width: 62rpx; width: 62rpx;
font-size: 40rpx; font-size: 40rpx;
height: 86rpx; height: 86rpx;
line-height: 86rpx ; line-height: 86rpx;
} }
.productList .nav-wrapper { .productList .nav-wrapper {
width: 100%; width: 100%;
// background-color: var(--view-theme); // background-color: var(--view-theme);
background-color: #fff; background-color: #fff;
.tab-bar { .tab-bar {
display: flex; display: flex;
@ -996,7 +995,7 @@
justify-content: center; justify-content: center;
align-items: center; align-items: center;
padding: 8rpx 0 20rpx; padding: 8rpx 0 20rpx;
color: #333; color: #333;
font-size: 28rpx; font-size: 28rpx;
font-weight: bold; font-weight: bold;
@ -1014,7 +1013,7 @@
&.on { &.on {
&::after { &::after {
// background: #fff; // background: #fff;
background-color: var(--view-theme) background-color: var(--view-theme)
} }
} }
} }
@ -1055,7 +1054,7 @@
.productList .list { .productList .list {
padding: 0 20rpx; padding: 0 20rpx;
} }
.productList .list.on { .productList .list.on {
@ -1091,7 +1090,7 @@
position: relative; position: relative;
width: 100%; width: 100%;
height: 345rpx; height: 345rpx;
} }
.productList .list .item .pictrue.on { .productList .list .item .pictrue.on {
@ -1435,7 +1434,7 @@
.store-wrapper { .store-wrapper {
// margin-top: 310rpx; // margin-top: 310rpx;
border-top: 1px solid #F6F6F6; border-top: 1px solid #F6F6F6;
.star-box { .star-box {
@ -1483,7 +1482,8 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
color: #fff; color: #fff;
margin: 0 20rpx; margin: 0 20rpx;
// align-self: ;
.zhezhao { .zhezhao {
position: absolute; position: absolute;
@ -1509,59 +1509,61 @@
// height: 150px; // height: 150px;
border-radius: 20rpx; border-radius: 20rpx;
z-index: 1; z-index: 1;
background-color: #fff; background-color: #fff;
color: #333 !important; color: #333 !important;
.title { .title {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
.left{
flex: 1; .left {
display: flex; flex: 1;
// height: 50px; display: flex;
padding: 20rpx 0; // height: 50px;
align-items: center; padding: 20rpx 0;
margin-left: 20px; align-items: center;
z-index: 1; margin-left: 20px;
z-index: 1;
span {
flex-shrink: 0; span {
// background-color: #F84221; flex-shrink: 0;
border: 1px solid #F84221; // background-color: #F84221;
color: #F84221; border: 1px solid #F84221;
font-size: 12px; color: #F84221;
padding: 3px; font-size: 12px;
border-radius: 5px; padding: 3px;
margin-left: 5px; border-radius: 5px;
margin-right: 5px; margin-left: 5px;
} margin-right: 5px;
} }
.right{ }
flex-shrink: 0;
background: linear-gradient(to right, #ff7b36,#F84221); .right {
color: #fff; flex-shrink: 0;
height: 50rpx; background: linear-gradient(to right, #ff7b36, #F84221);
line-height: 50rpx; color: #fff;
width: 100rpx; height: 50rpx;
text-align: center; line-height: 50rpx;
margin-right: 30rpx; width: 100rpx;
border-radius: 50rpx; text-align: center;
} margin-right: 30rpx;
border-radius: 50rpx;
}
} }
.coent { .coent {
display: flex; display: flex;
margin: 0 20px; margin: 0 20px;
width: 100%; width: 100%;
padding-bottom: 20rpx; padding-bottom: 20rpx;
.avater { .avater {
flex-shrink: 0; flex-shrink: 0;
width: 80px; width: 80px;
height: 80px; height: 80px;
border-radius: 14rpx; border-radius: 14rpx;
overflow: hidden; overflow: hidden;
image { image {
width: 80px; width: 80px;
@ -1570,8 +1572,9 @@
} }
.text { .text {
flex: 1; flex: 1;
width: 100%; width: 100%;
.text_one { .text_one {
display: flex; display: flex;
height: 30px; height: 30px;
@ -1606,8 +1609,8 @@
} }
.text_three { .text_three {
display: flex; display: flex;
align-items: center; align-items: center;
width: 270px; width: 270px;
padding-left: 10rpx; padding-left: 10rpx;
white-space: nowrap; white-space: nowrap;
@ -1699,99 +1702,104 @@
.pop { .pop {
z-index: 1; z-index: 1;
} }
.score {
display: flex; .score {
align-items: center; display: flex;
margin-left: 15rpx; align-items: center;
margin-bottom: 16rpx; margin-left: 15rpx;
font-weight: 500; margin-bottom: 16rpx;
font-size: 24rpx; font-weight: 500;
line-height: 1; font-size: 24rpx;
color: #000; line-height: 1;
color: #000;
.score-title {
margin-right: 15rpx; .score-title {
margin-right: 15rpx;
}
.score_text{ }
color: #fd5d2e;
} .score_text {
color: #fd5d2e;
.star { }
position: relative;
width: 111rpx; .star {
height: 19rpx; position: relative;
margin-right: 10rpx; width: 111rpx;
background: url(../../columnGoods/images/star.png) left top/100% 100% no-repeat; height: 19rpx;
overflow: hidden; margin-right: 10rpx;
background: url(../../columnGoods/images/star.png) left top/100% 100% no-repeat;
view { overflow: hidden;
position: absolute;
top: 0; view {
left: 0; position: absolute;
width: 100%; top: 0;
height: 100%; left: 0;
background: url(../../columnGoods/images/star_active.png) left top/111rpx 19rpx no-repeat; width: 100%;
height: 100%;
&.star_purple { background: url(../../columnGoods/images/star_active.png) left top/111rpx 19rpx no-repeat;
background: url(../../columnGoods/images/star_active_purple.png) left top/111rpx 19rpx no-repeat;
} &.star_purple {
} background: url(../../columnGoods/images/star_active_purple.png) left top/111rpx 19rpx no-repeat;
} }
} }
.card { }
width: 720rpx; }
z-index: 99;
// margin:auto; .card {
left: 50%; width: 720rpx;
transform: translateX(-50%); z-index: 99;
position: fixed; // margin:auto;
// bottom: 0; left: 50%;
background-color: #333333; transform: translateX(-50%);
height: 101.64rpx; position: fixed;
border-radius: 50.82rpx; // bottom: 0;
overflow: hidden; background-color: #333333;
color: white; height: 101.64rpx;
display: flex; border-radius: 50.82rpx;
justify-content: space-between; overflow: hidden;
box-sizing: border-box; color: white;
display: flex;
.left { justify-content: space-between;
display: flex; box-sizing: border-box;
align-items: center;
padding: 10rpx 35rpx; .left {
display: flex;
.tot_price { align-items: center;
display: flex; padding: 10rpx 35rpx;
margin-left: 42rpx;
flex-direction: column; .tot_price {
justify-content: space-between; display: flex;
} margin-left: 42rpx;
.badge { flex-direction: column;
position: absolute; justify-content: space-between;
top: 0; }
right: 0;
background-color: #f84221; .badge {
transform: translate(50%, -50%); position: absolute;
// padding: 10rpx 10rpx; top: 0;
border-radius: 35rpx; right: 0;
text-align: center; background-color: #f84221;
width: 35rpx; transform: translate(50%, -50%);
line-height: 35rpx; // padding: 10rpx 10rpx;
height: 35rpx; border-radius: 35rpx;
} text-align: center;
} width: 35rpx;
line-height: 35rpx;
.right { height: 35rpx;
font-size: 33.29rpx; }
line-height: 50px; }
background: linear-gradient(to right, #f84221, #ff6d20);
width: 140.19rpx; .right {
text-align: center; font-size: 33.29rpx;
} line-height: 50px;
} background: linear-gradient(to right, #f84221, #ff6d20);
.act_cart { width: 140.19rpx;
transition: 0.5s; text-align: center;
transform: scale(1.1); }
} }
.act_cart {
transition: 0.5s;
transform: scale(1.1);
}
</style> </style>

View File

@ -54,7 +54,7 @@
<view class="withdrawal-form-item-label">提现金额</view> <view class="withdrawal-form-item-label">提现金额</view>
<view class="withdrawal-form-item-val"> <view class="withdrawal-form-item-val">
<input @input="onInput" type="number" placeholder="请输入提现金额" <input @input="onInput" type="number" placeholder="请输入提现金额"
placeholder-class="placeholderClass" :value="payForm.extract_money"> placeholder-class="placeholderClass" v-model="payForm.extract_money">
</view> </view>
</view> </view>
</view> </view>