cmy 3 месяцев назад
Родитель
Сommit
afecab2142

+ 92 - 91
pages/modelData/modeltemplate/model_5.vue

@@ -1,107 +1,108 @@
 <template>
 	<view class="mone">
-		<view class="topBox">
-
-			<image :src="`${baseURL}/resource/user/user5/text3.png`" mode="scaleToFill" class="leftTipImg">
-			</image>
-			<view class="nameBox">
-				<text class="username">{{cardInfo.name || '暂无'}}</text>
-			</view>
-			<image :src="cardInfo.avatar" mode="scaleToFill" class="avatar"></image>
-			<view class="noBox">
-				<text class="noText">执</text>
-				<text class="noText">业</text>
-				<text class="noText">编</text>
-				<text class="noText">编</text>
-				<text class="noText">:</text>
-				<text class="noText trText" v-for="ls in no">{{ls}}</text>
-			</view>
-			<image :src="`${baseURL}/resource/user/user5/img1.png`" mode="scaleToFill" class="topBottomImg"></image>
-		</view>
-		<view class="contentBox">
-			<view class="titleImg">
-				<image class="titleImg1" :src="`${baseURL}/resource/user/user5/text4.png`" mode="scaleToFill"></image>
+		<template v-if="baseURL">
+			<view class="topBox">
+				<image :src="`${baseURL}/resource/user/user5/text3.png`" mode="scaleToFill" class="leftTipImg">
+				</image>
+				<view class="nameBox">
+					<text class="username">{{cardInfo.name || '暂无'}}</text>
+				</view>
+				<image :src="cardInfo.avatar" mode="scaleToFill" class="avatar"></image>
+				<view class="noBox">
+					<text class="noText">执</text>
+					<text class="noText">业</text>
+					<text class="noText">编</text>
+					<text class="noText">编</text>
+					<text class="noText">:</text>
+					<text class="noText trText" v-for="ls in no">{{ls}}</text>
+				</view>
+				<image :src="`${baseURL}/resource/user/user5/img1.png`" mode="scaleToFill" class="topBottomImg"></image>
 			</view>
-			<view class="content">
-				<view class="userName">
-					<text class="list-item">姓名: {{cardInfo.name||'暂无'}}</text>
+			<view class="contentBox">
+				<view class="titleImg">
+					<image class="titleImg1" :src="`${baseURL}/resource/user/user5/text4.png`" mode="scaleToFill"></image>
 				</view>
-				<view class="center-data flex">
-					<view class="item">
-						<text class="list-item">
-							籍贯: {{cardInfo.ancestral_place|| '暂无'}}
-						</text>
-						<text class="list-item">
-							民族: {{cardInfo.minority || '暂无'}}
-						</text>
-						<text class="list-item">
-							学历: {{cardInfo.education || '暂无'}}
-						</text>
-						<text class="list-item">
-							年龄: {{cardInfo.age || '暂无'}}
-						</text>
-						<text class="list-item">
-							星座: {{cardInfo.constellation || '暂无'}}
-						</text>
+				<view class="content">
+					<view class="userName">
+						<text class="list-item">姓名: {{cardInfo.name||'暂无'}}</text>
 					</view>
-					<view class="item">
-						<text class="list-item">
-							身高:{{cardInfo.height*1+'厘米'|| '暂无'}}
-						</text>
-						<text class="list-item">
-							体重:{{cardInfo.weight*1+'kg' || '暂无'}}
-						</text>
-						<text class="list-item">
-							属相: {{cardInfo.twelve || '暂无'}}
-						</text>
-						<text class="list-item">
-							服务年限: {{(cardInfo.work_year + '年') || '0'}}
+					<view class="center-data flex">
+						<view class="item">
+							<text class="list-item">
+								籍贯: {{cardInfo.ancestral_place|| '暂无'}}
+							</text>
+							<text class="list-item">
+								民族: {{cardInfo.minority || '暂无'}}
+							</text>
+							<text class="list-item">
+								学历: {{cardInfo.education || '暂无'}}
+							</text>
+							<text class="list-item">
+								年龄: {{cardInfo.age || '暂无'}}
+							</text>
+							<text class="list-item">
+								星座: {{cardInfo.constellation || '暂无'}}
+							</text>
+						</view>
+						<view class="item">
+							<text class="list-item">
+								身高:{{cardInfo.height*1+'厘米'|| '暂无'}}
+							</text>
+							<text class="list-item">
+								体重:{{cardInfo.weight*1+'kg' || '暂无'}}
+							</text>
+							<text class="list-item">
+								属相: {{cardInfo.twelve || '暂无'}}
+							</text>
+							<text class="list-item">
+								服务年限: {{(cardInfo.work_year + '年') || '0'}}
+							</text>
+							<text class="list-item">
+								服务次数: {{cardInfo.service_count || '0'}}
+							</text>
+						</view>
+					</view>
+				</view>
+				<view class="position-relative">
+					<view class="typeTitleImg flex-center">
+						<image :src="`${baseURL}/resource/user/user5/text1.png`" mode="scaleToFill" class="typeImage">
+						</image>
+					</view>
+					<view class="flex-center padding-v-20 padding-c-20">
+						<view class="areaList" v-if="cardInfo.is_china == 1">
+							<text  class="blue-text" :key='fwindex' v-for="(fwitem,fwindex) in cardInfo.service_area_all">
+								{{fwitem}}{{fwindex ==(cardInfo.service_area_all.length -1) ?'': ''  }}
+							</text>
+						</view>
+						<text  class="blue-text" v-if="cardInfo.is_china == 0">
+							海外
 						</text>
-						<text class="list-item">
-							服务次数: {{cardInfo.service_count || '0'}}
+						<text class="blue-text" v-if="cardInfo.is_china == 2">
+							全国
 						</text>
 					</view>
-				</view>
-			</view>
-			<view class="position-relative">
-				<view class="typeTitleImg flex-center">
-					<image :src="`${baseURL}/resource/user/user5/text1.png`" mode="scaleToFill" class="typeImage">
-					</image>
-				</view>
-				<view class="flex-center padding-v-20 padding-c-20">
-					<view class="areaList" v-if="cardInfo.is_china == 1">
-						<text  class="blue-text" :key='fwindex' v-for="(fwitem,fwindex) in cardInfo.service_area_all">
-							{{fwitem}}{{fwindex ==(cardInfo.service_area_all.length -1) ?'': ''  }}
+					<view class="typeTitleImg flex-center">
+						<image :src="`${baseURL}/resource/user/user5/text2.png`" mode="scaleToFill" class="typeImage">
+						</image>
+					</view>
+					<view class="flex-center  padding-v-20 padding-c-20">
+						<text class="blue-text">
+							{{cardInfo.service_min_price}}元/{{ cardInfo.service_time_type_title && cardInfo.service_time_type_title.replace('每','')}}——{{cardInfo.service_max_price}}元/{{cardInfo.service_time_type_title && cardInfo.service_time_type_title.replace('每','')}}	
 						</text>
 					</view>
-					<text  class="blue-text" v-if="cardInfo.is_china == 0">
-						海外
-					</text>
-					<text class="blue-text" v-if="cardInfo.is_china == 2">
-						全国
-					</text>
+					<image :src="`${baseURL}/resource/user/user5/img2.png`" mode="scaleToFill" class="typeLeftLogo"></image>
 				</view>
-				<view class="typeTitleImg flex-center">
-					<image :src="`${baseURL}/resource/user/user5/text2.png`" mode="scaleToFill" class="typeImage">
-					</image>
-				</view>
-				<view class="flex-center  padding-v-20 padding-c-20">
-					<text class="blue-text">
-						{{cardInfo.service_min_price}}元/{{ cardInfo.service_time_type_title && cardInfo.service_time_type_title.replace('每','')}}——{{cardInfo.service_max_price}}元/{{cardInfo.service_time_type_title && cardInfo.service_time_type_title.replace('每','')}}	
-					</text>
+			</view>
+			<view class="footerBox">
+				<image :src="`${baseURL}/resource/user/user5/text5.png`" mode="scaleToFill" class="footerTitle"></image>
+				<view class="text margin-t-20">
+					<rich-text class="richtext" :nodes="cardInfo.service_intro_content"></rich-text>
 				</view>
-				<image :src="`${baseURL}/resource/user/user5/img2.png`" mode="scaleToFill" class="typeLeftLogo"></image>
 			</view>
-		</view>
-		<view class="footerBox">
-			<image :src="`${baseURL}/resource/user/user5/text5.png`" mode="scaleToFill" class="footerTitle"></image>
-			<view class="text margin-t-20">
-				<rich-text class="richtext" :nodes="cardInfo.service_intro_content"></rich-text>
+			<view class="imageList">
+				<image v-for="ls in cardInfo.service_intro_imgs" :src="ls" mode="scaleToFill" class="imageItem"></image>
 			</view>
-		</view>
-		<view class="imageList">
-			<image v-for="ls in cardInfo.service_intro_imgs" :src="ls" mode="scaleToFill" class="imageItem"></image>
-		</view>
+		</template>
 	</view>
 </template>
 
@@ -204,7 +205,7 @@
 			},
 			no() {
 				const ar = this.cardInfo.no.split('');
-				console.log(ar, 'ar')
+				// console.log(ar, 'ar')
 				if (ar.length > 0) {
 					return ar
 				} else {

+ 2 - 2
pages/user/model/modelrz.vue

@@ -259,13 +259,13 @@
 				<view class="con_box" >
 					<view class="con_image" v-for="(item,ind) in updata.imageList">
 						<image class="img" v-if="modelid!=7" @click="navCroper(400,400,'tab',ind)" :src="item"></image>
-						<image class="img" v-else @click="navCroper(300,400,'tab',ind)" :src="item"></image>
+						<image class="img" v-else @click="navCroper(900,1200,'tab',ind)" :src="item"></image>
 						<image @click="updata.imageList.splice(ind,1)" class="tip" src="../../../static/icon/goodsExit.png"
 							mode="scaleToFill"></image>
 					</view>
 					<view class="con_image">
 						<image class="img" v-if="modelid!=7" @click="navCroper(400,400,'all')" src="../../../static/image/upImg.png"></image>
-						<image class="img" v-else @click="navCroper(300,400,'all')" src="../../../static/image/upImg.png"></image>
+						<image class="img" v-else @click="navCroper(900,1200,'all')" src="../../../static/image/upImg.png"></image>
 					</view>
 				</view>
 			</view>

+ 55 - 38
uni_modules/ksp-cropper/package.json

@@ -7,11 +7,13 @@
     "头像",
     "图片",
     "裁剪"
-],
+  ],
   "repository": "",
-"engines": {
+  "engines": {
+    "uni-app": "^3.1.0",
+    "uni-app-x": "^3.1.0"
   },
-"dcloudext": {
+  "dcloudext": {
     "sale": {
       "regular": {
         "price": "0.00"
@@ -29,50 +31,65 @@
       "permissions": "无"
     },
     "npmurl": "",
-    "type": "component-vue"
+    "type": "component-vue",
+    "darkmode": "-",
+    "i18n": "-",
+    "widescreen": "-"
   },
   "uni_modules": {
     "dependencies": [],
     "encrypt": [],
     "platforms": {
       "cloud": {
-        "tcb": "y",
-        "aliyun": "y"
+        "tcb": "",
+        "aliyun": ""
       },
       "client": {
-        "Vue": {
-          "vue2": "y",
-          "vue3": "y"
+        "uni-app": {
+          "vue": {
+            "vue2": "-",
+            "vue3": "-"
+          },
+          "web": {
+            "safari": "-",
+            "chrome": "-"
+          },
+          "app": {
+            "vue": "-",
+            "nvue": "-",
+            "android": "-",
+            "ios": "-",
+            "harmony": "-"
+          },
+          "mp": {
+            "weixin": "-",
+            "alipay": "-",
+            "toutiao": "-",
+            "baidu": "-",
+            "kuaishou": "-",
+            "jd": "-",
+            "harmony": "-",
+            "qq": "-",
+            "lark": "-"
+          },
+          "quickapp": {
+            "huawei": "-",
+            "union": "-"
+          }
         },
-        "App": {
-          "app-vue": "y",
-          "app-nvue": "u"
-        },
-        "H5-mobile": {
-          "Safari": "y",
-          "Android Browser": "y",
-          "微信浏览器(Android)": "y",
-          "QQ浏览器(Android)": "y"
-        },
-        "H5-pc": {
-          "Chrome": "u",
-          "IE": "u",
-          "Edge": "u",
-          "Firefox": "u",
-          "Safari": "u"
-        },
-        "小程序": {
-          "微信": {
-            "minVersion": "2.9.0"
-        },
-          "阿里": "n",
-          "百度": "n",
-          "字节跳动": "n",
-          "QQ": "u"
-        },
-        "快应用": {
-          "华为": "u",
-          "联盟": "u"
+        "uni-app-x": {
+          "web": {
+            "safari": "-",
+            "chrome": "-"
+          },
+          "app": {
+            "android": "-",
+            "ios": "-",
+            "harmony": "-"
+          },
+          "mp": {
+            "weixin": "-"
+          }
         }
       }
     }