request(getOpenidApi, options).then((res) => { | request(getOpenidApi, options).then((res) => { | ||||
const result = stringToJson(res.bizContent); | const result = stringToJson(res.bizContent); | ||||
console.log("获取微信小程序openid", result); | console.log("获取微信小程序openid", result); | ||||
state.openid = res.data.openid; | |||||
state.openid = result.data.openid; | |||||
setItem("QYorder", state); | setItem("QYorder", state); | ||||
console.log(res); | console.log(res); | ||||
var data = { | var data = { | ||||
orderId: state.orderId, | orderId: state.orderId, | ||||
subOpenId: res.data.openid, | |||||
subOpenId: result.data.openid, | |||||
}; | }; | ||||
const options = { | const options = { | ||||
type: 2, | type: 2, |
<view class="span">{{item.copywriting}}</view> | <view class="span">{{item.copywriting}}</view> | ||||
</view> | </view> | ||||
<view class="image-box"> | <view class="image-box"> | ||||
<image :src="fileURL + item.imgUrl" mode="aspectFill"></image> | |||||
<image :src="fileURLList + item.imgUrl" mode="aspectFill"></image> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view v-if="state.highMsgData.length!=0" class="more" | <view v-if="state.highMsgData.length!=0" class="more" |
<div class="description">{{item.title}}</div> | <div class="description">{{item.title}}</div> | ||||
<div class="mark">{{item.copywriting}}</div> | <div class="mark">{{item.copywriting}}</div> | ||||
</div> | </div> | ||||
<image :src="fileURL + item.imgUrl"></image> | |||||
<image :src="fileURLList + item.imgUrl"></image> | |||||
</div> | </div> | ||||
<view style="text-align: center;margin: 20rpx;" v-if="state.flags">我是有底线的</view> | <view style="text-align: center;margin: 20rpx;" v-if="state.flags">我是有底线的</view> | ||||
</div> | </div> | ||||
</template> | </template> | ||||
<script setup lang="ts"> | <script setup lang="ts"> | ||||
import { fileURL } from "@/datas/fileURL.js"; | |||||
import { fileURL, fileURLList } from "@/datas/fileURL.js"; | |||||
import { onPageScroll, onLoad, onPullDownRefresh, onReachBottom } from "@dcloudio/uni-app"; | import { onPageScroll, onLoad, onPullDownRefresh, onReachBottom } from "@dcloudio/uni-app"; | ||||
import { queryHighMsg } from "@/utils/network/api.js"; | import { queryHighMsg } from "@/utils/network/api.js"; | ||||
import { reactive } from "vue"; | import { reactive } from "vue"; |
<view class="span">{{item.copywriting}}</view> | <view class="span">{{item.copywriting}}</view> | ||||
</view> | </view> | ||||
<view class="image-box"> | <view class="image-box"> | ||||
<image :src="fileURL + item.imgUrl"></image> | |||||
<image :src="fileURLList + item.imgUrl"></image> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
</template> | </template> | ||||
<script setup lang="ts"> | <script setup lang="ts"> | ||||
import { reactive } from "vue"; | import { reactive } from "vue"; | ||||
import { onLoad } from "@dcloudio/uni-app"; | import { onLoad } from "@dcloudio/uni-app"; | ||||
import { fileURL } from "@/datas/fileURL.js"; | |||||
import { fileURL, fileURLList } from "@/datas/fileURL.js"; | |||||
const state = reactive({ | const state = reactive({ | ||||
data: [] | data: [] | ||||
}) | }) |
export const envs = { | export const envs = { | ||||
//开发环境配置 | //开发环境配置 | ||||
development: { | development: { | ||||
baseUrl: "https://qtzl.etcjz.cn", | |||||
// baseUrl: "https://qtzl.etcjz.cn", | |||||
// baseUrl: "http://192.168.124.6:8087", | // baseUrl: "http://192.168.124.6:8087", | ||||
// baseUrl: "https://trial.etcjz.cn", | |||||
baseUrl: "https://trial.etcjz.cn", | |||||
// baseUrl: "http://192.168.100.158:8085", | // baseUrl: "http://192.168.100.158:8085", | ||||
}, | }, | ||||
//生产环境配置 | //生产环境配置 | ||||
// baseUrl: "http://192.168.124.6:8087", | // baseUrl: "http://192.168.124.6:8087", | ||||
// baseUrl: "http://222.85.144.89:19002", | // baseUrl: "http://222.85.144.89:19002", | ||||
// baseUrl: "http://192.168.100.158:8085/html/", | // baseUrl: "http://192.168.100.158:8085/html/", | ||||
baseUrl: "https://qtzl.etcjz.cn", | |||||
// baseUrl: "https://trial.etcjz.cn", | |||||
// baseUrl: "https://qtzl.etcjz.cn", | |||||
baseUrl: "https://trial.etcjz.cn", | |||||
// baseUrl: "http://192.168.100.158:8085", | // baseUrl: "http://192.168.100.158:8085", | ||||
}, | }, | ||||
} | } |