root 9 months ago
parent
commit
e01e3a1ba6
68 changed files with 302 additions and 144 deletions
  1. 16 0
      .hbuilderx/launch.json
  2. 46 1
      App.vue
  3. 3 4
      common/request.js
  4. 3 1
      examWidght/components/Li-ExamWidght/Li-ExamWidght.vue
  5. 17 17
      examWidght/examWidght/index.vue
  6. 1 1
      index.html
  7. 92 3
      newScale/Charm/paymentPage.vue
  8. 1 1
      newScale/Charm/testPage.vue
  9. 1 1
      newScale/Charm/testResult.vue
  10. 1 17
      newScale/EQtest/index.vue
  11. 1 1
      newScale/EQtest/paymentPage.vue
  12. 3 3
      newScale/EQtest/testPage.vue
  13. 1 1
      newScale/EQtest/testResult.vue
  14. 48 46
      pages.json
  15. 31 20
      pages/index/index.vue
  16. 16 13
      paymentPage/paymentPage/index.vue
  17. 8 4
      paymentPage/phoneSave/index.vue
  18. 10 7
      paymentPage/queryByPhone/index.vue
  19. BIN
      static/images/1.jpg
  20. BIN
      static/images/2.jpg
  21. BIN
      static/images/3.jpg
  22. BIN
      static/images/button1.png
  23. BIN
      static/images/bx.png
  24. BIN
      static/images/dui.png
  25. BIN
      static/images/favicon.ico
  26. BIN
      static/images/main-left.png
  27. BIN
      static/images/main-right.png
  28. BIN
      static/images/middle_1.jpg
  29. BIN
      static/images/middle_2.jpg
  30. BIN
      static/images/middle_left.png
  31. BIN
      static/images/middle_right.png
  32. BIN
      static/images/modal.png
  33. BIN
      static/images/order1.png
  34. BIN
      static/images/order2.png
  35. BIN
      static/images/order_no.png
  36. BIN
      static/images/phone-class.png
  37. BIN
      static/images/phone1.png
  38. BIN
      static/images/phone2.png
  39. BIN
      static/images/question_main.png
  40. BIN
      static/images/question_main1.png
  41. BIN
      static/images/sj1.png
  42. BIN
      static/images/success_icon.png
  43. BIN
      static/images/top-bg.png
  44. BIN
      static/images/top-bg1.png
  45. BIN
      static/images/topImg.png
  46. BIN
      static/images/topImg1.png
  47. BIN
      static/images/topImg3.png
  48. BIN
      static/images/top_1.png
  49. BIN
      static/images/top_12.png
  50. BIN
      static/images/top_2.png
  51. BIN
      static/images/ty.png
  52. BIN
      static/images/wx.png
  53. BIN
      static/images/xing_left1.png
  54. BIN
      static/images/xing_left2.png
  55. BIN
      static/images/xing_left3.png
  56. BIN
      static/images/xing_left4.png
  57. BIN
      static/images/xing_right1.png
  58. BIN
      static/images/xing_right2.png
  59. BIN
      static/images/xing_right3.png
  60. BIN
      static/images/xing_right4.png
  61. BIN
      static/images/zfb.png
  62. BIN
      static/scaleImages/20221031110051-46-A-1.png
  63. BIN
      static/scaleImages/20221031110051-46-B-1.png
  64. BIN
      static/scaleImages/20221031110051-47-A-1.png
  65. BIN
      static/scaleImages/20221031110051-47-B-1.png
  66. BIN
      static/scaleImages/20221031110051-48-A-1.png
  67. BIN
      static/scaleImages/20221031110051-48-B-1.png
  68. 3 3
      utils/index.html

+ 16 - 0
.hbuilderx/launch.json

@@ -0,0 +1,16 @@
+{ // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
+  // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
+    "version": "0.0",
+    "configurations": [{
+     	"default" : 
+     	{
+     		"launchtype" : "local"
+     	},
+     	"mp-toutiao" : 
+     	{
+     		"launchtype" : "local"
+     	},
+     	"type" : "uniCloud"
+     }
+    ]
+}

+ 46 - 1
App.vue

@@ -1,11 +1,56 @@
 <script>
 	export default {
-		onLaunch: function() {},
+		onLaunch: function() {
+			this.createUser();
+		},
 		onShow: function() {
 			console.log('App Show')
 		},
 		onHide: function() {
 			console.log('App Hide')
+		},
+		methods: {
+			//查询用户信息
+			createUser() {
+				let _this = this;
+				// #ifdef H5
+				this.$request
+					.get({
+						url: 'system/temporaryUser',
+						loadingTip: "加载中..."
+					})
+					.then((res) => {
+						uni.setStorageSync("user", res.data.user);
+						uni.setStorageSync("token", res.data.token);
+					});
+				// #endif
+
+				// #ifdef MP-TOUTIAO
+				tt.login({
+					success(res) {
+						let para = {
+							code: code,
+							petName: '',
+							modelPhone: '',
+						};
+						_this.$request
+							.post({
+								url: 'api/douyin/code2Session',
+								data: para
+							})
+							.then(
+								(res) => {
+									uni.setStorageSync("user", res.data.user);
+									uni.setStorageSync("token", res.data.token);
+								},
+								(err) => {
+									console.log("登录失败", err);
+								}
+							);
+					},
+				})
+				// #endif
+			}
 		}
 	}
 </script>

+ 3 - 4
common/request.js

@@ -71,7 +71,6 @@ class Request {
 		_options.url = Request.getUrl(_options)
 		if (!_options.header['Content-Type']) {
 			_options.header['Content-Type'] = Request.getContentType(_options)
-			
 			_options.header["Authorization"] = `Bearer ${uni.getStorageSync("token")}`
 		}
 		let _config = _options
@@ -103,8 +102,8 @@ class Request {
 					})
 				}
 			} else {
-                console.log(_config)
-			
+				console.log(_config)
+
 				task = uni.request({
 					..._config,
 					success: res => {
@@ -125,7 +124,7 @@ class Request {
 		}
 		return promise;
 	}
-	aa(){
+	aa() {
 		console.log('掉到了')
 	}
 	get(options = {}) {

+ 3 - 1
examWidght/components/Li-ExamWidght/Li-ExamWidght.vue

@@ -151,7 +151,9 @@
 				param = JSON.parse(param);
 				let imgArr = [];
 				param.forEach(item => {
-					imgArr.push(`/static/scaleImages/${item.imgUrl}`)
+					imgArr.push(
+						`https://test.jue-ming.com:8849/api/show?filePath=./webo/scaleImages/${item.imgUrl}`
+					)
 				})
 				return imgArr;
 			},

+ 17 - 17
examWidght/examWidght/index.vue

@@ -83,7 +83,7 @@
 			if (options.flag) {
 				_this.flag = options.flag;
 
-				_this.selectUser();
+				// _this.selectUser();
 				//根据flag查询出量表全部题目
 				_this.getScaleInfoAnswerList(options.flag);
 			}
@@ -110,18 +110,18 @@
 			// 	})
 			// },
 			//查询用户信息
-			selectUser() {
-				this.$request
-					.get({
-						url: 'system/temporaryUser',
-						loadingTip: "加载中..."
-					})
-					.then((res) => {
-						this.userInfo = res.data.user;
-						sessionStorage.setItem("user", JSON.stringify(res.data.user));
-						sessionStorage.setItem("token", res.data.token);
-					});
-			},
+			// selectUser() {
+			// 	this.$request
+			// 		.get({
+			// 			url: 'system/temporaryUser',
+			// 			loadingTip: "加载中..."
+			// 		})
+			// 		.then((res) => {
+			// 			this.userInfo = res.data.user;
+			// 			sessionStorage.setItem("user", JSON.stringify(res.data.user));
+			// 			sessionStorage.setItem("token", res.data.token);
+			// 		});
+			// },
 			//上一题
 			goPrevAnswer() {
 				if (_this.currentIndex < 1) {
@@ -287,7 +287,7 @@
 				let params = {
 					testPlanId: "",
 					scale_result: subMitListData,
-					userId: JSON.parse(sessionStorage.getItem("user")).id,
+					userId: uni.getStorageSync("user").id
 				};
 				console.log("提交的参数", params);
 
@@ -354,7 +354,7 @@
 								sceneType: uni.getSystemInfoSync().platform == "android" ?
 									"Android" : "iOS",
 							};
-							sessionStorage.setItem('orderInfo', JSON.stringify(params))
+							uni.setStorageSync("orderInfo", params);
 							uni.navigateTo({
 								url: "/paymentPage/paymentPage/index",
 							});
@@ -382,7 +382,7 @@
 		padding-right: 10px;
 		padding-top: 20px;
 		/* background: url('/static/images/question_main.png') no-repeat 100% 100%; */
-		background-image: url("/static/images/question_main.png");
+		background-image: url("https://test.jue-ming.com:8849/api/show?filePath=./webo/question_main.png");
 		/* background-size:contain; */
 		background-size: 100% 100px;
 		background-repeat: no-repeat;
@@ -390,7 +390,7 @@
 	}
 
 	.pro-bg {
-		background-image: url("/static/images/question_main1.png");
+		background-image: url("https://test.jue-ming.com:8849/api/show?filePath=./webo/question_main1.png");
 		/* background-size: contain; */
 		background-size: 100% 100%;
 		background-position: top;

+ 1 - 1
index.html

@@ -10,7 +10,7 @@
 				(coverSupport ? ', viewport-fit=cover' : '') + '" />')
 		</script>
 		<title>丁香解忧</title>
-		<link rel="icon" href="/static/images/favicon.ico">
+		<link rel="icon" href="https://test.jue-ming.com:8849/api/show?filePath=./webo/favicon.ico">
 		<script src="https://cdn.jsdelivr.net/npm/echarts@5.3.0/dist/echarts.min.js"></script>
 		<!--preload-links-->
 		<!--app-context-->

+ 92 - 3
newScale/Charm/paymentPage.vue

@@ -3,13 +3,13 @@
 		<view class="payment_info">
 			<view class="people_num"><text>{{peopleNum}}人已测</text></view>
 			<view class="price_num"><text>¥{{orderInfo.total}}</text></view>
-			<view class="pay_btn_sm" @click="getH5Pay()">{{orderInfo.total}}元解锁专属测试报告</view>
+			<view class="pay_btn_sm" @click="payHandle">{{orderInfo.total}}元解锁专属测试报告</view>
 		</view>
 		<view class="payment_desc">
 			<image src="https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/paymentPage/pay_scale_desc.png"
 				mode="widthFix"></image>
 		</view>
-		<view class="pay_btn_lg" @click="getH5Pay()">
+		<view class="pay_btn_lg" @click="payHandle">
 			{{orderInfo.total}}元解锁专属测试报告
 		</view>
 		<uni-popup ref="popup" type="center">
@@ -43,10 +43,18 @@
 					this.payEnsure();
 				}, 200)
 			}
-			this.orderInfo = JSON.parse(sessionStorage.getItem('orderInfo'));
+			this.orderInfo = uni.getStorageSync('orderInfo');
 			this.getPeople();
 		},
 		methods: {
+			payHandle() {
+				// #ifdef H5
+				this.getH5Pay();
+				// #endif
+				// #ifdef MP-TOUTIAO
+				this.createOrder();
+				// #endif
+			},
 			// 检查订单支付状态
 			checkOrder() {
 				let _this = this;
@@ -100,6 +108,87 @@
 						}
 					});
 			},
+			createOrder() {
+				let _this = this;
+				let params = {
+					resultId: _this.orderInfo.resultId,
+					subject: _this.orderInfo.description,
+					body: _this.orderInfo.description,
+					total_amount: _this.orderInfo.total * 100,
+					msgPage: "",
+				}
+				_this.$request
+					.post({
+						url: "api/douyin/createOrder",
+						loadingTip: "加载中...",
+						data: params
+					})
+					.then((res) => {
+						_this.orderNo = res.data.orderNo;
+						let imageUrl = 'https://test.jue-ming.com:8849/api/show?filePath=./webo/EQtest/banner1.png';
+						_this.payToutiao(
+							res.data.orderId,
+							res.data.orderToken,
+							res.data.orderNo
+						);
+					});
+			},
+			payToutiao(orderId, orderToken, orderNo) {
+				let _this = this;
+				tt.pay({
+					orderInfo: {
+						order_id: orderId,
+						order_token: orderToken,
+					},
+					service: 5,
+					success: (response) => {
+						_this.timer = setInterval(() => {
+							_this.getQueryOrder(orderNo);
+						}, 1000);
+					},
+					fail: (err) => {
+						uni.showToast({
+							icon: "none",
+							name: "支付失败",
+						});
+					},
+				});
+			},
+			// 订单状态
+			getQueryOrder(orderNo) {
+				let _this = this;
+				_this.$request
+					.get({
+						url: `api/douyin/queryOrder/${orderNo}`,
+						loadingTip: "加载中...",
+						data: {},
+					})
+					.then((res) => {
+						if (res.code == "200") {
+							if (res.data.statusCode == "SUCCESS") {
+								let imageUrl =
+									'https://test.jue-ming.com:8849/api/show?filePath=./webo/EQtest/banner1.png';
+								uni.navigateTo({
+									url: `/newScale/Charm/testResult?resultId=${_this.orderInfo.resultId}&messageShare=1`
+								});
+
+								clearInterval(_this.timer);
+								uni.showToast({
+									title: "支付成功",
+								});
+							} else if (res.data.statusCode == "CLOSED") {
+								// console.log("订单支付回调成功===========CLOSED》", _this.trade_state_closed );
+							} else {
+								clearInterval(_this.timer);
+								// console.log("订单支付回调成功CLOSED===========》", _this.trade_state_closed);
+							}
+						} else {
+							uni.showToast({
+								title: "支付失败",
+							});
+						}
+					});
+			},
 			// 查询测试人数
 			getPeople() {
 				let _this = this;

+ 1 - 1
newScale/Charm/testPage.vue

@@ -230,7 +230,7 @@
 								sceneType: uni.getSystemInfoSync().platform == "android" ?
 									"Android" : "iOS",
 							};
-							sessionStorage.setItem('orderInfo', JSON.stringify(params))
+							uni.setStorageSync('orderInfo', params);
 							uni.navigateTo({
 								url: "/newScale/Charm/paymentPage",
 							});

+ 1 - 1
newScale/Charm/testResult.vue

@@ -190,7 +190,7 @@
 	.bg {
 		width: 100%;
 		min-height: 1900rpx;
-		background: url(../../static/images/Charm/test_result_bg.png) no-repeat top;
+		background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/Charm/test_result_bg.png) no-repeat top;
 		background-size: 100% auto;
 		overflow: hidden;
 	}

+ 1 - 17
newScale/EQtest/index.vue

@@ -346,24 +346,8 @@
 				isShake: false
 			}
 		},
-		onLoad() {
-			this.createUser();
-		},
-
+		onLoad() {},
 		methods: {
-			//查询用户信息
-			createUser() {
-				this.$request
-					.get({
-						url: 'system/temporaryUser',
-						loadingTip: "加载中..."
-					})
-					.then((res) => {
-						sessionStorage.setItem("user", JSON.stringify(res.data.user));
-						sessionStorage.setItem("token", res.data.token);
-					});
-			},
-
 			checkboxChange(e) {
 				this.isChecked = !this.isChecked;
 			},

+ 1 - 1
newScale/EQtest/paymentPage.vue

@@ -43,7 +43,7 @@
 					this.payEnsure();
 				}, 200)
 			}
-			this.orderInfo = JSON.parse(sessionStorage.getItem('orderInfo'));
+			this.orderInfo = uni.getStorageSync('orderInfo');
 			this.getPeople();
 		},
 		methods: {

+ 3 - 3
newScale/EQtest/testPage.vue

@@ -63,7 +63,7 @@
 		},
 		created() {
 			this.loadData();
-			this.userInfo = JSON.parse(sessionStorage.getItem("user"));
+			this.userInfo = uni.getStorageSync('user');
 		},
 		methods: {
 			loadData() {
@@ -117,7 +117,7 @@
 				let params = {
 					testPlanId: "",
 					scale_result: _this.userAnswerList,
-					userId: JSON.parse(sessionStorage.getItem("user")).id,
+					userId: uni.getStorageSync('user').id
 				};
 
 				uni.showLoading({
@@ -184,7 +184,7 @@
 								sceneType: uni.getSystemInfoSync().platform == "android" ?
 									"Android" : "iOS",
 							};
-							sessionStorage.setItem('orderInfo', JSON.stringify(params))
+							uni.setStorageSync('orderInfo', params);
 							uni.navigateTo({
 								url: "/newScale/EQtest/paymentPage",
 							});

+ 1 - 1
newScale/EQtest/testResult.vue

@@ -194,7 +194,7 @@
 	.bg {
 		width: 100%;
 		min-height: 1900rpx;
-		background: url(../../static/images/EQtest/test_result_bg.png) no-repeat center;
+		background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/EQtest/test_result_bg.png) no-repeat center;
 		background-size: 100% auto;
 	}
 

+ 48 - 46
pages.json

@@ -13,46 +13,6 @@
 				// "navigationBarTitleText": "uni-app"
 				"navigationStyle": "custom"
 			}
-		},
-		{
-			"path": "newScale/EQtest/index",
-			"style": {
-				"navigationStyle": "custom",
-				"navigationBarTitleText": "",
-				"enablePullDownRefresh": false
-			}
-		},
-		{
-			"path": "newScale/EQtest/testPage",
-			"style": {
-				"navigationStyle": "custom",
-				"navigationBarTitleText": "",
-				"enablePullDownRefresh": false
-			}
-		},
-		{
-			"path": "newScale/EQtest/testResult",
-			"style": {
-				"navigationStyle": "custom",
-				"navigationBarTitleText": "",
-				"enablePullDownRefresh": false
-			}
-		},
-		{
-			"path": "newScale/EQtest/paymentPage",
-			"style": {
-				"navigationStyle": "custom",
-				"navigationBarTitleText": "",
-				"enablePullDownRefresh": false
-			}
-		},
-		{
-			"path": "newScale/EQtest/paySuccess",
-			"style": {
-				"navigationStyle": "custom",
-				"navigationBarTitleText": "",
-				"enablePullDownRefresh": false
-			}
 		}
 	],
 	"subPackages": [{
@@ -102,9 +62,51 @@
 			}]
 		},
 		{
-			"root": "newScale",
+			"root": "newScale/Charm",
+			"pages": [{
+					"path": "index",
+					"style": {
+						"navigationStyle": "custom",
+						"navigationBarTitleText": "",
+						"enablePullDownRefresh": false
+					}
+				},
+				{
+					"path": "testPage",
+					"style": {
+						"navigationStyle": "custom",
+						"navigationBarTitleText": "",
+						"enablePullDownRefresh": false
+					}
+				}, {
+					"path": "paymentPage",
+					"style": {
+						"navigationStyle": "custom",
+						"navigationBarTitleText": "",
+						"enablePullDownRefresh": false
+					}
+				}, {
+					"path": "paySuccess",
+					"style": {
+						"navigationStyle": "custom",
+						"navigationBarTitleText": "",
+						"enablePullDownRefresh": false
+					}
+				},
+				{
+					"path": "testResult",
+					"style": {
+						"navigationStyle": "custom",
+						"navigationBarTitleText": "",
+						"enablePullDownRefresh": false
+					}
+				}
+			]
+		},
+		{
+			"root": "newScale/EQtest",
 			"pages": [{
-					"path": "Charm/index",
+					"path": "index",
 					"style": {
 						"navigationStyle": "custom",
 						"navigationBarTitleText": "",
@@ -112,21 +114,21 @@
 					}
 				},
 				{
-					"path": "Charm/testPage",
+					"path": "testPage",
 					"style": {
 						"navigationStyle": "custom",
 						"navigationBarTitleText": "",
 						"enablePullDownRefresh": false
 					}
 				}, {
-					"path": "Charm/paymentPage",
+					"path": "paymentPage",
 					"style": {
 						"navigationStyle": "custom",
 						"navigationBarTitleText": "",
 						"enablePullDownRefresh": false
 					}
 				}, {
-					"path": "Charm/paySuccess",
+					"path": "paySuccess",
 					"style": {
 						"navigationStyle": "custom",
 						"navigationBarTitleText": "",
@@ -134,7 +136,7 @@
 					}
 				},
 				{
-					"path": "Charm/testResult",
+					"path": "testResult",
 					"style": {
 						"navigationStyle": "custom",
 						"navigationBarTitleText": "",

+ 31 - 20
pages/index/index.vue

@@ -6,12 +6,13 @@
 		</view>
 		<view class='main_scale_out'>
 			<a href="/webo/?flag=20210617000853&uid=b1778397670a11eea1c3525400e76da4&source=0">
-				<image class='main_scale_top_img' src="../../static/images/topImg.png" mode="widthFix"></image>
+				<image class='main_scale_top_img'
+					src="https://test.jue-ming.com:8849/api/show?filePath=./webo/topImg.png" mode="widthFix"></image>
 			</a>
 			<view class='main_scale_name'>
-				<!-- <img style='width:50px;height:30px' src='/static/images/main-left.png' /> -->
+				<!-- <img style='width:50px;height:30px' src='https://test.jue-ming.com:8849/api/show?filePath=./webo/main-left.png' /> -->
 				<view class='main_top_name'>{{scaleInfoNew.scaleName}}</view>
-				<!-- <img style='width:50px;height:28px' src='/static/images/main-right.png' /> -->
+				<!-- <img style='width:50px;height:28px' src='https://test.jue-ming.com:8849/api/show?filePath=./webo/main-right.png' /> -->
 			</view>
 
 			<!-- <view class='main_scale_des'>{{scaleDes}}</view> -->
@@ -19,9 +20,11 @@
 		</view>
 		<view class='main_scale_cpll_out'>
 			<view class="scale_introduce_title">
-				<img class='main_xing_left' src="/static/images/xing_left2.png" />
+				<img class='main_xing_left'
+					src="https://test.jue-ming.com:8849/api/show?filePath=./webo/xing_left2.png" />
 				<view class='main_scale_font'>测评介绍</view>
-				<img class='main_xing_right' src="/static/images/xing_right2.png" />
+				<img class='main_xing_right'
+					src="https://test.jue-ming.com:8849/api/show?filePath=./webo/xing_right2.png" />
 			</view>
 			<view style='display: flex;justify-content: center;align-items: center;margin:10px 0;'>
 				<view style='height:1px;background-color:#03A2AD;height:5px;width:5px;border-radius:50%;'></view>
@@ -48,9 +51,11 @@
 		</view>
 		<view class='main_scale_cpll_out'>
 			<view class="scale_introduce_title">
-				<img class='main_xing_left' src="/static/images/xing_left2.png" />
+				<img class='main_xing_left'
+					src="https://test.jue-ming.com:8849/api/show?filePath=./webo/xing_left2.png" />
 				<view class='main_scale_font'>测评理论</view>
-				<img class='main_xing_right' src="/static/images/xing_right2.png" />
+				<img class='main_xing_right'
+					src="https://test.jue-ming.com:8849/api/show?filePath=./webo/xing_right2.png" />
 			</view>
 			<view style='display: flex;justify-content: center;align-items: center;margin:10px 0;'>
 				<view style='height:1px;background-color:#03A2AD;height:5px;width:5px;border-radius:50%;'></view>
@@ -68,9 +73,11 @@
 		</view>
 		<view class='main_scale_cpll_out'>
 			<view class="scale_introduce_title">
-				<img class='main_xing_left' src="/static/images/xing_left2.png" />
+				<img class='main_xing_left'
+					src="https://test.jue-ming.com:8849/api/show?filePath=./webo/xing_left2.png" />
 				<view class='main_scale_font'>你将获得</view>
-				<img class='main_xing_right' src="/static/images/xing_right2.png" />
+				<img class='main_xing_right'
+					src="https://test.jue-ming.com:8849/api/show?filePath=./webo/xing_right2.png" />
 			</view>
 			<view style='display: flex;justify-content: center;align-items: center;margin:10px 0;'>
 				<view style='height:1px;background-color:#03A2AD;height:5px;width:5px;border-radius:50%;'></view>
@@ -91,9 +98,11 @@
 
 		<view class='main_scale_cpll_out'>
 			<view class="scale_introduce_title">
-				<img class='main_xing_left' src="/static/images/xing_left2.png" />
+				<img class='main_xing_left'
+					src="https://test.jue-ming.com:8849/api/show?filePath=./webo/xing_left2.png" />
 				<view class='main_scale_font'>适合谁测</view>
-				<img class='main_xing_right' src="/static/images/xing_right2.png" />
+				<img class='main_xing_right'
+					src="https://test.jue-ming.com:8849/api/show?filePath=./webo/xing_right2.png" />
 			</view>
 			<view style='display: flex;justify-content: center;align-items: center;margin:10px 0;'>
 				<view style='height:1px;background-color:#03A2AD;height:5px;width:5px;border-radius:50%;'></view>
@@ -103,7 +112,7 @@
 			<view style="margin-top: 40rpx;overflow: hidden;">
 				<view class='shsc_dui' v-for="item in formatArr(scaleInfoNew.suitCrowd)">
 					<view class='dui_out'>
-						<img class='dui_self' src='/static/images/dui.png' />
+						<img class='dui_self' src='https://test.jue-ming.com:8849/api/show?filePath=./webo/dui.png' />
 					</view>
 					<view class='dui_text'>
 						<view class='dui_text_self'>{{item}}</view>
@@ -114,9 +123,11 @@
 
 		<view class='main_scale_cpll_out'>
 			<view class="scale_introduce_title">
-				<img class='main_xing_left' src="/static/images/xing_left2.png" />
+				<img class='main_xing_left'
+					src="https://test.jue-ming.com:8849/api/show?filePath=./webo/xing_left2.png" />
 				<view class='main_scale_font'>测评报告内容</view>
-				<img class='main_xing_right' src="/static/images/xing_right2.png" />
+				<img class='main_xing_right'
+					src="https://test.jue-ming.com:8849/api/show?filePath=./webo/xing_right2.png" />
 			</view>
 			<view style='display: flex;justify-content: center;align-items: center;margin:10px 0;'>
 				<view style='height:1px;background-color:#03A2AD;height:5px;width:5px;border-radius:50%;'></view>
@@ -550,13 +561,13 @@
 				},
 				isCheck: false,
 				type: null,
-				topimg: '../../static/images/topImg.png',
+				topimg: 'https://test.jue-ming.com:8849/api/show?filePath=./webo/topImg.png',
 				// scalName: '抑郁测试「简单评估版」',
 				scaleDes: '测一测?',
 				scaleNumber: '43.8W人测试过',
-				scaleimg1: '../../static/images/1.jpg',
-				scaleimg2: '../../static/images/2.jpg',
-				scaleimg3: '../../static/images/3.jpg',
+				scaleimg1: 'https://test.jue-ming.com:8849/api/show?filePath=./webo/1.jpg',
+				scaleimg2: 'https://test.jue-ming.com:8849/api/show?filePath=./webo/2.jpg',
+				scaleimg3: 'https://test.jue-ming.com:8849/api/show?filePath=./webo/3.jpg',
 				//量表
 				flag: '',
 				//分享人的id
@@ -1123,7 +1134,7 @@
 		width: 302px;
 		height: 293px;
 		opacity: 1;
-		background-image: url('/static/images/modal.png');
+		background-image: url('https://test.jue-ming.com:8849/api/show?filePath=./webo/modal.png');
 		background-size: contain;
 		background-repeat: no-repeat;
 		display: flex;
@@ -1249,7 +1260,7 @@
 
 	.bx_right {
 		line-height: 56rpx;
-		background: url(../../static/images/bx.png) no-repeat center;
+		background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/bx.png) no-repeat center;
 		background-size: 100% 100%;
 		font-size: 28rpx;
 		font-family: Source Han Sans-Regular, Source Han Sans;

+ 16 - 13
paymentPage/paymentPage/index.vue

@@ -4,11 +4,12 @@
 			<view class="top_page">
 				<view>
 					<view class="pay_title">已为您生成深度分析报告</view>
-					<!-- <img class='top_page_img' src='/static/images/top_1.png' /> -->
+					<!-- <img class='top_page_img' src='https://test.jue-ming.com:8849/api/show?filePath=./webo/top_1.png' /> -->
 					<view class="top_page_tab">
 						<view class="top_page_m">
 							<view style="margin-left: 23px">
-								<img style="width: 80px; height: 80px" src="/static/images/top_2.png" />
+								<img style="width: 80px; height: 80px"
+									src="https://test.jue-ming.com:8849/api/show?filePath=./webo/top_2.png" />
 							</view>
 							<view class="top_page_tab_right">
 								<view class="top_page_scale_title">{{orderInfo.description}}</view>
@@ -27,21 +28,21 @@
 				</view>
 				<!-- <view style="margin-top: 40px">
 					<view class="main_scale_gmcp">
-						<img class="main_xing_left" src="/static/images/xing_left3.png" />
+						<img class="main_xing_left" src="https://test.jue-ming.com:8849/api/show?filePath=./webo/xing_left3.png" />
 						<view class="main_scale_font_gmcp">购买测评的这样说</view>
-						<img class="main_xing_right" src="/static/images/xing_right3.png" />
+						<img class="main_xing_right" src="https://test.jue-ming.com:8849/api/show?filePath=./webo/xing_right3.png" />
 					</view>
 				</view>
 				<view class="scale_gmcp_connent">
 					<view style="display: flex; margin-bottom: 20px">
-						<img style="width: 43px; height: 43px; border-radius: 50%" src="/static/images/topImg1.png" />
+						<img style="width: 43px; height: 43px; border-radius: 50%" src="https://test.jue-ming.com:8849/api/show?filePath=./webo/topImg1.png" />
 						<view style="margin-left: 20px">
 							<view class="pub_time">发布时间:2023-01-01 12:00</view>
 							<view class="pub_connnet">测得很准</view>
 						</view>
 					</view>
 					<view style="display: flex">
-						<img style="width: 43px; height: 43px; border-radius: 50%" src="/static/images/phone2.png" />
+						<img style="width: 43px; height: 43px; border-radius: 50%" src="https://test.jue-ming.com:8849/api/show?filePath=./webo/phone2.png" />
 						<view style="margin-left: 20px">
 							<view class="pub_time">发布时间:2023-05-01 12:00</view>
 							<view class="pub_connnet">确实不错</view>
@@ -98,13 +99,15 @@
 				payList: [{
 						index: 1,
 						value: "微信支付",
-						url: new URL(`/static/images/wx.png`, import.meta.url).href,
+						url: new URL(`https://test.jue-ming.com:8849/api/show?filePath=./webo/wx.png`, import.meta.url)
+							.href,
 						checked: true,
 					},
 					{
 						index: 1,
 						value: "支付宝支付",
-						url: new URL(`/static/images/zfb.png`, import.meta.url).href,
+						url: new URL(`https://test.jue-ming.com:8849/api/show?filePath=./webo/zfb.png`, import.meta
+							.url).href,
 						checked: false,
 					},
 				],
@@ -132,7 +135,7 @@
 				this.orderNo = options.orderNo;
 				this.payEnsure();
 			}
-			this.orderInfo = JSON.parse(sessionStorage.getItem('orderInfo'));
+			this.orderInfo = uni.getStorageSync('orderInfo');
 			this.queryPromotion();
 		},
 		methods: {
@@ -269,7 +272,7 @@
 	.top_page_out {
 		width: 100%;
 		height: 100vh;
-		background: url(/static/images/top-bg.png) no-repeat center;
+		background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/top-bg.png) no-repeat center;
 		background-size: cover;
 	}
 
@@ -370,7 +373,7 @@
 	.top_page1 {
 		width: 90%;
 		/* height: 400px; */
-		/* background-image: url(/static/images/top-bg.png); */
+		/* background-image: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/top-bg.png); */
 		padding-left: 5%;
 		padding-right: 5%;
 	}
@@ -384,7 +387,7 @@
 	}
 
 	.middle_get::before {
-		background: url("/static/images/middle_left.png");
+		background: url("https://test.jue-ming.com:8849/api/show?filePath=./webo/middle_left.png");
 		background-size: 100% 100%;
 		content: "";
 		display: inline-flex;
@@ -393,7 +396,7 @@
 	}
 
 	.middle_get::after {
-		background: url("/static/images/middle_right.png");
+		background: url("https://test.jue-ming.com:8849/api/show?filePath=./webo/middle_right.png");
 		background-size: 100% 100%;
 		content: "";
 		display: inline-flex;

+ 8 - 4
paymentPage/phoneSave/index.vue

@@ -2,12 +2,16 @@
 	<div>
 		<div class='top-page'>
 			<view style='text-align: center;padding-top:15px'>
-				<image style='width:146rpx' src='/static/images/success_icon.png' mode="widthFix"></image>
+				<image style='width:146rpx'
+					src='https://test.jue-ming.com:8849/api/show?filePath=./webo/success_icon.png' mode="widthFix">
+				</image>
 			</view>
 			<view class='main_scale_njhd'>
-				<img class='main_xing_left' src="/static/images/xing_left2.png" />
+				<img class='main_xing_left'
+					src="https://test.jue-ming.com:8849/api/show?filePath=./webo/xing_left2.png" />
 				<view class='main_scale_font_njhd'>支付成功</view>
-				<img class='main_xing_right' src="/static/images/xing_right2.png" />
+				<img class='main_xing_right'
+					src="https://test.jue-ming.com:8849/api/show?filePath=./webo/xing_right2.png" />
 			</view>
 			<!-- <div class="saveP">
 				保存您的付费报告到手机
@@ -150,7 +154,7 @@
 	.top-page {
 		width: 90%;
 		height: 100vh;
-		/* background-image: url(/static/images/top-bg.png); */
+		/* background-image: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/top-bg.png); */
 		background: linear-gradient(180deg, #D8FFF2 0%, #46E2ED 42%, #BEFFE8 98%);
 		padding-left: 5%;
 		padding-right: 5%;

+ 10 - 7
paymentPage/queryByPhone/index.vue

@@ -50,9 +50,11 @@
 		</div>
 		<div class="history-all">
 			<view class='main_scale_njhd'>
-				<img class='main_xing_left' src="/static/images/xing_left2.png" />
+				<img class='main_xing_left'
+					src="https://test.jue-ming.com:8849/api/show?filePath=./webo/xing_left2.png" />
 				<view class='main_scale_font_njhd'>历史订单</view>
-				<img class='main_xing_right' src="/static/images/xing_right2.png" />
+				<img class='main_xing_right'
+					src="https://test.jue-ming.com:8849/api/show?filePath=./webo/xing_right2.png" />
 			</view>
 
 			<div v-for="(item ,index) in historyList " :key="index" class='history-tab'>
@@ -75,7 +77,8 @@
 		<!-- 提示窗示例 -->
 		<uni-popup ref="alertDialog" type="dialog">
 			<uni-popup-dialog :type="msgType" confirmText="确定" title="提示" @confirm="dialogConfirm" @close="dialogClose">
-				<image src="../../static/images/order_no.png" mode="widthFix" style="width: 600rpx;"></image>
+				<image src="../..https://test.jue-ming.com:8849/api/show?filePath=./webo/order_no.png" mode="widthFix"
+					style="width: 600rpx;"></image>
 			</uni-popup-dialog>
 		</uni-popup>
 	</div>
@@ -292,7 +295,7 @@
 		position: absolute;
 		width: 3.5rem;
 		height: 1.2rem;
-		background: url(../../static/images/phone1.png) no-repeat 50%;
+		background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/phone1.png) no-repeat 50%;
 		background-size: 100% 100%;
 		left: 0;
 	}
@@ -302,7 +305,7 @@
 		width: 3.5rem;
 		height: 1.1rem;
 		z-index: -1;
-		background: url(../../static/images/phone2.png) no-repeat 50%;
+		background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/phone2.png) no-repeat 50%;
 		background-size: 100% 100%;
 		left: 0;
 		top: 0.1rem;
@@ -312,7 +315,7 @@
 		position: absolute;
 		width: 3.5rem;
 		height: 1.2rem;
-		background: url(../../static/images/order1.png) no-repeat 50%;
+		background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/order1.png) no-repeat 50%;
 		background-size: 100% 100%;
 		right: 0;
 	}
@@ -321,7 +324,7 @@
 		position: absolute;
 		width: 3.5rem;
 		height: 1.1rem;
-		background: url(../../static/images/order2.png) no-repeat 50%;
+		background: url(https://test.jue-ming.com:8849/api/show?filePath=./webo/order2.png) no-repeat 50%;
 		background-size: 100% 100%;
 		z-index: -1;
 		top: 0.1rem;

BIN
static/images/1.jpg


BIN
static/images/2.jpg


BIN
static/images/3.jpg


BIN
static/images/button1.png


BIN
static/images/bx.png


BIN
static/images/dui.png


BIN
static/images/favicon.ico


BIN
static/images/main-left.png


BIN
static/images/main-right.png


BIN
static/images/middle_1.jpg


BIN
static/images/middle_2.jpg


BIN
static/images/middle_left.png


BIN
static/images/middle_right.png


BIN
static/images/modal.png


BIN
static/images/order1.png


BIN
static/images/order2.png


BIN
static/images/order_no.png


BIN
static/images/phone-class.png


BIN
static/images/phone1.png


BIN
static/images/phone2.png


BIN
static/images/question_main.png


BIN
static/images/question_main1.png


BIN
static/images/sj1.png


BIN
static/images/success_icon.png


BIN
static/images/top-bg.png


BIN
static/images/top-bg1.png


BIN
static/images/topImg.png


BIN
static/images/topImg1.png


BIN
static/images/topImg3.png


BIN
static/images/top_1.png


BIN
static/images/top_12.png


BIN
static/images/top_2.png


BIN
static/images/ty.png


BIN
static/images/wx.png


BIN
static/images/xing_left1.png


BIN
static/images/xing_left2.png


BIN
static/images/xing_left3.png


BIN
static/images/xing_left4.png


BIN
static/images/xing_right1.png


BIN
static/images/xing_right2.png


BIN
static/images/xing_right3.png


BIN
static/images/xing_right4.png


BIN
static/images/zfb.png


BIN
static/scaleImages/20221031110051-46-A-1.png


BIN
static/scaleImages/20221031110051-46-B-1.png


BIN
static/scaleImages/20221031110051-47-A-1.png


BIN
static/scaleImages/20221031110051-47-B-1.png


BIN
static/scaleImages/20221031110051-48-A-1.png


BIN
static/scaleImages/20221031110051-48-B-1.png


+ 3 - 3
utils/index.html

@@ -19,8 +19,8 @@
 		<script src=/static/js/chunk-vendors.a894e221.js></script>
 		<script src=/static/js/index.094b6a10.js></script>
 		<script type="text/javascript">
-			sessionStorage.setItem('ip',returnCitySN.cip)
+			uni.setStorageSync("ip", returnCitySN.cip)
 		</script>
-		
+
 	</body>
-</html>
+</html>