From 4b251816b75d1ba5423f41370b9e43bed4493f90 Mon Sep 17 00:00:00 2001
From: zhao_js <349234519@qq.com>
Date: 星期三, 03 一月 2024 15:07:16 +0800
Subject: [PATCH] no message

---
 api/.vs/FxProject/v16/.suo            |    0 
 H5/pages/ad_page/product_sc.vue       |  232 ++++++++++++++++++++++++++++++++++++++
 H5/pages/ad_page/sms_examine.vue      |   28 +++-
 H5/pages.json                         |   45 ++++---
 H5/manifest.json                      |    2 
 H5/pages/ad_page/wx_pyqset.vue        |   27 +++-
 H5/unpackage/dist/build/h5/index.html |    2 
 H5/pages/ad_page/trans.vue            |    2 
 8 files changed, 302 insertions(+), 36 deletions(-)

diff --git a/H5/manifest.json b/H5/manifest.json
index 1266bc3..409e0b1 100644
--- a/H5/manifest.json
+++ b/H5/manifest.json
@@ -89,7 +89,7 @@
                 },
                 "/api/" : {
                     //鏄犲皠鍩熷悕
-                    "target" : "http://localhost:24147", //娴嬭瘯鐜
+                    "target" : "http://124.70.216.149:8086", //娴嬭瘯鐜
                     "changeOrigin" : true, //鏄惁璺ㄥ煙
                     "secure" : true // 鏄惁鏀寔 https 鍗忚鐨勪唬鐞�
                 }
diff --git a/H5/pages.json b/H5/pages.json
index 71ab7c2..88c3f3f 100644
--- a/H5/pages.json
+++ b/H5/pages.json
@@ -1,14 +1,23 @@
 {
 	"pages": [ //pages鏁扮粍涓涓�椤硅〃绀哄簲鐢ㄥ惎鍔ㄩ〉锛屽弬鑰冿細https://uniapp.dcloud.io/collocation/pages
+		// {
+		// 	"path": "pages/index/index",
+		// 	"style": {
+		// 		"navigationStyle": "custom",
+		// 		"navigationBarTitleText": "棣栭〉",
+		// 		"navigationBarTextStyle": "black",
+		// 		"navigationBarBackgroundColor": "#ffffff"
+		// 	}
+		// }, {
+		// 	"path": "pages/transfer/index",
+		// 	"style": {
+		// 		"navigationStyle": "custom",
+		// 		"navigationBarTitleText": "鎺堟潈涓�",
+		// 		"navigationBarTextStyle": "black",
+		// 		"navigationBarBackgroundColor": "#ffffff"
+		// 	}
+		// }, 
 		{
-			"path": "pages/index/index",
-			"style": {
-				"navigationStyle": "custom",
-				"navigationBarTitleText": "棣栭〉",
-				"navigationBarTextStyle": "black",
-				"navigationBarBackgroundColor": "#ffffff"
-			}
-		}, {
 			"path": "pages/charthistory/index",
 			"style": {
 				"navigationStyle": "custom",
@@ -32,7 +41,7 @@
 				"navigationBarBackgroundColor": "#ffffff"
 			}
 		},
- {
+		{
 			"path": "pages/smstemplate/index",
 			"style": {
 				"navigationBarTitleText": "鏂囨搴�",
@@ -48,15 +57,7 @@
 				"navigationBarBackgroundColor": "#ffffff"
 			}
 		},
-		{
-			"path": "pages/transfer/index",
-			"style": {
-				"navigationStyle": "custom",
-				"navigationBarTitleText": "鎺堟潈涓�",
-				"navigationBarTextStyle": "black",
-				"navigationBarBackgroundColor": "#ffffff"
-			}
-		},
+
 		{
 			"path": "pages/emptypage/nopermissions",
 			"style": {
@@ -82,6 +83,14 @@
 			}
 		},
 		{
+			"path": "pages/ad_page/product_sc",
+			"style": {
+				"navigationBarTitleText": "鍟嗗搧绱犳潗",
+				"navigationBarTextStyle": "black",
+				"navigationBarBackgroundColor": "#ffffff"
+			}
+		},
+		{
 			"path": "pages/ad_page/trans",
 			"style": {
 				"navigationStyle": "custom",
diff --git a/H5/pages/ad_page/product_sc.vue b/H5/pages/ad_page/product_sc.vue
new file mode 100644
index 0000000..f51f385
--- /dev/null
+++ b/H5/pages/ad_page/product_sc.vue
@@ -0,0 +1,232 @@
+<template>
+	<view class="container" style="height: auto;">
+		<view style="margin: 0.5rem;">
+			<button class="mini-btn" style="background-color: cornflowerblue; margin-right: 10px;" type="primary"
+				size="mini">绱犳潗涓嬭浇</button>
+			<button @click="toTab(2)" class="mini-btn" type="default" size="mini">鐭俊瀹℃牳</button>
+			<button @click="toTab(3)" class="mini-btn" type="default" size="mini">寰俊鏈嬪弸鍦�</button>
+		</view>
+
+		<cc-pullScroolView class="pullScrollView" ref="pullScroll" :enablePullDown="false" :back-top="false">
+			<view>
+				<view v-if="productList.length>0" class="orders-list d-flex flex-column w-100"
+					style="padding: 20rpx; padding-bottom: 0;">
+					<view class="order-item" v-for="(item, index) in productList" :key="index"
+						style="margin-bottom: 30rpx;">
+						<list-cell :hover="false">
+							<image :src="item.img"></image>
+						</list-cell>
+						<list-cell :hover="false" last>
+							<view class="w-100 d-flex flex-column">
+								<view class="w-100  font-size-lg text-color-base">
+									{{ item.smscontent}}
+								</view>
+								<view class="w-100  font-size-lg text-color-base" style="margin-bottom: 20rpx;">
+									<view>
+										{{item.subject}}
+									</view>
+									<view style="color: #ef1913;">
+										楼{{item.min_price}}-{{item.max_price}}
+									</view>
+								</view>
+								<view class="d-flex justify-content-between align-items-center"
+									style="margin-bottom: 30rpx;">
+									<!-- <view class="font-size-sm text-color-assist">
+										{{item.wantsendtime}}
+									</view> -->
+									<view class="d-flex font-size-sm text-color-base align-items-center">
+										<view style="display: flex;">
+
+											<view style="display: flex;flex-wrap:wrap;" v-if="currentId==item.id">
+												<view style="margin: 0.3rem;" v-for="(linkitem, linkindex) in currentLink" :key="linkindex">
+													<button @click="download(linkitem)" type="primary">
+														涓嬭浇{{linkindex}}
+													</button>
+												</view>
+											</view>
+											<view v-else>
+												<button type="primary"
+													style="background-color: #ef1913; margin-right: 5rem;"
+													@click="getProductDetail(item.id)">鑾峰彇涓嬭浇閾炬帴</button>
+											</view>
+										</view>
+									</view>
+								</view>
+							</view>
+						</list-cell>
+					</view>
+				</view>
+
+			</view>
+		</cc-pullScroolView>
+	</view>
+</template>
+
+<script>
+	import comUtils from '@/utils/ComUtils.js'
+	export default {
+		data() {
+			return {
+				currentTab: 0,
+				productList: [],
+				curPageNum: 1,
+				pageCount: 10,
+				totalNum: 0,
+				currentLink: [],
+				currentId: ''
+			}
+		},
+		onLoad(option) {
+			//this.checkId();
+			this.getTemplateData();
+		},
+
+		// 涓婃媺鍔犺浇
+		onReachBottom() {
+			if (this.curPageNum * this.pageCount < this.totalNum) {
+				// 鏁版嵁涓哄姞杞藉畬
+				this.$refs.pullScroll.showUpLoading();
+				this.curPageNum++;
+				this.getTemplateData();
+			}
+		},
+		methods: {
+			toPyq() {
+				uni.navigateTo({
+					url: '/pages/ad_page/wx_pyqset'
+				})
+			},
+			//妫�鏌ョ櫧鍚嶅崟
+			checkId() {
+				var openId = uni.getStorageSync('smsopenid');
+				var whiteid = comUtils.getAllowdId(status);
+				if (openId == "" || whiteid.indexOf(openId) < 0) {
+					uni.reLaunch({
+						url: '/pages/emptypage/nopermissions'
+					})
+				} else {
+					this.getTemplateData();
+				}
+			},
+			getProductDetail(id) {
+				let param = {
+					ProductId: id
+				}
+				this.$http.post('/api/ProductInfo/GetDaiFaDetail', param).then(e => {
+					var prodetail = e.result;
+					var linkArr = prodetail.productImage.images;
+					linkArr.push(prodetail.mainVedio);
+					this.currentLink = prodetail.productImage.images;
+					this.currentId = id;
+				}).catch(function(err) {
+					console.log(err);
+				})
+			},
+			//涓嬭浇
+			download(link) {
+				uni.downloadFile({
+					url: link,
+					success: (res) => {
+						if (res.statusCode === 200) {
+							var oA = document.createElement("a");
+							oA.download = ''; // 璁剧疆涓嬭浇鐨勬枃浠跺悕锛岄粯璁ゆ槸'涓嬭浇'
+							oA.href = res.tempFilePath; //涓存椂璺緞鍐嶄繚瀛樺埌鏈湴
+							document.body.appendChild(oA);
+							oA.click();
+							oA.remove(); // 涓嬭浇涔嬪悗鎶婂垱寤虹殑鍏冪礌鍒犻櫎
+						}
+					},
+					fail: (res) => {}
+				});
+			},
+			toTab(tabtype) {
+				var url = '';
+				switch (tabtype) {
+					case 1:
+						url = '/pages/ad_page/product_sc';
+						break;
+					case 2:
+						url = '/pages/ad_page/sms_examine';
+						break;
+					case 3:
+						url = '/pages/ad_page/wx_pyqset';
+						break;
+				}
+				uni.navigateTo({
+					url: url
+				})
+			},
+			getTemplateData() {
+				let param = {
+					PageNo: this.curPageNum,
+					PageSize: this.pageCount
+				}
+				uni.showLoading({
+					title: '鍔犺浇涓�'
+				})
+				this.$http.post('/api/ProductInfo/GetDaiFaProductList', param).then(e => {
+					this.totalNum = e.result.totalCount;
+					this.productList = this.productList.concat(e.result.data);
+					if (this.curPageNum * this.pageCount >= this.totalNum) {
+						// 濡傛灉鏄渶鍚庝竴椤�
+						this.$refs.pullScroll.finish();
+					} else {
+						// 涓嶆槸鏈�鍚庝竴椤�
+						this.$refs.pullScroll.success();
+					}
+					uni.hideLoading()
+				}).catch(function(err) {
+					uni.hideLoading()
+					console.log(err);
+				})
+
+
+			}
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	page {
+
+		height: 100%;
+	}
+
+	.taskid-show {
+		text-overflow: ellipsis;
+		overflow: hidden;
+		white-space: nowrap;
+		width: 80%;
+	}
+
+	.container {
+		display: flex;
+		flex-direction: column;
+		padding: 0.4rem;
+	}
+
+	.uni-flex {
+		display: flex;
+	}
+
+	.uni-flex-row {
+		@extend .uni-flex;
+		flex-direction: row;
+		box-sizing: border-box;
+	}
+
+	/* 鍒楄〃footer */
+	.uni-footer {
+		@extend .uni-flex-row;
+		justify-content: right;
+		margin-top: $uni-spacing-col-lg;
+	}
+
+	.uni-footer-text {
+		font-size: 14px;
+		color: $uni-text-color-grey;
+		margin-left: 5px;
+		color: #FF928F;
+		font-weight: 700;
+	}
+</style>
\ No newline at end of file
diff --git a/H5/pages/ad_page/sms_examine.vue b/H5/pages/ad_page/sms_examine.vue
index 7ab7c8c..c59bf96 100644
--- a/H5/pages/ad_page/sms_examine.vue
+++ b/H5/pages/ad_page/sms_examine.vue
@@ -1,10 +1,13 @@
 <template>
 	<view class="container" style="height: auto;">
 		<view style="margin: 0.5rem;">
-			<button class="mini-btn" style="background-color: cornflowerblue; margin-right: 10px;" type="primary" size="mini">鐭俊瀹℃牳</button>
-			<button @click="toPyq()" class="mini-btn" type="default" size="mini">寰俊鏈嬪弸鍦�</button>
+			<button @click="toTab(1)" class="mini-btn" style="margin-right: 10px;" type="default"
+				size="mini">绱犳潗涓嬭浇</button>
+			<button class="mini-btn" style="background-color: cornflowerblue; margin-right: 10px;" type="primary"
+				size="mini">鐭俊瀹℃牳</button>
+			<button @click="toTab(3)" class="mini-btn" type="default" size="mini">寰俊鏈嬪弸鍦�</button>
 		</view>
-		
+
 		<v-tabs v-model="currentTab" :tabs="tabList" :pills="true" line-height="0" activeColor="#fff"
 			@change="changeTab" pillsColor="#FF928F" :fixed="true"></v-tabs>
 		<cc-pullScroolView class="pullScrollView" ref="pullScroll" :enablePullDown="false" :back-top="false">
@@ -119,16 +122,27 @@
 			}
 		},
 		methods: {
-			toPyq()
-			{
+			toTab(tabtype) {
+				var url = '';
+				switch (tabtype) {
+					case 1:
+						url = '/pages/ad_page/product_sc';
+						break;
+					case 2:
+						url = '/pages/ad_page/sms_examine';
+						break;
+					case 3:
+						url = '/pages/ad_page/wx_pyqset';
+						break;
+				}
 				uni.navigateTo({
-					url:'/pages/ad_page/wx_pyqset'
+					url: url
 				})
 			},
 			//妫�鏌ョ櫧鍚嶅崟
 			checkId() {
 				var openId = uni.getStorageSync('smsopenid');
-				 var whiteid=comUtils.getAllowdId(status);
+				var whiteid = comUtils.getAllowdId(status);
 				if (openId == "" || whiteid.indexOf(openId) < 0) {
 					uni.reLaunch({
 						url: '/pages/emptypage/nopermissions'
diff --git a/H5/pages/ad_page/trans.vue b/H5/pages/ad_page/trans.vue
index 8a15a23..8183a44 100644
--- a/H5/pages/ad_page/trans.vue
+++ b/H5/pages/ad_page/trans.vue
@@ -18,7 +18,7 @@
 				this.$http.post('/smsapi/WxBack/GetOpenId', data).then(e => {
 					uni.setStorageSync("smsopenid", e.result);
 					uni.navigateTo({
-						url: '/pages/ad_page/sms_examine'
+						url: '/pages/ad_page/product_sc'
 					})
 				}).catch(function(err) {
 					console.log(err);
diff --git a/H5/pages/ad_page/wx_pyqset.vue b/H5/pages/ad_page/wx_pyqset.vue
index 5c27897..21a63b0 100644
--- a/H5/pages/ad_page/wx_pyqset.vue
+++ b/H5/pages/ad_page/wx_pyqset.vue
@@ -1,13 +1,15 @@
 <template>
 	<view class="container" style="height: auto;">
 		<view style="margin: 0.5rem;">
-			<button @click="toDx()" class="mini-btn" style="margin-right: 10px;" type="default" size="mini">鐭俊瀹℃牳</button>
+			<button @click="toTab(1)" class="mini-btn" style="margin-right: 10px;" type="default" size="mini">绱犳潗涓嬭浇</button>
+			<button @click="toTab(2)" class="mini-btn" style="margin-right: 10px;" type="default" size="mini">鐭俊瀹℃牳</button>
 			<button class="mini-btn" style="background-color: cornflowerblue;" type="primary" size="mini">寰俊鏈嬪弸鍦�</button>
 		</view>
 		<view style="display: flex;justify-content: center; flex-direction: column; /">
 			<view>
-				<textarea maxlength="492" v-model="content" class="smstxt" placeholder="璇疯緭鍏ユ湅鍙嬪湀鏂囨"
-					placeholder-class="text-color-assist font-size-base"></textarea>
+			 <textarea maxlength="492" v-model="content" class="smstxt" placeholder="璇疯緭鍏ユ湅鍙嬪湀鏂囨"
+					placeholder-class="text-color-assist font-size-base"></textarea> 
+						
 			</view>
 			<view>
 				<textarea maxlength="492" v-model="commnet" class="smstxt" placeholder="璇疯緭鍏ヨ瘎璁�(闈炲繀濉�)"
@@ -62,8 +64,6 @@
 					uni.reLaunch({
 						url: '/pages/emptypage/nopermissions'
 					})
-				} else {
-					this.getTemplateData();
 				}
 			},
 			onSuccess(reslut) {
@@ -98,10 +98,21 @@
 					console.log(err);
 				})
 			},
-			toDx()
-			{
+			toTab(tabtype) {
+				var url = '';
+				switch (tabtype) {
+					case 1:
+						url = '/pages/ad_page/product_sc';
+						break;
+					case 2:
+						url = '/pages/ad_page/sms_examine';
+						break;
+					case 3:
+						url = '/pages/ad_page/wx_pyqset';
+						break;
+				}
 				uni.navigateTo({
-					url:'/pages/ad_page/sms_examine'
+					url: url
 				})
 			}
 		}
diff --git a/H5/unpackage/dist/build/h5/index.html b/H5/unpackage/dist/build/h5/index.html
index faef373..03e2d12 100644
--- a/H5/unpackage/dist/build/h5/index.html
+++ b/H5/unpackage/dist/build/h5/index.html
@@ -1,2 +1,2 @@
 <!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><title>鏆楀彿鎯呬功</title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
-            document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/static/index.97465e7b.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/static/js/chunk-vendors.ff914f25.js></script><script src=/static/js/index.36bac0ea.js></script></body></html>
\ No newline at end of file
+            document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/static/index.2da1efab.css></head><body><noscript><strong>Please enable JavaScript to continue.</strong></noscript><div id=app></div><script src=/static/js/chunk-vendors.f5d95020.js></script><script src=/static/js/index.bca0f14f.js></script></body></html>
\ No newline at end of file
diff --git a/api/.vs/FxProject/v16/.suo b/api/.vs/FxProject/v16/.suo
index cab742b..6da9e2c 100644
--- a/api/.vs/FxProject/v16/.suo
+++ b/api/.vs/FxProject/v16/.suo
Binary files differ

--
Gitblit v1.9.3