lhl 2 years ago
parent
commit
5427b9e322

+ 2 - 2
manifest.json

@@ -80,7 +80,7 @@
     },
     "h5" : {
         "title" : "沙市区红十字会",
-        "domain" : "red.liuniu946.com",
+        "domain" : "admin.jzrc.org.cn",
         "router" : {
             "mode" : "hash",
             "base" : "/index/"
@@ -88,7 +88,7 @@
         "devServer" : {
             "proxy" : {
                 "/api" : {
-                    "target" : "http://red.liuniu946.com", //请求的目标域名
+                    "target" : "http://admin.jzrc.org.cn", //请求的目标域名
                     "changeOrigin" : true,
                     "secure" : false,
                     "pathRewrite" : {}

+ 1 - 1
pages.json

@@ -144,7 +144,7 @@
 				// #endif
 				"navigationBarBackgroundColor": "#457DBF",
 				"navigationBarTextStyle": "white",
-				"navigationBarTitleText": "孝感红十字会安心捐赠"
+				"navigationBarTitleText": "我的捐款"
 			}
 		},
 		{

+ 18 - 15
pages/applic/contribution.vue

@@ -59,7 +59,7 @@
 		<!-- <view class="infoOptional">
 			信息(选填)
 		</view> -->
-		<view class="box">
+		<view class="box" v-if="public">
 			<view class="box-item">
 				<view class="box-left">
 					<view v-if="!is_show">
@@ -406,23 +406,26 @@
 					this.$api.msg('请输入捐款金额!');
 					return;
 				}
-				if (this.is_show) {
-					if (!obj.donate_er) {
-						this.$api.msg('请填写您的单位');
-						return;
+				if(obj.public) {
+					if (this.is_show) {
+						if (!obj.donate_er) {
+							this.$api.msg('请填写您的单位');
+							return;
+						}
+					} else {
+						if (!obj.donate_er) {
+							this.$api.msg('请填写您的姓名');
+							return;
+						}
 					}
-				} else {
-					if (!obj.donate_er) {
-						this.$api.msg('请填写您的姓名');
+					
+					const reg = /^(\+?0?86-?)?1[\d]\d{9}$/;
+					if (!reg.test(obj.mobile)) {
+						obj.$api.msg('请填写正确的手机号码');
 						return;
 					}
 				}
-
-				const reg = /^(\+?0?86-?)?1[\d]\d{9}$/;
-				if (!reg.test(obj.mobile)) {
-					obj.$api.msg('请填写正确的手机号码');
-					return;
-				}
+				
 				if (this.is_receipts == '0') {
 					// obj.address = '用户未填写联系地址'
 					if (!obj.address) {
@@ -443,7 +446,7 @@
 				let updata = {
 					// category_id: obj.category_id, //捐款意向id
 					amount: obj.money, //捐款金额
-					name: obj.donate_er, //捐款人/单位
+					name: obj.donate_er || '佚名', //捐款人/单位
 					// contact: obj, //单位联系人(企业有效)
 					tel: obj.mobile, //手机号
 					address: obj.address, //联系地址

+ 2 - 2
pages/applic/science.vue

@@ -12,7 +12,7 @@
 		</view>
 		<view class="list-box" v-for="(item,index) in science" :key='index' @click="Jump(item.id)">
 			<view class="box-left">
-				<image :src="$store.state.baseURL + item.image" mode="" class="left-img"></image>
+				<image :src="(item.image.indexOf('http') != -1 )? item.image: ($store.state.baseURL + item.image)" mode="" class="left-img"></image>
 			</view>
 			<view class="box-right">
 				<view class="right-top word1_ellipsis">
@@ -70,7 +70,7 @@
 			},
 			loadData(){
 				let obj = this;
-				getArticList({ifyid:62}).then(({ data }) => {
+				getArticList({ifyid:56}).then(({ data }) => {
 					console.log(data,123456);
 					obj.science = obj.science.concat(data.list);
 					console.log(obj.science,'999999999999999999')

+ 1 - 1
pages/applic/toknowledge.vue

@@ -44,7 +44,7 @@
 					<view class="name">怎样成为造血干细胞志愿捐献者??</view>
 				</view>
 				<view class="list-tpl">
-					您可与神农架林区红十字会联系,或在余姚市爱心献血屋(阳明西路桐江桥街心公园内)报名。到指定地点抽取6-8毫升血液,经HLA分型检验,把相关资料录入到中华骨髓库的数据库中,这样您就成为造血干细胞志愿捐献者了。
+					您可与{{$store.state.baseName}}联系报名。到指定地点抽取6-8毫升血液,经HLA分型检验,把相关资料录入到中华骨髓库的数据库中,这样您就成为造血干细胞志愿捐献者了。
 				</view>
 			</view>
 			<view class="list-item">

+ 1 - 1
pages/form/donaSuccess.vue

@@ -167,7 +167,7 @@ export default {
 	onLoad(option) {
 		console.log(333, option);
 		this.money = option.money;
-		this.name = decodeURI(option.name)
+		this.name = decodeURI(option.name) || '佚名'
 		this.add_time =decodeURI(option.time)
 		this.IndexShare();
 		this.ScanAudio(true);

+ 2 - 2
pages/share/card.vue

@@ -122,8 +122,8 @@ export default {
 		IndexShare() {
 			let obj = this;
 			let item = {
-				link:  'http://jz.red.igxys.com/ssq/#/pages/share/card',// 分享链接
-				imgUrl: 'http://jz.red.igxys.com/index/static/img/22.jpg',
+				link:  obj.$store.state.baseURL + '/index/#/pages/share/card',// 分享链接
+				imgUrl: obj.$store.state.baseURL + '/index/static/img/002.png',
 				desc: '电子名片分享',
 				title: '沙市区红十字会',
 			};

+ 4 - 4
store/index.js

@@ -5,10 +5,10 @@ Vue.use(Vuex)
 const store = new Vuex.Store({
 	state: {
 		// #ifdef MP
-		baseURL: 'http://gongan.igxys.com', //请求地址配置
+		baseURL: 'http://ssqwx.jzrc.org.cn', //请求地址配置
 		// #endif
 		// #ifndef MP
-		baseURL: 'http://gongan.igxys.com', //请求地址配置
+		baseURL: 'http://ssqwx.jzrc.org.cn', //请求地址配置
 		// #endif
 		// baseURL: 'http://yrh.liuniu946.com', //请求地址配置
 		urlFile: '/index', //项目部署所在文件夹
@@ -23,8 +23,8 @@ const store = new Vuex.Store({
 		// #endif
 		// shareData:'',//分享信息
 		project_area: 0,
-		sys_appid: 'gonganxianred2022125',//系统AppID
-		sys_appsecret: '2022125gonganxianred',//系统AppSecret
+		sys_appid: 'ssq2022224',//系统AppID
+		sys_appsecret: '2022224ssq',//系统AppSecret
 		baseName: '沙市区红十字会',
 		shareDesc: '弘扬红十字精神,传播红十字观念,宣传红十字工作,这是一个汇聚爱心、救助之家力量的平台!'
 	},