Преглед на файлове

feat: 商家主页左上角加返回按键

ext.zhangbin71 преди 3 седмици
родител
ревизия
0ea5eb6157
променени са 3 файла, в които са добавени 16 реда и са изтрити 4 реда
  1. 2 2
      config/app.js
  2. 14 1
      pages/merchantCenter/index.vue
  3. 0 1
      pages/merchantCenters/productCenter.vue

+ 2 - 2
config/app.js

@@ -8,8 +8,8 @@ let imgUrl = "https://sb-admin.oss-cn-shenzhen.aliyuncs.com/shuibei-mini/new-min
 
 // export const H5_BASE_URL = "http://192.168.3.10:5174"; // 本地测试
 // export const H5_BASE_URL = "http://192.168.100.35:5175"; // 本地测试
-// export const H5_BASE_URL = "https://test.shuibeibyg.com/web-h5/"; // 测试环境H5地址
-export const H5_BASE_URL = "https://www.shuibeibyg.com/web-h5/"; // 正式环境H5地址
+export const H5_BASE_URL = "https://test.shuibeibyg.com/web-h5/"; // 测试环境H5地址
+// export const H5_BASE_URL = "https://www.shuibeibyg.com/web-h5/"; // 正式环境H5地址
 
 // PC 后台 API 地址(用于上传图片)
 export const HTTP_ADMIN_URL = domain;

+ 14 - 1
pages/merchantCenter/index.vue

@@ -2,7 +2,12 @@
 	<view class="container">
 		<up-navbar class="inde-nav-bar" :bgColor="navBgColor">
 			<template #left>
-				<view></view>
+				<view class="back_extend" @click="handleFunctionClick('/pages/index/index','我的商城')">
+					<uni-icons type="left" size="22" color="#333"></uni-icons>
+					 <view class="">
+					 	返回商城
+					 </view>
+				</view>
 			</template>
 			<template #center>
 				<view class="page-title">门店主页</view>
@@ -412,6 +417,14 @@
 </script>
 
 <style scoped lang="scss">
+	
+	.back_extend{
+		display: flex;
+		justify-content: flex-start;
+		align-items: center;
+		color: #333;
+		font-size: 28rpx;
+	}
 	.container {
 		background-color: #f5f5f5;
 		min-height: 100vh;

+ 0 - 1
pages/merchantCenters/productCenter.vue

@@ -10,7 +10,6 @@
               v-model="searchVal"
               placeholder="请输入搜索内容"
               placeholder-class="placeholder"
-              @input="onSearch"
               @confirm="onSearch"
               :focus="isFocus"
           />